@dcl/shop 0.3.0 → 0.4.0
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-CysvRMDH.js → Activity-CSDWiFkq.js} +1 -1
- package/_assets/{AnimatedBackground-1KvWirPP.js → AnimatedBackground-vKrEOHA5.js} +1 -1
- package/_assets/{Assets-CmA7g8ft.js → Assets-Cogahyqe.js} +3 -3
- package/_assets/{Assets.styles-BwMj4485.js → Assets.styles-B2EWL6JB.js} +1 -1
- package/_assets/{Authorizations-CfvVeEJl.js → Authorizations-BrKYlkZG.js} +1 -1
- package/_assets/{Cart-CYHKPPD-.js → Cart-W8w3sCuV.js} +5 -5
- package/_assets/{CircularProgress-oGg4qqHc.js → CircularProgress--GC-6I6k.js} +1 -1
- package/_assets/{Collection-Dmap3sR_.js → Collection-D16pjJSe.js} +1 -1
- package/_assets/{CollectionCarousel-DiADjTg-.js → CollectionCarousel-BeuBL17J.js} +77 -77
- package/_assets/{Creator-DB4BIeTa.js → Creator-BLsHzXRL.js} +1 -1
- package/_assets/{ErrorNotice-CBx78pQu.js → ErrorNotice-Cvc0nTjw.js} +1 -1
- package/_assets/{ExchangeController-DOvKzvyb.js → ExchangeController-DoFEzXko.js} +1 -1
- package/_assets/{GetCredits-Ch_OO41P.js → GetCredits-bxJh6m8F.js} +94 -130
- package/_assets/{HelpersUtil-CFCkU-g3.js → HelpersUtil-BFgierZ-.js} +1 -1
- package/_assets/{ImportListings-BGmtSIDb.js → ImportListings-BwORJ3CC.js} +13 -13
- package/_assets/{ItemDetail-ramYOGDR.js → ItemDetail-PoeIzOPp.js} +194 -194
- package/_assets/{ItemPreview.styles-D8aGYVBK.js → ItemPreview.styles-DtAUND9N.js} +1 -1
- package/_assets/{LoadMore-BSE8BKwI.js → LoadMore-DsWSQHxD.js} +1 -1
- package/_assets/ManaPricingBanner.styles-CF0iOeeS.js +74 -0
- package/_assets/{MenuList-qnDzTtfz.js → MenuList-DNOqfxHx.js} +1 -1
- package/_assets/{MyAssets-CgneL-KA.js → MyAssets-2XwaE-SE.js} +4 -4
- package/_assets/{MyFavorites-DrPT--am.js → MyFavorites-DIi3ztNe.js} +1 -1
- package/_assets/{NotFound-4IJj-QH6.js → NotFound-jHtQUp44.js} +1 -1
- package/_assets/{NotificationsBell-BOg2j5-7.js → NotificationsBell-By0uu4SI.js} +1 -1
- package/_assets/{OutfitDetail-DAfw3jDe.js → OutfitDetail-BQr6vhnT.js} +1 -1
- package/_assets/{OutfitPreview-DMQpfBpS.js → OutfitPreview-D6Z7-XEK.js} +1 -1
- package/_assets/{OutfitStudio-qASOqFO4.js → OutfitStudio-BFWU775v.js} +1 -1
- package/_assets/{StoreSettings-CjbyuHVf.js → StoreSettings-BJTpsKoX.js} +1 -1
- package/_assets/{Success-Ba2GyRY_.js → Success-CIQKaiOo.js} +1 -1
- package/_assets/{SwapController-B823Ep4J.js → SwapController-XcLKHFDT.js} +1 -1
- package/_assets/{Tooltip-2XcUkoOj.js → Tooltip-fS4VCxQs.js} +1 -1
- package/_assets/{TradeService-lYuRlk4v.js → TradeService-BgfeT0JQ.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-B8ZAc5Tp.js → W3MFrameProviderSingleton-BJE-tnmd.js} +3 -3
- package/_assets/{WebCryptoP256-CrjjL3U7.js → WebCryptoP256-P_MkVOZf.js} +1 -1
- package/_assets/authorizations-Bm65kFBw.js +1 -0
- package/_assets/{basic-3OIT7lDP.js → basic-BzdDurZu.js} +1 -1
- package/_assets/{biconomy-CLvfOfCg.js → biconomy-BHLIxKXm.js} +1 -1
- package/_assets/{browseLayout.styles-DCwE16ZG.js → browseLayout.styles-D_JQHeMK.js} +4 -4
- package/_assets/{builder-CoZ9B86k.js → builder-CPpn-LV6.js} +1 -1
- package/_assets/buy-CfVy6xwA.js +1 -0
- package/_assets/{buy-gasless-uIQiLsX8.js → buy-gasless-DmFIjDH7.js} +1 -1
- package/_assets/categories-D2JgaepG.js +448 -0
- package/_assets/{ccip-C8TW-3ey.js → ccip-BGuL2CTW.js} +1 -1
- package/_assets/{ccip-C4f9EXfY.js → ccip-japHsC-d.js} +1 -1
- package/_assets/{clsx-BsYHeX03.js → clsx-DY37pDvc.js} +1 -1
- package/_assets/{controller-ASkKeRkX.js → controller-CEuTNpMI.js} +2 -2
- package/_assets/{core-X_wu6_Dy.js → core-DFTtNj6Y.js} +4 -4
- package/_assets/{createSvgIcon-D4cpIqvx.js → createSvgIcon-BFo-10ds.js} +3 -3
- package/_assets/{custom-BVAi4D5H.js → custom-DyS8vC8K.js} +1 -1
- package/_assets/{data-capture-C23iRBhs.js → data-capture-CpqP5gpO.js} +1 -1
- package/_assets/{email-CB03fcCQ.js → email-DOkwtMrW.js} +1 -1
- package/_assets/{embedded-wallet-CnMDk9db.js → embedded-wallet-BI0I-FyI.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-CNluusdx.js → emotion-styled.browser.esm-nmKSs9QV.js} +1 -1
- package/_assets/{engine-DaJGLPH7.js → engine-BsCDGGhp.js} +1 -1
- package/_assets/{errors-CJ4NHTPm.js → errors-CVWX9epA.js} +1 -1
- package/_assets/{estimate-l1-fee-DC2eYWPQ.js → estimate-l1-fee-BwVQYvPZ.js} +1 -1
- package/_assets/{execute-vh_I47EG.js → execute-DCjeHtk2.js} +2 -2
- package/_assets/{features-i2gsSk7q.js → features-DmQF08Nd.js} +1 -1
- package/_assets/{fetchTokenMetadata-DpicXKCe.js → fetchTokenMetadata-DtvlyEpN.js} +2 -2
- package/_assets/{field.styles-DPC95Ntd.js → field.styles-ZqzDOrCY.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-B8_se1pi.js → get-ecosystem-wallet-info-glXHSBBX.js} +1 -1
- package/_assets/{getBalance-Cee2d5fc.js → getBalance-D4uOuyXp.js} +1 -1
- package/_assets/{getNFT-CUD-atXT.js → getNFT-D9u1poHS.js} +1 -1
- package/_assets/{getNFT-BjnrEAq8.js → getNFT-VYQvQv4K.js} +1 -1
- package/_assets/{getThemeProps-B71MHgCC.js → getThemeProps-BOJ8W9dy.js} +1 -1
- package/_assets/{grid.styles-q_RkLJKv.js → grid.styles-C92STzz7.js} +1 -1
- package/_assets/{hashTypedData-Bclxfb96.js → hashTypedData-CU4XEihs.js} +1 -1
- package/_assets/{hashTypedData-CiuZE5MB.js → hashTypedData-Cmk_4l7W.js} +1 -1
- package/_assets/hero-credits-outfits-DeMMQYZj.webp +0 -0
- package/_assets/{in-app-DoTVgkA7.js → in-app-n2C_GYjN.js} +1 -1
- package/_assets/{in-app-wallet-calls-aTpQmtYp.js → in-app-wallet-calls-BH4EHvoE.js} +1 -1
- package/_assets/{index-DJ0Ox_g6.js → index-1DlQc04C.js} +1 -1
- package/_assets/{index-oYINO7Gh.js → index-1E3TZOEp.js} +3 -3
- package/_assets/{index-ZtNObKUx.js → index-3G1ZZRHy.js} +1 -1
- package/_assets/{index-C_quGuYS.js → index-5ZQ75r5A.js} +2 -2
- package/_assets/{index-BOqO3K08.js → index-5oJAYQpS.js} +1 -1
- package/_assets/{index-DnUnGNK1.js → index-8ahFN9pV.js} +1 -1
- package/_assets/{index-BLIOngWK.js → index-9ZSFZyk5.js} +1 -1
- package/_assets/{index-CkdrAVd7.js → index-B-0owZIE.js} +1 -1
- package/_assets/{index-KhxRGpab.js → index-B-2A_xJK.js} +1 -1
- package/_assets/index-B0wrSWVL.js +3467 -0
- package/_assets/{index-DxbeSgwP.js → index-B33pX4sx.js} +1 -1
- package/_assets/{index-CnAxZm7a.js → index-B6HLteu2.js} +1 -1
- package/_assets/{index-C-ZPerkC.js → index-B95j5ECm.js} +1 -1
- package/_assets/{index-D2Hh-irJ.js → index-BAGHoKjd.js} +1 -1
- package/_assets/{index-BdZJNMhf.js → index-BAKuuHpY.js} +1 -1
- package/_assets/{index-Br-QxSL4.js → index-BBLwTza9.js} +1 -1
- package/_assets/{index-CLm5_lcW.js → index-BFbvmloZ.js} +1 -1
- package/_assets/{index-DREmVGyP.js → index-BKB9eVo_.js} +1 -1
- package/_assets/{index-CShk5nTD.js → index-Bdk6ierZ.js} +1 -1
- package/_assets/{index-pDIZRYxP.js → index-BmtMJnoP.js} +2 -2
- package/_assets/{index-DzoYWAIJ.js → index-Bnnl1_Pn.js} +1 -1
- package/_assets/{index-CHLJVbwu.js → index-BpfebiBi.js} +1 -1
- package/_assets/{index-Dqt4TaYh.js → index-BvzZi8lQ.js} +1 -1
- package/_assets/{index-BnVjsoyV.js → index-C1Zza7kR.js} +3 -3
- package/_assets/{index-LbRdNAf3.js → index-C75VmoUV.js} +1 -1
- package/_assets/{index-CiqC5vqm.js → index-CCQWBULG.js} +1 -1
- package/_assets/{index-DAKpmmlR.js → index-CDzrsoju.js} +1 -1
- package/_assets/{index-DpAZRpHS.js → index-CFJ4759x.js} +1 -1
- package/_assets/{index-DmmqNlbI.js → index-CMiDANew.js} +1 -1
- package/_assets/{index-6U0_groo.js → index-CNek90qs.js} +1 -1
- package/_assets/{index-BIMSqj0E.js → index-CS26D5br.js} +1 -1
- package/_assets/index-D-NhBWWr.css +1 -0
- package/_assets/{index-Da9c_8XH.js → index-DCJFwzag.js} +1 -1
- package/_assets/{index-B8WxnCSZ.js → index-DCkPd79h.js} +1 -1
- package/_assets/{index-AvMVq3p5.js → index-DO-41U6s.js} +1 -1
- package/_assets/{index-Zni41xRh.js → index-DU7iVDBh.js} +3 -3
- package/_assets/{index-X-5FVXow.js → index-DUOePrjP.js} +1 -1
- package/_assets/{index-BmR9lQvd.js → index-DWyeO73d.js} +1 -1
- package/_assets/{index-CqqbmEIM.js → index-Das01MWO.js} +2 -2
- package/_assets/{index-CKgjOb17.js → index-DcW0aOo_.js} +1 -1
- package/_assets/{index-D2cHV9P4.js → index-Dg3cba8i.js} +1 -1
- package/_assets/{index-umhEn8if.js → index-DgIUvj1u.js} +1 -1
- package/_assets/{index-B-yk4_og.js → index-Drzr7GIe.js} +1 -1
- package/_assets/{index-DhW6Eiq4.js → index-DuYquyJk.js} +1 -1
- package/_assets/{index-grey-Hql.js → index-Dyb9tM0L.js} +1 -1
- package/_assets/{index-CQd88f4P.js → index-S5ytn1G_.js} +1 -1
- package/_assets/{index-pkIYUyEs.js → index-X1g5-mc1.js} +2 -2
- package/_assets/{index-Bm4qVnUT.js → index-YlEZ0MB-.js} +1 -1
- package/_assets/{index-Dk_Ivei2.js → index-gO1p5U4e.js} +1 -1
- package/_assets/{index-BMHjpFTY.js → index-iVhRHvGC.js} +1 -1
- package/_assets/{index-5tjsFjOD.js → index-lc1BgLRJ.js} +1 -1
- package/_assets/{index-tvenjK5z.js → index-x_f1XpFN.js} +1 -1
- package/_assets/{index.es-C5-qOo53.js → index.es-CYrm9JiK.js} +4 -4
- package/_assets/{index.es-C4q67lvL.js → index.es-D-Hj-yaE.js} +1 -1
- package/_assets/{index.es-gI39JHkd.js → index.es-DlCKcYQh.js} +1 -1
- package/_assets/{localBatchGatewayRequest-CYWicxBl.js → localBatchGatewayRequest-D-M3uJjn.js} +1 -1
- package/_assets/{mana-convert-C239nuRR.js → mana-convert-XtWFaGCt.js} +1 -1
- package/_assets/{mana-rate-CWXyJ6Qt.js → mana-rate-CLS7fjKR.js} +1 -1
- package/_assets/{networks-CdC9lKkb.js → networks-DLkt_HOu.js} +1 -1
- package/_assets/{onramp-B6zv6owZ.js → onramp-B9C9zg8X.js} +1 -1
- package/_assets/{openzeppelin-fBZEbwFp.js → openzeppelin-Czmq9Q8z.js} +1 -1
- package/_assets/{parseNft-Dn6QDQHN.js → parseNft-Df0bG2_u.js} +2 -2
- package/_assets/{parseSignature-DecBV3iH.js → parseSignature-Cu3sQgfL.js} +1 -1
- package/_assets/{parseSignature-DAHrPk4v.js → parseSignature-nbJG9PDg.js} +3 -3
- package/_assets/{passkeys-KiBei2LX.js → passkeys-UkbavCkH.js} +1 -1
- package/_assets/{pay-with-exchange-D9SNWmjx.js → pay-with-exchange-BZkWaWxT.js} +1 -1
- package/_assets/{qr-overlay-2zAa6fld.js → qr-overlay-BE8jnAiO.js} +1 -1
- package/_assets/{receive-ChxNL97S.js → receive-B2e1QRi3.js} +1 -1
- package/_assets/{resolveImplementation-BNaLKkof.js → resolveImplementation-BBe0akeh.js} +1 -1
- package/_assets/{rpc-DBHsoP5N.js → rpc-iEVF2nz4.js} +1 -1
- package/_assets/{secp256k1-C8JTXBnF.js → secp256k1-Ba2kPpNf.js} +1 -1
- package/_assets/{secp256k1-C2pLUi5w.js → secp256k1-ClQ_G_RL.js} +1 -1
- package/_assets/{secp256k1-xOB6yMRi.js → secp256k1-e7mCjC3J.js} +1 -1
- package/_assets/{send-BLmLJ3eA.js → send-BOmHA5ER.js} +1 -1
- package/_assets/{send-batch-transaction-120lF45D.js → send-batch-transaction-C1STwRsa.js} +1 -1
- package/_assets/{send-eip712-transaction-B2w1ZAOY.js → send-eip712-transaction-Dy9FgG1n.js} +2 -2
- package/_assets/{send-gasless-transaction-oH9WEYVY.js → send-gasless-transaction-C66wRlKz.js} +2 -2
- package/_assets/{send-transaction-CLaO8DmY.js → send-transaction-CLuOLZ7t.js} +2 -2
- package/_assets/{sendMetaTransaction-OKd_ifNL.js → sendMetaTransaction-DvDr2bCi.js} +1 -1
- package/_assets/{sendRawTransaction-BP5hNXP6.js → sendRawTransaction-DqkFhazS.js} +3 -3
- package/_assets/{serializeTransaction--Dr7RtAU.js → serializeTransaction-BEOUomEz.js} +1 -1
- package/_assets/{session-proposal-CiYz-jZC.js → session-proposal-UXG0f185.js} +1 -1
- package/_assets/{session-request-Clv9A0oy.js → session-request-DIqK3WRK.js} +2 -2
- package/_assets/{signing-CJ5kWk7o.js → signing-DReJZKDs.js} +3 -3
- package/_assets/{socials-CeLfiCF9.js → socials-CdGrw0ok.js} +1 -1
- package/_assets/{swaps-DkDPQf9R.js → swaps-CycOd3sO.js} +1 -1
- package/_assets/{thirdweb-BcTKOQfU.js → thirdweb-D5w8-dkS.js} +3 -3
- package/_assets/{to-serializable-transaction-CVgEJJoF.js → to-serializable-transaction-C1TwC6Ti.js} +2 -2
- package/_assets/{trade-encoding-COAHYjJi.js → trade-encoding-Mw7kNWLf.js} +1 -1
- package/_assets/{transactionReceipt-dayojTpn.js → transactionReceipt-DyOMk-YN.js} +1 -1
- package/_assets/{transactions-BqxmWzZz.js → transactions-VmU1Fomk.js} +1 -1
- package/_assets/{useCreditPacks-CHpQ4LEN.js → useCreditPacks-D1yz9_D9.js} +1 -1
- package/_assets/{useInfiniteGrid-sc2vmuxU.js → useInfiniteGrid-C-7TbIWI.js} +1 -1
- package/_assets/useManaRate-6JYRR5Sm.js +1 -0
- package/_assets/{useSecondarySales-C8BuUV_s.js → useSecondarySales-BhfHOcZl.js} +1 -1
- package/_assets/{useStore-D3ONm_sP.js → useStore-DCWOq5iS.js} +1 -1
- package/_assets/{useTheme-D8ClSCiJ.js → useTheme-DoVQgCCM.js} +1 -1
- package/_assets/{verifyHash-tNHFcENz.js → verifyHash-B-nszbU3.js} +1 -1
- package/_assets/{w3m-modal-D0qE5VS7.js → w3m-modal-C9EOWDq3.js} +1 -1
- package/_assets/{w3m-modal-BYIDrkH-.js → w3m-modal-y9ZrKukQ.js} +1 -1
- package/_assets/{wait-for-tx-receipt-C3lxZWQH.js → wait-for-tx-receipt-DL1snjgl.js} +1 -1
- package/_assets/{wallets-BlFrUv2a.js → wallets-CExmmU6y.js} +5 -5
- package/_assets/{web-connector-DzEBomI8.js → web-connector-vE0RE6CB.js} +3 -3
- package/_assets/{writeContract-CaaID3Lc.js → writeContract-B0sDSczf.js} +1 -1
- package/_assets/{zoraTestnet-Da9dTQUp.js → zoraTestnet-B_NFi9S-.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/ManaPricingBanner.styles-bQxgJp4R.js +0 -74
- package/_assets/authorizations-BeJcD0Ty.js +0 -1
- package/_assets/buy-5BIPC7Eq.js +0 -1
- package/_assets/categories-CmiNaFHh.js +0 -427
- package/_assets/hero-fashion-week-B9LOzkde.png +0 -0
- package/_assets/index-9_8O7Lhc.js +0 -3488
- package/_assets/index-BMzstP-8.css +0 -1
- package/_assets/promo-best-rated-emotes-C6kNvB-a.png +0 -0
- package/_assets/promo-week-selected-outfits-BBmkZYZx.png +0 -0
- package/_assets/useManaRate-Ceh_R3VR.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
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,k 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,k as B,m as ue,e as r,f as p,n as ge,q as fe,O as g,b2 as me,l as N,bb as U,I as ie,aZ as H,p as re,bu as O}from"./index-B0wrSWVL.js";import{R as D}from"./resume-buy-Bf0zIH7y.js";import{u as be,a as we,R as ye,c as ke,i as Ce,b as ve}from"./useCreditPacks-D1yz9_D9.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./mana-convert-XtWFaGCt.js";const P="https://cdn.decentraland.org/@dcl/shop/0.4.0/_assets/pack-coins-BDh1ZDbh.webp",ne="https://cdn.decentraland.org/@dcl/shop/0.4.0/_assets/pack-stacks-D-V2jSHW.webp",oe="https://cdn.decentraland.org/@dcl/shop/0.4.0/_assets/pack-chest-BX_j84xW.webp",$e="https://cdn.decentraland.org/@dcl/shop/0.4.0/_assets/credit-coin-CmcTCd5i.webp",je="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.4.0/_assets/packs-backdrop-BcXiUPeP.webp",K="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;
|
|
@@ -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
|
+
`,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
|
+
`,ze=i.h1`
|
|
51
51
|
margin: 0;
|
|
52
52
|
font-family: ${e.font.sans};
|
|
53
53
|
font-size: 40px;
|
|
@@ -120,7 +120,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.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
|
+
`,Y=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{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
136
136
|
gap: 12px;
|
|
137
137
|
row-gap: 24px;
|
|
138
138
|
}
|
|
139
|
-
`,
|
|
139
|
+
`,V=i.button`
|
|
140
140
|
position: relative;
|
|
141
141
|
display: flex;
|
|
142
142
|
flex-direction: column;
|
|
@@ -144,6 +144,8 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
144
144
|
gap: 48px;
|
|
145
145
|
min-width: 0;
|
|
146
146
|
padding: 24px 16px 16px;
|
|
147
|
+
/* No real border in either state, so nothing about the card's box can change under the pointer — both
|
|
148
|
+
strokes are painted by the masked pseudo-elements below. See the hover block for why that matters. */
|
|
147
149
|
border: 0;
|
|
148
150
|
border-radius: ${e.radius.banner};
|
|
149
151
|
background: rgba(21, 21, 21, 0.4);
|
|
@@ -156,29 +158,37 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
156
158
|
background 0.15s ease,
|
|
157
159
|
box-shadow 0.15s ease;
|
|
158
160
|
|
|
161
|
+
/* Both strokes are GRADIENTS, and both are painted here rather than with a border property.
|
|
162
|
+
Two separate reasons, and each one alone would be enough:
|
|
163
|
+
1. CSS cannot gradient-fill a border, and background-clip fights the card's translucent fill.
|
|
164
|
+
2. A pseudo-element takes no part in layout. A real border that grows 1px → 5px on hover pulls 4px off
|
|
165
|
+
the content box (box-sizing is border-box), so the card's artwork and price shrank as the pointer
|
|
166
|
+
crossed it, which in a row of four made the hovered card visibly smaller than its neighbours.
|
|
167
|
+
The flat #ffbc5b / #ff2d55 that Figma's code export reports for these strokes are not the design: the
|
|
168
|
+
export cannot represent a gradient stroke, so it emits one stop. The give-away is the mobile variant,
|
|
169
|
+
which reports #c640cd — Flare's LAST stop where desktop reports its FIRST. The page-level frame
|
|
170
|
+
(1654:374620) renders both cards with a warm gradient edge, which is what these two rules paint. */
|
|
159
171
|
&::before,
|
|
160
172
|
&::after {
|
|
161
173
|
content: '';
|
|
162
174
|
position: absolute;
|
|
175
|
+
inset: 0;
|
|
163
176
|
border-radius: inherit;
|
|
164
177
|
pointer-events: none;
|
|
165
|
-
-webkit-mask: ${
|
|
178
|
+
-webkit-mask: ${K};
|
|
166
179
|
-webkit-mask-composite: xor;
|
|
167
|
-
mask: ${
|
|
180
|
+
mask: ${K};
|
|
168
181
|
mask-composite: exclude;
|
|
169
182
|
transition: opacity 0.15s ease;
|
|
170
183
|
}
|
|
171
|
-
/*
|
|
184
|
+
/* Resting hairline: 1px of Flare. */
|
|
172
185
|
&::before {
|
|
173
|
-
inset: 0;
|
|
174
186
|
padding: 1px;
|
|
175
187
|
background: ${e.gradients.flare};
|
|
176
188
|
}
|
|
177
|
-
/* Hover
|
|
189
|
+
/* Hover: the same edge at the 5px the design gives the selected card, in the warm half of the ramp. */
|
|
178
190
|
&::after {
|
|
179
|
-
|
|
180
|
-
padding: 6px;
|
|
181
|
-
border-radius: 30px;
|
|
191
|
+
padding: 5px;
|
|
182
192
|
background: ${e.gradients.ember};
|
|
183
193
|
opacity: 0;
|
|
184
194
|
}
|
|
@@ -218,8 +228,13 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
218
228
|
opacity: 0;
|
|
219
229
|
}
|
|
220
230
|
|
|
231
|
+
/* Figma 1654:372759 — the mobile card is its own set of metrics, not a scaled-down desktop one. The
|
|
232
|
+
stroke stays the same Flare hairline: the export's #c640cd for this variant is that gradient's last
|
|
233
|
+
stop, not a second colour. */
|
|
221
234
|
${e.media.maxWidth("mobile")} {
|
|
222
|
-
gap:
|
|
235
|
+
gap: 12px;
|
|
236
|
+
padding: 8px;
|
|
237
|
+
border-radius: 16px;
|
|
223
238
|
}
|
|
224
239
|
`,Ie=i.span`
|
|
225
240
|
position: absolute;
|
|
@@ -245,18 +260,21 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
245
260
|
height: 24px;
|
|
246
261
|
}
|
|
247
262
|
|
|
263
|
+
/* Figma 1658:375459 — the mobile badge is not the desktop one scaled: it sits 9px above the card, not 18,
|
|
264
|
+
and its padding is symmetric. */
|
|
248
265
|
${e.media.maxWidth("mobile")} {
|
|
249
|
-
top: -
|
|
250
|
-
padding: 4px
|
|
251
|
-
font-size:
|
|
252
|
-
line-height:
|
|
266
|
+
top: -9px;
|
|
267
|
+
padding: 4px 8px;
|
|
268
|
+
font-size: 12px;
|
|
269
|
+
line-height: 18px;
|
|
253
270
|
|
|
254
271
|
.ico {
|
|
255
272
|
width: 18px;
|
|
256
273
|
height: 18px;
|
|
257
274
|
}
|
|
258
275
|
}
|
|
259
|
-
`,
|
|
276
|
+
`,q=i.span`
|
|
277
|
+
align-self: stretch;
|
|
260
278
|
display: flex;
|
|
261
279
|
flex-direction: column;
|
|
262
280
|
align-items: center;
|
|
@@ -264,9 +282,9 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
264
282
|
padding-top: 32px;
|
|
265
283
|
|
|
266
284
|
${e.media.maxWidth("mobile")} {
|
|
267
|
-
padding-top:
|
|
285
|
+
padding-top: 24px;
|
|
268
286
|
}
|
|
269
|
-
`,
|
|
287
|
+
`,X=i.span`
|
|
270
288
|
display: flex;
|
|
271
289
|
flex-direction: column;
|
|
272
290
|
align-items: center;
|
|
@@ -282,65 +300,39 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
282
300
|
height: 29.79px;
|
|
283
301
|
color: ${e.colors.softWhite};
|
|
284
302
|
}
|
|
303
|
+
|
|
304
|
+
${e.media.maxWidth("mobile")} {
|
|
305
|
+
.ico {
|
|
306
|
+
width: 23.5px;
|
|
307
|
+
height: 24.81px;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
285
310
|
`,Me=i.span`
|
|
286
311
|
font-family: ${e.font.sans};
|
|
287
312
|
font-size: 40px;
|
|
288
313
|
font-weight: 800;
|
|
289
314
|
line-height: 30px;
|
|
290
315
|
color: ${e.colors.white};
|
|
291
|
-
|
|
316
|
+
|
|
317
|
+
${e.media.maxWidth("mobile")} {
|
|
318
|
+
font-size: 32px;
|
|
319
|
+
line-height: 24px;
|
|
320
|
+
}
|
|
321
|
+
`,Ge=i.span`
|
|
292
322
|
font-family: ${e.font.sans};
|
|
293
323
|
font-size: 20px;
|
|
294
324
|
font-weight: 500;
|
|
295
325
|
line-height: 15px;
|
|
296
326
|
color: ${e.colors.media};
|
|
297
327
|
text-transform: uppercase;
|
|
298
|
-
`,Ge=i.span`
|
|
299
|
-
display: flex;
|
|
300
|
-
align-items: center;
|
|
301
|
-
justify-content: center;
|
|
302
|
-
gap: 8px;
|
|
303
|
-
/* The bonus pill is nowrap and this row holds it beside the struck-through amount. At two cards per row on
|
|
304
|
-
a phone that is ~118px of content, which the pair exceeds by 8-12px (measured) — so let it wrap rather
|
|
305
|
-
than push out of the card. It only ever wraps at the narrowest widths. */
|
|
306
|
-
flex-wrap: wrap;
|
|
307
|
-
max-width: 100%;
|
|
308
|
-
|
|
309
|
-
&[data-empty='true'] {
|
|
310
|
-
visibility: hidden;
|
|
311
|
-
}
|
|
312
328
|
|
|
313
|
-
.
|
|
314
|
-
|
|
315
|
-
height:
|
|
316
|
-
color: ${e.colors.softWhite};
|
|
317
|
-
opacity: 0.55;
|
|
329
|
+
${e.media.maxWidth("mobile")} {
|
|
330
|
+
font-size: 16px;
|
|
331
|
+
line-height: 12px;
|
|
318
332
|
}
|
|
319
|
-
`,He=i.span`
|
|
320
|
-
font-family: ${e.font.sans};
|
|
321
|
-
font-size: 22px;
|
|
322
|
-
font-weight: 600;
|
|
323
|
-
line-height: 24px;
|
|
324
|
-
color: rgba(255, 255, 255, 0.55);
|
|
325
|
-
text-decoration: line-through;
|
|
326
|
-
text-decoration-thickness: 2px;
|
|
327
333
|
`,Ne=i.span`
|
|
328
|
-
display: inline-flex;
|
|
329
|
-
align-items: center;
|
|
330
|
-
padding: 3px 10px;
|
|
331
|
-
border-radius: ${e.radius.pill};
|
|
332
|
-
background: rgba(255, 255, 255, 0.16);
|
|
333
|
-
border: 1px solid rgba(255, 255, 255, 0.28);
|
|
334
|
-
font-family: ${e.font.sans};
|
|
335
|
-
font-size: 13px;
|
|
336
|
-
font-weight: 700;
|
|
337
|
-
line-height: 18px;
|
|
338
|
-
color: ${e.colors.white};
|
|
339
|
-
white-space: nowrap;
|
|
340
|
-
`,De=i.span`
|
|
341
334
|
display: block;
|
|
342
|
-
width:
|
|
343
|
-
max-width: 100%;
|
|
335
|
+
width: 70%;
|
|
344
336
|
aspect-ratio: 1;
|
|
345
337
|
|
|
346
338
|
img {
|
|
@@ -349,35 +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
|
|
|
349
341
|
height: 100%;
|
|
350
342
|
object-fit: contain;
|
|
351
343
|
}
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* FLUID, capped — not a fixed 200px.
|
|
355
|
-
*
|
|
356
|
-
* The fixed width overflowed its card: measured at a 375px viewport the artwork rendered 200px inside a
|
|
357
|
-
* 150px parent, spilling 25px out of each side of the card (the max-width above did not hold it,
|
|
358
|
-
* which is why this restates the intent as a width rather than relying on a cap). Two per row means the
|
|
359
|
-
* cell is whatever half the viewport minus gaps happens to be, so the art has to follow it.
|
|
360
|
-
*/
|
|
361
|
-
@media (max-width: 520px) {
|
|
362
|
-
/**
|
|
363
|
-
* STRETCHED to the card's content box, not sized by its own content.
|
|
364
|
-
*
|
|
365
|
-
* The card is a column flex with align-items: center, so its children are shrink-to-fit — which let each
|
|
366
|
-
* pack's artwork take a different width (measured 118px and 152px in two identical 150px cards) and let
|
|
367
|
-
* the wider one spill 2px out of each side. Stretching makes every card's art box exactly the content
|
|
368
|
-
* width, so all four are identical and none can exceed it.
|
|
369
|
-
*/
|
|
370
|
-
align-self: stretch;
|
|
371
|
-
width: auto;
|
|
372
|
-
max-width: none;
|
|
373
|
-
|
|
374
|
-
/* The wrapper alone is not enough: whatever sits inside it (picture/img) must be capped too, or it
|
|
375
|
-
reintroduces the same overflow one level down. */
|
|
376
|
-
> * {
|
|
377
|
-
max-width: 100%;
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
`,Oe=i.span`
|
|
344
|
+
`,Ue=i.span`
|
|
381
345
|
display: flex;
|
|
382
346
|
align-items: center;
|
|
383
347
|
justify-content: center;
|
|
@@ -401,11 +365,11 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
401
365
|
letter-spacing: 0.46px;
|
|
402
366
|
color: ${e.colors.text2};
|
|
403
367
|
text-transform: uppercase;
|
|
404
|
-
`,
|
|
368
|
+
`,He=B`
|
|
405
369
|
to {
|
|
406
370
|
background-position: -200% 0;
|
|
407
371
|
}
|
|
408
|
-
`,
|
|
372
|
+
`,E=i.span`
|
|
409
373
|
display: block;
|
|
410
374
|
background: linear-gradient(
|
|
411
375
|
100deg,
|
|
@@ -414,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
|
|
|
414
378
|
rgba(255, 255, 255, 0.08) 70%
|
|
415
379
|
);
|
|
416
380
|
background-size: 200% 100%;
|
|
417
|
-
animation: ${
|
|
381
|
+
animation: ${He} 1.4s infinite linear;
|
|
418
382
|
|
|
419
383
|
@media (prefers-reduced-motion: reduce) {
|
|
420
384
|
animation: none;
|
|
421
385
|
}
|
|
422
|
-
`,
|
|
386
|
+
`,Oe=i(E)`
|
|
423
387
|
width: 60%;
|
|
424
388
|
height: 30px;
|
|
425
389
|
border-radius: ${e.radius.chip};
|
|
426
|
-
`,
|
|
390
|
+
`,De=i(E)`
|
|
427
391
|
width: 253.5px;
|
|
428
392
|
max-width: 100%;
|
|
429
393
|
aspect-ratio: 1;
|
|
430
394
|
border-radius: 16px;
|
|
431
|
-
`,
|
|
395
|
+
`,Ke=i(E)`
|
|
432
396
|
width: 100%;
|
|
433
397
|
height: 48px;
|
|
434
398
|
border-radius: ${e.radius.card};
|
|
435
|
-
`,
|
|
399
|
+
`,Ye=i.p`
|
|
436
400
|
margin: 0;
|
|
437
401
|
font-family: ${e.font.sans};
|
|
438
402
|
color: ${e.colors.muted};
|
|
439
|
-
`,
|
|
403
|
+
`,Ve=i.div`
|
|
440
404
|
position: absolute;
|
|
441
405
|
inset: 0;
|
|
442
406
|
z-index: 1;
|
|
@@ -447,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
|
|
|
447
411
|
gap: 24px;
|
|
448
412
|
padding: 24px;
|
|
449
413
|
text-align: center;
|
|
450
|
-
`,
|
|
414
|
+
`,qe=i.p`
|
|
451
415
|
margin: 0;
|
|
452
416
|
font-family: ${e.font.sans};
|
|
453
417
|
font-size: 16px;
|
|
454
418
|
line-height: 1.4;
|
|
455
419
|
color: rgba(255, 255, 255, 0.88);
|
|
456
|
-
`,
|
|
420
|
+
`,Xe=B`
|
|
457
421
|
0%, 100% {
|
|
458
422
|
transform: scale(1);
|
|
459
423
|
opacity: 1;
|
|
@@ -462,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
|
|
|
462
426
|
transform: scale(0.88);
|
|
463
427
|
opacity: 0.7;
|
|
464
428
|
}
|
|
465
|
-
`,
|
|
429
|
+
`,Qe=i.div`
|
|
466
430
|
display: flex;
|
|
467
431
|
flex-direction: column;
|
|
468
432
|
align-items: center;
|
|
@@ -473,20 +437,20 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
473
437
|
`,se=i.img`
|
|
474
438
|
width: 61px;
|
|
475
439
|
height: 61px;
|
|
476
|
-
animation: ${
|
|
440
|
+
animation: ${Xe} 1.2s ease-in-out infinite;
|
|
477
441
|
|
|
478
442
|
@media (prefers-reduced-motion: reduce) {
|
|
479
443
|
animation: none;
|
|
480
444
|
}
|
|
481
|
-
`,
|
|
445
|
+
`,Ze=i(se)`
|
|
482
446
|
width: 72px;
|
|
483
447
|
height: 72px;
|
|
484
|
-
`,
|
|
448
|
+
`,Je=i.div`
|
|
485
449
|
display: flex;
|
|
486
450
|
flex-direction: column;
|
|
487
451
|
align-items: center;
|
|
488
452
|
gap: 8px;
|
|
489
|
-
`,
|
|
453
|
+
`,et=i.p`
|
|
490
454
|
margin: 0;
|
|
491
455
|
font-family: ${e.font.sans};
|
|
492
456
|
font-size: 20px;
|
|
@@ -496,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
|
|
|
496
460
|
strong {
|
|
497
461
|
font-weight: 700;
|
|
498
462
|
}
|
|
499
|
-
`,
|
|
463
|
+
`,tt=i.div`
|
|
500
464
|
display: flex;
|
|
501
465
|
align-items: center;
|
|
502
466
|
gap: 8px;
|
|
503
|
-
`,
|
|
467
|
+
`,it=B`
|
|
504
468
|
0% {
|
|
505
469
|
left: -40%;
|
|
506
470
|
}
|
|
507
471
|
100% {
|
|
508
472
|
left: 100%;
|
|
509
473
|
}
|
|
510
|
-
`,
|
|
474
|
+
`,rt=i.span`
|
|
511
475
|
position: relative;
|
|
512
476
|
width: 456px;
|
|
513
477
|
max-width: 60vw;
|
|
@@ -515,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
|
|
|
515
479
|
border-radius: ${e.radius.pill};
|
|
516
480
|
background: ${e.colors.chip};
|
|
517
481
|
overflow: hidden;
|
|
518
|
-
`,
|
|
482
|
+
`,nt=i.span`
|
|
519
483
|
position: absolute;
|
|
520
484
|
top: 0;
|
|
521
485
|
left: -40%;
|
|
@@ -523,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
|
|
|
523
487
|
height: 100%;
|
|
524
488
|
border-radius: ${e.radius.pill};
|
|
525
489
|
background: ${e.gradients.amethyst};
|
|
526
|
-
animation: ${
|
|
490
|
+
animation: ${it} 1.4s ease-in-out infinite;
|
|
527
491
|
|
|
528
492
|
@media (prefers-reduced-motion: reduce) {
|
|
529
493
|
left: 0;
|
|
530
494
|
width: 30%;
|
|
531
495
|
animation: none;
|
|
532
496
|
}
|
|
533
|
-
`,
|
|
497
|
+
`,ot=i.span`
|
|
534
498
|
font-family: ${e.font.sans};
|
|
535
499
|
font-size: 16px;
|
|
536
500
|
line-height: 22px;
|
|
537
501
|
color: ${e.colors.text2};
|
|
538
|
-
`,
|
|
502
|
+
`,st=i.div`
|
|
539
503
|
display: flex;
|
|
540
504
|
flex-direction: column;
|
|
541
505
|
gap: 12px;
|
|
542
506
|
max-width: 895px;
|
|
543
507
|
margin: 0 auto;
|
|
544
|
-
`,
|
|
508
|
+
`,at=i.div`
|
|
545
509
|
display: flex;
|
|
546
510
|
align-items: center;
|
|
547
511
|
gap: 16px;
|
|
@@ -554,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
|
|
|
554
518
|
flex-direction: column;
|
|
555
519
|
text-align: center;
|
|
556
520
|
}
|
|
557
|
-
`,
|
|
521
|
+
`,dt=i.img`
|
|
558
522
|
flex: none;
|
|
559
523
|
width: 60px;
|
|
560
524
|
height: 60px;
|
|
561
|
-
`,
|
|
525
|
+
`,ct=i.p`
|
|
562
526
|
flex: 1;
|
|
563
527
|
margin: 0;
|
|
564
528
|
font-family: ${e.font.sans};
|
|
@@ -570,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
|
|
|
570
534
|
strong {
|
|
571
535
|
font-weight: 700;
|
|
572
536
|
}
|
|
573
|
-
`,
|
|
537
|
+
`,lt=i.div`
|
|
574
538
|
padding: 24px;
|
|
575
539
|
border-radius: 16px;
|
|
576
540
|
background: ${e.colors.white};
|
|
577
541
|
border: 1px solid ${e.colors.gray4};
|
|
578
|
-
`,
|
|
542
|
+
`,pt=i.div`
|
|
579
543
|
position: relative;
|
|
580
544
|
display: flex;
|
|
581
545
|
align-items: center;
|
|
@@ -599,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
|
|
|
599
563
|
gap: 10px;
|
|
600
564
|
padding: 120px 16px 16px;
|
|
601
565
|
}
|
|
602
|
-
`,
|
|
566
|
+
`,ht=i.img`
|
|
603
567
|
position: absolute;
|
|
604
568
|
left: 35px;
|
|
605
569
|
top: 50%;
|
|
@@ -613,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
|
|
|
613
577
|
top: 16px;
|
|
614
578
|
transform: translateX(-50%);
|
|
615
579
|
}
|
|
616
|
-
`,
|
|
580
|
+
`,xt=i.p`
|
|
617
581
|
display: inline-flex;
|
|
618
582
|
align-items: center;
|
|
619
583
|
gap: 8px;
|
|
@@ -626,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
|
|
|
626
590
|
height: 30px;
|
|
627
591
|
color: ${e.colors.text};
|
|
628
592
|
}
|
|
629
|
-
`,
|
|
593
|
+
`,ut=i.strong`
|
|
630
594
|
font-size: 24px;
|
|
631
595
|
font-weight: 700;
|
|
632
596
|
text-transform: capitalize;
|
|
633
|
-
`,
|
|
597
|
+
`,gt=i.span`
|
|
634
598
|
font-size: 14px;
|
|
635
599
|
font-weight: 400;
|
|
636
|
-
`,
|
|
600
|
+
`,ft=i.div`
|
|
637
601
|
display: flex;
|
|
638
602
|
gap: 12px;
|
|
639
603
|
|
|
@@ -677,7 +641,7 @@ import{d as he,e as xe,r as l,j as t}from"./react-DehiWSvs.js";import{s as i,t a
|
|
|
677
641
|
outline: 2px solid ${e.colors.accent};
|
|
678
642
|
outline-offset: 2px;
|
|
679
643
|
}
|
|
680
|
-
`,
|
|
644
|
+
`,Q=i.div`
|
|
681
645
|
display: flex;
|
|
682
646
|
flex-direction: column;
|
|
683
647
|
align-items: center;
|
|
@@ -686,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
|
|
|
686
650
|
margin: 0 auto;
|
|
687
651
|
padding: 48px 24px;
|
|
688
652
|
text-align: center;
|
|
689
|
-
`,
|
|
653
|
+
`,Z=i.p`
|
|
690
654
|
margin: 0;
|
|
691
655
|
font-family: ${e.font.sans};
|
|
692
656
|
font-size: 20px;
|
|
@@ -696,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
|
|
|
696
660
|
&[data-tone='error'] {
|
|
697
661
|
color: ${e.colors.err};
|
|
698
662
|
}
|
|
699
|
-
`,
|
|
663
|
+
`,J=i.div`
|
|
700
664
|
display: flex;
|
|
701
665
|
gap: 12px;
|
|
702
666
|
margin-top: 16px;
|
|
703
|
-
`,
|
|
667
|
+
`,mt=i.p`
|
|
704
668
|
margin: 0;
|
|
705
669
|
font-family: ${e.font.sans};
|
|
706
670
|
color: ${e.colors.err};
|
|
707
|
-
`,v=Ce()?"mock":"stripe",
|
|
671
|
+
`,v=Ce()?"mock":"stripe",ee=[P,P,ne,oe],bt={pack_5:P,pack_10:P,pack_25:ne,pack_50:oe};function ae(a,o){return bt[a.id]??ee[o%ee.length]}function wt(a,o){return a.artUrl??ae(a,o)}const yt="https://docs.decentraland.org";function te(a){const o=a;if((o==null?void 0:o.name)==="AbortError")return r("getCredits.errorCanceled");const f=((o==null?void 0:o.message)??"").toLowerCase();return f.includes("sign in")?r("getCredits.errorSignIn",{currency:p.name}):f.includes("timed out")?r("getCredits.errorTimeout",{currency:p.name}):r("getCredits.errorGeneric")}function At(){var W;ue({title:r("nav.getCredits",{currency:p.name}),noindex:!0});const a=he(),{session:o,signIn:f}=ge(),s=fe(),[m,b]=xe(),{packs:$,isLoading:y}=be(),[x,h]=l.useState("select"),[c,F]=l.useState(null),[j,L]=l.useState(null),de=(j!=null?(W=$.find(n=>n.credits===j))==null?void 0:W.artUrl:void 0)??$e,[ce,k]=l.useState(null),[le,_]=l.useState(!1),R=l.useRef(null);l.useEffect(()=>()=>{var n;return(n=R.current)==null?void 0:n.abort()},[]);const I=l.useCallback(()=>{b(n=>{const d=new URLSearchParams(n);return d.delete("order"),d.delete("canceled"),d},{replace:!0})},[b]),T=l.useCallback(async n=>{h("processing");const d=new AbortController;R.current=d;try{const u=await we(n,{signal:d.signal,address:o==null?void 0:o.address,identity:o==null?void 0:o.identity});if(u.status==="credited"){const w=u.creditsGranted??(c==null?void 0:c.credits)??0;L(w>0?w:null),h("success"),g("Shop Completed Buy Credits",{order_id:n,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(ye)){const S={resumeCheckout:!0,...w>0?{creditsAdded:w}:{}};a("/cart",{state:S});return}}catch{}try{const S=sessionStorage.getItem(D);if(S){sessionStorage.removeItem(D);const M=JSON.parse(S),G=me(M);if(G){a(G,{state:{item:M,resumeBuy:!0}});return}}}catch{}}else u.status==="pending"?(g("Shop Buy Credits Pending",{step:"grant",pack_usd:(c==null?void 0:c.usd)??null}),s.invalidateQueries({queryKey:["usd-balance"]}),h("pending")):(g("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(c==null?void 0:c.usd)??null}),k(u.error??r("getCredits.errorGrant",{currency:p.name})),h("error"))}catch(u){N(u,{flow:"get_credits",step:"grant",order_id:n}),g("Shop Buy Credits Failed",{step:"grant",error_code:U(u),pack_usd:(c==null?void 0:c.usd)??null}),k(te(u)),h("error")}},[c,o,s,a]),pe=l.useCallback(async n=>{if(!o){f();return}k(null),_(!1),F(n),h(v==="mock"?"processing":"redirecting"),g("Shop Started Buy Credits",{pack_usd:n.usd,credits:n.credits,provider:v});try{const d=await ke(n.id,{address:o.address,identity:o.identity});if(d.mock)T(d.orderId);else if(d.url)g("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:v}),g("Shop Buy Credits Failed",{step:"checkout",error_code:U(d),pack_usd:n.usd}),k(te(d)),h("error")}},[o,f,T]),A=l.useRef(!1);l.useEffect(()=>{if(A.current)return;const n=m.get("order");if(m.get("canceled")!=null){A.current=!0,g("Shop Buy Credits Cancelled",{order_id:n,provider:v}),I(),_(!0),h("select");return}n&&(h("processing"),o&&(A.current=!0,I(),T(n)))},[m,o]);function z(){var n;(n=R.current)==null||n.abort(),h("select"),F(null),L(null),k(null),_(!1)}return t.jsxs(Pe,{children:[(x==="select"||x==="redirecting")&&t.jsxs(_e,{"data-testid":"credits-hero",children:[t.jsx(Re,{"aria-hidden":!0}),t.jsxs(Te,{$hidden:x==="redirecting",children:[t.jsxs(Ae,{children:[t.jsx(ze,{children:r("getCredits.title",{currency:p.name})}),t.jsxs(Be,{children:[t.jsx(Ee,{children:r("getCredits.subtitle",{currency:p.nameSingular})}),t.jsxs(Fe,{href:yt,target:"_blank",rel:"noreferrer",children:[r("getCredits.learnMore"),t.jsx(ie,{name:"link-out"})]})]})]}),le&&t.jsx(Le,{role:"status",children:r("getCredits.canceledNote")}),t.jsx(kt,{packs:$,loading:y,onSelect:n=>void pe(n)})]}),x==="redirecting"&&t.jsxs(Ve,{role:"status","aria-live":"polite",children:[t.jsx(Ze,{src:H,alt:"",width:72,height:72}),t.jsx(qe,{children:r("getCredits.redirecting")})]})]}),x==="processing"&&t.jsxs(Qe,{role:"status","aria-live":"polite",children:[t.jsx(se,{src:H,alt:"",width:61,height:61}),t.jsxs(Je,{children:[t.jsxs(et,{children:[t.jsx("strong",{children:r("getCredits.processing")}),"…"]}),t.jsxs(tt,{"aria-hidden":!0,children:[t.jsx(rt,{children:t.jsx(nt,{})}),t.jsx(ot,{children:"1/1"})]})]})]}),x==="success"&&t.jsxs(st,{role:"status","aria-live":"polite",children:[t.jsxs(at,{children:[t.jsx(dt,{src:je,alt:"",width:60,height:60}),t.jsxs(ct,{children:[t.jsx("strong",{children:r("getCredits.successTitle")})," ",r("getCredits.successBody",{currency:p.name})]})]}),j!=null&&t.jsx(lt,{children:t.jsxs(pt,{children:[t.jsx(ht,{src:de,alt:"",width:93,height:93}),t.jsxs(xt,{children:[t.jsx(re,{}),t.jsxs("span",{children:[t.jsx(ut,{children:r("getCredits.creditsAmount",{credits:j,currency:p.name})})," ",t.jsx(gt,{children:r("getCredits.creditsAdded")})]})]})]})}),t.jsxs(ft,{children:[t.jsx(C,{"data-variant":"outline",onClick:z,children:r("getCredits.buyMore",{currency:p.name})}),t.jsx(C,{onClick:()=>a("/items"),children:r("getCredits.startShopping")})]})]}),x==="pending"&&t.jsxs(Q,{role:"status","aria-live":"polite",children:[t.jsx(Z,{children:r("getCredits.pendingTitle",{currency:p.name})}),t.jsx(Ye,{children:r("getCredits.pendingBody")}),t.jsxs(J,{children:[t.jsx(C,{onClick:()=>a("/items"),children:r("getCredits.startShopping")}),t.jsx(C,{"data-variant":"outline",onClick:z,children:r("getCredits.done")})]})]}),x==="error"&&t.jsxs(Q,{role:"alert",children:[t.jsx(Z,{"data-tone":"error",children:r("getCredits.errorTitle")}),t.jsx(mt,{children:ce}),t.jsx(J,{children:t.jsx(C,{onClick:z,children:r("getCredits.tryAgain")})})]})]})}function kt({packs:a,loading:o,onSelect:f}){return o?t.jsx(Y,{"aria-busy":"true","aria-label":r("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(Oe,{})}),t.jsx(De,{})]}),t.jsx(Ke,{})]},s))}):t.jsx(Y,{children:a.map((s,m)=>{const b=ve(s,a);return t.jsxs(V,{type:"button","data-testid":"pack","data-best":s.bestValue?"true":void 0,onClick:()=>f(s),"aria-label":b?r("getCredits.packAriaBonus",{amount:O(s.credits),usd:s.usd,bonus:b.bonus,baseline:b.baseline}):r("getCredits.packAria",{amount:O(s.credits),usd:s.usd}),children:[s.bestValue&&t.jsxs(Ie,{children:[t.jsx(ie,{name:"star-rounded"}),r("getCredits.packBadge")]}),t.jsxs(q,{children:[t.jsxs(X,{children:[t.jsxs(We,{children:[t.jsx(re,{}),t.jsx(Me,{children:s.credits})]}),t.jsx(Ge,{children:r("getCredits.packUnit",{currency:p.name})})]}),t.jsx(Ne,{children:t.jsx("img",{src:wt(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(Ue,{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-C75VmoUV.js";import{d as g,r as v}from"./index-DU7iVDBh.js";import{C as c}from"./ConstantsUtil-Di3dRDAF.js";import{R as $,O as u}from"./W3MFrameProviderSingleton-BJE-tnmd.js";import{au as y}from"./NetworkUtil-EoWQDMpU.js";const b=g`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|