@dcl/shop 0.10.1-31042990976.commit-7edc9b6 → 1.0.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-CJO4ONwi.js +371 -0
- package/_assets/AnimatedBackground-CHiOSgJ6.js +97 -0
- package/_assets/{Assets-BzPVRWYe.js → Assets-1KVsmH01.js} +8 -8
- package/_assets/{Assets.styles-D4-S4NWG.js → Assets.styles-BUHnZ7Nb.js} +140 -132
- package/_assets/{Authorizations-gGXOHHeT.js → Authorizations-BGlyC4dr.js} +28 -26
- package/_assets/Cart-afrKtZvj.js +707 -0
- package/_assets/{CircularProgress-DNShuaaC.js → CircularProgress-K7JjSpPZ.js} +1 -1
- package/_assets/{Collection-CI_bqtk6.js → Collection-B0G71rJV.js} +19 -19
- package/_assets/CollectionCarousel-B4hzcKRb.js +816 -0
- package/_assets/{Confetti-DkcOmptO.js → Confetti-BBhDY6Q2.js} +1 -1
- package/_assets/{Creator-CFf63R4B.js → Creator-CYC3eVKx.js} +7 -7
- package/_assets/{ErrorNotice-C_rQ_hZp.js → ErrorNotice-CnPcFEw_.js} +1 -1
- package/_assets/{ExchangeController-BPF_kkCP.js → ExchangeController-BAefeOHy.js} +1 -1
- package/_assets/{Faq--E1fBOzk.js → Faq-D03YByjo.js} +20 -14
- package/_assets/{GetCredits-C2rjzPBY.js → GetCredits-Cyw0rRMV.js} +114 -80
- package/_assets/{Grow-CyHu9l8s.js → Grow-CPwRVF9g.js} +1 -1
- package/_assets/{HelpersUtil-Bh7qiwp_.js → HelpersUtil-DJC0aWJi.js} +1 -1
- package/_assets/{ItemDetail-CtR1YHPh.js → ItemDetail-DSuMCjR9.js} +510 -480
- package/_assets/LazyEmoteControls-D-xqLU4A.js +2 -0
- package/_assets/{LoadMore-BQIcG-2Y.js → LoadMore-CMAFsns3.js} +1 -1
- package/_assets/ManaPricingBanner.styles-Bb7BS6EM.js +93 -0
- package/_assets/{MyAssets-Dk_4queh.js → MyAssets-C5lGRPqP.js} +33 -33
- package/_assets/{MyFavorites-yuyxKJv4.js → MyFavorites-C1t1o6Li.js} +12 -11
- package/_assets/{NotFound-rquTctww.js → NotFound-Bdi_fN5j.js} +1 -1
- package/_assets/{NotificationsBell-CFCmzqHj.js → NotificationsBell-BQk3EV9b.js} +1 -1
- package/_assets/{OutfitDetail-BFc4wS6X.js → OutfitDetail-D3Mwl6KR.js} +4 -4
- package/_assets/{OutfitPreview-C214293j.js → OutfitPreview-BpWwkAro.js} +2 -2
- package/_assets/{OutfitStudio-OOy9Y3VP.js → OutfitStudio-BL7OYD9h.js} +1 -1
- package/_assets/{StoreSettings-BpkjL6md.js → StoreSettings-BNhzJJib.js} +1 -1
- package/_assets/{Success-BXjczKuA.js → Success-Cnu7oCbI.js} +1 -1
- package/_assets/{SwapController-CA7wAH0n.js → SwapController-BD23YCPw.js} +1 -1
- package/_assets/{Tooltip-BoJS18Z3.js → Tooltip-tAvMrdFp.js} +1 -1
- package/_assets/{TradeService-DsmKoPxy.js → TradeService-a2JgoWq2.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-DKeivVWe.js → W3MFrameProviderSingleton-CPDmjNiA.js} +3 -3
- package/_assets/{WebCryptoP256-CJPdW9Ug.js → WebCryptoP256-DIEJtB0I.js} +1 -1
- package/_assets/{authorizations-2Xd-ft_C.js → authorizations-HgwrWkaa.js} +1 -1
- package/_assets/{basic-CpO7N7NV.js → basic-B3qEjJvY.js} +1 -1
- package/_assets/{biconomy-HF5uwOUc.js → biconomy-CzcDC8vB.js} +1 -1
- package/_assets/{builder-uBBMnbtK.js → builder-TZGldT6a.js} +1 -1
- package/_assets/{buy-CgUGATyG.js → buy-CuFubBZY.js} +1 -1
- package/_assets/{buy-gasless-CVTH5KGZ.js → buy-gasless-DO6cBuJ3.js} +1 -1
- package/_assets/{categories-yTyOCTA2.js → categories-B3DJZe02.js} +54 -54
- package/_assets/{ccip-Bq1h60c1.js → ccip-CB03B_MW.js} +1 -1
- package/_assets/{ccip-BjT8ndU2.js → ccip-VI2-jJnV.js} +1 -1
- package/_assets/collectionPage.styles-DXfFyRiH.js +49 -0
- package/_assets/{controller-CBtSaaQD.js → controller-CEo6ipG_.js} +2 -2
- package/_assets/{core-CIuOeePP.js → core-DmqfUS4f.js} +4 -4
- package/_assets/{createSvgIcon-Dax4uwaL.js → createSvgIcon-WfOAVB94.js} +4 -4
- package/_assets/{custom-CYUokIbm.js → custom-bIxIBqCn.js} +1 -1
- package/_assets/{data-capture-6P55-IaB.js → data-capture-Dtaj6ehs.js} +1 -1
- package/_assets/disposePreview-5vjiqVZ0.js +1 -0
- package/_assets/{email-nYmfz15C.js → email-DBXWS-p0.js} +1 -1
- package/_assets/{embedded-wallet-D_e_UWzV.js → embedded-wallet-DqlpsZRk.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-s1GWUoDX.js → emotion-styled.browser.esm-pOAX0dMa.js} +1 -1
- package/_assets/{engine-CpLQoIqI.js → engine-gP8vp-2g.js} +1 -1
- package/_assets/{errors-hu6Xw0D2.js → errors-WNvNILsF.js} +1 -1
- package/_assets/{estimate-l1-fee-CLRDa6fI.js → estimate-l1-fee-X1cvAsdL.js} +1 -1
- package/_assets/{execute-DqPg9Ksw.js → execute-V2l_cDAW.js} +2 -2
- package/_assets/{features-BtrrmffG.js → features-CFR_-yBt.js} +1 -1
- package/_assets/{fetchTokenMetadata-DFJ36WnI.js → fetchTokenMetadata-Do5GLuIQ.js} +2 -2
- package/_assets/{field.styles-XpeJ0COA.js → field.styles-ciG_OcBi.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-DlCx83R8.js → get-ecosystem-wallet-info-CyDTxLgQ.js} +1 -1
- package/_assets/{getBalance-B5ocM9g2.js → getBalance-7wKu8RUe.js} +1 -1
- package/_assets/{getNFT-oiyevCuO.js → getNFT-BbpUiMXR.js} +1 -1
- package/_assets/{getNFT-DBaH5cpy.js → getNFT-DecLUThv.js} +1 -1
- package/_assets/{grid.styles-Dpb8Greh.js → grid.styles-Caahz6PS.js} +1 -1
- package/_assets/{hashTypedData-CeLfcFPQ.js → hashTypedData-C9kgxiiE.js} +1 -1
- package/_assets/{hashTypedData-NanWeJ-D.js → hashTypedData-Ca524zaX.js} +1 -1
- package/_assets/hero-credits-mobile-C9Muog4T.webp +0 -0
- package/_assets/{in-app-DfEVZ7ts.js → in-app-B-disnkm.js} +1 -1
- package/_assets/{in-app-wallet-calls-CaankqgP.js → in-app-wallet-calls-3yighozE.js} +1 -1
- package/_assets/{index-De-xiANX.js → index--1pBMb8n.js} +1 -1
- package/_assets/{index-BNnBkkJr.js → index-2-BWsekC.js} +1 -1
- package/_assets/{index-DxUWfPTE.js → index-8xcbpK09.js} +1 -1
- package/_assets/{index-Dyf04oQ8.js → index-B6l73M7K.js} +1 -1
- package/_assets/{index-BJ6fvgAM.js → index-BBX5Tona.js} +1 -1
- package/_assets/{index-_l18b6D8.js → index-BLCTVSaC.js} +1 -1
- package/_assets/{index-CYd-9A8i.js → index-BMFVFrWl.js} +3 -3
- package/_assets/{index-CaH_IfZ9.js → index-BQB7qYN1.js} +1 -1
- package/_assets/index-BYP7oMPZ.css +1 -0
- package/_assets/{index-BMGdvlP9.js → index-Bd7SNoIN.js} +2 -2
- package/_assets/{index-OiVd03k_.js → index-BdQllJHM.js} +1 -1
- package/_assets/{index-Cbb2oZ2Y.js → index-BjEDpwxR.js} +1 -1
- package/_assets/{index-B4WRMX84.js → index-BrU_i04f.js} +1 -1
- package/_assets/{index-BGSoCmOn.js → index-BuImQh6o.js} +1 -1
- package/_assets/{index-COqbI5lZ.js → index-C3MGLBUO.js} +1 -1
- package/_assets/index-C616xNgB.js +3699 -0
- package/_assets/{index-DI0-gUeO.js → index-CAl290ro.js} +1 -1
- package/_assets/{index-BPoXI4qO.js → index-CEDBhmGn.js} +1 -1
- package/_assets/{index-C8Cm7Ukd.js → index-CEnhHz30.js} +1 -1
- package/_assets/{index-BC1n3NBn.js → index-CFziwAGz.js} +1 -1
- package/_assets/{index-DJxot5zE.js → index-CGcb9Mz3.js} +1 -1
- package/_assets/{index-DxD-NQZ2.js → index-CKkE-eRE.js} +1 -1
- package/_assets/{index-cpjoojGa.js → index-CONyzZZC.js} +3 -3
- package/_assets/{index-BHzYL11-.js → index-CO_xP_3N.js} +1 -1
- package/_assets/{index-BqVSjccZ.js → index-CUAEZ5zJ.js} +1 -1
- package/_assets/index-CZBUgvRB.js +1 -0
- package/_assets/{index-BXdpk7Oq.js → index-CdFrv2eV.js} +1 -1
- package/_assets/{index-zPBk9zxn.js → index-CjhGjrdW.js} +1 -1
- package/_assets/{index-w9D58X3R.js → index-CmlH9TBP.js} +1 -1
- package/_assets/{index-enm6a-Yh.js → index-CyITvpDL.js} +1 -1
- package/_assets/{index-UiKz3U--.js → index-D58OkhU1.js} +1 -1
- package/_assets/{index-BKYIrw8q.js → index-D9iAFl4E.js} +1 -1
- package/_assets/{index-CWMeoaW8.js → index-DCAUOF_r.js} +1 -1
- package/_assets/{index-B-kvIPu1.js → index-DCMLwiSR.js} +1 -1
- package/_assets/{index-CPOch-_L.js → index-DEw1jYQT.js} +1 -1
- package/_assets/{index-Bry4nBQ3.js → index-DJOlt1Iv.js} +1 -1
- package/_assets/{index-Bu9Qy6np.js → index-DKghJgJj.js} +1 -1
- package/_assets/{index-CaRe7gid.js → index-DNvcQt0s.js} +3 -3
- package/_assets/{index-jzVm2M_d.js → index-DRI1gQSo.js} +1 -1
- package/_assets/{index-gR7VkXwX.js → index-DUmo7598.js} +3 -3
- package/_assets/{index-BccvdHMd.js → index-Dag4zALf.js} +1 -1
- package/_assets/index-DsH_mBtT.js +622 -0
- package/_assets/{index-BntzHAg5.js → index-DvjyzmjB.js} +1 -1
- package/_assets/{index-T6PQTPj1.js → index-DxB85HDB.js} +1 -1
- package/_assets/{index-ChhX0J8g.js → index-Eip3e8N8.js} +1 -1
- package/_assets/{index-CQMg581G.js → index-Gw3Mauv_.js} +1 -1
- package/_assets/{index-CkvT2_Qp.js → index-JuH5W7YS.js} +2 -2
- package/_assets/{index-D9avTVnT.js → index-N5sgh9IC.js} +1 -1
- package/_assets/{index-CIJje8vF.js → index-o0b8cjRQ.js} +1 -1
- package/_assets/{index-Deo0xkWr.js → index-p0fxtTsZ.js} +2 -2
- package/_assets/{index-FaWeourd.js → index-p4Ph7ugv.js} +1 -1
- package/_assets/{index-B0jVlmk0.js → index-tCYP1O3W.js} +1 -1
- package/_assets/{index-BZQS2qMR.js → index-yiECqJCb.js} +1 -1
- package/_assets/{index.es-DZrZt1nk.js → index.es-C5PJ78RX.js} +1 -1
- package/_assets/{index.es-COh1P5q0.js → index.es-D73EniUm.js} +1 -1
- package/_assets/{index.es-DKfCNVgZ.js → index.es-DF_hlZIu.js} +4 -4
- package/_assets/{localBatchGatewayRequest-BI4PJuWG.js → localBatchGatewayRequest-DvkdRgNo.js} +1 -1
- package/_assets/{networks-Blxn8DDe.js → networks-7b-i0dnd.js} +1 -1
- package/_assets/{onramp-Dy-wl2-G.js → onramp-CoF8bFaS.js} +1 -1
- package/_assets/{openzeppelin-BMYbmCTg.js → openzeppelin-DcsEW8tQ.js} +1 -1
- package/_assets/{parseNft-C3NZ6wub.js → parseNft-CNJ2CwyE.js} +2 -2
- package/_assets/{parseSignature-DYiE9TKW.js → parseSignature-D0-1k6Yx.js} +1 -1
- package/_assets/{parseSignature-C_OIotiZ.js → parseSignature-whU_pkfu.js} +3 -3
- package/_assets/{passkeys-B1XwJZLc.js → passkeys-SqHHDvyI.js} +1 -1
- package/_assets/{pay-with-exchange-CNHEYWhj.js → pay-with-exchange-Cvr7dd94.js} +1 -1
- package/_assets/promo-best-rated-emotes-C6kNvB-a.png +0 -0
- package/_assets/promo-week-selected-outfits-BBmkZYZx.png +0 -0
- package/_assets/{qr-overlay-xYKFPsA7.js → qr-overlay-HlBTd234.js} +1 -1
- package/_assets/{receive-CZ46hzUV.js → receive-HPltMi_i.js} +1 -1
- package/_assets/{resolveImplementation-CjcXKJyr.js → resolveImplementation-CM1yFlGf.js} +1 -1
- package/_assets/{rpc-CcyaVsGv.js → rpc-CPS_djFB.js} +1 -1
- package/_assets/{secp256k1-CKJqWWFY.js → secp256k1-CQmdb_AD.js} +1 -1
- package/_assets/{secp256k1-CtAF_8et.js → secp256k1-ChRNiO68.js} +1 -1
- package/_assets/{secp256k1-ZiNVKyYC.js → secp256k1-DUTfCpIK.js} +1 -1
- package/_assets/{send-batch-transaction-BjDzAjfB.js → send-batch-transaction-Vn4JOFM5.js} +1 -1
- package/_assets/{send-eip712-transaction-C_cuPsBN.js → send-eip712-transaction-Qvibiwhe.js} +2 -2
- package/_assets/{send-gasless-transaction-nJMNrEi5.js → send-gasless-transaction-DQLcvFHt.js} +2 -2
- package/_assets/{send-transaction-DlrF4JVI.js → send-transaction-CZ0kapdy.js} +2 -2
- package/_assets/{send-C3JUT-Wt.js → send-zy_Vr6BQ.js} +1 -1
- package/_assets/{sendMetaTransaction-CYTRgQS4.js → sendMetaTransaction-Ba_-1nOk.js} +1 -1
- package/_assets/{sendRawTransaction-CrjHCLLH.js → sendRawTransaction-BUz1EYd8.js} +3 -3
- package/_assets/{serializeTransaction-DCwr_uqm.js → serializeTransaction-B8qCVIIu.js} +1 -1
- package/_assets/{session-proposal-Cr_4TYaU.js → session-proposal-BqO43SKO.js} +1 -1
- package/_assets/{session-request-VECe4LIn.js → session-request-DbQI-hjo.js} +2 -2
- package/_assets/{signing-DsQKDYvj.js → signing-CVGndCRE.js} +3 -3
- package/_assets/{skeleton.styles-B5haYcet.js → skeleton.styles-K9f1Sxf1.js} +1 -1
- package/_assets/{socials-B80b3Xbl.js → socials-CNOGl_eO.js} +1 -1
- package/_assets/{styled-qF6AFIDl.js → styled-CljNQW-J.js} +1 -1
- package/_assets/{swaps-9KfTzTvK.js → swaps-D5haogfk.js} +1 -1
- package/_assets/{thirdweb-C31f21KI.js → thirdweb-CC2bk-Up.js} +3 -3
- package/_assets/{to-serializable-transaction-DRO125BM.js → to-serializable-transaction-BB0M9pw8.js} +2 -2
- package/_assets/{transactionReceipt-D2IEagp9.js → transactionReceipt-puJsrtjz.js} +1 -1
- package/_assets/{transactions-COJcFMl1.js → transactions-BnYHwdat.js} +1 -1
- package/_assets/{useCreditPacks-UUgawD-U.js → useCreditPacks-xyyhS_80.js} +1 -1
- package/_assets/{useImportable-DdzyhNKj.js → useImportable-Bh7jH6e9.js} +1 -1
- package/_assets/{useInfiniteGrid-CWAXtPPS.js → useInfiniteGrid-CV4TXaLn.js} +1 -1
- package/_assets/{useTheme-nSt_zjh9.js → useTheme-Czw2-J4G.js} +1 -1
- package/_assets/{verifyHash-3joPxTRt.js → verifyHash-CAYWYGEG.js} +1 -1
- package/_assets/{w3m-modal-fllBGzZL.js → w3m-modal-DtofW43q.js} +1 -1
- package/_assets/{w3m-modal-BdMUp7-V.js → w3m-modal-Fr29zvJe.js} +1 -1
- package/_assets/{wait-for-tx-receipt-DLk5rirA.js → wait-for-tx-receipt-mfzWqQ40.js} +1 -1
- package/_assets/{wallets-p_5_3A7U.js → wallets-DT2LKaVF.js} +5 -5
- package/_assets/{web-connector-B1ItZy3i.js → web-connector-4TZSYYzx.js} +3 -3
- package/_assets/{writeContract-_6f7I-3C.js → writeContract-CEQ0n4-z.js} +1 -1
- package/_assets/{zoraTestnet-BegtFmVb.js → zoraTestnet-Cd1Th5ww.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-Cx-gKp62.js +0 -381
- package/_assets/AnimatedBackground-yDvJglBx.js +0 -97
- package/_assets/Cart-C4zUzYSx.js +0 -669
- package/_assets/CollectionCarousel-BAwS8rTZ.js +0 -804
- package/_assets/LazyEmoteControls-BUp4tFZX.js +0 -2
- package/_assets/ManaPricingBanner.styles-Dj_122X4.js +0 -74
- package/_assets/collectionPage.styles-BOOK4JE1.js +0 -48
- package/_assets/disposePreview-C6zVmkpS.js +0 -1
- package/_assets/index-BL2RPpVH.js +0 -3390
- package/_assets/index-C3zA3tgr.js +0 -519
- package/_assets/index-D-NhBWWr.css +0 -1
- package/_assets/index-sW8OdK66.js +0 -1
- package/_assets/packs-backdrop-BcXiUPeP.webp +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t as e,w as F,x as ge,b as n,C as h,o as fe,A as me,$ as g,
|
|
1
|
+
import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t as e,w as F,x as ge,b as n,C as h,o as fe,A as me,$ as g,bi as be,F as U,bs as N,bW as we,bc as Q,z as re,I as ye,bX as H}from"./index-C616xNgB.js";import{C as ke}from"./Confetti-BBhDY6Q2.js";import{F as ve}from"./Faq-D03YByjo.js";import{R as D}from"./resume-buy-Bf0zIH7y.js";import{u as Ce,a as $e,R as je,c as Se,i as Ae,b as Pe}from"./useCreditPacks-xyyhS_80.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";const A="https://cdn.decentraland.org/@dcl/shop/1.0.0/_assets/pack-coins-BDh1ZDbh.webp",ne="https://cdn.decentraland.org/@dcl/shop/1.0.0/_assets/pack-stacks-D-V2jSHW.webp",se="https://cdn.decentraland.org/@dcl/shop/1.0.0/_assets/pack-chest-BX_j84xW.webp",Re="https://cdn.decentraland.org/@dcl/shop/1.0.0/_assets/credit-coin-CmcTCd5i.webp",Te="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",K="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;
|
|
@@ -8,52 +8,54 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
align-items: center;
|
|
11
|
-
border-radius: ${e.radius.banner};
|
|
12
|
-
overflow: hidden;
|
|
13
11
|
padding: 82px clamp(16px, 7.06%, 122px) 129px;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
|
|
13
|
+
/* Full-bleed and flush against the sub-nav, so it cancels the shell's gutter and top padding — a
|
|
14
|
+
background on the section itself would stop at the .page container's edges. */
|
|
15
|
+
&::before {
|
|
16
|
+
content: '';
|
|
17
|
+
position: absolute;
|
|
18
|
+
z-index: -1;
|
|
19
|
+
top: -28px;
|
|
20
|
+
bottom: 0;
|
|
21
|
+
left: 50%;
|
|
22
|
+
width: 100vw;
|
|
23
|
+
transform: translateX(-50%);
|
|
24
|
+
background: rgba(0, 0, 0, 0.2);
|
|
25
|
+
}
|
|
19
26
|
|
|
20
27
|
${e.media.maxWidth("lg")} {
|
|
21
28
|
padding: 48px 24px 56px;
|
|
22
29
|
}
|
|
23
30
|
${e.media.maxWidth("mobile")} {
|
|
24
31
|
padding: 32px 16px 40px;
|
|
32
|
+
|
|
33
|
+
&::before {
|
|
34
|
+
top: -16px;
|
|
35
|
+
}
|
|
25
36
|
}
|
|
26
|
-
`,
|
|
27
|
-
position: absolute;
|
|
28
|
-
inset: 0;
|
|
29
|
-
z-index: -1;
|
|
30
|
-
opacity: 0.9;
|
|
31
|
-
pointer-events: none;
|
|
32
|
-
background-image: url(${_e});
|
|
33
|
-
background-size: cover;
|
|
34
|
-
background-position: 50% 96%;
|
|
35
|
-
background-repeat: no-repeat;
|
|
36
|
-
`,qe=i.div`
|
|
37
|
+
`,Be=i.div`
|
|
37
38
|
position: relative;
|
|
38
39
|
width: 100%;
|
|
39
40
|
display: flex;
|
|
40
41
|
justify-content: center;
|
|
41
|
-
`,
|
|
42
|
+
`,Fe=i.div`
|
|
42
43
|
width: 100%;
|
|
43
44
|
max-width: 1478px;
|
|
44
|
-
margin
|
|
45
|
+
margin: 0 auto;
|
|
46
|
+
margin-top: 55px;
|
|
45
47
|
|
|
46
48
|
&:focus {
|
|
47
49
|
outline: none;
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
${e.media.maxWidth("lg")} {
|
|
51
|
-
margin-top:
|
|
53
|
+
margin-top: 24px;
|
|
52
54
|
}
|
|
53
55
|
${e.media.maxWidth("mobile")} {
|
|
54
|
-
margin-top:
|
|
56
|
+
margin-top: 8px;
|
|
55
57
|
}
|
|
56
|
-
`,
|
|
58
|
+
`,qe=i.div`
|
|
57
59
|
width: 100%;
|
|
58
60
|
max-width: 1478px;
|
|
59
61
|
display: flex;
|
|
@@ -65,14 +67,14 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
65
67
|
${e.media.maxWidth("lg")} {
|
|
66
68
|
gap: 32px;
|
|
67
69
|
}
|
|
68
|
-
`,
|
|
70
|
+
`,Ee=i.header`
|
|
69
71
|
display: flex;
|
|
70
72
|
flex-direction: column;
|
|
71
73
|
align-items: center;
|
|
72
74
|
gap: 16px;
|
|
73
75
|
width: 100%;
|
|
74
76
|
text-align: center;
|
|
75
|
-
`,
|
|
77
|
+
`,Ie=i.h1`
|
|
76
78
|
margin: 0;
|
|
77
79
|
font-family: ${e.font.sans};
|
|
78
80
|
font-size: 40px;
|
|
@@ -83,13 +85,13 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
83
85
|
${e.media.maxWidth("mobile")} {
|
|
84
86
|
font-size: 28px;
|
|
85
87
|
}
|
|
86
|
-
`,
|
|
88
|
+
`,We=i.div`
|
|
87
89
|
display: flex;
|
|
88
90
|
flex-wrap: wrap;
|
|
89
91
|
align-items: center;
|
|
90
92
|
justify-content: center;
|
|
91
93
|
gap: 8px;
|
|
92
|
-
`,
|
|
94
|
+
`,Le=i.p`
|
|
93
95
|
margin: 0;
|
|
94
96
|
font-family: ${e.font.sans};
|
|
95
97
|
font-size: 24px;
|
|
@@ -100,7 +102,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
100
102
|
${e.media.maxWidth("mobile")} {
|
|
101
103
|
font-size: 16px;
|
|
102
104
|
}
|
|
103
|
-
`,
|
|
105
|
+
`,Me=i.button`
|
|
104
106
|
appearance: none;
|
|
105
107
|
padding: 0;
|
|
106
108
|
border: none;
|
|
@@ -134,7 +136,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
134
136
|
height: 18px;
|
|
135
137
|
}
|
|
136
138
|
}
|
|
137
|
-
`,
|
|
139
|
+
`,Ge=i.p`
|
|
138
140
|
margin: 0;
|
|
139
141
|
padding: 10px 16px;
|
|
140
142
|
border-radius: ${e.radius.btn};
|
|
@@ -144,7 +146,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
144
146
|
line-height: 1.6;
|
|
145
147
|
color: ${e.colors.media};
|
|
146
148
|
text-align: center;
|
|
147
|
-
`,
|
|
149
|
+
`,O=i.div`
|
|
148
150
|
display: grid;
|
|
149
151
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
150
152
|
gap: 24px;
|
|
@@ -160,7 +162,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
160
162
|
gap: 12px;
|
|
161
163
|
row-gap: 24px;
|
|
162
164
|
}
|
|
163
|
-
`,
|
|
165
|
+
`,Y=i.button`
|
|
164
166
|
position: relative;
|
|
165
167
|
display: flex;
|
|
166
168
|
flex-direction: column;
|
|
@@ -199,9 +201,9 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
199
201
|
inset: 0;
|
|
200
202
|
border-radius: inherit;
|
|
201
203
|
pointer-events: none;
|
|
202
|
-
-webkit-mask: ${
|
|
204
|
+
-webkit-mask: ${K};
|
|
203
205
|
-webkit-mask-composite: xor;
|
|
204
|
-
mask: ${
|
|
206
|
+
mask: ${K};
|
|
205
207
|
mask-composite: exclude;
|
|
206
208
|
transition: opacity 0.15s ease;
|
|
207
209
|
}
|
|
@@ -260,7 +262,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
260
262
|
padding: 8px;
|
|
261
263
|
border-radius: 16px;
|
|
262
264
|
}
|
|
263
|
-
`,
|
|
265
|
+
`,Ue=i.span`
|
|
264
266
|
position: absolute;
|
|
265
267
|
top: -18px;
|
|
266
268
|
left: 50%;
|
|
@@ -314,7 +316,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
314
316
|
align-items: center;
|
|
315
317
|
gap: 12px;
|
|
316
318
|
width: 100%;
|
|
317
|
-
`,
|
|
319
|
+
`,Ne=i.span`
|
|
318
320
|
display: flex;
|
|
319
321
|
align-items: center;
|
|
320
322
|
gap: 8px;
|
|
@@ -331,7 +333,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
331
333
|
height: 24.81px;
|
|
332
334
|
}
|
|
333
335
|
}
|
|
334
|
-
`,
|
|
336
|
+
`,Qe=i.span`
|
|
335
337
|
font-family: ${e.font.sans};
|
|
336
338
|
font-size: 40px;
|
|
337
339
|
font-weight: 800;
|
|
@@ -342,7 +344,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
342
344
|
font-size: 32px;
|
|
343
345
|
line-height: 24px;
|
|
344
346
|
}
|
|
345
|
-
`,
|
|
347
|
+
`,He=i.span`
|
|
346
348
|
font-family: ${e.font.sans};
|
|
347
349
|
font-size: 20px;
|
|
348
350
|
font-weight: 500;
|
|
@@ -354,7 +356,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
354
356
|
font-size: 16px;
|
|
355
357
|
line-height: 12px;
|
|
356
358
|
}
|
|
357
|
-
`,
|
|
359
|
+
`,De=i.span`
|
|
358
360
|
display: block;
|
|
359
361
|
width: 70%;
|
|
360
362
|
aspect-ratio: 1;
|
|
@@ -364,8 +366,26 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
364
366
|
width: 100%;
|
|
365
367
|
height: 100%;
|
|
366
368
|
object-fit: contain;
|
|
369
|
+
/* Scaling the IMG, not this box: the box holds the card's layout, so growing it would push the
|
|
370
|
+
price button down and make the hovered card taller than its neighbours. */
|
|
371
|
+
transform-origin: center;
|
|
372
|
+
transition: transform 0.2s ease;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
[data-testid='pack']:hover & img,
|
|
376
|
+
[data-testid='pack']:focus-visible & img {
|
|
377
|
+
transform: scale(1.08);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
@media (prefers-reduced-motion: reduce) {
|
|
381
|
+
img,
|
|
382
|
+
[data-testid='pack']:hover & img,
|
|
383
|
+
[data-testid='pack']:focus-visible & img {
|
|
384
|
+
transition: none;
|
|
385
|
+
transform: none;
|
|
386
|
+
}
|
|
367
387
|
}
|
|
368
|
-
`,
|
|
388
|
+
`,Ke=i.span`
|
|
369
389
|
display: flex;
|
|
370
390
|
align-items: center;
|
|
371
391
|
justify-content: center;
|
|
@@ -378,18 +398,32 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
378
398
|
*/
|
|
379
399
|
margin-top: auto;
|
|
380
400
|
width: 100%;
|
|
381
|
-
height:
|
|
401
|
+
height: 56px;
|
|
382
402
|
padding: 0 12px;
|
|
383
403
|
border-radius: ${e.radius.card};
|
|
384
|
-
|
|
404
|
+
/* Translucent at rest; the card's hover/selected state below flips it to the solid white the design
|
|
405
|
+
gives the chosen pack (Figma 2106:416252 vs 1654:372735). */
|
|
406
|
+
background: rgba(255, 255, 255, 0.2);
|
|
385
407
|
font-family: ${e.font.sans};
|
|
386
|
-
font-size:
|
|
387
|
-
font-weight:
|
|
408
|
+
font-size: 15px;
|
|
409
|
+
font-weight: 700;
|
|
388
410
|
line-height: 24px;
|
|
389
411
|
letter-spacing: 0.46px;
|
|
390
|
-
color: ${e.colors.
|
|
412
|
+
color: ${e.colors.softWhite};
|
|
391
413
|
text-transform: uppercase;
|
|
392
|
-
|
|
414
|
+
transition:
|
|
415
|
+
background 0.15s ease,
|
|
416
|
+
color 0.15s ease;
|
|
417
|
+
|
|
418
|
+
[data-testid='pack']:hover &,
|
|
419
|
+
[data-testid='pack']:focus-visible &,
|
|
420
|
+
[data-testid='pack']:active & {
|
|
421
|
+
background: ${e.colors.white};
|
|
422
|
+
color: ${e.colors.text2};
|
|
423
|
+
font-size: 16px;
|
|
424
|
+
font-weight: 800;
|
|
425
|
+
}
|
|
426
|
+
`,Oe=F`
|
|
393
427
|
to {
|
|
394
428
|
background-position: -200% 0;
|
|
395
429
|
}
|
|
@@ -402,12 +436,12 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
402
436
|
rgba(255, 255, 255, 0.08) 70%
|
|
403
437
|
);
|
|
404
438
|
background-size: 200% 100%;
|
|
405
|
-
animation: ${
|
|
439
|
+
animation: ${Oe} 1.4s infinite linear;
|
|
406
440
|
|
|
407
441
|
@media (prefers-reduced-motion: reduce) {
|
|
408
442
|
animation: none;
|
|
409
443
|
}
|
|
410
|
-
`,
|
|
444
|
+
`,Ye=i(P)`
|
|
411
445
|
width: 60%;
|
|
412
446
|
height: 30px;
|
|
413
447
|
border-radius: ${e.radius.chip};
|
|
@@ -415,7 +449,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
415
449
|
${e.media.maxWidth("mobile")} {
|
|
416
450
|
height: 24px;
|
|
417
451
|
}
|
|
418
|
-
`,
|
|
452
|
+
`,Ve=i(P)`
|
|
419
453
|
width: 36%;
|
|
420
454
|
height: 15px;
|
|
421
455
|
border-radius: ${e.radius.chip};
|
|
@@ -423,19 +457,19 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
423
457
|
${e.media.maxWidth("mobile")} {
|
|
424
458
|
height: 12px;
|
|
425
459
|
}
|
|
426
|
-
`,
|
|
460
|
+
`,Xe=i(P)`
|
|
427
461
|
width: 70%;
|
|
428
462
|
aspect-ratio: 1;
|
|
429
463
|
border-radius: 16px;
|
|
430
|
-
`,
|
|
464
|
+
`,Ze=i(P)`
|
|
431
465
|
width: 100%;
|
|
432
466
|
height: 48px;
|
|
433
467
|
border-radius: ${e.radius.card};
|
|
434
|
-
`,
|
|
468
|
+
`,Je=i.p`
|
|
435
469
|
margin: 0;
|
|
436
470
|
font-family: ${e.font.sans};
|
|
437
471
|
color: ${e.colors.muted};
|
|
438
|
-
`,
|
|
472
|
+
`,et=i.div`
|
|
439
473
|
position: absolute;
|
|
440
474
|
inset: 0;
|
|
441
475
|
z-index: 1;
|
|
@@ -446,13 +480,13 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
446
480
|
gap: 24px;
|
|
447
481
|
padding: 24px;
|
|
448
482
|
text-align: center;
|
|
449
|
-
`,
|
|
483
|
+
`,tt=i.p`
|
|
450
484
|
margin: 0;
|
|
451
485
|
font-family: ${e.font.sans};
|
|
452
486
|
font-size: 16px;
|
|
453
487
|
line-height: 1.4;
|
|
454
488
|
color: rgba(255, 255, 255, 0.88);
|
|
455
|
-
`,
|
|
489
|
+
`,it=F`
|
|
456
490
|
0%, 100% {
|
|
457
491
|
transform: scale(1);
|
|
458
492
|
opacity: 1;
|
|
@@ -461,7 +495,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
461
495
|
transform: scale(0.88);
|
|
462
496
|
opacity: 0.7;
|
|
463
497
|
}
|
|
464
|
-
`,
|
|
498
|
+
`,rt=i.div`
|
|
465
499
|
display: flex;
|
|
466
500
|
flex-direction: column;
|
|
467
501
|
align-items: center;
|
|
@@ -472,20 +506,20 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
472
506
|
`,oe=i.img`
|
|
473
507
|
width: 61px;
|
|
474
508
|
height: 61px;
|
|
475
|
-
animation: ${
|
|
509
|
+
animation: ${it} 1.2s ease-in-out infinite;
|
|
476
510
|
|
|
477
511
|
@media (prefers-reduced-motion: reduce) {
|
|
478
512
|
animation: none;
|
|
479
513
|
}
|
|
480
|
-
`,
|
|
514
|
+
`,nt=i(oe)`
|
|
481
515
|
width: 72px;
|
|
482
516
|
height: 72px;
|
|
483
|
-
`,
|
|
517
|
+
`,st=i.div`
|
|
484
518
|
display: flex;
|
|
485
519
|
flex-direction: column;
|
|
486
520
|
align-items: center;
|
|
487
521
|
gap: 8px;
|
|
488
|
-
`,
|
|
522
|
+
`,ot=i.p`
|
|
489
523
|
margin: 0;
|
|
490
524
|
font-family: ${e.font.sans};
|
|
491
525
|
font-size: 20px;
|
|
@@ -495,18 +529,18 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
495
529
|
strong {
|
|
496
530
|
font-weight: 700;
|
|
497
531
|
}
|
|
498
|
-
`,
|
|
532
|
+
`,at=i.div`
|
|
499
533
|
display: flex;
|
|
500
534
|
align-items: center;
|
|
501
535
|
gap: 8px;
|
|
502
|
-
`,
|
|
536
|
+
`,dt=F`
|
|
503
537
|
0% {
|
|
504
538
|
left: -40%;
|
|
505
539
|
}
|
|
506
540
|
100% {
|
|
507
541
|
left: 100%;
|
|
508
542
|
}
|
|
509
|
-
`,
|
|
543
|
+
`,ct=i.span`
|
|
510
544
|
position: relative;
|
|
511
545
|
width: 456px;
|
|
512
546
|
max-width: 60vw;
|
|
@@ -514,7 +548,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
514
548
|
border-radius: ${e.radius.pill};
|
|
515
549
|
background: ${e.colors.chip};
|
|
516
550
|
overflow: hidden;
|
|
517
|
-
`,
|
|
551
|
+
`,lt=i.span`
|
|
518
552
|
position: absolute;
|
|
519
553
|
top: 0;
|
|
520
554
|
left: -40%;
|
|
@@ -522,19 +556,19 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
522
556
|
height: 100%;
|
|
523
557
|
border-radius: ${e.radius.pill};
|
|
524
558
|
background: ${e.gradients.amethyst};
|
|
525
|
-
animation: ${
|
|
559
|
+
animation: ${dt} 1.4s ease-in-out infinite;
|
|
526
560
|
|
|
527
561
|
@media (prefers-reduced-motion: reduce) {
|
|
528
562
|
left: 0;
|
|
529
563
|
width: 30%;
|
|
530
564
|
animation: none;
|
|
531
565
|
}
|
|
532
|
-
`,
|
|
566
|
+
`,pt=i.span`
|
|
533
567
|
font-family: ${e.font.sans};
|
|
534
568
|
font-size: 16px;
|
|
535
569
|
line-height: 22px;
|
|
536
570
|
color: ${e.colors.text2};
|
|
537
|
-
`,
|
|
571
|
+
`,ht=i.div`
|
|
538
572
|
/* Its own stacking context, so the confetti layer (z-index: -1) lands BEHIND this content instead of
|
|
539
573
|
escaping past it and hiding behind the page background. z-index is inert without a position, so both
|
|
540
574
|
are required — same arrangement Success.styles' Root uses for the item-purchase burst. */
|
|
@@ -545,7 +579,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
545
579
|
gap: 12px;
|
|
546
580
|
max-width: 895px;
|
|
547
581
|
margin: 0 auto;
|
|
548
|
-
`,
|
|
582
|
+
`,ut=i.div`
|
|
549
583
|
display: flex;
|
|
550
584
|
align-items: center;
|
|
551
585
|
gap: 16px;
|
|
@@ -558,11 +592,11 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
558
592
|
flex-direction: column;
|
|
559
593
|
text-align: center;
|
|
560
594
|
}
|
|
561
|
-
`,
|
|
595
|
+
`,xt=i.img`
|
|
562
596
|
flex: none;
|
|
563
597
|
width: 60px;
|
|
564
598
|
height: 60px;
|
|
565
|
-
`,
|
|
599
|
+
`,gt=i.p`
|
|
566
600
|
flex: 1;
|
|
567
601
|
margin: 0;
|
|
568
602
|
font-family: ${e.font.sans};
|
|
@@ -574,12 +608,12 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
574
608
|
strong {
|
|
575
609
|
font-weight: 700;
|
|
576
610
|
}
|
|
577
|
-
`,
|
|
611
|
+
`,ft=i.div`
|
|
578
612
|
padding: 24px;
|
|
579
613
|
border-radius: 16px;
|
|
580
614
|
background: ${e.colors.white};
|
|
581
615
|
border: 1px solid ${e.colors.gray4};
|
|
582
|
-
`,
|
|
616
|
+
`,mt=i.div`
|
|
583
617
|
position: relative;
|
|
584
618
|
display: flex;
|
|
585
619
|
align-items: center;
|
|
@@ -603,7 +637,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
603
637
|
gap: 10px;
|
|
604
638
|
padding: 120px 16px 16px;
|
|
605
639
|
}
|
|
606
|
-
`,
|
|
640
|
+
`,bt=i.img`
|
|
607
641
|
position: absolute;
|
|
608
642
|
left: 35px;
|
|
609
643
|
top: 50%;
|
|
@@ -617,7 +651,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
617
651
|
top: 16px;
|
|
618
652
|
transform: translateX(-50%);
|
|
619
653
|
}
|
|
620
|
-
`,
|
|
654
|
+
`,wt=i.p`
|
|
621
655
|
display: inline-flex;
|
|
622
656
|
align-items: center;
|
|
623
657
|
gap: 8px;
|
|
@@ -630,21 +664,21 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
630
664
|
height: 30px;
|
|
631
665
|
color: ${e.colors.text};
|
|
632
666
|
}
|
|
633
|
-
`,
|
|
667
|
+
`,yt=i.strong`
|
|
634
668
|
font-size: 24px;
|
|
635
669
|
font-weight: 700;
|
|
636
670
|
text-transform: capitalize;
|
|
637
|
-
`,
|
|
671
|
+
`,kt=i.span`
|
|
638
672
|
font-size: 14px;
|
|
639
673
|
font-weight: 400;
|
|
640
|
-
|
|
674
|
+
`,vt=i.div`
|
|
641
675
|
display: flex;
|
|
642
676
|
gap: 12px;
|
|
643
677
|
|
|
644
678
|
@media (max-width: 560px) {
|
|
645
679
|
flex-direction: column;
|
|
646
680
|
}
|
|
647
|
-
`,
|
|
681
|
+
`,v=i.button`
|
|
648
682
|
flex: 1;
|
|
649
683
|
display: inline-flex;
|
|
650
684
|
align-items: center;
|
|
@@ -704,8 +738,8 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
704
738
|
display: flex;
|
|
705
739
|
gap: 12px;
|
|
706
740
|
margin-top: 16px;
|
|
707
|
-
`,
|
|
741
|
+
`,Ct=i.p`
|
|
708
742
|
margin: 0;
|
|
709
743
|
font-family: ${e.font.sans};
|
|
710
744
|
color: ${e.colors.err};
|
|
711
|
-
`,
|
|
745
|
+
`,C=Ae()?"mock":"stripe",te=[A,A,ne,se],$t={pack_5:A,pack_10:A,pack_25:ne,pack_50:se};function ae(d,s){return $t[d.id]??te[s%te.length]}function jt(d,s){return d.artUrl??ae(d,s)}const St=[{question:"faq.buyers.whatAreQ",answer:"faq.buyers.whatAreA"},{question:"faq.buyers.whatCanIBuyQ",answer:"faq.buyers.whatCanIBuyA"},{question:"faq.buyers.whereBuyQ",answer:"faq.buyers.whereBuyA"},{question:"faq.buyers.whereUseQ",answer:"faq.buyers.whereUseA"},{question:"faq.buyers.expireQ",answer:"faq.buyers.expireA"},{question:"faq.buyers.transferQ",answer:"faq.buyers.transferA"}];function ie(d){const s=d;if((s==null?void 0:s.name)==="AbortError")return n("getCredits.errorCanceled");const f=((s==null?void 0:s.message)??"").toLowerCase();return f.includes("sign in")?n("getCredits.errorSignIn",{currency:h.name}):f.includes("timed out")?n("getCredits.errorTimeout",{currency:h.name}):n("getCredits.errorGeneric")}function Wt(){var L;ge({title:n("nav.getCredits",{currency:h.name}),noindex:!0});const d=ue(),{session:s,signIn:f}=fe(),o=me(),[m,b]=xe(),{packs:$,isLoading:y}=Ce(),[u,p]=l.useState("select"),[c,q]=l.useState(null),[j,E]=l.useState(null),de=(j!=null?(L=$.find(r=>r.credits===j))==null?void 0:L.artUrl:void 0)??Re,[ce,k]=l.useState(null),[le,R]=l.useState(!1),T=l.useRef(null);l.useEffect(()=>()=>{var r;return(r=T.current)==null?void 0:r.abort()},[]);const I=l.useCallback(()=>{b(r=>{const a=new URLSearchParams(r);return a.delete("order"),a.delete("canceled"),a},{replace:!0})},[b]),_=l.useCallback(async r=>{p("processing");const a=new AbortController;T.current=a;try{const x=await $e(r,{signal:a.signal,address:s==null?void 0:s.address,identity:s==null?void 0:s.identity});if(x.status==="credited"){const w=x.creditsGranted??(c==null?void 0:c.credits)??0;E(w>0?w:null),p("success"),g("Shop Completed Buy Credits",{order_id:r,pack_usd:(c==null?void 0:c.usd)??null,credits:w>0?w:null,provider:C}),o.invalidateQueries({queryKey:["usd-balance"]});try{if(sessionStorage.getItem(je)){const S={resumeCheckout:!0,...w>0?{creditsAdded:w}:{}};d("/cart",{state:S});return}}catch{}try{const S=sessionStorage.getItem(D);if(S){sessionStorage.removeItem(D);const M=JSON.parse(S),G=be(M);if(G){d(G,{state:{item:M,resumeBuy:!0}});return}}}catch{}}else x.status==="pending"?(g("Shop Buy Credits Pending",{step:"grant",pack_usd:(c==null?void 0:c.usd)??null}),o.invalidateQueries({queryKey:["usd-balance"]}),p("pending")):(g("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(c==null?void 0:c.usd)??null}),k(x.error??n("getCredits.errorGrant",{currency:h.name})),p("error"))}catch(x){U(x,{flow:"get_credits",step:"grant",order_id:r}),g("Shop Buy Credits Failed",{step:"grant",error_code:N(x),pack_usd:(c==null?void 0:c.usd)??null}),k(ie(x)),p("error")}},[c,s,o,d]),pe=l.useCallback(async r=>{if(!s){f();return}k(null),R(!1),q(r),p(C==="mock"?"processing":"redirecting"),g("Shop Started Buy Credits",{pack_usd:r.usd,credits:r.credits,provider:C});try{const a=await Se(r.id,{address:s.address,identity:s.identity});if(a.mock)_(a.orderId);else if(a.url)g("Shop Redirected To Stripe",{order_id:a.orderId,pack_usd:r.usd,credits:r.credits}),window.location.href=a.url;else throw new Error("Checkout did not return a redirect url")}catch(a){U(a,{flow:"get_credits",step:"checkout",provider:C}),g("Shop Buy Credits Failed",{step:"checkout",error_code:N(a),pack_usd:r.usd}),k(ie(a)),p("error")}},[s,f,_]),z=l.useRef(!1),W=l.useRef(null);l.useEffect(()=>{if(z.current)return;const r=m.get("order");if(m.get("canceled")!=null){z.current=!0,g("Shop Buy Credits Cancelled",{order_id:r,provider:C}),r&&s&&we(r,s.identity),I(),R(!0),p("select");return}r&&(p("processing"),s&&(z.current=!0,I(),_(r)))},[m,s]);function B(){var r;(r=T.current)==null||r.abort(),p("select"),q(null),E(null),k(null),R(!1)}function he(){const r=W.current;if(!r)return;const a=window.matchMedia("(prefers-reduced-motion: reduce)").matches;r.scrollIntoView({behavior:a?"auto":"smooth",block:"center"}),r.focus({preventScroll:!0})}return t.jsxs(_e,{children:[(u==="select"||u==="redirecting")&&t.jsxs(t.Fragment,{children:[t.jsx(ze,{"data-testid":"credits-hero",children:t.jsxs(Be,{children:[t.jsxs(qe,{$hidden:u==="redirecting",children:[t.jsxs(Ee,{children:[t.jsx(Ie,{children:n("getCredits.title")}),t.jsxs(We,{children:[t.jsx(Le,{children:n("getCredits.subtitle")}),t.jsx(Me,{type:"button",onClick:he,"data-testid":"credits-learn-more",children:n("getCredits.learnMore")})]})]}),le&&t.jsx(Ge,{role:"status",children:n("getCredits.canceledNote")}),t.jsx(At,{packs:$,loading:y,onSelect:r=>void pe(r)})]}),u==="redirecting"&&t.jsxs(et,{role:"status","aria-live":"polite",children:[t.jsx(nt,{src:Q,alt:"",width:72,height:72}),t.jsx(tt,{children:n("getCredits.redirecting")})]})]})}),t.jsx(Fe,{ref:W,tabIndex:-1,"data-testid":"credits-faq",children:t.jsx(ve,{title:"faq.title",entries:St,tone:"on-dark"})})]}),u==="processing"&&t.jsxs(rt,{role:"status","aria-live":"polite",children:[t.jsx(oe,{src:Q,alt:"",width:61,height:61}),t.jsxs(st,{children:[t.jsxs(ot,{children:[t.jsx("strong",{children:n("getCredits.processing")}),"…"]}),t.jsxs(at,{"aria-hidden":!0,children:[t.jsx(ct,{children:t.jsx(lt,{})}),t.jsx(pt,{children:"1/1"})]})]})]}),u==="success"&&t.jsxs(ht,{role:"status","aria-live":"polite",children:[t.jsx(ke,{}),t.jsxs(ut,{children:[t.jsx(xt,{src:Te,alt:"",width:60,height:60}),t.jsxs(gt,{children:[t.jsx("strong",{children:n("getCredits.successTitle")})," ",n("getCredits.successBody",{currency:h.name})]})]}),j!=null&&t.jsx(ft,{children:t.jsxs(mt,{children:[t.jsx(bt,{src:de,alt:"",width:93,height:93}),t.jsxs(wt,{children:[t.jsx(re,{}),t.jsxs("span",{children:[t.jsx(yt,{children:n("getCredits.creditsAmount",{credits:j,currency:h.name})})," ",t.jsx(kt,{children:n("getCredits.creditsAdded")})]})]})]})}),t.jsxs(vt,{children:[t.jsx(v,{"data-variant":"outline",onClick:B,children:n("getCredits.buyMore",{currency:h.name})}),t.jsx(v,{onClick:()=>d("/items"),children:n("getCredits.startShopping")})]})]}),u==="pending"&&t.jsxs(Z,{role:"status","aria-live":"polite",children:[t.jsx(J,{children:n("getCredits.pendingTitle",{currency:h.name})}),t.jsx(Je,{children:n("getCredits.pendingBody")}),t.jsxs(ee,{children:[t.jsx(v,{onClick:()=>d("/items"),children:n("getCredits.startShopping")}),t.jsx(v,{"data-variant":"outline",onClick:B,children:n("getCredits.done")})]})]}),u==="error"&&t.jsxs(Z,{role:"alert",children:[t.jsx(J,{"data-tone":"error",children:n("getCredits.errorTitle")}),t.jsx(Ct,{children:ce}),t.jsx(ee,{children:t.jsx(v,{onClick:B,children:n("getCredits.tryAgain")})})]})]})}function At({packs:d,loading:s,onSelect:f}){return s?t.jsx(O,{"aria-busy":"true","aria-label":n("getCredits.packsLoading",{currency:h.name}),children:[0,1,2,3].map(o=>t.jsxs(Y,{as:"div","data-skeleton":"true","data-testid":"pack-skeleton","aria-hidden":!0,children:[t.jsxs(V,{children:[t.jsxs(X,{children:[t.jsx(Ye,{}),t.jsx(Ve,{})]}),t.jsx(Xe,{})]}),t.jsx(Ze,{})]},o))}):t.jsx(O,{children:d.map((o,m)=>{const b=Pe(o,d);return t.jsxs(Y,{type:"button","data-testid":"pack","data-best":o.bestValue?"true":void 0,onClick:()=>f(o),"aria-label":b?n("getCredits.packAriaBonus",{amount:H(o.credits),usd:o.usd,bonus:b.bonus,baseline:b.baseline}):n("getCredits.packAria",{amount:H(o.credits),usd:o.usd}),children:[o.bestValue&&t.jsxs(Ue,{children:[t.jsx(ye,{name:"star-rounded"}),n("getCredits.packBadge")]}),t.jsxs(V,{children:[t.jsxs(X,{children:[t.jsxs(Ne,{children:[t.jsx(re,{}),t.jsx(Qe,{children:o.credits})]}),t.jsx(He,{children:n("getCredits.packUnit",{currency:h.name})})]}),t.jsx(De,{children:t.jsx("img",{src:jt(o,m),alt:"",loading:"lazy",width:507,height:507,onError:$=>{const y=$.currentTarget;y.dataset.artFallback||(y.dataset.artFallback="done",y.src=ae(o,m))}})})]}),t.jsxs(Ke,{children:["$",o.usd.toFixed(2)]})]},o.id)})})}export{Wt as GetCredits,Wt as default};
|