@dcl/shop 0.10.1-31040959942.commit-e9e6433 → 0.10.1-31042990976.commit-7edc9b6
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-CUf8ogRR.js → Activity-Cx-gKp62.js} +3 -3
- package/_assets/{AnimatedBackground-_78VlBdV.js → AnimatedBackground-yDvJglBx.js} +1 -1
- package/_assets/{Assets-UkGI952T.js → Assets-BzPVRWYe.js} +2 -2
- package/_assets/{Assets.styles-D1Vg-U1C.js → Assets.styles-D4-S4NWG.js} +1 -1
- package/_assets/{Authorizations-B3yDMR41.js → Authorizations-gGXOHHeT.js} +1 -1
- package/_assets/Cart-C4zUzYSx.js +669 -0
- package/_assets/{CircularProgress-CB62Wg9m.js → CircularProgress-DNShuaaC.js} +1 -1
- package/_assets/{Collection-CSv9R6xZ.js → Collection-CI_bqtk6.js} +1 -1
- package/_assets/{CollectionCarousel-Cg2MTF9W.js → CollectionCarousel-BAwS8rTZ.js} +119 -119
- package/_assets/{Confetti-Blr9NSjA.js → Confetti-DkcOmptO.js} +1 -1
- package/_assets/{Creator-sh_sYH1o.js → Creator-CFf63R4B.js} +1 -1
- package/_assets/{ErrorNotice-CXsnDhEh.js → ErrorNotice-C_rQ_hZp.js} +1 -1
- package/_assets/{ExchangeController-GIzn0xGk.js → ExchangeController-BPF_kkCP.js} +1 -1
- package/_assets/{Faq-C0nCohQD.js → Faq--E1fBOzk.js} +1 -1
- package/_assets/{GetCredits-CBLkNO-w.js → GetCredits-C2rjzPBY.js} +1 -1
- package/_assets/{Grow-Nzyme9Oa.js → Grow-CyHu9l8s.js} +1 -1
- package/_assets/{HelpersUtil-D0wBF1PA.js → HelpersUtil-Bh7qiwp_.js} +1 -1
- package/_assets/{ItemDetail-DZ3mEshJ.js → ItemDetail-CtR1YHPh.js} +1 -1
- package/_assets/LazyEmoteControls-BUp4tFZX.js +2 -0
- package/_assets/{LoadMore-CKNE48ED.js → LoadMore-BQIcG-2Y.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-CJS5V2Di.js → ManaPricingBanner.styles-Dj_122X4.js} +1 -1
- package/_assets/{MyAssets-Ble658vU.js → MyAssets-Dk_4queh.js} +1 -1
- package/_assets/{MyFavorites-Qri7XFuW.js → MyFavorites-yuyxKJv4.js} +1 -1
- package/_assets/{NotFound-BnEiiuoJ.js → NotFound-rquTctww.js} +1 -1
- package/_assets/{NotificationsBell-CXzlEnr9.js → NotificationsBell-CFCmzqHj.js} +1 -1
- package/_assets/{OutfitDetail-CL1Y8ii5.js → OutfitDetail-BFc4wS6X.js} +1 -1
- package/_assets/{OutfitPreview-DRqW1c5F.js → OutfitPreview-C214293j.js} +1 -1
- package/_assets/{OutfitStudio-DgL1kI47.js → OutfitStudio-OOy9Y3VP.js} +1 -1
- package/_assets/{StoreSettings--R4i191j.js → StoreSettings-BpkjL6md.js} +1 -1
- package/_assets/{Success-DApKfyee.js → Success-BXjczKuA.js} +1 -1
- package/_assets/{SwapController-0aVdHfMW.js → SwapController-CA7wAH0n.js} +1 -1
- package/_assets/{Tooltip-B2qDq-8v.js → Tooltip-BoJS18Z3.js} +1 -1
- package/_assets/{TradeService-COZXjCcV.js → TradeService-DsmKoPxy.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-BYmipTKt.js → W3MFrameProviderSingleton-DKeivVWe.js} +3 -3
- package/_assets/{WebCryptoP256-Cid44am7.js → WebCryptoP256-CJPdW9Ug.js} +1 -1
- package/_assets/{authorizations-dpp0OnHI.js → authorizations-2Xd-ft_C.js} +1 -1
- package/_assets/{basic-An6X8Awg.js → basic-CpO7N7NV.js} +1 -1
- package/_assets/{biconomy-CeZnHUNK.js → biconomy-HF5uwOUc.js} +1 -1
- package/_assets/{builder-Ce37-lC-.js → builder-uBBMnbtK.js} +1 -1
- package/_assets/{buy-Dgj0sRqb.js → buy-CgUGATyG.js} +1 -1
- package/_assets/{buy-gasless-CYY_v3bj.js → buy-gasless-CVTH5KGZ.js} +1 -1
- package/_assets/{categories-KFHNUm7E.js → categories-yTyOCTA2.js} +1 -1
- package/_assets/{ccip-8Mu0bgFv.js → ccip-BjT8ndU2.js} +1 -1
- package/_assets/{ccip-BsYdmRqX.js → ccip-Bq1h60c1.js} +1 -1
- package/_assets/{collectionPage.styles-jwKyDncq.js → collectionPage.styles-BOOK4JE1.js} +5 -5
- package/_assets/{controller-Cam05qfJ.js → controller-CBtSaaQD.js} +2 -2
- package/_assets/{core-BdiPiyom.js → core-CIuOeePP.js} +4 -4
- package/_assets/{createSvgIcon-cAMuQ1mD.js → createSvgIcon-Dax4uwaL.js} +1 -1
- package/_assets/{custom-C7A-Vb1Q.js → custom-CYUokIbm.js} +1 -1
- package/_assets/{data-capture-COGpG9-r.js → data-capture-6P55-IaB.js} +1 -1
- package/_assets/{email-WblN0-6I.js → email-nYmfz15C.js} +1 -1
- package/_assets/{embedded-wallet-BDGaY-OT.js → embedded-wallet-D_e_UWzV.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-D7YX5KN0.js → emotion-styled.browser.esm-s1GWUoDX.js} +1 -1
- package/_assets/{engine-DjipK7B5.js → engine-CpLQoIqI.js} +1 -1
- package/_assets/{errors-CzBZCztT.js → errors-hu6Xw0D2.js} +1 -1
- package/_assets/{estimate-l1-fee-Bk8rxjZm.js → estimate-l1-fee-CLRDa6fI.js} +1 -1
- package/_assets/{execute-C4AIZjft.js → execute-DqPg9Ksw.js} +2 -2
- package/_assets/{features-Dz4wLY98.js → features-BtrrmffG.js} +1 -1
- package/_assets/{fetchTokenMetadata-DjPW-ayp.js → fetchTokenMetadata-DFJ36WnI.js} +2 -2
- package/_assets/{field.styles-BThVZLzX.js → field.styles-XpeJ0COA.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-DMVrxBpI.js → get-ecosystem-wallet-info-DlCx83R8.js} +1 -1
- package/_assets/{getBalance-DeFn5Yjk.js → getBalance-B5ocM9g2.js} +1 -1
- package/_assets/{getNFT-iw9a-h4A.js → getNFT-DBaH5cpy.js} +1 -1
- package/_assets/{getNFT-CRgzh5wf.js → getNFT-oiyevCuO.js} +1 -1
- package/_assets/{grid.styles-U_Gpy1wT.js → grid.styles-Dpb8Greh.js} +1 -1
- package/_assets/{hashTypedData-CqewBwVq.js → hashTypedData-CeLfcFPQ.js} +1 -1
- package/_assets/{hashTypedData-9Zh9SRr-.js → hashTypedData-NanWeJ-D.js} +1 -1
- package/_assets/{in-app-DNl1emxp.js → in-app-DfEVZ7ts.js} +1 -1
- package/_assets/{in-app-wallet-calls-CBy5UcNA.js → in-app-wallet-calls-CaankqgP.js} +1 -1
- package/_assets/{index-xLgJxfJy.js → index-B-kvIPu1.js} +1 -1
- package/_assets/{index-m-SAK4uo.js → index-B0jVlmk0.js} +1 -1
- package/_assets/{index-RHSCZ-t0.js → index-B4WRMX84.js} +1 -1
- package/_assets/{index-1tktbprD.js → index-BC1n3NBn.js} +1 -1
- package/_assets/{index-BC_qLj4b.js → index-BGSoCmOn.js} +1 -1
- package/_assets/{index-BIJiNaiS.js → index-BHzYL11-.js} +1 -1
- package/_assets/{index-Dd8eTuKB.js → index-BJ6fvgAM.js} +1 -1
- package/_assets/{index-ByPjVaiq.js → index-BKYIrw8q.js} +1 -1
- package/_assets/{index-buu21jrH.js → index-BL2RPpVH.js} +11 -11
- package/_assets/{index-B3jctKqs.js → index-BMGdvlP9.js} +2 -2
- package/_assets/{index-5SMH4VL2.js → index-BNnBkkJr.js} +1 -1
- package/_assets/{index-CpQbv3Zu.js → index-BPoXI4qO.js} +1 -1
- package/_assets/{index-BsZ1af_A.js → index-BXdpk7Oq.js} +1 -1
- package/_assets/{index-DgPfV4X0.js → index-BZQS2qMR.js} +1 -1
- package/_assets/{index-C6rF-YrH.js → index-BccvdHMd.js} +1 -1
- package/_assets/{index-DO0NylVf.js → index-BntzHAg5.js} +1 -1
- package/_assets/{index-Kq5fobWt.js → index-BqVSjccZ.js} +1 -1
- package/_assets/{index-C_r09vuw.js → index-Bry4nBQ3.js} +1 -1
- package/_assets/{index-Dqdf5xVB.js → index-Bu9Qy6np.js} +1 -1
- package/_assets/{index-D8LZCVOB.js → index-C3zA3tgr.js} +1 -1
- package/_assets/{index-BdkbjSWP.js → index-C8Cm7Ukd.js} +1 -1
- package/_assets/{index-B0wdLudq.js → index-CIJje8vF.js} +1 -1
- package/_assets/{index-CJCxe5kr.js → index-COqbI5lZ.js} +1 -1
- package/_assets/{index-BwGtaRec.js → index-CPOch-_L.js} +1 -1
- package/_assets/{index-D6LfEXYp.js → index-CQMg581G.js} +1 -1
- package/_assets/{index-B7Rm4vXt.js → index-CWMeoaW8.js} +1 -1
- package/_assets/{index-HQUcvKn4.js → index-CYd-9A8i.js} +3 -3
- package/_assets/{index-BVDj7GJL.js → index-CaH_IfZ9.js} +1 -1
- package/_assets/{index-y3U1nB0H.js → index-CaRe7gid.js} +3 -3
- package/_assets/{index-Bc0mTSPi.js → index-Cbb2oZ2Y.js} +1 -1
- package/_assets/{index-DM2dLJ-M.js → index-ChhX0J8g.js} +1 -1
- package/_assets/{index-BdQAMxgJ.js → index-CkvT2_Qp.js} +2 -2
- package/_assets/{index-h--qqRrb.js → index-D9avTVnT.js} +1 -1
- package/_assets/{index-CcihKRSf.js → index-DI0-gUeO.js} +1 -1
- package/_assets/{index-DfIQCR2U.js → index-DJxot5zE.js} +1 -1
- package/_assets/{index-D3iRZfgO.js → index-De-xiANX.js} +1 -1
- package/_assets/{index-CqJzKRxe.js → index-Deo0xkWr.js} +2 -2
- package/_assets/{index-CHCVsh7P.js → index-DxD-NQZ2.js} +1 -1
- package/_assets/{index-D3qXchU2.js → index-DxUWfPTE.js} +1 -1
- package/_assets/{index-DXURSM0-.js → index-Dyf04oQ8.js} +1 -1
- package/_assets/{index-DwrPmkl2.js → index-FaWeourd.js} +1 -1
- package/_assets/{index-Cmc0GHkA.js → index-OiVd03k_.js} +1 -1
- package/_assets/{index-Dax05iV5.js → index-T6PQTPj1.js} +1 -1
- package/_assets/{index-CU5QiUkb.js → index-UiKz3U--.js} +1 -1
- package/_assets/{index-CjvMMH2k.js → index-_l18b6D8.js} +1 -1
- package/_assets/{index-DQ7Kosvv.js → index-cpjoojGa.js} +3 -3
- package/_assets/{index-xMSSxrHn.js → index-enm6a-Yh.js} +1 -1
- package/_assets/{index-DT4Zi23l.js → index-gR7VkXwX.js} +1 -1
- package/_assets/{index-DtAsm8Nr.js → index-jzVm2M_d.js} +1 -1
- package/_assets/{index-Ba-yhU-2.js → index-sW8OdK66.js} +1 -1
- package/_assets/{index-DhRx4LkD.js → index-w9D58X3R.js} +1 -1
- package/_assets/{index-MPYM0LiN.js → index-zPBk9zxn.js} +1 -1
- package/_assets/{index.es-CLldxJUJ.js → index.es-COh1P5q0.js} +1 -1
- package/_assets/{index.es-DGQjR0dR.js → index.es-DKfCNVgZ.js} +4 -4
- package/_assets/{index.es-DqD9HkXC.js → index.es-DZrZt1nk.js} +1 -1
- package/_assets/{localBatchGatewayRequest-COpd6g60.js → localBatchGatewayRequest-BI4PJuWG.js} +1 -1
- package/_assets/{networks-ChmokwGp.js → networks-Blxn8DDe.js} +1 -1
- package/_assets/{onramp-BmIZ6r8P.js → onramp-Dy-wl2-G.js} +1 -1
- package/_assets/{openzeppelin-CzypsJB4.js → openzeppelin-BMYbmCTg.js} +1 -1
- package/_assets/{parseNft-CydF3Edv.js → parseNft-C3NZ6wub.js} +2 -2
- package/_assets/{parseSignature-u2B-ofRt.js → parseSignature-C_OIotiZ.js} +3 -3
- package/_assets/{parseSignature-BeoYj8uB.js → parseSignature-DYiE9TKW.js} +1 -1
- package/_assets/{passkeys-CVYlDRWu.js → passkeys-B1XwJZLc.js} +1 -1
- package/_assets/{pay-with-exchange-DqJU65WS.js → pay-with-exchange-CNHEYWhj.js} +1 -1
- package/_assets/{qr-overlay-DNwX_TPq.js → qr-overlay-xYKFPsA7.js} +1 -1
- package/_assets/{receive-uVtJpZxa.js → receive-CZ46hzUV.js} +1 -1
- package/_assets/{resolveImplementation-CRaloAyf.js → resolveImplementation-CjcXKJyr.js} +1 -1
- package/_assets/{rpc-CqfSA8g9.js → rpc-CcyaVsGv.js} +1 -1
- package/_assets/{secp256k1-DvDQYEQd.js → secp256k1-CKJqWWFY.js} +1 -1
- package/_assets/{secp256k1-Do9ofviG.js → secp256k1-CtAF_8et.js} +1 -1
- package/_assets/{secp256k1-2YskFph9.js → secp256k1-ZiNVKyYC.js} +1 -1
- package/_assets/{send-IbCZj2la.js → send-C3JUT-Wt.js} +1 -1
- package/_assets/{send-batch-transaction-DFD_LTct.js → send-batch-transaction-BjDzAjfB.js} +1 -1
- package/_assets/{send-eip712-transaction-DBf5Z4g_.js → send-eip712-transaction-C_cuPsBN.js} +2 -2
- package/_assets/{send-gasless-transaction-TFSfXMLh.js → send-gasless-transaction-nJMNrEi5.js} +2 -2
- package/_assets/{send-transaction-DGhInFte.js → send-transaction-DlrF4JVI.js} +2 -2
- package/_assets/{sendMetaTransaction-CzqCMKMd.js → sendMetaTransaction-CYTRgQS4.js} +1 -1
- package/_assets/{sendRawTransaction-qf9SJfpX.js → sendRawTransaction-CrjHCLLH.js} +3 -3
- package/_assets/{serializeTransaction-D4cHSu0O.js → serializeTransaction-DCwr_uqm.js} +1 -1
- package/_assets/{session-proposal-5AODiiln.js → session-proposal-Cr_4TYaU.js} +1 -1
- package/_assets/{session-request-hpYNptgl.js → session-request-VECe4LIn.js} +2 -2
- package/_assets/{signing-BQUpSEqZ.js → signing-DsQKDYvj.js} +3 -3
- package/_assets/{skeleton.styles-BfEPveSL.js → skeleton.styles-B5haYcet.js} +1 -1
- package/_assets/{socials-D6EP9g5a.js → socials-B80b3Xbl.js} +1 -1
- package/_assets/{styled-FDInU8Rs.js → styled-qF6AFIDl.js} +1 -1
- package/_assets/{swaps-CqwmfiPX.js → swaps-9KfTzTvK.js} +1 -1
- package/_assets/{thirdweb-Cecbmps_.js → thirdweb-C31f21KI.js} +3 -3
- package/_assets/{to-serializable-transaction-u0MhoPX5.js → to-serializable-transaction-DRO125BM.js} +2 -2
- package/_assets/{transactionReceipt-l4NJYcz9.js → transactionReceipt-D2IEagp9.js} +1 -1
- package/_assets/{transactions-CeFT9Jfi.js → transactions-COJcFMl1.js} +1 -1
- package/_assets/{useCreditPacks-DQE6Gg5O.js → useCreditPacks-UUgawD-U.js} +1 -1
- package/_assets/{useImportable-Dh1ZOsU2.js → useImportable-DdzyhNKj.js} +1 -1
- package/_assets/{useInfiniteGrid--LOCzyU9.js → useInfiniteGrid-CWAXtPPS.js} +1 -1
- package/_assets/{useTheme-CpSHkSMG.js → useTheme-nSt_zjh9.js} +1 -1
- package/_assets/{verifyHash-BSS9_MWX.js → verifyHash-3joPxTRt.js} +1 -1
- package/_assets/{w3m-modal-ByuBko0g.js → w3m-modal-BdMUp7-V.js} +1 -1
- package/_assets/{w3m-modal-BCjN4Uqc.js → w3m-modal-fllBGzZL.js} +1 -1
- package/_assets/{wait-for-tx-receipt-CfVB-CU0.js → wait-for-tx-receipt-DLk5rirA.js} +1 -1
- package/_assets/{wallets-tUzLLBvA.js → wallets-p_5_3A7U.js} +5 -5
- package/_assets/{web-connector-BfVr5QpB.js → web-connector-B1ItZy3i.js} +3 -3
- package/_assets/{writeContract-B4n8yTsB.js → writeContract-_6f7I-3C.js} +1 -1
- package/_assets/{zoraTestnet-CNY7oWT9.js → zoraTestnet-BegtFmVb.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Cart-CbY3Hhq6.js +0 -695
- package/_assets/LazyEmoteControls-BEt_49wK.js +0 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{j as
|
|
1
|
+
import{j as e,r as v}from"./react-BYHuwl8r.js";import{s as t,t as s,b as m,z as k,L as $,bW as C,C as Y,w as X,I as U,F as Z,g as W,h as B,f as q,at as J,aa as ee,b_ as F,ar as te}from"./index-BL2RPpVH.js";import{s as ne,f as _,A as H,g as K,r as ae,m as ie,i as oe,j as se}from"./authorizations-2Xd-ft_C.js";import{i as re}from"./errors-hu6Xw0D2.js";import{E as ce}from"./ErrorNotice-C_rQ_hZp.js";import{l as de,m as le,n as pe}from"./buy-CgUGATyG.js";import{s as he,M as ue,E as xe}from"./sendMetaTransaction-CYTRgQS4.js";import{I as ge,C as fe}from"./ethers-BDpbhgX6.js";const R="shop:resume_after_signin",me=900*1e3;function ct(a){try{sessionStorage.setItem(R,JSON.stringify({...a,at:Date.now()}))}catch{}}function dt(a){let n;try{n=sessionStorage.getItem(R)}catch{return null}if(!n)return null;try{sessionStorage.removeItem(R)}catch{}let i;try{i=JSON.parse(n)}catch{return null}return!i||i.type!==a||typeof i.at!="number"||Date.now()-i.at>me?null:i.type==="cart-checkout"?{type:"cart-checkout"}:{type:"item-buy",path:i.path}}function be(a,n){return(a+n-1n)/n}function ye(a,n,i){return a<=0||n<=0?0n:a>=n?i:be(i*BigInt(a),BigInt(n))}function lt(a){var b,h,w;const n=Number.isFinite(a.priceCents)?Math.max(0,Math.trunc(a.priceCents)):0,i=Number.isFinite(a.balanceCents)?Math.max(0,Math.trunc(a.balanceCents)):0,o=a.priceManaWei>0n?a.priceManaWei:0n,l=a.manaBalanceWei>0n?a.manaBalanceWei:0n;if(n<=0)return{options:[],preferred:null,manaShortfall:null};const c=[];if(i>=n&&c.push({method:"credits",creditsCents:n,manaWei:0n}),o>0n&&i>0&&i<n){const d=n-i,y=ye(d,n,o);l>=y&&c.push({method:"combined",creditsCents:i,manaWei:y})}o>0n&&l>=o&&c.push({method:"mana",creditsCents:0,manaWei:o});const p=((b=c.find(d=>d.method==="credits"))==null?void 0:b.method)??((h=c.find(d=>d.method==="combined"))==null?void 0:h.method)??((w=c.find(d=>d.method==="mana"))==null?void 0:w.method)??null,g=!c.some(d=>d.method==="mana"||d.method==="combined")&&o>0n&&l>0n?{manaWei:l,manaCents:we(l,n,o),priceCents:n}:null;return{options:c,preferred:p,manaShortfall:g}}function we(a,n,i){return Number(a*BigInt(n)/i)}function pt(a,n){let i=Number.isFinite(n)?Math.max(0,Math.trunc(n)):0;return a.map(o=>{const l=Number.isFinite(o)?Math.max(0,Math.trunc(o)):0,c=Math.min(l,i);return i-=c,c})}function z(a){return Number.isFinite(a)?Math.max(0,a)/10:0}function ht(a,n){return a.options.find(i=>i.method===n)??null}function ut(a,n){if(!Number.isFinite(a)||a<=0||n<=0n)return null;const i=a/10;return Number(n)/1e18/i}const T="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",ve=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 12px;
|
|
5
5
|
align-items: stretch;
|
|
6
6
|
width: 100%;
|
|
7
|
-
`,
|
|
7
|
+
`,O=`
|
|
8
8
|
width: 100%;
|
|
9
9
|
min-height: 56px;
|
|
10
10
|
display: flex;
|
|
@@ -19,37 +19,37 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
19
19
|
transition:
|
|
20
20
|
background 0.15s ease,
|
|
21
21
|
filter 0.15s ease;
|
|
22
|
-
font-family: ${
|
|
22
|
+
font-family: ${s.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: ${s.colors.softWhite};
|
|
29
29
|
|
|
30
30
|
&:focus-visible {
|
|
31
|
-
outline: 2px solid ${
|
|
31
|
+
outline: 2px solid ${s.colors.accent};
|
|
32
32
|
outline-offset: 2px;
|
|
33
33
|
}
|
|
34
34
|
&:disabled {
|
|
35
35
|
opacity: 0.6;
|
|
36
36
|
cursor: default;
|
|
37
37
|
}
|
|
38
|
-
`,
|
|
39
|
-
${
|
|
40
|
-
background: ${
|
|
38
|
+
`,D=t.button`
|
|
39
|
+
${O}
|
|
40
|
+
background: ${s.gradients.amethyst};
|
|
41
41
|
|
|
42
42
|
&:hover:not(:disabled) {
|
|
43
43
|
filter: brightness(1.08);
|
|
44
44
|
}
|
|
45
|
-
`,N=
|
|
46
|
-
${
|
|
47
|
-
background: ${
|
|
45
|
+
`,N=t.button`
|
|
46
|
+
${O}
|
|
47
|
+
background: ${s.colors.text2};
|
|
48
48
|
|
|
49
49
|
&:hover:not(:disabled) {
|
|
50
|
-
background: ${
|
|
50
|
+
background: ${s.colors.gray0};
|
|
51
51
|
}
|
|
52
|
-
`,M=
|
|
52
|
+
`,M=t.span`
|
|
53
53
|
display: inline-flex;
|
|
54
54
|
align-items: center;
|
|
55
55
|
gap: 6px;
|
|
@@ -64,9 +64,9 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
64
64
|
.ico {
|
|
65
65
|
width: 24px;
|
|
66
66
|
height: 24px;
|
|
67
|
-
background: ${
|
|
67
|
+
background: ${s.colors.softWhite};
|
|
68
68
|
}
|
|
69
|
-
`,E=
|
|
69
|
+
`,E=t.span`
|
|
70
70
|
position: relative;
|
|
71
71
|
display: block;
|
|
72
72
|
width: 30px;
|
|
@@ -84,34 +84,34 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
84
84
|
height: 24px;
|
|
85
85
|
display: block;
|
|
86
86
|
}
|
|
87
|
-
`,ke=
|
|
87
|
+
`,ke=t.span`
|
|
88
88
|
font-size: 13px;
|
|
89
89
|
font-weight: 600;
|
|
90
90
|
letter-spacing: 0.02em;
|
|
91
91
|
opacity: 0.85;
|
|
92
|
-
|
|
92
|
+
`,je=t.span`
|
|
93
93
|
font-size: 18px;
|
|
94
94
|
font-weight: 600;
|
|
95
95
|
opacity: 0.7;
|
|
96
|
-
|
|
96
|
+
`,$e=t.p`
|
|
97
97
|
margin: 0;
|
|
98
|
-
font-family: ${
|
|
98
|
+
font-family: ${s.font.sans};
|
|
99
99
|
font-weight: 400;
|
|
100
100
|
font-size: 12px;
|
|
101
101
|
line-height: 1;
|
|
102
|
-
color: ${
|
|
102
|
+
color: ${s.colors.muted};
|
|
103
103
|
text-align: center;
|
|
104
|
-
`,Ce=
|
|
104
|
+
`,Ce=t.p`
|
|
105
105
|
margin: -4px 0 0;
|
|
106
|
-
font-family: ${
|
|
106
|
+
font-family: ${s.font.sans};
|
|
107
107
|
font-weight: 400;
|
|
108
108
|
font-size: 12px;
|
|
109
109
|
line-height: 1.4;
|
|
110
|
-
color: ${
|
|
110
|
+
color: ${s.colors.muted};
|
|
111
111
|
text-align: center;
|
|
112
|
-
`;function xt({options:a,totalCents:n,onPay:i,busy:
|
|
112
|
+
`;function xt({options:a,totalCents:n,onPay:i,busy:o=!1,rateNote:l,creditsLabel:c,shortfall:p,showCreditsAmount:x=!0,creditsFallback:g=null}){const b=a.some(h=>h.method==="credits");return e.jsxs(ve,{children:[!b&&g?e.jsx(D,{type:"button","data-testid":"pay-with-credits-topup",onClick:g.onClick,disabled:o,children:e.jsx("span",{children:g.label})}):null,a.map(h=>h.method==="credits"?e.jsxs(D,{type:"button","data-testid":"pay-with-credits",onClick:()=>i("credits"),disabled:o,children:[e.jsx("span",{children:c??m("buyModal.buy")}),x?e.jsxs(M,{children:[e.jsx(k,{}),e.jsx("span",{children:$(z(h.creditsCents))})]}):null]},"credits"):h.method==="mana"?e.jsxs(N,{type:"button","data-testid":"pay-with-mana",onClick:()=>i("mana"),disabled:o,children:[e.jsx("span",{children:m("buyModal.buyWithMana")}),e.jsxs(M,{children:[e.jsx(E,{children:e.jsx("img",{src:T,alt:"","aria-hidden":!0})}),e.jsx("span",{children:C(h.manaWei)})]})]},"mana"):e.jsxs(N,{type:"button","data-testid":"pay-with-combined",onClick:()=>i("combined"),disabled:o,children:[e.jsx("span",{children:m("buyModal.buyWith")}),e.jsxs(M,{children:[e.jsx(k,{}),e.jsx("span",{children:$(z(h.creditsCents))}),e.jsx(je,{children:"+"}),e.jsx(E,{children:e.jsx("img",{src:T,alt:"","aria-hidden":!0})}),e.jsx("span",{children:C(h.manaWei)}),e.jsx(ke,{children:"MANA"})]})]},"combined")),p?e.jsxs(e.Fragment,{children:[e.jsxs(N,{type:"button","data-testid":"pay-with-mana-disabled",disabled:!0,children:[e.jsx("span",{children:m("buyModal.buyWithMana")}),e.jsxs(M,{children:[e.jsx(E,{children:e.jsx("img",{src:T,alt:"","aria-hidden":!0})}),e.jsx("span",{children:C(p.manaWei)})]})]},"mana-short"),e.jsx(Ce,{"data-testid":"mana-shortfall-note",children:m("buyModal.manaWorth",{mana:C(p.manaWei),credits:$(z(p.manaCents)),price:$(z(p.priceCents)),currency:Y.name})})]}):null,l?e.jsx($e,{"data-testid":"mana-rate-note",children:l}):null,e.jsx("span",{hidden:!0,"data-testid":"pay-total-cents",children:n})]})}function gt(a,n){const i=(o,...l)=>void a.invalidateQueries({queryKey:n?[o,...l]:[o]});a.invalidateQueries({queryKey:["usd-balance"]}),a.invalidateQueries({queryKey:["detail-trade"]}),a.invalidateQueries({queryKey:["shop-item"]}),i("owned-token",n==null?void 0:n.contractAddress,n==null?void 0:n.tokenId),i("public-token",n==null?void 0:n.contractAddress,n==null?void 0:n.tokenId),i("item-resales",n==null?void 0:n.contractAddress,n==null?void 0:n.itemId),a.invalidateQueries({queryKey:["shop-items"]}),a.invalidateQueries({queryKey:["catalog-items"]}),a.invalidateQueries({queryKey:["overview-listings"]}),a.invalidateQueries({queryKey:["upsell-listings"]}),a.invalidateQueries({queryKey:["my-assets"]}),a.invalidateQueries({queryKey:["purchases"]}),a.invalidateQueries({queryKey:["owned-item-count"]})}const ze=X`
|
|
113
113
|
to { transform: rotate(360deg); }
|
|
114
|
-
`,Me=
|
|
114
|
+
`,Me=t.div`
|
|
115
115
|
position: fixed;
|
|
116
116
|
inset: 0;
|
|
117
117
|
z-index: 10000;
|
|
@@ -120,33 +120,33 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
120
120
|
justify-content: center;
|
|
121
121
|
padding: 16px;
|
|
122
122
|
background: rgba(22, 21, 24, 0.55);
|
|
123
|
-
`,Ae=
|
|
123
|
+
`,Ae=t.div`
|
|
124
124
|
width: 480px;
|
|
125
125
|
max-width: 100%;
|
|
126
126
|
max-height: 92vh;
|
|
127
127
|
overflow-y: auto;
|
|
128
|
-
background: ${
|
|
128
|
+
background: ${s.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);
|
|
132
132
|
display: flex;
|
|
133
133
|
flex-direction: column;
|
|
134
134
|
gap: 20px;
|
|
135
|
-
`,We=
|
|
135
|
+
`,We=t.div`
|
|
136
136
|
display: flex;
|
|
137
137
|
align-items: center;
|
|
138
138
|
justify-content: space-between;
|
|
139
139
|
gap: 8px;
|
|
140
140
|
padding-bottom: 16px;
|
|
141
|
-
border-bottom: 1px solid ${
|
|
142
|
-
`,Ie=
|
|
141
|
+
border-bottom: 1px solid ${s.colors.gray4};
|
|
142
|
+
`,Ie=t.h2`
|
|
143
143
|
margin: 0;
|
|
144
|
-
font-family: ${
|
|
144
|
+
font-family: ${s.font.sans};
|
|
145
145
|
font-weight: 600;
|
|
146
146
|
font-size: 20px;
|
|
147
147
|
line-height: 1.6;
|
|
148
|
-
color: ${
|
|
149
|
-
`,Se=
|
|
148
|
+
color: ${s.colors.text};
|
|
149
|
+
`,Se=t.button`
|
|
150
150
|
flex: none;
|
|
151
151
|
display: grid;
|
|
152
152
|
place-items: center;
|
|
@@ -155,7 +155,7 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
155
155
|
border: 0;
|
|
156
156
|
background: none;
|
|
157
157
|
cursor: pointer;
|
|
158
|
-
color: ${
|
|
158
|
+
color: ${s.colors.text};
|
|
159
159
|
|
|
160
160
|
.ico {
|
|
161
161
|
width: 18px;
|
|
@@ -166,28 +166,28 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
166
166
|
cursor: default;
|
|
167
167
|
}
|
|
168
168
|
&:focus-visible {
|
|
169
|
-
outline: 2px solid ${
|
|
169
|
+
outline: 2px solid ${s.colors.accent};
|
|
170
170
|
outline-offset: 2px;
|
|
171
171
|
}
|
|
172
|
-
`,Te=
|
|
172
|
+
`,Te=t.div`
|
|
173
173
|
display: grid;
|
|
174
174
|
grid-template-columns: 44px 1fr;
|
|
175
175
|
align-items: center;
|
|
176
176
|
gap: 14px;
|
|
177
177
|
padding: 14px 18px;
|
|
178
|
-
background: ${
|
|
179
|
-
border: 1px solid ${
|
|
178
|
+
background: ${s.colors.white};
|
|
179
|
+
border: 1px solid ${s.colors.line};
|
|
180
180
|
border-radius: 16px;
|
|
181
|
-
`,Ne=
|
|
181
|
+
`,Ne=t.div`
|
|
182
182
|
width: 44px;
|
|
183
183
|
height: 44px;
|
|
184
184
|
border-radius: 10px;
|
|
185
|
-
background: ${
|
|
185
|
+
background: ${s.colors.media};
|
|
186
186
|
overflow: hidden;
|
|
187
187
|
display: flex;
|
|
188
188
|
align-items: center;
|
|
189
189
|
justify-content: center;
|
|
190
|
-
color: ${
|
|
190
|
+
color: ${s.colors.muted2};
|
|
191
191
|
|
|
192
192
|
img {
|
|
193
193
|
width: 100%;
|
|
@@ -198,39 +198,39 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
198
198
|
width: 26px;
|
|
199
199
|
height: 26px;
|
|
200
200
|
}
|
|
201
|
-
`,Ee=
|
|
201
|
+
`,Ee=t.div`
|
|
202
202
|
min-width: 0;
|
|
203
203
|
display: flex;
|
|
204
204
|
flex-direction: column;
|
|
205
205
|
gap: 4px;
|
|
206
|
-
`,Be=
|
|
206
|
+
`,Be=t.span`
|
|
207
207
|
font-weight: 700;
|
|
208
|
-
color: ${
|
|
209
|
-
`,
|
|
208
|
+
color: ${s.colors.text};
|
|
209
|
+
`,Re=t.span`
|
|
210
210
|
font-size: 13px;
|
|
211
211
|
line-height: 1.45;
|
|
212
|
-
color: ${
|
|
213
|
-
`,
|
|
212
|
+
color: ${s.colors.muted};
|
|
213
|
+
`,Le=t.p`
|
|
214
214
|
margin: 0;
|
|
215
215
|
font-size: 12px;
|
|
216
216
|
line-height: 1.5;
|
|
217
|
-
color: ${
|
|
218
|
-
`,Pe=
|
|
217
|
+
color: ${s.colors.muted2};
|
|
218
|
+
`,Pe=t.div`
|
|
219
219
|
display: flex;
|
|
220
220
|
gap: 12px;
|
|
221
221
|
|
|
222
|
-
${
|
|
222
|
+
${s.media.maxWidth("mobile")} {
|
|
223
223
|
flex-direction: column-reverse;
|
|
224
224
|
}
|
|
225
|
-
`,Fe=
|
|
225
|
+
`,Fe=t.button`
|
|
226
226
|
flex: 1 1 0;
|
|
227
227
|
height: 48px;
|
|
228
|
-
border: 2px solid ${
|
|
228
|
+
border: 2px solid ${s.colors.accent};
|
|
229
229
|
border-radius: 12px;
|
|
230
230
|
background: transparent;
|
|
231
|
-
color: ${
|
|
231
|
+
color: ${s.colors.accent};
|
|
232
232
|
cursor: pointer;
|
|
233
|
-
font-family: ${
|
|
233
|
+
font-family: ${s.font.sans};
|
|
234
234
|
font-weight: 600;
|
|
235
235
|
font-size: 13px;
|
|
236
236
|
line-height: 24px;
|
|
@@ -245,10 +245,10 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
245
245
|
opacity: 0.5;
|
|
246
246
|
}
|
|
247
247
|
&:focus-visible {
|
|
248
|
-
outline: 2px solid ${
|
|
248
|
+
outline: 2px solid ${s.colors.accent};
|
|
249
249
|
outline-offset: 2px;
|
|
250
250
|
}
|
|
251
|
-
`,Ke=
|
|
251
|
+
`,Ke=t.button`
|
|
252
252
|
flex: 1 1 0;
|
|
253
253
|
display: inline-flex;
|
|
254
254
|
align-items: center;
|
|
@@ -257,10 +257,10 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
257
257
|
height: 48px;
|
|
258
258
|
border: 0;
|
|
259
259
|
border-radius: 12px;
|
|
260
|
-
background: ${
|
|
261
|
-
color: ${
|
|
260
|
+
background: ${s.colors.accent};
|
|
261
|
+
color: ${s.colors.softWhite};
|
|
262
262
|
cursor: pointer;
|
|
263
|
-
font-family: ${
|
|
263
|
+
font-family: ${s.font.sans};
|
|
264
264
|
font-weight: 600;
|
|
265
265
|
font-size: 13px;
|
|
266
266
|
line-height: 24px;
|
|
@@ -268,39 +268,39 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
268
268
|
text-transform: uppercase;
|
|
269
269
|
|
|
270
270
|
&:hover:not(:disabled) {
|
|
271
|
-
background: ${
|
|
271
|
+
background: ${s.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 ${s.colors.accent};
|
|
279
279
|
outline-offset: 2px;
|
|
280
280
|
}
|
|
281
|
-
`,De=
|
|
281
|
+
`,De=t.span`
|
|
282
282
|
width: 16px;
|
|
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: ${s.colors.white};
|
|
287
287
|
animation: ${ze} 0.7s linear infinite;
|
|
288
288
|
|
|
289
289
|
@media (prefers-reduced-motion: reduce) {
|
|
290
290
|
animation: none;
|
|
291
291
|
}
|
|
292
|
-
`;function ft({auth:a,signer:n,title:i,reason:
|
|
292
|
+
`;function ft({auth:a,signer:n,title:i,reason:o,name:l,image:c,icon:p,onAuthorized:x,onCancel:g,onClose:b}){const[h,w]=v.useState(!1),[d,y]=v.useState(null);async function j(){w(!0),y(null);try{await ne({auth:a,signer:n,active:!0}),x()}catch(u){re(u)?y(m("authorizeStep.errorRejected")):(Z(u,{flow:"authorize_step",kind:a.kind}),y(m("authorizeStep.errorGeneric"))),w(!1)}}return e.jsx(Me,{onClick:h?void 0:b,role:"presentation",children:e.jsxs(Ae,{onClick:u=>u.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":i,children:[e.jsxs(We,{children:[e.jsx(Ie,{children:i}),e.jsx(Se,{onClick:b,disabled:h,"aria-label":m("authorizeStep.close"),children:e.jsx(U,{name:"close",className:"ico"})})]}),e.jsxs(Te,{"data-testid":"authorize-step-row",children:[e.jsx(Ne,{children:c?e.jsx("img",{src:c,alt:""}):p}),e.jsxs(Ee,{children:[e.jsx(Be,{title:l,children:l}),e.jsx(Re,{children:o})]})]}),e.jsx(Le,{children:m("authorizeStep.note")}),e.jsx(ce,{message:d}),e.jsxs(Pe,{children:[e.jsx(Fe,{type:"button",onClick:g,disabled:h,children:m("authorizeStep.cancel")}),e.jsx(Ke,{type:"button","data-testid":"authorize-step-action",onClick:()=>void j(),disabled:h,children:h?e.jsxs(e.Fragment,{children:[e.jsx(De,{"aria-hidden":!0}),m("authorizeStep.authorizing")]}):m("authorizeStep.authorize")})]})]})})}async function mt(a){const[n]=await Qe({...a,trades:[a.trade]});return n}async function Qe(a){const{trades:n,buyer:i,signer:o,onSigned:l}=a;if(n.length===0)throw new Error("No items to buy");const c=new Map;for(const x of n){const g=`${x.chainId}:${x.contract.toLowerCase()}`,b=c.get(g);b?b.push(x):c.set(g,[x])}const p=[];for(const x of c.values())p.push(await Ue({trades:x,buyer:i,signer:o,onSigned:l}));return p}async function Ue(a){const{trades:n,buyer:i,signer:o,onSigned:l}=a,c=n[0],p=W(q(c.contract),c.chainId),x=W(B.MANAToken,c.chainId);await _({auth:{kind:H.Allowance,contractAddress:x.address,spenderAddress:p.address,chainId:c.chainId},signer:o});const g=n.map(d=>le(d,i));if(K.enabled)try{const d=new ge(p.abi).encodeFunctionData("accept",[g]),y=ae(),j=ie(o.provider,y),u=await he(j,y,d,p,{serverURL:K.relayerUrl});return l==null||l(),await oe(u,"the MANA purchase"),u}catch(d){if(d instanceof ue&&d.code===xe.USER_DENIED||d instanceof se)throw d;console.warn("[buyWithMana] gasless meta-tx failed, falling back to a direct tx:",d)}await J(o.provider,c.chainId);const h=await new fe(p.address,p.abi,o).accept(g,pe(c.chainId));return l==null||l(),(await h.wait()).transactionHash}async function bt(a){const{trade:n,buyer:i,signer:o,credits:l,manaGapWei:c,onBroadcast:p,onReverted:x}=a;if(l.length===0)throw new Error("No credits to spend — use buyWithMana for a MANA-only purchase");if(c<=0n)throw new Error("No MANA gap to cover — use buyWithCredits for a credits-only purchase");const g=W(B.MANAToken,n.chainId),b=W(B.CreditsManager,n.chainId);await _({auth:{kind:H.Allowance,contractAddress:g.address,spenderAddress:b.address,chainId:n.chainId},signer:o});const w=(l.reduce((d,y)=>d+BigInt(y.availableAmount),0n)+c).toString();return de({trade:n,buyer:i,signer:o,credits:l,maxCreditedValue:w,onBroadcast:p,onReverted:x})}function yt(a){return e.jsx("svg",{viewBox:"0 0 18 18",width:"18",height:"18","aria-hidden":!0,...a,children:e.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#161518",strokeWidth:"1.8",strokeLinecap:"round"})})}function wt(a){return e.jsxs("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":!0,...a,children:[e.jsx("path",{d:"M12 3L2 20h20L12 3z",fill:"none",stroke:"#691fa9",strokeWidth:"1.8",strokeLinejoin:"round"}),e.jsx("path",{d:"M12 9v5",stroke:"#691fa9",strokeWidth:"1.8",strokeLinecap:"round"}),e.jsx("circle",{cx:"12",cy:"17",r:"1.1",fill:"#691fa9"})]})}const{colors:r,gradients:V,radius:G,z:_e}=s,vt=t.div`
|
|
293
293
|
position: fixed;
|
|
294
294
|
inset: 0;
|
|
295
295
|
z-index: ${_e.overlay};
|
|
296
296
|
display: flex;
|
|
297
297
|
overflow-y: auto;
|
|
298
298
|
padding: 20px;
|
|
299
|
-
`,kt=
|
|
299
|
+
`,kt=t.div`
|
|
300
300
|
position: fixed;
|
|
301
301
|
inset: 0;
|
|
302
302
|
background: rgba(22, 21, 24, 0.45);
|
|
303
|
-
|
|
303
|
+
`,jt=t.div`
|
|
304
304
|
position: relative;
|
|
305
305
|
z-index: 1;
|
|
306
306
|
margin: auto;
|
|
@@ -330,46 +330,46 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
330
330
|
min-height: 379px;
|
|
331
331
|
justify-content: space-between;
|
|
332
332
|
}
|
|
333
|
-
|
|
333
|
+
`,$t=t.div`
|
|
334
334
|
display: flex;
|
|
335
335
|
flex-direction: column;
|
|
336
336
|
gap: 4px;
|
|
337
337
|
padding-bottom: 16px;
|
|
338
338
|
border-bottom: 1px solid ${r.gray4};
|
|
339
|
-
`,Ct=
|
|
339
|
+
`,Ct=t.div`
|
|
340
340
|
display: flex;
|
|
341
341
|
align-items: flex-start;
|
|
342
342
|
justify-content: space-between;
|
|
343
343
|
gap: 8px;
|
|
344
|
-
`,zt=
|
|
344
|
+
`,zt=t.h2`
|
|
345
345
|
margin: 0;
|
|
346
346
|
font-size: 20px;
|
|
347
347
|
font-weight: 600;
|
|
348
348
|
line-height: 1.6;
|
|
349
349
|
color: ${r.text};
|
|
350
|
-
`,Mt=
|
|
350
|
+
`,Mt=t.button`
|
|
351
351
|
flex-shrink: 0;
|
|
352
352
|
border: 0;
|
|
353
353
|
background: transparent;
|
|
354
354
|
cursor: pointer;
|
|
355
355
|
padding: 2px;
|
|
356
356
|
line-height: 0;
|
|
357
|
-
`,At=
|
|
357
|
+
`,At=t.div`
|
|
358
358
|
display: flex;
|
|
359
359
|
align-items: center;
|
|
360
360
|
gap: 4px;
|
|
361
|
-
`,Wt=
|
|
361
|
+
`,Wt=t.span`
|
|
362
362
|
font-size: 14px;
|
|
363
363
|
font-weight: 600;
|
|
364
364
|
color: ${r.muted1};
|
|
365
|
-
`,It=
|
|
365
|
+
`,It=t(k)`
|
|
366
366
|
width: 14px;
|
|
367
367
|
height: 14px;
|
|
368
368
|
background: ${r.text};
|
|
369
|
-
`,St=
|
|
369
|
+
`,St=t.span`
|
|
370
370
|
font-size: 14px;
|
|
371
371
|
color: ${r.text};
|
|
372
|
-
`,Tt=
|
|
372
|
+
`,Tt=t.div`
|
|
373
373
|
display: flex;
|
|
374
374
|
flex-direction: column;
|
|
375
375
|
gap: 24px;
|
|
@@ -387,11 +387,11 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
387
387
|
gap: 32px;
|
|
388
388
|
padding: 24px 0;
|
|
389
389
|
}
|
|
390
|
-
`,Nt=
|
|
390
|
+
`,Nt=t.div`
|
|
391
391
|
display: flex;
|
|
392
392
|
gap: 12px;
|
|
393
393
|
align-items: center;
|
|
394
|
-
`,Et=
|
|
394
|
+
`,Et=t.div`
|
|
395
395
|
flex-shrink: 0;
|
|
396
396
|
width: 180px;
|
|
397
397
|
height: 180px;
|
|
@@ -408,25 +408,25 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
408
408
|
object-fit: contain;
|
|
409
409
|
filter: drop-shadow(0.7px 2.9px 3.7px rgba(0, 0, 0, 0.1));
|
|
410
410
|
}
|
|
411
|
-
`,Bt=
|
|
411
|
+
`,Bt=t.div`
|
|
412
412
|
flex: 1;
|
|
413
413
|
min-width: 0;
|
|
414
414
|
display: flex;
|
|
415
415
|
flex-direction: column;
|
|
416
416
|
gap: 32px;
|
|
417
417
|
padding: 8px;
|
|
418
|
-
`,
|
|
418
|
+
`,Rt=t.div`
|
|
419
419
|
font-size: 20px;
|
|
420
420
|
font-weight: 600;
|
|
421
421
|
line-height: 1.57;
|
|
422
422
|
color: ${r.text};
|
|
423
423
|
overflow: hidden;
|
|
424
424
|
text-overflow: ellipsis;
|
|
425
|
-
`,
|
|
425
|
+
`,Lt=t(ee)`
|
|
426
426
|
font-size: 10px;
|
|
427
427
|
line-height: 1.43;
|
|
428
428
|
color: ${r.muted};
|
|
429
|
-
`,Pt=
|
|
429
|
+
`,Pt=t.div`
|
|
430
430
|
display: flex;
|
|
431
431
|
align-items: center;
|
|
432
432
|
gap: 4px;
|
|
@@ -436,19 +436,19 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
436
436
|
font-weight: 600;
|
|
437
437
|
color: ${r.text2};
|
|
438
438
|
}
|
|
439
|
-
`,Ft=
|
|
439
|
+
`,Ft=t(k)`
|
|
440
440
|
width: 24px;
|
|
441
441
|
height: 24px;
|
|
442
442
|
background: ${r.text2};
|
|
443
|
-
`,Kt=
|
|
443
|
+
`,Kt=t.div`
|
|
444
444
|
display: flex;
|
|
445
445
|
align-items: center;
|
|
446
446
|
gap: 8px;
|
|
447
447
|
justify-content: center;
|
|
448
448
|
background: rgba(255, 162, 90, 0.3);
|
|
449
|
-
border-radius: ${
|
|
449
|
+
border-radius: ${G.btn};
|
|
450
450
|
padding: 12px 8px;
|
|
451
|
-
`,Dt=
|
|
451
|
+
`,Dt=t.p`
|
|
452
452
|
margin: 0;
|
|
453
453
|
font-size: 14px;
|
|
454
454
|
line-height: 1.334;
|
|
@@ -458,10 +458,10 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
458
458
|
& b {
|
|
459
459
|
font-weight: 700;
|
|
460
460
|
}
|
|
461
|
-
`,Qt=
|
|
461
|
+
`,Qt=t.div`
|
|
462
462
|
display: flex;
|
|
463
463
|
gap: 12px;
|
|
464
|
-
`,Ut=
|
|
464
|
+
`,Ut=t.button`
|
|
465
465
|
flex: 1;
|
|
466
466
|
height: 109px;
|
|
467
467
|
border: 1px solid ${r.muted2};
|
|
@@ -477,39 +477,39 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
477
477
|
&[data-on] {
|
|
478
478
|
border: 4px solid ${r.magenta};
|
|
479
479
|
}
|
|
480
|
-
`,_t=
|
|
480
|
+
`,_t=t(k)`
|
|
481
481
|
width: 24px;
|
|
482
482
|
height: 24px;
|
|
483
483
|
background: ${r.text};
|
|
484
|
-
`,Ht=
|
|
484
|
+
`,Ht=t.span`
|
|
485
485
|
font-size: 24px;
|
|
486
486
|
font-weight: 500;
|
|
487
487
|
color: ${r.text};
|
|
488
|
-
`,Ot=
|
|
488
|
+
`,Ot=t.span`
|
|
489
489
|
font-size: 14px;
|
|
490
490
|
color: ${r.text};
|
|
491
|
-
`,Vt=
|
|
491
|
+
`,Vt=t.div`
|
|
492
492
|
display: flex;
|
|
493
493
|
align-items: center;
|
|
494
494
|
justify-content: space-between;
|
|
495
495
|
border-top: 1px solid ${r.gray4};
|
|
496
496
|
padding-top: 12px;
|
|
497
|
-
`,Gt=
|
|
497
|
+
`,Gt=t.div`
|
|
498
498
|
display: flex;
|
|
499
499
|
align-items: center;
|
|
500
500
|
gap: 8px;
|
|
501
501
|
font-size: 24px;
|
|
502
502
|
font-weight: 700;
|
|
503
503
|
color: ${r.text};
|
|
504
|
-
`,Yt=
|
|
504
|
+
`,Yt=t(k)`
|
|
505
505
|
width: 30px;
|
|
506
506
|
height: 30px;
|
|
507
507
|
background: ${r.text};
|
|
508
|
-
`,Xt=
|
|
508
|
+
`,Xt=t.span`
|
|
509
509
|
font-size: 14px;
|
|
510
510
|
font-weight: 600;
|
|
511
511
|
color: ${r.muted1};
|
|
512
|
-
`,Zt=
|
|
512
|
+
`,Zt=t.div`
|
|
513
513
|
position: sticky;
|
|
514
514
|
bottom: 0;
|
|
515
515
|
display: flex;
|
|
@@ -517,12 +517,12 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
517
517
|
margin-top: -8px;
|
|
518
518
|
padding-top: 8px;
|
|
519
519
|
background: ${r.white};
|
|
520
|
-
`,qt=
|
|
520
|
+
`,qt=t.button`
|
|
521
521
|
flex: 1;
|
|
522
522
|
/* Let the CTAs shrink so their min-content can't widen the modal past the viewport on mobile. */
|
|
523
523
|
min-width: 0;
|
|
524
524
|
height: 46px;
|
|
525
|
-
border-radius: ${
|
|
525
|
+
border-radius: ${G.btn};
|
|
526
526
|
border: 0;
|
|
527
527
|
cursor: pointer;
|
|
528
528
|
font-size: 15px;
|
|
@@ -538,7 +538,7 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
538
538
|
width: 100%;
|
|
539
539
|
}
|
|
540
540
|
&[data-variant='gradient'] {
|
|
541
|
-
background: ${
|
|
541
|
+
background: ${V.amethyst};
|
|
542
542
|
color: ${r.softWhite};
|
|
543
543
|
}
|
|
544
544
|
&[data-variant='outline'] {
|
|
@@ -563,10 +563,10 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
563
563
|
opacity: 0.6;
|
|
564
564
|
cursor: default;
|
|
565
565
|
}
|
|
566
|
-
`,Jt=
|
|
566
|
+
`,Jt=t.img`
|
|
567
567
|
width: 61px;
|
|
568
568
|
height: 61px;
|
|
569
|
-
`,en=
|
|
569
|
+
`,en=t.div`
|
|
570
570
|
display: flex;
|
|
571
571
|
flex-direction: column;
|
|
572
572
|
align-items: center;
|
|
@@ -574,11 +574,11 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
574
574
|
background: rgba(255, 201, 213, 0.5);
|
|
575
575
|
border-radius: 16px;
|
|
576
576
|
padding: 24px 16px;
|
|
577
|
-
`,tn=
|
|
577
|
+
`,tn=t.img`
|
|
578
578
|
width: 64px;
|
|
579
579
|
height: 80px;
|
|
580
580
|
object-fit: contain;
|
|
581
|
-
`,nn=
|
|
581
|
+
`,nn=t.p`
|
|
582
582
|
margin: 0;
|
|
583
583
|
text-align: center;
|
|
584
584
|
font-size: 20px;
|
|
@@ -589,24 +589,24 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
589
589
|
& b {
|
|
590
590
|
font-weight: 700;
|
|
591
591
|
}
|
|
592
|
-
`,an=
|
|
592
|
+
`,an=t.div`
|
|
593
593
|
font-size: 20px;
|
|
594
594
|
font-weight: 700;
|
|
595
595
|
color: ${r.text2};
|
|
596
596
|
text-align: center;
|
|
597
|
-
`,on=
|
|
597
|
+
`,on=t.div`
|
|
598
598
|
width: 100%;
|
|
599
599
|
max-width: 456px;
|
|
600
600
|
height: 12px;
|
|
601
601
|
background: ${r.media};
|
|
602
602
|
border-radius: 100px;
|
|
603
603
|
overflow: hidden;
|
|
604
|
-
`,sn=
|
|
604
|
+
`,sn=t.span`
|
|
605
605
|
display: block;
|
|
606
606
|
height: 100%;
|
|
607
607
|
width: 40%;
|
|
608
608
|
border-radius: 100px;
|
|
609
|
-
background: ${
|
|
609
|
+
background: ${V.amethyst};
|
|
610
610
|
animation: buy-modal-progress 1.1s ease-in-out infinite;
|
|
611
611
|
|
|
612
612
|
@keyframes buy-modal-progress {
|
|
@@ -623,7 +623,7 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
623
623
|
min-width: 12px;
|
|
624
624
|
transition: width 0.35s ease;
|
|
625
625
|
}
|
|
626
|
-
`,rn=
|
|
626
|
+
`,rn=t.div`
|
|
627
627
|
display: flex;
|
|
628
628
|
flex-direction: column;
|
|
629
629
|
align-items: center;
|
|
@@ -645,7 +645,7 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
645
645
|
padding: 16px;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
`,cn=
|
|
648
|
+
`,cn=t.p`
|
|
649
649
|
margin: 0;
|
|
650
650
|
font-size: 20px;
|
|
651
651
|
line-height: 1.334;
|
|
@@ -665,18 +665,18 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
665
665
|
text-align: center;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
`,{colors:I,media:A}=
|
|
668
|
+
`,{colors:I,media:A}=s,He=t.section`
|
|
669
669
|
margin-top: 40px;
|
|
670
|
-
`,Oe=
|
|
670
|
+
`,Oe=t.div`
|
|
671
671
|
display: flex;
|
|
672
672
|
align-items: center;
|
|
673
673
|
justify-content: space-between;
|
|
674
674
|
margin-bottom: 20px;
|
|
675
|
-
`,Ve=
|
|
675
|
+
`,Ve=t.h2`
|
|
676
676
|
font-size: 22px;
|
|
677
677
|
font-weight: 700;
|
|
678
678
|
color: ${I.text};
|
|
679
|
-
`,Ge=
|
|
679
|
+
`,Ge=t.button`
|
|
680
680
|
display: inline-flex;
|
|
681
681
|
align-items: center;
|
|
682
682
|
gap: 4px;
|
|
@@ -694,11 +694,11 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
694
694
|
&:hover {
|
|
695
695
|
text-decoration: underline;
|
|
696
696
|
}
|
|
697
|
-
`,Ye=
|
|
697
|
+
`,Ye=t(U)`
|
|
698
698
|
transform: rotate(-90deg);
|
|
699
|
-
`,Xe=
|
|
699
|
+
`,Xe=t.div`
|
|
700
700
|
position: relative;
|
|
701
|
-
`,
|
|
701
|
+
`,Q=t.button`
|
|
702
702
|
position: absolute;
|
|
703
703
|
top: 112px;
|
|
704
704
|
transform: translateY(-50%);
|
|
@@ -745,7 +745,7 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
745
745
|
${A.maxWidth("lg")} {
|
|
746
746
|
display: none;
|
|
747
747
|
}
|
|
748
|
-
`,Ze=
|
|
748
|
+
`,Ze=t.div`
|
|
749
749
|
display: grid;
|
|
750
750
|
grid-auto-flow: column;
|
|
751
751
|
grid-auto-columns: calc((100% - 64px) / 5);
|
|
@@ -773,13 +773,13 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
773
773
|
${A.maxWidth("sm")} {
|
|
774
774
|
grid-auto-columns: calc((100% - 16px) / 2);
|
|
775
775
|
}
|
|
776
|
-
`,qe=
|
|
776
|
+
`,qe=t.div`
|
|
777
777
|
display: flex;
|
|
778
778
|
align-items: center;
|
|
779
779
|
justify-content: center;
|
|
780
780
|
gap: 8px;
|
|
781
781
|
margin-top: 18px;
|
|
782
|
-
`,Je=
|
|
782
|
+
`,Je=t.button`
|
|
783
783
|
width: 10px;
|
|
784
784
|
height: 10px;
|
|
785
785
|
border-radius: 50%;
|
|
@@ -801,4 +801,4 @@ import{j as t,r as v}from"./react-BYHuwl8r.js";import{s as e,t as o,b as f,z as
|
|
|
801
801
|
opacity: 1;
|
|
802
802
|
transform: scale(1.1);
|
|
803
803
|
}
|
|
804
|
-
`;function dn({title:a,items:n,onViewAll:i}){const
|
|
804
|
+
`;function dn({title:a,items:n,onViewAll:i}){const o=v.useRef(null),[l,c]=v.useState(1),[p,x]=v.useState(0),[g,b]=v.useState(!0),[h,w]=v.useState(!1),d=v.useCallback(()=>{const u=o.current;if(!u)return;const{scrollLeft:f,scrollWidth:L,clientWidth:S}=u,P=Math.max(1,Math.ceil(L/S));c(P),x(Math.min(P-1,Math.round(f/S))),b(f<=1),w(f+S>=L-1)},[]);if(v.useEffect(()=>{d();const u=o.current;if(u)return u.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d),()=>{u.removeEventListener("scroll",d),window.removeEventListener("resize",d)}},[d,n.length]),n.length===0)return null;function y(u){const f=o.current;f&&f.scrollBy({left:u*f.clientWidth,behavior:"smooth"})}function j(u){const f=o.current;f&&f.scrollTo({left:u*f.clientWidth,behavior:"smooth"})}return e.jsxs(He,{"data-testid":"carousel",children:[e.jsxs(Oe,{children:[e.jsx(Ve,{children:a}),i?e.jsxs(Ge,{onClick:i,children:[m("collectionCarousel.viewAll"),e.jsx(Ye,{name:"chevron-down",size:16})]}):null]}),e.jsxs(Xe,{children:[e.jsx(Q,{"data-side":"left",onClick:()=>y(-1),"aria-label":m("collectionCarousel.scrollLeft"),disabled:g,children:e.jsx("img",{src:F,alt:"","aria-hidden":!0})}),e.jsx(Ze,{ref:o,children:n.map(u=>e.jsx(te,{item:u},u.id))}),e.jsx(Q,{"data-side":"right",onClick:()=>y(1),"aria-label":m("collectionCarousel.scrollRight"),disabled:h,children:e.jsx("img",{src:F,alt:"","aria-hidden":!0})})]}),l>1?e.jsx(qe,{"aria-label":m("collectionCarousel.pages"),children:Array.from({length:l}).map((u,f)=>e.jsx(Je,{"data-active":f===p||void 0,"aria-label":m("collectionCarousel.goToPage",{page:f+1}),"aria-current":f===p?"true":void 0,onClick:()=>j(f)},f))}):null]})}export{z as $,Nt as A,At as B,jt as C,Ht as D,Ot as E,Vt as F,Gt as G,$t as H,Yt as I,Xt as J,lt as K,Jt as L,vt as M,dt as N,dn as O,xt as P,ft as Q,T as R,kt as S,zt as T,ct as U,gt as V,Kt as W,Mt as X,Qe as Y,pt as Z,ye as _,Ct as a,rn as a0,cn as a1,mt as a2,ht as a3,bt as a4,yt as b,Wt as c,It as d,St as e,Tt as f,en as g,tn as h,nn as i,Zt as j,qt as k,an as l,ut as m,on as n,sn as o,wt as p,Dt as q,Et as r,Bt as s,Rt as t,Lt as u,Pt as v,Ft as w,Qt as x,Ut as y,_t as z};
|