@dcl/shop 1.3.1-31191620721.commit-720133f → 1.3.1-31191682385.commit-b61dc4f
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-B_l3S0lb.js} +3 -3
- package/_assets/{AnimatedBackground-1gk7Tb_5.js → AnimatedBackground-DuhJWXI1.js} +1 -1
- package/_assets/{Assets-inqUytf_.js → Assets-CNlA1oFv.js} +5 -5
- package/_assets/{Assets.styles-CLQKfUGn.js → Assets.styles-o3ITauMT.js} +1 -1
- package/_assets/{Authorizations-D-evM_QJ.js → Authorizations-BeBMjIyB.js} +1 -1
- package/_assets/{Cart-C9zn36Vt.js → Cart-CD2lfleM.js} +1 -1
- package/_assets/{CircularProgress-A5aHIFTM.js → CircularProgress-dn_FyOER.js} +1 -1
- package/_assets/{Collection-BkS4RGzJ.js → Collection-C7R_FzbK.js} +1 -1
- package/_assets/{CollectionCarousel-BR7iuprt.js → CollectionCarousel-CT9bwSTH.js} +126 -84
- package/_assets/{Confetti-DqCpqSGh.js → Confetti-CoP5-e4k.js} +1 -1
- package/_assets/{Creator-DdbvRhiH.js → Creator-UajhgRZS.js} +1 -1
- package/_assets/{ErrorNotice-ZO3VddUA.js → ErrorNotice-C0G5qWzo.js} +1 -1
- package/_assets/{ExchangeController-DukmAekv.js → ExchangeController-COvuIfdo.js} +1 -1
- package/_assets/{Faq-CZP7_2cD.js → Faq-DNITaJGZ.js} +1 -1
- package/_assets/{GetCredits-MGdIwIFh.js → GetCredits-BXA3_C5P.js} +1 -1
- package/_assets/{Grow-DpPpV3nQ.js → Grow-BQjry54P.js} +1 -1
- package/_assets/{HelpersUtil-DF0OmzDm.js → HelpersUtil-DOHD_0p5.js} +1 -1
- package/_assets/{ItemDetail-CFBZLMJU.js → ItemDetail-BShi_a0Y.js} +2 -2
- package/_assets/LazyEmoteControls-AphOuHQz.js +2 -0
- package/_assets/{LoadMore-CQIEBXEe.js → LoadMore-CuEUCjRg.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-BL6Fe7uT.js → ManaPricingBanner.styles-COkmJnom.js} +1 -1
- package/_assets/{MyAssets-jUHoolRc.js → MyAssets-Bi6l3K4d.js} +2 -2
- package/_assets/{MyFavorites-Cz0Ab5C3.js → MyFavorites-WgTcR_lz.js} +1 -1
- package/_assets/{NotFound-C3E5SE63.js → NotFound-D311dCZJ.js} +1 -1
- package/_assets/{NotificationsBell-DwoBklTb.js → NotificationsBell-CY3CW4C6.js} +1 -1
- package/_assets/{OutfitDetail-CvBkv60C.js → OutfitDetail-DqGwmKsm.js} +1 -1
- package/_assets/{OutfitPreview-CBQqwJ67.js → OutfitPreview-FeO3-fef.js} +1 -1
- package/_assets/{OutfitStudio-a65hPBij.js → OutfitStudio-CUGqRP3F.js} +1 -1
- package/_assets/{StoreSettings-Dxk9HXHu.js → StoreSettings-kjlaWUnu.js} +1 -1
- package/_assets/{Success-tDKzwkOC.js → Success-C5FXjcLJ.js} +1 -1
- package/_assets/{SwapController-BqD3xiuU.js → SwapController-DzdK5g3n.js} +1 -1
- package/_assets/{Tooltip-CvreJNab.js → Tooltip-CaglQe4p.js} +1 -1
- package/_assets/{TradeService-BzK-QMtc.js → TradeService-C51CBXXB.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-CXX6NkJL.js → W3MFrameProviderSingleton-DdqmAkVg.js} +3 -3
- package/_assets/{WebCryptoP256-Dszr90Pd.js → WebCryptoP256-B8NxfggH.js} +1 -1
- package/_assets/{authorizations-tHY3fIO5.js → authorizations-C2XcFris.js} +1 -1
- package/_assets/{basic-CzQlZy6T.js → basic-COmTei_A.js} +1 -1
- package/_assets/{biconomy-C9DVv0MO.js → biconomy-DTOnLn-e.js} +1 -1
- package/_assets/{builder-BkVXiD6h.js → builder-CZT_aNgl.js} +1 -1
- package/_assets/{buy-D15s0U5R.js → buy-D2J4xdFU.js} +1 -1
- package/_assets/{buy-gasless-DmLq_ESf.js → buy-gasless-DXZhAZul.js} +1 -1
- package/_assets/{categories-gDlRucVv.js → categories-CXp3c1O6.js} +1 -1
- package/_assets/{ccip-Dzc99LwL.js → ccip-ssHPmWgf.js} +1 -1
- package/_assets/{ccip-bGy4ERXT.js → ccip-u9aTnVSi.js} +1 -1
- package/_assets/{collectionPage.styles-C4IUHz6N.js → collectionPage.styles-BYlcGAC5.js} +6 -6
- package/_assets/{controller-bNuDj-sG.js → controller-BAQ7MSIz.js} +2 -2
- package/_assets/{core-z3Fmal0m.js → core-Bj6TGGmC.js} +4 -4
- package/_assets/{createSvgIcon-BsbTxAyP.js → createSvgIcon-C_ptnlwI.js} +1 -1
- package/_assets/{custom-D0pEXNMH.js → custom-DhZeTGx9.js} +1 -1
- package/_assets/{data-capture-Dip44U7J.js → data-capture-Bw9VfiIX.js} +1 -1
- package/_assets/{email-BuVFjeyS.js → email-aYs6NJG4.js} +1 -1
- package/_assets/{embedded-wallet-BW8sqIAA.js → embedded-wallet-Du89blmt.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-W2WZr0Ft.js → emotion-styled.browser.esm-7iI5MQ9s.js} +1 -1
- package/_assets/{engine-BmnT6CfB.js → engine-CDmunHUA.js} +1 -1
- package/_assets/{errors-QU1ZKsgr.js → errors-CwhExOnR.js} +1 -1
- package/_assets/{estimate-l1-fee-GYuqvmRU.js → estimate-l1-fee-DGEo-qa8.js} +1 -1
- package/_assets/{execute-BVzDLJKt.js → execute-DEAHKtIX.js} +2 -2
- package/_assets/{features-xcuE2K-G.js → features-BBwgk4Ks.js} +1 -1
- package/_assets/{fetchTokenMetadata-D-cGrRJi.js → fetchTokenMetadata-41ucP_Gs.js} +2 -2
- package/_assets/{field.styles-D166p6oG.js → field.styles-CMTqm8XT.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-BjfLkiDk.js → get-ecosystem-wallet-info-DPKRmY8M.js} +1 -1
- package/_assets/{getBalance-CvIYNcSa.js → getBalance-Dif8tIk4.js} +1 -1
- package/_assets/{getNFT-KdIpONGr.js → getNFT-1pTPryrB.js} +1 -1
- package/_assets/{getNFT-BHwsrgSu.js → getNFT-tQYuD-0f.js} +1 -1
- package/_assets/{grid.styles-BCyzN-Pc.js → grid.styles-BCdYXc8S.js} +1 -1
- package/_assets/{hashTypedData-DOa1wxQA.js → hashTypedData-BMPizOCT.js} +1 -1
- package/_assets/{hashTypedData-dAuA3uO1.js → hashTypedData-DOSmOliP.js} +1 -1
- package/_assets/{in-app-Vkd-5Wa3.js → in-app-2oBOulp3.js} +1 -1
- package/_assets/{in-app-wallet-calls-CdJklwgr.js → in-app-wallet-calls-BmiOqy8w.js} +1 -1
- package/_assets/{index-BnoUb6oZ.js → index-0ae65IXz.js} +1 -1
- package/_assets/{index-C0C-mFEA.js → index-3Ft7vVmQ.js} +1 -1
- package/_assets/{index-DA9zyrHQ.js → index-5HC5J6x-.js} +1 -1
- package/_assets/{index-Vpo54xYi.js → index-B6B1fvIc.js} +1 -1
- package/_assets/{index-C1B0Gkbl.js → index-BMRilxGK.js} +2 -2
- package/_assets/{index-BusO331-.js → index-BNahBa6g.js} +1 -1
- package/_assets/{index-48RRNXVh.js → index-BRZIBb8-.js} +1 -1
- package/_assets/{index-CIH4mDH4.js → index-BSBtzqEU.js} +2 -2
- package/_assets/{index-DBG7zV9T.js → index-B_6nZxVq.js} +1 -1
- package/_assets/{index-C6MIgQz4.js → index-Bp2qDqMJ.js} +1 -1
- package/_assets/{index-Dyxgs6tH.js → index-BpUokvwW.js} +1 -1
- package/_assets/{index-lzXNQebE.js → index-BpZWPGJy.js} +1 -1
- package/_assets/{index-WqT-VMXi.js → index-BsgxGadm.js} +1 -1
- package/_assets/{index-B-SZ4oKw.js → index-BzgyB7Vj.js} +1 -1
- package/_assets/{index-BIPY6esA.js → index-C-B_kVJr.js} +1 -1
- package/_assets/{index-DBwWJ13U.js → index-C6zFjlGI.js} +1 -1
- package/_assets/{index-Bxe28Q3l.js → index-CBvsGOvJ.js} +1 -1
- package/_assets/{index-DjQVPpbt.js → index-CFCyEG1i.js} +1 -1
- package/_assets/{index-BC0P8UDZ.js → index-CHFZviOg.js} +1 -1
- package/_assets/{index-jBILDCGu.js → index-COCflAYI.js} +1 -1
- package/_assets/{index-BcClhtlx.js → index-CTxcIBLf.js} +2 -2
- package/_assets/{index-C4PfxjwS.js → index-CVV5XjqI.js} +1 -1
- package/_assets/{index-CsJapBAz.js → index-Cfmxj1CQ.js} +1 -1
- package/_assets/{index-Brlax_z3.js → index-Cm--i_zM.js} +1 -1
- package/_assets/{index-YO9YHqy5.js → index-CtrfnjYH.js} +1 -1
- package/_assets/{index-BooiKZ4y.js → index-D2xwx2CV.js} +1 -1
- package/_assets/{index-5LEllUgg.js → index-D8Zy3Mui.js} +1 -1
- package/_assets/{index-BG5saEE6.js → index-DCg5FbqY.js} +11 -11
- package/_assets/{index-CjgJGKFm.js → index-DDrhThY2.js} +1 -1
- package/_assets/{index-VNMDwvJZ.js → index-DEWNRs55.js} +1 -1
- package/_assets/{index-BzDEKkhm.js → index-DLWcfhTU.js} +1 -1
- package/_assets/{index-joI_e-qB.js → index-DNcWD6cz.js} +1 -1
- package/_assets/{index-CiyuHW1D.js → index-DOtw2cqV.js} +1 -1
- package/_assets/{index-khD6dteL.js → index-DP241JAT.js} +1 -1
- package/_assets/{index-hdxRUFOH.js → index-DRu-ezMP.js} +1 -1
- package/_assets/{index-wqmFpJCC.js → index-DX7iu41C.js} +1 -1
- package/_assets/{index-BV-dSC8Q.js → index-DXilYAje.js} +3 -3
- package/_assets/{index-DVTAk_4l.js → index-DYHFtYOn.js} +3 -3
- package/_assets/{index-C2Dmw2y2.js → index-DYZyT8y3.js} +1 -1
- package/_assets/{index-D4GsidCb.js → index-DfZraWfH.js} +3 -3
- package/_assets/{index-Ct39zsAv.js → index-DnVShTJI.js} +1 -1
- package/_assets/{index-Dh3h6qwJ.js → index-Dvio79mx.js} +1 -1
- package/_assets/{index-CjplTBs8.js → index-DxKBR2sg.js} +1 -1
- package/_assets/{index-DZJGA9sn.js → index-DxYGR_bb.js} +1 -1
- package/_assets/{index-BSE_jyBb.js → index-GPDV8KQf.js} +1 -1
- package/_assets/{index-LYRoqykZ.js → index-LTLbqlJU.js} +1 -1
- package/_assets/{index-DgK1L9o3.js → index-XJWjntsX.js} +1 -1
- package/_assets/{index-D_9hGXGo.js → index-_RYmCLAc.js} +1 -1
- package/_assets/{index-CubHbtST.js → index-bt66cjbg.js} +1 -1
- package/_assets/{index-CV0k525o.js → index-c5p2VvDH.js} +1 -1
- package/_assets/{index-BtKeAS4U.js → index-lD6G-yto.js} +1 -1
- package/_assets/{index-Ca-3H4tc.js → index-m_DrAs2i.js} +1 -1
- package/_assets/{index.es-TB6Pdbr6.js → index.es-BnqQlFOf.js} +4 -4
- package/_assets/{index.es-DMyaDgPn.js → index.es-CMfocea_.js} +1 -1
- package/_assets/{index.es-s8ulJ0vH.js → index.es-Cb8F3w9N.js} +1 -1
- package/_assets/{localBatchGatewayRequest-Cb2OUlxF.js → localBatchGatewayRequest-CwW-ScCx.js} +1 -1
- package/_assets/{networks-DP5N-9q0.js → networks-BvK4lGLf.js} +1 -1
- package/_assets/{onramp-D_IiF06P.js → onramp-CRjoHhS6.js} +1 -1
- package/_assets/{openzeppelin-DQb0B1gc.js → openzeppelin-BDFPE10K.js} +1 -1
- package/_assets/{parseNft-BXnxR2DY.js → parseNft-DLw7HgEB.js} +2 -2
- package/_assets/{parseSignature-BHwvxKmK.js → parseSignature-BJFS2vrb.js} +3 -3
- package/_assets/{parseSignature-D6PfB-m3.js → parseSignature-OebhNeeq.js} +1 -1
- package/_assets/{passkeys-B3PSpp8R.js → passkeys-BsE9CTNy.js} +1 -1
- package/_assets/{pay-with-exchange-DclkyJuD.js → pay-with-exchange-0sZ81P6g.js} +1 -1
- package/_assets/{qr-overlay-mE8cLXwy.js → qr-overlay-CACiZH9n.js} +1 -1
- package/_assets/{receive--vr3pkwu.js → receive-BcCNfRAG.js} +1 -1
- package/_assets/{resolveImplementation-CkV0Br2Q.js → resolveImplementation-rkIwivs2.js} +1 -1
- package/_assets/{rpc-Bo8dCOeA.js → rpc-BJGVKdu_.js} +1 -1
- package/_assets/{secp256k1-BemYjp6e.js → secp256k1-ByR_y_KV.js} +1 -1
- package/_assets/{secp256k1-CoJWrMaq.js → secp256k1-_NPe3_tk.js} +1 -1
- package/_assets/{secp256k1-D_IXzkrW.js → secp256k1-ookzyCJq.js} +1 -1
- package/_assets/{send-batch-transaction-Dmmn7XYZ.js → send-batch-transaction-2_uU6Kxp.js} +1 -1
- package/_assets/{send-eip712-transaction-Blu7_doG.js → send-eip712-transaction-B2ALeJg8.js} +2 -2
- package/_assets/{send-gasless-transaction-BQqBwT8Q.js → send-gasless-transaction-DUCO4VkA.js} +2 -2
- package/_assets/{send-psiY7VdC.js → send-qTCae84e.js} +1 -1
- package/_assets/{send-transaction-Ry2e-C1a.js → send-transaction-DwmC6GHr.js} +2 -2
- package/_assets/{sendMetaTransaction-Dk8-17lF.js → sendMetaTransaction-Bs_mS_PM.js} +1 -1
- package/_assets/{sendRawTransaction-CR95nEOD.js → sendRawTransaction-DMyeSj-O.js} +3 -3
- package/_assets/{serializeTransaction-C8fOu7Uj.js → serializeTransaction-B46ekkRO.js} +1 -1
- package/_assets/{session-proposal-CfcD16EU.js → session-proposal-CihthfGj.js} +1 -1
- package/_assets/{session-request-Btflur8z.js → session-request-ChY_zmtp.js} +2 -2
- package/_assets/{signing-RYCivcYo.js → signing-DnzPp1LH.js} +3 -3
- package/_assets/{skeleton.styles-CV7fqHt3.js → skeleton.styles-DLM-pTFu.js} +1 -1
- package/_assets/{socials-i3gKdi6C.js → socials-iSUyLEuO.js} +1 -1
- package/_assets/{styled-DgOOcess.js → styled-BTQUnOe9.js} +1 -1
- package/_assets/{swaps-D-dNMnWG.js → swaps-DG1CYsom.js} +1 -1
- package/_assets/{thirdweb-RwyfzX2g.js → thirdweb-B9Hwq14j.js} +3 -3
- package/_assets/{to-serializable-transaction-B0dWSkXr.js → to-serializable-transaction-DCVAO4ip.js} +2 -2
- package/_assets/{transactionReceipt-B7m8-bO3.js → transactionReceipt-B_0bvfKE.js} +1 -1
- package/_assets/{transactions-DgH8v_XM.js → transactions-Czd1wrXY.js} +1 -1
- package/_assets/{useCreditPacks-vgB1sZNv.js → useCreditPacks-HpuBP-AH.js} +1 -1
- package/_assets/{useImportable-Dyukx66c.js → useImportable-CpMEruPm.js} +1 -1
- package/_assets/{useInfiniteGrid-CPmv8ezG.js → useInfiniteGrid-C2RUwZT1.js} +1 -1
- package/_assets/{useStore-DuwkQdft.js → useStore-fHlJJ0gI.js} +1 -1
- package/_assets/{useTheme-BxV5MAYV.js → useTheme-DKi7wYE-.js} +1 -1
- package/_assets/{verifyHash-CG9JVJuP.js → verifyHash-CauMulxX.js} +1 -1
- package/_assets/{w3m-modal-D5IA0mZQ.js → w3m-modal-Cv396tvJ.js} +1 -1
- package/_assets/{w3m-modal-CwgxcOGH.js → w3m-modal-KS1F19gd.js} +1 -1
- package/_assets/{wait-for-tx-receipt-ygDC8-Lg.js → wait-for-tx-receipt-Bpp3xMIw.js} +1 -1
- package/_assets/{wallets-2mt8pecQ.js → wallets-DeRxBeUM.js} +5 -5
- package/_assets/{web-connector-B3MiLEZD.js → web-connector-nprYOrsP.js} +3 -3
- package/_assets/{writeContract-C0oLGDl4.js → writeContract-C0Ce5aYY.js} +1 -1
- package/_assets/{zoraTestnet-DutpD1cF.js → zoraTestnet-FzXxeC7P.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/LazyEmoteControls-DHNXGhhi.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as
|
|
1
|
+
import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as o,b,A as M,L as A,bV as z,C as ce,x as le,I as K,k as pe,g as j,f as C,aY as U,ar as Q,a9 as he,ck as q,aq as ue}from"./index-DCg5FbqY.js";import{s as xe,i as F,A as V,g as B,r as Z,m as J,k as Y,l as G}from"./authorizations-C2XcFris.js";import{i as ge}from"./errors-CwhExOnR.js";import{E as fe}from"./ErrorNotice-C0G5qWzo.js";import{k as me,l as be,m as _,n as we,o as ye}from"./buy-D2J4xdFU.js";import{s as ee,M as te,E as ae}from"./sendMetaTransaction-Bs_mS_PM.js";import{I as ve,C as ne}from"./ethers-BDpbhgX6.js";const S="shop:resume_after_signin",ke=900*1e3;function xt(e){try{sessionStorage.setItem(S,JSON.stringify({...e,at:Date.now()}))}catch{}}function gt(e){let t;try{t=sessionStorage.getItem(S)}catch{return null}if(!t)return null;try{sessionStorage.removeItem(S)}catch{}let i;try{i=JSON.parse(t)}catch{return null}return!i||i.type!==e||typeof i.at!="number"||Date.now()-i.at>ke?null:i.type==="cart-checkout"?{type:"cart-checkout"}:{type:"item-buy",path:i.path}}function je(e,t){return(e+t-1n)/t}function Ce(e,t,i){return e<=0||t<=0?0n:e>=t?i:je(i*BigInt(e),BigInt(t))}function ft(e){var u,p,y;const t=Number.isFinite(e.priceCents)?Math.max(0,Math.trunc(e.priceCents)):0,i=Number.isFinite(e.balanceCents)?Math.max(0,Math.trunc(e.balanceCents)):0,s=e.priceManaWei>0n?e.priceManaWei:0n,l=e.manaBalanceWei>0n?e.manaBalanceWei:0n;if(t<=0)return{options:[],preferred:null,manaShortfall:null};const c=[];if(i>=t&&c.push({method:"credits",creditsCents:t,manaWei:0n}),s>0n&&i>0&&i<t){const r=t-i,f=Ce(r,t,s);l>=f&&c.push({method:"combined",creditsCents:i,manaWei:f})}s>0n&&l>=s&&c.push({method:"mana",creditsCents:0,manaWei:s});const h=((u=c.find(r=>r.method==="credits"))==null?void 0:u.method)??((p=c.find(r=>r.method==="combined"))==null?void 0:p.method)??((y=c.find(r=>r.method==="mana"))==null?void 0:y.method)??null,g=!c.some(r=>r.method==="mana"||r.method==="combined")&&s>0n&&l>0n?{manaWei:l,manaCents:Me(l,t,s),priceCents:t}:null;return{options:c,preferred:h,manaShortfall:g}}function Me(e,t,i){return Number(e*BigInt(t)/i)}function mt(e,t){let i=Number.isFinite(t)?Math.max(0,Math.trunc(t)):0;return e.map(s=>{const l=Number.isFinite(s)?Math.max(0,Math.trunc(s)):0,c=Math.min(l,i);return i-=c,c})}function W(e){return Number.isFinite(e)?Math.max(0,e)/10:0}function bt(e,t){return e.options.find(i=>i.method===t)??null}function wt(e,t){if(!Number.isFinite(e)||e<=0||t<=0n)return null;const i=e/10;return Number(t)/1e18/i}const E="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%201'%3e%3cpath%20id='Vector'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%202L22%2012L12%2022L2%2012L12%202ZM12%204.8L19.2%2012L12%2019.2L4.8%2012L12%204.8ZM12%2015.6C12.9548%2015.6001%2013.8705%2015.2209%2014.5457%2014.5459C15.2209%2013.8708%2015.6003%2012.9552%2015.6004%2012.0004C15.6005%2011.0456%2015.2213%2010.1299%2014.5463%209.45471C13.8712%208.7795%2012.9556%208.40011%2012.0008%208.4C11.0461%208.4%2010.1304%208.77928%209.45525%209.45442C8.78012%2010.1295%208.40083%2011.0452%208.40083%2012C8.40083%2012.9548%208.78012%2013.8705%209.45525%2014.5456C10.1304%2015.2207%2011.0461%2015.6%2012.0008%2015.6H12Z'%20fill='white'/%3e%3cg%20id='Rectangle%201'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ae=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 12px;
|
|
@@ -19,16 +19,16 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
19
19
|
transition:
|
|
20
20
|
background 0.15s ease,
|
|
21
21
|
filter 0.15s ease;
|
|
22
|
-
font-family: ${
|
|
22
|
+
font-family: ${o.font.sans};
|
|
23
23
|
font-weight: 600;
|
|
24
24
|
font-size: 15px;
|
|
25
25
|
line-height: 24px;
|
|
26
26
|
letter-spacing: 0.46px;
|
|
27
27
|
text-transform: uppercase;
|
|
28
|
-
color: ${
|
|
28
|
+
color: ${o.colors.softWhite};
|
|
29
29
|
|
|
30
30
|
&:focus-visible {
|
|
31
|
-
outline: 2px solid ${
|
|
31
|
+
outline: 2px solid ${o.colors.accent};
|
|
32
32
|
outline-offset: 2px;
|
|
33
33
|
}
|
|
34
34
|
&:disabled {
|
|
@@ -37,17 +37,17 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
37
37
|
}
|
|
38
38
|
`,X=a.button`
|
|
39
39
|
${ie}
|
|
40
|
-
background: ${
|
|
40
|
+
background: ${o.gradients.buyBtn};
|
|
41
41
|
|
|
42
42
|
&:hover:not(:disabled) {
|
|
43
43
|
filter: brightness(1.08);
|
|
44
44
|
}
|
|
45
45
|
`,N=a.button`
|
|
46
46
|
${ie}
|
|
47
|
-
background: ${
|
|
47
|
+
background: ${o.colors.text2};
|
|
48
48
|
|
|
49
49
|
&:hover:not(:disabled) {
|
|
50
|
-
background: ${
|
|
50
|
+
background: ${o.colors.gray0};
|
|
51
51
|
}
|
|
52
52
|
`,$=a.span`
|
|
53
53
|
display: inline-flex;
|
|
@@ -64,7 +64,7 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
64
64
|
.ico {
|
|
65
65
|
width: 24px;
|
|
66
66
|
height: 24px;
|
|
67
|
-
background: ${
|
|
67
|
+
background: ${o.colors.softWhite};
|
|
68
68
|
}
|
|
69
69
|
`,P=a.span`
|
|
70
70
|
position: relative;
|
|
@@ -95,21 +95,21 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
95
95
|
opacity: 0.7;
|
|
96
96
|
`,$e=a.p`
|
|
97
97
|
margin: 0;
|
|
98
|
-
font-family: ${
|
|
98
|
+
font-family: ${o.font.sans};
|
|
99
99
|
font-weight: 400;
|
|
100
100
|
font-size: 12px;
|
|
101
101
|
line-height: 1;
|
|
102
|
-
color: ${
|
|
102
|
+
color: ${o.colors.muted};
|
|
103
103
|
text-align: center;
|
|
104
104
|
`,Te=a.p`
|
|
105
105
|
margin: -4px 0 0;
|
|
106
|
-
font-family: ${
|
|
106
|
+
font-family: ${o.font.sans};
|
|
107
107
|
font-weight: 400;
|
|
108
108
|
font-size: 12px;
|
|
109
109
|
line-height: 1.4;
|
|
110
|
-
color: ${
|
|
110
|
+
color: ${o.colors.muted};
|
|
111
111
|
text-align: center;
|
|
112
|
-
`;function yt({options:e,totalCents:t,onPay:i,busy:
|
|
112
|
+
`;function yt({options:e,totalCents:t,onPay:i,busy:s=!1,rateNote:l,creditsLabel:c,shortfall:h,showCreditsAmount:w=!0,creditsFallback:g=null}){const u=e.some(p=>p.method==="credits");return n.jsxs(Ae,{children:[!u&&g?n.jsx(X,{type:"button","data-testid":"pay-with-credits-topup",onClick:g.onClick,disabled:s,children:n.jsx("span",{children:g.label})}):null,e.map(p=>p.method==="credits"?n.jsxs(X,{type:"button","data-testid":"pay-with-credits",onClick:()=>i("credits"),disabled:s,children:[n.jsx("span",{children:c??b("buyModal.buy")}),w?n.jsxs($,{children:[n.jsx(M,{}),n.jsx("span",{children:A(W(p.creditsCents))})]}):null]},"credits"):p.method==="mana"?n.jsxs(N,{type:"button","data-testid":"pay-with-mana",onClick:()=>i("mana"),disabled:s,children:[n.jsx("span",{children:b("buyModal.buyWithMana")}),n.jsxs($,{children:[n.jsx(P,{children:n.jsx("img",{src:E,alt:"","aria-hidden":!0})}),n.jsx("span",{children:z(p.manaWei)})]})]},"mana"):n.jsxs(N,{type:"button","data-testid":"pay-with-combined",onClick:()=>i("combined"),disabled:s,children:[n.jsx("span",{children:b("buyModal.buyWith")}),n.jsxs($,{children:[n.jsx(M,{}),n.jsx("span",{children:A(W(p.creditsCents))}),n.jsx(We,{children:"+"}),n.jsx(P,{children:n.jsx("img",{src:E,alt:"","aria-hidden":!0})}),n.jsx("span",{children:z(p.manaWei)}),n.jsx(ze,{children:"MANA"})]})]},"combined")),h?n.jsxs(n.Fragment,{children:[n.jsxs(N,{type:"button","data-testid":"pay-with-mana-disabled",disabled:!0,children:[n.jsx("span",{children:b("buyModal.buyWithMana")}),n.jsxs($,{children:[n.jsx(P,{children:n.jsx("img",{src:E,alt:"","aria-hidden":!0})}),n.jsx("span",{children:z(h.manaWei)})]})]},"mana-short"),n.jsx(Te,{"data-testid":"mana-shortfall-note",children:b("buyModal.manaWorth",{mana:z(h.manaWei),credits:A(W(h.manaCents)),price:A(W(h.priceCents)),currency:ce.name})})]}):null,l?n.jsx($e,{"data-testid":"mana-rate-note",children:l}):null,n.jsx("span",{hidden:!0,"data-testid":"pay-total-cents",children:t})]})}function vt(e,t){const i=(s,...l)=>void e.invalidateQueries({queryKey:t?[s,...l]:[s]});e.invalidateQueries({queryKey:["usd-balance"]}),e.invalidateQueries({queryKey:["detail-trade"]}),e.invalidateQueries({queryKey:["shop-item"]}),i("owned-token",t==null?void 0:t.contractAddress,t==null?void 0:t.tokenId),i("public-token",t==null?void 0:t.contractAddress,t==null?void 0:t.tokenId),i("item-resales",t==null?void 0:t.contractAddress,t==null?void 0:t.itemId),e.invalidateQueries({queryKey:["shop-items"]}),e.invalidateQueries({queryKey:["catalog-items"]}),e.invalidateQueries({queryKey:["overview-listings"]}),e.invalidateQueries({queryKey:["upsell-listings"]}),e.invalidateQueries({queryKey:["my-assets"]}),e.invalidateQueries({queryKey:["purchases"]}),e.invalidateQueries({queryKey:["owned-item-count"]})}const Be=le`
|
|
113
113
|
to { transform: rotate(360deg); }
|
|
114
114
|
`,Ie=a.div`
|
|
115
115
|
position: fixed;
|
|
@@ -125,7 +125,7 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
125
125
|
max-width: 100%;
|
|
126
126
|
max-height: 92vh;
|
|
127
127
|
overflow-y: auto;
|
|
128
|
-
background: ${
|
|
128
|
+
background: ${o.colors.white};
|
|
129
129
|
border-radius: 16px;
|
|
130
130
|
padding: 12px 16px 16px;
|
|
131
131
|
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
|
|
@@ -138,14 +138,14 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
138
138
|
justify-content: space-between;
|
|
139
139
|
gap: 8px;
|
|
140
140
|
padding-bottom: 16px;
|
|
141
|
-
border-bottom: 1px solid ${
|
|
141
|
+
border-bottom: 1px solid ${o.colors.gray4};
|
|
142
142
|
`,Pe=a.h2`
|
|
143
143
|
margin: 0;
|
|
144
|
-
font-family: ${
|
|
144
|
+
font-family: ${o.font.sans};
|
|
145
145
|
font-weight: 600;
|
|
146
146
|
font-size: 20px;
|
|
147
147
|
line-height: 1.6;
|
|
148
|
-
color: ${
|
|
148
|
+
color: ${o.colors.text};
|
|
149
149
|
`,Se=a.button`
|
|
150
150
|
flex: none;
|
|
151
151
|
display: grid;
|
|
@@ -155,7 +155,7 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
155
155
|
border: 0;
|
|
156
156
|
background: none;
|
|
157
157
|
cursor: pointer;
|
|
158
|
-
color: ${
|
|
158
|
+
color: ${o.colors.text};
|
|
159
159
|
|
|
160
160
|
.ico {
|
|
161
161
|
width: 18px;
|
|
@@ -166,7 +166,7 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
166
166
|
cursor: default;
|
|
167
167
|
}
|
|
168
168
|
&:focus-visible {
|
|
169
|
-
outline: 2px solid ${
|
|
169
|
+
outline: 2px solid ${o.colors.accent};
|
|
170
170
|
outline-offset: 2px;
|
|
171
171
|
}
|
|
172
172
|
`,Fe=a.div`
|
|
@@ -175,19 +175,19 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
175
175
|
align-items: center;
|
|
176
176
|
gap: 14px;
|
|
177
177
|
padding: 14px 18px;
|
|
178
|
-
background: ${
|
|
179
|
-
border: 1px solid ${
|
|
178
|
+
background: ${o.colors.white};
|
|
179
|
+
border: 1px solid ${o.colors.line};
|
|
180
180
|
border-radius: 16px;
|
|
181
181
|
`,Ve=a.div`
|
|
182
182
|
width: 44px;
|
|
183
183
|
height: 44px;
|
|
184
184
|
border-radius: 10px;
|
|
185
|
-
background: ${
|
|
185
|
+
background: ${o.colors.media};
|
|
186
186
|
overflow: hidden;
|
|
187
187
|
display: flex;
|
|
188
188
|
align-items: center;
|
|
189
189
|
justify-content: center;
|
|
190
|
-
color: ${
|
|
190
|
+
color: ${o.colors.muted2};
|
|
191
191
|
|
|
192
192
|
img {
|
|
193
193
|
width: 100%;
|
|
@@ -205,32 +205,32 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
205
205
|
gap: 4px;
|
|
206
206
|
`,De=a.span`
|
|
207
207
|
font-weight: 700;
|
|
208
|
-
color: ${
|
|
208
|
+
color: ${o.colors.text};
|
|
209
209
|
`,Re=a.span`
|
|
210
210
|
font-size: 13px;
|
|
211
211
|
line-height: 1.45;
|
|
212
|
-
color: ${
|
|
212
|
+
color: ${o.colors.muted};
|
|
213
213
|
`,Oe=a.p`
|
|
214
214
|
margin: 0;
|
|
215
215
|
font-size: 12px;
|
|
216
216
|
line-height: 1.5;
|
|
217
|
-
color: ${
|
|
217
|
+
color: ${o.colors.muted2};
|
|
218
218
|
`,qe=a.div`
|
|
219
219
|
display: flex;
|
|
220
220
|
gap: 12px;
|
|
221
221
|
|
|
222
|
-
${
|
|
222
|
+
${o.media.maxWidth("mobile")} {
|
|
223
223
|
flex-direction: column-reverse;
|
|
224
224
|
}
|
|
225
225
|
`,Xe=a.button`
|
|
226
226
|
flex: 1 1 0;
|
|
227
227
|
height: 48px;
|
|
228
|
-
border: 2px solid ${
|
|
228
|
+
border: 2px solid ${o.colors.accent};
|
|
229
229
|
border-radius: 12px;
|
|
230
230
|
background: transparent;
|
|
231
|
-
color: ${
|
|
231
|
+
color: ${o.colors.accent};
|
|
232
232
|
cursor: pointer;
|
|
233
|
-
font-family: ${
|
|
233
|
+
font-family: ${o.font.sans};
|
|
234
234
|
font-weight: 600;
|
|
235
235
|
font-size: 13px;
|
|
236
236
|
line-height: 24px;
|
|
@@ -245,7 +245,7 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
245
245
|
opacity: 0.5;
|
|
246
246
|
}
|
|
247
247
|
&:focus-visible {
|
|
248
|
-
outline: 2px solid ${
|
|
248
|
+
outline: 2px solid ${o.colors.accent};
|
|
249
249
|
outline-offset: 2px;
|
|
250
250
|
}
|
|
251
251
|
`,He=a.button`
|
|
@@ -257,10 +257,10 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
257
257
|
height: 48px;
|
|
258
258
|
border: 0;
|
|
259
259
|
border-radius: 12px;
|
|
260
|
-
background: ${
|
|
261
|
-
color: ${
|
|
260
|
+
background: ${o.colors.accent};
|
|
261
|
+
color: ${o.colors.softWhite};
|
|
262
262
|
cursor: pointer;
|
|
263
|
-
font-family: ${
|
|
263
|
+
font-family: ${o.font.sans};
|
|
264
264
|
font-weight: 600;
|
|
265
265
|
font-size: 13px;
|
|
266
266
|
line-height: 24px;
|
|
@@ -268,14 +268,14 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
268
268
|
text-transform: uppercase;
|
|
269
269
|
|
|
270
270
|
&:hover:not(:disabled) {
|
|
271
|
-
background: ${
|
|
271
|
+
background: ${o.colors.accentHover};
|
|
272
272
|
}
|
|
273
273
|
&:disabled {
|
|
274
274
|
cursor: default;
|
|
275
275
|
background: rgba(105, 31, 169, 0.4);
|
|
276
276
|
}
|
|
277
277
|
&:focus-visible {
|
|
278
|
-
outline: 2px solid ${
|
|
278
|
+
outline: 2px solid ${o.colors.accent};
|
|
279
279
|
outline-offset: 2px;
|
|
280
280
|
}
|
|
281
281
|
`,Ke=a.span`
|
|
@@ -283,13 +283,13 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
283
283
|
height: 16px;
|
|
284
284
|
border-radius: 50%;
|
|
285
285
|
border: 2px solid rgba(255, 255, 255, 0.5);
|
|
286
|
-
border-top-color: ${
|
|
286
|
+
border-top-color: ${o.colors.white};
|
|
287
287
|
animation: ${Be} 0.7s linear infinite;
|
|
288
288
|
|
|
289
289
|
@media (prefers-reduced-motion: reduce) {
|
|
290
290
|
animation: none;
|
|
291
291
|
}
|
|
292
|
-
`;function kt({auth:e,signer:t,title:i,reason:
|
|
292
|
+
`;function kt({auth:e,signer:t,title:i,reason:s,name:l,image:c,icon:h,onAuthorized:w,onCancel:g,onClose:u}){const[p,y]=k.useState(!1),[r,f]=k.useState(null);async function v(){y(!0),f(null);try{await xe({auth:e,signer:t,active:!0}),w()}catch(x){ge(x)?f(b("authorizeStep.errorRejected")):(pe(x,{flow:"authorize_step",kind:e.kind}),f(b("authorizeStep.errorGeneric"))),y(!1)}}return n.jsx(Ie,{onClick:p?void 0:u,role:"presentation",children:n.jsxs(Ee,{onClick:x=>x.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":i,children:[n.jsxs(Ne,{children:[n.jsx(Pe,{children:i}),n.jsx(Se,{onClick:u,disabled:p,"aria-label":b("authorizeStep.close"),children:n.jsx(K,{name:"close",className:"ico"})})]}),n.jsxs(Fe,{"data-testid":"authorize-step-row",children:[n.jsx(Ve,{children:c?n.jsx("img",{src:c,alt:""}):h}),n.jsxs(Le,{children:[n.jsx(De,{title:l,children:l}),n.jsx(Re,{children:s})]})]}),n.jsx(Oe,{children:b("authorizeStep.note")}),n.jsx(fe,{message:r}),n.jsxs(qe,{children:[n.jsx(Xe,{type:"button",onClick:g,disabled:p,children:b("authorizeStep.cancel")}),n.jsx(He,{type:"button","data-testid":"authorize-step-action",onClick:()=>void v(),disabled:p,children:p?n.jsxs(n.Fragment,{children:[n.jsx(Ke,{"aria-hidden":!0}),b("authorizeStep.authorizing")]}):b("authorizeStep.authorize")})]})]})})}const jt="data:image/webp;base64,UklGRvgKAABXRUJQVlA4IOwKAADQKwCdASpgAGUAPjEUiEKiISEUnq8wIAMEtgBkC7j/3+G/I38cvlZrz9m/Bv7ucdsZLtP/U/cL2pPMH/Tb/Nfar3MfMJ+1P7ge7h/p/W5/dvUF/ln/R60X0FfLU/cP4VP2y/bv2Zf//dh/DX9N2THgHQ12q7Xn+Y33EAH0+/4PqITRFa4zT/1eWj619gr9Vf+j6x/rq/cX2Hv1j//7lHMptECj4S9oGS9bHSMqnYSXt0dT9/kqkBaEohWLz5fYi/Xc3O4w88eWX2PNn6f6HvokNQLshYmWuZVr+fWvmb8Mxmef32yaJFKhIrqBLsKH0p5i3G0l0My3DEGl5xNk8x8K5XQfwFnKNgmq56O8EtvsHrECHmK24etcKyXmPUNXqKG2wZt46qpzuG9FVqioXjkt+Ml5ZFMcX4Qt/gSM/pW5noqKyz52OQ+lnhtm6rvL/2wg1r915uiwJUqVqwoeahezVpjC5WF8gAD+//5xQfuw+m9CcVG4VSUxpYVbr28IJLI3JdtWufv0qzX1l/3///nmDOH9JxLbHvzElYZJh+KXu/Vm+DvLe+P3f899UasoAiqy0L6a080Zavene3J0LDFVwNKwBgTJhhnyHyXiivUCl9zFEJexNTm1uifLMn5AZB2Xhc14br6GW53pQRv/ZFIb42GbedOasp2CIgHD1AJtyBg/Yezhfuezuqo6BepEhErXb16zn+iTu/Au8DBrwz0ECgvcMrvW3Tl0jCaZqgsLwX93iEett0p1YS4pccTTlEJdxO4akcHPIoqkIq4x6COqE3W7HJ8lENPyAK9D22Zm6RAw7y23dzUt3eFk2R8ispGWbqcc/Bc4vmwZoglkFKho1lkVGOPPKjEME6mh3us+O7/UujXlQwLOh2O1Z37xfMuHPssVRIhAo8JjaMNPeY1Gc8OnuRjPp1KMfXaYQMqEVVqX7+p63Vg8xE7pnolcBqsi2123Sd1YQoFY/IdzmOWPpd1ArCvv7AJu1XlsrEbcbPt77rTmXqXgL7MTdrLwJTHSa9eMkhjkVSL2kQmiIeLlnlCTSDBW2VUJk70ZkAh1pxjwg7vagecieGvdjVPsg3qs4KdFjz8mQwdlU7nYiRLy4fs5XeEPHwuNRjqTZLmR4+P+g4i7Zld4R0BKjaNzU6io3Wg4nbeKP4Y+odsQRWTiMmULla/V5U4+shB6rhSyyxah5qNb8JF/AeM/ZEMC/ruNHFVt2z99+G334RjV11a2DLmDOKk9ULgM+aE+Yvf5FamiiBHu2zJyVP7tAllsCtG9RNmH0r5gx4OhIh17p5dfa8U78wK4Jbvcq14Zo7vgs1XwYcWKO2paQrmjei9+P5hbMwOlwQa5W1hnpxBU9gySq2/opHOaHYFiFqD8b9OReysGuVclXPTDKmqtCUHVSZYHmKP9SHubBuavbErBRmVY+Nmz5/B5SzRCnPk3+cfd7wYriQaMwOS/BOCOBvr1SO0gSrIIx4DZCbhAqPUhV9emH31oXt5i1r88/lsQKPT0LrwlaJslMnvEkMbyD9UoApwbtAZqvqugP84V2o6mM62j670PrgZQEfdrfU/Brf0uTzjZCvCUbO9oEswXg6unROfjUtgZnghqpTXVvThkder6/50kGKJje5eoSL8jwIInxFI/v/5hPjsO29Tu1V+3cT5pJ2NkOia+rW+0X3pvw9VEWQQngLrTZhrPuNAcaAWSvy+dppsI+zNXiWwCFwO+p9LyTusGvrw3oYM1FvmXff91gzvOTnyjBAeVacK1AOLetlzmatqtuQysM9IxbOLVnQ9tffTmqDbxmQTY36WqDIp2rFx05HMlrdU8jV2cl4FL70S9JSuBRoGBUYYTK1i94k3Gr2foiVl/1sktnyF95b+foK2ThVL47hB+FjNZl/Q5hTnB53rn1EppKC3jDCjN0RwIG+xO3/iwvVmdA1FEPlB/m+7K/PplluG+hMXZdqh3Vb9jGlnL1G331f68q/T4Nn53VaedqyO+K/EaZOEfFwFWbD3J0XY7eklhHvnvN+GHzT/+1ZZ/iSjsT5VcncMxDkPVAEE5+Iv8DKGs//vXXfBMs7evhxSafUuPe7x7/VPkmKnd3V+Ibc3YympmNS6TDTxtAQWCBWgJ+ZQPXvrj4Xg8lb5ZDvvVDXrXN+VzCMqq54jt2MMdkjh3QMHo32O5bPYOnQl9zl+KmVQf7XNUE3O2MxAzv2dA7w6RPbOP2OOIWRgwLdNy6OIn23vTZOirV3ufMnGIjTehD8YrfBtMhQjIpRyvVuNf8YzYoCwF8ybfcFoatV5hvAaQwhruxLD0XRSM+oAGPo44Kl6q8jz7/Qp2PtBCFVj56ostyJs0hg3PAAg+YjMvWuQMecMhPjns/mX//5XmYe9lHvfe79d91n/0puJ8C/mfnuGOTRostWX6xRZd2og1rRieHnM/8dJ58g7leMFibJD2gtq8r7n9Ce+wpYNpznRUmHcU/mP5Wlfbs/hGxk2K82pViHQElv+AumJhHOSR4Skb42vDdVFDsDyCYpN6qcJDwaDExGlckHBj2YfMCfhNFmFnEO/exYslmeNN7+UzbSW8dI1W5F/5JxVmygNHYODYFCxBcfUBf/KSOXMy+FnP9BXJx1JWZwFMeYk0JLF0cXByy84zX4WNi5IDCH6JVMx+EAzKiYrqFbfkqqWXPYzyyTFD7DQX9noCFp43nE3GNFJ/1Hg3aiFUzJuhIiBOcVnmdqcSXZmaoVN83qTB/UlqZlreRNmYOMhP1mB30Ap9yebO12VCfQ/t59iX/JHZAV4DOn3Wj10EdAmiJ4LIM7FFZuVoHwTIVBtCluMMQ5hm5kGsCp7tSnG6tgKv6r699n4BwegEJxjIBln/anJbwVigZdYOv9MJ9SmBt2yFttw3Ar3Aw1+o3Ux0CqBc23d3/urM30mJNJUyaHfuTVBXmKInUWQnT05RzFvEbS2qnBEiicuXN+h0dTN3MCAdChkQvF4nn7WeJDvg4KEdS6FN0s4TiFuWQVhloZV/3+PzN4lqrKEXSLCdzrf/gK1i2fVuLsZTulPvvcz6hhhKfA4Fni6xlMZqxVIsYoUySePySdGiyRwpzFmi3yeInf75Z8T3uqtArQNMwe3glLiiS5PUy7Y8Svsbg5xwXhr6aOPuUvj4NrXNcSgefLeNmL680LGBzBGg2M9qv2auWIpJohW8LDNngafslp+2ydYZ60t+jonPHmMDTK1R/BkkDSoxfARfSpzxRoQqCibQ/i/KfV3hnGHLWJQ9L9CaFbMy/xF1JrNXwBpZVVIEt3ivU4LwEGnaDWcgbd2t+QbDsrepZNFW9PsCU4T7IEvTthlSDAqV8HTsoCcCc0t2vD3+G8gy8h32cZaYPvipwofQ+Zd23iBld0QOVDxEDGInn4CucUTfC3/c9tjfveCPuFQTdp7Wrc2qmpty8Kn7IJOa+Hy3xJuNHAW7yTU8KHJTrxD/9fvFMkH6eDgNbEzJ5NOCoxFFplGXuhHd8jxk9u/k3bBVF6oLskpdipOj9NqvNNv7Dy1cNnPGqKJSTZ01tIQ7lIcMeBvj6Ov6rRVP4ue+EW7a/VxCfsIzlgflFXrjoKLs1k1hQW83BtGjQ37OmBhgI+6ULvZAWhooUlzBa7n+F/yXGW5dmI1gA3TANbTih2YGTLfBnAI9Z7QHGSJh6CMgmUr2kMgJYoxGft2beB7EXyDAwxQmjAEpZ2zFRVHDTYDjyz+H094nbYcAhgAAAAA=",Ct="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191682385.commit-b61dc4f/_assets/buy-error-22UunaPC.png";async function Mt(e){const[t]=await oe({...e,trades:[e.trade]});return t}async function At(e){const[t]=await oe({...e,trades:[],mints:[e.mint]});return t}async function oe(e){const{trades:t,mints:i=[],buyer:s,signer:l,onSigned:c}=e;if(t.length===0&&i.length===0)throw new Error("No items to buy");const h=new Map;for(const u of t){const p=`${u.chainId}:${u.contract.toLowerCase()}`,y=h.get(p);y?y.push(u):h.set(p,[u])}const w=new Map;for(const u of i){const p=w.get(u.chainId);p?p.push(u):w.set(u.chainId,[u])}const g=[];for(const u of h.values())g.push(await Ue({trades:u,buyer:s,signer:l,onSigned:c}));for(const[u,p]of w)g.push(await Qe({mints:p,chainId:u,buyer:s,signer:l,onSigned:c}));return g}async function Ue(e){const{trades:t,buyer:i,signer:s,onSigned:l}=e,c=t[0],h=j(U(c.contract),c.chainId),w=j(C.MANAToken,c.chainId);await F({auth:{kind:V.Allowance,contractAddress:w.address,spenderAddress:h.address,chainId:c.chainId},signer:s});const g=t.map(r=>be(r,i));if(B.enabled)try{const r=new ve(h.abi).encodeFunctionData("accept",[g]),f=Z(),v=J(s.provider,f),x=await ee(v,f,r,h,{serverURL:B.relayerUrl});return l==null||l(),await Y(x,"the MANA purchase"),x}catch(r){if(r instanceof te&&r.code===ae.USER_DENIED||r instanceof G)throw r;console.warn("[buyWithMana] gasless meta-tx failed, falling back to a direct tx:",r)}await Q(s.provider,c.chainId);const p=await new ne(h.address,h.abi,s).accept(g,_(c.chainId));return l==null||l(),(await p.wait()).transactionHash}async function Qe(e){const{mints:t,chainId:i,buyer:s,signer:l,onSigned:c}=e,h=j(C.CollectionStore,i),w=j(C.MANAToken,i),g=t.map(r=>r.item);if(await F({auth:{kind:V.Allowance,contractAddress:w.address,spenderAddress:h.address,chainId:i},signer:l}),B.enabled)try{const r=we(g,s,h.abi),f=Z(),v=J(l.provider,f),x=await ee(v,f,r,h,{serverURL:B.relayerUrl});return c==null||c(),await Y(x,"the MANA purchase"),x}catch(r){if(r instanceof te&&r.code===ae.USER_DENIED||r instanceof G)throw r;console.warn("[buyMintWithMana] gasless meta-tx failed, falling back to a direct tx:",r)}await Q(l.provider,i);const p=await new ne(h.address,h.abi,l).buy(ye(g,s),_(i));return c==null||c(),(await p.wait()).transactionHash}async function zt(e){const{trade:t,...i}=e;return re({target:{kind:"trade",trade:t},...i})}async function Wt(e){const{mint:t,...i}=e;return re({target:{kind:"store",mint:t},...i})}async function re(e){const{target:t,buyer:i,signer:s,credits:l,manaGapWei:c,onBroadcast:h,onReverted:w}=e;if(l.length===0)throw new Error("No credits to spend — use the MANA-only rail for that");if(c<=0n)throw new Error("No MANA gap to cover — use the credits-only rail for that");const g=se(t),u=j(C.MANAToken,g),p=j(C.CreditsManager,g);await F({auth:{kind:V.Allowance,contractAddress:u.address,spenderAddress:p.address,chainId:g},signer:s});const r=(l.reduce((f,v)=>f+BigInt(v.availableAmount),0n)+c).toString();return me({purchase:Ze(t,l,r),buyer:i,signer:s,onBroadcast:h,onReverted:w})}function se(e){return e.kind==="trade"?e.trade.chainId:e.mint.chainId}function Ze(e,t,i){return e.kind==="trade"?{kind:"trade",trade:e.trade,credits:t,maxCreditedValue:i}:{kind:"store",item:e.mint.item,chainId:e.mint.chainId,credits:t,maxCreditedValue:i}}function $t(e,t){const i=se(t);return e==="combined"?{spender:j(C.CreditsManager,i).address,chainId:i}:{spender:t.kind==="trade"?j(U(t.trade.contract),i).address:j(C.CollectionStore,i).address,chainId:i}}function Tt(e){return n.jsx("svg",{viewBox:"0 0 18 18",width:"18",height:"18","aria-hidden":!0,...e,children:n.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#161518",strokeWidth:"1.8",strokeLinecap:"round"})})}function Bt(e){return n.jsx("svg",{viewBox:"0 0 20 20",width:"24",height:"24","aria-hidden":!0,...e,children:n.jsx("path",{fill:"#f48221",d:"M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-8a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V6a1 1 0 0 1 1-1Z"})})}const{colors:d,gradients:L,radius:de,z:Je}=o,It=a.div`
|
|
293
293
|
position: fixed;
|
|
294
294
|
inset: 0;
|
|
295
295
|
z-index: ${Je.overlay};
|
|
@@ -317,7 +317,7 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
317
317
|
edge instead of painting its buttons out on the scrim. */
|
|
318
318
|
max-height: 100%;
|
|
319
319
|
overflow: hidden;
|
|
320
|
-
background: ${
|
|
320
|
+
background: ${d.white};
|
|
321
321
|
border-radius: 16px;
|
|
322
322
|
padding: 12px 16px 16px;
|
|
323
323
|
box-shadow: 0 24px 60px rgba(22, 21, 24, 0.28);
|
|
@@ -335,7 +335,7 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
335
335
|
flex-direction: column;
|
|
336
336
|
gap: 4px;
|
|
337
337
|
padding-bottom: 16px;
|
|
338
|
-
border-bottom: 1px solid ${
|
|
338
|
+
border-bottom: 1px solid ${d.gray4};
|
|
339
339
|
`,St=a.div`
|
|
340
340
|
display: flex;
|
|
341
341
|
align-items: flex-start;
|
|
@@ -346,7 +346,7 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
346
346
|
font-size: 20px;
|
|
347
347
|
font-weight: 700;
|
|
348
348
|
line-height: 1.6;
|
|
349
|
-
color: ${
|
|
349
|
+
color: ${d.text};
|
|
350
350
|
`,Vt=a.button`
|
|
351
351
|
flex-shrink: 0;
|
|
352
352
|
border: 0;
|
|
@@ -361,14 +361,14 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
361
361
|
`,Dt=a.span`
|
|
362
362
|
font-size: 14px;
|
|
363
363
|
font-weight: 600;
|
|
364
|
-
color: ${
|
|
364
|
+
color: ${d.muted1};
|
|
365
365
|
`,Rt=a(M)`
|
|
366
366
|
width: 14px;
|
|
367
367
|
height: 14px;
|
|
368
|
-
background: ${
|
|
368
|
+
background: ${d.text};
|
|
369
369
|
`,Ot=a.span`
|
|
370
370
|
font-size: 14px;
|
|
371
|
-
color: ${
|
|
371
|
+
color: ${d.text};
|
|
372
372
|
`,qt=a.div`
|
|
373
373
|
display: flex;
|
|
374
374
|
flex-direction: column;
|
|
@@ -392,14 +392,14 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
392
392
|
gap: 24px;
|
|
393
393
|
align-items: center;
|
|
394
394
|
|
|
395
|
-
${
|
|
395
|
+
${o.media.maxWidth("mobile")} {
|
|
396
396
|
gap: 12px;
|
|
397
397
|
}
|
|
398
398
|
`,Ht=a.div`
|
|
399
399
|
flex-shrink: 0;
|
|
400
400
|
width: 110px;
|
|
401
401
|
height: 110px;
|
|
402
|
-
background: ${
|
|
402
|
+
background: ${d.media};
|
|
403
403
|
border-radius: 8px;
|
|
404
404
|
display: grid;
|
|
405
405
|
place-items: center;
|
|
@@ -412,9 +412,10 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
412
412
|
filter: drop-shadow(0.7px 2.9px 3.7px rgba(0, 0, 0, 0.1));
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
-
${
|
|
416
|
-
width:
|
|
417
|
-
height:
|
|
415
|
+
${o.media.maxWidth("mobile")} {
|
|
416
|
+
width: 78px;
|
|
417
|
+
height: 78px;
|
|
418
|
+
border-radius: 7px;
|
|
418
419
|
}
|
|
419
420
|
`,Kt=a.div`
|
|
420
421
|
flex: 1;
|
|
@@ -427,17 +428,21 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
427
428
|
font-size: 18px;
|
|
428
429
|
font-weight: 700;
|
|
429
430
|
line-height: 1.3;
|
|
430
|
-
color: ${
|
|
431
|
+
color: ${d.text};
|
|
431
432
|
overflow: hidden;
|
|
432
433
|
text-overflow: ellipsis;
|
|
433
434
|
|
|
434
|
-
${
|
|
435
|
+
${o.media.maxWidth("mobile")} {
|
|
435
436
|
font-size: 16px;
|
|
436
437
|
}
|
|
437
438
|
`,Qt=a(he)`
|
|
438
439
|
font-size: 12px;
|
|
439
440
|
line-height: 1.43;
|
|
440
|
-
color: ${
|
|
441
|
+
color: ${d.muted};
|
|
442
|
+
|
|
443
|
+
${o.media.maxWidth("mobile")} {
|
|
444
|
+
font-size: 10px;
|
|
445
|
+
}
|
|
441
446
|
`,Zt=a.div`
|
|
442
447
|
display: flex;
|
|
443
448
|
align-items: center;
|
|
@@ -447,12 +452,18 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
447
452
|
& span {
|
|
448
453
|
font-size: 18px;
|
|
449
454
|
font-weight: 700;
|
|
450
|
-
color: ${
|
|
455
|
+
color: ${d.text2};
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
${o.media.maxWidth("mobile")} {
|
|
459
|
+
& span {
|
|
460
|
+
font-size: 20px;
|
|
461
|
+
}
|
|
451
462
|
}
|
|
452
463
|
`,Jt=a(M)`
|
|
453
464
|
width: 18px;
|
|
454
465
|
height: 18px;
|
|
455
|
-
background: ${
|
|
466
|
+
background: ${d.text2};
|
|
456
467
|
`,Yt=a.div`
|
|
457
468
|
display: flex;
|
|
458
469
|
align-items: flex-start;
|
|
@@ -464,11 +475,17 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
464
475
|
& > svg {
|
|
465
476
|
flex-shrink: 0;
|
|
466
477
|
}
|
|
478
|
+
|
|
479
|
+
${o.media.maxWidth("mobile")} {
|
|
480
|
+
align-items: center;
|
|
481
|
+
gap: 8px;
|
|
482
|
+
padding: 12px 8px;
|
|
483
|
+
}
|
|
467
484
|
`,Gt=a.p`
|
|
468
485
|
margin: 0;
|
|
469
486
|
font-size: 14px;
|
|
470
487
|
line-height: 1.334;
|
|
471
|
-
color: ${
|
|
488
|
+
color: ${d.text2};
|
|
472
489
|
|
|
473
490
|
& b {
|
|
474
491
|
font-weight: 700;
|
|
@@ -479,11 +496,11 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
479
496
|
font-size: 14px;
|
|
480
497
|
font-weight: 600;
|
|
481
498
|
line-height: 1.334;
|
|
482
|
-
color: ${
|
|
499
|
+
color: ${d.text2};
|
|
483
500
|
text-decoration: underline;
|
|
484
501
|
|
|
485
502
|
&:hover {
|
|
486
|
-
color: ${
|
|
503
|
+
color: ${d.accent};
|
|
487
504
|
}
|
|
488
505
|
`,ea=a.div`
|
|
489
506
|
display: flex;
|
|
@@ -491,13 +508,24 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
491
508
|
gap: 12px;
|
|
492
509
|
margin: -6px 0;
|
|
493
510
|
padding: 6px;
|
|
511
|
+
|
|
512
|
+
/* Phones get a fixed 2x2 (Figma mobile frame). Wrapping decided the row break from each tile's own
|
|
513
|
+
content width, so a pack whose amount and price were wide enough — "260 ($29.99)" — stopped
|
|
514
|
+
sharing a line and claimed a full row: the four landed 2/1/1, three rows tall. That extra row is
|
|
515
|
+
also what pushed the total under the sticky CTAs. The tracks are minmax(0, 1fr), not 1fr, so a
|
|
516
|
+
long price shrinks the text inside the tile instead of widening the column past the card. */
|
|
517
|
+
${o.media.maxWidth("mobile")} {
|
|
518
|
+
display: grid;
|
|
519
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
520
|
+
gap: 16px 12px;
|
|
521
|
+
}
|
|
494
522
|
`,ta=a.button`
|
|
495
523
|
/* Wide enough to stay readable, so a narrow card wraps the tiles onto a second row instead of
|
|
496
524
|
squeezing four of them into one. */
|
|
497
525
|
flex: 1 1 140px;
|
|
498
526
|
height: 109px;
|
|
499
|
-
border: 1px solid ${
|
|
500
|
-
background: ${
|
|
527
|
+
border: 1px solid ${d.muted2};
|
|
528
|
+
background: ${d.media};
|
|
501
529
|
border-radius: 16px;
|
|
502
530
|
display: flex;
|
|
503
531
|
align-items: center;
|
|
@@ -519,7 +547,7 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
519
547
|
padding: 0;
|
|
520
548
|
border-color: transparent;
|
|
521
549
|
border-width: 4px;
|
|
522
|
-
background-image: linear-gradient(${
|
|
550
|
+
background-image: linear-gradient(${d.media}, ${d.media}), ${L.buyBtn};
|
|
523
551
|
background-origin: border-box;
|
|
524
552
|
background-clip: padding-box, border-box;
|
|
525
553
|
}
|
|
@@ -528,6 +556,20 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
528
556
|
&[data-on] {
|
|
529
557
|
transform: scale(1.03);
|
|
530
558
|
}
|
|
559
|
+
|
|
560
|
+
${o.media.maxWidth("mobile")} {
|
|
561
|
+
height: 83px;
|
|
562
|
+
gap: 6px;
|
|
563
|
+
/* A grid item defaults to min-width:auto, which would let the widest price push the tile out of
|
|
564
|
+
its track and back past the card edge — the shrinking the 1fr tracks above are there to allow. */
|
|
565
|
+
min-width: 0;
|
|
566
|
+
|
|
567
|
+
/* The grid gives every tile an identical box, so the lift only makes the selected one overlap its
|
|
568
|
+
gap and read as a size the design never gives it. The ring already says which is picked. */
|
|
569
|
+
&[data-on] {
|
|
570
|
+
transform: none;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
531
573
|
`,aa=a.img`
|
|
532
574
|
width: 24px;
|
|
533
575
|
height: 26px;
|
|
@@ -535,15 +577,15 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
535
577
|
`,na=a.span`
|
|
536
578
|
font-size: 24px;
|
|
537
579
|
font-weight: 500;
|
|
538
|
-
color: ${
|
|
580
|
+
color: ${d.text};
|
|
539
581
|
`,ia=a.span`
|
|
540
582
|
font-size: 14px;
|
|
541
|
-
color: ${
|
|
583
|
+
color: ${d.text};
|
|
542
584
|
`,oa=a.div`
|
|
543
585
|
display: flex;
|
|
544
586
|
align-items: center;
|
|
545
587
|
justify-content: space-between;
|
|
546
|
-
border-top: 1px solid ${
|
|
588
|
+
border-top: 1px solid ${d.gray4};
|
|
547
589
|
padding-top: 12px;
|
|
548
590
|
`,ra=a.div`
|
|
549
591
|
display: flex;
|
|
@@ -551,15 +593,15 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
551
593
|
gap: 8px;
|
|
552
594
|
font-size: 24px;
|
|
553
595
|
font-weight: 700;
|
|
554
|
-
color: ${
|
|
596
|
+
color: ${d.text};
|
|
555
597
|
`,sa=a(M)`
|
|
556
598
|
width: 30px;
|
|
557
599
|
height: 30px;
|
|
558
|
-
background: ${
|
|
600
|
+
background: ${d.text};
|
|
559
601
|
`,da=a.span`
|
|
560
602
|
font-size: 14px;
|
|
561
603
|
font-weight: 600;
|
|
562
|
-
color: ${
|
|
604
|
+
color: ${d.muted1};
|
|
563
605
|
`,ca=a.div`
|
|
564
606
|
position: sticky;
|
|
565
607
|
bottom: 0;
|
|
@@ -567,7 +609,7 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
567
609
|
gap: 12px;
|
|
568
610
|
margin-top: -8px;
|
|
569
611
|
padding-top: 8px;
|
|
570
|
-
background: ${
|
|
612
|
+
background: ${d.white};
|
|
571
613
|
`,la=a.button`
|
|
572
614
|
flex: 1;
|
|
573
615
|
/* Let the CTAs shrink so their min-content can't widen the modal past the viewport on mobile. */
|
|
@@ -592,40 +634,40 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
592
634
|
CHECKOUT carries, so the two ends of the buy flow match. */
|
|
593
635
|
&[data-variant='gradient'] {
|
|
594
636
|
background: ${L.buyBtn};
|
|
595
|
-
color: ${
|
|
637
|
+
color: ${d.softWhite};
|
|
596
638
|
}
|
|
597
639
|
&[data-variant='gradient']:hover:not(:disabled),
|
|
598
640
|
&[data-variant='gradient']:active:not(:disabled) {
|
|
599
|
-
background-image: linear-gradient(${
|
|
641
|
+
background-image: linear-gradient(${d.dclRed}, ${d.dclRed});
|
|
600
642
|
}
|
|
601
643
|
&[data-variant='outline'] {
|
|
602
644
|
background: transparent;
|
|
603
|
-
border: 0.5px solid ${
|
|
604
|
-
color: ${
|
|
645
|
+
border: 0.5px solid ${d.text};
|
|
646
|
+
color: ${d.text2};
|
|
605
647
|
font-size: 13px;
|
|
606
648
|
}
|
|
607
649
|
/* Figma's outlined hover (738:53251), which on this light card is the readable half of the pair: the
|
|
608
650
|
white-fill hover the dark-field buttons take would be invisible here. Same treatment as the
|
|
609
651
|
drawer's dismissing CTA (CartPopover ctaCss) — the two sit in one flow. */
|
|
610
652
|
&[data-variant='outline']:hover:not(:disabled) {
|
|
611
|
-
background: ${
|
|
612
|
-
color: ${
|
|
653
|
+
background: ${d.text2};
|
|
654
|
+
color: ${d.softWhite};
|
|
613
655
|
}
|
|
614
656
|
&[data-variant='ruby'] {
|
|
615
|
-
background: ${
|
|
616
|
-
color: ${
|
|
657
|
+
background: ${d.dclRed};
|
|
658
|
+
color: ${d.softWhite};
|
|
617
659
|
font-size: 13px;
|
|
618
660
|
letter-spacing: 0.61px;
|
|
619
661
|
}
|
|
620
662
|
// Solid accent fill (the error state's "Try again").
|
|
621
663
|
&[data-variant='purple'] {
|
|
622
|
-
background: ${
|
|
623
|
-
color: ${
|
|
664
|
+
background: ${d.accent};
|
|
665
|
+
color: ${d.softWhite};
|
|
624
666
|
font-size: 13px;
|
|
625
667
|
}
|
|
626
668
|
&:hover:not(:disabled),
|
|
627
669
|
&[data-variant='purple']:hover:not(:disabled) {
|
|
628
|
-
background: ${
|
|
670
|
+
background: ${d.accentHover};
|
|
629
671
|
}
|
|
630
672
|
&:disabled {
|
|
631
673
|
opacity: 0.6;
|
|
@@ -652,7 +694,7 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
652
694
|
font-size: 20px;
|
|
653
695
|
line-height: 1.334;
|
|
654
696
|
font-weight: 400;
|
|
655
|
-
color: ${
|
|
697
|
+
color: ${d.text2};
|
|
656
698
|
|
|
657
699
|
& b {
|
|
658
700
|
font-weight: 700;
|
|
@@ -660,13 +702,13 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
660
702
|
`,ga=a.div`
|
|
661
703
|
font-size: 20px;
|
|
662
704
|
font-weight: 700;
|
|
663
|
-
color: ${
|
|
705
|
+
color: ${d.text2};
|
|
664
706
|
text-align: center;
|
|
665
707
|
`,fa=a.div`
|
|
666
708
|
width: 100%;
|
|
667
709
|
max-width: 456px;
|
|
668
710
|
height: 12px;
|
|
669
|
-
background: ${
|
|
711
|
+
background: ${d.media};
|
|
670
712
|
border-radius: 100px;
|
|
671
713
|
overflow: hidden;
|
|
672
714
|
`,ma=a.span`
|
|
@@ -717,7 +759,7 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
717
759
|
margin: 0;
|
|
718
760
|
font-size: 20px;
|
|
719
761
|
line-height: 1.334;
|
|
720
|
-
color: ${
|
|
762
|
+
color: ${d.text2};
|
|
721
763
|
text-align: center;
|
|
722
764
|
|
|
723
765
|
& b {
|
|
@@ -733,7 +775,7 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
733
775
|
text-align: center;
|
|
734
776
|
}
|
|
735
777
|
}
|
|
736
|
-
`,{colors:D,media:T}=
|
|
778
|
+
`,{colors:D,media:T}=o,Ye=a.section`
|
|
737
779
|
margin-top: 40px;
|
|
738
780
|
`,Ge=a.div`
|
|
739
781
|
display: flex;
|
|
@@ -869,4 +911,4 @@ import{j as n,r as k}from"./react-BYHuwl8r.js";import{s as a,t as d,b,A as M,L a
|
|
|
869
911
|
opacity: 1;
|
|
870
912
|
transform: scale(1.1);
|
|
871
913
|
}
|
|
872
|
-
`;function ya({title:e,items:t,onViewAll:i}){const
|
|
914
|
+
`;function ya({title:e,items:t,onViewAll:i}){const s=k.useRef(null),[l,c]=k.useState(1),[h,w]=k.useState(0),[g,u]=k.useState(!0),[p,y]=k.useState(!1),r=k.useCallback(()=>{const x=s.current;if(!x)return;const{scrollLeft:m,scrollWidth:R,clientWidth:I}=x,O=Math.max(1,Math.ceil(R/I));c(O),w(Math.min(O-1,Math.round(m/I))),u(m<=1),y(m+I>=R-1)},[]);if(k.useEffect(()=>{r();const x=s.current;if(x)return x.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",r),()=>{x.removeEventListener("scroll",r),window.removeEventListener("resize",r)}},[r,t.length]),t.length===0)return null;function f(x){const m=s.current;m&&m.scrollBy({left:x*m.clientWidth,behavior:"smooth"})}function v(x){const m=s.current;m&&m.scrollTo({left:x*m.clientWidth,behavior:"smooth"})}return n.jsxs(Ye,{"data-testid":"carousel",children:[n.jsxs(Ge,{children:[n.jsx(_e,{children:e}),i?n.jsxs(et,{onClick:i,children:[b("collectionCarousel.viewAll"),n.jsx(tt,{name:"chevron-down",size:16})]}):null]}),n.jsxs(at,{children:[n.jsx(H,{"data-side":"left",onClick:()=>f(-1),"aria-label":b("collectionCarousel.scrollLeft"),disabled:g,children:n.jsx("img",{src:q,alt:"","aria-hidden":!0})}),n.jsx(nt,{ref:s,children:t.map(x=>n.jsx(ue,{item:x},x.id))}),n.jsx(H,{"data-side":"right",onClick:()=>f(1),"aria-label":b("collectionCarousel.scrollRight"),disabled:p,children:n.jsx("img",{src:q,alt:"","aria-hidden":!0})})]}),l>1?n.jsx(it,{"aria-label":b("collectionCarousel.pages"),children:Array.from({length:l}).map((x,m)=>n.jsx(ot,{"data-active":m===h||void 0,"aria-label":b("collectionCarousel.goToPage",{page:m+1}),"aria-current":m===h?"true":void 0,onClick:()=>v(m)},m))}):null]})}export{$t as $,Xt as A,Lt as B,Nt as C,ta as D,aa as E,jt as F,na as G,Pt as H,ia as I,oa as J,ra as K,pa as L,It as M,sa as N,da as O,yt as P,ft as Q,gt as R,Et as S,Ft as T,ya as U,kt as V,Yt as W,Vt as X,E as Y,xt as Z,vt as _,St as a,oe as a0,mt as a1,Ce as a2,Ze as a3,se as a4,W as a5,ba as a6,wa as a7,Mt as a8,At as a9,bt as aa,zt as ab,Wt as ac,Tt as b,Dt as c,Rt as d,Ot as e,qt as f,ha as g,ua as h,Ct as i,xa as j,ca as k,la as l,wt as m,ga as n,fa as o,ma as p,Bt as q,Gt as r,_t as s,Ht as t,Kt as u,Ut as v,Qt as w,Zt as x,Jt as y,ea as z};
|