@dcl/shop 0.1.0-30381444187.commit-e5b9f13 → 0.1.0-30381451752.commit-ab871f3
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-B63zG8uY.js → Activity-DSc7mvP4.js} +18 -18
- package/assets/{AnimatedBackground-CWPdO0WE.js → AnimatedBackground-fVnlmf9F.js} +1 -1
- package/assets/{Assets-WnaUem5h.js → Assets-CH9evMea.js} +11 -11
- package/assets/{Assets.styles-Dmhspue_.js → Assets.styles-CGAD6wJa.js} +5 -5
- package/assets/{Authorizations-CAStHHID.js → Authorizations-DhC0rdm8.js} +4 -4
- package/assets/Button-DOi50GW0.js +74 -0
- package/assets/{Cart-D-YOXeH9.js → Cart-Cn3ZtfkI.js} +1 -1
- package/assets/{CircularProgress-CpOs7g9a.js → CircularProgress-JMezNnqa.js} +5 -5
- package/assets/{Collection-9Fu4_XnC.js → Collection-DjZMT60J.js} +2 -2
- package/assets/{CollectionCarousel-CzvvuUUw.js → CollectionCarousel-Ck_R1F2f.js} +5 -5
- package/assets/Creator-CMnVKtlV.js +1 -0
- package/assets/{ExchangeController-CL_gVqSw.js → ExchangeController-C6mQYps7.js} +1 -1
- package/assets/{GetCredits-DSK7zyc2.js → GetCredits-5VMKvJ-K.js} +11 -11
- package/assets/{HelpersUtil-BfapKZKr.js → HelpersUtil-XXeaUDZE.js} +1 -1
- package/assets/ImportListings-CF7yr8q-.js +5 -0
- package/assets/{ItemDetail-D49gDAwf.js → ItemDetail-BY0kHQB-.js} +185 -185
- package/assets/{LoadMore-DTUpuDyu.js → LoadMore-BekgL6OE.js} +1 -1
- package/assets/MarketCheckout-GA-mHw2T.js +3 -0
- package/assets/{MenuList-DQbLlN7L.js → MenuList-CkcgsIA6.js} +1 -1
- package/assets/{MyAssets-DJ0hwGXR.js → MyAssets-ByTH-epK.js} +1 -1
- package/assets/{MyFavorites-D3n_-d0Z.js → MyFavorites-BFzYjDUH.js} +1 -1
- package/assets/{NotFound-MMFCqdKn.js → NotFound-TS_fVknU.js} +1 -1
- package/assets/NotificationsBell-Bho6wwFJ.js +34 -0
- package/assets/{StoreSettings-CdSK69sU.js → StoreSettings-P1WQMPTt.js} +5 -5
- package/assets/{Success-KKN_AjMe.js → Success-CZvGvIYB.js} +1 -1
- package/assets/{SwapController-BNkoWTIp.js → SwapController-DcTviSiv.js} +1 -1
- package/assets/{Tooltip-CBuz_rc2.js → Tooltip-Ck8OHf1K.js} +1 -1
- package/assets/{TradeService-Dm_ASWCN.js → TradeService-CQyC0ckJ.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-CeSRgOaN.js → W3MFrameProviderSingleton-oH9nrVqa.js} +3 -3
- package/assets/{WebCryptoP256-GalvwmvU.js → WebCryptoP256-D6sJ4GW3.js} +1 -1
- package/assets/{authorizations-Ds7LRLV0.js → authorizations-BxQ2tMzo.js} +1 -1
- package/assets/{basic-D_j1sfcj.js → basic-BRNG7iiw.js} +1 -1
- package/assets/{biconomy-YD94PgiS.js → biconomy-CUHnXsx-.js} +1 -1
- package/assets/{builder-Cc8g4-4q.js → builder-DZ1jvdvk.js} +1 -1
- package/assets/{buy-DnSS_Kop.js → buy-C-oTH9gd.js} +1 -1
- package/assets/{buy-gasless-9Zn1yAMk.js → buy-gasless-BlKkmgRS.js} +1 -1
- package/assets/cart-checkout-BQRIzuA5.js +1 -0
- package/assets/{categories-BI9AXlDF.js → categories-DhS9aD1g.js} +4 -4
- package/assets/{ccip-bHN-8eS1.js → ccip-BQlc06tF.js} +1 -1
- package/assets/{ccip-CiESIEiQ.js → ccip-x24MUJVN.js} +1 -1
- package/assets/collection-CB1x49ld.js +1 -0
- package/assets/{controller-B2JIau8v.js → controller-ab9pqJXK.js} +2 -2
- package/assets/{core-3cHR7yu5.js → core-Dg-XVaV5.js} +4 -4
- package/assets/{custom-BFV9Niby.js → custom-CTXht3LT.js} +1 -1
- package/assets/{data-capture-DTqon_Ye.js → data-capture-gVncKP92.js} +1 -1
- package/assets/{email-CN7CWhKF.js → email-_DXK33a9.js} +1 -1
- package/assets/{embedded-wallet-Q6nTAiGf.js → embedded-wallet-B_k2BCRi.js} +1 -1
- package/assets/emotion-styled.browser.esm-v-WGRXph.js +1 -0
- package/assets/{engine-DoRvgWV1.js → engine-ha18BPJJ.js} +1 -1
- package/assets/{errors-CG6pp58g.js → errors-CRgGE21K.js} +1 -1
- package/assets/{estimate-l1-fee-DIch6QAI.js → estimate-l1-fee-Bz9lwTZI.js} +1 -1
- package/assets/{execute-UcJesME5.js → execute-CLGkeIM4.js} +2 -2
- package/assets/{features-B53I2xTg.js → features-BLGU5qKo.js} +1 -1
- package/assets/{fetchTokenMetadata-CqYkUkwH.js → fetchTokenMetadata-CYxDKmIt.js} +2 -2
- package/assets/{get-ecosystem-wallet-info-HoRTPbSm.js → get-ecosystem-wallet-info-yJH_bkud.js} +1 -1
- package/assets/{getBalance-BMDqICQz.js → getBalance-CXmOkNzY.js} +1 -1
- package/assets/{getNFT-WdF3UG1j.js → getNFT-D0B4erfI.js} +1 -1
- package/assets/{getNFT-6TA-E6XX.js → getNFT-DysvkQcd.js} +1 -1
- package/assets/{getThemeProps-HByDG2pD.js → getThemeProps-DIwZ5N8L.js} +1 -1
- package/assets/{hashTypedData-ug9gj3v5.js → hashTypedData--HdA9-HS.js} +1 -1
- package/assets/{hashTypedData-BGvyK_O1.js → hashTypedData-DziOW2Vc.js} +1 -1
- package/assets/{import-CZZ9-DX_.js → import-CsDUWWqh.js} +1 -1
- package/assets/{in-app-BXpVuL_f.js → in-app-D7O2V44M.js} +1 -1
- package/assets/{in-app-wallet-calls-Cw2KNfOh.js → in-app-wallet-calls-DL6ZAl8I.js} +1 -1
- package/assets/{index-D0fJ7qrq.js → index-7Wsfe2Up.js} +1 -1
- package/assets/{index-C68XxPCY.js → index-B2t3nSe7.js} +1 -1
- package/assets/{index-CYMsLttB.js → index-B7T9Zh6O.js} +1 -1
- package/assets/{index-CaR23uYb.js → index-BCW_w0UN.js} +1 -1
- package/assets/{index-BeeMSgi1.js → index-BE-vH0_t.js} +1 -1
- package/assets/{index-Bq0YYsbG.js → index-BIrUjWEF.js} +1 -1
- package/assets/{index-F-n6GV2b.js → index-BMMsxyuq.js} +1 -1
- package/assets/{index-BHPkQDns.js → index-BUrRDjD6.js} +1 -1
- package/assets/{index-BOMAmQU7.js → index-BaUNQyyt.js} +1 -1
- package/assets/{index-B7jIFcHs.js → index-BaYUVFML.js} +2 -2
- package/assets/{index-CeKksx_X.js → index-Bc2znaCv.js} +1 -1
- package/assets/{index-CmgZ4NMC.js → index-Bg4URcJg.js} +1 -1
- package/assets/{index-CjpRvZkq.js → index-BgsCmFBR.js} +1 -1
- package/assets/{index-Fe4H2sUE.js → index-C1EFfqUT.js} +1 -1
- package/assets/{index-B0SdAX-m.js → index-CB0_zAGI.js} +1 -1
- package/assets/{index-TmxHL85j.js → index-CE-8j9dT.js} +31 -31
- package/assets/{index-euFuE7ah.js → index-CE3I8gyz.js} +1 -1
- package/assets/{index-2jouHGho.js → index-CI3LRVdJ.js} +1 -1
- package/assets/{index-gxa5wyAJ.js → index-CLl3y_zB.js} +3 -3
- package/assets/{index-Cy8JAEGy.js → index-CQ2b-Icm.js} +1 -1
- package/assets/{index-C7TVyPoU.js → index-CQfyml-1.js} +1 -1
- package/assets/{index-b39aIkkP.js → index-CVa7EGSX.js} +1 -1
- package/assets/{index-BEmTYNSG.js → index-CYjzOXa9.js} +1 -1
- package/assets/{index-Dr9lSl0n.js → index-CZKSPj3S.js} +1 -1
- package/assets/{index-B1saYH84.js → index-Cd2tsAns.js} +1 -1
- package/assets/{index-C0ACz6_-.js → index-CkqJHGTd.js} +1 -1
- package/assets/{index-BqPcUFuz.js → index-Cmvj85Uh.js} +1 -1
- package/assets/{index-F_0Er667.js → index-CoKHkfgd.js} +2 -2
- package/assets/{index-G_lkaThL.js → index-CscFkYoq.js} +1 -1
- package/assets/index-Ctx_ebhF.js +2 -0
- package/assets/index-Cv07XGtu.js +4 -0
- package/assets/{index-BBeW5CPj.js → index-D-LfADaw.js} +1 -1
- package/assets/{index-BQe1IsNb.js → index-D-UY1tLQ.js} +1 -1
- package/assets/{index-DqLpZ4oP.js → index-D9jcyP1T.js} +1 -1
- package/assets/{index-DaGhU6Uz.js → index-DAc_icdG.js} +1 -1
- package/assets/{index-CKSJdo5m.js → index-DR4iRFBm.js} +1 -1
- package/assets/{index-Z5LdHVdI.js → index-DalVAnKe.js} +1 -1
- package/assets/{index-DpXleRYB.js → index-DcffeS4F.js} +1 -1
- package/assets/{index-Y77Y_U0L.js → index-Dmk33w1E.js} +1 -1
- package/assets/{index-2RpQo6sW.js → index-DxHwXU1C.js} +1 -1
- package/assets/{index-CDEPMu43.js → index-J1CoPuuN.js} +3 -3
- package/assets/{index-D9gz4wTG.js → index-QZtXXaW6.js} +1 -1
- package/assets/{index-ogLhf7-S.js → index-VytDXqCW.js} +1 -1
- package/assets/{index-ExvBrBJ4.js → index-_Rup9P59.js} +2 -2
- package/assets/{index-CmgoqHgW.js → index-aJlKiR42.js} +1 -1
- package/assets/{index-D7r-KbUN.js → index-lTWpOCxL.js} +1 -1
- package/assets/{index-FvnJRnD5.js → index-mBqsXHEL.js} +3 -3
- package/assets/{index-DGIUeX6X.js → index-oGOYPuqO.js} +1 -1
- package/assets/{index-D95ZUsPD.js → index-odQTruvU.js} +1 -1
- package/assets/{index-_hV86vSn.js → index-palPyzeM.js} +1 -1
- package/assets/{index-B5JNl4HC.js → index-plri7RJC.js} +1 -1
- package/assets/{index.es-DD7iT23u.js → index.es-BKZDd-uH.js} +4 -4
- package/assets/{index.es-CmoiU8SE.js → index.es-frivxByX.js} +1 -1
- package/assets/{index.es-DDEozdoq.js → index.es-kEVHcelo.js} +1 -1
- package/assets/{localBatchGatewayRequest-BGfmM9P7.js → localBatchGatewayRequest-CySxBK0P.js} +1 -1
- package/assets/mana-rate-iDr_vy1I.js +1 -0
- package/assets/{networks-CBAVrHYh.js → networks-3-OnX6AH.js} +1 -1
- package/assets/{onramp-dft5bcN9.js → onramp-Bq5dAlFw.js} +1 -1
- package/assets/{openzeppelin-WekOcr_Z.js → openzeppelin-CML0yooi.js} +1 -1
- package/assets/{parseNft-DTV6iT7B.js → parseNft-Ci6Mgfjs.js} +2 -2
- package/assets/{parseSignature-C7rL0b_w.js → parseSignature-D-9wk3ib.js} +3 -3
- package/assets/{parseSignature-DmkHq9fC.js → parseSignature-cZaawZ6k.js} +1 -1
- package/assets/{passkeys--Px7LRhh.js → passkeys-cg1VKv6x.js} +1 -1
- package/assets/{pay-with-exchange-CMQeyenn.js → pay-with-exchange-BJ4Fzmz1.js} +1 -1
- package/assets/{qr-overlay-Dz377WEQ.js → qr-overlay-DxCAQFuF.js} +1 -1
- package/assets/{receive-CpDxltQB.js → receive-SwsuZNQC.js} +1 -1
- package/assets/{resolveImplementation-CFOrDNcu.js → resolveImplementation-BLaiirJ3.js} +1 -1
- package/assets/{rpc-CjfGBkRY.js → rpc-DmqY-iw7.js} +1 -1
- package/assets/{secp256k1-DSadr9B6.js → secp256k1-B873uX0r.js} +1 -1
- package/assets/{secp256k1-Dgs0hNIB.js → secp256k1-BQjGgvAo.js} +1 -1
- package/assets/{secp256k1-C77TwNwR.js → secp256k1-GhqpoPlI.js} +1 -1
- package/assets/{send-BMIoBrdl.js → send-Gjj-by0g.js} +1 -1
- package/assets/{send-batch-transaction-CZ5LHGtL.js → send-batch-transaction-CQKczqLV.js} +1 -1
- package/assets/{send-eip712-transaction-DmvWUFiv.js → send-eip712-transaction-D5ErRlD2.js} +2 -2
- package/assets/{send-gasless-transaction-DxLNFATn.js → send-gasless-transaction-C2Zr5wl9.js} +2 -2
- package/assets/{send-transaction-DVEripxy.js → send-transaction-BSCBM-eH.js} +2 -2
- package/assets/{sendMetaTransaction-7YAoB-pL.js → sendMetaTransaction-BMgjMfxP.js} +1 -1
- package/assets/{sendRawTransaction-BXyfyJLD.js → sendRawTransaction-DIOHnRnR.js} +3 -3
- package/assets/{serializeTransaction-BkF9WfrN.js → serializeTransaction-DLwJGyyA.js} +1 -1
- package/assets/{session-proposal-DoIVwtwv.js → session-proposal-P-V7WlA3.js} +1 -1
- package/assets/{session-request-C3QQi3mV.js → session-request-DXGq-vPI.js} +2 -2
- package/assets/{signing-BInyigJZ.js → signing-B18L8hB9.js} +3 -3
- package/assets/{socials-HN5nwNut.js → socials-D2NhoS92.js} +1 -1
- package/assets/{swaps-Dbu6ix4y.js → swaps-BjGN9dpo.js} +1 -1
- package/assets/{thirdweb-DY9iSWOj.js → thirdweb-D8LTFb7L.js} +3 -3
- package/assets/{to-serializable-transaction-DFrgce7C.js → to-serializable-transaction-DvD6rPpV.js} +2 -2
- package/assets/{trade-encoding-CcRCeIpG.js → trade-encoding-BjnvL03O.js} +1 -1
- package/assets/{transactionReceipt-5vjrQVvz.js → transactionReceipt-6-pcmsdS.js} +1 -1
- package/assets/{transactions-DLwOfx7v.js → transactions-uHYWIqRs.js} +1 -1
- package/assets/{useCreditPacks-Dft_m4Vq.js → useCreditPacks-CS3eE-oJ.js} +1 -1
- package/assets/{useInfiniteGrid-pff93KiW.js → useInfiniteGrid-7tlbDRJY.js} +1 -1
- package/assets/useManaRate-1Q3qKQkm.js +1 -0
- package/assets/useSecondarySales-Be2j0EMT.js +1 -0
- package/assets/{useStore-CV_90SkB.js → useStore-DCT-CgMe.js} +1 -1
- package/assets/useTheme-BWiusVd4.js +1 -0
- package/assets/{verifyHash-BJDJ-yWB.js → verifyHash-Y9BU7-vn.js} +1 -1
- package/assets/{w3m-modal-C_4vaAKJ.js → w3m-modal-IJXUf9Ad.js} +1 -1
- package/assets/{w3m-modal-Cs01ZX0b.js → w3m-modal-eUhgw2D5.js} +1 -1
- package/assets/{wait-for-tx-receipt-CYy9IgHg.js → wait-for-tx-receipt-ztIanYW8.js} +1 -1
- package/assets/{wallets-D4ZcCkX2.js → wallets-D3bPaCuK.js} +5 -5
- package/assets/{web-connector-p1b6xGQr.js → web-connector-C71ag9VJ.js} +3 -3
- package/assets/{writeContract-Cl5bVpey.js → writeContract-PtF1oxgl.js} +1 -1
- package/assets/{zoraTestnet-Dg220Oc3.js → zoraTestnet-DoARpZBA.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/assets/Button-BDUHWtxg.js +0 -74
- package/assets/Creator-3NXIbePD.js +0 -1
- package/assets/ImportListings-DZs_dFSO.js +0 -5
- package/assets/MarketCheckout-CoUO17KO.js +0 -3
- package/assets/NotificationsBell-CNLR9ard.js +0 -34
- package/assets/cart-checkout-BAugwPm6.js +0 -1
- package/assets/collection-DE3QnCpW.js +0 -1
- package/assets/emotion-styled.browser.esm-DU8E1n2c.js +0 -1
- package/assets/index-8wx1oJ_F.js +0 -4
- package/assets/index-CEcu6qlS.js +0 -2
- package/assets/mana-rate-C8zn6Vfu.js +0 -1
- package/assets/useManaRate-C5mRxzeC.js +0 -1
- package/assets/useSecondarySales-BRJGIRwF.js +0 -1
- package/assets/useTheme-cgcgN0ze.js +0 -1
package/index.html
CHANGED
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
<link rel="canonical" href="https://shop.decentraland.org/" />
|
|
17
17
|
|
|
18
18
|
<!-- Favicon: the Decentraland mark (same as the marketplace). -->
|
|
19
|
-
<link rel="icon" type="image/x-icon" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
20
|
-
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
19
|
+
<link rel="icon" type="image/x-icon" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/favicon.ico" sizes="16x16 32x32 48x48" />
|
|
20
|
+
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/apple-touch-icon.png" />
|
|
21
21
|
<meta name="apple-mobile-web-app-title" content="DCL Shop" />
|
|
22
|
-
<link rel="manifest" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
22
|
+
<link rel="manifest" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/site.webmanifest" />
|
|
23
23
|
|
|
24
24
|
<!-- Open Graph -->
|
|
25
25
|
<meta property="og:type" content="website" />
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
<meta name="twitter:image:alt" content="Decentraland Shop — wearables and emotes for your avatar" />
|
|
49
49
|
|
|
50
50
|
<!-- Sitemap -->
|
|
51
|
-
<link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
51
|
+
<link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/sitemap.xml" />
|
|
52
52
|
|
|
53
53
|
<!-- Warm the 3D preview / fonts -->
|
|
54
54
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
<link rel="preconnect" href="https://wearable-preview.decentraland.org" />
|
|
61
61
|
<link rel="preconnect" href="https://peer.decentraland.zone" crossorigin />
|
|
62
62
|
<link rel="preconnect" href="https://peer.decentraland.org" crossorigin />
|
|
63
|
-
<script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
64
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
65
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
66
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
67
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
68
|
-
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
69
|
-
<link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-
|
|
63
|
+
<script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/assets/index-CE-8j9dT.js"></script>
|
|
64
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/assets/react-BW1xvPTF.js">
|
|
65
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/assets/sentry-BV_ZSgtd.js">
|
|
66
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/assets/dcl-schemas-BICTSpB5.js">
|
|
67
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/assets/ethers-CtVvB8eG.js">
|
|
68
|
+
<link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/assets/intl-CBcMB1D2.js">
|
|
69
|
+
<link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.1.0-30381451752.commit-ab871f3/assets/index-DwufS2l2.css">
|
|
70
70
|
</head>
|
|
71
71
|
<body>
|
|
72
72
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/shop",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-30381451752.commit-ab871f3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/decentraland/shop.git"
|
|
10
10
|
},
|
|
11
|
-
"commit": "
|
|
11
|
+
"commit": "ab871f349dc8f52ac066ad61adf313d4e264bfb2"
|
|
12
12
|
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import{bc as Xe,bd as Ye,F as Ge,be as qe,Y as G,Z as b,$ as z,W as ee,X as se,bf as Ze,a2 as H,R as le,V as Ce,bg as be,bh as we,bi as w,a1 as Re,bj as Je,T as Qe,aU as eo,E as oo,a0 as B,bk as to,bl as J}from"./index-TmxHL85j.js";import{r as l,j as T,R as Y}from"./react-BW1xvPTF.js";function Me(e){var o,t,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(o=0;o<n;o++)e[o]&&(t=Me(e[o]))&&(i&&(i+=" "),i+=t)}else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function no(){for(var e,o,t=0,i="",n=arguments.length;t<n;t++)(e=arguments[t])&&(o=Me(e))&&(i&&(i+=" "),i+=o);return i}const io=["className","component"];function ao(e={}){const{themeId:o,defaultTheme:t,defaultClassName:i="MuiBox-root",generateClassName:n}=e,a=Xe("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(Ye);return l.forwardRef(function(c,p){const f=Ge(t),g=qe(c),{className:m,component:v="div"}=g,h=G(g,io);return T.jsx(a,b({as:v,ref:p,className:no(m,n?n(i):i),theme:o&&f[o]||f},h))})}function ae(e,o){return ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},ae(e,o)}function ro(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,ae(e,o)}const ge=Y.createContext(null);function so(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ce(e,o){var t=function(a){return o&&l.isValidElement(a)?o(a):a},i=Object.create(null);return e&&l.Children.map(e,function(n){return n}).forEach(function(n){i[n.key]=t(n)}),i}function lo(e,o){e=e||{},o=o||{};function t(f){return f in o?o[f]:e[f]}var i=Object.create(null),n=[];for(var a in e)a in o?n.length&&(i[a]=n,n=[]):n.push(a);var r,u={};for(var c in o){if(i[c])for(r=0;r<i[c].length;r++){var p=i[c][r];u[i[c][r]]=t(p)}u[c]=t(c)}for(r=0;r<n.length;r++)u[n[r]]=t(n[r]);return u}function A(e,o,t){return t[o]!=null?t[o]:e.props[o]}function co(e,o){return ce(e.children,function(t){return l.cloneElement(t,{onExited:o.bind(null,t),in:!0,appear:A(t,"appear",e),enter:A(t,"enter",e),exit:A(t,"exit",e)})})}function uo(e,o,t){var i=ce(e.children),n=lo(o,i);return Object.keys(n).forEach(function(a){var r=n[a];if(l.isValidElement(r)){var u=a in o,c=a in i,p=o[a],f=l.isValidElement(p)&&!p.props.in;c&&(!u||f)?n[a]=l.cloneElement(r,{onExited:t.bind(null,r),in:!0,exit:A(r,"exit",e),enter:A(r,"enter",e)}):!c&&u&&!f?n[a]=l.cloneElement(r,{in:!1}):c&&u&&l.isValidElement(p)&&(n[a]=l.cloneElement(r,{onExited:t.bind(null,r),in:p.props.in,exit:A(r,"exit",e),enter:A(r,"enter",e)}))}}),n}var po=Object.values||function(e){return Object.keys(e).map(function(o){return e[o]})},fo={component:"div",childFactory:function(o){return o}},ue=(function(e){ro(o,e);function o(i,n){var a;a=e.call(this,i,n)||this;var r=a.handleExited.bind(so(a));return a.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},a}var t=o.prototype;return t.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},t.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(n,a){var r=a.children,u=a.handleExited,c=a.firstRender;return{children:c?co(n,u):uo(n,r,u),firstRender:!1}},t.handleExited=function(n,a){var r=ce(this.props.children);n.key in r||(n.props.onExited&&n.props.onExited(a),this.mounted&&this.setState(function(u){var c=b({},u.children);return delete c[n.key],{children:c}}))},t.render=function(){var n=this.props,a=n.component,r=n.childFactory,u=G(n,["component","childFactory"]),c=this.state.contextValue,p=po(this.state.children).map(r);return delete u.appear,delete u.enter,delete u.exit,a===null?Y.createElement(ge.Provider,{value:c},p):Y.createElement(ge.Provider,{value:c},Y.createElement(a,u,p))},o})(Y.Component);ue.propTypes={};ue.defaultProps=fo;function ho(e){const{className:o,classes:t,pulsate:i=!1,rippleX:n,rippleY:a,rippleSize:r,in:u,onExited:c,timeout:p}=e,[f,g]=l.useState(!1),m=z(o,t.ripple,t.rippleVisible,i&&t.ripplePulsate),v={width:r,height:r,top:-(r/2)+a,left:-(r/2)+n},h=z(t.child,f&&t.childLeaving,i&&t.childPulsate);return!u&&!f&&g(!0),l.useEffect(()=>{if(!u&&c!=null){const C=setTimeout(c,p);return()=>{clearTimeout(C)}}},[c,u,p]),T.jsx("span",{className:m,style:v,children:T.jsx("span",{className:h})})}const E=ee("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),bo=["center","classes","className"];let oe=e=>e,me,xe,ve,ye;const re=550,go=80,mo=le(me||(me=oe`
|
|
2
|
-
0% {
|
|
3
|
-
transform: scale(0);
|
|
4
|
-
opacity: 0.1;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
100% {
|
|
8
|
-
transform: scale(1);
|
|
9
|
-
opacity: 0.3;
|
|
10
|
-
}
|
|
11
|
-
`)),xo=le(xe||(xe=oe`
|
|
12
|
-
0% {
|
|
13
|
-
opacity: 1;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
100% {
|
|
17
|
-
opacity: 0;
|
|
18
|
-
}
|
|
19
|
-
`)),vo=le(ve||(ve=oe`
|
|
20
|
-
0% {
|
|
21
|
-
transform: scale(1);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
50% {
|
|
25
|
-
transform: scale(0.92);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
100% {
|
|
29
|
-
transform: scale(1);
|
|
30
|
-
}
|
|
31
|
-
`)),yo=H("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Co=H(ho,{name:"MuiTouchRipple",slot:"Ripple"})(ye||(ye=oe`
|
|
32
|
-
opacity: 0;
|
|
33
|
-
position: absolute;
|
|
34
|
-
|
|
35
|
-
&.${0} {
|
|
36
|
-
opacity: 0.3;
|
|
37
|
-
transform: scale(1);
|
|
38
|
-
animation-name: ${0};
|
|
39
|
-
animation-duration: ${0}ms;
|
|
40
|
-
animation-timing-function: ${0};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&.${0} {
|
|
44
|
-
animation-duration: ${0}ms;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
& .${0} {
|
|
48
|
-
opacity: 1;
|
|
49
|
-
display: block;
|
|
50
|
-
width: 100%;
|
|
51
|
-
height: 100%;
|
|
52
|
-
border-radius: 50%;
|
|
53
|
-
background-color: currentColor;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
& .${0} {
|
|
57
|
-
opacity: 0;
|
|
58
|
-
animation-name: ${0};
|
|
59
|
-
animation-duration: ${0}ms;
|
|
60
|
-
animation-timing-function: ${0};
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
& .${0} {
|
|
64
|
-
position: absolute;
|
|
65
|
-
/* @noflip */
|
|
66
|
-
left: 0px;
|
|
67
|
-
top: 0;
|
|
68
|
-
animation-name: ${0};
|
|
69
|
-
animation-duration: 2500ms;
|
|
70
|
-
animation-timing-function: ${0};
|
|
71
|
-
animation-iteration-count: infinite;
|
|
72
|
-
animation-delay: 200ms;
|
|
73
|
-
}
|
|
74
|
-
`),E.rippleVisible,mo,re,({theme:e})=>e.transitions.easing.easeInOut,E.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,E.child,E.childLeaving,xo,re,({theme:e})=>e.transitions.easing.easeInOut,E.childPulsate,vo,({theme:e})=>e.transitions.easing.easeInOut),Ro=l.forwardRef(function(o,t){const i=se({props:o,name:"MuiTouchRipple"}),{center:n=!1,classes:a={},className:r}=i,u=G(i,bo),[c,p]=l.useState([]),f=l.useRef(0),g=l.useRef(null);l.useEffect(()=>{g.current&&(g.current(),g.current=null)},[c]);const m=l.useRef(!1),v=Ze(),h=l.useRef(null),C=l.useRef(null),_=l.useCallback(d=>{const{pulsate:R,rippleX:x,rippleY:y,rippleSize:L,cb:O}=d;p(M=>[...M,T.jsx(Co,{classes:{ripple:z(a.ripple,E.ripple),rippleVisible:z(a.rippleVisible,E.rippleVisible),ripplePulsate:z(a.ripplePulsate,E.ripplePulsate),child:z(a.child,E.child),childLeaving:z(a.childLeaving,E.childLeaving),childPulsate:z(a.childPulsate,E.childPulsate)},timeout:re,pulsate:R,rippleX:x,rippleY:y,rippleSize:L},f.current)]),f.current+=1,g.current=O},[a]),V=l.useCallback((d={},R={},x=()=>{})=>{const{pulsate:y=!1,center:L=n||R.pulsate,fakeElement:O=!1}=R;if((d==null?void 0:d.type)==="mousedown"&&m.current){m.current=!1;return}(d==null?void 0:d.type)==="touchstart"&&(m.current=!0);const M=O?null:C.current,D=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let P,F,j;if(L||d===void 0||d.clientX===0&&d.clientY===0||!d.clientX&&!d.touches)P=Math.round(D.width/2),F=Math.round(D.height/2);else{const{clientX:W,clientY:k}=d.touches&&d.touches.length>0?d.touches[0]:d;P=Math.round(W-D.left),F=Math.round(k-D.top)}if(L)j=Math.sqrt((2*D.width**2+D.height**2)/3),j%2===0&&(j+=1);else{const W=Math.max(Math.abs((M?M.clientWidth:0)-P),P)*2+2,k=Math.max(Math.abs((M?M.clientHeight:0)-F),F)*2+2;j=Math.sqrt(W**2+k**2)}d!=null&&d.touches?h.current===null&&(h.current=()=>{_({pulsate:y,rippleX:P,rippleY:F,rippleSize:j,cb:x})},v.start(go,()=>{h.current&&(h.current(),h.current=null)})):_({pulsate:y,rippleX:P,rippleY:F,rippleSize:j,cb:x})},[n,_,v]),S=l.useCallback(()=>{V({},{pulsate:!0})},[V]),I=l.useCallback((d,R)=>{if(v.clear(),(d==null?void 0:d.type)==="touchend"&&h.current){h.current(),h.current=null,v.start(0,()=>{I(d,R)});return}h.current=null,p(x=>x.length>0?x.slice(1):x),g.current=R},[v]);return l.useImperativeHandle(t,()=>({pulsate:S,start:V,stop:I}),[S,V,I]),T.jsx(yo,b({className:z(E.root,a.root,r),ref:C},u,{children:T.jsx(ue,{component:null,exit:!0,children:c})}))});function Mo(e){return Ce("MuiButtonBase",e)}const zo=ee("MuiButtonBase",["root","disabled","focusVisible"]),Eo=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Bo=e=>{const{disabled:o,focusVisible:t,focusVisibleClassName:i,classes:n}=e,r=Re({root:["root",o&&"disabled",t&&"focusVisible"]},Mo,n);return t&&i&&(r.root+=` ${i}`),r},To=H("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,o)=>o.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${zo.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),$o=l.forwardRef(function(o,t){const i=se({props:o,name:"MuiButtonBase"}),{action:n,centerRipple:a=!1,children:r,className:u,component:c="button",disabled:p=!1,disableRipple:f=!1,disableTouchRipple:g=!1,focusRipple:m=!1,LinkComponent:v="a",onBlur:h,onClick:C,onContextMenu:_,onDragLeave:V,onFocus:S,onFocusVisible:I,onKeyDown:d,onKeyUp:R,onMouseDown:x,onMouseLeave:y,onMouseUp:L,onTouchEnd:O,onTouchMove:M,onTouchStart:D,tabIndex:P=0,TouchRippleProps:F,touchRippleRef:j,type:W}=i,k=G(i,Eo),K=l.useRef(null),$=l.useRef(null),Ee=be($,j),{isFocusVisibleRef:pe,onFocus:Be,onBlur:Te,ref:$e}=we(),[U,q]=l.useState(!1);p&&U&&q(!1),l.useImperativeHandle(n,()=>({focusVisible:()=>{q(!0),K.current.focus()}}),[]);const[te,Ie]=l.useState(!1);l.useEffect(()=>{Ie(!0)},[]);const Pe=te&&!f&&!p;l.useEffect(()=>{U&&m&&!f&&te&&$.current.pulsate()},[f,m,U,te]);function N(s,fe,Ke=g){return w(he=>(fe&&fe(he),!Ke&&$.current&&$.current[s](he),!0))}const ke=N("start",x),Ne=N("stop",_),Ve=N("stop",V),Se=N("stop",L),Le=N("stop",s=>{U&&s.preventDefault(),y&&y(s)}),De=N("start",D),Fe=N("stop",O),je=N("stop",M),_e=N("stop",s=>{Te(s),pe.current===!1&&q(!1),h&&h(s)},!1),Oe=w(s=>{K.current||(K.current=s.currentTarget),Be(s),pe.current===!0&&(q(!0),I&&I(s)),S&&S(s)}),ne=()=>{const s=K.current;return c&&c!=="button"&&!(s.tagName==="A"&&s.href)},ie=l.useRef(!1),We=w(s=>{m&&!ie.current&&U&&$.current&&s.key===" "&&(ie.current=!0,$.current.stop(s,()=>{$.current.start(s)})),s.target===s.currentTarget&&ne()&&s.key===" "&&s.preventDefault(),d&&d(s),s.target===s.currentTarget&&ne()&&s.key==="Enter"&&!p&&(s.preventDefault(),C&&C(s))}),Ue=w(s=>{m&&s.key===" "&&$.current&&U&&!s.defaultPrevented&&(ie.current=!1,$.current.stop(s,()=>{$.current.pulsate(s)})),R&&R(s),C&&s.target===s.currentTarget&&ne()&&s.key===" "&&!s.defaultPrevented&&C(s)});let Z=c;Z==="button"&&(k.href||k.to)&&(Z=v);const X={};Z==="button"?(X.type=W===void 0?"button":W,X.disabled=p):(!k.href&&!k.to&&(X.role="button"),p&&(X["aria-disabled"]=p));const Ae=be(t,$e,K),de=b({},i,{centerRipple:a,component:c,disabled:p,disableRipple:f,disableTouchRipple:g,focusRipple:m,tabIndex:P,focusVisible:U}),He=Bo(de);return T.jsxs(To,b({as:Z,className:z(He.root,u),ownerState:de,onBlur:_e,onClick:C,onContextMenu:Ne,onFocus:Oe,onKeyDown:We,onKeyUp:Ue,onMouseDown:ke,onMouseLeave:Le,onMouseUp:Se,onDragLeave:Ve,onTouchEnd:Fe,onTouchMove:je,onTouchStart:De,ref:Ae,tabIndex:p?-1:P,type:W},X,k,{children:[r,Pe?T.jsx(Ro,b({ref:Ee,center:a},F)):null]}))}),Io=ee("MuiBox",["root"]),Po=eo(),Uo=ao({themeId:Qe,defaultTheme:Po,defaultClassName:Io.root,generateClassName:Je.generate});function ko(e){return Ce("MuiButton",e)}const Q=ee("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),No=l.createContext({}),Vo=l.createContext(void 0),So=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Lo=e=>{const{color:o,disableElevation:t,fullWidth:i,size:n,variant:a,classes:r}=e,u={root:["root",a,`${a}${B(o)}`,`size${B(n)}`,`${a}Size${B(n)}`,`color${B(o)}`,t&&"disableElevation",i&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${B(n)}`],endIcon:["icon","endIcon",`iconSize${B(n)}`]},c=Re(u,ko,r);return b({},r,c)},ze=e=>b({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Do=H($o,{shouldForwardProp:e=>to(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[t.variant],o[`${t.variant}${B(t.color)}`],o[`size${B(t.size)}`],o[`${t.variant}Size${B(t.size)}`],t.color==="inherit"&&o.colorInherit,t.disableElevation&&o.disableElevation,t.fullWidth&&o.fullWidth]}})(({theme:e,ownerState:o})=>{var t,i;const n=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return b({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":b({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:J.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},o.variant==="text"&&o.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:J.alpha(e.palette[o.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},o.variant==="outlined"&&o.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[o.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:J.alpha(e.palette[o.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},o.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},o.variant==="contained"&&o.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[o.color].main}}),"&:active":b({},o.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Q.focusVisible}`]:b({},o.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Q.disabled}`]:b({color:(e.vars||e).palette.action.disabled},o.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},o.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},o.variant==="text"&&{padding:"6px 8px"},o.variant==="text"&&o.color!=="inherit"&&{color:(e.vars||e).palette[o.color].main},o.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},o.variant==="outlined"&&o.color!=="inherit"&&{color:(e.vars||e).palette[o.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[o.color].mainChannel} / 0.5)`:`1px solid ${J.alpha(e.palette[o.color].main,.5)}`},o.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(t=(i=e.palette).getContrastText)==null?void 0:t.call(i,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:n,boxShadow:(e.vars||e).shadows[2]},o.variant==="contained"&&o.color!=="inherit"&&{color:(e.vars||e).palette[o.color].contrastText,backgroundColor:(e.vars||e).palette[o.color].main},o.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},o.size==="small"&&o.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},o.size==="large"&&o.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},o.size==="small"&&o.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},o.size==="large"&&o.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},o.size==="small"&&o.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},o.size==="large"&&o.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},o.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Q.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Q.disabled}`]:{boxShadow:"none"}}),Fo=H("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.startIcon,o[`iconSize${B(t.size)}`]]}})(({ownerState:e})=>b({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},ze(e))),jo=H("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.endIcon,o[`iconSize${B(t.size)}`]]}})(({ownerState:e})=>b({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},ze(e))),Ao=l.forwardRef(function(o,t){const i=l.useContext(No),n=l.useContext(Vo),a=oo(i,o),r=se({props:a,name:"MuiButton"}),{children:u,color:c="primary",component:p="button",className:f,disabled:g=!1,disableElevation:m=!1,disableFocusRipple:v=!1,endIcon:h,focusVisibleClassName:C,fullWidth:_=!1,size:V="medium",startIcon:S,type:I,variant:d="text"}=r,R=G(r,So),x=b({},r,{color:c,component:p,disabled:g,disableElevation:m,disableFocusRipple:v,fullWidth:_,size:V,type:I,variant:d}),y=Lo(x),L=S&&T.jsx(Fo,{className:y.startIcon,ownerState:x,children:S}),O=h&&T.jsx(jo,{className:y.endIcon,ownerState:x,children:h}),M=n||"";return T.jsxs(Do,b({ownerState:x,className:z(i.className,y.root,f,M),component:p,disabled:g,focusRipple:!v,focusVisibleClassName:z(y.focusVisible,C),ref:t,type:I},R,{classes:y,children:[L,u,O]}))});export{No as B,ge as T,ro as _,Vo as a,$o as b,Ao as c,Uo as d};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as z,j as e,L as re,d as se,b as te,r as j}from"./react-BW1xvPTF.js";import{aC as oe,aD as ce,z as le,t as a,aE as E,B as ne,ay as D,u as ie,az as K,I,m as de,x as me,M as ue,as as he,aF as ge,e as xe}from"./index-TmxHL85j.js";import{d as _e,g as pe,a as Ne,A as je}from"./collection-DE3QnCpW.js";import{u as be,L as fe}from"./useStore-CV_90SkB.js";import{d as $,a as ve,S as w,F as Ce,e as we,b as ke}from"./categories-BI9AXlDF.js";import{L as B}from"./LoadMore-DTUpuDyu.js";import{u as R}from"./useInfiniteGrid-pff93KiW.js";import{E as T}from"./ErrorNotice-BG40E5Ff.js";import"./sentry-BV_ZSgtd.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CtVvB8eG.js";import"./intl-CBcMB1D2.js";import"./emotion-CSxEP8yM.js";function Pe({collection:t,cover:r,itemCount:o}){const n=z(),{contractAddress:m,name:g,creator:x}=t,N=r==null||o==null,{data:i}=oe(m,N),p=r==null?(i==null?void 0:i.items)??[]:[],h=o??(i==null?void 0:i.total);function _(){n(`/collection/${m}`)}return e.jsxs("article",{className:"coll-card",role:"link",tabIndex:0,onClick:_,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),_())},children:[e.jsx("div",{className:"coll-card__media",children:r?e.jsx("img",{className:"coll-card__img","data-testid":"coll-card-img",src:r,alt:"",loading:"lazy"}):p.length>0?e.jsx(ce,{items:p,className:"coll-card__cover"}):null}),e.jsxs("div",{className:"coll-card__body",children:[e.jsx("h3",{className:"coll-card__name",title:g,children:g}),e.jsxs("div",{className:"coll-card__meta",children:[x?e.jsx(le,{address:x,className:"coll-card__creator",linkToProfile:!0}):e.jsx("span",{className:"coll-card__creator",children:" "}),e.jsx("span",{className:"coll-card__count",children:h==null?"…":a("collectionCard.itemCount",{count:h})})]}),e.jsx("button",{className:"coll-card__view",onClick:d=>{d.stopPropagation(),_()},tabIndex:-1,children:a("collectionCard.viewCollection")})]})]})}function ye({address:t,className:r=""}){const o=E(m=>m.followed.includes(t.toLowerCase())),n=E(m=>m.toggle);return t?e.jsx(ne,{type:"button",size:"sm",variant:o?"ghost":"outline",className:r||void 0,"aria-pressed":o,title:o?a("creator.unfollowTitle"):a("creator.followTitle"),onClick:()=>n(t),children:o?a("creator.following"):a("creator.follow")}):null}const Se={website:"website",twitter:"twitter",discord:"discord",facebook:"facebook"};function Le({address:t}){var d,b;const{data:r}=D(t),{data:o}=be(t),n=ie(l=>{var f;return(f=l.session)==null?void 0:f.address}),m=!!n&&n.toLowerCase()===t.toLowerCase(),g=(r==null?void 0:r.name)||K(t),x=(b=(d=r==null?void 0:r.avatar)==null?void 0:d.snapshots)==null?void 0:b.face256,N=(o==null?void 0:o.cover)||_e,i=o==null?void 0:o.description,p=`${de.profileUrl}/${t}`,h=fe.filter(l=>o==null?void 0:o.links[l]),_=pe(Ne({name:r==null?void 0:r.name,hasClaimedName:r==null?void 0:r.hasClaimedName,ethAddress:(r==null?void 0:r.ethAddress)??t}));return e.jsxs("section",{className:"creator-hero","aria-label":`${g} storefront`,children:[e.jsxs("div",{className:"creator-hero__cover",children:[e.jsx("img",{className:"creator-hero__cover-img",src:N,alt:"",loading:"eager"}),e.jsx("div",{className:"creator-hero__scrim","aria-hidden":!0})]}),(h.length>0||m)&&e.jsxs("div",{className:"creator-hero__links",children:[h.map(l=>e.jsx("a",{className:"creator-hero__link","data-testid":"creator-hero-link",href:(o==null?void 0:o.links[l])??"",target:"_blank",rel:"noopener noreferrer",title:a(`creator.link.${l}`),"aria-label":a(`creator.link.${l}`),children:e.jsx(I,{name:Se[l]})},l)),m&&e.jsx(re,{className:"creator-hero__link creator-hero__edit",to:"/store-settings",title:a("creator.editStore"),"aria-label":a("creator.editStore"),children:e.jsx(I,{name:"pen"})})]}),e.jsxs("div",{className:"creator-hero__body",children:[x?e.jsx("img",{className:"creator-hero__ava",src:x,alt:"",loading:"eager",style:{backgroundColor:_}}):e.jsx("span",{className:"creator-hero__ava creator-hero__ava--ph","aria-hidden":!0,style:{backgroundColor:_}}),e.jsxs("div",{children:[e.jsx("h2",{className:"creator-hero__name",children:g}),i?e.jsx("p",{className:"creator-hero__desc",children:i}):null]}),e.jsxs("div",{className:"creator-hero__actions",children:[e.jsx("a",{className:"creator-hero__view","data-testid":"creator-hero-view",href:p,target:"_blank",rel:"noopener noreferrer",children:a("creator.viewProfile")}),e.jsx(ye,{address:t,className:"creator-hero__follow"})]})]})]})}const U=48;function Oe(){const{address:t}=se(),r=z(),[o]=te(),n=o.has("collections"),{data:m}=D(t),g=(m==null?void 0:m.name)||(t?K(t):a("creator.fallbackName"));me({title:g,description:a("seo.creator.description",{name:g})});const[x,N]=j.useState("wearable"),[i,p]=j.useState(null),[h,_]=j.useState([]),[d,b]=j.useState(""),[l,f]=j.useState(""),[P,O]=j.useState("newest"),y=d&&!Number.isNaN(Number(d))?Number(d):void 0,S=l&&!Number.isNaN(Number(l))?Number(l):void 0,G=i?ke[i]:void 0,H=($.find(s=>s.key===P)??$[0]).server,L={creator:t,category:x,rarities:h.length?h:void 0,wearableCategories:G,minPriceCredits:y,maxPriceCredits:S,sortBy:H},{items:v,total:Y,isLoading:C,error:A,hasNextPage:W,isFetchingNextPage:F,fetchNextPage:Z}=R(["creator-listings",L],s=>he({...L,first:U,skip:s}),{enabled:!!t&&!n}),u=R(["creator-collections",t],s=>ge(t,{first:U,skip:s}).then(c=>({items:c.collections,total:c.total})),{enabled:!!t&&n});function q(s){N(s),p(null),n&&M()}function M(){const s=new URLSearchParams(o);s.delete("collections");const c=s.toString();r({search:c?`?${c}`:""},{replace:!0})}function J(){if(n){M();return}const s=new URLSearchParams(o);s.delete("collections");const c=s.toString();r({search:c?`?${c}&collections`:"?collections"},{replace:!0})}function Q(s){_(c=>c.includes(s)?c.filter(ae=>ae!==s):[...c,s])}function V(){N("wearable"),p(null),_([]),b(""),f("")}const k=!!(y||S),X=k?`${d||"0"}–${l||"∞"}`:a("filter.price"),ee=x!=="wearable"||!!i||h.length>0||k;return e.jsxs("div",{className:"collection-page",children:[e.jsxs("nav",{className:"collection-page__crumbs","aria-label":a("creator.breadcrumbAria"),children:[e.jsx("button",{className:"collection-page__crumb-link",onClick:()=>r("/assets"),children:a("creator.breadcrumb")}),e.jsx("span",{className:"collection-page__crumb-sep",children:"/"}),e.jsx("span",{className:"collection-page__crumb-current",children:g})]}),t?e.jsx(Le,{address:t}):null,!n&&!C&&v.length>0?e.jsx(je,{items:v,source:"creator"}):null,e.jsxs("div",{className:"browse browse--sidebar",children:[e.jsx("aside",{className:"browse__sidebar",children:e.jsx(ve,{category:x,subCategory:i,onCategory:q,onSub:p,title:a("creator.category"),flat:!0,collections:n,onCollections:J})}),e.jsx("div",{className:"browse__main",children:n?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"creator-collections__bar",children:e.jsx("span",{className:"assets__count",children:u.isLoading?"…":a("creator.collectionsCount",{count:u.total})})}),u.error?e.jsx(T,{message:a("creator.error")}):null,e.jsx("div",{className:"grid grid--collections",children:u.isLoading?e.jsx(w,{count:9}):e.jsxs(e.Fragment,{children:[u.items.map(s=>e.jsx(Pe,{collection:s,itemCount:s.itemCount},s.contractAddress)),u.isFetchingNextPage?e.jsx(w,{count:6}):null]})}),e.jsx(B,{hasNextPage:u.hasNextPage,isFetching:u.isFetchingNextPage,onLoadMore:()=>void u.fetchNextPage()}),!u.isLoading&&!u.error&&u.items.length===0?e.jsx("p",{className:"muted",children:a("creator.collectionsEmpty")}):null]}):e.jsxs(e.Fragment,{children:[e.jsx(Ce,{rarities:h,onToggleRarity:Q,sort:P,onSort:O,total:Y,loading:C,anyActive:ee,onClear:V,renderTrailing:s=>e.jsx(we,{panelKey:"price",label:X,active:k,panel:s,children:e.jsxs("div",{className:"filter-pop filter-pop--price",children:[e.jsxs("div",{className:"filter-pop__price-row",children:[e.jsx("input",{type:"number",min:"0","aria-label":a("creator.priceMin"),placeholder:a("creator.priceMinPlaceholder"),value:d,onChange:c=>b(c.target.value)}),e.jsx("span",{children:"–"}),e.jsx("input",{type:"number",min:"0","aria-label":a("creator.priceMax"),placeholder:a("creator.priceMaxPlaceholder"),value:l,onChange:c=>f(c.target.value)})]}),e.jsx("p",{className:"filter-pop__hint",children:a("creator.priceHint",{currency:xe.name})})]})})}),A?e.jsx(T,{message:a("creator.error")}):null,e.jsx("div",{className:"grid",children:C?e.jsx(w,{count:15}):e.jsxs(e.Fragment,{children:[v.map(s=>e.jsx(ue,{item:s},s.id)),F?e.jsx(w,{count:6}):null]})}),e.jsx(B,{hasNextPage:W,isFetching:F,onLoadMore:()=>void Z()}),!C&&!A&&v.length===0?e.jsx("p",{className:"muted",children:a("creator.empty")}):null]})})]})]})}export{Oe as Creator,Oe as default};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{u as U,r as g,j as e,L as $}from"./react-BW1xvPTF.js";import{y as P,t as s,e as w,B as y,C as b,j as W,J as F,x as O,u as z,b as J,n as Y,s as R,U as D}from"./index-TmxHL85j.js";import{i as G,R as H,f as V}from"./import-CZZ9-DX_.js";import{u as X}from"./useSecondarySales-BRJGIRwF.js";import"./sentry-BV_ZSgtd.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CtVvB8eG.js";import"./intl-CBcMB1D2.js";import"./buy-DnSS_Kop.js";import"./authorizations-Ds7LRLV0.js";import"./sendMetaTransaction-7YAoB-pL.js";import"./trade-encoding-CcRCeIpG.js";import"./mana-rate-C8zn6Vfu.js";function Z({queue:n,session:C,onClose:x,onDone:p}){const j=U(),d=P(C.providerType),[m,_]=g.useState(()=>n.map(()=>"pending")),[M,E]=g.useState("running"),N=g.useRef(!1);g.useEffect(()=>{if(N.current)return;N.current=!0;let t=!1;return(async()=>{for(let a=0;a<n.length;a++){if(t)return;_(o=>o.map((u,h)=>h===a?"active":u));try{await G(n[a].item,n[a].priceCredits,C),W("Shop Migrated Listing",{item_id:n[a].item.itemId??n[a].item.oldTradeId??null,contract_address:n[a].item.contractAddress,new_price_credits:n[a].priceCredits,new_price_usd:n[a].priceCredits/10}),t||_(o=>o.map((u,h)=>h===a?"done":u))}catch(o){if(o instanceof H)F(o,{flow:"import_listing",step:"relist",itemId:n[a].item.itemId??n[a].item.oldTradeId}),t||_(u=>u.map((h,k)=>k===a?"unlisted":h));else{const u=o,h=u.code===4001||/reject|denied|cancel/i.test(u.message??"");h||F(o,{flow:"import_listing",itemId:n[a].item.itemId??n[a].item.oldTradeId}),t||_(k=>k.map((T,Q)=>Q===a?h?"skipped":"failed":T))}}}t||E("finished")})(),()=>{t=!0}},[]);const f=m.filter(t=>t==="done").length,L=m.findIndex(t=>t==="active"),S=Math.round(m.filter(t=>t!=="pending"&&t!=="active").length/n.length*100);function v(){p(),x()}if(M==="finished"){const t=m.filter(a=>a==="skipped"||a==="failed").length,c=m.filter(a=>a==="unlisted").length;return e.jsx("div",{className:"modal-backdrop",role:"presentation",children:e.jsxs("div",{className:"modal modal--success",role:"dialog","aria-modal":"true",children:[e.jsx("div",{className:"modal-success__check","aria-hidden":!0,children:"✓"}),e.jsx("h2",{className:"modal__title",children:f>0?s("migrate.successTitle"):s("migrate.nothingTitle")}),e.jsxs("p",{className:"muted",style:{margin:0},children:[f>0?s("migrate.listedSummary",{count:f,currency:w.name}):s("migrate.noneListed"),t>0?" "+s("migrate.skippedSummary",{count:t}):"",c>0?" "+s("migrate.unlistedSummary",{count:c}):""]}),e.jsxs("div",{className:"modal__actions",children:[e.jsx(y,{variant:"ghost",onClick:v,children:s("getCredits.done")}),c>0?e.jsx(y,{variant:"purple",onClick:()=>{p(),x(),j("/my-assets")},children:s("migrate.goToMyAssets")}):f>0?e.jsx(y,{variant:"purple",onClick:()=>{p(),x(),j("/assets")},children:s("migrate.viewInShop")}):null]})]})})}return e.jsx("div",{className:"modal-backdrop",role:"presentation",children:e.jsxs("div",{className:"modal migrate","data-testid":"modal",role:"dialog","aria-modal":"true","aria-live":"polite",children:[e.jsx("h2",{className:"modal__title",children:s("migrate.listingTitle")}),e.jsxs("p",{className:"muted small",style:{margin:"0 0 4px"},children:[d?s("migrate.subConfirm"):s("migrate.subManaged")," ",L>=0?s("migrate.progressCount",{current:L+1,total:n.length}):""]}),e.jsx("div",{className:"migrate__progress",children:e.jsx("div",{className:"migrate__bar",style:{width:`${S}%`}})}),e.jsx("ul",{className:"migrate__list",children:n.map((t,c)=>e.jsxs("li",{className:`migrate__row migrate__row--${m[c]}`,children:[e.jsx("span",{className:"migrate__thumb",children:t.item.thumbnail?e.jsx("img",{src:t.item.thumbnail,alt:""}):null}),e.jsx("span",{className:"migrate__name",title:t.item.name,children:t.item.name||s("migrate.itemFallback")}),e.jsxs("span",{className:"migrate__price",children:[e.jsx(b,{className:"ccy-mark"})," ",t.priceCredits.toLocaleString()]}),e.jsx("span",{className:"migrate__status",children:m[c]==="active"?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"spinner migrate__spin","aria-hidden":!0})," ",d?s("migrate.statusConfirm"):s("migrate.statusAdding")]}):m[c]==="done"?e.jsx("span",{className:"migrate__tick",children:"✓"}):m[c]==="skipped"?e.jsx("span",{className:"migrate__skip",children:s("migrate.statusSkipped")}):m[c]==="failed"?e.jsx("span",{className:"migrate__skip",children:s("migrate.statusFailed")}):m[c]==="unlisted"?e.jsx("span",{className:"migrate__skip",title:s("migrate.unlistedTooltip"),children:s("migrate.statusUnlisted")}):e.jsx("span",{className:"migrate__wait",children:s("migrate.statusWaiting")})})]},t.item.oldTradeId))}),e.jsx("p",{className:"muted small migrate__hint",children:d?s("migrate.hintConfirm"):s("migrate.hintManaged")})]})})}const K=R(y)`
|
|
2
|
-
margin-top: 10px;
|
|
3
|
-
`,q=R(y)`
|
|
4
|
-
padding: 13px 24px;
|
|
5
|
-
`,ee=[{key:"creations",title:"importListings.creations.title",sub:"importListings.creations.sub"},{key:"owned",title:"importListings.owned.title",sub:"importListings.owned.sub",secondary:!0}];function ge(){O({title:s("seo.import.title"),noindex:!0});const{session:n,signIn:C,restore:x}=z(),p=J(),j=n==null?void 0:n.address;g.useEffect(()=>{x()},[x]);const{data:d,isLoading:m}=Y({queryKey:["importable",j],queryFn:()=>V(j),enabled:!!j}),_=X(),M=g.useMemo(()=>ee.filter(r=>!r.secondary||_),[_]),[E,N]=g.useState({}),[f,L]=g.useState(new Set),[S,v]=g.useState(null),t=g.useMemo(()=>[...(d==null?void 0:d.creations)??[],..._?(d==null?void 0:d.owned)??[]:[]],[d,_]);g.useEffect(()=>{t.length&&N(r=>{const l={...r};for(const i of t)l[i.oldTradeId]==null&&(l[i.oldTradeId]=i.suggestedCredits);return l})},[t]);const c=r=>!f.has(r),a=r=>E[r.oldTradeId]??r.suggestedCredits,o=t.filter(r=>c(r.oldTradeId)),u=o.reduce((r,l)=>r+a(l),0);function h(r,l){const i=l.replace(/[^\d]/g,"");N(I=>({...I,[r]:i===""?0:parseInt(i,10)}))}function k(r){L(l=>{const i=new Set(l);return i.has(r)?i.delete(r):i.add(r),i})}function T(r){return r.map(l=>({item:l,priceCredits:Math.max(1,a(l))}))}function Q(){p.invalidateQueries({queryKey:["importable"]}),p.invalidateQueries({queryKey:["shop-items"]}),p.invalidateQueries({queryKey:["catalog-items"]}),p.invalidateQueries({queryKey:["overview-listings"]}),p.invalidateQueries({queryKey:["upsell-listings"]}),p.invalidateQueries({queryKey:["my-assets"]}),p.invalidateQueries({queryKey:["collection-sale-state"]}),D.success(s("importListings.toastUpdated"))}return n?!m&&t.length===0?e.jsxs("div",{className:"imp-empty",children:[e.jsx("span",{className:"imp-empty__ico","aria-hidden":!0,children:"✨"}),e.jsx("h1",{className:"imp-empty__title",children:s("importListings.emptyTitle")}),e.jsx("p",{className:"muted",children:s("importListings.emptyBody")}),e.jsx(K,{as:$,to:"/my-assets",variant:"purple",children:s("importListings.goToMyAssets")})]}):e.jsxs("div",{className:"imp",children:[e.jsxs("header",{className:"imp__head",children:[e.jsx("span",{className:"imp__eyebrow",children:s("importListings.eyebrow")}),e.jsxs("h1",{className:"imp__title",children:[s("importListings.titleLead")," ",e.jsx("span",{className:"imp__grad",children:s("importListings.titleAccent")})]}),e.jsx("p",{className:"imp__lede",children:s("importListings.lede",{currency:w.name})})]}),e.jsxs("div",{className:"imp__ratebar",children:[e.jsx(b,{className:"ccy-mark imp__diamond"})," ",s("importListings.rate",{currency:w.nameSingular})]}),m?e.jsx("div",{className:"imp__list",children:Array.from({length:4}).map((r,l)=>e.jsx("div",{className:"imp-row imp-row--skeleton"},l))}):M.map(r=>{const l=(d==null?void 0:d[r.key])??[];return l.length===0?null:e.jsxs("section",{className:"imp__section",children:[e.jsxs("div",{className:"imp__section-head",children:[e.jsx("h2",{className:"imp__section-title",children:s(r.title)}),e.jsx("span",{className:"imp__section-sub",children:s(r.sub)})]}),e.jsx("div",{className:"imp__list",children:l.map(i=>{const I=a(i),B=I!==i.suggestedCredits;return e.jsxs("article",{className:`imp-row${c(i.oldTradeId)?"":" is-off"}`,children:[e.jsx("input",{type:"checkbox",className:"imp-check",checked:c(i.oldTradeId),onChange:()=>k(i.oldTradeId),"aria-label":s("importListings.includeItem",{name:i.name})}),e.jsx("div",{className:"imp-thumb",children:i.thumbnail?e.jsx("img",{src:i.thumbnail,alt:""}):null}),e.jsxs("div",{className:"imp-meta",children:[e.jsx("div",{className:"imp-name",title:i.name,children:i.name||s("importListings.itemFallback")}),e.jsx("span",{className:"imp-chip",children:i.rarity})]}),e.jsxs("div",{className:"imp-price",children:[e.jsxs("div",{className:"imp-price__field",children:[e.jsx(b,{className:"ccy-mark imp-price__diamond"}),e.jsx("input",{className:"imp-price__input","data-testid":"imp-price-input",inputMode:"numeric",value:I.toLocaleString(),onChange:A=>h(i.oldTradeId,A.target.value),"aria-label":s("importListings.priceAria",{currency:w.name,name:i.name})})]}),e.jsxs("div",{className:"imp-price__sub",children:[e.jsxs("span",{children:["$",(I*.1).toFixed(2)]}),B?e.jsxs("button",{className:"imp-price__reset",onClick:()=>N(A=>({...A,[i.oldTradeId]:i.suggestedCredits})),children:[s("importListings.resetTo")," ",e.jsx(b,{className:"ccy-mark"}),i.suggestedCredits.toLocaleString()]}):null]})]}),e.jsx("div",{className:"imp-action",children:e.jsx(y,{size:"sm",className:"imp-row__list",disabled:!c(i.oldTradeId),onClick:()=>v(T([i])),children:s("importListings.list")})})]},i.oldTradeId)})})]},r.key)}),e.jsx("div",{className:"imp-dock",children:e.jsxs("div",{className:"imp-dock__inner",children:[e.jsxs("div",{className:"imp-dock__summary",children:[e.jsxs("div",{className:"imp-dock__total",children:[e.jsx(b,{className:"ccy-mark imp__diamond"})," ",u.toLocaleString()]}),e.jsx("div",{className:"imp-dock__sub",children:s("importListings.selectedSummary",{count:o.length,usd:(u*.1).toFixed(2)})})]}),e.jsx("span",{className:"imp-dock__spacer"}),e.jsx(q,{variant:"purple",disabled:o.length===0,onClick:()=>v(T(o)),children:s("importListings.listAll",{count:o.length})})]})}),S&&n?e.jsx(Z,{queue:S,session:n,onClose:()=>v(null),onDone:Q}):null]}):e.jsxs("div",{className:"imp-empty",children:[e.jsx("span",{className:"imp-empty__ico","aria-hidden":!0,children:"📦"}),e.jsx("h1",{className:"imp-empty__title",children:s("importListings.signInTitle")}),e.jsx("p",{className:"muted",children:s("importListings.signInBody")}),e.jsx(K,{variant:"purple",onClick:()=>C(),children:s("storeSettings.signIn")})]})}export{ge as ImportListings};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{u as z,r as h,j as r}from"./react-BW1xvPTF.js";import{u as O,a as V,b as Y,t,c as y,C as b,f as S,d as H,e as w,g as $,i as D,h as J,j as p,k as M,l as q,s as X,B as Z}from"./index-TmxHL85j.js";import{m as j}from"./mana-rate-C8zn6Vfu.js";import{b as Q}from"./buy-DnSS_Kop.js";import{b as ee,w as re,S as ae,G as te}from"./buy-gasless-9Zn1yAMk.js";import{g as se}from"./authorizations-Ds7LRLV0.js";import{i as ie}from"./errors-CG6pp58g.js";import{E as ce}from"./ErrorNotice-BG40E5Ff.js";const F=X(Z)`
|
|
2
|
-
flex: 1;
|
|
3
|
-
`;function K(e){if(ie(e))return t("errors.rejected");const d=(e.message??"").toLowerCase();return d.includes("insufficient")?t("marketCheckout.error.insufficient",{currency:w.name}):d.includes("not found")||d.includes("no active listing")||d.includes("404")?t("marketCheckout.error.soldOrRemoved"):d.includes("your own listing")?t("errors.cantBuyOwn"):t("marketCheckout.error.generic")}function de(e){return{id:e.tradeId,tradeId:e.tradeId,name:e.name,creator:e.creator,contractAddress:e.contractAddress,itemId:e.itemId,category:e.category,wearableCategory:e.wearableCategory??void 0,rarity:e.rarity,network:e.network,chainId:e.chainId,thumbnail:e.thumbnail,priceCredits:0,gender:null,isSmart:!1}}function fe({listing:e,rate:d,onClose:A,onSold:R}){const{session:i}=O(),{data:n,isError:B}=V(i),o=Y(),N=z(),[g,f]=h.useState("confirm"),[C,E]=h.useState(t("marketCheckout.lockingPrice")),[U,v]=h.useState(null),[a,W]=h.useState(null),l=h.useRef(null),G=Math.ceil(j(e.manaWei,d)/10);h.useEffect(()=>{let u=!1;if(!i){f("error"),v(t("buyModal.signInToCheckout"));return}return(async()=>{try{const s=await $(e.tradeId);if(!s)throw new Error("not found");if(D(s,i.address))throw new Error("You can't buy your own listing.");const k=j(e.manaWei,d);if(!Number.isFinite(k)||k<=0)throw new Error("price unavailable");const{credit:m,maxCreditedValue:T,usdCents:P}=await J(i.identity,k,e.tradeId);if(u){y(i.identity,[m.id]).catch(()=>{});return}l.current=m.id,W({trade:s,credit:m,maxCreditedValue:T,usdCents:P,credits:Math.ceil(P/10)}),E("")}catch(s){if(u)return;console.error("[market] authorize failed",s),p(q(s)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"authorize",error_code:M(s),value_usd:Math.round(j(e.manaWei,d))/100}),f("error"),v(K(s))}})(),()=>{u=!0,l.current&&i&&(y(i.identity,[l.current]).catch(()=>{}),l.current=null)}},[]);const x=!!a&&n!=null&&n.credits<a.credits;async function L(){if(!i||!a)return;if(x){p("Shop Buy Credits Prompted",{from:"item_checkout",credits_needed:a.credits,credits_balance:(n==null?void 0:n.credits)??0,shortfall:Math.max(0,a.credits-((n==null?void 0:n.credits)??0))}),y(i.identity,[a.credit.id]).catch(()=>{}),l.current=null,N("/credits");return}f("working"),v(null);let u=!1;try{E(t("marketCheckout.confirming"));const c={trade:a.trade,buyer:i.address,signer:i.signer,credits:[a.credit],maxCreditedValue:a.maxCreditedValue};let s;if(se())try{s=await ee(c),await re(s),u=!0}catch(m){if(m instanceof ae)u=!0;else if(m instanceof te)s=await Q(c);else throw m}else s=await Q(c);l.current=null,p("Shop Completed Purchase",{items:[{item_id:e.itemId??null,contract_address:e.contractAddress,token_id:null,price_usd:a.usdCents/100}],value_credits:a.credits,value_usd:a.usdCents/100,purchase_type:"item",is_primary:!0,payment_type:"credits",no_crypto_step:u,transaction_hash:s??null}),o.invalidateQueries({queryKey:["usd-balance"]}),o.invalidateQueries({queryKey:["detail-trade"]}),o.invalidateQueries({queryKey:["shop-item"]}),o.invalidateQueries({queryKey:["item-resales",e.contractAddress,e.itemId]}),o.invalidateQueries({queryKey:["shop-items"]}),o.invalidateQueries({queryKey:["catalog-items"]}),o.invalidateQueries({queryKey:["my-assets"]}),o.invalidateQueries({queryKey:["purchases"]});const k={items:[de(e)],txHash:s};N("/success",{state:k})}catch(c){console.error("[market] buy now failed",c),y(i.identity,[a.credit.id]).catch(()=>{}),l.current=null,p(q(c)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:M(c),value_usd:a.usdCents/100}),o.invalidateQueries({queryKey:["usd-balance"]}),v(K(c)),f("error");const s=(c.message??"").toLowerCase();(s.includes("not found")||s.includes("no active listing")||s.includes("404"))&&R()}}function I(){i&&a&&y(i.identity,[a.credit.id]).catch(()=>{}),l.current=null,A()}const _=g==="working";return r.jsxs("div",{className:"mkt-modal",role:"dialog","aria-modal":"true","aria-label":t("buyModal.dialogAria",{name:e.name}),children:[r.jsx("div",{className:"mkt-modal__scrim",onClick:_?void 0:I,"aria-hidden":!0}),r.jsxs("div",{className:"mkt-modal__card",children:[r.jsxs("div",{className:"mkt-modal__head",children:[r.jsx("div",{className:"mkt-modal__thumb",children:e.thumbnail?r.jsx("img",{src:e.thumbnail,alt:""}):null}),r.jsxs("div",{children:[r.jsx("div",{className:"mkt-modal__name",title:e.name,children:e.name||t("buyModal.itemFallback")}),r.jsx("span",{className:"chip chip--rarity",children:e.rarity})]})]}),r.jsx("div",{className:"mkt-modal__price",children:a?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"mkt-modal__price-label",children:t("marketCheckout.finalPrice")}),r.jsxs("div",{className:"mkt-modal__price-value",children:[r.jsx(b,{className:"mkt-modal__diamond"}),S(a.credits)]}),r.jsxs("div",{className:"mkt-modal__price-sub muted",children:[t("marketCheckout.lockedForPurchase")," · $",(a.usdCents/100).toFixed(2)]})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"mkt-modal__price-label",children:t("marketCheckout.todaysPrice")}),r.jsxs("div",{className:"mkt-modal__price-value mkt-modal__price-value--approx",children:[r.jsx("span",{className:"mkt-modal__approx","aria-hidden":!0,children:"≈"}),r.jsx(b,{className:"mkt-modal__diamond"}),S(G)]}),r.jsx("div",{className:"mkt-modal__price-sub muted",children:C||t("marketCheckout.lockingPrice")})]})}),i?r.jsxs("div",{className:"mkt-modal__balance muted",children:[t("marketCheckout.yourBalance")," ",r.jsx(b,{className:"ccy-mark"})," ",H(n,B)]}):null,x?r.jsx("p",{className:"muted mkt-modal__note",children:t("marketCheckout.needMore",{currency:w.name})}):null,C&&g==="working"?r.jsx("p",{className:"muted mkt-modal__note",children:C}):null,r.jsx(ce,{message:U,className:"mkt-modal__note"}),r.jsxs("div",{className:"mkt-modal__actions",children:[r.jsx(F,{variant:"ghost",onClick:I,disabled:_,children:t("buyModal.cancel")}),r.jsx(F,{variant:"purple",onClick:()=>void L(),disabled:_||!a,children:_?t("marketCheckout.buying"):x?t("nav.getCredits",{currency:w.name}):t("marketCheckout.confirmPurchase")})]})]})]})}export{fe as M};
|