@dcl/shop 0.1.0-30565861644.commit-86fa62d → 0.1.0-30612955316.commit-0d9b744
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-YIu0M1Kf.js → Activity-BF3WNwMh.js} +1 -1
- package/assets/{AnimatedBackground-BrxVl8X0.js → AnimatedBackground-DTgtqP8R.js} +1 -1
- package/assets/{Assets-Dwlho6_C.js → Assets-B9KXwYG0.js} +2 -2
- package/assets/{Assets.styles-CfTWTkg9.js → Assets.styles-Dm_MgfhY.js} +1 -1
- package/assets/{Authorizations-BMPo5lsC.js → Authorizations--gatNHIW.js} +1 -1
- package/assets/{Cart-DS3i-ZcL.js → Cart-Cs0FD0IN.js} +2 -2
- package/assets/{CircularProgress-BrgD7rFE.js → CircularProgress-BRaMu2HF.js} +1 -1
- package/assets/{Collection-wJlJYfNj.js → Collection-BIR5xrVe.js} +1 -1
- package/assets/{CollectionCarousel-Bns794gp.js → CollectionCarousel-oh8d08gi.js} +1 -1
- package/assets/{Creator-Bz4Ol9VJ.js → Creator-jKJMNfvf.js} +1 -1
- package/assets/{ErrorNotice-Z0D8os9s.js → ErrorNotice-C2qBxBzo.js} +1 -1
- package/assets/{ExchangeController-DWJqUlaQ.js → ExchangeController-BJ20Rri0.js} +1 -1
- package/assets/{GetCredits-DaqSIDEt.js → GetCredits-DWkdHCSk.js} +97 -60
- package/assets/{HelpersUtil-BmEt66tk.js → HelpersUtil-Bc_-rYa4.js} +1 -1
- package/assets/{ImportListings-tR_OXub1.js → ImportListings-C61E-WD4.js} +1 -1
- package/assets/{ItemDetail-n9hpow28.js → ItemDetail-BFNeFxLh.js} +3 -3
- package/assets/{LoadMore-DI4Wyn-C.js → LoadMore-BI2cyij4.js} +1 -1
- package/assets/{MenuList-CYC3zRYf.js → MenuList-CsoSKANx.js} +1 -1
- package/assets/{MyAssets-CRBhFPGQ.js → MyAssets-B8jlwAvA.js} +1 -1
- package/assets/{MyFavorites-B6grtRZj.js → MyFavorites-B6kCgq1h.js} +1 -1
- package/assets/{NotFound-0L1xj8db.js → NotFound-CWtlpg63.js} +1 -1
- package/assets/{NotificationsBell-B5Q9EIqa.js → NotificationsBell-wPKuEs_b.js} +1 -1
- package/assets/{StoreSettings-CUyzwheq.js → StoreSettings-BW2EY9gn.js} +1 -1
- package/assets/{Success-DXPvtMrB.js → Success-CTKJzQjE.js} +1 -1
- package/assets/{SwapController-CP6wYtUi.js → SwapController-DHr7xvAI.js} +1 -1
- package/assets/{Tooltip-BbHzoPIy.js → Tooltip-DFmfpHxa.js} +1 -1
- package/assets/{TradeService-CbR5e6j8.js → TradeService-BxS-ssTi.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-CAciSeGb.js → W3MFrameProviderSingleton-D3RatyJZ.js} +3 -3
- package/assets/{WebCryptoP256-BJObUJ75.js → WebCryptoP256-DLlMYv1t.js} +1 -1
- package/assets/{authorizations-B6wWjXdQ.js → authorizations-BrAVsIY_.js} +1 -1
- package/assets/{basic-PrtqXBMx.js → basic-B1iPuZqz.js} +1 -1
- package/assets/{biconomy-CXoNqd-Z.js → biconomy-CReC5_o1.js} +1 -1
- package/assets/{browseLayout.styles-B_NNL83E.js → browseLayout.styles-Ck-h2OX5.js} +1 -1
- package/assets/{builder-DJzcrQAM.js → builder-BW_vsdgs.js} +1 -1
- package/assets/{buy-D3hY4JG8.js → buy-DLi3_94e.js} +1 -1
- package/assets/{buy-gasless-CmOMFX1L.js → buy-gasless-DoEdxK3L.js} +1 -1
- package/assets/{categories-CX6i4K78.js → categories-P1zgLmzy.js} +1 -1
- package/assets/{ccip-Dd-dexDO.js → ccip-BHjcKqJV.js} +1 -1
- package/assets/{ccip-w3FPfxqw.js → ccip-CZBbVQi3.js} +1 -1
- package/assets/{clsx-BRGjhjlu.js → clsx-DhFqZi_3.js} +1 -1
- package/assets/{controller-DwX-jKZc.js → controller-DGy85CgR.js} +2 -2
- package/assets/{core-D2eU58P9.js → core-Db5S1VHS.js} +4 -4
- package/assets/{createSvgIcon-BVcvIe2E.js → createSvgIcon-DLpGC0um.js} +1 -1
- package/assets/{custom-C8kunAUg.js → custom-ClweN61f.js} +1 -1
- package/assets/{data-capture-5SXe7x0r.js → data-capture-z84EsTtU.js} +1 -1
- package/assets/{email-Bn0Sv8j4.js → email-CcLkWyvu.js} +1 -1
- package/assets/{embedded-wallet-C8c_78Uv.js → embedded-wallet-COy2jXd-.js} +1 -1
- package/assets/{emotion-styled.browser.esm-3ejjGoWk.js → emotion-styled.browser.esm-Bl0xNQms.js} +1 -1
- package/assets/{engine-CNGw5SdF.js → engine-D5VFTt2U.js} +1 -1
- package/assets/{errors-BYKPLdNJ.js → errors-D660SWgT.js} +1 -1
- package/assets/{estimate-l1-fee-BrG1mArn.js → estimate-l1-fee-D0AZXU9d.js} +1 -1
- package/assets/{execute-BuBESW09.js → execute-B7xe5F3I.js} +2 -2
- package/assets/{features-DJEePSdY.js → features-CDbo6Rgb.js} +1 -1
- package/assets/{fetchTokenMetadata-DbJ4fJYd.js → fetchTokenMetadata-CTdt9CEd.js} +2 -2
- package/assets/{get-ecosystem-wallet-info-BVDQHXZz.js → get-ecosystem-wallet-info-DSZkSx4X.js} +1 -1
- package/assets/{getBalance-Dwa97iHq.js → getBalance-BDX5XOeM.js} +1 -1
- package/assets/{getNFT-KnOGHpCx.js → getNFT-CVs2H6Tl.js} +1 -1
- package/assets/{getNFT-8vTqe5mx.js → getNFT-DINbSeyy.js} +1 -1
- package/assets/{getThemeProps-BkCaIJdf.js → getThemeProps-CGtqDWEq.js} +1 -1
- package/assets/{grid.styles-Cflo-ZKg.js → grid.styles-D4B-EHGj.js} +1 -1
- package/assets/{hashTypedData-zHAZUnlP.js → hashTypedData-B7lV4LZj.js} +1 -1
- package/assets/{hashTypedData-ByA_PXdL.js → hashTypedData-Dz79Rf5q.js} +1 -1
- package/assets/{import-Da_I6gAZ.js → import-DSm0v4af.js} +1 -1
- package/assets/{in-app-DAfU34Xj.js → in-app-C5pWpM6r.js} +1 -1
- package/assets/{in-app-wallet-calls-C8MSEj6u.js → in-app-wallet-calls-DXx7lWeR.js} +1 -1
- package/assets/{index-BkQsw_6m.js → index-1c_qW8yi.js} +1 -1
- package/assets/{index-BCGTwY9C.js → index-1koyBXBc.js} +1 -1
- package/assets/{index-DTvh0ZYF.js → index-3ZTohoUZ.js} +1 -1
- package/assets/{index-CVY0sxwP.js → index-B81PeozV.js} +1 -1
- package/assets/{index-IEBvb9g0.js → index-B8zb5Fyq.js} +1 -1
- package/assets/{index-DX8GIl1w.js → index-BBkUTtNV.js} +1 -1
- package/assets/{index-DhHGVFYf.js → index-BFSsZJPW.js} +1 -1
- package/assets/{index-D34PBlHH.js → index-BJ-25Q5l.js} +1 -1
- package/assets/{index-B6EsaBwe.js → index-BZocXWA4.js} +1 -1
- package/assets/{index-CGd-1UpW.js → index-BgoikptS.js} +1 -1
- package/assets/{index-BnWc8jyR.js → index-BobbFiKW.js} +1 -1
- package/assets/{index-BFQ3WGPq.js → index-C-C5pEJc.js} +1 -1
- package/assets/{index-CkshIr8A.js → index-C0LSKXhw.js} +1 -1
- package/assets/{index-DeUn3r_V.js → index-C0odNd_G.js} +1 -1
- package/assets/{index-CuYL-Baw.js → index-CJgXTNhS.js} +1 -1
- package/assets/{index-BOei64ey.js → index-CKEG3W2m.js} +1 -1
- package/assets/{index-SG2QR9w5.js → index-CLBmEx6A.js} +3 -3
- package/assets/{index-DQwfF15K.js → index-CX5Ekh69.js} +1 -1
- package/assets/{index-CzKTIGRh.js → index-CXntdDwE.js} +2 -2
- package/assets/{index-vQ_2c6zv.js → index-CZ1tNVf6.js} +1 -1
- package/assets/{index-DMlJeY00.js → index-CZTqkynu.js} +1 -1
- package/assets/{index-CRiWMT-r.js → index-CbITlqFn.js} +1 -1
- package/assets/{index-CkqeusMi.js → index-CdsKR_zs.js} +1 -1
- package/assets/{index-DmUPrDg1.js → index-CkBDyoGg.js} +1 -1
- package/assets/{index-Dltarl5j.js → index-Cl-v7TvL.js} +1 -1
- package/assets/{index-BKmu2o-E.js → index-CpqhaC2H.js} +1 -1
- package/assets/{index-DTtN3FMo.js → index-CuPPMOVj.js} +1 -1
- package/assets/{index-Bvsc2jDb.js → index-Cw6mXTIQ.js} +1 -1
- package/assets/{index-CkzcSx5U.js → index-CwVjvkdk.js} +1 -1
- package/assets/{index-Azrqm6Av.js → index-CzByZQWv.js} +1 -1
- package/assets/{index-Dla9ohqE.js → index-D7R57an8.js} +2 -2
- package/assets/{index-CvD8tr1x.js → index-DIR4uPmO.js} +1 -1
- package/assets/{index-DWsuciPI.js → index-DMjEzVVJ.js} +1 -1
- package/assets/{index-Dl_EomMH.js → index-DQ2sE8uD.js} +1 -1
- package/assets/{index-Ddw9OYjW.js → index-DU8_EWWx.js} +1 -1
- package/assets/{index-MmxQtN7S.js → index-DZg10nMY.js} +1 -1
- package/assets/{index-DJk-Gyy6.js → index-DfTLbDYm.js} +1 -1
- package/assets/{index-MBO4iF-x.js → index-DiOmLLPI.js} +1 -1
- package/assets/{index-Q9aqPNo3.js → index-DjbRx8bI.js} +1 -1
- package/assets/{index-BRBJXQFj.js → index-Dr4K4hFL.js} +3 -3
- package/assets/{index-CfiHgp7t.js → index-Dw4Gh8Hk.js} +2 -2
- package/assets/{index-I6AhOucd.js → index-G1xB9dvf.js} +1 -1
- package/assets/{index-BzmmiLep.js → index-NPIY1Vbs.js} +1 -1
- package/assets/{index-Kl09Ztwk.js → index-ODLNljC7.js} +1 -1
- package/assets/{index-CgmlJw-S.js → index-P_XHlb3T.js} +1 -1
- package/assets/{index-DiUDVsbw.js → index-b_a6Xe2g.js} +3 -3
- package/assets/{index-CSAUfzci.js → index-frQRdZ2q.js} +1 -1
- package/assets/{index-DHNHHzGW.js → index-gKwUmrp3.js} +1 -1
- package/assets/{index-1YMH7MTk.js → index-tdQJ2A6x.js} +1 -1
- package/assets/{index-BBHWbqVq.js → index-xZ3i_Adn.js} +1 -1
- package/assets/{index-BnbwrW-6.js → index-yJi2QIJf.js} +11 -11
- package/assets/{index.es-1Eex98-c.js → index.es-CZz1nBev.js} +1 -1
- package/assets/{index.es-Dcl8xzFM.js → index.es-CdLNKigl.js} +4 -4
- package/assets/{index.es-8mJw4ztI.js → index.es-CeoIh9-h.js} +1 -1
- package/assets/{localBatchGatewayRequest-DLZcpxp5.js → localBatchGatewayRequest-Dbz593U8.js} +1 -1
- package/assets/{mana-convert-Bc7WVBn5.js → mana-convert-DTic_WF4.js} +1 -1
- package/assets/{mana-rate-CFfqtCHS.js → mana-rate-DTd_zYK_.js} +1 -1
- package/assets/{networks-C9v8SYzv.js → networks-D-WgnPJO.js} +1 -1
- package/assets/{onramp-vHeI0Bdi.js → onramp-CxZE_awn.js} +1 -1
- package/assets/{openzeppelin-yMR9b1FL.js → openzeppelin-BicG6fZ-.js} +1 -1
- package/assets/{parseNft-DOgBlFyM.js → parseNft-crNNmDcM.js} +2 -2
- package/assets/{parseSignature-B_BQDXEi.js → parseSignature-TUf4MZpE.js} +1 -1
- package/assets/{parseSignature-CCtT275H.js → parseSignature-xro4_AeM.js} +3 -3
- package/assets/{passkeys-DC9ui3MW.js → passkeys-DlsWo5hj.js} +1 -1
- package/assets/{pay-with-exchange-DzS3VV5h.js → pay-with-exchange-uJFVzJz2.js} +1 -1
- package/assets/{qr-overlay-DBMFsWbT.js → qr-overlay-D1DRCZeg.js} +1 -1
- package/assets/{receive-DL6eap6Y.js → receive-jEtfcBkz.js} +1 -1
- package/assets/{resolveImplementation-CbIwAEHk.js → resolveImplementation-Dfr_x2D4.js} +1 -1
- package/assets/{rpc-4rFMN8E0.js → rpc-HxGwRhjl.js} +1 -1
- package/assets/{secp256k1-CJEeTac_.js → secp256k1-BeCdbOwL.js} +1 -1
- package/assets/{secp256k1-7K_lKgAG.js → secp256k1-Bmo0zLoN.js} +1 -1
- package/assets/{secp256k1-Cc-OBcqq.js → secp256k1-CPsxfMTn.js} +1 -1
- package/assets/{send-LziflfC8.js → send-SCYWhWgO.js} +1 -1
- package/assets/{send-batch-transaction-cPuMc9MS.js → send-batch-transaction-ClJpcx_r.js} +1 -1
- package/assets/{send-eip712-transaction-DrVlY4sm.js → send-eip712-transaction-DCKQGfPC.js} +2 -2
- package/assets/{send-gasless-transaction-C7GQuNPZ.js → send-gasless-transaction-C6PqTuT4.js} +2 -2
- package/assets/{send-transaction-DsHae-07.js → send-transaction-DCRA_QBx.js} +2 -2
- package/assets/{sendMetaTransaction-DVALeVb8.js → sendMetaTransaction-BOtIj1YL.js} +1 -1
- package/assets/{sendRawTransaction-BwoXNrfy.js → sendRawTransaction-BkrUK6tH.js} +3 -3
- package/assets/{serializeTransaction-HjwgZYgE.js → serializeTransaction-bVNzq6Wv.js} +1 -1
- package/assets/{session-proposal-D2B7jyYw.js → session-proposal-BwFRVt7g.js} +1 -1
- package/assets/{session-request-qG7jHYd4.js → session-request-4TbdsxSC.js} +2 -2
- package/assets/{signing-2d-SxI7E.js → signing-BxAbixw6.js} +3 -3
- package/assets/{socials-C5lHDsWb.js → socials-B5zVEegD.js} +1 -1
- package/assets/{swaps-D-FCeao1.js → swaps-DQ1LcBTU.js} +1 -1
- package/assets/{thirdweb-BzCYZVQU.js → thirdweb-r2nvH1Ph.js} +3 -3
- package/assets/{to-serializable-transaction-mtITaKz7.js → to-serializable-transaction-DMc2E6fk.js} +2 -2
- package/assets/{trade-encoding-ZhCceq00.js → trade-encoding-BFXwI1r3.js} +1 -1
- package/assets/{transactionReceipt-C0Zt7siR.js → transactionReceipt-DFdTIN3F.js} +1 -1
- package/assets/{transactions-3oKW7X2A.js → transactions-DnRd57Kk.js} +1 -1
- package/assets/useCreditPacks-DnQLmQo7.js +1 -0
- package/assets/{useInfiniteGrid-DxkPmxZ9.js → useInfiniteGrid-CDkGdzFf.js} +1 -1
- package/assets/useManaRate-DwO6H8fK.js +1 -0
- package/assets/{useSecondarySales-uafEfAWN.js → useSecondarySales-BLnZD7gi.js} +1 -1
- package/assets/{useStore-HaFF1p2U.js → useStore-Dt337zVA.js} +1 -1
- package/assets/{useTheme-DVLL-c1A.js → useTheme-DlRIY8zD.js} +1 -1
- package/assets/{verifyHash-DR9pCFUe.js → verifyHash-D8nhWUT9.js} +1 -1
- package/assets/{w3m-modal-B4U6A0YE.js → w3m-modal-D1mPkWGM.js} +1 -1
- package/assets/{w3m-modal-CaY0gxk7.js → w3m-modal-Z-IBP9yL.js} +1 -1
- package/assets/{wait-for-tx-receipt-BDXxYIXq.js → wait-for-tx-receipt-8bgpdxSo.js} +1 -1
- package/assets/{wallets-Y1872Ad0.js → wallets-BTh4qQ9L.js} +5 -5
- package/assets/{web-connector-CYEfuYp5.js → web-connector-DXtL7d_s.js} +3 -3
- package/assets/{writeContract-DrFAVNON.js → writeContract-B7vnLdJy.js} +1 -1
- package/assets/{zoraTestnet-CZflXjbY.js → zoraTestnet-kFdaoH4G.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/assets/useCreditPacks-DTZSsQrR.js +0 -1
- package/assets/useManaRate-DJlj41tJ.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{b as
|
|
1
|
+
import{b as xe,u as ue,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t as e,x as T,m as he,e as r,h as p,n as ge,E as fe,ar as f,ap as me,l as N,ay as H,I as re,aj as K,z as E,aQ as D}from"./index-yJi2QIJf.js";import{R as O}from"./resume-buy-Bf0zIH7y.js";import{u as be,p as we,R as ye,c as ke,i as Ce,a as je}from"./useCreditPacks-DnQLmQo7.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./mana-convert-DTic_WF4.js";const P="https://cdn.decentraland.org/@dcl/shop/0.1.0-30612955316.commit-0d9b744/assets/pack-coins-BDh1ZDbh.webp",ne="https://cdn.decentraland.org/@dcl/shop/0.1.0-30612955316.commit-0d9b744/assets/pack-stacks-D-V2jSHW.webp",se="https://cdn.decentraland.org/@dcl/shop/0.1.0-30612955316.commit-0d9b744/assets/pack-chest-BX_j84xW.webp",$e="https://cdn.decentraland.org/@dcl/shop/0.1.0-30612955316.commit-0d9b744/assets/credit-coin-CmcTCd5i.webp",ve="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='30'%20fill='%2334CE77'/%3e%3cpath%20d='M21.6583%2046.1067L11.4656%2036.0591C10.1688%2034.829%2010.1905%2032.7207%2011.4769%2031.4622L13.6868%2029.3591C14.9732%2028.1006%2017.1615%2028.1058%2018.4582%2029.3359L23.8747%2034.6197L41.9704%2015.6527C43.2568%2014.3942%2045.4291%2014.2093%2046.7258%2015.4394L48.8765%2017.3628C50.1732%2018.5929%2050.3491%2020.6844%2049.0626%2021.9429L26.6112%2045.8766C25.1433%2047.342%2022.955%2047.3368%2021.6583%2046.1067Z'%20fill='%23FCFCFC'/%3e%3c/svg%3e",Se="https://cdn.decentraland.org/@dcl/shop/0.1.0-30612955316.commit-0d9b744/assets/packs-backdrop-BcXiUPeP.webp",Y="linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",Pe=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 24px;
|
|
5
|
-
`,
|
|
5
|
+
`,Re=i.section`
|
|
6
6
|
position: relative;
|
|
7
7
|
isolation: isolate;
|
|
8
8
|
display: flex;
|
|
@@ -18,17 +18,17 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
18
18
|
${e.media.maxWidth("mobile")} {
|
|
19
19
|
padding: 32px 16px 40px;
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`,_e=i.div`
|
|
22
22
|
position: absolute;
|
|
23
23
|
inset: 0;
|
|
24
24
|
z-index: -1;
|
|
25
25
|
opacity: 0.9;
|
|
26
26
|
pointer-events: none;
|
|
27
|
-
background-image: url(${
|
|
27
|
+
background-image: url(${Se});
|
|
28
28
|
background-size: cover;
|
|
29
29
|
background-position: 50% 96%;
|
|
30
30
|
background-repeat: no-repeat;
|
|
31
|
-
`,
|
|
31
|
+
`,ze=i.div`
|
|
32
32
|
width: 100%;
|
|
33
33
|
max-width: 1478px;
|
|
34
34
|
display: flex;
|
|
@@ -40,14 +40,14 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
40
40
|
${e.media.maxWidth("lg")} {
|
|
41
41
|
gap: 32px;
|
|
42
42
|
}
|
|
43
|
-
`,
|
|
43
|
+
`,Ae=i.header`
|
|
44
44
|
display: flex;
|
|
45
45
|
flex-direction: column;
|
|
46
46
|
align-items: center;
|
|
47
47
|
gap: 12px;
|
|
48
48
|
width: 100%;
|
|
49
49
|
text-align: center;
|
|
50
|
-
`,
|
|
50
|
+
`,Be=i.h1`
|
|
51
51
|
margin: 0;
|
|
52
52
|
font-family: ${e.font.sans};
|
|
53
53
|
font-size: 40px;
|
|
@@ -65,7 +65,7 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
65
65
|
align-items: center;
|
|
66
66
|
justify-content: center;
|
|
67
67
|
gap: 8px;
|
|
68
|
-
`,
|
|
68
|
+
`,Te=i.p`
|
|
69
69
|
margin: 0;
|
|
70
70
|
font-family: ${e.font.sans};
|
|
71
71
|
font-size: 24px;
|
|
@@ -76,7 +76,7 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
76
76
|
${e.media.maxWidth("mobile")} {
|
|
77
77
|
font-size: 16px;
|
|
78
78
|
}
|
|
79
|
-
`,
|
|
79
|
+
`,Fe=i.a`
|
|
80
80
|
display: inline-flex;
|
|
81
81
|
align-items: center;
|
|
82
82
|
gap: 2px;
|
|
@@ -110,7 +110,7 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
110
110
|
height: 18px;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
`,
|
|
113
|
+
`,Le=i.p`
|
|
114
114
|
margin: 0;
|
|
115
115
|
padding: 10px 16px;
|
|
116
116
|
border-radius: ${e.radius.btn};
|
|
@@ -120,7 +120,7 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
120
120
|
line-height: 1.6;
|
|
121
121
|
color: ${e.colors.media};
|
|
122
122
|
text-align: center;
|
|
123
|
-
`,
|
|
123
|
+
`,V=i.div`
|
|
124
124
|
display: grid;
|
|
125
125
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
126
126
|
gap: 24px;
|
|
@@ -136,7 +136,7 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
136
136
|
gap: 12px;
|
|
137
137
|
row-gap: 24px;
|
|
138
138
|
}
|
|
139
|
-
`,
|
|
139
|
+
`,Q=i.button`
|
|
140
140
|
position: relative;
|
|
141
141
|
display: flex;
|
|
142
142
|
flex-direction: column;
|
|
@@ -162,9 +162,9 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
162
162
|
position: absolute;
|
|
163
163
|
border-radius: inherit;
|
|
164
164
|
pointer-events: none;
|
|
165
|
-
-webkit-mask: ${
|
|
165
|
+
-webkit-mask: ${Y};
|
|
166
166
|
-webkit-mask-composite: xor;
|
|
167
|
-
mask: ${
|
|
167
|
+
mask: ${Y};
|
|
168
168
|
mask-composite: exclude;
|
|
169
169
|
transition: opacity 0.15s ease;
|
|
170
170
|
}
|
|
@@ -221,7 +221,7 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
221
221
|
${e.media.maxWidth("mobile")} {
|
|
222
222
|
gap: 24px;
|
|
223
223
|
}
|
|
224
|
-
`,
|
|
224
|
+
`,We=i.span`
|
|
225
225
|
position: absolute;
|
|
226
226
|
top: -18px;
|
|
227
227
|
left: 50%;
|
|
@@ -256,7 +256,7 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
256
256
|
height: 18px;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
`,
|
|
259
|
+
`,X=i.span`
|
|
260
260
|
display: flex;
|
|
261
261
|
flex-direction: column;
|
|
262
262
|
align-items: center;
|
|
@@ -266,7 +266,7 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
266
266
|
${e.media.maxWidth("mobile")} {
|
|
267
267
|
padding-top: 16px;
|
|
268
268
|
}
|
|
269
|
-
`,
|
|
269
|
+
`,q=i.span`
|
|
270
270
|
display: flex;
|
|
271
271
|
flex-direction: column;
|
|
272
272
|
align-items: center;
|
|
@@ -282,20 +282,57 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
282
282
|
height: 29.79px;
|
|
283
283
|
color: ${e.colors.softWhite};
|
|
284
284
|
}
|
|
285
|
-
`,
|
|
285
|
+
`,Me=i.span`
|
|
286
286
|
font-family: ${e.font.sans};
|
|
287
287
|
font-size: 40px;
|
|
288
288
|
font-weight: 800;
|
|
289
289
|
line-height: 30px;
|
|
290
290
|
color: ${e.colors.white};
|
|
291
|
-
`,
|
|
291
|
+
`,Ge=i.span`
|
|
292
292
|
font-family: ${e.font.sans};
|
|
293
293
|
font-size: 20px;
|
|
294
294
|
font-weight: 500;
|
|
295
295
|
line-height: 15px;
|
|
296
296
|
color: ${e.colors.media};
|
|
297
297
|
text-transform: uppercase;
|
|
298
|
-
`,
|
|
298
|
+
`,Ue=i.span`
|
|
299
|
+
display: flex;
|
|
300
|
+
align-items: center;
|
|
301
|
+
justify-content: center;
|
|
302
|
+
gap: 8px;
|
|
303
|
+
|
|
304
|
+
&[data-empty='true'] {
|
|
305
|
+
visibility: hidden;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.ico {
|
|
309
|
+
width: 17px;
|
|
310
|
+
height: 18px;
|
|
311
|
+
color: ${e.colors.softWhite};
|
|
312
|
+
opacity: 0.55;
|
|
313
|
+
}
|
|
314
|
+
`,Ne=i.span`
|
|
315
|
+
font-family: ${e.font.sans};
|
|
316
|
+
font-size: 22px;
|
|
317
|
+
font-weight: 600;
|
|
318
|
+
line-height: 24px;
|
|
319
|
+
color: rgba(255, 255, 255, 0.55);
|
|
320
|
+
text-decoration: line-through;
|
|
321
|
+
text-decoration-thickness: 2px;
|
|
322
|
+
`,He=i.span`
|
|
323
|
+
display: inline-flex;
|
|
324
|
+
align-items: center;
|
|
325
|
+
padding: 3px 10px;
|
|
326
|
+
border-radius: ${e.radius.pill};
|
|
327
|
+
background: rgba(255, 255, 255, 0.16);
|
|
328
|
+
border: 1px solid rgba(255, 255, 255, 0.28);
|
|
329
|
+
font-family: ${e.font.sans};
|
|
330
|
+
font-size: 13px;
|
|
331
|
+
font-weight: 700;
|
|
332
|
+
line-height: 18px;
|
|
333
|
+
color: ${e.colors.white};
|
|
334
|
+
white-space: nowrap;
|
|
335
|
+
`,Ke=i.span`
|
|
299
336
|
display: block;
|
|
300
337
|
width: 253.5px;
|
|
301
338
|
max-width: 100%;
|
|
@@ -312,7 +349,7 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
312
349
|
@media (max-width: 520px) {
|
|
313
350
|
width: 200px;
|
|
314
351
|
}
|
|
315
|
-
`,
|
|
352
|
+
`,De=i.span`
|
|
316
353
|
display: flex;
|
|
317
354
|
align-items: center;
|
|
318
355
|
justify-content: center;
|
|
@@ -328,11 +365,11 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
328
365
|
letter-spacing: 0.46px;
|
|
329
366
|
color: ${e.colors.text2};
|
|
330
367
|
text-transform: uppercase;
|
|
331
|
-
`,
|
|
368
|
+
`,Oe=T`
|
|
332
369
|
to {
|
|
333
370
|
background-position: -200% 0;
|
|
334
371
|
}
|
|
335
|
-
`,
|
|
372
|
+
`,F=i.span`
|
|
336
373
|
display: block;
|
|
337
374
|
background: linear-gradient(
|
|
338
375
|
100deg,
|
|
@@ -341,29 +378,29 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
341
378
|
rgba(255, 255, 255, 0.08) 70%
|
|
342
379
|
);
|
|
343
380
|
background-size: 200% 100%;
|
|
344
|
-
animation: ${
|
|
381
|
+
animation: ${Oe} 1.4s infinite linear;
|
|
345
382
|
|
|
346
383
|
@media (prefers-reduced-motion: reduce) {
|
|
347
384
|
animation: none;
|
|
348
385
|
}
|
|
349
|
-
`,
|
|
386
|
+
`,Ye=i(F)`
|
|
350
387
|
width: 60%;
|
|
351
388
|
height: 30px;
|
|
352
389
|
border-radius: ${e.radius.chip};
|
|
353
|
-
`,
|
|
390
|
+
`,Ve=i(F)`
|
|
354
391
|
width: 253.5px;
|
|
355
392
|
max-width: 100%;
|
|
356
393
|
aspect-ratio: 1;
|
|
357
394
|
border-radius: 16px;
|
|
358
|
-
`,
|
|
395
|
+
`,Qe=i(F)`
|
|
359
396
|
width: 100%;
|
|
360
397
|
height: 48px;
|
|
361
398
|
border-radius: ${e.radius.card};
|
|
362
|
-
`,
|
|
399
|
+
`,Xe=i.p`
|
|
363
400
|
margin: 0;
|
|
364
401
|
font-family: ${e.font.sans};
|
|
365
402
|
color: ${e.colors.muted};
|
|
366
|
-
`,
|
|
403
|
+
`,qe=i.div`
|
|
367
404
|
position: absolute;
|
|
368
405
|
inset: 0;
|
|
369
406
|
z-index: 1;
|
|
@@ -374,13 +411,13 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
374
411
|
gap: 24px;
|
|
375
412
|
padding: 24px;
|
|
376
413
|
text-align: center;
|
|
377
|
-
`,
|
|
414
|
+
`,Ze=i.p`
|
|
378
415
|
margin: 0;
|
|
379
416
|
font-family: ${e.font.sans};
|
|
380
417
|
font-size: 16px;
|
|
381
418
|
line-height: 1.4;
|
|
382
419
|
color: rgba(255, 255, 255, 0.88);
|
|
383
|
-
`,
|
|
420
|
+
`,Je=T`
|
|
384
421
|
0%, 100% {
|
|
385
422
|
transform: scale(1);
|
|
386
423
|
opacity: 1;
|
|
@@ -389,7 +426,7 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
389
426
|
transform: scale(0.88);
|
|
390
427
|
opacity: 0.7;
|
|
391
428
|
}
|
|
392
|
-
`,
|
|
429
|
+
`,et=i.div`
|
|
393
430
|
display: flex;
|
|
394
431
|
flex-direction: column;
|
|
395
432
|
align-items: center;
|
|
@@ -397,23 +434,23 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
397
434
|
gap: 32px;
|
|
398
435
|
padding: 64px 24px;
|
|
399
436
|
min-height: 42vh;
|
|
400
|
-
`,
|
|
437
|
+
`,oe=i.img`
|
|
401
438
|
width: 61px;
|
|
402
439
|
height: 61px;
|
|
403
|
-
animation: ${
|
|
440
|
+
animation: ${Je} 1.2s ease-in-out infinite;
|
|
404
441
|
|
|
405
442
|
@media (prefers-reduced-motion: reduce) {
|
|
406
443
|
animation: none;
|
|
407
444
|
}
|
|
408
|
-
`,
|
|
445
|
+
`,tt=i(oe)`
|
|
409
446
|
width: 72px;
|
|
410
447
|
height: 72px;
|
|
411
|
-
`,
|
|
448
|
+
`,it=i.div`
|
|
412
449
|
display: flex;
|
|
413
450
|
flex-direction: column;
|
|
414
451
|
align-items: center;
|
|
415
452
|
gap: 8px;
|
|
416
|
-
`,
|
|
453
|
+
`,rt=i.p`
|
|
417
454
|
margin: 0;
|
|
418
455
|
font-family: ${e.font.sans};
|
|
419
456
|
font-size: 20px;
|
|
@@ -423,18 +460,18 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
423
460
|
strong {
|
|
424
461
|
font-weight: 700;
|
|
425
462
|
}
|
|
426
|
-
`,
|
|
463
|
+
`,nt=i.div`
|
|
427
464
|
display: flex;
|
|
428
465
|
align-items: center;
|
|
429
466
|
gap: 8px;
|
|
430
|
-
`,
|
|
467
|
+
`,st=T`
|
|
431
468
|
0% {
|
|
432
469
|
left: -40%;
|
|
433
470
|
}
|
|
434
471
|
100% {
|
|
435
472
|
left: 100%;
|
|
436
473
|
}
|
|
437
|
-
`,
|
|
474
|
+
`,ot=i.span`
|
|
438
475
|
position: relative;
|
|
439
476
|
width: 456px;
|
|
440
477
|
max-width: 60vw;
|
|
@@ -442,7 +479,7 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
442
479
|
border-radius: ${e.radius.pill};
|
|
443
480
|
background: ${e.colors.chip};
|
|
444
481
|
overflow: hidden;
|
|
445
|
-
`,
|
|
482
|
+
`,at=i.span`
|
|
446
483
|
position: absolute;
|
|
447
484
|
top: 0;
|
|
448
485
|
left: -40%;
|
|
@@ -450,25 +487,25 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
450
487
|
height: 100%;
|
|
451
488
|
border-radius: ${e.radius.pill};
|
|
452
489
|
background: ${e.gradients.amethyst};
|
|
453
|
-
animation: ${
|
|
490
|
+
animation: ${st} 1.4s ease-in-out infinite;
|
|
454
491
|
|
|
455
492
|
@media (prefers-reduced-motion: reduce) {
|
|
456
493
|
left: 0;
|
|
457
494
|
width: 30%;
|
|
458
495
|
animation: none;
|
|
459
496
|
}
|
|
460
|
-
`,
|
|
497
|
+
`,dt=i.span`
|
|
461
498
|
font-family: ${e.font.sans};
|
|
462
499
|
font-size: 16px;
|
|
463
500
|
line-height: 22px;
|
|
464
501
|
color: ${e.colors.text2};
|
|
465
|
-
`,
|
|
502
|
+
`,ct=i.div`
|
|
466
503
|
display: flex;
|
|
467
504
|
flex-direction: column;
|
|
468
505
|
gap: 12px;
|
|
469
506
|
max-width: 895px;
|
|
470
507
|
margin: 0 auto;
|
|
471
|
-
`,
|
|
508
|
+
`,lt=i.div`
|
|
472
509
|
display: flex;
|
|
473
510
|
align-items: center;
|
|
474
511
|
gap: 16px;
|
|
@@ -481,11 +518,11 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
481
518
|
flex-direction: column;
|
|
482
519
|
text-align: center;
|
|
483
520
|
}
|
|
484
|
-
`,
|
|
521
|
+
`,pt=i.img`
|
|
485
522
|
flex: none;
|
|
486
523
|
width: 60px;
|
|
487
524
|
height: 60px;
|
|
488
|
-
`,
|
|
525
|
+
`,xt=i.p`
|
|
489
526
|
flex: 1;
|
|
490
527
|
margin: 0;
|
|
491
528
|
font-family: ${e.font.sans};
|
|
@@ -497,12 +534,12 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
497
534
|
strong {
|
|
498
535
|
font-weight: 700;
|
|
499
536
|
}
|
|
500
|
-
`,
|
|
537
|
+
`,ut=i.div`
|
|
501
538
|
padding: 24px;
|
|
502
539
|
border-radius: 16px;
|
|
503
540
|
background: ${e.colors.white};
|
|
504
541
|
border: 1px solid ${e.colors.gray4};
|
|
505
|
-
`,
|
|
542
|
+
`,ht=i.div`
|
|
506
543
|
position: relative;
|
|
507
544
|
display: flex;
|
|
508
545
|
align-items: center;
|
|
@@ -526,7 +563,7 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
526
563
|
gap: 10px;
|
|
527
564
|
padding: 120px 16px 16px;
|
|
528
565
|
}
|
|
529
|
-
`,
|
|
566
|
+
`,gt=i.img`
|
|
530
567
|
position: absolute;
|
|
531
568
|
left: 35px;
|
|
532
569
|
top: 50%;
|
|
@@ -540,7 +577,7 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
540
577
|
top: 16px;
|
|
541
578
|
transform: translateX(-50%);
|
|
542
579
|
}
|
|
543
|
-
`,
|
|
580
|
+
`,ft=i.p`
|
|
544
581
|
display: inline-flex;
|
|
545
582
|
align-items: center;
|
|
546
583
|
gap: 8px;
|
|
@@ -553,21 +590,21 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
553
590
|
height: 30px;
|
|
554
591
|
color: ${e.colors.text};
|
|
555
592
|
}
|
|
556
|
-
`,
|
|
593
|
+
`,mt=i.strong`
|
|
557
594
|
font-size: 24px;
|
|
558
595
|
font-weight: 700;
|
|
559
596
|
text-transform: capitalize;
|
|
560
|
-
`,
|
|
597
|
+
`,bt=i.span`
|
|
561
598
|
font-size: 14px;
|
|
562
599
|
font-weight: 400;
|
|
563
|
-
`,
|
|
600
|
+
`,wt=i.div`
|
|
564
601
|
display: flex;
|
|
565
602
|
gap: 12px;
|
|
566
603
|
|
|
567
604
|
@media (max-width: 560px) {
|
|
568
605
|
flex-direction: column;
|
|
569
606
|
}
|
|
570
|
-
`,
|
|
607
|
+
`,C=i.button`
|
|
571
608
|
flex: 1;
|
|
572
609
|
display: inline-flex;
|
|
573
610
|
align-items: center;
|
|
@@ -604,7 +641,7 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
604
641
|
outline: 2px solid ${e.colors.accent};
|
|
605
642
|
outline-offset: 2px;
|
|
606
643
|
}
|
|
607
|
-
`,
|
|
644
|
+
`,Z=i.div`
|
|
608
645
|
display: flex;
|
|
609
646
|
flex-direction: column;
|
|
610
647
|
align-items: center;
|
|
@@ -613,7 +650,7 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
613
650
|
margin: 0 auto;
|
|
614
651
|
padding: 48px 24px;
|
|
615
652
|
text-align: center;
|
|
616
|
-
`,
|
|
653
|
+
`,J=i.p`
|
|
617
654
|
margin: 0;
|
|
618
655
|
font-family: ${e.font.sans};
|
|
619
656
|
font-size: 20px;
|
|
@@ -623,12 +660,12 @@ import{b as pe,u as xe,r as l,j as t}from"./react-vyZjIDcS.js";import{s as i,t a
|
|
|
623
660
|
&[data-tone='error'] {
|
|
624
661
|
color: ${e.colors.err};
|
|
625
662
|
}
|
|
626
|
-
`,
|
|
663
|
+
`,ee=i.div`
|
|
627
664
|
display: flex;
|
|
628
665
|
gap: 12px;
|
|
629
666
|
margin-top: 16px;
|
|
630
|
-
`,
|
|
667
|
+
`,yt=i.p`
|
|
631
668
|
margin: 0;
|
|
632
669
|
font-family: ${e.font.sans};
|
|
633
670
|
color: ${e.colors.err};
|
|
634
|
-
`,
|
|
671
|
+
`,j=Ce()?"mock":"stripe",te=[P,P,ne,se],kt={pack_5:P,pack_10:P,pack_25:ne,pack_50:se};function ae(a,s){return kt[a.id]??te[s%te.length]}function Ct(a,s){return a.artUrl??ae(a,s)}const jt="https://docs.decentraland.org";function ie(a){const s=a;if((s==null?void 0:s.name)==="AbortError")return r("getCredits.errorCanceled");const m=((s==null?void 0:s.message)??"").toLowerCase();return m.includes("sign in")?r("getCredits.errorSignIn",{currency:p.name}):m.includes("timed out")?r("getCredits.errorTimeout",{currency:p.name}):r("getCredits.errorGeneric")}function Tt(){var M;he({title:r("nav.getCredits",{currency:p.name}),noindex:!0});const a=xe(),{session:s,signIn:m}=ge(),o=fe(),[b,x]=ue(),{packs:$,isLoading:y}=be(),[h,u]=l.useState("select"),[c,L]=l.useState(null),[v,W]=l.useState(null),de=(v!=null?(M=$.find(n=>n.credits===v))==null?void 0:M.artUrl:void 0)??$e,[ce,k]=l.useState(null),[le,R]=l.useState(!1),_=l.useRef(null);l.useEffect(()=>()=>{var n;return(n=_.current)==null?void 0:n.abort()},[]);const I=l.useCallback(()=>{x(n=>{const d=new URLSearchParams(n);return d.delete("order"),d.delete("canceled"),d},{replace:!0})},[x]),z=l.useCallback(async n=>{u("processing");const d=new AbortController;_.current=d;try{const g=await we(n,{signal:d.signal,address:s==null?void 0:s.address,identity:s==null?void 0:s.identity});if(g.status==="credited"){const w=g.creditsGranted??(c==null?void 0:c.credits)??0;W(w>0?w:null),u("success"),f("Shop Completed Buy Credits",{order_id:n,pack_usd:(c==null?void 0:c.usd)??null,credits:w>0?w:null,provider:j}),o.invalidateQueries({queryKey:["usd-balance"]});try{if(sessionStorage.getItem(ye)){const S={resumeCheckout:!0,...w>0?{creditsAdded:w}:{}};a("/cart",{state:S});return}}catch{}try{const S=sessionStorage.getItem(O);if(S){sessionStorage.removeItem(O);const G=JSON.parse(S),U=me(G);if(U){a(U,{state:{item:G,resumeBuy:!0}});return}}}catch{}}else g.status==="pending"?(f("Shop Buy Credits Pending",{step:"grant",pack_usd:(c==null?void 0:c.usd)??null}),o.invalidateQueries({queryKey:["usd-balance"]}),u("pending")):(f("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(c==null?void 0:c.usd)??null}),k(g.error??r("getCredits.errorGrant",{currency:p.name})),u("error"))}catch(g){N(g,{flow:"get_credits",step:"grant",order_id:n}),f("Shop Buy Credits Failed",{step:"grant",error_code:H(g),pack_usd:(c==null?void 0:c.usd)??null}),k(ie(g)),u("error")}},[c,s,o,a]),pe=l.useCallback(async n=>{if(!s){m();return}k(null),R(!1),L(n),u(j==="mock"?"processing":"redirecting"),f("Shop Started Buy Credits",{pack_usd:n.usd,credits:n.credits,provider:j});try{const d=await ke(n.id,{address:s.address,identity:s.identity});if(d.mock)z(d.orderId);else if(d.url)f("Shop Redirected To Stripe",{order_id:d.orderId,pack_usd:n.usd,credits:n.credits}),window.location.href=d.url;else throw new Error("Checkout did not return a redirect url")}catch(d){N(d,{flow:"get_credits",step:"checkout",provider:j}),f("Shop Buy Credits Failed",{step:"checkout",error_code:H(d),pack_usd:n.usd}),k(ie(d)),u("error")}},[s,m,z]),A=l.useRef(!1);l.useEffect(()=>{if(A.current)return;const n=b.get("order");if(b.get("canceled")!=null){A.current=!0,f("Shop Buy Credits Cancelled",{order_id:n,provider:j}),I(),R(!0),u("select");return}n&&(u("processing"),s&&(A.current=!0,I(),z(n)))},[b,s]);function B(){var n;(n=_.current)==null||n.abort(),u("select"),L(null),W(null),k(null),R(!1)}return t.jsxs(Pe,{children:[(h==="select"||h==="redirecting")&&t.jsxs(Re,{"data-testid":"credits-hero",children:[t.jsx(_e,{"aria-hidden":!0}),t.jsxs(ze,{$hidden:h==="redirecting",children:[t.jsxs(Ae,{children:[t.jsx(Be,{children:r("getCredits.title",{currency:p.name})}),t.jsxs(Ee,{children:[t.jsx(Te,{children:r("getCredits.subtitle",{currency:p.nameSingular})}),t.jsxs(Fe,{href:jt,target:"_blank",rel:"noreferrer",children:[r("getCredits.learnMore"),t.jsx(re,{name:"link-out"})]})]})]}),le&&t.jsx(Le,{role:"status",children:r("getCredits.canceledNote")}),t.jsx($t,{packs:$,loading:y,onSelect:n=>void pe(n)})]}),h==="redirecting"&&t.jsxs(qe,{role:"status","aria-live":"polite",children:[t.jsx(tt,{src:K,alt:"",width:72,height:72}),t.jsx(Ze,{children:r("getCredits.redirecting")})]})]}),h==="processing"&&t.jsxs(et,{role:"status","aria-live":"polite",children:[t.jsx(oe,{src:K,alt:"",width:61,height:61}),t.jsxs(it,{children:[t.jsxs(rt,{children:[t.jsx("strong",{children:r("getCredits.processing")}),"…"]}),t.jsxs(nt,{"aria-hidden":!0,children:[t.jsx(ot,{children:t.jsx(at,{})}),t.jsx(dt,{children:"1/1"})]})]})]}),h==="success"&&t.jsxs(ct,{role:"status","aria-live":"polite",children:[t.jsxs(lt,{children:[t.jsx(pt,{src:ve,alt:"",width:60,height:60}),t.jsxs(xt,{children:[t.jsx("strong",{children:r("getCredits.successTitle")})," ",r("getCredits.successBody",{currency:p.name})]})]}),v!=null&&t.jsx(ut,{children:t.jsxs(ht,{children:[t.jsx(gt,{src:de,alt:"",width:93,height:93}),t.jsxs(ft,{children:[t.jsx(E,{}),t.jsxs("span",{children:[t.jsx(mt,{children:r("getCredits.creditsAmount",{credits:v,currency:p.name})})," ",t.jsx(bt,{children:r("getCredits.creditsAdded")})]})]})]})}),t.jsxs(wt,{children:[t.jsx(C,{"data-variant":"outline",onClick:B,children:r("getCredits.buyMore",{currency:p.name})}),t.jsx(C,{onClick:()=>a("/assets"),children:r("getCredits.startShopping")})]})]}),h==="pending"&&t.jsxs(Z,{role:"status","aria-live":"polite",children:[t.jsx(J,{children:r("getCredits.pendingTitle",{currency:p.name})}),t.jsx(Xe,{children:r("getCredits.pendingBody")}),t.jsxs(ee,{children:[t.jsx(C,{onClick:()=>a("/assets"),children:r("getCredits.startShopping")}),t.jsx(C,{"data-variant":"outline",onClick:B,children:r("getCredits.done")})]})]}),h==="error"&&t.jsxs(Z,{role:"alert",children:[t.jsx(J,{"data-tone":"error",children:r("getCredits.errorTitle")}),t.jsx(yt,{children:ce}),t.jsx(ee,{children:t.jsx(C,{onClick:B,children:r("getCredits.tryAgain")})})]})]})}function $t({packs:a,loading:s,onSelect:m}){return s?t.jsx(V,{"aria-busy":"true","aria-label":r("getCredits.packsLoading",{currency:p.name}),children:[0,1,2,3].map(o=>t.jsxs(Q,{as:"div","data-skeleton":"true","data-testid":"pack-skeleton","aria-hidden":!0,children:[t.jsxs(X,{children:[t.jsx(q,{children:t.jsx(Ye,{})}),t.jsx(Ve,{})]}),t.jsx(Qe,{})]},o))}):t.jsx(V,{children:a.map((o,b)=>{const x=je(o,a);return t.jsxs(Q,{type:"button","data-testid":"pack","data-best":o.bestValue?"true":void 0,onClick:()=>m(o),"aria-label":x?r("getCredits.packAriaBonus",{amount:D(o.credits),usd:o.usd,bonus:x.bonus,baseline:x.baseline}):r("getCredits.packAria",{amount:D(o.credits),usd:o.usd}),children:[o.bestValue&&t.jsxs(We,{children:[t.jsx(re,{name:"star-rounded"}),r("getCredits.packBadge")]}),t.jsxs(X,{children:[t.jsxs(q,{children:[t.jsxs(Ie,{children:[t.jsx(E,{}),t.jsx(Me,{children:o.credits})]}),t.jsx(Ge,{children:r("getCredits.packUnit",{currency:p.name})}),t.jsxs(Ue,{"data-empty":x?void 0:"true","aria-hidden":!0,children:[t.jsx(E,{}),t.jsx(Ne,{children:x?x.baseline:0}),x&&t.jsx(He,{children:r("getCredits.packBonus",{bonus:x.bonus})})]})]}),t.jsx(Ke,{children:t.jsx("img",{src:Ct(o,b),alt:"",loading:"lazy",width:507,height:507,onError:$=>{const y=$.currentTarget;y.dataset.artFallback||(y.dataset.artFallback="done",y.src=ae(o,b))}})})]}),t.jsxs(De,{children:["$",o.usd.toFixed(2)]})]},o.id)})})}export{Tt as GetCredits,Tt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as f,b as h}from"./lit-element-B3y9oplH.js";import{n as m}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-
|
|
1
|
+
import{i as f,b as h}from"./lit-element-B3y9oplH.js";import{n as m}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-CkBDyoGg.js";import{d as g,r as v}from"./index-b_a6Xe2g.js";import{C as c}from"./ConstantsUtil-Dfwpy1eP.js";import{R as $,O as u}from"./W3MFrameProviderSingleton-D3RatyJZ.js";import{au as y}from"./NetworkUtil-HlUKXKcF.js";const b=g`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,b as ee,r as h,L as te}from"./react-vyZjIDcS.js";import{t as S,s as t,x as ie,y as se,e as i,h as R,B as I,z,ar as ne,aP as K,l as W,m as re,n as oe,E as ae,u as de,F as ce}from"./index-
|
|
1
|
+
import{j as e,b as ee,r as h,L as te}from"./react-vyZjIDcS.js";import{t as S,s as t,x as ie,y as se,e as i,h as R,B as I,z,ar as ne,aP as K,l as W,m as re,n as oe,E as ae,u as de,F as ce}from"./index-yJi2QIJf.js";import{i as le,R as pe,f as ge}from"./import-DSm0v4af.js";import{u as xe}from"./useSecondarySales-BLnZD7gi.js";import"./sentry-B35L1FdR.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./buy-DLi3_94e.js";import"./authorizations-BrAVsIY_.js";import"./sendMetaTransaction-BOtIj1YL.js";import"./trade-encoding-BFXwI1r3.js";import"./mana-rate-DTd_zYK_.js";import"./mana-convert-DTic_WF4.js";function U({size:o=12,...w}){return e.jsx("svg",{viewBox:"0 0 20 20",width:o,height:o,fill:"none","aria-hidden":!0,focusable:"false",...w,children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}const{colors:M,radius:me,z:ue}=S,he=ie`
|
|
2
2
|
0% {
|
|
3
3
|
transform: scale(0);
|
|
4
4
|
opacity: 0;
|