@dcl/shop 1.3.1-31191620721.commit-720133f → 1.3.1-31191774447.commit-6e7d6f7
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-BQp9zB9c.js → Activity-y24sxYxo.js} +3 -3
- package/_assets/{AnimatedBackground-1gk7Tb_5.js → AnimatedBackground-DRIIf518.js} +1 -1
- package/_assets/{Assets-inqUytf_.js → Assets-zGi2BuTg.js} +2 -2
- package/_assets/{Assets.styles-CLQKfUGn.js → Assets.styles-Cyayzp96.js} +1 -1
- package/_assets/{Authorizations-D-evM_QJ.js → Authorizations-D8xCUQ73.js} +1 -1
- package/_assets/{Cart-C9zn36Vt.js → Cart-BqjESTj5.js} +1 -1
- package/_assets/{CircularProgress-A5aHIFTM.js → CircularProgress-Dy39fa7f.js} +1 -1
- package/_assets/{Collection-BkS4RGzJ.js → Collection-CKYqVyfQ.js} +1 -1
- package/_assets/{CollectionCarousel-BR7iuprt.js → CollectionCarousel-CCSL-vFF.js} +126 -84
- package/_assets/{Confetti-DqCpqSGh.js → Confetti-BJzr7oOJ.js} +1 -1
- package/_assets/{Creator-DdbvRhiH.js → Creator-dcSlsbmQ.js} +1 -1
- package/_assets/{ErrorNotice-ZO3VddUA.js → ErrorNotice-DTm_-YHD.js} +1 -1
- package/_assets/{ExchangeController-DukmAekv.js → ExchangeController-BdXbQOvh.js} +1 -1
- package/_assets/{Faq-CZP7_2cD.js → Faq-BDJ3tHRE.js} +1 -1
- package/_assets/{GetCredits-MGdIwIFh.js → GetCredits-CBX3VO6B.js} +113 -60
- package/_assets/{Grow-DpPpV3nQ.js → Grow-B0_HYQIB.js} +1 -1
- package/_assets/{HelpersUtil-DF0OmzDm.js → HelpersUtil-CU_GR8a0.js} +1 -1
- package/_assets/ItemDetail-D853-Dww.js +3577 -0
- package/_assets/LazyEmoteControls-B-lnsWU7.js +2 -0
- package/_assets/{LoadMore-CQIEBXEe.js → LoadMore-DUsq2Liu.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-BL6Fe7uT.js → ManaPricingBanner.styles-DaxtPtS7.js} +1 -1
- package/_assets/{MyAssets-jUHoolRc.js → MyAssets-DiQcxqCG.js} +2 -2
- package/_assets/{MyFavorites-Cz0Ab5C3.js → MyFavorites-0BkK_ck-.js} +1 -1
- package/_assets/{NotFound-C3E5SE63.js → NotFound-9vpYhuFJ.js} +1 -1
- package/_assets/{NotificationsBell-DwoBklTb.js → NotificationsBell-BQIEq4Oi.js} +1 -1
- package/_assets/{OutfitDetail-CvBkv60C.js → OutfitDetail-CHg6J9ga.js} +1 -1
- package/_assets/{OutfitPreview-CBQqwJ67.js → OutfitPreview-tBQx0llU.js} +1 -1
- package/_assets/{OutfitStudio-a65hPBij.js → OutfitStudio-CRlaSeTL.js} +1 -1
- package/_assets/{StoreSettings-Dxk9HXHu.js → StoreSettings-Cq5Bj1aY.js} +1 -1
- package/_assets/{Success-tDKzwkOC.js → Success-BS_4kCGv.js} +1 -1
- package/_assets/{SwapController-BqD3xiuU.js → SwapController-kq1pQSit.js} +1 -1
- package/_assets/{Tooltip-CvreJNab.js → Tooltip-DGHRMccf.js} +1 -1
- package/_assets/{TradeService-BzK-QMtc.js → TradeService-CIAcHKym.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-CXX6NkJL.js → W3MFrameProviderSingleton-GrZmBKsV.js} +3 -3
- package/_assets/{WebCryptoP256-Dszr90Pd.js → WebCryptoP256-COWdwjwC.js} +1 -1
- package/_assets/{authorizations-tHY3fIO5.js → authorizations-FCfPxuii.js} +1 -1
- package/_assets/{basic-CzQlZy6T.js → basic-Bo9PxYJI.js} +1 -1
- package/_assets/{biconomy-C9DVv0MO.js → biconomy-BFLscdQv.js} +1 -1
- package/_assets/{builder-BkVXiD6h.js → builder-Cn-eB5XH.js} +1 -1
- package/_assets/{buy-D15s0U5R.js → buy-Dyhhp26V.js} +1 -1
- package/_assets/{buy-gasless-DmLq_ESf.js → buy-gasless-BebaKtpO.js} +1 -1
- package/_assets/{categories-gDlRucVv.js → categories-DFNz9BWG.js} +1 -1
- package/_assets/{ccip-Dzc99LwL.js → ccip-DEtp8YTb.js} +1 -1
- package/_assets/{ccip-bGy4ERXT.js → ccip-DJ0_SHFm.js} +1 -1
- package/_assets/{collectionPage.styles-C4IUHz6N.js → collectionPage.styles-VE6xQ4Pq.js} +4 -4
- package/_assets/{controller-bNuDj-sG.js → controller-BL7r_uPq.js} +2 -2
- package/_assets/{core-z3Fmal0m.js → core-ivuEZWRF.js} +4 -4
- package/_assets/{createSvgIcon-BsbTxAyP.js → createSvgIcon-FJ-T9KCc.js} +1 -1
- package/_assets/{custom-D0pEXNMH.js → custom-BfAMARTO.js} +1 -1
- package/_assets/{data-capture-Dip44U7J.js → data-capture-CtqR-xpK.js} +1 -1
- package/_assets/{email-BuVFjeyS.js → email-B00Kj9kB.js} +1 -1
- package/_assets/{embedded-wallet-BW8sqIAA.js → embedded-wallet-CJtelFQM.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-W2WZr0Ft.js → emotion-styled.browser.esm-B1pGJ4yC.js} +1 -1
- package/_assets/{engine-BmnT6CfB.js → engine-BSpdTa_2.js} +1 -1
- package/_assets/{errors-QU1ZKsgr.js → errors-B_H6ENH0.js} +1 -1
- package/_assets/{estimate-l1-fee-GYuqvmRU.js → estimate-l1-fee-DLDkjzSe.js} +1 -1
- package/_assets/{execute-BVzDLJKt.js → execute-BLDW5NcT.js} +2 -2
- package/_assets/{features-xcuE2K-G.js → features-Db7oOV5p.js} +1 -1
- package/_assets/{fetchTokenMetadata-D-cGrRJi.js → fetchTokenMetadata-BnyyeISK.js} +2 -2
- package/_assets/{field.styles-D166p6oG.js → field.styles-BFdlSNg_.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-BjfLkiDk.js → get-ecosystem-wallet-info-B0tgCN4F.js} +1 -1
- package/_assets/{getBalance-CvIYNcSa.js → getBalance-Cltaf7Oq.js} +1 -1
- package/_assets/{getNFT-KdIpONGr.js → getNFT-C0frkmVi.js} +1 -1
- package/_assets/{getNFT-BHwsrgSu.js → getNFT-CwDwplwb.js} +1 -1
- package/_assets/{grid.styles-BCyzN-Pc.js → grid.styles-4ZcNyj0y.js} +1 -1
- package/_assets/{hashTypedData-DOa1wxQA.js → hashTypedData-CAxTTN4J.js} +1 -1
- package/_assets/{hashTypedData-dAuA3uO1.js → hashTypedData-CXE9elkf.js} +1 -1
- package/_assets/{in-app-Vkd-5Wa3.js → in-app-fhMFhBIw.js} +1 -1
- package/_assets/{in-app-wallet-calls-CdJklwgr.js → in-app-wallet-calls-BUUJeIZU.js} +1 -1
- package/_assets/{index-D_9hGXGo.js → index-APQ2Ba7r.js} +1 -1
- package/_assets/{index-BusO331-.js → index-B5W17i2g.js} +1 -1
- package/_assets/{index-CubHbtST.js → index-B62JUWFh.js} +1 -1
- package/_assets/{index-joI_e-qB.js → index-BA4pQBRh.js} +1 -1
- package/_assets/{index-BV-dSC8Q.js → index-BCZo8-ZK.js} +3 -3
- package/_assets/{index-DBG7zV9T.js → index-BDHChLjL.js} +1 -1
- package/_assets/{index-C6MIgQz4.js → index-BDwg7g4n.js} +1 -1
- package/_assets/{index-DVTAk_4l.js → index-BGynyeV-.js} +3 -3
- package/_assets/{index-CjgJGKFm.js → index-BK8V9pQJ.js} +1 -1
- package/_assets/{index-Ct39zsAv.js → index-BPT3uqik.js} +1 -1
- package/_assets/{index-Ca-3H4tc.js → index-BQZHWFgh.js} +1 -1
- package/_assets/{index-lzXNQebE.js → index-BRYRxr20.js} +1 -1
- package/_assets/{index-48RRNXVh.js → index-BWyq-oFs.js} +1 -1
- package/_assets/{index-C0C-mFEA.js → index-BYOF-_EY.js} +1 -1
- package/_assets/{index-WqT-VMXi.js → index-BbDxDzVC.js} +1 -1
- package/_assets/{index-YO9YHqy5.js → index-BhYjAWN9.js} +1 -1
- package/_assets/{index-Bxe28Q3l.js → index-Bj-6yUVC.js} +1 -1
- package/_assets/{index-BooiKZ4y.js → index-BkDfqq0T.js} +1 -1
- package/_assets/{index-LYRoqykZ.js → index-BsmI87gm.js} +1 -1
- package/_assets/{index-VNMDwvJZ.js → index-ByLnsD5M.js} +1 -1
- package/_assets/{index-BzDEKkhm.js → index-BzHeEnu-.js} +1 -1
- package/_assets/{index-CiyuHW1D.js → index-C4rlto1G.js} +1 -1
- package/_assets/{index-C2Dmw2y2.js → index-CFzcju_2.js} +1 -1
- package/_assets/{index-BnoUb6oZ.js → index-CNmI4st4.js} +1 -1
- package/_assets/{index-CIH4mDH4.js → index-COIlEmNs.js} +2 -2
- package/_assets/{index-CjplTBs8.js → index-CdTw5pba.js} +1 -1
- package/_assets/{index-B-SZ4oKw.js → index-CfarxyUW.js} +1 -1
- package/_assets/{index-DBwWJ13U.js → index-ChjwLCYB.js} +1 -1
- package/_assets/{index-Brlax_z3.js → index-CinaHmgq.js} +1 -1
- package/_assets/{index-wqmFpJCC.js → index-Ciwhv9sJ.js} +1 -1
- package/_assets/{index-khD6dteL.js → index-CjnsP8Ua.js} +1 -1
- package/_assets/{index-C4PfxjwS.js → index-Cq5KlmlM.js} +1 -1
- package/_assets/{index-CV0k525o.js → index-CqbIuuH7.js} +1 -1
- package/_assets/{index-Dh3h6qwJ.js → index-CszvsfVp.js} +1 -1
- package/_assets/{index-DjQVPpbt.js → index-CtOJKlpi.js} +1 -1
- package/_assets/{index-Vpo54xYi.js → index-CtnLri_P.js} +1 -1
- package/_assets/{index-BC0P8UDZ.js → index-DHaLQxQa.js} +1 -1
- package/_assets/{index-C1B0Gkbl.js → index-DK25Jb4e.js} +2 -2
- package/_assets/{index-DA9zyrHQ.js → index-DNDT_dIF.js} +1 -1
- package/_assets/{index-Dyxgs6tH.js → index-DhFU000l.js} +1 -1
- package/_assets/{index-D4GsidCb.js → index-DkU3wVO5.js} +3 -3
- package/_assets/{index-BG5saEE6.js → index-DmPTEtlr.js} +15 -15
- package/_assets/{index-5LEllUgg.js → index-Dvk5bLvA.js} +1 -1
- package/_assets/{index-BcClhtlx.js → index-Dx0t4NAk.js} +2 -2
- package/_assets/{index-DZJGA9sn.js → index-NDYWRULy.js} +1 -1
- package/_assets/{index-BIPY6esA.js → index-PH-I4BnF.js} +1 -1
- package/_assets/{index-BSE_jyBb.js → index-PTtIRQbX.js} +1 -1
- package/_assets/{index-hdxRUFOH.js → index-Qistbvb_.js} +1 -1
- package/_assets/{index-jBILDCGu.js → index-jnN8CEK_.js} +1 -1
- package/_assets/{index-CsJapBAz.js → index-k5uwzkke.js} +1 -1
- package/_assets/{index-DgK1L9o3.js → index-lakCiY8c.js} +1 -1
- package/_assets/{index-BtKeAS4U.js → index-y6gbmZ7D.js} +1 -1
- package/_assets/{index.es-TB6Pdbr6.js → index.es-Dzq0d_cy.js} +4 -4
- package/_assets/{index.es-DMyaDgPn.js → index.es-XoMskHy0.js} +1 -1
- package/_assets/{index.es-s8ulJ0vH.js → index.es-gfNvjdvH.js} +1 -1
- package/_assets/{localBatchGatewayRequest-Cb2OUlxF.js → localBatchGatewayRequest-5ebjcWbY.js} +1 -1
- package/_assets/{networks-DP5N-9q0.js → networks-Dl3Vc8M8.js} +1 -1
- package/_assets/{onramp-D_IiF06P.js → onramp-BkGIcgyw.js} +1 -1
- package/_assets/{openzeppelin-DQb0B1gc.js → openzeppelin-DchCrOCQ.js} +1 -1
- package/_assets/{parseNft-BXnxR2DY.js → parseNft-BG3FThUy.js} +2 -2
- package/_assets/{parseSignature-D6PfB-m3.js → parseSignature-BFEcvs4V.js} +1 -1
- package/_assets/{parseSignature-BHwvxKmK.js → parseSignature-DTAbriMg.js} +3 -3
- package/_assets/{passkeys-B3PSpp8R.js → passkeys-Da9FNaDu.js} +1 -1
- package/_assets/{pay-with-exchange-DclkyJuD.js → pay-with-exchange-Bs2TV7Z3.js} +1 -1
- package/_assets/{qr-overlay-mE8cLXwy.js → qr-overlay-UW6bQNWO.js} +1 -1
- package/_assets/{receive--vr3pkwu.js → receive-CzyqFowk.js} +1 -1
- package/_assets/{resolveImplementation-CkV0Br2Q.js → resolveImplementation-BIzpUAgP.js} +1 -1
- package/_assets/{rpc-Bo8dCOeA.js → rpc-C7P6HF5R.js} +1 -1
- package/_assets/{secp256k1-CoJWrMaq.js → secp256k1-5qH9q35u.js} +1 -1
- package/_assets/{secp256k1-BemYjp6e.js → secp256k1-Bx20Myy5.js} +1 -1
- package/_assets/{secp256k1-D_IXzkrW.js → secp256k1-D6TaeqaI.js} +1 -1
- package/_assets/{send-psiY7VdC.js → send-Dk12l-18.js} +1 -1
- package/_assets/{send-batch-transaction-Dmmn7XYZ.js → send-batch-transaction-DKbbooSJ.js} +1 -1
- package/_assets/{send-eip712-transaction-Blu7_doG.js → send-eip712-transaction-Cg4tgj5D.js} +2 -2
- package/_assets/{send-gasless-transaction-BQqBwT8Q.js → send-gasless-transaction-CMqqmP8u.js} +2 -2
- package/_assets/{send-transaction-Ry2e-C1a.js → send-transaction-BV2bVYB0.js} +2 -2
- package/_assets/{sendMetaTransaction-Dk8-17lF.js → sendMetaTransaction-DvkQczva.js} +1 -1
- package/_assets/{sendRawTransaction-CR95nEOD.js → sendRawTransaction-sxEV3puZ.js} +3 -3
- package/_assets/{serializeTransaction-C8fOu7Uj.js → serializeTransaction-B2V0ysGE.js} +1 -1
- package/_assets/{session-proposal-CfcD16EU.js → session-proposal-ZWnsr1uV.js} +1 -1
- package/_assets/{session-request-Btflur8z.js → session-request-DNtDMu6V.js} +2 -2
- package/_assets/{signing-RYCivcYo.js → signing-BcRAGDmi.js} +3 -3
- package/_assets/{skeleton.styles-CV7fqHt3.js → skeleton.styles-H8mPuQpn.js} +1 -1
- package/_assets/{socials-i3gKdi6C.js → socials-CchjAnAV.js} +1 -1
- package/_assets/{styled-DgOOcess.js → styled-DPMMsxJe.js} +1 -1
- package/_assets/{swaps-D-dNMnWG.js → swaps-CkVTt06M.js} +1 -1
- package/_assets/{thirdweb-RwyfzX2g.js → thirdweb-DNu05vUz.js} +3 -3
- package/_assets/{to-serializable-transaction-B0dWSkXr.js → to-serializable-transaction-Ct0SHqrp.js} +2 -2
- package/_assets/{transactionReceipt-B7m8-bO3.js → transactionReceipt-3ZZCMPVt.js} +1 -1
- package/_assets/{transactions-DgH8v_XM.js → transactions-DVLzReQc.js} +1 -1
- package/_assets/{useCreditPacks-vgB1sZNv.js → useCreditPacks-4hcmsM5F.js} +1 -1
- package/_assets/{useImportable-Dyukx66c.js → useImportable-Dx3iV1I3.js} +1 -1
- package/_assets/{useInfiniteGrid-CPmv8ezG.js → useInfiniteGrid-BM-TIQD6.js} +1 -1
- package/_assets/{useStore-DuwkQdft.js → useStore-BDX6RUJl.js} +1 -1
- package/_assets/{useTheme-BxV5MAYV.js → useTheme-jFU96Y8U.js} +1 -1
- package/_assets/{verifyHash-CG9JVJuP.js → verifyHash-zE9tbx0Y.js} +1 -1
- package/_assets/{w3m-modal-D5IA0mZQ.js → w3m-modal-3G7T-i4r.js} +1 -1
- package/_assets/{w3m-modal-CwgxcOGH.js → w3m-modal-qM1qOGgn.js} +1 -1
- package/_assets/{wait-for-tx-receipt-ygDC8-Lg.js → wait-for-tx-receipt-DDnIM7IJ.js} +1 -1
- package/_assets/{wallets-2mt8pecQ.js → wallets-DNleVnWY.js} +5 -5
- package/_assets/{web-connector-B3MiLEZD.js → web-connector-HGPuKGe_.js} +3 -3
- package/_assets/{writeContract-C0oLGDl4.js → writeContract-VXIAbGxa.js} +1 -1
- package/_assets/{zoraTestnet-DutpD1cF.js → zoraTestnet-B2SeH1Ka.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/ItemDetail-CFBZLMJU.js +0 -3577
- package/_assets/LazyEmoteControls-DHNXGhhi.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index.es-C4oAOZ2V.js","_assets/react-BYHuwl8r.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{s as o,_ as a}from"./index-
|
|
2
|
+
import{s as o,_ as a}from"./index-DmPTEtlr.js";import{r as n,j as e}from"./react-BYHuwl8r.js";const s=o.div`
|
|
3
3
|
position: fixed;
|
|
4
4
|
inset: 0;
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as ce,j as e,L as Me,d as Be,u as Ie,r as L}from"./react-BYHuwl8r.js";import{u as Re}from"./useUrlFilters-DH-gxdfV.js";import{u as Ae,S as Y,R as Te,F as _e,e as ze}from"./categories-
|
|
1
|
+
import{b as ce,j as e,L as Me,d as Be,u as Ie,r as L}from"./react-BYHuwl8r.js";import{u as Re}from"./useUrlFilters-DH-gxdfV.js";import{u as Ae,S as Y,R as Te,F as _e,e as ze}from"./categories-DFNz9BWG.js";import{t as de,by as We,P as Z,O as X,s,bz as De,J as Oe,bA as Ke,b as o,bB as Ue,bC as ee,B as Ge,K as he,a1 as ue,v as He,E as pe,bu as qe,bv as Ve,I as te,c as Je,y as Qe,l as Ye,ac as Ze,an as Xe,ao as et,ap as M,aq as oe,bD as re,bE as tt}from"./index-DmPTEtlr.js";import{T as me}from"./skeleton.styles-H8mPuQpn.js";import{d as ot,P as rt,C as it,a as st,b as at,c as nt,e as lt}from"./collectionPage.styles-VE6xQ4Pq.js";import{u as ct,L as dt}from"./useStore-BDX6RUJl.js";import{R as ht,S as ut,a as pt,D as mt,b as xt,C as gt,c as ft,F as bt,d as wt,e as yt,M as vt,E as R,f as A,g as jt,h as Ct,i as kt,j as $t}from"./Assets.styles-Cyayzp96.js";import{L as ie}from"./LoadMore-DUsq2Liu.js";import{u as se}from"./useInfiniteGrid-BM-TIQD6.js";import{E as T}from"./ErrorNotice-DTm_-YHD.js";import{G as ae}from"./grid.styles-4ZcNyj0y.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./Tooltip-DGHRMccf.js";function St(r){const{gridLoading:i,gridError:a,gridCount:l,baselinePending:c,baselineError:d,baselineCount:b}=r;return i?"skeletons":a?"error":l>0?"items":c?"skeletons":d?"error":b===0?"no-creations":"filters"}const{colors:w,radius:xe,media:Nt}=de,Et=s.article`
|
|
2
2
|
height: 300px;
|
|
3
3
|
/* No fill of its own (Figma 922:183803): the mosaic covers the top and the footer paints its own
|
|
4
4
|
translucent black, so the page field is what shows through the corners. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r}from"./react-BYHuwl8r.js";import{I as i}from"./index-
|
|
1
|
+
import{j as r}from"./react-BYHuwl8r.js";import{I as i}from"./index-DmPTEtlr.js";function a({message:e,className:o,testId:t}){return e?r.jsxs("p",{className:o?`error-notice ${o}`:"error-notice","data-testid":t,role:"alert",children:[r.jsx(i,{name:"alert",className:"error-notice__ico",size:18}),r.jsx("span",{className:"error-notice__msg",children:e})]}):null}export{a as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as l,E as w,b as E,S as A,d as k,O as U,N as P,g as f,B as x,e as N,i as I,p as L}from"./W3MFrameProviderSingleton-
|
|
1
|
+
import{C as l,E as w,b as E,S as A,d as k,O as U,N as P,g as f,B as x,e as N,i as I,p as L}from"./W3MFrameProviderSingleton-GrZmBKsV.js";import{g as T,a as W,f as b,b as _,c as v}from"./index-BCZo8-ZK.js";const D=0,C={paymentAsset:null,amount:null,tokenAmount:0,priceLoading:!1,error:null,exchanges:[],isLoading:!1,currentPayment:void 0,isPaymentInProgress:!1,paymentId:"",assets:[]},e=L(C),m={state:e,subscribe(t){return I(e,()=>t(e))},subscribeKey(t,n){return N(e,t,n)},resetState(){Object.assign(e,{...C})},async getAssetsForNetwork(t){const n=v(t),s=await m.getAssetsImageAndPrice(n),r=n.map(a=>{var c,o,p,y;const u=a.asset==="native"?f():`${a.network}:${a.asset}`,i=s.find(S=>{var g,d,h;return((h=(d=(g=S.fungibles)==null?void 0:g[0])==null?void 0:d.address)==null?void 0:h.toLowerCase())===u.toLowerCase()});return{...a,price:((o=(c=i==null?void 0:i.fungibles)==null?void 0:c[0])==null?void 0:o.price)||1,metadata:{...a.metadata,iconUrl:(y=(p=i==null?void 0:i.fungibles)==null?void 0:p[0])==null?void 0:y.iconUrl}}});return e.assets=r,r},async getAssetsImageAndPrice(t){const n=t.map(r=>r.asset==="native"?f():`${r.network}:${r.asset}`);return await Promise.all(n.map(r=>x.fetchTokenPrice({addresses:[r]})))},getTokenAmount(){var s;if(!((s=e==null?void 0:e.paymentAsset)!=null&&s.price))throw new Error("Cannot get token price");const t=P.bigNumber(e.amount??0).round(8),n=P.bigNumber(e.paymentAsset.price).round(8);return t.div(n).round(8).toNumber()},setAmount(t){var n;e.amount=t,(n=e.paymentAsset)!=null&&n.price&&(e.tokenAmount=m.getTokenAmount())},setPaymentAsset(t){e.paymentAsset=t},isPayWithExchangeEnabled(){var t;return(t=U.state.remoteFeatures)==null?void 0:t.payWithExchange},isPayWithExchangeSupported(){return m.isPayWithExchangeEnabled()&&l.state.activeCaipNetwork&&k.PAY_WITH_EXCHANGE_SUPPORTED_CHAIN_NAMESPACES.includes(l.state.activeCaipNetwork.chainNamespace)},async fetchExchanges(){var t;try{const n=m.isPayWithExchangeSupported();if(!e.paymentAsset||!n){e.exchanges=[],e.isLoading=!1;return}e.isLoading=!0;const s=await _({page:D,asset:b(e.paymentAsset.network,e.paymentAsset.asset),amount:((t=e.amount)==null?void 0:t.toString())??"0"});e.exchanges=s.exchanges.slice(0,2)}catch{throw A.showError("Unable to get exchanges"),new Error("Unable to get exchanges")}finally{e.isLoading=!1}},async getPayUrl(t,n){try{const s=Number(n.amount),r=await W({exchangeId:t,asset:b(n.network,n.asset),amount:s.toString(),recipient:`${n.network}:${n.recipient}`});return w.sendEvent({type:"track",event:"PAY_EXCHANGE_SELECTED",properties:{exchange:{id:t},configuration:{network:n.network,asset:n.asset,recipient:n.recipient,amount:s},currentPayment:{type:"exchange",exchangeId:t},source:"fund-from-exchange",headless:!1}}),r}catch(s){throw s instanceof Error&&s.message.includes("is not supported")?new Error("Asset not supported"):new Error(s.message)}},async handlePayWithExchange(t){var n;try{const s=(n=l.getAccountData())==null?void 0:n.address;if(!s)throw new Error("No account connected");if(!e.paymentAsset)throw new Error("No payment asset selected");const r=E.returnOpenHref("","popupWindow","scrollbar=yes,width=480,height=720");if(!r)throw new Error("Could not create popup window");e.isPaymentInProgress=!0,e.paymentId=crypto.randomUUID(),e.currentPayment={type:"exchange",exchangeId:t};const{network:a,asset:u}=e.paymentAsset,i={network:a,asset:u,amount:e.tokenAmount,recipient:s},c=await m.getPayUrl(t,i);if(!c){try{r.close()}catch(o){console.error("Unable to close popup window",o)}throw new Error("Unable to initiate payment")}e.currentPayment.sessionId=c.sessionId,e.currentPayment.status="IN_PROGRESS",e.currentPayment.exchangeId=t,r.location.href=c.url}catch{e.error="Unable to initiate payment",A.showError(e.error)}},async waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r=20}){const a=await m.getBuyStatus(t,n,s);if(a.status==="SUCCESS"||a.status==="FAILED")return a;if(r===0)throw new Error("Unable to get deposit status");return await new Promise(u=>{setTimeout(u,5e3)}),m.waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r-1})},async getBuyStatus(t,n,s){var r,a,u,i,c;try{if(!e.currentPayment)throw new Error("No current payment");const o=await T({sessionId:n,exchangeId:t});if(e.currentPayment.status=o.status,o.status==="SUCCESS"||o.status==="FAILED"){const p=(r=l.getAccountData())==null?void 0:r.address;e.currentPayment.result=o.txHash,e.isPaymentInProgress=!1,w.sendEvent({type:"track",event:o.status==="SUCCESS"?"PAY_SUCCESS":"PAY_ERROR",properties:{message:o.status==="FAILED"?E.parseError(e.error):void 0,source:"fund-from-exchange",paymentId:s,configuration:{network:((a=e.paymentAsset)==null?void 0:a.network)||"",asset:((u=e.paymentAsset)==null?void 0:u.asset)||"",recipient:p||"",amount:e.amount??0},currentPayment:{type:"exchange",exchangeId:(i=e.currentPayment)==null?void 0:i.exchangeId,sessionId:(c=e.currentPayment)==null?void 0:c.sessionId,result:o.txHash}}})}return o}catch{return{status:"UNKNOWN",txHash:""}}},reset(){e.currentPayment=void 0,e.isPaymentInProgress=!1,e.paymentId="",e.paymentAsset=null,e.amount=0,e.tokenAmount=0,e.priceLoading=!1,e.error=null,e.exchanges=[],e.isLoading=!1}};export{m as E};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,j as o}from"./react-BYHuwl8r.js";import{t as e,s as a,b as s,I as w}from"./index-
|
|
1
|
+
import{r as l,j as o}from"./react-BYHuwl8r.js";import{t as e,s as a,b as s,I as w}from"./index-DmPTEtlr.js";const m=a.section`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 36px;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{b as
|
|
1
|
+
import{b as he,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t as e,x as F,y as ue,b as n,C as h,v as ge,D as fe,Z as g,aF as me,k as U,aP as N,bO as be,ax as H,A as ie,I as we,bP as Q}from"./index-DmPTEtlr.js";import{C as ye}from"./Confetti-BJzr7oOJ.js";import{F as ke}from"./Faq-BDJ3tHRE.js";import{R as D}from"./resume-buy-Bf0zIH7y.js";import{u as ve,b as Ce,R as $e,c as je,i as Se,d as Pe}from"./useCreditPacks-4hcmsM5F.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";const P="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/_assets/pack-coins-BDh1ZDbh.webp",re="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/_assets/pack-stacks-D-V2jSHW.webp",ne="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/_assets/pack-chest-BX_j84xW.webp",Ae="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/_assets/credit-coin-CmcTCd5i.webp",O="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)",Te=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;
|
|
@@ -34,12 +34,12 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
34
34
|
top: -16px;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
`,
|
|
37
|
+
`,ze=i.div`
|
|
38
38
|
position: relative;
|
|
39
39
|
width: 100%;
|
|
40
40
|
display: flex;
|
|
41
41
|
justify-content: center;
|
|
42
|
-
`,
|
|
42
|
+
`,_e=i.div`
|
|
43
43
|
width: 100%;
|
|
44
44
|
max-width: 1478px;
|
|
45
45
|
margin: 0 auto;
|
|
@@ -55,7 +55,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
55
55
|
${e.media.maxWidth("mobile")} {
|
|
56
56
|
margin-top: 8px;
|
|
57
57
|
}
|
|
58
|
-
`,
|
|
58
|
+
`,Be=i.div`
|
|
59
59
|
width: 100%;
|
|
60
60
|
max-width: 1478px;
|
|
61
61
|
display: flex;
|
|
@@ -67,7 +67,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
67
67
|
${e.media.maxWidth("lg")} {
|
|
68
68
|
gap: 32px;
|
|
69
69
|
}
|
|
70
|
-
`,
|
|
70
|
+
`,Fe=i.header`
|
|
71
71
|
display: flex;
|
|
72
72
|
flex-direction: column;
|
|
73
73
|
align-items: center;
|
|
@@ -78,7 +78,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
78
78
|
${e.media.maxWidth("mobile")} {
|
|
79
79
|
gap: 12px;
|
|
80
80
|
}
|
|
81
|
-
`,
|
|
81
|
+
`,qe=i.h1`
|
|
82
82
|
margin: 0;
|
|
83
83
|
font-family: ${e.font.sans};
|
|
84
84
|
font-size: 40px;
|
|
@@ -89,13 +89,13 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
89
89
|
${e.media.maxWidth("mobile")} {
|
|
90
90
|
font-size: 32px;
|
|
91
91
|
}
|
|
92
|
-
`,
|
|
92
|
+
`,Ee=i.div`
|
|
93
93
|
display: flex;
|
|
94
94
|
flex-wrap: wrap;
|
|
95
95
|
align-items: center;
|
|
96
96
|
justify-content: center;
|
|
97
97
|
gap: 8px;
|
|
98
|
-
`,
|
|
98
|
+
`,Ie=i.p`
|
|
99
99
|
margin: 0;
|
|
100
100
|
font-family: ${e.font.sans};
|
|
101
101
|
font-size: 24px;
|
|
@@ -106,7 +106,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
106
106
|
${e.media.maxWidth("mobile")} {
|
|
107
107
|
font-size: 16px;
|
|
108
108
|
}
|
|
109
|
-
`,
|
|
109
|
+
`,We=i.button`
|
|
110
110
|
appearance: none;
|
|
111
111
|
padding: 0;
|
|
112
112
|
border: none;
|
|
@@ -140,7 +140,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
140
140
|
height: 18px;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
`,
|
|
143
|
+
`,Le=i.p`
|
|
144
144
|
margin: 0;
|
|
145
145
|
padding: 10px 16px;
|
|
146
146
|
border-radius: ${e.radius.btn};
|
|
@@ -150,7 +150,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
150
150
|
line-height: 1.6;
|
|
151
151
|
color: ${e.colors.media};
|
|
152
152
|
text-align: center;
|
|
153
|
-
`,
|
|
153
|
+
`,Y=i.div`
|
|
154
154
|
display: grid;
|
|
155
155
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
156
156
|
gap: 24px;
|
|
@@ -166,7 +166,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
166
166
|
gap: 12px;
|
|
167
167
|
row-gap: 24px;
|
|
168
168
|
}
|
|
169
|
-
`,
|
|
169
|
+
`,V=i.button`
|
|
170
170
|
position: relative;
|
|
171
171
|
display: flex;
|
|
172
172
|
flex-direction: column;
|
|
@@ -205,9 +205,9 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
205
205
|
inset: 0;
|
|
206
206
|
border-radius: inherit;
|
|
207
207
|
pointer-events: none;
|
|
208
|
-
-webkit-mask: ${
|
|
208
|
+
-webkit-mask: ${K};
|
|
209
209
|
-webkit-mask-composite: xor;
|
|
210
|
-
mask: ${
|
|
210
|
+
mask: ${K};
|
|
211
211
|
mask-composite: exclude;
|
|
212
212
|
transition: opacity 0.15s ease;
|
|
213
213
|
}
|
|
@@ -266,7 +266,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
266
266
|
padding: 8px;
|
|
267
267
|
border-radius: 16px;
|
|
268
268
|
}
|
|
269
|
-
`,
|
|
269
|
+
`,Ge=i.span`
|
|
270
270
|
position: absolute;
|
|
271
271
|
top: -18px;
|
|
272
272
|
left: 50%;
|
|
@@ -303,7 +303,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
303
303
|
height: 18px;
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
`,
|
|
306
|
+
`,X=i.span`
|
|
307
307
|
align-self: stretch;
|
|
308
308
|
display: flex;
|
|
309
309
|
flex-direction: column;
|
|
@@ -314,13 +314,13 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
314
314
|
${e.media.maxWidth("mobile")} {
|
|
315
315
|
padding-top: 24px;
|
|
316
316
|
}
|
|
317
|
-
`,
|
|
317
|
+
`,Z=i.span`
|
|
318
318
|
display: flex;
|
|
319
319
|
flex-direction: column;
|
|
320
320
|
align-items: center;
|
|
321
321
|
gap: 12px;
|
|
322
322
|
width: 100%;
|
|
323
|
-
`,
|
|
323
|
+
`,Me=i.span`
|
|
324
324
|
display: flex;
|
|
325
325
|
align-items: center;
|
|
326
326
|
gap: 8px;
|
|
@@ -337,7 +337,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
337
337
|
height: 24.81px;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
`,
|
|
340
|
+
`,Ue=i.span`
|
|
341
341
|
font-family: ${e.font.sans};
|
|
342
342
|
font-size: 40px;
|
|
343
343
|
font-weight: 800;
|
|
@@ -348,7 +348,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
348
348
|
font-size: 32px;
|
|
349
349
|
line-height: 24px;
|
|
350
350
|
}
|
|
351
|
-
`,
|
|
351
|
+
`,Ne=i.span`
|
|
352
352
|
font-family: ${e.font.sans};
|
|
353
353
|
font-size: 20px;
|
|
354
354
|
font-weight: 500;
|
|
@@ -389,7 +389,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
389
389
|
transform: none;
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
`,
|
|
392
|
+
`,Qe=i.span`
|
|
393
393
|
display: flex;
|
|
394
394
|
align-items: center;
|
|
395
395
|
justify-content: center;
|
|
@@ -434,11 +434,11 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
434
434
|
font-size: 16px;
|
|
435
435
|
font-weight: 800;
|
|
436
436
|
}
|
|
437
|
-
`,
|
|
437
|
+
`,De=F`
|
|
438
438
|
to {
|
|
439
439
|
background-position: -200% 0;
|
|
440
440
|
}
|
|
441
|
-
`,
|
|
441
|
+
`,A=i.span`
|
|
442
442
|
display: block;
|
|
443
443
|
background: linear-gradient(
|
|
444
444
|
100deg,
|
|
@@ -447,12 +447,12 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
447
447
|
rgba(255, 255, 255, 0.08) 70%
|
|
448
448
|
);
|
|
449
449
|
background-size: 200% 100%;
|
|
450
|
-
animation: ${
|
|
450
|
+
animation: ${De} 1.4s infinite linear;
|
|
451
451
|
|
|
452
452
|
@media (prefers-reduced-motion: reduce) {
|
|
453
453
|
animation: none;
|
|
454
454
|
}
|
|
455
|
-
`,
|
|
455
|
+
`,Oe=i(A)`
|
|
456
456
|
width: 60%;
|
|
457
457
|
height: 30px;
|
|
458
458
|
border-radius: ${e.radius.chip};
|
|
@@ -460,7 +460,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
460
460
|
${e.media.maxWidth("mobile")} {
|
|
461
461
|
height: 24px;
|
|
462
462
|
}
|
|
463
|
-
`,
|
|
463
|
+
`,Ke=i(A)`
|
|
464
464
|
width: 36%;
|
|
465
465
|
height: 15px;
|
|
466
466
|
border-radius: ${e.radius.chip};
|
|
@@ -468,19 +468,19 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
468
468
|
${e.media.maxWidth("mobile")} {
|
|
469
469
|
height: 12px;
|
|
470
470
|
}
|
|
471
|
-
`,
|
|
471
|
+
`,Ye=i(A)`
|
|
472
472
|
width: 70%;
|
|
473
473
|
aspect-ratio: 1;
|
|
474
474
|
border-radius: 16px;
|
|
475
|
-
`,
|
|
475
|
+
`,Ve=i(A)`
|
|
476
476
|
width: 100%;
|
|
477
477
|
height: 48px;
|
|
478
478
|
border-radius: ${e.radius.card};
|
|
479
|
-
|
|
479
|
+
`;i.p`
|
|
480
480
|
margin: 0;
|
|
481
481
|
font-family: ${e.font.sans};
|
|
482
482
|
color: ${e.colors.muted};
|
|
483
|
-
|
|
483
|
+
`;const Xe=i.div`
|
|
484
484
|
position: absolute;
|
|
485
485
|
inset: 0;
|
|
486
486
|
z-index: 1;
|
|
@@ -491,13 +491,13 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
491
491
|
gap: 24px;
|
|
492
492
|
padding: 24px;
|
|
493
493
|
text-align: center;
|
|
494
|
-
`,
|
|
494
|
+
`,Ze=i.p`
|
|
495
495
|
margin: 0;
|
|
496
496
|
font-family: ${e.font.sans};
|
|
497
497
|
font-size: 16px;
|
|
498
498
|
line-height: 1.4;
|
|
499
499
|
color: rgba(255, 255, 255, 0.88);
|
|
500
|
-
`,
|
|
500
|
+
`,Je=F`
|
|
501
501
|
0%, 100% {
|
|
502
502
|
transform: scale(1);
|
|
503
503
|
opacity: 1;
|
|
@@ -506,7 +506,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
506
506
|
transform: scale(0.88);
|
|
507
507
|
opacity: 0.7;
|
|
508
508
|
}
|
|
509
|
-
`,
|
|
509
|
+
`,et=i.div`
|
|
510
510
|
display: flex;
|
|
511
511
|
flex-direction: column;
|
|
512
512
|
align-items: center;
|
|
@@ -517,20 +517,20 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
517
517
|
`,oe=i.img`
|
|
518
518
|
width: 61px;
|
|
519
519
|
height: 61px;
|
|
520
|
-
animation: ${
|
|
520
|
+
animation: ${Je} 1.2s ease-in-out infinite;
|
|
521
521
|
|
|
522
522
|
@media (prefers-reduced-motion: reduce) {
|
|
523
523
|
animation: none;
|
|
524
524
|
}
|
|
525
|
-
`,
|
|
525
|
+
`,tt=i(oe)`
|
|
526
526
|
width: 72px;
|
|
527
527
|
height: 72px;
|
|
528
|
-
`,
|
|
528
|
+
`,it=i.div`
|
|
529
529
|
display: flex;
|
|
530
530
|
flex-direction: column;
|
|
531
531
|
align-items: center;
|
|
532
532
|
gap: 8px;
|
|
533
|
-
`,
|
|
533
|
+
`,rt=i.p`
|
|
534
534
|
margin: 0;
|
|
535
535
|
font-family: ${e.font.sans};
|
|
536
536
|
font-size: 20px;
|
|
@@ -540,18 +540,18 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
540
540
|
strong {
|
|
541
541
|
font-weight: 700;
|
|
542
542
|
}
|
|
543
|
-
`,
|
|
543
|
+
`,nt=i.div`
|
|
544
544
|
display: flex;
|
|
545
545
|
align-items: center;
|
|
546
546
|
gap: 8px;
|
|
547
|
-
`,
|
|
547
|
+
`,ot=F`
|
|
548
548
|
0% {
|
|
549
549
|
left: -40%;
|
|
550
550
|
}
|
|
551
551
|
100% {
|
|
552
552
|
left: 100%;
|
|
553
553
|
}
|
|
554
|
-
`,
|
|
554
|
+
`,st=i.span`
|
|
555
555
|
position: relative;
|
|
556
556
|
width: 456px;
|
|
557
557
|
max-width: 60vw;
|
|
@@ -559,7 +559,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
559
559
|
border-radius: ${e.radius.pill};
|
|
560
560
|
background: ${e.colors.chip};
|
|
561
561
|
overflow: hidden;
|
|
562
|
-
`,
|
|
562
|
+
`,at=i.span`
|
|
563
563
|
position: absolute;
|
|
564
564
|
top: 0;
|
|
565
565
|
left: -40%;
|
|
@@ -567,19 +567,19 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
567
567
|
height: 100%;
|
|
568
568
|
border-radius: ${e.radius.pill};
|
|
569
569
|
background: ${e.gradients.amethyst};
|
|
570
|
-
animation: ${
|
|
570
|
+
animation: ${ot} 1.4s ease-in-out infinite;
|
|
571
571
|
|
|
572
572
|
@media (prefers-reduced-motion: reduce) {
|
|
573
573
|
left: 0;
|
|
574
574
|
width: 30%;
|
|
575
575
|
animation: none;
|
|
576
576
|
}
|
|
577
|
-
`,
|
|
577
|
+
`,dt=i.span`
|
|
578
578
|
font-family: ${e.font.sans};
|
|
579
579
|
font-size: 16px;
|
|
580
580
|
line-height: 22px;
|
|
581
581
|
color: ${e.colors.text2};
|
|
582
|
-
`,
|
|
582
|
+
`,ct=i.div`
|
|
583
583
|
/* Its own stacking context, so the confetti layer (z-index: -1) lands BEHIND this content instead of
|
|
584
584
|
escaping past it and hiding behind the page background. z-index is inert without a position, so both
|
|
585
585
|
are required — same arrangement Success.styles' Root uses for the item-purchase burst. */
|
|
@@ -590,7 +590,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
590
590
|
gap: 12px;
|
|
591
591
|
max-width: 895px;
|
|
592
592
|
margin: 0 auto;
|
|
593
|
-
`,
|
|
593
|
+
`,lt=i.div`
|
|
594
594
|
display: flex;
|
|
595
595
|
align-items: center;
|
|
596
596
|
gap: 16px;
|
|
@@ -603,11 +603,11 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
603
603
|
flex-direction: column;
|
|
604
604
|
text-align: center;
|
|
605
605
|
}
|
|
606
|
-
`,
|
|
606
|
+
`,pt=i.img`
|
|
607
607
|
flex: none;
|
|
608
608
|
width: 60px;
|
|
609
609
|
height: 60px;
|
|
610
|
-
`,
|
|
610
|
+
`,ht=i.p`
|
|
611
611
|
flex: 1;
|
|
612
612
|
margin: 0;
|
|
613
613
|
font-family: ${e.font.sans};
|
|
@@ -619,12 +619,12 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
619
619
|
strong {
|
|
620
620
|
font-weight: 700;
|
|
621
621
|
}
|
|
622
|
-
`,
|
|
622
|
+
`,xt=i.div`
|
|
623
623
|
padding: 24px;
|
|
624
624
|
border-radius: 16px;
|
|
625
625
|
background: ${e.colors.white};
|
|
626
626
|
border: 1px solid ${e.colors.gray4};
|
|
627
|
-
`,
|
|
627
|
+
`,ut=i.div`
|
|
628
628
|
position: relative;
|
|
629
629
|
display: flex;
|
|
630
630
|
align-items: center;
|
|
@@ -648,7 +648,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
648
648
|
gap: 10px;
|
|
649
649
|
padding: 120px 16px 16px;
|
|
650
650
|
}
|
|
651
|
-
`,
|
|
651
|
+
`,gt=i.img`
|
|
652
652
|
position: absolute;
|
|
653
653
|
left: 35px;
|
|
654
654
|
top: 50%;
|
|
@@ -662,7 +662,7 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
662
662
|
top: 16px;
|
|
663
663
|
transform: translateX(-50%);
|
|
664
664
|
}
|
|
665
|
-
`,
|
|
665
|
+
`,ft=i.p`
|
|
666
666
|
display: inline-flex;
|
|
667
667
|
align-items: center;
|
|
668
668
|
gap: 8px;
|
|
@@ -675,14 +675,14 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
675
675
|
height: 30px;
|
|
676
676
|
color: ${e.colors.text};
|
|
677
677
|
}
|
|
678
|
-
`,
|
|
678
|
+
`,mt=i.strong`
|
|
679
679
|
font-size: 24px;
|
|
680
680
|
font-weight: 700;
|
|
681
681
|
text-transform: capitalize;
|
|
682
|
-
`,
|
|
682
|
+
`,bt=i.span`
|
|
683
683
|
font-size: 14px;
|
|
684
684
|
font-weight: 400;
|
|
685
|
-
`,
|
|
685
|
+
`,wt=i.div`
|
|
686
686
|
display: flex;
|
|
687
687
|
gap: 12px;
|
|
688
688
|
|
|
@@ -722,11 +722,23 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
722
722
|
background: rgba(105, 31, 169, 0.06);
|
|
723
723
|
filter: none;
|
|
724
724
|
}
|
|
725
|
+
/* The buy gradient, same primary fill the rest of the shop's terminal CTAs carry. */
|
|
726
|
+
&[data-variant='ruby'] {
|
|
727
|
+
background: ${e.gradients.buyBtn};
|
|
728
|
+
color: ${e.colors.white};
|
|
729
|
+
}
|
|
725
730
|
&:focus-visible {
|
|
726
731
|
outline: 2px solid ${e.colors.accent};
|
|
727
732
|
outline-offset: 2px;
|
|
728
733
|
}
|
|
729
|
-
`,
|
|
734
|
+
`,J=i.section`
|
|
735
|
+
display: flex;
|
|
736
|
+
flex-direction: column;
|
|
737
|
+
align-items: center;
|
|
738
|
+
justify-content: center;
|
|
739
|
+
min-height: min(62vh, 620px);
|
|
740
|
+
padding: 48px 16px;
|
|
741
|
+
`,yt=i.div`
|
|
730
742
|
display: flex;
|
|
731
743
|
flex-direction: column;
|
|
732
744
|
align-items: center;
|
|
@@ -735,7 +747,48 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
735
747
|
margin: 0 auto;
|
|
736
748
|
padding: 48px 24px;
|
|
737
749
|
text-align: center;
|
|
738
|
-
`,
|
|
750
|
+
`,kt=i.div`
|
|
751
|
+
display: flex;
|
|
752
|
+
flex-direction: column;
|
|
753
|
+
width: 100%;
|
|
754
|
+
max-width: 895px;
|
|
755
|
+
border-radius: 16px;
|
|
756
|
+
background: ${e.colors.white};
|
|
757
|
+
overflow: hidden;
|
|
758
|
+
`,vt=i.div`
|
|
759
|
+
display: flex;
|
|
760
|
+
align-items: center;
|
|
761
|
+
justify-content: center;
|
|
762
|
+
gap: 12px;
|
|
763
|
+
padding: 20px 24px;
|
|
764
|
+
border-bottom: 1px solid ${e.colors.gray4};
|
|
765
|
+
`,Ct=i.img`
|
|
766
|
+
flex: none;
|
|
767
|
+
width: 32px;
|
|
768
|
+
height: 32px;
|
|
769
|
+
`,$t=i.p`
|
|
770
|
+
margin: 0;
|
|
771
|
+
font-family: ${e.font.sans};
|
|
772
|
+
font-size: 20px;
|
|
773
|
+
font-weight: 700;
|
|
774
|
+
color: ${e.colors.text};
|
|
775
|
+
`,jt=i.p`
|
|
776
|
+
margin: 0;
|
|
777
|
+
padding: 24px;
|
|
778
|
+
font-family: ${e.font.sans};
|
|
779
|
+
font-size: 16px;
|
|
780
|
+
line-height: 1.4;
|
|
781
|
+
text-align: center;
|
|
782
|
+
color: ${e.colors.text};
|
|
783
|
+
`,St=i.div`
|
|
784
|
+
display: flex;
|
|
785
|
+
gap: 12px;
|
|
786
|
+
padding: 0 16px 16px;
|
|
787
|
+
|
|
788
|
+
@media (max-width: 560px) {
|
|
789
|
+
flex-direction: column;
|
|
790
|
+
}
|
|
791
|
+
`,Pt=i.p`
|
|
739
792
|
margin: 0;
|
|
740
793
|
font-family: ${e.font.sans};
|
|
741
794
|
font-size: 20px;
|
|
@@ -745,12 +798,12 @@ import{b as ue,u as xe,r as l,j as t}from"./react-BYHuwl8r.js";import{s as i,t a
|
|
|
745
798
|
&[data-tone='error'] {
|
|
746
799
|
color: ${e.colors.err};
|
|
747
800
|
}
|
|
748
|
-
`,
|
|
801
|
+
`,At=i.div`
|
|
749
802
|
display: flex;
|
|
750
803
|
gap: 12px;
|
|
751
804
|
margin-top: 16px;
|
|
752
|
-
`,
|
|
805
|
+
`,Tt=i.p`
|
|
753
806
|
margin: 0;
|
|
754
807
|
font-family: ${e.font.sans};
|
|
755
808
|
color: ${e.colors.err};
|
|
756
|
-
`,C=
|
|
809
|
+
`,C=Se()?"mock":"stripe",ee=[P,P,re,ne],Rt={pack_5:P,pack_10:P,pack_25:re,pack_50:ne};function se(d,o){return Rt[d.id]??ee[o%ee.length]}function zt(d,o){return d.artUrl??se(d,o)}const _t=[{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 te(d){const o=d;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:h.name}):f.includes("timed out")?n("getCredits.errorTimeout",{currency:h.name}):n("getCredits.errorGeneric")}function Ht(){var L;ue({title:n("nav.getCredits",{currency:h.name}),noindex:!0});const d=he(),{session:o,signIn:f}=ge(),s=fe(),[m,b]=xe(),{packs:$,isLoading:y}=ve(),[x,p]=l.useState("select"),[c,q]=l.useState(null),[j,E]=l.useState(null),ae=(j!=null?(L=$.find(r=>r.credits===j))==null?void 0:L.artUrl:void 0)??Ae,[de,k]=l.useState(null),[ce,T]=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 a=new URLSearchParams(r);return a.delete("order"),a.delete("canceled"),a},{replace:!0})},[b]),z=l.useCallback(async r=>{p("processing");const a=new AbortController;R.current=a;try{const u=await Ce(r,{signal:a.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;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}),s.invalidateQueries({queryKey:["usd-balance"]});try{if(sessionStorage.getItem($e)){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 G=JSON.parse(S),M=me(G);if(M){d(M,{state:{item:G,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"]}),p("pending")):(g("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(c==null?void 0:c.usd)??null}),k(u.error??n("getCredits.errorGrant",{currency:h.name})),p("error"))}catch(u){U(u,{flow:"get_credits",step:"grant",order_id:r}),g("Shop Buy Credits Failed",{step:"grant",error_code:N(u),pack_usd:(c==null?void 0:c.usd)??null}),k(te(u)),p("error")}},[c,o,s,d]),le=l.useCallback(async r=>{if(!o){f();return}k(null),T(!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 je(r.id,{address:o.address,identity:o.identity});if(a.mock)z(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(te(a)),p("error")}},[o,f,z]),_=l.useRef(!1),W=l.useRef(null);l.useEffect(()=>{if(_.current)return;const r=m.get("order");if(m.get("canceled")!=null){_.current=!0,g("Shop Buy Credits Cancelled",{order_id:r,provider:C}),r&&o&&be(r,o.identity),I(),T(!0),p("select");return}r&&(p("processing"),o&&(_.current=!0,I(),z(r)))},[m,o]);function B(){var r;(r=R.current)==null||r.abort(),p("select"),q(null),E(null),k(null),T(!1)}function pe(){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(Te,{children:[(x==="select"||x==="redirecting")&&t.jsxs(t.Fragment,{children:[t.jsx(Re,{"data-testid":"credits-hero",children:t.jsxs(ze,{children:[t.jsxs(Be,{$hidden:x==="redirecting",children:[t.jsxs(Fe,{children:[t.jsx(qe,{children:n("getCredits.title")}),t.jsxs(Ee,{children:[t.jsx(Ie,{children:n("getCredits.subtitle")}),t.jsx(We,{type:"button",onClick:pe,"data-testid":"credits-learn-more",children:n("getCredits.learnMore")})]})]}),ce&&t.jsx(Le,{role:"status",children:n("getCredits.canceledNote")}),t.jsx(Bt,{packs:$,loading:y,onSelect:r=>void le(r)})]}),x==="redirecting"&&t.jsxs(Xe,{role:"status","aria-live":"polite",children:[t.jsx(tt,{src:H,alt:"",width:72,height:72}),t.jsx(Ze,{children:n("getCredits.redirecting")})]})]})}),t.jsx(_e,{ref:W,tabIndex:-1,"data-testid":"credits-faq",children:t.jsx(ke,{title:"faq.title",entries:_t,tone:"on-dark"})})]}),x==="processing"&&t.jsxs(et,{role:"status","aria-live":"polite",children:[t.jsx(oe,{src:H,alt:"",width:61,height:61}),t.jsxs(it,{children:[t.jsxs(rt,{children:[t.jsx("strong",{children:n("getCredits.processing")}),"…"]}),t.jsxs(nt,{"aria-hidden":!0,children:[t.jsx(st,{children:t.jsx(at,{})}),t.jsx(dt,{children:"1/1"})]})]})]}),x==="success"&&t.jsx(J,{children:t.jsxs(ct,{role:"status","aria-live":"polite",children:[t.jsx(ye,{}),t.jsxs(lt,{children:[t.jsx(pt,{src:O,alt:"",width:60,height:60}),t.jsxs(ht,{children:[t.jsx("strong",{children:n("getCredits.successTitle")})," ",n("getCredits.successBody",{currency:h.name})]})]}),j!=null&&t.jsx(xt,{children:t.jsxs(ut,{children:[t.jsx(gt,{src:ae,alt:"",width:93,height:93}),t.jsxs(ft,{children:[t.jsx(ie,{}),t.jsxs("span",{children:[t.jsx(mt,{children:n("getCredits.creditsAmount",{credits:j,currency:h.name})})," ",t.jsx(bt,{children:n("getCredits.creditsAdded")})]})]})]})}),t.jsxs(wt,{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")})]})]})}),x==="pending"&&t.jsx(J,{children:t.jsxs(kt,{role:"status","aria-live":"polite","data-testid":"credits-pending",children:[t.jsxs(vt,{children:[t.jsx(Ct,{src:O,alt:"",width:32,height:32}),t.jsx($t,{children:n("getCredits.pendingTitle",{currency:h.name})})]}),t.jsx(jt,{children:n("getCredits.pendingBody")}),t.jsxs(St,{children:[t.jsx(v,{"data-variant":"outline",onClick:()=>d("/items"),children:n("getCredits.goShopping")}),t.jsx(v,{"data-variant":"ruby",onClick:B,children:n("getCredits.gotIt")})]})]})}),x==="error"&&t.jsxs(yt,{role:"alert",children:[t.jsx(Pt,{"data-tone":"error",children:n("getCredits.errorTitle")}),t.jsx(Tt,{children:de}),t.jsx(At,{children:t.jsx(v,{onClick:B,children:n("getCredits.tryAgain")})})]})]})}function Bt({packs:d,loading:o,onSelect:f}){return o?t.jsx(Y,{"aria-busy":"true","aria-label":n("getCredits.packsLoading",{currency:h.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(X,{children:[t.jsxs(Z,{children:[t.jsx(Oe,{}),t.jsx(Ke,{})]}),t.jsx(Ye,{})]}),t.jsx(Ve,{})]},s))}):t.jsx(Y,{children:d.map((s,m)=>{const b=Pe(s,d);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:Q(s.credits),usd:s.usd,bonus:b.bonus,baseline:b.baseline}):n("getCredits.packAria",{amount:Q(s.credits),usd:s.usd}),children:[s.bestValue&&t.jsxs(Ge,{children:[t.jsx(we,{name:"star-rounded"}),n("getCredits.packBadge")]}),t.jsxs(X,{children:[t.jsxs(Z,{children:[t.jsxs(Me,{children:[t.jsx(ie,{}),t.jsx(Ue,{children:s.credits})]}),t.jsx(Ne,{children:n("getCredits.packUnit",{currency:h.name})})]}),t.jsx(He,{children:t.jsx("img",{src:zt(s,m),alt:"",loading:"lazy",width:507,height:507,onError:$=>{const y=$.currentTarget;y.dataset.artFallback||(y.dataset.artFallback="done",y.src=se(s,m))}})})]}),t.jsxs(Qe,{children:["$",s.usd.toFixed(2)]})]},s.id)})})}export{Ht as GetCredits,Ht as default};
|