@dcl/shop 0.6.1-30950057562.commit-5ce11cd → 0.6.1-30952038035.commit-ab739fb
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-ByYYgVQN.js +384 -0
- package/_assets/{AnimatedBackground-Biiq2Y4P.js → AnimatedBackground-CUaBDivG.js} +2 -2
- package/_assets/{Assets-B3QTH2pR.js → Assets-Bjf3kpyV.js} +21 -20
- package/_assets/{Assets.styles-BbXlLgvi.js → Assets.styles-C3u8nWD5.js} +1 -1
- package/_assets/{Authorizations-DEGUI_-D.js → Authorizations-Chhv7UNE.js} +1 -1
- package/_assets/{Cart-CG6BPi0p.js → Cart-Dzf9htbW.js} +2 -2
- package/_assets/{CircularProgress-BHeCdSwv.js → CircularProgress-DV9gZKit.js} +1 -1
- package/_assets/{Collection-DeXbCENt.js → Collection-ChD1BMxU.js} +1 -1
- package/_assets/{CollectionCarousel-DGelHypZ.js → CollectionCarousel-DUIGaDi4.js} +7 -7
- package/_assets/{Creator-DbMBaOUq.js → Creator-KkenWUqY.js} +1 -1
- package/_assets/{ErrorNotice-D5yaB3Z_.js → ErrorNotice-DpYtYREJ.js} +1 -1
- package/_assets/{ExchangeController-DnTekpEE.js → ExchangeController-BX46XFN4.js} +1 -1
- package/_assets/{GetCredits-Dhtzz_nn.js → GetCredits-DrTYg5Zo.js} +51 -51
- package/_assets/{HelpersUtil-DsfsYJYj.js → HelpersUtil-C8T44vZW.js} +1 -1
- package/_assets/ItemDetail-DBtBGIQW.js +3393 -0
- package/_assets/{LoadMore-DtVUvE_o.js → LoadMore-CPXP1EmH.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-tAMFzN8I.js → ManaPricingBanner.styles-Bm4Js-40.js} +1 -1
- package/_assets/{MenuList-0BtiFlBr.js → MenuList-CxOMyRIc.js} +1 -1
- package/_assets/{MyAssets-BaOL_xvH.js → MyAssets-DYXlMbNI.js} +1 -1
- package/_assets/{MyFavorites-CS3x1nw4.js → MyFavorites-CAS_8Prv.js} +1 -1
- package/_assets/{NotFound-Cjh1AYGW.js → NotFound-Cy4HI78S.js} +1 -1
- package/_assets/{NotificationsBell-DZkHVwW_.js → NotificationsBell-Phu7WE5H.js} +1 -1
- package/_assets/{OutfitDetail-BG-aXjtW.js → OutfitDetail-DdjzlwrP.js} +1 -1
- package/_assets/{OutfitPreview-Ds-E41xg.js → OutfitPreview-D5Usx0is.js} +1 -1
- package/_assets/{OutfitStudio-B45FZ7f2.js → OutfitStudio-CxpMslbW.js} +1 -1
- package/_assets/{StoreSettings-x-eB9azk.js → StoreSettings-BEwbmpUP.js} +1 -1
- package/_assets/{Success-GJTwaVK-.js → Success-FL0F8MoC.js} +1 -1
- package/_assets/{SwapController-BOkswRBU.js → SwapController-2ZqM6vSZ.js} +1 -1
- package/_assets/{Tooltip-BrPrB_FF.js → Tooltip-CGhvF0h0.js} +1 -1
- package/_assets/{TradeService-BeFUQo8S.js → TradeService-_fNmDQsc.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-pXBowcJX.js → W3MFrameProviderSingleton-3o8ISiTB.js} +3 -3
- package/_assets/{WebCryptoP256-DNvuHIon.js → WebCryptoP256-C3U9t_lY.js} +1 -1
- package/_assets/{authorizations-B8y7ie6D.js → authorizations-BCzKkZqj.js} +1 -1
- package/_assets/{basic-jTDdNVTt.js → basic-DONRA_xh.js} +1 -1
- package/_assets/{biconomy-D6iQ1Qz7.js → biconomy-Dfolk_Ti.js} +1 -1
- package/_assets/{builder-DC4gtQTj.js → builder-CZNgMR80.js} +1 -1
- package/_assets/{buy-D7FZvFCT.js → buy-BSzvhQyc.js} +1 -1
- package/_assets/{buy-gasless-Bn8YCJUN.js → buy-gasless-DDV1YuIJ.js} +1 -1
- package/_assets/{categories-CR3vurm1.js → categories-hH2gVFTo.js} +1 -1
- package/_assets/{ccip-DWg6dYhE.js → ccip-BzGr-Dtw.js} +1 -1
- package/_assets/{ccip-DaB7uDx0.js → ccip-tM5_fQb-.js} +1 -1
- package/_assets/{clsx-Dzrazxv9.js → clsx-CNCZMDTr.js} +1 -1
- package/_assets/{collectionPage.styles-qZQe9tC2.js → collectionPage.styles-DaXSQ7Ow.js} +5 -5
- package/_assets/{controller-BuQdjcgl.js → controller-eA3elyjF.js} +2 -2
- package/_assets/{core-BK1g_OXy.js → core-DxqxudJO.js} +4 -4
- package/_assets/{createSvgIcon-J8yChvhn.js → createSvgIcon-CJ6Ai6E8.js} +1 -1
- package/_assets/{custom--rWIIG-D.js → custom-DhRCFHBH.js} +1 -1
- package/_assets/{data-capture-CN0COz6e.js → data-capture-xTUpjVEd.js} +1 -1
- package/_assets/{email-D_dJRcsa.js → email-C6w9pkL4.js} +1 -1
- package/_assets/{embedded-wallet-Bp75sJw7.js → embedded-wallet-CATFK_4f.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-DMxIZn9h.js → emotion-styled.browser.esm-kRA_8yYD.js} +1 -1
- package/_assets/{engine-D6hd1szl.js → engine-BhFUqyfr.js} +1 -1
- package/_assets/{errors-BQIZnT7j.js → errors-BtOSdz_2.js} +1 -1
- package/_assets/{estimate-l1-fee-DO8EDZWK.js → estimate-l1-fee-CLT2TsHT.js} +1 -1
- package/_assets/{execute-BCnNryMb.js → execute-Cil77FyG.js} +2 -2
- package/_assets/{features-BbAiY1Jf.js → features-CLyIgAqu.js} +1 -1
- package/_assets/{fetchTokenMetadata-zps63-TP.js → fetchTokenMetadata-ZOX9aDM7.js} +2 -2
- package/_assets/{field.styles-gjTACzK4.js → field.styles-DmKZc3L1.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-bG3GimfG.js → get-ecosystem-wallet-info-DStxLbmO.js} +1 -1
- package/_assets/{getBalance-BE89ywjU.js → getBalance-ySfwjIvR.js} +1 -1
- package/_assets/{getNFT-D38v5tzD.js → getNFT-CAhfTP9a.js} +1 -1
- package/_assets/{getNFT-D14_mrBb.js → getNFT-CDilLOxA.js} +1 -1
- package/_assets/{getThemeProps-v7o8wjpE.js → getThemeProps-DrE4pAoq.js} +1 -1
- package/_assets/{grid.styles-B9VqL4eC.js → grid.styles-CZcMdQRf.js} +1 -1
- package/_assets/{hashTypedData-DpbwbA5Y.js → hashTypedData-BYagxqzM.js} +1 -1
- package/_assets/{hashTypedData-D09x9kVt.js → hashTypedData-DR02jcnl.js} +1 -1
- package/_assets/{in-app-DHJssTEZ.js → in-app-DX8hp77h.js} +1 -1
- package/_assets/{in-app-wallet-calls-BVCtyy0o.js → in-app-wallet-calls-ubM2FMLq.js} +1 -1
- package/_assets/{index-KhNGJKgC.js → index-1lL23lvo.js} +1 -1
- package/_assets/{index-DlyyISQj.js → index-2wdPzCFN.js} +4 -4
- package/_assets/{index-Bs1_PcA9.js → index-81G1c2Rg.js} +1 -1
- package/_assets/{index-0yVVDwVO.js → index-B4WS5ObA.js} +1 -1
- package/_assets/{index-SZ_CvoIV.js → index-BA-ebcn-.js} +1 -1
- package/_assets/{index-CwJqeIVQ.js → index-BDwkOVux.js} +1 -1
- package/_assets/{index-CaP_Za_c.js → index-BHgOIM3b.js} +1 -1
- package/_assets/{index-2D5lvzn3.js → index-BOkcuRbk.js} +1 -1
- package/_assets/{index-ROWP5zCo.js → index-BVgq95WB.js} +1 -1
- package/_assets/{index-FgbyyQq_.js → index-BWd1knrt.js} +1 -1
- package/_assets/{index-D8ruhsoC.js → index-BZ4V-yY5.js} +1 -1
- package/_assets/{index-Cy9EOdYJ.js → index-BhC-fdnm.js} +1 -1
- package/_assets/{index-7ZmsD7pV.js → index-Bm6qEnT_.js} +3 -3
- package/_assets/{index-CnBcGWDj.js → index-C-V2lcdf.js} +1 -1
- package/_assets/{index-DBVdLIyV.js → index-C1tYz2z8.js} +2 -2
- package/_assets/{index-DVXg4hbd.js → index-C8sHxMNg.js} +1 -1
- package/_assets/{index-BgOwfYhI.js → index-CScWKwpZ.js} +3 -3
- package/_assets/{index-CKFRCfS4.js → index-CaxreNGO.js} +1 -1
- package/_assets/{index-Crv-6FMt.js → index-CkcRMZdJ.js} +294 -294
- package/_assets/{index-DXK0dOW2.js → index-D-7V8dCH.js} +1 -1
- package/_assets/{index-CkuUHmKI.js → index-D3CRBx6u.js} +1 -1
- package/_assets/{index-D4a1k1Lx.js → index-D3KSOQLM.js} +1 -1
- package/_assets/{index-B83Hgnlb.js → index-D5JMyKnP.js} +1 -1
- package/_assets/{index-zUSsLBXU.js → index-DDkNGn3X.js} +1 -1
- package/_assets/{index-Dv7d7TF7.js → index-DWubf0Ud.js} +1 -1
- package/_assets/{index-Bx9FQGUD.js → index-DYCyolhY.js} +1 -1
- package/_assets/{index-BI1kDThq.js → index-D_ZvDVdA.js} +1 -1
- package/_assets/{index-BOi75v-l.js → index-Db4zeqMx.js} +1 -1
- package/_assets/{index-D0J6AIzv.js → index-Dj4ThXrV.js} +2 -2
- package/_assets/{index-CGtw5iLJ.js → index-DjRUuikC.js} +2 -2
- package/_assets/{index-BgiFUjpr.js → index-Dl53YgIN.js} +1 -1
- package/_assets/{index-BOIPVf6Y.js → index-DlLGkKeo.js} +1 -1
- package/_assets/{index-CyA8lg3a.js → index-Doj9otRs.js} +1 -1
- package/_assets/{index-BSk7Bxcl.js → index-DpF61JOs.js} +1 -1
- package/_assets/{index-DWDGpmbP.js → index-Drqdsqdt.js} +1 -1
- package/_assets/{index-DT-li7A4.js → index-DsOGZHK_.js} +1 -1
- package/_assets/{index-Dg5jak8-.js → index-DsVmU5f2.js} +1 -1
- package/_assets/{index-aARUoJGj.js → index-Dt1cZ9IP.js} +1 -1
- package/_assets/{index-BQCxs7C9.js → index-Du6f3IUX.js} +1 -1
- package/_assets/{index-fcirgr-r.js → index-DySchZIh.js} +1 -1
- package/_assets/{index-CF866r37.js → index-DyhMPhoo.js} +1 -1
- package/_assets/{index-P2UKF5rf.js → index-ErsxDbGQ.js} +1 -1
- package/_assets/{index-CHV83zbw.js → index-NXlD-E5H.js} +1 -1
- package/_assets/{index-D6knqZUY.js → index-SQ5TKREX.js} +1 -1
- package/_assets/{index-C_Egq9tp.js → index-XdxQDdhE.js} +1 -1
- package/_assets/{index-kB6El_bb.js → index-cCwydH4h.js} +1 -1
- package/_assets/{index-CtjyKch3.js → index-eke0pv1P.js} +2 -2
- package/_assets/{index-C05A2Y5e.js → index-k7Fk9gCo.js} +1 -1
- package/_assets/{index-m-mREpXI.js → index-rBBhVweZ.js} +3 -3
- package/_assets/{index-Cv-aotc4.js → index-tVJBIIwd.js} +1 -1
- package/_assets/{index-DNRAeXhX.js → index-uXQBhlVd.js} +1 -1
- package/_assets/{index-DW0v82LH.js → index-yW4X62j2.js} +1 -1
- package/_assets/{index.es-ChO6Qu9w.js → index.es-BL99L4It.js} +1 -1
- package/_assets/{index.es-vvA0Lt9I.js → index.es-DPJQLN9e.js} +1 -1
- package/_assets/{index.es-CEzDYUYH.js → index.es-DUh-e1WD.js} +4 -4
- package/_assets/{localBatchGatewayRequest-BTNx9qgN.js → localBatchGatewayRequest-Cl0RVY_-.js} +1 -1
- package/_assets/{networks-CVci8sPT.js → networks-D_GaJc45.js} +1 -1
- package/_assets/{onramp-BCoU4Jyj.js → onramp-DJq5nefv.js} +1 -1
- package/_assets/{openzeppelin-DZ76Bjhm.js → openzeppelin-CVtBr5jg.js} +1 -1
- package/_assets/{parseNft-Wz3HLkrh.js → parseNft-CyZsKB19.js} +2 -2
- package/_assets/{parseSignature-D-GX-OPq.js → parseSignature-BMF03i8G.js} +1 -1
- package/_assets/{parseSignature-h1NXN_yq.js → parseSignature-BRIJE-02.js} +3 -3
- package/_assets/{passkeys-5-LJYN4N.js → passkeys-BfvydAEP.js} +1 -1
- package/_assets/{pay-with-exchange-B3YFxSq-.js → pay-with-exchange-DrG80t39.js} +1 -1
- package/_assets/{qr-overlay-DhBzxblG.js → qr-overlay-BbjhvYq7.js} +1 -1
- package/_assets/{receive-B_6FCkZX.js → receive-CPxISk77.js} +1 -1
- package/_assets/{resolveImplementation-D1PTZvev.js → resolveImplementation-Daov7jif.js} +1 -1
- package/_assets/{rpc-Dnr7Ho6n.js → rpc-RdxbpIDh.js} +1 -1
- package/_assets/{secp256k1-DSyr_erP.js → secp256k1-B0Myamn8.js} +1 -1
- package/_assets/{secp256k1-DRVWswpU.js → secp256k1-CNNeywA7.js} +1 -1
- package/_assets/{secp256k1-_hKozEef.js → secp256k1-D9IcF0FM.js} +1 -1
- package/_assets/{send-batch-transaction-D_N3Pmuj.js → send-batch-transaction-BH9tSDfL.js} +1 -1
- package/_assets/{send-eip712-transaction-CD7uH6nJ.js → send-eip712-transaction-C9qUy3bt.js} +2 -2
- package/_assets/{send-gasless-transaction-CIlguYRL.js → send-gasless-transaction-BgUJtY6N.js} +2 -2
- package/_assets/{send-transaction-C5_TnN20.js → send-transaction-H9scvA7_.js} +2 -2
- package/_assets/{send-CkVArLZ6.js → send-yv3eNeS5.js} +1 -1
- package/_assets/{sendMetaTransaction-B7Mr50I5.js → sendMetaTransaction-S2HaHP6U.js} +1 -1
- package/_assets/{sendRawTransaction-B058K9Kh.js → sendRawTransaction-OjXRHIL2.js} +3 -3
- package/_assets/{serializeTransaction-KF-03cJY.js → serializeTransaction-DLnZlMkw.js} +1 -1
- package/_assets/{session-proposal-D8lydRcg.js → session-proposal-B3ceV0gC.js} +1 -1
- package/_assets/{session-request-CaHU4009.js → session-request-gjDbeXNt.js} +2 -2
- package/_assets/{signing-Bq3g4A7Y.js → signing-apvONNjp.js} +3 -3
- package/_assets/{socials-BrG-c6Aa.js → socials-Dy75TCD0.js} +1 -1
- package/_assets/{swaps-DHaKmVZn.js → swaps-BkGksG6W.js} +1 -1
- package/_assets/{thirdweb-aTdCGpIK.js → thirdweb-BlG_iX1k.js} +3 -3
- package/_assets/{to-serializable-transaction-BcqoQHx0.js → to-serializable-transaction-DimEv6M7.js} +2 -2
- package/_assets/{trade-encoding-Bf-VP6DB.js → trade-encoding-BOLDQRnO.js} +1 -1
- package/_assets/{transactionReceipt-DcJzxeq0.js → transactionReceipt-DqY9A12v.js} +1 -1
- package/_assets/{transactions-BLfm3Gn6.js → transactions-B5fhR7oG.js} +1 -1
- package/_assets/{useCreditPacks-RMR6xQ90.js → useCreditPacks-B1L_qiQa.js} +1 -1
- package/_assets/{useImportable-DDSrqfP0.js → useImportable-R-A9EyAA.js} +1 -1
- package/_assets/{useInfiniteGrid-Bxq6R4at.js → useInfiniteGrid-Bx8sXJAZ.js} +1 -1
- package/_assets/{useTheme-CT47H6Fl.js → useTheme-LaiITmZ2.js} +1 -1
- package/_assets/{verifyHash-ClgmzB1L.js → verifyHash-BIo1ZXB6.js} +1 -1
- package/_assets/{w3m-modal-16eQ9GHq.js → w3m-modal-37w4aqnH.js} +1 -1
- package/_assets/{w3m-modal-DbJYmEbS.js → w3m-modal-tZtOV1xg.js} +1 -1
- package/_assets/{wait-for-tx-receipt-DdcASAzC.js → wait-for-tx-receipt-DIfyB-iU.js} +1 -1
- package/_assets/{wallets-CQ9eMOop.js → wallets-Ce_Ttxgu.js} +5 -5
- package/_assets/{web-connector-CT2Y5er0.js → web-connector-BLDQZwne.js} +3 -3
- package/_assets/{writeContract-D-02hbjh.js → writeContract-83d_ErOg.js} +1 -1
- package/_assets/{zoraTestnet-1Y8XuTqt.js → zoraTestnet-DoHMZBja.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-Gzy4GicN.js +0 -357
- package/_assets/ItemDetail-NzNfUTW6.js +0 -3375
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t as e,q as B,v as ge,d as
|
|
1
|
+
import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t as e,q as B,v as ge,d as n,e as p,l as ue,y as fe,U as u,b7 as me,D as N,bg as U,bK as be,I as ie,b0 as D,x as re,bL as H}from"./index-CkcRMZdJ.js";import{R as K}from"./resume-buy-Bf0zIH7y.js";import{u as we,a as ye,R as ke,c as Ce,i as ve,b as $e}from"./useCreditPacks-B1L_qiQa.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";const P="https://cdn.decentraland.org/@dcl/shop/0.6.1-30952038035.commit-ab739fb/_assets/pack-coins-BDh1ZDbh.webp",ne="https://cdn.decentraland.org/@dcl/shop/0.6.1-30952038035.commit-ab739fb/_assets/pack-stacks-D-V2jSHW.webp",oe="https://cdn.decentraland.org/@dcl/shop/0.6.1-30952038035.commit-ab739fb/_assets/pack-chest-BX_j84xW.webp",je="https://cdn.decentraland.org/@dcl/shop/0.6.1-30952038035.commit-ab739fb/_assets/credit-coin-CmcTCd5i.webp",Se="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",Pe="https://cdn.decentraland.org/@dcl/shop/0.6.1-30952038035.commit-ab739fb/_assets/packs-backdrop-BcXiUPeP.webp",O="linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",_e=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{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
18
18
|
${e.media.maxWidth("mobile")} {
|
|
19
19
|
padding: 32px 16px 40px;
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`,Te=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(${Pe});
|
|
28
28
|
background-size: cover;
|
|
29
29
|
background-position: 50% 96%;
|
|
30
30
|
background-repeat: no-repeat;
|
|
31
|
-
`,
|
|
31
|
+
`,Ae=i.div`
|
|
32
32
|
width: 100%;
|
|
33
33
|
max-width: 1478px;
|
|
34
34
|
display: flex;
|
|
@@ -40,14 +40,14 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
40
40
|
${e.media.maxWidth("lg")} {
|
|
41
41
|
gap: 32px;
|
|
42
42
|
}
|
|
43
|
-
`,
|
|
43
|
+
`,ze=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;
|
|
@@ -59,13 +59,13 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
59
59
|
${e.media.maxWidth("mobile")} {
|
|
60
60
|
font-size: 28px;
|
|
61
61
|
}
|
|
62
|
-
`,
|
|
62
|
+
`,Ee=i.div`
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-wrap: wrap;
|
|
65
65
|
align-items: center;
|
|
66
66
|
justify-content: center;
|
|
67
67
|
gap: 8px;
|
|
68
|
-
`,
|
|
68
|
+
`,Fe=i.p`
|
|
69
69
|
margin: 0;
|
|
70
70
|
font-family: ${e.font.sans};
|
|
71
71
|
font-size: 24px;
|
|
@@ -76,7 +76,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
76
76
|
${e.media.maxWidth("mobile")} {
|
|
77
77
|
font-size: 16px;
|
|
78
78
|
}
|
|
79
|
-
`,
|
|
79
|
+
`,Le=i.a`
|
|
80
80
|
display: inline-flex;
|
|
81
81
|
align-items: center;
|
|
82
82
|
gap: 2px;
|
|
@@ -110,7 +110,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
110
110
|
height: 18px;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
`,
|
|
113
|
+
`,Ie=i.p`
|
|
114
114
|
margin: 0;
|
|
115
115
|
padding: 10px 16px;
|
|
116
116
|
border-radius: ${e.radius.btn};
|
|
@@ -236,7 +236,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
236
236
|
padding: 8px;
|
|
237
237
|
border-radius: 16px;
|
|
238
238
|
}
|
|
239
|
-
`,
|
|
239
|
+
`,We=i.span`
|
|
240
240
|
position: absolute;
|
|
241
241
|
top: -18px;
|
|
242
242
|
left: 50%;
|
|
@@ -290,7 +290,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
290
290
|
align-items: center;
|
|
291
291
|
gap: 12px;
|
|
292
292
|
width: 100%;
|
|
293
|
-
`,
|
|
293
|
+
`,Me=i.span`
|
|
294
294
|
display: flex;
|
|
295
295
|
align-items: center;
|
|
296
296
|
gap: 8px;
|
|
@@ -307,7 +307,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
307
307
|
height: 24.81px;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
`,
|
|
310
|
+
`,Ge=i.span`
|
|
311
311
|
font-family: ${e.font.sans};
|
|
312
312
|
font-size: 40px;
|
|
313
313
|
font-weight: 800;
|
|
@@ -318,7 +318,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
318
318
|
font-size: 32px;
|
|
319
319
|
line-height: 24px;
|
|
320
320
|
}
|
|
321
|
-
`,
|
|
321
|
+
`,Ne=i.span`
|
|
322
322
|
font-family: ${e.font.sans};
|
|
323
323
|
font-size: 20px;
|
|
324
324
|
font-weight: 500;
|
|
@@ -330,7 +330,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
330
330
|
font-size: 16px;
|
|
331
331
|
line-height: 12px;
|
|
332
332
|
}
|
|
333
|
-
`,
|
|
333
|
+
`,Ue=i.span`
|
|
334
334
|
display: block;
|
|
335
335
|
width: 70%;
|
|
336
336
|
aspect-ratio: 1;
|
|
@@ -341,7 +341,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
341
341
|
height: 100%;
|
|
342
342
|
object-fit: contain;
|
|
343
343
|
}
|
|
344
|
-
`,
|
|
344
|
+
`,De=i.span`
|
|
345
345
|
display: flex;
|
|
346
346
|
align-items: center;
|
|
347
347
|
justify-content: center;
|
|
@@ -365,7 +365,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
365
365
|
letter-spacing: 0.46px;
|
|
366
366
|
color: ${e.colors.text2};
|
|
367
367
|
text-transform: uppercase;
|
|
368
|
-
`,
|
|
368
|
+
`,He=B`
|
|
369
369
|
to {
|
|
370
370
|
background-position: -200% 0;
|
|
371
371
|
}
|
|
@@ -378,29 +378,29 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
378
378
|
rgba(255, 255, 255, 0.08) 70%
|
|
379
379
|
);
|
|
380
380
|
background-size: 200% 100%;
|
|
381
|
-
animation: ${
|
|
381
|
+
animation: ${He} 1.4s infinite linear;
|
|
382
382
|
|
|
383
383
|
@media (prefers-reduced-motion: reduce) {
|
|
384
384
|
animation: none;
|
|
385
385
|
}
|
|
386
|
-
`,
|
|
386
|
+
`,Ke=i(E)`
|
|
387
387
|
width: 60%;
|
|
388
388
|
height: 30px;
|
|
389
389
|
border-radius: ${e.radius.chip};
|
|
390
|
-
`,
|
|
390
|
+
`,Oe=i(E)`
|
|
391
391
|
width: 253.5px;
|
|
392
392
|
max-width: 100%;
|
|
393
393
|
aspect-ratio: 1;
|
|
394
394
|
border-radius: 16px;
|
|
395
|
-
`,
|
|
395
|
+
`,Ye=i(E)`
|
|
396
396
|
width: 100%;
|
|
397
397
|
height: 48px;
|
|
398
398
|
border-radius: ${e.radius.card};
|
|
399
|
-
`,
|
|
399
|
+
`,Ve=i.p`
|
|
400
400
|
margin: 0;
|
|
401
401
|
font-family: ${e.font.sans};
|
|
402
402
|
color: ${e.colors.muted};
|
|
403
|
-
`,
|
|
403
|
+
`,qe=i.div`
|
|
404
404
|
position: absolute;
|
|
405
405
|
inset: 0;
|
|
406
406
|
z-index: 1;
|
|
@@ -411,13 +411,13 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
411
411
|
gap: 24px;
|
|
412
412
|
padding: 24px;
|
|
413
413
|
text-align: center;
|
|
414
|
-
`,
|
|
414
|
+
`,Xe=i.p`
|
|
415
415
|
margin: 0;
|
|
416
416
|
font-family: ${e.font.sans};
|
|
417
417
|
font-size: 16px;
|
|
418
418
|
line-height: 1.4;
|
|
419
419
|
color: rgba(255, 255, 255, 0.88);
|
|
420
|
-
`,
|
|
420
|
+
`,Qe=B`
|
|
421
421
|
0%, 100% {
|
|
422
422
|
transform: scale(1);
|
|
423
423
|
opacity: 1;
|
|
@@ -426,7 +426,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
426
426
|
transform: scale(0.88);
|
|
427
427
|
opacity: 0.7;
|
|
428
428
|
}
|
|
429
|
-
`,
|
|
429
|
+
`,Ze=i.div`
|
|
430
430
|
display: flex;
|
|
431
431
|
flex-direction: column;
|
|
432
432
|
align-items: center;
|
|
@@ -437,7 +437,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
437
437
|
`,se=i.img`
|
|
438
438
|
width: 61px;
|
|
439
439
|
height: 61px;
|
|
440
|
-
animation: ${
|
|
440
|
+
animation: ${Qe} 1.2s ease-in-out infinite;
|
|
441
441
|
|
|
442
442
|
@media (prefers-reduced-motion: reduce) {
|
|
443
443
|
animation: none;
|
|
@@ -445,12 +445,12 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
445
445
|
`,Je=i(se)`
|
|
446
446
|
width: 72px;
|
|
447
447
|
height: 72px;
|
|
448
|
-
`,
|
|
448
|
+
`,et=i.div`
|
|
449
449
|
display: flex;
|
|
450
450
|
flex-direction: column;
|
|
451
451
|
align-items: center;
|
|
452
452
|
gap: 8px;
|
|
453
|
-
`,
|
|
453
|
+
`,tt=i.p`
|
|
454
454
|
margin: 0;
|
|
455
455
|
font-family: ${e.font.sans};
|
|
456
456
|
font-size: 20px;
|
|
@@ -460,18 +460,18 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
460
460
|
strong {
|
|
461
461
|
font-weight: 700;
|
|
462
462
|
}
|
|
463
|
-
`,
|
|
463
|
+
`,it=i.div`
|
|
464
464
|
display: flex;
|
|
465
465
|
align-items: center;
|
|
466
466
|
gap: 8px;
|
|
467
|
-
`,
|
|
467
|
+
`,rt=B`
|
|
468
468
|
0% {
|
|
469
469
|
left: -40%;
|
|
470
470
|
}
|
|
471
471
|
100% {
|
|
472
472
|
left: 100%;
|
|
473
473
|
}
|
|
474
|
-
`,
|
|
474
|
+
`,nt=i.span`
|
|
475
475
|
position: relative;
|
|
476
476
|
width: 456px;
|
|
477
477
|
max-width: 60vw;
|
|
@@ -479,7 +479,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
479
479
|
border-radius: ${e.radius.pill};
|
|
480
480
|
background: ${e.colors.chip};
|
|
481
481
|
overflow: hidden;
|
|
482
|
-
`,
|
|
482
|
+
`,ot=i.span`
|
|
483
483
|
position: absolute;
|
|
484
484
|
top: 0;
|
|
485
485
|
left: -40%;
|
|
@@ -487,25 +487,25 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
487
487
|
height: 100%;
|
|
488
488
|
border-radius: ${e.radius.pill};
|
|
489
489
|
background: ${e.gradients.amethyst};
|
|
490
|
-
animation: ${
|
|
490
|
+
animation: ${rt} 1.4s ease-in-out infinite;
|
|
491
491
|
|
|
492
492
|
@media (prefers-reduced-motion: reduce) {
|
|
493
493
|
left: 0;
|
|
494
494
|
width: 30%;
|
|
495
495
|
animation: none;
|
|
496
496
|
}
|
|
497
|
-
`,
|
|
497
|
+
`,st=i.span`
|
|
498
498
|
font-family: ${e.font.sans};
|
|
499
499
|
font-size: 16px;
|
|
500
500
|
line-height: 22px;
|
|
501
501
|
color: ${e.colors.text2};
|
|
502
|
-
`,
|
|
502
|
+
`,at=i.div`
|
|
503
503
|
display: flex;
|
|
504
504
|
flex-direction: column;
|
|
505
505
|
gap: 12px;
|
|
506
506
|
max-width: 895px;
|
|
507
507
|
margin: 0 auto;
|
|
508
|
-
`,
|
|
508
|
+
`,dt=i.div`
|
|
509
509
|
display: flex;
|
|
510
510
|
align-items: center;
|
|
511
511
|
gap: 16px;
|
|
@@ -518,11 +518,11 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
518
518
|
flex-direction: column;
|
|
519
519
|
text-align: center;
|
|
520
520
|
}
|
|
521
|
-
`,
|
|
521
|
+
`,ct=i.img`
|
|
522
522
|
flex: none;
|
|
523
523
|
width: 60px;
|
|
524
524
|
height: 60px;
|
|
525
|
-
`,
|
|
525
|
+
`,lt=i.p`
|
|
526
526
|
flex: 1;
|
|
527
527
|
margin: 0;
|
|
528
528
|
font-family: ${e.font.sans};
|
|
@@ -534,12 +534,12 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
534
534
|
strong {
|
|
535
535
|
font-weight: 700;
|
|
536
536
|
}
|
|
537
|
-
`,
|
|
537
|
+
`,pt=i.div`
|
|
538
538
|
padding: 24px;
|
|
539
539
|
border-radius: 16px;
|
|
540
540
|
background: ${e.colors.white};
|
|
541
541
|
border: 1px solid ${e.colors.gray4};
|
|
542
|
-
`,
|
|
542
|
+
`,ht=i.div`
|
|
543
543
|
position: relative;
|
|
544
544
|
display: flex;
|
|
545
545
|
align-items: center;
|
|
@@ -563,7 +563,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
563
563
|
gap: 10px;
|
|
564
564
|
padding: 120px 16px 16px;
|
|
565
565
|
}
|
|
566
|
-
`,
|
|
566
|
+
`,xt=i.img`
|
|
567
567
|
position: absolute;
|
|
568
568
|
left: 35px;
|
|
569
569
|
top: 50%;
|
|
@@ -577,7 +577,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
577
577
|
top: 16px;
|
|
578
578
|
transform: translateX(-50%);
|
|
579
579
|
}
|
|
580
|
-
`,
|
|
580
|
+
`,gt=i.p`
|
|
581
581
|
display: inline-flex;
|
|
582
582
|
align-items: center;
|
|
583
583
|
gap: 8px;
|
|
@@ -590,14 +590,14 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
590
590
|
height: 30px;
|
|
591
591
|
color: ${e.colors.text};
|
|
592
592
|
}
|
|
593
|
-
`,
|
|
593
|
+
`,ut=i.strong`
|
|
594
594
|
font-size: 24px;
|
|
595
595
|
font-weight: 700;
|
|
596
596
|
text-transform: capitalize;
|
|
597
|
-
`,
|
|
597
|
+
`,ft=i.span`
|
|
598
598
|
font-size: 14px;
|
|
599
599
|
font-weight: 400;
|
|
600
|
-
`,
|
|
600
|
+
`,mt=i.div`
|
|
601
601
|
display: flex;
|
|
602
602
|
gap: 12px;
|
|
603
603
|
|
|
@@ -650,7 +650,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
650
650
|
margin: 0 auto;
|
|
651
651
|
padding: 48px 24px;
|
|
652
652
|
text-align: center;
|
|
653
|
-
`,
|
|
653
|
+
`,Z=i.p`
|
|
654
654
|
margin: 0;
|
|
655
655
|
font-family: ${e.font.sans};
|
|
656
656
|
font-size: 20px;
|
|
@@ -660,12 +660,12 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
660
660
|
&[data-tone='error'] {
|
|
661
661
|
color: ${e.colors.err};
|
|
662
662
|
}
|
|
663
|
-
`,
|
|
663
|
+
`,J=i.div`
|
|
664
664
|
display: flex;
|
|
665
665
|
gap: 12px;
|
|
666
666
|
margin-top: 16px;
|
|
667
|
-
`,
|
|
667
|
+
`,bt=i.p`
|
|
668
668
|
margin: 0;
|
|
669
669
|
font-family: ${e.font.sans};
|
|
670
670
|
color: ${e.colors.err};
|
|
671
|
-
`,v=
|
|
671
|
+
`,v=ve()?"mock":"stripe",ee=[P,P,ne,oe],wt={pack_5:P,pack_10:P,pack_25:ne,pack_50:oe};function ae(a,o){return wt[a.id]??ee[o%ee.length]}function yt(a,o){return a.artUrl??ae(a,o)}const kt="https://docs.decentraland.org";function te(a){const o=a;if((o==null?void 0:o.name)==="AbortError")return n("getCredits.errorCanceled");const f=((o==null?void 0:o.message)??"").toLowerCase();return f.includes("sign in")?n("getCredits.errorSignIn",{currency:p.name}):f.includes("timed out")?n("getCredits.errorTimeout",{currency:p.name}):n("getCredits.errorGeneric")}function At(){var W;ge({title:n("nav.getCredits",{currency:p.name}),noindex:!0});const a=he(),{session:o,signIn:f}=ue(),s=fe(),[m,b]=xe(),{packs:$,isLoading:y}=we(),[x,h]=l.useState("select"),[c,F]=l.useState(null),[j,L]=l.useState(null),de=(j!=null?(W=$.find(r=>r.credits===j))==null?void 0:W.artUrl:void 0)??je,[ce,k]=l.useState(null),[le,_]=l.useState(!1),R=l.useRef(null);l.useEffect(()=>()=>{var r;return(r=R.current)==null?void 0:r.abort()},[]);const I=l.useCallback(()=>{b(r=>{const d=new URLSearchParams(r);return d.delete("order"),d.delete("canceled"),d},{replace:!0})},[b]),T=l.useCallback(async r=>{h("processing");const d=new AbortController;R.current=d;try{const g=await ye(r,{signal:d.signal,address:o==null?void 0:o.address,identity:o==null?void 0:o.identity});if(g.status==="credited"){const w=g.creditsGranted??(c==null?void 0:c.credits)??0;L(w>0?w:null),h("success"),u("Shop Completed Buy Credits",{order_id:r,pack_usd:(c==null?void 0:c.usd)??null,credits:w>0?w:null,provider:v}),s.invalidateQueries({queryKey:["usd-balance"]});try{if(sessionStorage.getItem(ke)){const S={resumeCheckout:!0,...w>0?{creditsAdded:w}:{}};a("/cart",{state:S});return}}catch{}try{const S=sessionStorage.getItem(K);if(S){sessionStorage.removeItem(K);const M=JSON.parse(S),G=me(M);if(G){a(G,{state:{item:M,resumeBuy:!0}});return}}}catch{}}else g.status==="pending"?(u("Shop Buy Credits Pending",{step:"grant",pack_usd:(c==null?void 0:c.usd)??null}),s.invalidateQueries({queryKey:["usd-balance"]}),h("pending")):(u("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(c==null?void 0:c.usd)??null}),k(g.error??n("getCredits.errorGrant",{currency:p.name})),h("error"))}catch(g){N(g,{flow:"get_credits",step:"grant",order_id:r}),u("Shop Buy Credits Failed",{step:"grant",error_code:U(g),pack_usd:(c==null?void 0:c.usd)??null}),k(te(g)),h("error")}},[c,o,s,a]),pe=l.useCallback(async r=>{if(!o){f();return}k(null),_(!1),F(r),h(v==="mock"?"processing":"redirecting"),u("Shop Started Buy Credits",{pack_usd:r.usd,credits:r.credits,provider:v});try{const d=await Ce(r.id,{address:o.address,identity:o.identity});if(d.mock)T(d.orderId);else if(d.url)u("Shop Redirected To Stripe",{order_id:d.orderId,pack_usd:r.usd,credits:r.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:v}),u("Shop Buy Credits Failed",{step:"checkout",error_code:U(d),pack_usd:r.usd}),k(te(d)),h("error")}},[o,f,T]),A=l.useRef(!1);l.useEffect(()=>{if(A.current)return;const r=m.get("order");if(m.get("canceled")!=null){A.current=!0,u("Shop Buy Credits Cancelled",{order_id:r,provider:v}),r&&o&&be(r,o.identity),I(),_(!0),h("select");return}r&&(h("processing"),o&&(A.current=!0,I(),T(r)))},[m,o]);function z(){var r;(r=R.current)==null||r.abort(),h("select"),F(null),L(null),k(null),_(!1)}return t.jsxs(_e,{children:[(x==="select"||x==="redirecting")&&t.jsxs(Re,{"data-testid":"credits-hero",children:[t.jsx(Te,{"aria-hidden":!0}),t.jsxs(Ae,{$hidden:x==="redirecting",children:[t.jsxs(ze,{children:[t.jsx(Be,{children:n("getCredits.title",{currency:p.name})}),t.jsxs(Ee,{children:[t.jsx(Fe,{children:n("getCredits.subtitle",{currency:p.nameSingular})}),t.jsxs(Le,{href:kt,target:"_blank",rel:"noreferrer",children:[n("getCredits.learnMore"),t.jsx(ie,{name:"link-out"})]})]})]}),le&&t.jsx(Ie,{role:"status",children:n("getCredits.canceledNote")}),t.jsx(Ct,{packs:$,loading:y,onSelect:r=>void pe(r)})]}),x==="redirecting"&&t.jsxs(qe,{role:"status","aria-live":"polite",children:[t.jsx(Je,{src:D,alt:"",width:72,height:72}),t.jsx(Xe,{children:n("getCredits.redirecting")})]})]}),x==="processing"&&t.jsxs(Ze,{role:"status","aria-live":"polite",children:[t.jsx(se,{src:D,alt:"",width:61,height:61}),t.jsxs(et,{children:[t.jsxs(tt,{children:[t.jsx("strong",{children:n("getCredits.processing")}),"…"]}),t.jsxs(it,{"aria-hidden":!0,children:[t.jsx(nt,{children:t.jsx(ot,{})}),t.jsx(st,{children:"1/1"})]})]})]}),x==="success"&&t.jsxs(at,{role:"status","aria-live":"polite",children:[t.jsxs(dt,{children:[t.jsx(ct,{src:Se,alt:"",width:60,height:60}),t.jsxs(lt,{children:[t.jsx("strong",{children:n("getCredits.successTitle")})," ",n("getCredits.successBody",{currency:p.name})]})]}),j!=null&&t.jsx(pt,{children:t.jsxs(ht,{children:[t.jsx(xt,{src:de,alt:"",width:93,height:93}),t.jsxs(gt,{children:[t.jsx(re,{}),t.jsxs("span",{children:[t.jsx(ut,{children:n("getCredits.creditsAmount",{credits:j,currency:p.name})})," ",t.jsx(ft,{children:n("getCredits.creditsAdded")})]})]})]})}),t.jsxs(mt,{children:[t.jsx(C,{"data-variant":"outline",onClick:z,children:n("getCredits.buyMore",{currency:p.name})}),t.jsx(C,{onClick:()=>a("/items"),children:n("getCredits.startShopping")})]})]}),x==="pending"&&t.jsxs(Q,{role:"status","aria-live":"polite",children:[t.jsx(Z,{children:n("getCredits.pendingTitle",{currency:p.name})}),t.jsx(Ve,{children:n("getCredits.pendingBody")}),t.jsxs(J,{children:[t.jsx(C,{onClick:()=>a("/items"),children:n("getCredits.startShopping")}),t.jsx(C,{"data-variant":"outline",onClick:z,children:n("getCredits.done")})]})]}),x==="error"&&t.jsxs(Q,{role:"alert",children:[t.jsx(Z,{"data-tone":"error",children:n("getCredits.errorTitle")}),t.jsx(bt,{children:ce}),t.jsx(J,{children:t.jsx(C,{onClick:z,children:n("getCredits.tryAgain")})})]})]})}function Ct({packs:a,loading:o,onSelect:f}){return o?t.jsx(Y,{"aria-busy":"true","aria-label":n("getCredits.packsLoading",{currency:p.name}),children:[0,1,2,3].map(s=>t.jsxs(V,{as:"div","data-skeleton":"true","data-testid":"pack-skeleton","aria-hidden":!0,children:[t.jsxs(q,{children:[t.jsx(X,{children:t.jsx(Ke,{})}),t.jsx(Oe,{})]}),t.jsx(Ye,{})]},s))}):t.jsx(Y,{children:a.map((s,m)=>{const b=$e(s,a);return t.jsxs(V,{type:"button","data-testid":"pack","data-best":s.bestValue?"true":void 0,onClick:()=>f(s),"aria-label":b?n("getCredits.packAriaBonus",{amount:H(s.credits),usd:s.usd,bonus:b.bonus,baseline:b.baseline}):n("getCredits.packAria",{amount:H(s.credits),usd:s.usd}),children:[s.bestValue&&t.jsxs(We,{children:[t.jsx(ie,{name:"star-rounded"}),n("getCredits.packBadge")]}),t.jsxs(q,{children:[t.jsxs(X,{children:[t.jsxs(Me,{children:[t.jsx(re,{}),t.jsx(Ge,{children:s.credits})]}),t.jsx(Ne,{children:n("getCredits.packUnit",{currency:p.name})})]}),t.jsx(Ue,{children:t.jsx("img",{src:yt(s,m),alt:"",loading:"lazy",width:507,height:507,onError:$=>{const y=$.currentTarget;y.dataset.artFallback||(y.dataset.artFallback="done",y.src=ae(s,m))}})})]}),t.jsxs(De,{children:["$",s.usd.toFixed(2)]})]},s.id)})})}export{At as GetCredits,At 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-D_ZvDVdA.js";import{d as g,r as v}from"./index-Bm6qEnT_.js";import{C as c}from"./ConstantsUtil-Di3dRDAF.js";import{R as $,O as u}from"./W3MFrameProviderSingleton-3o8ISiTB.js";import{au as y}from"./NetworkUtil-EoWQDMpU.js";const b=g`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|