1(this["webpackJsonppancake-frontend"]=this["webpackJsonppancake-frontend"]||[]).push([[17],{1339:function(e,t,n){},1367:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return k}));var i,o=n(12),c=n(13),l=n(1),r=n(9),u=n(4),a=n(62),d=n(24),s=n(19),b=n(471),j=n(111),x=n(112),O=n(48),f=n(264),h=n(223),m=n(297),p=n(296),v=(n(1339),n(2)),y=Object(r.e)(u.x)(i||(i=Object(c.a)(["\n\n"])));function k(){var e=Object(s.a)().account,t=Object(d.b)().t,n=Object(O.l)(),i=Object(l.useMemo)((function(){return n.map((function(e){return{liquidityToken:Object(O.a)(e),tokens:e}}))}),[n]),c=Object(l.useMemo)((function(){return i.map((function(e){return e.liquidityToken}))}),[i]),r=Object(j.f)(null!==e&&void 0!==e?e:void 0,c),k=Object(o.a)(r,2),g=k[0],q=k[1],w=Object(l.useMemo)((function(){return i.filter((function(e){var t,n=e.liquidityToken;return null===(t=g[n.address])||void 0===t?void 0:t.greaterThan("0")}))}),[i,g]),P=Object(x.c)(w.map((function(e){return e.tokens}))),A=q||(null===P||void 0===P?void 0:P.length)<w.length||(null===P||void 0===P?void 0:P.some((function(e){return!e}))),N=P.map((function(e){return Object(o.a)(e,2)[1]})).filter((function(e){return Boolean(e)}));return Object(v.jsxs)(m.a,{children:[Object(v.jsx)(p.a,{activeIndex:1}),Object(v.jsxs)(h.a,{children:[Object(v.jsx)(h.b,{title:t("Remove liquidity to receive tokens back"),subtitle:t("Remove liquidity to receive tokens back")}),Object(v.jsxs)(y,{children:[e?A?Object(v.jsx)(u.Kb,{color:"textSubtle",textAlign:"center",className:"liquidityPoolHeading",children:Object(v.jsx)(f.a,{children:t("Loading")})}):(null===N||void 0===N?void 0:N.length)>0?N.map((function(e,t){return Object(v.jsx)(b.b,{pair:e,mb:t<N.length-1?"16px":0},e.liquidityToken.address)})):Object(v.jsx)(u.Kb,{color:"textSubtle",textAlign:"center",className:"liquidityPoolHeading",children:t("No liquidity found.")}):Object(v.jsx)(u.Kb,{color:"textSubtle",textAlign:"center",className:"liquidityPoolHeading",children:t("Connect to a wallet to view your liquidity.")}),e&&!A&&Object(v.jsxs)(u.P,{flexDirection:"column",alignItems:"center",mt:"24px",children:[Object(v.jsx)(u.Kb,{color:"textSubtle",mb:"8px",className:"noLiquidityPoolHeading",children:t("Don't see a pool you joined?")}),Object(v.jsx)(u.r,{id:"import-pool-link",variant:"secondary",scale:"sm",as:a.a,to:"/find",children:t("Find other LP tokens")})]})]}),Object(v.jsx)(u.y,{style:{textAlign:"center"},children:Object(v.jsx)(u.r,{id:"join-pool-button",as:a.a,to:"/add",width:"100%",startIcon:Object(v.jsx)(u.a,{color:"white"}),children:t("Add Liquidity")})})]})]})}}}]); 2//# sourceMappingURL=17.3a36ffd6.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.