@dcl/shop 0.1.0-30341552356.commit-1157de5 → 0.1.0-30341633105.commit-bfa7613
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-Dj44bwKw.js → Activity-DUQW_Z22.js} +2 -2
- package/assets/{AnimatedBackground-CwKlLPU1.js → AnimatedBackground-D5TaGH4y.js} +3 -3
- package/assets/{Assets-DWnYTXCo.js → Assets-B4NCA-FL.js} +5 -5
- package/assets/{Assets.styles-BhE61g54.js → Assets.styles-CE4c2s9w.js} +1 -1
- package/assets/{Authorizations-BwJDLOap.js → Authorizations-FSevrZuz.js} +1 -1
- package/assets/{Button-B3EWO6NJ.js → Button-CVXKA5VS.js} +1 -1
- package/assets/Cart-Bwa3a9Hp.js +1 -0
- package/assets/{CircularProgress-Be2BeSsu.js → CircularProgress-B7WalF_4.js} +1 -1
- package/assets/{Collection-CZEi_EO2.js → Collection-DdHzXaav.js} +1 -1
- package/assets/CollectionCarousel-BLfBmiC7.js +292 -0
- package/assets/{Creator-DgBS8-4a.js → Creator-B9a3v2rB.js} +1 -1
- package/assets/{ExchangeController-BkfKxSM1.js → ExchangeController-DTUPu5lZ.js} +1 -1
- package/assets/{GetCredits-D4_gPu7y.js → GetCredits-CEruTT5O.js} +1 -1
- package/assets/{HelpersUtil-nSm_BMK5.js → HelpersUtil-DY1hA3MT.js} +1 -1
- package/assets/{ImportListings-0xT85_lg.js → ImportListings-CUNQkt5i.js} +1 -1
- package/assets/{ItemDetail-Dq6IJ40V.js → ItemDetail-gPIjOR_D.js} +130 -130
- package/assets/{LoadMore-Cbr521EF.js → LoadMore-K8EfO7If.js} +1 -1
- package/assets/{MarketCheckout-CEZ0wtt0.js → MarketCheckout-BlfeUpjX.js} +1 -1
- package/assets/{MenuList-BYXPwoXC.js → MenuList-DPrUOTQw.js} +1 -1
- package/assets/{MyAssets-Y32vTL95.js → MyAssets-qLOA_5tD.js} +1 -1
- package/assets/{MyFavorites-DQ-5zeBc.js → MyFavorites-C1SUs-Jy.js} +1 -1
- package/assets/{NotFound-9u0kqnXS.js → NotFound-hEgIvZDQ.js} +1 -1
- package/assets/{NotificationsBell-Bh-SEbDn.js → NotificationsBell-BPdngTao.js} +1 -1
- package/assets/{StoreSettings-DnEI4N7v.js → StoreSettings-BvrwDCuq.js} +5 -5
- package/assets/{Success-jGqc-yIA.js → Success-DfPUnbUp.js} +1 -1
- package/assets/{SwapController-DXwEV4tc.js → SwapController-Cvanu67b.js} +1 -1
- package/assets/{Tooltip-CkfT0XKM.js → Tooltip-8SR8hseo.js} +1 -1
- package/assets/{TradeService-BP9td6am.js → TradeService-DH4vjiAB.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-DOHwgNRJ.js → W3MFrameProviderSingleton-DtrTVFth.js} +3 -3
- package/assets/{WebCryptoP256-xSGFEHUn.js → WebCryptoP256-B_JP0jDJ.js} +1 -1
- package/assets/{authorizations-DVHH9Rgu.js → authorizations-Dtu8Ye0y.js} +1 -1
- package/assets/{basic-jN1vb_0X.js → basic-DljOvbvB.js} +1 -1
- package/assets/{biconomy-CnJ3HxGY.js → biconomy-ik7MjMyj.js} +1 -1
- package/assets/{builder--u_mLwLg.js → builder-BsAwBvGZ.js} +1 -1
- package/assets/{buy-DsK3JvBE.js → buy-CyhVI8ih.js} +1 -1
- package/assets/{buy-gasless-B0tydfop.js → buy-gasless-D6tjB5nW.js} +1 -1
- package/assets/{cart-checkout-B_ayyHRb.js → cart-checkout-Bp3fmOrE.js} +1 -1
- package/assets/{categories-CnryCWCq.js → categories-Jh3tfbEa.js} +1 -1
- package/assets/{ccip-CpnrZcJR.js → ccip-Dn5CKGMr.js} +1 -1
- package/assets/{ccip-DSWWT7QA.js → ccip-fs__7FtW.js} +1 -1
- package/assets/{collection-DvprT8Ak.js → collection-Cbl5FMco.js} +1 -1
- package/assets/{controller-DcyNYMS1.js → controller-CFA_t_aX.js} +2 -2
- package/assets/{core-BjxuDLc2.js → core-bscEUkDr.js} +4 -4
- package/assets/{custom-BXO5l2GN.js → custom-CBNtVqpj.js} +1 -1
- package/assets/{data-capture-CNmHScYc.js → data-capture-OumUBjqI.js} +1 -1
- package/assets/{email-CeHIxnKR.js → email-Psj4ILkk.js} +1 -1
- package/assets/{embedded-wallet-DFRpG2QT.js → embedded-wallet-8Rn02F-5.js} +1 -1
- package/assets/{emotion-styled.browser.esm-BAKrhA-T.js → emotion-styled.browser.esm-D1IYcc-A.js} +1 -1
- package/assets/{engine-QHP5dbJN.js → engine-FKONhXUm.js} +1 -1
- package/assets/{errors-CxK78Ezc.js → errors-C_tFJwwX.js} +1 -1
- package/assets/{estimate-l1-fee-DJZ2ykvP.js → estimate-l1-fee-CQQK05Yj.js} +1 -1
- package/assets/{execute-BxL0u7cZ.js → execute-DvgHhaNY.js} +2 -2
- package/assets/{features-D-1vXo09.js → features-C_I0ed0g.js} +1 -1
- package/assets/{fetchTokenMetadata-Bmh-GAy2.js → fetchTokenMetadata-DXP5pKit.js} +2 -2
- package/assets/{get-ecosystem-wallet-info-gP16_3M9.js → get-ecosystem-wallet-info-CojUzYKW.js} +1 -1
- package/assets/{getBalance-Cy11zY8o.js → getBalance-Bi0yMf6a.js} +1 -1
- package/assets/{getNFT-D8_d_43-.js → getNFT-CebGWsfS.js} +1 -1
- package/assets/{getNFT-CLM4lOgZ.js → getNFT-uBr4IPr-.js} +1 -1
- package/assets/{getThemeProps-Db0LqBsH.js → getThemeProps-D9znDKcF.js} +1 -1
- package/assets/{hashTypedData-DlhCxtnU.js → hashTypedData-CmwGgOTV.js} +1 -1
- package/assets/{hashTypedData-CyLnrmuM.js → hashTypedData-CvnET0ek.js} +1 -1
- package/assets/{import-xj2dmpRb.js → import-5htnR-24.js} +1 -1
- package/assets/{in-app-Ca1mMARX.js → in-app-CXNVMtY6.js} +1 -1
- package/assets/{in-app-wallet-calls-CW5YIAy_.js → in-app-wallet-calls-CL_h73Vx.js} +1 -1
- package/assets/{index-DaGxFfPe.js → index-B8HPZU8G.js} +1 -1
- package/assets/{index-DTUefcrq.js → index-BBFf3j9R.js} +1 -1
- package/assets/{index-BRqkHqJo.js → index-BEwgqhCL.js} +1 -1
- package/assets/{index-DMKg8lh3.js → index-BF0jg5eX.js} +1 -1
- package/assets/{index-hTjbV6vV.js → index-BUuFv1bp.js} +1 -1
- package/assets/{index-n8GCu-Rn.js → index-BZVhR8G8.js} +1 -1
- package/assets/{index-BS5Ceouq.js → index-BaeTuT24.js} +1 -1
- package/assets/{index-_B4jXVuv.js → index-BjJBV4qL.js} +1 -1
- package/assets/{index-Dyl6gCDy.js → index-BksD36hR.js} +1 -1
- package/assets/{index-DidAGC-b.js → index-BofIoUki.js} +1 -1
- package/assets/{index-CYe6NA33.js → index-BqdSTJ_h.js} +1 -1
- package/assets/{index-DG5yd0Hy.js → index-BwVcZ3vw.js} +1 -1
- package/assets/{index-Cog4X8JZ.js → index-C-3NWHgA.js} +1 -1
- package/assets/{index-CaZpvuaJ.js → index-C-dFvnUH.js} +1 -1
- package/assets/{index-CJ85TtZ8.js → index-C1Tsxo3r.js} +1 -1
- package/assets/{index-DcgPlZHV.js → index-C1UJcewJ.js} +1 -1
- package/assets/{index-DHAtTfUI.js → index-C4GKDkj4.js} +1 -1
- package/assets/{index-DPvzgx_y.js → index-C5V5wALq.js} +1 -1
- package/assets/{index-qJN3KuXC.js → index-CAPIrEyl.js} +1 -1
- package/assets/{index-D4GTMW1w.js → index-CBgD93CB.js} +1 -1
- package/assets/{index-B-_1QhtU.js → index-CFnxUGBP.js} +1 -1
- package/assets/{index-tNNieLvH.js → index-CIRaZxV0.js} +1 -1
- package/assets/{index-BZ-ADUaA.js → index-CLiiVHBN.js} +1 -1
- package/assets/{index-G557eOOZ.js → index-CSdulB00.js} +3 -3
- package/assets/{index-cdg92wTF.js → index-CkYGCiA-.js} +1 -1
- package/assets/{index-BWqSG2Zp.js → index-Cp-efrxt.js} +1 -1
- package/assets/{index-CEvsvVpf.js → index-Cq9m0rf1.js} +1 -1
- package/assets/{index-DE80LSux.js → index-CvxSD2TZ.js} +1 -1
- package/assets/{index-CBJiZL2c.js → index-D-BpvO4i.js} +1 -1
- package/assets/{index-CR6dp-n2.js → index-D3MkM_Ow.js} +2 -2
- package/assets/{index-B8QWKyIQ.js → index-D9zmC2OF.js} +1 -1
- package/assets/{index-Bw8dL1iq.js → index-DTjLQDJj.js} +3 -3
- package/assets/{index-D3sOF6Ef.js → index-DVCrh7RP.js} +1 -1
- package/assets/{index-ShBnagKs.js → index-DXqFhRIG.js} +2 -2
- package/assets/{index-C3ZPHWQF.js → index-D_GOecnW.js} +1 -1
- package/assets/{index-BPlewML_.js → index-Dcx57z9h.js} +1 -1
- package/assets/{index-CwJPZDQg.js → index-De5m0zpT.js} +1 -1
- package/assets/{index-CRQc7aFW.js → index-DhbTDQu0.js} +1 -1
- package/assets/{index-CUAbfX_G.js → index-DiarXSIn.js} +1 -1
- package/assets/{index-Ik8KJlRB.js → index-Dlw2S5cF.js} +3 -3
- package/assets/{index-LI2Gp3bz.js → index-Ds0rGqyb.js} +1 -1
- package/assets/{index-CB1uzRfI.js → index-Ds6dHrLZ.js} +1 -1
- package/assets/{index-D3S3ylBv.js → index-DsV59IEv.js} +1 -1
- package/assets/{index-Boi8OWdb.js → index-VchcND_n.js} +11 -11
- package/assets/{index-Ct3-9z3S.js → index-VdY2qv1p.js} +1 -1
- package/assets/{index-a3vLcVip.js → index-aP6PSm0J.js} +1 -1
- package/assets/{index-CgEZpoUf.js → index-lJWah8De.js} +1 -1
- package/assets/{index-CXOudy9H.js → index-sW-sKm0x.js} +1 -1
- package/assets/{index-BFMPeJUP.js → index-scsn5pcE.js} +1 -1
- package/assets/{index-BAHZtt4N.js → index-tf9y--bx.js} +1 -1
- package/assets/{index-DMzXLpFX.js → index-zLpiSX4V.js} +2 -2
- package/assets/{index.es-Do8tEs_c.js → index.es-9B4hUsAR.js} +1 -1
- package/assets/{index.es-86Q_KSh8.js → index.es-9Zrxu-nr.js} +4 -4
- package/assets/{index.es-Pf3_VMB1.js → index.es-BwS14sFg.js} +1 -1
- package/assets/{localBatchGatewayRequest-Q9ISf7xV.js → localBatchGatewayRequest-BHik-cdx.js} +1 -1
- package/assets/{mana-rate-Dr5e3Fsu.js → mana-rate-CY9tOCr1.js} +1 -1
- package/assets/{networks-DH11TI3P.js → networks-Ddkp84aU.js} +1 -1
- package/assets/{onramp-fUReVnH1.js → onramp-CeSaj6Aa.js} +1 -1
- package/assets/{openzeppelin-BMoHmYeO.js → openzeppelin-CDpkjcS1.js} +1 -1
- package/assets/{parseNft-Bsnv7LY2.js → parseNft-ChsA4Coa.js} +2 -2
- package/assets/{parseSignature-WQa_Z13b.js → parseSignature--QSaxzyZ.js} +3 -3
- package/assets/{parseSignature-vnzc0TWx.js → parseSignature-DFSq1jun.js} +1 -1
- package/assets/{passkeys-DcSb_2bY.js → passkeys-CUsQnAGE.js} +1 -1
- package/assets/{pay-with-exchange-BSvTA-vL.js → pay-with-exchange-DD3fWFhp.js} +1 -1
- package/assets/{qr-overlay-Cxia7TxD.js → qr-overlay-FXDRFg86.js} +1 -1
- package/assets/{receive-C7U2pw1b.js → receive-YGf7MQMM.js} +1 -1
- package/assets/{resolveImplementation-B0oFFgdO.js → resolveImplementation-ChZxSPSt.js} +1 -1
- package/assets/{rpc-CPkDSng_.js → rpc-DcocuHbv.js} +1 -1
- package/assets/{secp256k1-B8iTaWun.js → secp256k1-2n6IN3fh.js} +1 -1
- package/assets/{secp256k1-BG_xdWRK.js → secp256k1-B6R4GN3D.js} +1 -1
- package/assets/{secp256k1-9B-GuXCR.js → secp256k1-Da2UK_yU.js} +1 -1
- package/assets/{send-HIK1lDa_.js → send-DM7q2CKX.js} +1 -1
- package/assets/{send-batch-transaction-DlA-mriP.js → send-batch-transaction-BQiw5Eds.js} +1 -1
- package/assets/{send-eip712-transaction-BKSgmtge.js → send-eip712-transaction-D9_VwAnb.js} +2 -2
- package/assets/{send-gasless-transaction-CaZ9Bdzc.js → send-gasless-transaction-fl9Lqf73.js} +2 -2
- package/assets/{send-transaction-IH4G-3ve.js → send-transaction-lapcUIfe.js} +2 -2
- package/assets/{sendMetaTransaction-CoMlUn3U.js → sendMetaTransaction-CydgYVdt.js} +1 -1
- package/assets/{sendRawTransaction-Bl9YcsnP.js → sendRawTransaction-CkQeCcPa.js} +3 -3
- package/assets/{serializeTransaction-lddISawN.js → serializeTransaction-CiKWV5oi.js} +1 -1
- package/assets/{session-proposal-DnwQ3Izq.js → session-proposal-C1hZCkvv.js} +1 -1
- package/assets/{session-request-BlxbeFMn.js → session-request-BTvx34S0.js} +2 -2
- package/assets/{signing-CMF-guhc.js → signing-clXGZp7N.js} +3 -3
- package/assets/{socials-oKTNFCc_.js → socials-Djo-_tRh.js} +1 -1
- package/assets/{swaps-DKTQ0Qks.js → swaps-BwoxWJmp.js} +1 -1
- package/assets/{thirdweb-CleLzSpa.js → thirdweb-DIYiKqri.js} +3 -3
- package/assets/{to-serializable-transaction-Dmnj9hOd.js → to-serializable-transaction-_IYF-b5r.js} +2 -2
- package/assets/{trade-encoding-CJ445Q0f.js → trade-encoding-DbssSNOL.js} +1 -1
- package/assets/{transactionReceipt-wJvnMFcL.js → transactionReceipt-dAN1T4b9.js} +1 -1
- package/assets/{transactions-CwbwJTBm.js → transactions-V175lLd8.js} +1 -1
- package/assets/{useCreditPacks-DslICYvP.js → useCreditPacks-B8su_g3G.js} +1 -1
- package/assets/{useInfiniteGrid-BsvaZzST.js → useInfiniteGrid-S2Upf1Ae.js} +1 -1
- package/assets/useManaRate-CCWK1pxl.js +1 -0
- package/assets/{useStore-D4BwFx3W.js → useStore-BEtv4alq.js} +1 -1
- package/assets/{useTheme-C3x6r6Lw.js → useTheme-BoNUL1hb.js} +1 -1
- package/assets/{verifyHash-Cw5VgEE4.js → verifyHash-CSBAlIiR.js} +1 -1
- package/assets/{w3m-modal-Btpx7WOs.js → w3m-modal-CXjKWsrV.js} +1 -1
- package/assets/{w3m-modal-C3TYSgnM.js → w3m-modal-DVav-Ijf.js} +1 -1
- package/assets/{wait-for-tx-receipt-PVsjRORl.js → wait-for-tx-receipt-CRuc-ylw.js} +1 -1
- package/assets/{wallets-CawAcOqK.js → wallets-C2Qy7KSV.js} +5 -5
- package/assets/{web-connector-g3y9yAdS.js → web-connector-D4itPEVN.js} +3 -3
- package/assets/{writeContract-CkNfH9sB.js → writeContract-BR9KO0Ok.js} +1 -1
- package/assets/{zoraTestnet-D5vdVlTL.js → zoraTestnet-VaouiZC2.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/assets/Cart-C048yxEZ.js +0 -1
- package/assets/CollectionCarousel-B4KoClM7.js +0 -292
- package/assets/useManaRate-BrpK_vbN.js +0 -1
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import{j as e,r as w}from"./react-B36MyIP_.js";import{n as l,K as s,t as f,k as R,m as j,aN as C,b as Q,R as D,I as K,J as O,g as $,C as _,a as U,aO as B,M as G}from"./index-VchcND_n.js";import{s as H,i as T,A as P,g as L,r as J,m as V,e as Y}from"./authorizations-Dtu8Ye0y.js";import{i as Z}from"./errors-C_tFJwwX.js";import{E as q}from"./ErrorNotice-D_Z5OVFI.js";import{b as X}from"./buy-CyhVI8ih.js";import{g as ee,d as te}from"./trade-encoding-DbssSNOL.js";import{s as ne,M as ae,E as re}from"./sendMetaTransaction-CydgYVdt.js";import{I as se,C as ie}from"./ethers-BteKixT0.js";const I="shop:resume_after_signin",oe=900*1e3;function Oe(n){try{sessionStorage.setItem(I,JSON.stringify({...n,at:Date.now()}))}catch{}}function Ue(n){let t;try{t=sessionStorage.getItem(I)}catch{return null}if(!t)return null;try{sessionStorage.removeItem(I)}catch{}let a;try{a=JSON.parse(t)}catch{return null}return!a||a.type!==n||typeof a.at!="number"||Date.now()-a.at>oe?null:a.type==="cart-checkout"?{type:"cart-checkout"}:{type:"item-buy",path:a.path}}function ce(n,t){return(n+t-1n)/t}function le(n,t,a){return n<=0||t<=0?0n:n>=t?a:ce(a*BigInt(n),BigInt(t))}function Ge(n){var m,x,y;const t=Number.isFinite(n.priceCents)?Math.max(0,Math.trunc(n.priceCents)):0,a=Number.isFinite(n.balanceCents)?Math.max(0,Math.trunc(n.balanceCents)):0,r=n.priceManaWei>0n?n.priceManaWei:0n,o=n.manaBalanceWei>0n?n.manaBalanceWei:0n;if(t<=0)return{options:[],preferred:null,manaShortfall:null};const i=[];if(a>=t&&i.push({method:"credits",creditsCents:t,manaWei:0n}),r>0n&&a>0&&a<t){const c=t-a,g=le(c,t,r);o>=g&&i.push({method:"combined",creditsCents:a,manaWei:g})}r>0n&&o>=r&&i.push({method:"mana",creditsCents:0,manaWei:r});const d=((m=i.find(c=>c.method==="credits"))==null?void 0:m.method)??((x=i.find(c=>c.method==="combined"))==null?void 0:x.method)??((y=i.find(c=>c.method==="mana"))==null?void 0:y.method)??null,b=!i.some(c=>c.method==="mana"||c.method==="combined")&&r>0n&&o>0n?{manaWei:o,manaCents:de(o,t,r),priceCents:t}:null;return{options:i,preferred:d,manaShortfall:b}}function de(n,t,a){return Number(n*BigInt(t)/a)}function He(n,t){let a=Number.isFinite(t)?Math.max(0,Math.trunc(t)):0;return n.map(r=>{const o=Number.isFinite(r)?Math.max(0,Math.trunc(r)):0,i=Math.min(o,a);return a-=i,i})}function k(n){return Number.isFinite(n)?Math.max(0,n)/10:0}function Je(n,t){return n.options.find(a=>a.method===t)??null}function Ve(n,t){if(!Number.isFinite(n)||n<=0||t<=0n)return null;const a=n/10;return Number(t)/1e18/a}const A="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",ue=l.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 12px;
|
|
5
|
+
align-items: stretch;
|
|
6
|
+
width: 100%;
|
|
7
|
+
`,F=`
|
|
8
|
+
width: 100%;
|
|
9
|
+
min-height: 56px;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
gap: 8px;
|
|
14
|
+
flex-wrap: wrap;
|
|
15
|
+
padding: 0 12px;
|
|
16
|
+
border: 0;
|
|
17
|
+
border-radius: 12px;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
transition:
|
|
20
|
+
background 0.15s ease,
|
|
21
|
+
filter 0.15s ease;
|
|
22
|
+
font-family: ${s.font.sans};
|
|
23
|
+
font-weight: 600;
|
|
24
|
+
font-size: 15px;
|
|
25
|
+
line-height: 24px;
|
|
26
|
+
letter-spacing: 0.46px;
|
|
27
|
+
text-transform: uppercase;
|
|
28
|
+
color: ${s.colors.softWhite};
|
|
29
|
+
|
|
30
|
+
&:focus-visible {
|
|
31
|
+
outline: 2px solid ${s.colors.accent};
|
|
32
|
+
outline-offset: 2px;
|
|
33
|
+
}
|
|
34
|
+
&:disabled {
|
|
35
|
+
opacity: 0.6;
|
|
36
|
+
cursor: default;
|
|
37
|
+
}
|
|
38
|
+
`,he=l.button`
|
|
39
|
+
${F}
|
|
40
|
+
background: ${s.gradients.amethyst};
|
|
41
|
+
|
|
42
|
+
&:hover:not(:disabled) {
|
|
43
|
+
filter: brightness(1.08);
|
|
44
|
+
}
|
|
45
|
+
`,W=l.button`
|
|
46
|
+
${F}
|
|
47
|
+
background: ${s.colors.text2};
|
|
48
|
+
|
|
49
|
+
&:hover:not(:disabled) {
|
|
50
|
+
background: ${s.colors.gray0};
|
|
51
|
+
}
|
|
52
|
+
`,M=l.span`
|
|
53
|
+
display: inline-flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
gap: 6px;
|
|
56
|
+
text-transform: none;
|
|
57
|
+
letter-spacing: 0;
|
|
58
|
+
|
|
59
|
+
span {
|
|
60
|
+
font-size: 20px;
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
line-height: normal;
|
|
63
|
+
}
|
|
64
|
+
.ico {
|
|
65
|
+
width: 24px;
|
|
66
|
+
height: 24px;
|
|
67
|
+
background: ${s.colors.softWhite};
|
|
68
|
+
}
|
|
69
|
+
`,z=l.span`
|
|
70
|
+
position: relative;
|
|
71
|
+
display: block;
|
|
72
|
+
width: 30px;
|
|
73
|
+
height: 30px;
|
|
74
|
+
flex: none;
|
|
75
|
+
|
|
76
|
+
/* Centred in the slot, not pinned to its top: the slot is taller than the glyph and sits next to a
|
|
77
|
+
vertically centred amount, so a top-pinned mark reads as floating above the number. */
|
|
78
|
+
img {
|
|
79
|
+
position: absolute;
|
|
80
|
+
top: 50%;
|
|
81
|
+
left: 0;
|
|
82
|
+
transform: translateY(-50%);
|
|
83
|
+
width: 24px;
|
|
84
|
+
height: 24px;
|
|
85
|
+
display: block;
|
|
86
|
+
}
|
|
87
|
+
`,pe=l.span`
|
|
88
|
+
font-size: 13px;
|
|
89
|
+
font-weight: 600;
|
|
90
|
+
letter-spacing: 0.02em;
|
|
91
|
+
opacity: 0.85;
|
|
92
|
+
`,fe=l.span`
|
|
93
|
+
font-size: 18px;
|
|
94
|
+
font-weight: 600;
|
|
95
|
+
opacity: 0.7;
|
|
96
|
+
`,xe=l.p`
|
|
97
|
+
margin: 0;
|
|
98
|
+
font-family: ${s.font.sans};
|
|
99
|
+
font-weight: 400;
|
|
100
|
+
font-size: 12px;
|
|
101
|
+
line-height: 1;
|
|
102
|
+
color: ${s.colors.muted};
|
|
103
|
+
text-align: center;
|
|
104
|
+
`,me=l.p`
|
|
105
|
+
margin: -4px 0 0;
|
|
106
|
+
font-family: ${s.font.sans};
|
|
107
|
+
font-weight: 400;
|
|
108
|
+
font-size: 12px;
|
|
109
|
+
line-height: 1.4;
|
|
110
|
+
color: ${s.colors.muted};
|
|
111
|
+
text-align: center;
|
|
112
|
+
`;function Ye({options:n,totalCents:t,onPay:a,busy:r=!1,rateNote:o,creditsLabel:i,shortfall:d}){return e.jsxs(ue,{children:[n.map(u=>u.method==="credits"?e.jsxs(he,{type:"button","data-testid":"pay-with-credits",onClick:()=>a("credits"),disabled:r,children:[e.jsx("span",{children:i??f("buyModal.buy")}),e.jsxs(M,{children:[e.jsx(R,{}),e.jsx("span",{children:j(k(u.creditsCents))})]})]},"credits"):u.method==="mana"?e.jsxs(W,{type:"button","data-testid":"pay-with-mana",onClick:()=>a("mana"),disabled:r,children:[e.jsx("span",{children:f("buyModal.buyWithMana")}),e.jsxs(M,{children:[e.jsx(z,{children:e.jsx("img",{src:A,alt:"","aria-hidden":!0})}),e.jsx("span",{children:C(u.manaWei)})]})]},"mana"):e.jsxs(W,{type:"button","data-testid":"pay-with-combined",onClick:()=>a("combined"),disabled:r,children:[e.jsx("span",{children:f("buyModal.buyWith")}),e.jsxs(M,{children:[e.jsx(R,{}),e.jsx("span",{children:j(k(u.creditsCents))}),e.jsx(fe,{children:"+"}),e.jsx(z,{children:e.jsx("img",{src:A,alt:"","aria-hidden":!0})}),e.jsx("span",{children:C(u.manaWei)}),e.jsx(pe,{children:"MANA"})]})]},"combined")),d?e.jsxs(e.Fragment,{children:[e.jsxs(W,{type:"button","data-testid":"pay-with-mana-disabled",disabled:!0,children:[e.jsx("span",{children:f("buyModal.buyWithMana")}),e.jsxs(M,{children:[e.jsx(z,{children:e.jsx("img",{src:A,alt:"","aria-hidden":!0})}),e.jsx("span",{children:C(d.manaWei)})]})]},"mana-short"),e.jsx(me,{"data-testid":"mana-shortfall-note",children:f("buyModal.manaWorth",{mana:C(d.manaWei),credits:j(k(d.manaCents)),price:j(k(d.priceCents)),currency:Q.name})})]}):null,o?e.jsx(xe,{"data-testid":"mana-rate-note",children:o}):null,e.jsx("span",{hidden:!0,"data-testid":"pay-total-cents",children:t})]})}function Ze(n,t){const a=(r,...o)=>void n.invalidateQueries({queryKey:t?[r,...o]:[r]});n.invalidateQueries({queryKey:["usd-balance"]}),n.invalidateQueries({queryKey:["detail-trade"]}),n.invalidateQueries({queryKey:["shop-item"]}),a("owned-token",t==null?void 0:t.contractAddress,t==null?void 0:t.tokenId),a("public-token",t==null?void 0:t.contractAddress,t==null?void 0:t.tokenId),a("item-resales",t==null?void 0:t.contractAddress,t==null?void 0:t.itemId),n.invalidateQueries({queryKey:["shop-items"]}),n.invalidateQueries({queryKey:["catalog-items"]}),n.invalidateQueries({queryKey:["overview-listings"]}),n.invalidateQueries({queryKey:["upsell-listings"]}),n.invalidateQueries({queryKey:["my-assets"]}),n.invalidateQueries({queryKey:["purchases"]}),n.invalidateQueries({queryKey:["owned-item-count"]})}const ge=D`
|
|
113
|
+
to { transform: rotate(360deg); }
|
|
114
|
+
`,be=l.div`
|
|
115
|
+
position: fixed;
|
|
116
|
+
inset: 0;
|
|
117
|
+
z-index: 10000;
|
|
118
|
+
display: flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
padding: 16px;
|
|
122
|
+
background: rgba(22, 21, 24, 0.55);
|
|
123
|
+
`,ye=l.div`
|
|
124
|
+
width: 480px;
|
|
125
|
+
max-width: 100%;
|
|
126
|
+
max-height: 92vh;
|
|
127
|
+
overflow-y: auto;
|
|
128
|
+
background: ${s.colors.white};
|
|
129
|
+
border-radius: 16px;
|
|
130
|
+
padding: 12px 16px 16px;
|
|
131
|
+
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
|
|
132
|
+
display: flex;
|
|
133
|
+
flex-direction: column;
|
|
134
|
+
gap: 20px;
|
|
135
|
+
`,we=l.div`
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
justify-content: space-between;
|
|
139
|
+
gap: 8px;
|
|
140
|
+
padding-bottom: 16px;
|
|
141
|
+
border-bottom: 1px solid ${s.colors.gray4};
|
|
142
|
+
`,ve=l.h2`
|
|
143
|
+
margin: 0;
|
|
144
|
+
font-family: ${s.font.sans};
|
|
145
|
+
font-weight: 600;
|
|
146
|
+
font-size: 20px;
|
|
147
|
+
line-height: 1.6;
|
|
148
|
+
color: ${s.colors.text};
|
|
149
|
+
`,je=l.button`
|
|
150
|
+
flex: none;
|
|
151
|
+
display: grid;
|
|
152
|
+
place-items: center;
|
|
153
|
+
width: 24px;
|
|
154
|
+
height: 24px;
|
|
155
|
+
border: 0;
|
|
156
|
+
background: none;
|
|
157
|
+
cursor: pointer;
|
|
158
|
+
color: ${s.colors.text};
|
|
159
|
+
|
|
160
|
+
.ico {
|
|
161
|
+
width: 18px;
|
|
162
|
+
height: 18px;
|
|
163
|
+
}
|
|
164
|
+
&:disabled {
|
|
165
|
+
opacity: 0.4;
|
|
166
|
+
cursor: default;
|
|
167
|
+
}
|
|
168
|
+
&:focus-visible {
|
|
169
|
+
outline: 2px solid ${s.colors.accent};
|
|
170
|
+
outline-offset: 2px;
|
|
171
|
+
}
|
|
172
|
+
`,Ce=l.div`
|
|
173
|
+
display: grid;
|
|
174
|
+
grid-template-columns: 44px 1fr;
|
|
175
|
+
align-items: center;
|
|
176
|
+
gap: 14px;
|
|
177
|
+
padding: 14px 18px;
|
|
178
|
+
background: ${s.colors.white};
|
|
179
|
+
border: 1px solid ${s.colors.line};
|
|
180
|
+
border-radius: 16px;
|
|
181
|
+
`,ke=l.div`
|
|
182
|
+
width: 44px;
|
|
183
|
+
height: 44px;
|
|
184
|
+
border-radius: 10px;
|
|
185
|
+
background: ${s.colors.media};
|
|
186
|
+
overflow: hidden;
|
|
187
|
+
display: flex;
|
|
188
|
+
align-items: center;
|
|
189
|
+
justify-content: center;
|
|
190
|
+
color: ${s.colors.muted2};
|
|
191
|
+
|
|
192
|
+
img {
|
|
193
|
+
width: 100%;
|
|
194
|
+
height: 100%;
|
|
195
|
+
object-fit: contain;
|
|
196
|
+
}
|
|
197
|
+
.ccy-mark {
|
|
198
|
+
width: 26px;
|
|
199
|
+
height: 26px;
|
|
200
|
+
}
|
|
201
|
+
`,Me=l.div`
|
|
202
|
+
min-width: 0;
|
|
203
|
+
display: flex;
|
|
204
|
+
flex-direction: column;
|
|
205
|
+
gap: 4px;
|
|
206
|
+
`,$e=l.span`
|
|
207
|
+
font-weight: 700;
|
|
208
|
+
color: ${s.colors.text};
|
|
209
|
+
`,Ne=l.span`
|
|
210
|
+
font-size: 13px;
|
|
211
|
+
line-height: 1.45;
|
|
212
|
+
color: ${s.colors.muted};
|
|
213
|
+
`,Ae=l.p`
|
|
214
|
+
margin: 0;
|
|
215
|
+
font-size: 12px;
|
|
216
|
+
line-height: 1.5;
|
|
217
|
+
color: ${s.colors.muted2};
|
|
218
|
+
`,We=l.div`
|
|
219
|
+
display: flex;
|
|
220
|
+
gap: 12px;
|
|
221
|
+
|
|
222
|
+
${s.media.down("mobile")} {
|
|
223
|
+
flex-direction: column-reverse;
|
|
224
|
+
}
|
|
225
|
+
`,ze=l.button`
|
|
226
|
+
flex: 1 1 0;
|
|
227
|
+
height: 48px;
|
|
228
|
+
border: 2px solid ${s.colors.accent};
|
|
229
|
+
border-radius: 12px;
|
|
230
|
+
background: transparent;
|
|
231
|
+
color: ${s.colors.accent};
|
|
232
|
+
cursor: pointer;
|
|
233
|
+
font-family: ${s.font.sans};
|
|
234
|
+
font-weight: 600;
|
|
235
|
+
font-size: 13px;
|
|
236
|
+
line-height: 24px;
|
|
237
|
+
letter-spacing: 0.46px;
|
|
238
|
+
text-transform: uppercase;
|
|
239
|
+
|
|
240
|
+
&:hover:not(:disabled) {
|
|
241
|
+
background: rgba(105, 31, 169, 0.06);
|
|
242
|
+
}
|
|
243
|
+
&:disabled {
|
|
244
|
+
cursor: default;
|
|
245
|
+
opacity: 0.5;
|
|
246
|
+
}
|
|
247
|
+
&:focus-visible {
|
|
248
|
+
outline: 2px solid ${s.colors.accent};
|
|
249
|
+
outline-offset: 2px;
|
|
250
|
+
}
|
|
251
|
+
`,_e=l.button`
|
|
252
|
+
flex: 1 1 0;
|
|
253
|
+
display: inline-flex;
|
|
254
|
+
align-items: center;
|
|
255
|
+
justify-content: center;
|
|
256
|
+
gap: 8px;
|
|
257
|
+
height: 48px;
|
|
258
|
+
border: 0;
|
|
259
|
+
border-radius: 12px;
|
|
260
|
+
background: ${s.colors.accent};
|
|
261
|
+
color: ${s.colors.softWhite};
|
|
262
|
+
cursor: pointer;
|
|
263
|
+
font-family: ${s.font.sans};
|
|
264
|
+
font-weight: 600;
|
|
265
|
+
font-size: 13px;
|
|
266
|
+
line-height: 24px;
|
|
267
|
+
letter-spacing: 0.46px;
|
|
268
|
+
text-transform: uppercase;
|
|
269
|
+
|
|
270
|
+
&:hover:not(:disabled) {
|
|
271
|
+
background: ${s.colors.accentHover};
|
|
272
|
+
}
|
|
273
|
+
&:disabled {
|
|
274
|
+
cursor: default;
|
|
275
|
+
background: rgba(105, 31, 169, 0.4);
|
|
276
|
+
}
|
|
277
|
+
&:focus-visible {
|
|
278
|
+
outline: 2px solid ${s.colors.accent};
|
|
279
|
+
outline-offset: 2px;
|
|
280
|
+
}
|
|
281
|
+
`,Ie=l.span`
|
|
282
|
+
width: 16px;
|
|
283
|
+
height: 16px;
|
|
284
|
+
border-radius: 50%;
|
|
285
|
+
border: 2px solid rgba(255, 255, 255, 0.5);
|
|
286
|
+
border-top-color: ${s.colors.white};
|
|
287
|
+
animation: ${ge} 0.7s linear infinite;
|
|
288
|
+
|
|
289
|
+
@media (prefers-reduced-motion: reduce) {
|
|
290
|
+
animation: none;
|
|
291
|
+
}
|
|
292
|
+
`;function qe({auth:n,signer:t,title:a,reason:r,name:o,image:i,icon:d,onAuthorized:u,onCancel:b,onClose:m}){const[x,y]=w.useState(!1),[c,g]=w.useState(null);async function v(){y(!0),g(null);try{await H({auth:n,signer:t,active:!0}),u()}catch(h){Z(h)?g(f("authorizeStep.errorRejected")):(O(h,{flow:"authorize_step",kind:n.kind}),g(f("authorizeStep.errorGeneric"))),y(!1)}}return e.jsx(be,{onClick:x?void 0:m,role:"presentation",children:e.jsxs(ye,{onClick:h=>h.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":a,children:[e.jsxs(we,{children:[e.jsx(ve,{children:a}),e.jsx(je,{onClick:m,disabled:x,"aria-label":f("authorizeStep.close"),children:e.jsx(K,{name:"close",className:"ico"})})]}),e.jsxs(Ce,{"data-testid":"authorize-step-row",children:[e.jsx(ke,{children:i?e.jsx("img",{src:i,alt:""}):d}),e.jsxs(Me,{children:[e.jsx($e,{title:o,children:o}),e.jsx(Ne,{children:r})]})]}),e.jsx(Ae,{children:f("authorizeStep.note")}),e.jsx(q,{message:c}),e.jsxs(We,{children:[e.jsx(ze,{type:"button",onClick:b,disabled:x,children:f("authorizeStep.cancel")}),e.jsx(_e,{type:"button","data-testid":"authorize-step-action",onClick:()=>void v(),disabled:x,children:x?e.jsxs(e.Fragment,{children:[e.jsx(Ie,{"aria-hidden":!0}),f("authorizeStep.authorizing")]}):f("authorizeStep.authorize")})]})]})})}async function Xe(n){const[t]=await Se({...n,trades:[n.trade]});return t}async function Se(n){const{trades:t,buyer:a,signer:r,onSigned:o}=n;if(t.length===0)throw new Error("No items to buy");const i=new Map;for(const u of t){const b=`${u.chainId}:${u.contract.toLowerCase()}`,m=i.get(b);m?m.push(u):i.set(b,[u])}const d=[];for(const u of i.values())d.push(await Ee({trades:u,buyer:a,signer:r,onSigned:o}));return d}async function Ee(n){const{trades:t,buyer:a,signer:r,onSigned:o}=n,i=t[0],d=$(U(i.contract),i.chainId),u=$(_.MANAToken,i.chainId);await T({auth:{kind:P.Allowance,contractAddress:u.address,spenderAddress:d.address,chainId:i.chainId},signer:r});const b=t.map(c=>ee(c,a));if(L.enabled)try{const c=new se(d.abi).encodeFunctionData("accept",[b]),g=J(),v=V(r.provider,g),h=await ne(v,g,c,d,{serverURL:L.relayerUrl});return o==null||o(),await g.waitForTransaction(h,1,12e4),h}catch(c){if(c instanceof ae&&c.code===re.USER_DENIED)throw c;console.warn("[buyWithMana] gasless meta-tx failed, falling back to a direct tx:",c)}await Y(r.provider,i.chainId);const x=await new ie(d.address,d.abi,r).accept(b,te(i.chainId));return o==null||o(),(await x.wait()).transactionHash}async function et(n){const{trade:t,buyer:a,signer:r,credits:o,manaGapWei:i}=n;if(o.length===0)throw new Error("No credits to spend — use buyWithMana for a MANA-only purchase");if(i<=0n)throw new Error("No MANA gap to cover — use buyWithCredits for a credits-only purchase");const d=$(_.MANAToken,t.chainId),u=$(_.CreditsManager,t.chainId);await T({auth:{kind:P.Allowance,contractAddress:d.address,spenderAddress:u.address,chainId:t.chainId},signer:r});const m=(o.reduce((x,y)=>x+BigInt(y.availableAmount),0n)+i).toString();return X({trade:t,buyer:a,signer:r,credits:o,maxCreditedValue:m})}function tt({className:n}){return e.jsxs("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":!0,className:n,children:[e.jsx("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:"#691fa9",strokeWidth:"1.8"}),e.jsx("path",{d:"M12 7v6",stroke:"#691fa9",strokeWidth:"1.8",strokeLinecap:"round"}),e.jsx("circle",{cx:"12",cy:"16.5",r:"1.1",fill:"#691fa9"})]})}function nt({title:n,items:t,onViewAll:a}){const r=w.useRef(null),[o,i]=w.useState(1),[d,u]=w.useState(0),[b,m]=w.useState(!0),[x,y]=w.useState(!1),c=w.useCallback(()=>{const h=r.current;if(!h)return;const{scrollLeft:p,scrollWidth:S,clientWidth:N}=h,E=Math.max(1,Math.ceil(S/N));i(E),u(Math.min(E-1,Math.round(p/N))),m(p<=1),y(p+N>=S-1)},[]);if(w.useEffect(()=>{c();const h=r.current;if(h)return h.addEventListener("scroll",c,{passive:!0}),window.addEventListener("resize",c),()=>{h.removeEventListener("scroll",c),window.removeEventListener("resize",c)}},[c,t.length]),t.length===0)return null;function g(h){const p=r.current;p&&p.scrollBy({left:h*p.clientWidth,behavior:"smooth"})}function v(h){const p=r.current;p&&p.scrollTo({left:h*p.clientWidth,behavior:"smooth"})}return e.jsxs("section",{className:"collection-carousel",children:[e.jsxs("div",{className:"collection-carousel__head",children:[e.jsx("h2",{className:"collection-carousel__title",children:n}),a?e.jsxs("button",{className:"collection-carousel__viewall",onClick:a,children:[f("collectionCarousel.viewAll"),e.jsx(K,{name:"chevron-down",size:16,className:"collection-carousel__viewall-ico"})]}):null]}),e.jsxs("div",{className:"collection-carousel__viewport",children:[e.jsx("button",{className:"collection-carousel__arrow collection-carousel__arrow--left",onClick:()=>g(-1),"aria-label":f("collectionCarousel.scrollLeft"),disabled:b,children:e.jsx("img",{src:B,alt:"","aria-hidden":!0})}),e.jsx("div",{className:"collection-carousel__track",ref:r,children:t.map(h=>e.jsx(G,{item:h},h.id))}),e.jsx("button",{className:"collection-carousel__arrow collection-carousel__arrow--right",onClick:()=>g(1),"aria-label":f("collectionCarousel.scrollRight"),disabled:x,children:e.jsx("img",{src:B,alt:"","aria-hidden":!0})})]}),o>1?e.jsx("div",{className:"collection-carousel__dots","aria-label":f("collectionCarousel.pages"),children:Array.from({length:o}).map((h,p)=>e.jsx("button",{className:`collection-carousel__dot${p===d?" is-active":""}`,"aria-label":f("collectionCarousel.goToPage",{page:p+1}),"aria-current":p===d?"true":void 0,onClick:()=>v(p)},p))}):null]})}export{qe as A,nt as C,Ye as P,tt as W,A as a,Se as b,Ge as c,He as d,le as e,k as f,Xe as g,Je as h,Ze as i,et as j,Ve as m,Oe as s,Ue as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as D,j as e,L as re,d as se,b as te,r as j}from"./react-B36MyIP_.js";import{aC as oe,aD as ce,l as le,t as a,aE as E,B as ne,ay as K,e as ie,az as z,I,c as de,h as me,M as ue,as as he,aF as ge,b as xe}from"./index-
|
|
1
|
+
import{a as D,j as e,L as re,d as se,b as te,r as j}from"./react-B36MyIP_.js";import{aC as oe,aD as ce,l as le,t as a,aE as E,B as ne,ay as K,e as ie,az as z,I,c as de,h as me,M as ue,as as he,aF as ge,b as xe}from"./index-VchcND_n.js";import{d as _e,g as pe,a as Ne,A as je}from"./collection-Cbl5FMco.js";import{u as be,L as fe}from"./useStore-BEtv4alq.js";import{d as $,a as ve,S as w,F as Ce,e as we,b as ke}from"./categories-Jh3tfbEa.js";import{L as B}from"./LoadMore-K8EfO7If.js";import{u as R}from"./useInfiniteGrid-S2Upf1Ae.js";import{E as T}from"./ErrorNotice-D_Z5OVFI.js";import"./sentry-gZJVwIqQ.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BteKixT0.js";import"./intl-CBcMB1D2.js";import"./emotion-CSxEP8yM.js";function Pe({collection:t,cover:r,itemCount:o}){const n=D(),{contractAddress:m,name:g,creator:x}=t,N=r==null||o==null,{data:i}=oe(m,N),p=r==null?(i==null?void 0:i.items)??[]:[],h=o??(i==null?void 0:i.total);function _(){n(`/collection/${m}`)}return e.jsxs("article",{className:"coll-card",role:"link",tabIndex:0,onClick:_,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),_())},children:[e.jsx("div",{className:"coll-card__media",children:r?e.jsx("img",{className:"coll-card__img","data-testid":"coll-card-img",src:r,alt:"",loading:"lazy"}):p.length>0?e.jsx(ce,{items:p,className:"coll-card__cover"}):null}),e.jsxs("div",{className:"coll-card__body",children:[e.jsx("h3",{className:"coll-card__name",title:g,children:g}),e.jsxs("div",{className:"coll-card__meta",children:[x?e.jsx(le,{address:x,className:"coll-card__creator",linkToProfile:!0}):e.jsx("span",{className:"coll-card__creator",children:" "}),e.jsx("span",{className:"coll-card__count",children:h==null?"…":a("collectionCard.itemCount",{count:h})})]}),e.jsx("button",{className:"coll-card__view",onClick:d=>{d.stopPropagation(),_()},tabIndex:-1,children:a("collectionCard.viewCollection")})]})]})}function ye({address:t,className:r=""}){const o=E(m=>m.followed.includes(t.toLowerCase())),n=E(m=>m.toggle);return t?e.jsx(ne,{type:"button",size:"sm",variant:o?"ghost":"outline",className:r||void 0,"aria-pressed":o,title:o?a("creator.unfollowTitle"):a("creator.followTitle"),onClick:()=>n(t),children:o?a("creator.following"):a("creator.follow")}):null}const Se={website:"website",twitter:"twitter",discord:"discord",facebook:"facebook"};function Le({address:t}){var d,b;const{data:r}=K(t),{data:o}=be(t),n=ie(l=>{var f;return(f=l.session)==null?void 0:f.address}),m=!!n&&n.toLowerCase()===t.toLowerCase(),g=(r==null?void 0:r.name)||z(t),x=(b=(d=r==null?void 0:r.avatar)==null?void 0:d.snapshots)==null?void 0:b.face256,N=(o==null?void 0:o.cover)||_e,i=o==null?void 0:o.description,p=`${de.profileUrl}/${t}`,h=fe.filter(l=>o==null?void 0:o.links[l]),_=pe(Ne({name:r==null?void 0:r.name,hasClaimedName:r==null?void 0:r.hasClaimedName,ethAddress:(r==null?void 0:r.ethAddress)??t}));return e.jsxs("section",{className:"creator-hero","aria-label":`${g} storefront`,children:[e.jsxs("div",{className:"creator-hero__cover",children:[e.jsx("img",{className:"creator-hero__cover-img",src:N,alt:"",loading:"eager"}),e.jsx("div",{className:"creator-hero__scrim","aria-hidden":!0})]}),(h.length>0||m)&&e.jsxs("div",{className:"creator-hero__links",children:[h.map(l=>e.jsx("a",{className:"creator-hero__link","data-testid":"creator-hero-link",href:(o==null?void 0:o.links[l])??"",target:"_blank",rel:"noopener noreferrer",title:a(`creator.link.${l}`),"aria-label":a(`creator.link.${l}`),children:e.jsx(I,{name:Se[l]})},l)),m&&e.jsx(re,{className:"creator-hero__link creator-hero__edit",to:"/store-settings",title:a("creator.editStore"),"aria-label":a("creator.editStore"),children:e.jsx(I,{name:"pen"})})]}),e.jsxs("div",{className:"creator-hero__body",children:[x?e.jsx("img",{className:"creator-hero__ava",src:x,alt:"",loading:"eager",style:{backgroundColor:_}}):e.jsx("span",{className:"creator-hero__ava creator-hero__ava--ph","aria-hidden":!0,style:{backgroundColor:_}}),e.jsxs("div",{children:[e.jsx("h2",{className:"creator-hero__name",children:g}),i?e.jsx("p",{className:"creator-hero__desc",children:i}):null]}),e.jsxs("div",{className:"creator-hero__actions",children:[e.jsx("a",{className:"creator-hero__view","data-testid":"creator-hero-view",href:p,target:"_blank",rel:"noopener noreferrer",children:a("creator.viewProfile")}),e.jsx(ye,{address:t,className:"creator-hero__follow"})]})]})]})}const U=48;function Oe(){const{address:t}=se(),r=D(),[o]=te(),n=o.has("collections"),{data:m}=K(t),g=(m==null?void 0:m.name)||(t?z(t):a("creator.fallbackName"));me({title:g,description:a("seo.creator.description",{name:g})});const[x,N]=j.useState("wearable"),[i,p]=j.useState(null),[h,_]=j.useState([]),[d,b]=j.useState(""),[l,f]=j.useState(""),[P,O]=j.useState("newest"),y=d&&!Number.isNaN(Number(d))?Number(d):void 0,S=l&&!Number.isNaN(Number(l))?Number(l):void 0,G=i?ke[i]:void 0,H=($.find(s=>s.key===P)??$[0]).server,L={creator:t,category:x,rarities:h.length?h:void 0,wearableCategories:G,minPriceCredits:y,maxPriceCredits:S,sortBy:H},{items:v,total:Y,isLoading:C,error:A,hasNextPage:W,isFetchingNextPage:F,fetchNextPage:Z}=R(["creator-listings",L],s=>he({...L,first:U,skip:s}),{enabled:!!t&&!n}),u=R(["creator-collections",t],s=>ge(t,{first:U,skip:s}).then(c=>({items:c.collections,total:c.total})),{enabled:!!t&&n});function q(s){N(s),p(null),n&&M()}function M(){const s=new URLSearchParams(o);s.delete("collections");const c=s.toString();r({search:c?`?${c}`:""},{replace:!0})}function J(){if(n){M();return}const s=new URLSearchParams(o);s.delete("collections");const c=s.toString();r({search:c?`?${c}&collections`:"?collections"},{replace:!0})}function Q(s){_(c=>c.includes(s)?c.filter(ae=>ae!==s):[...c,s])}function V(){N("wearable"),p(null),_([]),b(""),f("")}const k=!!(y||S),X=k?`${d||"0"}–${l||"∞"}`:a("filter.price"),ee=x!=="wearable"||!!i||h.length>0||k;return e.jsxs("div",{className:"collection-page",children:[e.jsxs("nav",{className:"collection-page__crumbs","aria-label":a("creator.breadcrumbAria"),children:[e.jsx("button",{className:"collection-page__crumb-link",onClick:()=>r("/assets"),children:a("creator.breadcrumb")}),e.jsx("span",{className:"collection-page__crumb-sep",children:"/"}),e.jsx("span",{className:"collection-page__crumb-current",children:g})]}),t?e.jsx(Le,{address:t}):null,!n&&!C&&v.length>0?e.jsx(je,{items:v,source:"creator"}):null,e.jsxs("div",{className:"browse browse--sidebar",children:[e.jsx("aside",{className:"browse__sidebar",children:e.jsx(ve,{category:x,subCategory:i,onCategory:q,onSub:p,title:a("creator.category"),flat:!0,collections:n,onCollections:J})}),e.jsx("div",{className:"browse__main",children:n?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"creator-collections__bar",children:e.jsx("span",{className:"assets__count",children:u.isLoading?"…":a("creator.collectionsCount",{count:u.total})})}),u.error?e.jsx(T,{message:a("creator.error")}):null,e.jsx("div",{className:"grid grid--collections",children:u.isLoading?e.jsx(w,{count:9}):e.jsxs(e.Fragment,{children:[u.items.map(s=>e.jsx(Pe,{collection:s,itemCount:s.itemCount},s.contractAddress)),u.isFetchingNextPage?e.jsx(w,{count:6}):null]})}),e.jsx(B,{hasNextPage:u.hasNextPage,isFetching:u.isFetchingNextPage,onLoadMore:()=>void u.fetchNextPage()}),!u.isLoading&&!u.error&&u.items.length===0?e.jsx("p",{className:"muted",children:a("creator.collectionsEmpty")}):null]}):e.jsxs(e.Fragment,{children:[e.jsx(Ce,{rarities:h,onToggleRarity:Q,sort:P,onSort:O,total:Y,loading:C,anyActive:ee,onClear:V,renderTrailing:s=>e.jsx(we,{panelKey:"price",label:X,active:k,panel:s,children:e.jsxs("div",{className:"filter-pop filter-pop--price",children:[e.jsxs("div",{className:"filter-pop__price-row",children:[e.jsx("input",{type:"number",min:"0","aria-label":a("creator.priceMin"),placeholder:a("creator.priceMinPlaceholder"),value:d,onChange:c=>b(c.target.value)}),e.jsx("span",{children:"–"}),e.jsx("input",{type:"number",min:"0","aria-label":a("creator.priceMax"),placeholder:a("creator.priceMaxPlaceholder"),value:l,onChange:c=>f(c.target.value)})]}),e.jsx("p",{className:"filter-pop__hint",children:a("creator.priceHint",{currency:xe.name})})]})})}),A?e.jsx(T,{message:a("creator.error")}):null,e.jsx("div",{className:"grid",children:C?e.jsx(w,{count:15}):e.jsxs(e.Fragment,{children:[v.map(s=>e.jsx(ue,{item:s},s.id)),F?e.jsx(w,{count:6}):null]})}),e.jsx(B,{hasNextPage:W,isFetching:F,onLoadMore:()=>void Z()}),!C&&!A&&v.length===0?e.jsx("p",{className:"muted",children:a("creator.empty")}):null]})})]})]})}export{Oe as Creator,Oe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as l,E as w,b as E,S as A,d as k,O as U,N as P,g as f,B as x,e as N,i as I,p as L}from"./W3MFrameProviderSingleton-
|
|
1
|
+
import{C as l,E as w,b as E,S as A,d as k,O as U,N as P,g as f,B as x,e as N,i as I,p as L}from"./W3MFrameProviderSingleton-DtrTVFth.js";import{g as T,a as W,f as b,b as _,c as v}from"./index-Dlw2S5cF.js";const D=0,C={paymentAsset:null,amount:null,tokenAmount:0,priceLoading:!1,error:null,exchanges:[],isLoading:!1,currentPayment:void 0,isPaymentInProgress:!1,paymentId:"",assets:[]},e=L(C),m={state:e,subscribe(t){return I(e,()=>t(e))},subscribeKey(t,n){return N(e,t,n)},resetState(){Object.assign(e,{...C})},async getAssetsForNetwork(t){const n=v(t),s=await m.getAssetsImageAndPrice(n),r=n.map(a=>{var c,o,p,y;const u=a.asset==="native"?f():`${a.network}:${a.asset}`,i=s.find(S=>{var g,d,h;return((h=(d=(g=S.fungibles)==null?void 0:g[0])==null?void 0:d.address)==null?void 0:h.toLowerCase())===u.toLowerCase()});return{...a,price:((o=(c=i==null?void 0:i.fungibles)==null?void 0:c[0])==null?void 0:o.price)||1,metadata:{...a.metadata,iconUrl:(y=(p=i==null?void 0:i.fungibles)==null?void 0:p[0])==null?void 0:y.iconUrl}}});return e.assets=r,r},async getAssetsImageAndPrice(t){const n=t.map(r=>r.asset==="native"?f():`${r.network}:${r.asset}`);return await Promise.all(n.map(r=>x.fetchTokenPrice({addresses:[r]})))},getTokenAmount(){var s;if(!((s=e==null?void 0:e.paymentAsset)!=null&&s.price))throw new Error("Cannot get token price");const t=P.bigNumber(e.amount??0).round(8),n=P.bigNumber(e.paymentAsset.price).round(8);return t.div(n).round(8).toNumber()},setAmount(t){var n;e.amount=t,(n=e.paymentAsset)!=null&&n.price&&(e.tokenAmount=m.getTokenAmount())},setPaymentAsset(t){e.paymentAsset=t},isPayWithExchangeEnabled(){var t;return(t=U.state.remoteFeatures)==null?void 0:t.payWithExchange},isPayWithExchangeSupported(){return m.isPayWithExchangeEnabled()&&l.state.activeCaipNetwork&&k.PAY_WITH_EXCHANGE_SUPPORTED_CHAIN_NAMESPACES.includes(l.state.activeCaipNetwork.chainNamespace)},async fetchExchanges(){var t;try{const n=m.isPayWithExchangeSupported();if(!e.paymentAsset||!n){e.exchanges=[],e.isLoading=!1;return}e.isLoading=!0;const s=await _({page:D,asset:b(e.paymentAsset.network,e.paymentAsset.asset),amount:((t=e.amount)==null?void 0:t.toString())??"0"});e.exchanges=s.exchanges.slice(0,2)}catch{throw A.showError("Unable to get exchanges"),new Error("Unable to get exchanges")}finally{e.isLoading=!1}},async getPayUrl(t,n){try{const s=Number(n.amount),r=await W({exchangeId:t,asset:b(n.network,n.asset),amount:s.toString(),recipient:`${n.network}:${n.recipient}`});return w.sendEvent({type:"track",event:"PAY_EXCHANGE_SELECTED",properties:{exchange:{id:t},configuration:{network:n.network,asset:n.asset,recipient:n.recipient,amount:s},currentPayment:{type:"exchange",exchangeId:t},source:"fund-from-exchange",headless:!1}}),r}catch(s){throw s instanceof Error&&s.message.includes("is not supported")?new Error("Asset not supported"):new Error(s.message)}},async handlePayWithExchange(t){var n;try{const s=(n=l.getAccountData())==null?void 0:n.address;if(!s)throw new Error("No account connected");if(!e.paymentAsset)throw new Error("No payment asset selected");const r=E.returnOpenHref("","popupWindow","scrollbar=yes,width=480,height=720");if(!r)throw new Error("Could not create popup window");e.isPaymentInProgress=!0,e.paymentId=crypto.randomUUID(),e.currentPayment={type:"exchange",exchangeId:t};const{network:a,asset:u}=e.paymentAsset,i={network:a,asset:u,amount:e.tokenAmount,recipient:s},c=await m.getPayUrl(t,i);if(!c){try{r.close()}catch(o){console.error("Unable to close popup window",o)}throw new Error("Unable to initiate payment")}e.currentPayment.sessionId=c.sessionId,e.currentPayment.status="IN_PROGRESS",e.currentPayment.exchangeId=t,r.location.href=c.url}catch{e.error="Unable to initiate payment",A.showError(e.error)}},async waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r=20}){const a=await m.getBuyStatus(t,n,s);if(a.status==="SUCCESS"||a.status==="FAILED")return a;if(r===0)throw new Error("Unable to get deposit status");return await new Promise(u=>{setTimeout(u,5e3)}),m.waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r-1})},async getBuyStatus(t,n,s){var r,a,u,i,c;try{if(!e.currentPayment)throw new Error("No current payment");const o=await T({sessionId:n,exchangeId:t});if(e.currentPayment.status=o.status,o.status==="SUCCESS"||o.status==="FAILED"){const p=(r=l.getAccountData())==null?void 0:r.address;e.currentPayment.result=o.txHash,e.isPaymentInProgress=!1,w.sendEvent({type:"track",event:o.status==="SUCCESS"?"PAY_SUCCESS":"PAY_ERROR",properties:{message:o.status==="FAILED"?E.parseError(e.error):void 0,source:"fund-from-exchange",paymentId:s,configuration:{network:((a=e.paymentAsset)==null?void 0:a.network)||"",asset:((u=e.paymentAsset)==null?void 0:u.asset)||"",recipient:p||"",amount:e.amount??0},currentPayment:{type:"exchange",exchangeId:(i=e.currentPayment)==null?void 0:i.exchangeId,sessionId:(c=e.currentPayment)==null?void 0:c.sessionId,result:o.txHash}}})}return o}catch{return{status:"UNKNOWN",txHash:""}}},reset(){e.currentPayment=void 0,e.isPaymentInProgress=!1,e.paymentId="",e.paymentAsset=null,e.amount=0,e.tokenAmount=0,e.priceLoading=!1,e.error=null,e.exchanges=[],e.isLoading=!1}};export{m as E};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ae,b as de,r as c,j as t}from"./react-B36MyIP_.js";import{n as i,K as e,R,h as ce,t as r,e as le,x as pe,E as g,an as xe,b as l,J as G,F as H,I as J,k as Z,z as ue}from"./index-
|
|
1
|
+
import{a as ae,b as de,r as c,j as t}from"./react-B36MyIP_.js";import{n as i,K as e,R,h as ce,t as r,e as le,x as pe,E as g,an as xe,b as l,J as G,F as H,I as J,k as Z,z as ue}from"./index-VchcND_n.js";import{R as M}from"./resume-buy-Bf0zIH7y.js";import{R as ge}from"./cart-checkout-Bp3fmOrE.js";import{l as he}from"./loader-logo-BzY9EKdC.js";import{u as fe,p as me,c as be,i as we}from"./useCreditPacks-B8su_g3G.js";import{C as ye}from"./CircularProgress-B7WalF_4.js";import"./sentry-gZJVwIqQ.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BteKixT0.js";import"./intl-CBcMB1D2.js";const j="https://cdn.decentraland.org/@dcl/shop/0.1.0-30341633105.commit-bfa7613/assets/pack-coins-BDh1ZDbh.webp",ee="https://cdn.decentraland.org/@dcl/shop/0.1.0-30341633105.commit-bfa7613/assets/pack-stacks-D-V2jSHW.webp",te="https://cdn.decentraland.org/@dcl/shop/0.1.0-30341633105.commit-bfa7613/assets/pack-chest-BX_j84xW.webp",ke="https://cdn.decentraland.org/@dcl/shop/0.1.0-30341633105.commit-bfa7613/assets/credit-coin-CmcTCd5i.webp",Ce="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='30'%20fill='%2334CE77'/%3e%3cpath%20d='M21.6583%2046.1067L11.4656%2036.0591C10.1688%2034.829%2010.1905%2032.7207%2011.4769%2031.4622L13.6868%2029.3591C14.9732%2028.1006%2017.1615%2028.1058%2018.4582%2029.3359L23.8747%2034.6197L41.9704%2015.6527C43.2568%2014.3942%2045.4291%2014.2093%2046.7258%2015.4394L48.8765%2017.3628C50.1732%2018.5929%2050.3491%2020.6844%2049.0626%2021.9429L26.6112%2045.8766C25.1433%2047.342%2022.955%2047.3368%2021.6583%2046.1067Z'%20fill='%23FCFCFC'/%3e%3c/svg%3e",je="https://cdn.decentraland.org/@dcl/shop/0.1.0-30341633105.commit-bfa7613/assets/packs-backdrop-BcXiUPeP.webp",N="linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",$e=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 24px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as f,b as h}from"./lit-element-B3y9oplH.js";import{n as m}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-
|
|
1
|
+
import{i as f,b as h}from"./lit-element-B3y9oplH.js";import{n as m}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-BqdSTJ_h.js";import{d as g,r as v}from"./index-Dlw2S5cF.js";import{C as c}from"./ConstantsUtil-CqaPdSAF.js";import{R as $,O as u}from"./W3MFrameProviderSingleton-DtrTVFth.js";import{au as y}from"./NetworkUtil-DQZGJzap.js";const b=g`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as R,r as h,j as e,L as B}from"./react-B36MyIP_.js";import{j as U,t as s,b as S,B as k,k as C,E as $,J as Q,h as P,e as W,x as O,u as z,n as F,U as J}from"./index-
|
|
1
|
+
import{a as R,r as h,j as e,L as B}from"./react-B36MyIP_.js";import{j as U,t as s,b as S,B as k,k as C,E as $,J as Q,h as P,e as W,x as O,u as z,n as F,U as J}from"./index-VchcND_n.js";import{i as Y,R as D,f as G}from"./import-5htnR-24.js";import"./sentry-gZJVwIqQ.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BteKixT0.js";import"./intl-CBcMB1D2.js";import"./buy-CyhVI8ih.js";import"./authorizations-Dtu8Ye0y.js";import"./sendMetaTransaction-CydgYVdt.js";import"./trade-encoding-DbssSNOL.js";import"./mana-rate-CY9tOCr1.js";function H({queue:n,session:T,onClose:j,onDone:o}){const N=R(),d=U(T.providerType),[m,f]=h.useState(()=>n.map(()=>"pending")),[I,E]=h.useState("running"),w=h.useRef(!1);h.useEffect(()=>{if(w.current)return;w.current=!0;let t=!1;return(async()=>{for(let r=0;r<n.length;r++){if(t)return;f(u=>u.map((g,p)=>p===r?"active":g));try{await Y(n[r].item,n[r].priceCredits,T),$("Shop Migrated Listing",{item_id:n[r].item.itemId??n[r].item.oldTradeId??null,contract_address:n[r].item.contractAddress,new_price_credits:n[r].priceCredits,new_price_usd:n[r].priceCredits/10}),t||f(u=>u.map((g,p)=>p===r?"done":g))}catch(u){if(u instanceof D)Q(u,{flow:"import_listing",step:"relist",itemId:n[r].item.itemId??n[r].item.oldTradeId}),t||f(g=>g.map((p,b)=>b===r?"unlisted":p));else{const g=u,p=g.code===4001||/reject|denied|cancel/i.test(g.message??"");p||Q(u,{flow:"import_listing",itemId:n[r].item.itemId??n[r].item.oldTradeId}),t||f(b=>b.map((a,l)=>l===r?p?"skipped":"failed":a))}}}t||E("finished")})(),()=>{t=!0}},[]);const _=m.filter(t=>t==="done").length,v=m.findIndex(t=>t==="active"),x=Math.round(m.filter(t=>t!=="pending"&&t!=="active").length/n.length*100);function y(){o(),j()}if(I==="finished"){const t=m.filter(r=>r==="skipped"||r==="failed").length,c=m.filter(r=>r==="unlisted").length;return e.jsx("div",{className:"modal-backdrop",role:"presentation",children:e.jsxs("div",{className:"modal modal--success",role:"dialog","aria-modal":"true",children:[e.jsx("div",{className:"modal-success__check","aria-hidden":!0,children:"✓"}),e.jsx("h2",{className:"modal__title",children:_>0?s("migrate.successTitle"):s("migrate.nothingTitle")}),e.jsxs("p",{className:"muted",style:{margin:0},children:[_>0?s("migrate.listedSummary",{count:_,currency:S.name}):s("migrate.noneListed"),t>0?" "+s("migrate.skippedSummary",{count:t}):"",c>0?" "+s("migrate.unlistedSummary",{count:c}):""]}),e.jsxs("div",{className:"modal__actions",children:[e.jsx(k,{variant:"ghost",onClick:y,children:s("getCredits.done")}),c>0?e.jsx(k,{variant:"purple",onClick:()=>{o(),j(),N("/my-assets")},children:s("migrate.goToMyAssets")}):_>0?e.jsx(k,{variant:"purple",onClick:()=>{o(),j(),N("/assets")},children:s("migrate.viewInShop")}):null]})]})})}return e.jsx("div",{className:"modal-backdrop",role:"presentation",children:e.jsxs("div",{className:"modal migrate","data-testid":"modal",role:"dialog","aria-modal":"true","aria-live":"polite",children:[e.jsx("h2",{className:"modal__title",children:s("migrate.listingTitle")}),e.jsxs("p",{className:"muted small",style:{margin:"0 0 4px"},children:[d?s("migrate.subConfirm"):s("migrate.subManaged")," ",v>=0?s("migrate.progressCount",{current:v+1,total:n.length}):""]}),e.jsx("div",{className:"migrate__progress",children:e.jsx("div",{className:"migrate__bar",style:{width:`${x}%`}})}),e.jsx("ul",{className:"migrate__list",children:n.map((t,c)=>e.jsxs("li",{className:`migrate__row migrate__row--${m[c]}`,children:[e.jsx("span",{className:"migrate__thumb",children:t.item.thumbnail?e.jsx("img",{src:t.item.thumbnail,alt:""}):null}),e.jsx("span",{className:"migrate__name",title:t.item.name,children:t.item.name||s("migrate.itemFallback")}),e.jsxs("span",{className:"migrate__price",children:[e.jsx(C,{className:"ccy-mark"})," ",t.priceCredits.toLocaleString()]}),e.jsx("span",{className:"migrate__status",children:m[c]==="active"?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"spinner migrate__spin","aria-hidden":!0})," ",d?s("migrate.statusConfirm"):s("migrate.statusAdding")]}):m[c]==="done"?e.jsx("span",{className:"migrate__tick",children:"✓"}):m[c]==="skipped"?e.jsx("span",{className:"migrate__skip",children:s("migrate.statusSkipped")}):m[c]==="failed"?e.jsx("span",{className:"migrate__skip",children:s("migrate.statusFailed")}):m[c]==="unlisted"?e.jsx("span",{className:"migrate__skip",title:s("migrate.unlistedTooltip"),children:s("migrate.statusUnlisted")}):e.jsx("span",{className:"migrate__wait",children:s("migrate.statusWaiting")})})]},t.item.oldTradeId))}),e.jsx("p",{className:"muted small migrate__hint",children:d?s("migrate.hintConfirm"):s("migrate.hintManaged")})]})})}const A=F(k)`
|
|
2
2
|
margin-top: 10px;
|
|
3
3
|
`,V=F(k)`
|
|
4
4
|
padding: 13px 24px;
|