1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="185bd139-4274-4b5f-8be2-52a6d706d4d8",e._sentryDebugIdIdentifier="sentry-dbid-185bd139-4274-4b5f-8be2-52a6d706d4d8")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9818],{399832:(e,t,n)=>{n.d(t,{A:()=>a});var i=n(350979),r=n(25963),l=n(673115),s=n(32654),o=n(785459);let a=e=>{let{children:t,icon:n,useBscCoinFallback:a,...d}=e,c=(0,r.useMemo)(()=>n||(a?(0,i.jsx)(o.A,{}):(0,i.jsx)(s.A,{})),[n,a]),x=(0,r.useMemo)(()=>r.isValidElement(c)?r.cloneElement(c,{color:d.color?d.color:"primary",ml:"4px"}):null,[c,d.color]);return(0,i.jsxs)(l.A,{external:!0,...d,children:[t,x]})}},507334:(e,t,n)=>{n.d(t,{Ay:()=>l,gn:()=>r,r0:()=>i});let i=60,r=0x1e187e0,l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"floor",n="floor"===t?Math.floor:Math.ceil,l=Math.abs(e),s={years:0,months:0,days:0,hours:0,minutes:0,seconds:0,totalDays:0};return l>=86400&&(s.totalDays=n(l/86400)),l>=r&&(s.years=n(l/r),l-=s.years*r),l>=2629800&&(s.months=n(l/2629800),l-=2629800*s.months),l>=86400&&(s.days=n(l/86400),l-=86400*s.days),l>=3600&&(s.hours=n(l/3600),l-=3600*s.hours),l>=i&&(s.minutes=n(l/i),l-=s.minutes*i),s.seconds=l,s}},571485:(e,t,n)=>{n.d(t,{A:()=>T});var i=n(350979),r=n(769932),l=n(979332),s=n(820004),o=n(605641),a=n(579518),d=n(889948),c=n(814455),x=n(265449),h=n(348221),p=n(654168),u=n(217784),m=n(731955),j=n(71307),A=n(628855),f=n(10031),g=n(424396),b=n(76273),y=n(814401),w=n(188480),v=n(178714),C=n(202463),k=n(917451),I=n(534410);let S=(0,n(25963).memo)(()=>{let{t:e}=(0,r.A)();return(0,i.jsx)(o.A,{color:"text",children:e("Farm Auction Winner, add liquidity at your own risk.")})}),T={CoreTag:e=>{let{t}=(0,r.A)();return(0,i.jsx)(l.A,{variant:"secondary",style:{background:"none",width:"fit-content"},outline:!0,startIcon:(0,i.jsx)(s.A,{width:"18px",color:"secondary",mr:"4px"}),...e,children:t("Core")})},FarmAuctionTag:e=>{let{t}=(0,r.A)(),{targetRef:n,tooltip:s,tooltipVisible:o}=(0,a.A)((0,i.jsx)(S,{}),{placement:"top"});return(0,i.jsxs)(i.Fragment,{children:[o&&s,(0,i.jsx)(d.A,{ref:n,display:"flex",style:{textDecoration:"none",justifyContent:"center",alignSelf:"center"},children:(0,i.jsx)(l.A,{variant:"failure",outline:!0,startIcon:(0,i.jsx)(c.A,{width:"18px",color:"failure",mr:"4px"}),...e,children:t("Farm Auction")})})]})},DualTag:e=>{let{t}=(0,r.A)();return(0,i.jsx)(l.A,{variant:"textSubtle",outline:!0,...e,children:t("Dual")})},ManualPoolTag:e=>{let{t}=(0,r.A)();return(0,i.jsx)(l.A,{variant:"secondary",outline:!0,startIcon:(0,i.jsx)(x.A,{width:"18px",color:"secondary",mr:"4px"}),...e,children:t("Manual")})},CompoundingPoolTag:e=>{let{t}=(0,r.A)();return(0,i.jsx)(l.A,{variant:"success",outline:!0,startIcon:(0,i.jsx)(p.A,{width:"18px",color:"success",mr:"4px"}),...e,children:t("Auto")})},VoteNowTag:e=>{let{t}=(0,r.A)();return(0,i.jsx)(l.A,{variant:"success",startIcon:(0,i.jsx)(u.A,{width:"18px",color:"white",mr:"4px"}),...e,children:t("Vote Now")})},SoonTag:e=>{let{t}=(0,r.A)();return(0,i.jsx)(l.A,{variant:"binance",startIcon:(0,i.jsx)(j.A,{width:"18px",color:"white",mr:"4px"}),...e,children:t("Soon")})},ClosedTag:e=>{let{t}=(0,r.A)();return(0,i.jsx)(l.A,{variant:"textDisabled",startIcon:(0,i.jsx)(A.A,{width:"18px",color:"white",mr:"4px"}),...e,children:t("Closed")})},CommunityTag:e=>{let{t}=(0,r.A)();return(0,i.jsx)(l.A,{variant:"failure",outline:!0,startIcon:(0,i.jsx)(c.A,{width:"18px",color:"failure",mr:"4px"}),...e,children:t("Community")})},StableFarmTag:e=>{let{t}=(0,r.A)(),{targetRef:n,tooltip:s,tooltipVisible:o}=(0,a.A)("Fees are lower for stable LP",{placement:"top"});return(0,i.jsxs)(i.Fragment,{children:[o&&s,(0,i.jsx)(d.A,{ref:n,display:"flex",style:{textDecoration:"none",justifyContent:"center",alignSelf:"center"},children:(0,i.jsx)(l.A,{variant:"textSubtle",style:{padding:8},...e,children:t("Stable LP")})})]})},LockedPoolTag:e=>{let{t}=(0,r.A)();return(0,i.jsx)(l.A,{variant:"success",outline:!0,startIcon:(0,i.jsx)(h.A,{width:"18px",color:"success",mr:"4px"}),...e,children:t("Locked")})},LockedOrAutoPoolTag:e=>{let{t}=(0,r.A)();return(0,i.jsxs)(l.A,{variant:"success",outline:!0,...e,children:[t("Auto"),"/",t("Locked")]})},BoostedTag:e=>{let{t}=(0,r.A)();return(0,i.jsx)(l.A,{variant:"success",outline:!0,startIcon:(0,i.jsx)(f.A,{width:"18px",color:"success",mr:"4px"}),...e,children:t("Boosted")})},VotedTag:e=>{let{t}=(0,r.A)();return(0,i.jsx)(l.A,{variant:"success",style:{background:"none"},outline:!0,startIcon:(0,i.jsx)(m.A,{width:"18px",color:"success",mr:"4px"}),...e,children:t("Voted")})},V2Tag:e=>(0,i.jsx)(l.A,{variant:"textDisabled",outline:!0,...e,children:"V2"}),V3FeeTag:e=>{let{feeAmount:t,...n}=e;return t?(0,i.jsxs)(l.A,{variant:"secondary",outline:!0,...n,children:[t/1e4,"%"]}):null},V3Tag:e=>(0,i.jsx)(l.A,{variant:"secondary",...e,children:"V3"}),EthTag:e=>(0,i.jsx)(l.A,{style:{background:"#627EEA"},startIcon:(0,i.jsx)(g.A,{width:"10px",mr:"4px"}),...e,children:"ETH"}),BscTag:e=>(0,i.jsx)(l.A,{style:{background:"#08060B"},startIcon:(0,i.jsx)(b.A,{width:"18px",mr:"4px"}),...e,children:"BNB"}),ZkEVMTag:e=>(0,i.jsx)(l.A,{style:{background:"linear-gradient(57deg, #A726C1 0%, #803BDF 88.00%, #7B3FE4 100%)"},startIcon:(0,i.jsx)(y.A,{width:"18px",mr:"4px"}),...e,children:"zkEVM"}),ZkSyncTag:e=>(0,i.jsx)(l.A,{style:{background:"#08060B"},startIcon:(0,i.jsx)(w.A,{width:"18px",mr:"4px"}),...e,children:"zkSync"}),ArbTag:e=>(0,i.jsx)(l.A,{style:{background:"#2D374B"},startIcon:(0,i.jsx)(v.A,{width:"18px",mr:"4px"}),...e,children:"ARB"}),BaseTag:e=>(0,i.jsx)(l.A,{style:{background:"#0052FF"},startIcon:(0,i.jsx)(C.A,{width:"18px",mr:"4px"}),...e,children:"Base"}),LineaTag:e=>(0,i.jsx)(l.A,{style:{background:"#121212"},startIcon:(0,i.jsx)(k.A,{width:"18px",mr:"4px"}),...e,children:"Linea"}),AlpBoostedTag:e=>{let{t}=(0,r.A)();return(0,i.jsx)(l.A,{outline:!0,...e,variant:"secondary",startIcon:(0,i.jsx)(I.A,{width:"18px",color:"#4B3CFF",m:"-3px 3px 0 0"}),children:t("Boosted")})},OpBnbTag:e=>(0,i.jsx)(l.A,{style:{background:"#08060B"},startIcon:(0,i.jsx)(b.A,{width:"18px",mr:"4px"}),...e,children:"opBNB"})}}
1,664962:(e,t,n)=>{n.d(t,{A:()=>c});var i=n(350979),r=n(25963),l=n(680797);let s=l.I4.div.withConfig({componentId:"sc-56e033-0"})(["height:",";width:",";"],e=>e.size,e=>e.size),o=()=>(0,i.jsx)(s,{size:"24px"}),a=l.I4.div.withConfig({componentId:"sc-12b2888a-0"})(["align-items:center;background-color:","00;display:flex;margin:0;padding:"," 0;"],e=>e.theme.colors.primaryDark,e=>e.theme.spacing["24px"]),d=l.I4.div.withConfig({componentId:"sc-12b2888a-1"})(["flex:1;"]),c=e=>{let{children:t}=e,n=r.Children.toArray(t).length;return(0,i.jsx)(a,{children:r.Children.map(t,(e,t)=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d,{children:e}),t<n-1&&(0,i.jsx)(o,{})]}))})}},777807:(e,t,n)=>{n.d(t,{t:()=>i});let i=e=>{if(!e||!e.includes("."))return e;let t=e.split(".");for(;"0"===t[1][t[1].length-1];)t[1]=t[1].slice(0,-1);return t[1].length?`${t[0]}.${t[1]}`:t[0]}},796259:(e,t,n)=>{n.d(t,{y:()=>l});var i=n(350979),r=n(605641);let l=e=>(0,i.jsx)(r.A,{color:"secondary",fontSize:"12px",bold:!0,textTransform:"uppercase",...e})},829818:(e,t,n)=>{n.d(t,{qV:()=>ea,GT:()=>a,LW:()=>s,RH:()=>I,fI:()=>$,nt:()=>w,zq:()=>eW,s9:()=>r,q3:()=>i,tI:()=>eM,AF:()=>eD,ev:()=>o,$E:()=>O,YD:()=>S.A,vy:()=>d,_s:()=>ed});var i={};n.r(i),n.d(i,{$:()=>eK,t:()=>eY});var r={};n.r(r),n.d(r,{uG:()=>e1,tA:()=>eZ,hW:()=>e4,y8:()=>te});var l=n(91168);let s=new l.A(1e-5),o=[{id:1,name:"farm",sortable:!0,label:""},{id:2,name:"earned",sortable:!0,label:"Earned"},{id:3,name:"apr",sortable:!0,label:"APR"},{id:6,name:"details",sortable:!0,label:""}],a=[{id:1,name:"farm",sortable:!0,label:""},{id:2,name:"type",sortable:!1,label:""},{id:3,name:"earned",sortable:!0,label:"Earned"},{id:4,name:"apr",sortable:!0,label:"APR"},{id:8,name:"rewardPerDay",sortable:!0,label:""},{id:5,name:"liquidity",sortable:!0,label:"Staked Liquidity"},{id:6,name:"multiplier",sortable:!0,label:"Multiplier"},{id:7,name:"details",sortable:!0,label:""}],d=[{id:1,name:"farm",sortable:!0,label:""},{id:2,name:"type",sortable:!1,label:""},{id:3,name:"earned",sortable:!0,label:"Earned"},{id:4,name:"apr",sortable:!0,label:"APR"},{id:5,name:"stakedLiquidity",sortable:!0,label:"Staked Liquidity"},{id:6,name:"multiplier",sortable:!0,label:"Multiplier"},{id:7,name:"availableLp",sortable:!1,label:"Available"},{id:8,name:"stakedLp",sortable:!1,label:"Staked"},{id:7,name:"details",sortable:!0,label:""}];var c=n(350979),x=n(25963),h=n(680797),p=n(326848),u=n(769932),m=n(501823),j=n(605641),A=n(812297),f=n(819324),g=n(955945),b=n(247153);let y=h.I4.div.withConfig({componentId:"sc-2d54f8c-0"})(["display:flex;justify-content:center;align-items:center;","{margin-left:16px;}"],e=>{let{theme:t}=e;return t.mediaQueries.sm}),w=e=>{let t,{hasStakeInFinishedFarms:n}=e,i=(0,p.useRouter)(),{t:r}=(0,u.A)();switch(i.pathname){case"/farms":default:t=0;break;case"/farms/history":case"/_mp/farms/history":t=1;break;case"/farms/archived":t=2}return(0,c.jsx)(y,{children:(0,c.jsxs)(m.A,{width:"max-content",flexDirection:"column",children:[(0,c.jsx)(j.A,{textTransform:"uppercase",color:"textSubtle",fontSize:"12px",bold:!0,children:r("Filter by")}),(0,c.jsxs)(A.A,{activeIndex:t,scale:"sm",variant:"subtle",children:[(0,c.jsx)(f.A,{as:b.Y,to:"/farms",children:r("Live")}),(0,c.jsx)(g.A,{show:n,children:(0,c.jsx)(f.A,{as:b.Y,to:"/farms/history",id:"finished-farms-button",children:r("Finished")})})]})]})})};var v=n(28192),C=n(634892);let k=(0,h.I4)(m.A).withConfig({componentId:"sc-c8664677-0"})(["cursor:pointer;&:hover{opacity:0.5;}"]),I=e=>{let{hideButton:t,variant:n,strikethrough:i,handleClickButton:r,children:l}=e,s=(0,x.useCallback)(e=>{t||r(e)},[t,r]);return(0,c.jsx)(m.A,{flexDirection:"column",alignItems:"flex-start",children:(0,c.jsxs)(k,{alignItems:"center",style:{textDecoration:i?"line-through":"initial"},onClick:s,children:["text-and-button"===n&&(0,c.jsx)(v.A,{variant:"text",scale:"xs",ml:"4px",style:{height:"auto",padding:0},children:(0,c.jsx)(C.A,{width:"18px",color:"textSubtle"})}),l]})})};var S=n(571485),T=n(228876),F=n(430586),D=n(399832),B=n(294381),L=n(579518),M=n(990296),z=n(865109);let P=h.I4.div.withConfig({componentId:"sc-1ba5e11a-0"})(["margin-top:24px;"]),E=(0,h.I4)(F.A).withConfig({componentId:"sc-1ba5e11a-1"})(["font-weight:400;"]),N=(0,h.I4)(D.A).withConfig({componentId:"sc-1ba5e11a-2"})(["font-weight:400;"]),H=(0,h.I4)(j.A).withConfig({componentId:"sc-1ba5e11a-3"})(["&:hover{text-decoration:underline;cursor:pointer;}"]),$={DetailsSection:e=>{let{scanAddress:t,infoAddress:n,removed:i,totalValueLabel:r,totalValueFormatted:l,lpLabel:s,onAddLiquidity:o,isCommunity:a,auctionHostingEndDate:d,alignLinksToRight:x=!0,multiplier:h,farmCakePerSecond:p,totalMultipliers:A,isV2BCakeWrapperFarm:f}=e,{t:g,currentLanguage:{locale:b}}=(0,u.A)(),y=(0,B.Y)({farmCakePerSecond:null!=p?p:"-",totalMultipliers:null!=A?A:"-"}
1),{targetRef:w,tooltip:v,tooltipVisible:C}=(0,L.A)(y,{placement:"bottom"});return(0,c.jsxs)(P,{children:[a&&d&&(0,c.jsxs)(m.A,{justifyContent:"space-between",children:[(0,c.jsxs)(j.A,{children:[g("Auction Hosting Ends"),":"]}),(0,c.jsx)(j.A,{children:new Date(d).toLocaleString(b,{month:"short",day:"numeric",year:"numeric"})})]}),(0,c.jsxs)(m.A,{justifyContent:"space-between",children:[(0,c.jsxs)(j.A,{children:[r||g("Staked Liquidity"),":"]}),l?(0,c.jsx)(j.A,{children:l}):(0,c.jsx)(M.Ay,{width:75,height:25})]}),!f&&(0,c.jsxs)(m.A,{justifyContent:"space-between",children:[(0,c.jsxs)(j.A,{children:[g("Multiplier"),":"]}),h?(0,c.jsxs)(m.A,{children:[(0,c.jsx)(j.A,{children:h}),C&&v,(0,c.jsx)(m.A,{ref:w,children:(0,c.jsx)(z.A,{ml:"4px",width:"20px",height:"20px",color:"textSubtle"})})]}):(0,c.jsx)(M.Ay,{width:75,height:25})]}),!i&&(0,c.jsx)(m.A,{mb:"2px",justifyContent:x?"flex-end":"flex-start",children:o?"string"==typeof o?(0,c.jsx)(E,{href:o,children:g("Add %symbol%",{symbol:s})}):(0,c.jsx)(H,{color:"primary",onClick:o,children:g("Add %symbol%",{symbol:s})}):null}),n&&(0,c.jsx)(m.A,{mb:"2px",justifyContent:x?"flex-end":"flex-start",children:(0,c.jsx)(E,{href:n,children:g("See Pair Info")})}),t&&(0,c.jsx)(m.A,{mb:"2px",justifyContent:x?"flex-end":"flex-start",children:(0,c.jsx)(N,{icon:t.icon,useBscCoinFallback:!!t.chainId&&[T.nU.BSC,T.nU.BSC_TESTNET].includes(t.chainId),href:t.link,children:g("View Contract")})})]})}};var q=n(575058),U=n(265449),V=n(208553),_=n(378385);let O=e=>{let{stakedBalance:t,quoteTokenSymbol:n,tokenSymbol:i,lpTotalSupply:r,lpTokenPrice:l,tokenAmountTotal:s,quoteTokenAmountTotal:o,pendingFarmLength:a=0,decimals:d,onClickLoadingIcon:h}=e,p=(0,x.useMemo)(()=>(0,_.wO)(t,d),[t,d]);return(0,c.jsxs)(m.A,{flexDirection:"column",alignItems:"flex-start",children:[(0,c.jsxs)(m.A,{children:[(0,c.jsx)(q.A,{color:t.eq(0)?"textDisabled":"text",children:p}),a>0&&(0,c.jsx)(U.A,{style:{cursor:"pointer"},spin:!0,onClick:h})]}),t.gt(0)&&l.gt(0)&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(V.A,{fontSize:"12px",color:"textSubtle",decimals:2,value:(0,_._c)(l.times(t),d),unit:" USD",prefix:"~"}),(0,c.jsxs)(m.A,{flexDirection:["column","column","row"],children:[(0,c.jsx)(V.A,{fontSize:"12px",color:"textSubtle",decimals:2,value:t.div(r).times(s).toNumber(),unit:` ${i}`}),(0,c.jsx)(V.A,{fontSize:"12px",color:"textSubtle",decimals:2,ml:["0","0","4px"],value:t.div(r).times(o).toNumber(),unit:` ${n}`})]})]})]})};var Q=n(312680),W=n(884018),R=n(282304),G=n(966983),J=n(428089),Y=n(226464),K=n(274584),Z=n(833930),X=n(962478),ee=n(664962),et=n(557423),en=n(654168),ei=n(659918),er=n(503387),el=n(777807);let es=(0,h.I4)(m.A).withConfig({componentId:"sc-cc91aaef-0"})(["cursor:pointer;"]),eo=(0,h.I4)(j.A).withConfig({componentId:"sc-cc91aaef-1"})(["width:72px;max-width:72px;overflow:hidden;text-align:right;text-overflow:ellipsis;"]),ea=e=>{let{account:t,max:n,stakedBalance:i,tokenName:r="",hideTokenName:s,multiplier:o,displayApr:a,lpPrice:d=ei.AH,lpLabel:h="",apr:p=0,addLiquidityUrl:A="",cakePrice:f=ei.AH,showActiveBooster:g,showCrossChainFarmWarning:b,crossChainWarningText:y,decimals:w,allowance:k,enablePendingTx:I,showTopMessageText:S,dualTokenRewardApr:T,farmCakePerSecond:D,totalMultipliers:B,rewardCakePerSecond:L,lpRewardsApr:z,onConfirm:P,onDismiss:E,handleApprove:N,bCakeCalculatorSlot:H}=e,[$,q]=(0,x.useState)(""),[U,V]=(0,x.useState)(ei.AH),[O,ea]=(0,x.useState)(!1),[ed,ec]=(0,x.useState)(!1),{t:ex}=(0,u.A)(),eh=(0,x.useMemo)(()=>(0,_.cB)(n,w),[n,w]),ep=(0,x.useMemo)(()=>!!k&&(0,_.MS)(new l.A($),w).gt(k),[k,w,$]),eu=(0,x.useMemo)(()=>new l.A($),[$]),em=(0,x.useMemo)(()=>new l.A(eh),[eh]),ej=(0,x.useMemo)(()=>eu.times(d),[eu,d]),eA=(0,x.useMemo)(()=>(0,er.Qn)({principalInUSD:eu.isNaN()?0:ej.toNumber(),apr:p,earningTokenPrice:f.toNumber()}),[eu,ej,f,p]),ef=(0,x.useMemo)(()=>f.times(eA[3]),[f,eA]),eg=(0,x.useMemo)(()=>ef.toNumber(),[ef]),eb=(0,x.useMemo)(()=>(0,_.ZV)(eg,2*!ef.gt(1e4),2*!ef.gt(1e4)),[eg,ef]),ey=(0,x.useCallback)(e=>{if(e.currentTarget.validity.valid){let t=e.currentTarget.value.replace(/,/g,".");q(t),V(""===t?ei.AH:new l.A(t).times(d))}},[q,V,d]),ew=(0,x.useCallback)(()=>{q(eh),V(new l.A(eh).times(d))},[eh,q,V,d]),ev=(0,x.useCallback)(e=>{let t=em.dividedBy(100).multipliedBy(e);q((0,el.t)(t.toNumber().toFixed(w))),V(t.times(d))},[em,w,d]);return ed?(0,c.jsx)(Q.aF,{isOpen:ed,children:(0,c.jsx)(W.A,{account:t,linkLabel:ex("Add %symbol%",{symbol:h}),stakingTokenBalance:i.plus(n),stakingTokenDecimals:w,stakingTokenSymbol:r,stakingTokenPrice:d.toNumber(),earningTokenPrice:f.toNumber(),apr:p,multiplier:o,displayApr:a,linkHref:A,isFarm:!0,initialValue:$,dualTokenRewardApr:T,farmCakePerSecond:D,totalMultipliers:B,rewardCakePerSecond:L,lpRewardsApr:z,onBack:()=>ec(!1),bCakeCalculatorSlot:H})}):(0,c.jsx)(R.Ay,{title:ex("Stake LP tokens"),onDismiss:E,children:(0,c.jsxs)(G.cw,{width:["100%","100%","100%","420px"],children:[S&&(0,c.jsx)(J.Ay,{mb:"15px",children:(0,c.jsx)(Y.A,{variant:"danger",icon:(0,c.jsx)(K.A,{width:"24px",color:"failure"}),children:(0,c.jsx)(Y.J,{children:S})})}),(0,c.jsx)(Z.A,{value:$,valueUSDPrice:U,onSelectMax:ew,onPercentInput:ev,onChange:e
1y,max:eh,maxAmount:em,symbol:r,addLiquidityUrl:A,inputTitle:ex("Stake"),decimals:w,needEnable:ep}),g?(0,c.jsx)(Y.A,{variant:"warning",icon:(0,c.jsx)(X.A,{width:"24px",color:"warning"}),mt:"32px",children:(0,c.jsx)(Y.J,{children:ex("The yield booster multiplier will be updated based on the latest staking conditions.")})}):null,(0,c.jsxs)(m.A,{mt:"24px",alignItems:"center",justifyContent:"space-between",children:[(0,c.jsxs)(j.A,{mr:"8px",color:"textSubtle",children:[ex("Annual ROI at current rates"),":"]}),Number.isFinite(eg)?(0,c.jsxs)(es,{alignItems:"center",onClick:()=>{ec(!0)},children:[(0,c.jsxs)(eo,{children:["$",eb]}),(0,c.jsx)(v.A,{variant:"text",scale:"sm",children:(0,c.jsx)(C.A,{color:"textSubtle",width:"18px"})})]}):(0,c.jsx)(M.Ay,{width:60})]}),b&&(0,c.jsx)(J.Ay,{mt:"15px",children:(0,c.jsx)(Y.A,{variant:"warning",children:(0,c.jsx)(Y.J,{children:y})})}),(0,c.jsxs)(ee.A,{children:[(0,c.jsx)(et.A,{variant:"secondary",onClick:E,width:"100%",disabled:O,children:ex("Cancel")}),ep?(0,c.jsx)(et.A,{width:"100%",isLoading:I,endIcon:I?(0,c.jsx)(en.A,{spin:!0,color:"currentColor"}):null,onClick:N,children:ex("Enable.Approval")}):O?(0,c.jsx)(et.A,{width:"100%",isLoading:O,endIcon:(0,c.jsx)(en.A,{spin:!0,color:"currentColor"}),children:ex("Confirming")}):(0,c.jsx)(et.A,{width:"100%",disabled:!eu.isFinite()||eu.eq(0)||eu.gt(em),onClick:async()=>{ea(!0),await P($),null==E||E(),ea(!1)},children:ex("Confirm")})]}),s?null:(0,c.jsx)(F.A,{href:A,style:{alignSelf:"center"},children:ex("Add %symbol%",{symbol:r})})]})})},ed=e=>{let{onConfirm:t,onDismiss:n,max:i,lpPrice:r=ei.AH,tokenName:s="",showActiveBooster:o,showCrossChainFarmWarning:a,decimals:d}=e,[h,p]=(0,x.useState)(""),[m,j]=(0,x.useState)(ei.AH),[A,f]=(0,x.useState)(!1),{t:g}=(0,u.A)(),b=(0,x.useMemo)(()=>(0,_.cB)(i,d),[i,d]),y=(0,x.useMemo)(()=>new l.A(h),[h]),w=(0,x.useMemo)(()=>new l.A(b),[b]),v=(0,x.useCallback)(e=>{if(e.currentTarget.validity.valid){let t=e.currentTarget.value.replace(/,/g,".");p(t),j(""===t?ei.AH:new l.A(t).times(r))}},[p,j,r]),C=(0,x.useCallback)(()=>{p(b),j(new l.A(b).times(r))},[b,p,j,r]),k=(0,x.useCallback)(e=>{let t=w.dividedBy(100).multipliedBy(e);p((0,el.t)(t.toNumber().toFixed(d))),j(t.times(r))},[w,d,r]);return(0,c.jsx)(R.Ay,{title:g("Unstake LP tokens"),onDismiss:n,children:(0,c.jsxs)(G.cw,{width:["100%","100%","100%","420px"],children:[(0,c.jsx)(Z.A,{onSelectMax:C,onPercentInput:k,onChange:v,value:h,valueUSDPrice:m,max:b,maxAmount:w,symbol:s,inputTitle:g("Unstake"),decimals:d}),o?(0,c.jsx)(Y.A,{variant:"warning",mt:"8px",children:(0,c.jsx)(Y.J,{children:g("The yield booster multiplier will be updated based on the latest staking conditions.")})}):null,a&&(0,c.jsx)(J.Ay,{mt:"15px",children:(0,c.jsx)(Y.A,{variant:"warning",children:(0,c.jsx)(Y.J,{children:g("For safety, cross-chain transactions will take around 30 minutes to confirm.")})})}),(0,c.jsxs)(ee.A,{children:[(0,c.jsx)(et.A,{variant:"secondary",onClick:n,width:"100%",disabled:A,children:g("Cancel")}),A?(0,c.jsx)(et.A,{width:"100%",isLoading:A,endIcon:(0,c.jsx)(en.A,{spin:!0,color:"currentColor"}),children:g("Confirming")}):(0,c.jsx)(et.A,{width:"100%",disabled:!y.isFinite()||y.eq(0)||y.gt(w),onClick:async()=>{f(!0),await t(h),null==n||n(),f(!1)},children:g("Confirm")})]})]})})},ec=h.I4.div.withConfig({componentId:"sc-8a8b5875-0"})(["padding:16px;border:2px solid ",";border-radius:16px;flex-grow:1;flex-basis:0;margin-bottom:16px;","{margin-left:12px;margin-right:12px;margin-bottom:12px;}","{margin-right:0;margin-bottom:0;}"],e=>{let{theme:t}=e;return t.colors.input},e=>{let{theme:t}=e;return t.mediaQueries.sm},e=>{let{theme:t}=e;return t.mediaQueries.xl}),ex=h.I4.div.withConfig({componentId:"sc-8a8b5875-1"})(["display:flex;margin-bottom:8px;"]),eh=h.I4.div.withConfig({componentId:"sc-8a8b5875-2"})(["display:flex;justify-content:space-between;align-items:center;"]),ep=h.I4.div.withConfig({componentId:"sc-8a8b5875-3"})(["display:flex;"]),eu=(0,h.I4)(ec).withConfig({componentId:"sc-8a8b5875-4"})(["&:nth-child(3){flex-basis:100%;}min-height:124.5px;","{&:nth-child(3){margin-top:16px;}}"],e=>{let{theme:t}=e;return t.mediaQueries.sm});var em=n(796898),ej=n(889948),eA=n(795904),ef=n(892977);let eg=h.I4.div.withConfig({componentId:"sc-43e906a0-0"})(["font-size:12px;color:",";text-align:left;"],e=>{let{theme:t}=e;return t.colors.textSubtle}),eb=h.I4.div.withConfig({componentId:"sc-43e906a0-1"})(["min-height:24px;display:flex;align-items:center;"]);var ey=n(258213);let ew=h.I4.div.withConfig({componentId:"sc-34c4a87d-0"})(["display:flex;width:100%;justify-content:flex-end;padding-right:8px;color:",";","{padding-right:0px;}"],e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.mediaQueries.sm}),ev=(0,h.I4)(ey.A).withConfig({componentId:"sc-34c4a87d-1"})(["transform:",";height:20px;"],e=>{let{$toggled:t}=e;return t?"rotate(180deg)":"rotate(0)"}
1),eC=h.I4.span.withConfig({componentId:"sc-bc5a82ac-0"})(["color:",";display:flex;align-items:center;"],e=>{let{amount:t,theme:n}=e;return t?n.colors.text:n.colors.textDisabled});var ek=n(24153),eI=n(112824),eS=n(800094);let eT=(0,h.Ay)(F.A).withConfig({componentId:"sc-d6e8893-0"})(["display:inline-flex;margin-left:4px;"]),eF=e=>{let{linkColor:t="primary",hasFarm:n,merklUserLink:i}=e,{t:r}=(0,u.A)();return n?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(J.Ay,{children:(0,c.jsxs)(j.A,{display:"inline",color:"currentColor",children:[r("Incentives can now be earned on BOTH Merkl and Farms at the same time."),(0,c.jsxs)("p",{children:[r("Stake your LP token in the Farm and accrue both Merkl and Farm rewards."),(0,c.jsx)("br",{}),(0,c.jsx)("br",{}),r("Claim your Farm rewards on PancakeSwap and your Merkl rewards on"),(0,c.jsx)(eT,{color:t,external:!0,display:"inline",href:i,children:r("Merkl's website")})]}),(0,c.jsx)("br",{}),(0,c.jsx)("br",{}),(0,c.jsx)("br",{}),r("To earn Farm rewards, continue seeding liquidity on PancakeSwap and stake your LP token in the Farm.")]})})}):(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(J.Ay,{children:(0,c.jsxs)(j.A,{display:"inline",color:"currentColor",children:[(0,c.jsx)("p",{children:r("Incentives can now be earned on BOTH Merkl and Farms at the same time.")}),(0,c.jsx)("br",{}),r("Stake your LP token in the Farm and accrue both Merkl and Farm rewards."),(0,c.jsx)("br",{}),(0,c.jsx)("br",{}),r("Claim your Farm rewards on PancakeSwap and your Merkl rewards on"),(0,c.jsx)(eT,{color:t,external:!0,display:"inline",href:i,children:r("Merkl's website")})]})})})},eD={WithTooltip:e=>{let{size:t="20px",placement:n="top-start",tooltipOffset:i=[-20,10],hasFarm:r,merklUserLink:l}
1=e,{tooltip:s,tooltipVisible:o,targetRef:a}=(0,L.A)((0,c.jsx)(eF,{hasFarm:r,merklUserLink:l}),{placement:n,tooltipOffset:i,trigger:eS.Fr?"focus":"hover"});return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(ej.A,{ref:a,display:"inline",children:(0,c.jsx)(j.A,{lineHeight:0,children:(0,c.jsx)(eI.A,{color:"#6532CD",width:t,height:t})})}),o?s:null]})},Content:eF},eB=(0,h.Ay)(F.A).withConfig({componentId:"sc-d760138c-0"})(["display:inline-flex;margin-left:4px;"]),eL=e=>{let{linkColor:t="primary",incentraUserLink:n}=e,{t:i}=(0,u.A)();return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(J.Ay,{children:(0,c.jsxs)(j.A,{display:"inline",color:"currentColor",children:[(0,c.jsx)("p",{children:i("Incentives can now be earned on BOTH Incentra and Farms at the same time.")}),(0,c.jsx)("br",{}),i("Stake your LP token in the Farm and accrue both Incentra and Farm rewards."),(0,c.jsx)("br",{}),(0,c.jsx)("br",{}),i("Claim your Farm rewards on PancakeSwap and your Incentra rewards on"),(0,c.jsx)(eB,{color:t,external:!0,display:"inline",href:n,children:i("Incentra's website")})]})})})},eM={WithTooltip:e=>{let{size:t="20px",placement:n="top-start",tooltipOffset:i=[-20,10],incentraUserLink:r}=e,{tooltip:l,tooltipVisible:s,targetRef:o}=(0,L.A)((0,c.jsx)(eL,{incentraUserLink:r}),{placement:n,tooltipOffset:i,trigger:eS.Fr?"focus":"hover"});return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(ej.A,{ref:o,display:"inline",children:(0,c.jsx)(j.A,{lineHeight:0,children:(0,c.jsx)(eI.A,{color:"#6532CD",width:t,height:t})})}),s?l:null]})},Content:eL},ez=h.I4.div.withConfig({componentId:"sc-31e321fd-0"})(["padding-left:16px;display:flex;align-items:center;","{padding-left:32px;}"],e=>{let{theme:t}=e;return t.mediaQueries.sm}),eP=h.I4.div.withConfig({componentId:"sc-31e321fd-1"})(["padding-right:8px;width:32px;","{width:40px;}"],e=>{let{theme:t}=e;return t.mediaQueries.sm});var eE=n(507334),eN=n(450253),eH=n.n(eN);let e$=h.I4.div.withConfig({componentId:"sc-2f32510f-0"})(["display:inline-block;"]),eq=h.I4.div.withConfig({componentId:"sc-2f32510f-1"})(["min-width:110px;font-weight:600;text-align:right;margin-right:4px;","{text-align:left;margin-right:0;}"],e=>{let{theme:t}=e;return t.mediaQueries.lg}),eU=h.I4.div.withConfig({componentId:"sc-2f32510f-2"})(["display:flex;align-items:center;"]),eV=e=>{let{liquidity:t,targetRef:n,tooltip:i,tooltipVisible:r}=e,l=t&&t.gt(0)?`$${Number(t).toLocaleString(void 0,{maximumFractionDigits:0})}`:(0,c.jsx)(M.Ay,{width:60});return(0,c.jsxs)(eU,{children:[(0,c.jsx)(eq,{children:(0,c.jsx)(j.A,{children:l})}),(0,c.jsx)(e$,{ref:n,children:(0,c.jsx)(z.A,{color:"textSubtle"})}),r&&i]})},e_=h.I4.div.withConfig({componentId:"sc-e5f6a27d-0"})(["display:inline-block;"]),eO=h.I4.div.withConfig({componentId:"sc-e5f6a27d-1"})(["color:",";text-align:right;margin-right:4px;","{text-align:left;margin-right:0;}"],e=>{let{theme:t}=e;return t.colors.text},e=>{let{theme:t}=e;return t.mediaQueries.lg}),eQ=h.I4.div.withConfig({componentId:"sc-e5f6a27d-2"})(["display:flex;align-items:center;"]),eW={CellLayout:e=>{let{label:t="",children:n}=e;return(0,c.jsxs)("div",{children:[t&&(0,c.jsx)(eg,{children:t}),(0,c.jsx)(eb,{children:n})]})},Earned:e=>{let{earnings:t,userDataReady:n}=e,i=t>0?t:0;return n?(0,c.jsx)(eC,{amount:i,children:null==i?void 0:i.toLocaleString("en-US",{maximumFractionDigits:4})}):(0,c.jsx)(eC,{amount:0,children:(0,c.jsx)(M.Ay,{width:60})})},Details:e=>{let{actionPanelToggled:t}=e;return(0,c.jsx)(ew,{children:(0,c.jsx)(ev,{color:"primary",$toggled:t})})},Liquidity:e=>{let{liquidity:t}=e,{t:n}=(0,u.A)(),i=(0,L.A)(n("Total value of the funds in this farmâs liquidity pair"),{placement:"top-end",tooltipOffset:[20,10]});return(0,c.jsx)(eV,{liquidity:t,...i})},StakedLiquidity:e=>{let{liquidity:t,updatedAt:n,inactive:i}=e,{t:r}=(0,u.A)(),l=(0,L.A)((0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(j.A,{children:r("Total active (in-range) liquidity staked in the farm.")}),n&&(0,c.jsx)(j.A,{children:r("Updated %dateUpdated% ago",{dateUpdated:((e,t)=>{if(!Number.isFinite(t))return e("Now");let n=eH()(t),i=eH()();if(n.isAfter(i))return e("Now");let r=n.diff(i,"seconds"),{days:l,hours:s,minutes:o,seconds:a}=(0,eE.Ay)(r),d="";return 0!==l&&(d+=`${l}${e("d")} `),0!==s&&(d+=`${s}${e("h")} `),0!==o&&(d+=`${o}${e("m")} `),0!==a&&(d+=`${a}${e("s")} `),d.trim()})(r,n)})})]}),{placement:"top-end",tooltipOffset:[20,10]});return i?(0,c.jsx)(j.A,{children:"-"}):(0,c.jsx)(eV,{liquidity:t,...l})},Multiplier:e=>{let{multiplier:t,farmCakePerSecond:n,totalMultipliers:i}=e,r=t?t.toLowerCase():(0,c.jsx)(M.Ay,{width:30}),l=(0,B.Y)({farmCakePerSecond:null!=n?n:"-",totalMultipliers:null!=i?i:"-"}
1),{targetRef:s,tooltip:o,tooltipVisible:a}=(0,L.A)(l,{placement:"top-end",tooltipOffset:[20,10]});return(0,c.jsxs)(eQ,{children:[(0,c.jsx)(eO,{children:r}),(0,c.jsx)(e_,{ref:s,children:(0,c.jsx)(z.A,{color:"textSubtle"})}),a&&o]})},FarmTokenInfo:e=>{let{label:t,isReady:n,isStaking:i,hasBothFarmAndMerkl:r,children:l,merklLink:s,merklUserLink:o,incentraLink:a,incentraUserLink:d}=e,{t:h}=(0,u.A)(),p=(0,x.useMemo)(()=>i?(0,c.jsx)(j.A,{color:"secondary",fontSize:"12px",bold:!0,textTransform:"uppercase",children:h("Farming")}):(0,c.jsx)(c.Fragment,{}),[h,i]);if(!n)return(0,c.jsxs)(ez,{children:[(0,c.jsx)(M.Ay,{mr:"8px",width:32,height:32,variant:"circle"}),(0,c.jsxs)("div",{children:[(0,c.jsx)(M.Ay,{width:40,height:10,mb:"4px"}),(0,c.jsx)(M.Ay,{width:60,height:24})]})]});let A=(0,c.jsxs)(ez,{children:[(0,c.jsx)(eP,{children:l}),(0,c.jsxs)("div",{children:[p,(0,c.jsxs)(ek.fI,{gap:"sm",children:[(0,c.jsx)(j.A,{bold:!0,children:t}),s?(0,c.jsx)(eD.WithTooltip,{hasFarm:r,merklUserLink:o}):null,a?(0,c.jsx)(eM.WithTooltip,{incentraUserLink:d}):null]})]})]});return(0,c.jsx)(m.A,{flexDirection:"column",children:A})},FarmTableHarvestAction:e=>{let{earnings:t,earningsBusd:n,displayBalance:i,pendingTx:r,userDataReady:o,proxyCakeBalance:a,disabled:d,handleHarvest:x,style:h}=e,{t:p}=(0,u.A)(),m=o?t.isGreaterThan(s)?t.toFixed(5,l.A.ROUND_DOWN):"< 0.00001":(0,c.jsx)(M.Ay,{width:60}),{targetRef:A,tooltip:f,tooltipVisible:g}=(0,L.A)(`${m} ${p("CAKE has been harvested to the farm booster contract and will be automatically sent to your wallet upon the next harvest.")}`,{placement:"bottom"});return(0,c.jsxs)(ec,{style:{minHeight:124.5,...h},children:[(0,c.jsxs)(ex,{children:[(0,c.jsx)(j.A,{bold:!0,textTransform:"uppercase",color:"secondary",fontSize:"12px",pr:"4px",children:"CAKE"}),(0,c.jsx)(j.A,{bold:!0,textTransform:"uppercase",color:"textSubtle",fontSize:"12px",children:p("Earned")})]}),(0,c.jsxs)(eh,{children:[(0,c.jsxs)("div",{children:[a?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(ej.A,{ref:A,decorationColor:"secondary",children:(0,c.jsx)(q.A,{children:i})}),g&&f]}):(0,c.jsx)(q.A,{children:i}),n>0&&(0,c.jsx)(V.A,{fontSize:"12px",color:"textSubtle",decimals:2,value:n,unit:" USD",prefix:"~"})]}),(0,c.jsx)(et.A,{ml:"4px",disabled:d,onClick:x,children:p(r?"Harvesting":"Harvest")})]})]})},AccountNotConnect:e=>{let{children:t,bCakeInfoSlot:n}=e,{t:i}=(0,u.A)();return(0,c.jsxs)(eu,{children:[(0,c.jsx)(ex,{children:(0,c.jsx)(j.A,{bold:!0,textTransform:"uppercase",color:"textSubtle",fontSize:"12px",children:i("Start Farming")})}),(0,c.jsx)(eh,{style:{justifyContent:"flex-start",alignItems:"center",gap:16},children:t}),n]})},StakeComponent:e=>{let{lpSymbol:t,isStakeReady:n,onPresentDeposit:i,bCakeInfoSlot:r}=e,{t:l}=(0,u.A)(),{isMobile:s}=(0,em.A)();return(0,c.jsxs)(eu,{style:r?{display:"flex",gap:16,alignItems:"center",flexDirection:s?"column":"row",minHeight:s?"auto":void 0}:void 0,children:[(!r||s)&&(0,c.jsxs)(ex,{style:r&&s?{alignItems:"flex-start",width:"100%"}:void 0,children:[(0,c.jsx)(j.A,{bold:!0,textTransform:"uppercase",color:"textSubtle",fontSize:"12px",pr:"4px",children:l("Stake")}),(0,c.jsx)(j.A,{bold:!0,color:"secondary",fontSize:"12px",children:t})]}),(0,c.jsx)(eh,{style:r?{flexGrow:1,width:s?"100%":void 0}:void 0,children:(0,c.jsx)(et.A,{width:"100%",onClick:i,variant:"secondary",disabled:n,children:l("Stake LP")})}),r]})},StakeActionDataNotReady:e=>{let{bCakeInfoSlot:t}=e,{t:n}=(0,u.A)();return(0,c.jsxs)(eu,{children:[(0,c.jsx)(ex,{children:(0,c.jsx)(j.A,{bold:!0,textTransform:"uppercase",color:"textSubtle",fontSize:"12px",children:n("Start Farming")})}),(0,c.jsx)(eh,{children:(0,c.jsx)(M.Ay,{width:180,marginBottom:28,marginTop:14})}),t]})},EnableStakeAction:e=>{let{pendingTx:t,handleApprove:n,bCakeInfoSlot:i}=e,{t:r}=(0,u.A)(),{isMobile:l}=(0,em.A)();return(0,c.jsxs)(eu,{style:i?{display:"flex",gap:16,alignItems:"center",flexDirection:l?"column":"row",minHeight:l?"auto":void 0}:void 0,children:[!i&&(0,c.jsx)(ex,{children:(0,c.jsx)(j.A,{bold:!0,textTransform:"uppercase",color:"textSubtle",fontSize:"12px",children:r("Enable Farm")})}),(0,c.jsx)(eh,{style:i?{flexGrow:1,width:l?"100%":"30%"}:void 0,children:(0,c.jsx)(et.A,{width:"100%",disabled:t,onClick:n,variant:"secondary",children:r("Enable.Approval")})}),i]})},StakedActionComponent:e=>{let{lpSymbol:t,children:n,disabledMinusButton:i,disabledPlusButton:r,onPresentWithdraw:l,onPresentDeposit:s,bCakeInfoSlot:o}
1=e,{t:a}=(0,u.A)(),{isMobile:d}=(0,em.A)();return(0,c.jsxs)(eu,{style:o?{paddingBottom:d?void 0:0,paddingTop:d?void 0:0,display:"flex",alignItems:"center",minHeight:d?"auto":void 0}:void 0,children:[!o&&(0,c.jsxs)(ex,{style:{marginBottom:0},children:[(0,c.jsx)(j.A,{bold:!0,color:"secondary",fontSize:"12px",pr:"4px",children:t}),(0,c.jsx)(j.A,{bold:!0,textTransform:"uppercase",color:"textSubtle",fontSize:"12px",children:a("Staked")})]}),(0,c.jsxs)(eh,{style:{gap:16,width:"100%",flexDirection:d&&o?"column":"row"},children:[(0,c.jsxs)(m.A,{width:"100%",justifyContent:"space-between",alignItems:"center",flexBasis:o?"33%":void 0,children:[n,(0,c.jsxs)(ep,{children:[(0,c.jsx)(v.A,{mr:"6px",variant:"secondary",disabled:i,onClick:l,children:(0,c.jsx)(eA.A,{color:"primary",width:"14px"})}),(0,c.jsx)(v.A,{variant:"secondary",disabled:r,onClick:s,children:(0,c.jsx)(ef.A,{color:"primary",width:"14px"})})]})]}),o]})]})},LpAmount:e=>{let{amount:t,userDataReady:n}=e,i=t>0?t:0;return n?(0,c.jsx)(eC,{amount:i,children:`${i} LP`}):(0,c.jsx)(eC,{amount:0,children:(0,c.jsx)(M.Ay,{width:60})})},ActionContainer:ec},eR=h.I4.div.withConfig({componentId:"sc-a8397cb9-0"})(["display:flex;margin-bottom:8px;"]),eG=h.I4.div.withConfig({componentId:"sc-a8397cb9-1"})(["display:flex;justify-content:space-between;align-items:center;"]),eJ=h.I4.div.withConfig({componentId:"sc-f5ea4d95-0"})(["padding:16px;border:2px solid ",";border-radius:16px;flex-grow:1;flex-basis:0;margin-bottom:16px;","{margin-left:12px;margin-right:12px;margin-bottom:12px;}","{margin-right:0;margin-bottom:0;}"],e=>{let{theme:t}=e;return t.colors.input},e=>{let{theme:t}=e;return t.mediaQueries.sm},e=>{let{theme:t}=e;return t.mediaQueries.xl}),eY=e=>{let{inactive:t,account:n,hasNoPosition:i,boostedAction:r,connectWalletButton:l,onAddLiquidity:s}=e,{t:o}=(0,u.A)();return(0,c.jsxs)(m.A,{width:"100%",flexDirection:["column-reverse","column-reverse","row"],children:[r&&(0,c.jsx)(eJ,{style:{minHeight:124.5},children:r}),n&&i?(0,c.jsxs)(eJ,{children:[(0,c.jsx)(eR,{children:(0,c.jsx)(j.A,{bold:!0,textTransform:"uppercase",color:"textSubtle",fontSize:"12px",children:o("no position found")})}),!t&&(0,c.jsx)(eG,{children:(0,c.jsx)(et.A,{width:"100%",onClick:s,children:o("Add Liquidity")})})]}):(0,c.jsxs)(eJ,{children:[(0,c.jsx)(eR,{children:(0,c.jsx)(j.A,{bold:!0,textTransform:"uppercase",color:"textSubtle",fontSize:"12px",children:o("Start Farming")})}),(0,c.jsx)(eG,{children:l})]})]})},eK=e=>{let{earnings:t,earningsBusd:n,pendingTx:i,userDataReady:r,handleHarvest:l,disabled:s}=e,{t:o}=(0,u.A)();return(0,c.jsxs)(m.A,{height:"100%",flexDirection:"column",width:"100%",children:[(0,c.jsxs)(eR,{children:[(0,c.jsx)(j.A,{bold:!0,textTransform:"uppercase",color:"secondary",fontSize:"12px",pr:"4px",children:"CAKE"}),(0,c.jsx)(j.A,{bold:!0,textTransform:"uppercase",color:"textSubtle",fontSize:"12px",children:o("Earned")})]}),(0,c.jsxs)(eG,{style:{height:"100%",alignItems:"flex-start"},children:[(0,c.jsxs)("div",{children:[(0,c.jsx)(V.A,{fontSize:20,bold:!0,decimals:2,value:t}),n>0&&(0,c.jsx)(V.A,{fontSize:"12px",color:"textSubtle",decimals:2,value:n,unit:" USD",prefix:"~"})]}),(0,c.jsx)(et.A,{ml:"4px",disabled:i||!r||s,onClick:l,children:o(i?"Harvesting":"Harvest")})]})]})},eZ=e=>{let{inactive:t,account:n,hasNoPosition:i,boostedAction:r,connectWalletButton:l,onAddLiquidityClick:s}=e,{t:o}=(0,u.A)();return(0,c.jsxs)(m.A,{flexDirection:"column",children:[r&&(0,c.jsx)(c.Fragment,{children:r}),n&&i?(0,c.jsxs)(m.A,{flexDirection:"column",children:[(0,c.jsx)(j.A,{color:"textSubtle",bold:!0,textTransform:"uppercase",fontSize:"12px",mb:"8px",children:o("no position found")}),!t&&(0,c.jsx)(et.A,{width:"100%",onClick:s,children:o("Add Liquidity")})]}):(0,c.jsx)(c.Fragment,{children:l})]})};var eX=n(796259);let e0=(0,h.I4)("div").withConfig({componentId:"sc-d3cdd793-0"})(["padding:0;border:1px solid ",";background-color:",";border-radius:",";"],e=>{let{theme:t}=e;return t.colors.cardBorder},e=>{let{theme:t}=e;return t.colors.dropdown},e=>{let{theme:t}=e;return t.radii.card}),e1=e=>{let{lpSymbol:t,unstakedPositions:n,onClickViewAllButton:i}=e,{t:r}=(0,u.A)();return(0,c.jsxs)(J.Ay,{children:[(0,c.jsx)(eX.y,{color:"textSubtle",mb:"8px",children:r("%totalAvailableFarm% LP Available for Farming",{totalAvailableFarm:n.length})}),(0,c.jsx)(e0,{children:(0,c.jsxs)(m.A,{padding:"16px",justifyContent:"space-between",children:[(0,c.jsxs)(m.A,{flexDirection:"column",children:[(0,c.jsx)(j.A,{bold:!0,color:"textSubtle",mb:"4px",children:t}),(0,c.jsx)(J.Ay,{children:n.map(e=>(0,c.jsx)(j.A,{fontSize:"12px",color:"textSubtle",children:`(#${e.tokenId.toString()})`},e.tokenId.toString()))})]}),(0,c.jsx)(et.A,{style:{alignSelf:"center",whiteSpace:"nowrap"}
1,onClick:i,children:r("View All")})]})})]})},e2=(0,h.I4)("div").withConfig({componentId:"sc-b2f7786b-0"})(["padding:0;border:1px solid ",";background-color:",";border-radius:",";"],e=>{let{theme:t}=e;return t.colors.cardBorder},e=>{let{theme:t}=e;return t.colors.dropdown},e=>{let{theme:t}=e;return t.radii.card}),e4=e=>{let{stakedPositions:t,earnings:n,earningsBusd:i,onClickViewAllButton:r}=e,{t:l}=(0,u.A)();return(0,c.jsxs)(J.Ay,{mt:"24px",children:[(0,c.jsx)(eX.y,{color:"textSubtle",mb:"8px",children:l("%totalStakedFarm% Staked Farming",{totalStakedFarm:t.length})}),(0,c.jsx)(e2,{children:(0,c.jsxs)(m.A,{padding:"16px",justifyContent:"space-between",children:[(0,c.jsxs)(m.A,{flexDirection:"column",children:[(0,c.jsxs)(m.A,{children:[(0,c.jsx)(j.A,{bold:!0,textTransform:"uppercase",color:"textSubtle",fontSize:"12px",pr:"4px",children:"CAKE"}),(0,c.jsx)(j.A,{bold:!0,textTransform:"uppercase",color:"textSubtle",fontSize:"12px",children:l("Earned")})]}),(0,c.jsx)(J.Ay,{children:(0,c.jsxs)(m.A,{flexDirection:"column",alignItems:"flex-start",children:[(0,c.jsx)(q.A,{children:n}),(0,c.jsx)(V.A,{fontSize:"12px",color:"textSubtle",decimals:2,value:i,unit:" USD",prefix:"~"})]})})]}),(0,c.jsx)(et.A,{style:{alignSelf:"center",whiteSpace:"nowrap"},onClick:r,children:l("View All")})]})})]})};var e8=n(67002),e5=n(979332),e6=n(796147);let{FarmAuctionTag:e3,V3FeeTag:e7}=S.A,e9=(0,h.I4)(m.A).withConfig({componentId:"sc-ea1605f3-0"})(["flex-direction:column;height:auto;max-height:60vh;"]),te=e=>{let{isReady:t,lpSymbol:n,tokenPairImage:i,feeAmount:r,isCommunityFarm:l,multiplier:s,children:o,onDismiss:a,onHarvestAll:d,harvesting:x}=e,{t:h}=(0,u.A)();return(0,c.jsx)(G.Bs,{style:{minWidth:"300px",maxHeight:"90vh",overflow:"hidden"},children:(0,c.jsxs)(e8.R,{bg:"gradientBubblegum",py:"24px",maxWidth:"420px",children:[(0,c.jsxs)(ek.JA,{flexWrap:"nowrap",px:"24px",children:[(0,c.jsxs)(m.A,{alignItems:"center",width:"100%",children:[i,(0,c.jsx)(j.A,{bold:!0,m:"0 8px",children:n.split(" ")[0]}),(0,c.jsxs)(ek.eF,{gap:"4px",justifyContent:"flex-start",flex:1,children:[t&&s&&(0,c.jsx)(e5.A,{mr:"4px",variant:"secondary",children:s}),t&&r&&(0,c.jsx)(e7,{mr:"4px",feeAmount:r}),t&&l&&(0,c.jsx)(e3,{})]})]}),(0,c.jsx)(G.s_,{onDismiss:a})]}),(0,c.jsx)(G.cw,{mt:"16px",children:(0,c.jsx)(e9,{px:"24px",children:o})}),(0,c.jsx)(e6.mm,{px:"24px",gap:"16px",children:d&&(0,c.jsx)(ee.A,{children:(0,c.jsx)(et.A,{width:"100%",variant:"primary",disabled:x,onClick:d,children:h("Harvest All")})})})]})})}},833930:(e,t,n)=>{n.d(t,{A:()=>g});var i=n(350979),r=n(25963),l=n(680797),s=n(769932),o=n(378385),a=n(568187),d=n(777807),c=n(501823),x=n(605641),h=n(673115),p=n(557423),u=n(208553),m=n(727353);let j=l.I4.div.withConfig({componentId:"sc-bf59be85-0"})(["display:flex;flex-direction:column;background-color:",";border-radius:16px;box-shadow:",";color:",";padding:8px 16px 8px 0;width:100%;"],e=>{let{theme:t}=e;return t.colors.input},e=>{let{theme:t,isWarning:n}=e;return n?t.colors.warning:t.shadows.inset},e=>{let{theme:t}=e;return t.colors.text}),A=(0,l.I4)(m.A).withConfig({componentId:"sc-bf59be85-1"})(["box-shadow:none;width:50%;margin:0 8px;padding:0 8px;border:none;","{width:auto;}"],e=>{let{theme:t}=e;return t.mediaQueries.sm}),f=(0,l.I4)(x.A).withConfig({componentId:"sc-bf59be85-2"})(["position:absolute;bottom:-22px;a{display:inline;}"]),g=e=>{let{max:t,maxAmount:n,symbol:l,onChange:m,onSelectMax:g,onPercentInput:b,value:y,valueUSDPrice:w,addLiquidityUrl:v,inputTitle:C,decimals:k=18,needEnable:I}=e,{t:S}=(0,s.A)(),T="0"===t||!t,F=(0,r.useMemo)(()=>({25:n?(0,d.t)(n.dividedBy(100).multipliedBy(25).toNumber().toFixed(k)):void 0,50:n?(0,d.t)(n.dividedBy(100).multipliedBy(50).toNumber().toFixed(k)):void 0,75:n?(0,d.t)(n.dividedBy(100).multipliedBy(75).toNumber().toFixed(k)):void 0}),[n,k]),D=n&&y===n.toString();return(0,i.jsxs)("div",{style:{position:"relative"},children:[(0,i.jsxs)(j,{isWarning:T,children:[(0,i.jsxs)(c.A,{justifyContent:"space-between",pl:"16px",children:[(0,i.jsx)(x.A,{fontSize:"14px",children:C}),(0,i.jsx)(x.A,{fontSize:"14px",children:S("Balance: %balance%",{balance:(e=>{let{balance:t,decimals:n,isBalanceZero:i}=e;if(i)return"0";let r=(0,a.X)(t,n);return(0,o.x4)(r,n,n)})({balance:t,decimals:k,isBalanceZero:T})})})]}),(0,i.jsxs)(c.A,{alignItems:"flex-end",justifyContent:"space-between",children:[(0,i.jsx)(A,{pattern:`^[0-9]*[.,]?[0-9]{0,${k}}$`,inputMode:"decimal",step:"any",min:"0",onChange:m,placeholder:"0",value:y}),(0,i.jsx)(x.A,{fontSize:"16px",mb:"8px",children:l})]}),w&&(0,i.jsx)(c.A,{justifyContent:"flex-start",ml:"1rem",children:(0,i.jsx)(c.A,{maxWidth:"200px",children:(0,i.jsx)(u.A,{display:"inline",fontSize:"12px",color:"textSubtle",decimals:2,prefix:"~",value:w.toNumber(),unit:" USD"})})}),(0,i.jsxs)(c.A,{pt:"3px",justifyContent:"flex-end",children:[(null==n?void 0:n.isGreaterThan(0))&&b&&[25,50,75].map(e=>{let t;25===e?t=F[25]:50===e?t=F[50]:75===e&&(t=F[75]);let r=n&&y===t;return(0,i.jsxs)(p.A,{onClick:()=>{b(e)},scale:"xs",mr:"5px",variant:r?"primary":"secondary",style:{textTransform:"uppercase"},children:[e,"%"]},`btn_quickCurrency${e}`)}),(null==n?void 0:n.isGreaterThan(0))&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(p.A,{onClick:g,scale:"xs",variant:D?"primary":"secondary",style:{textTransform:"uppercase"},children:S("Max.fill-max")})})]})]}),T&&(0,i.jsxs)(f,{fontSize:"14px",color:"failure",children:[S("No tokens to stake"),":"," ",(0,i.jsx)(h.A,{fontSize:"14px",bold:!1,href:v,external:!0,color:"failure",children:S("Add %symbol%",{symbol:l})})]}),I&&(0,i.jsx)(x.A,{color:"failure",fontSize:"12px",mt:"8px",children:S('Insufficient token allowance. Click "Enable" to approve.')})]})}}}]);
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.