1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1260],{92049:function(e,t,s){s.d(t,{M:function(){return n}});var a=s(27573);s(7653);var i=s(98143),l={src:"/_next/static/media/icon.8f679ff9.png",height:22,width:22,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA+klEQVR42mOAAqMJkyfeOXXm5P/jp479339g78/i4kIzsIynr48Rv73bx+Mnj/2/9+je39Ypk/+++/Dm//YdWz+CNDK4RMbe8U3J/P/02aNfsxbM/Z9XVPD/5evnv5t6uv9L2zjdYTAPi/lf2dzyFyj4X8XY5P+iFUv/f/z8/n95Y9NfC6AcA4OBxf+N2zb/vXXnxv/JUyf9//Llw/879+/8T6uo/msfHP6fAQjuLFu76v/6bZt+HTh2+P+5qxf/N0ye8iuquPy/nbvnHbAP7P2DPhY1t/xvnjr1bxMQ59Q3/nfwCwI7Eu5NO9/AO2GZOf9B2DEg+A5MEgAmbYvP0HWXDgAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8};let n=e=>{let{type:t="contained",alt:s="Icon",className:n,imgClassName:r,style:o={},width:d,height:c}=e;return o={...o},d&&(o.width="".concat(d,"px")),c&&(o.height="".concat(c,"px")),(0,a.jsx)(i.n,{type:t,src:l,alt:s,className:n,imgClassName:r,style:o})}},83345:function(e,t,s){s.d(t,{E:function(){return n}});var a=s(27573);s(7653);var i=s(98143),l={src:"/_next/static/media/yologame-ticket.c193dda2.png",height:30,width:37,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAvUlEQVR42mMAgUlLs9lA9OH9pyxWH6x/s//i7Pkvrv5XAEs2TYlmBdFHjhy2n7M18dvSCwz/dz1T/r/lWuyPnccWrQAr2rvroN/i/XH/N95j+L/jscbPzQ8Y/i894fh/896FlQwbty+vnLe+9v/6m+L/d7+QBUtuvBz+f+/efX5g3Zt3rl6x6ljWj4XHxf6vvs7wf9OVhG+H9h+zB8lN3i7IClb08dVvhX0X587ffAbowJ2nLEBi83clgB0OAKJ0YVekvsraAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6};let n=e=>{let{type:t="contained",alt:s="Yologame Ticket",className:n,imgClassName:r,style:o={},width:d,height:c}=e;return o={...o},d&&(o.width="".concat(d,"px")),c&&(o.height="".concat(c,"px")),(0,a.jsx)(i.n,{type:t,src:l,alt:s,className:n,imgClassName:r,style:o})}},1861:function(e,t,s){s.d(t,{v:function(){return k}});var a=s(27573),i=s(7653),l=s(82802),n=s(91956),r=s(1203),o=s(2167),d=s(24077),c=s(45263),u=s(20416),m=s(67055),x=s(25559),h=s(51469),g=s(15298),f=s(70047),p=s(82819);let v=i.forwardRef((e,t)=>{let s=(0,o.useClientTranslations)(),i=(0,d.useWindowStore)(e=>e.isMobile),{dialogId:v,twitterHandle:k,nextLinkTs:S,linkQuota:j,...w}=e,b=Date.now().valueOf()>=S,N=j>0,y=!b||!N,{days:T,hours:A,minutes:C,seconds:E}=(0,n.au)({deadlineInt:S,padZeros:!1,startsAfter:1e3}),I=(0,x.D)([{value:T,suffix:"day",shouldEarlyReturn:!0},{value:A,suffix:i?"h":"hour"},{value:C,suffix:i?"m":"minute"},{value:E,suffix:i?"s":"second"}],!0);return(0,a.jsx)(g.v4,{ref:t,dialogId:v,disableDismissByEsc:!0,showCloseIcon:!1,header:(0,a.jsx)(g.R$,{title:s("dialogs.relinkTwitter.title")}),footer:(0,a.jsxs)(g.Lq,{children:[!N&&(0,a.jsx)(h.S,{as:"a",state:"default",size:"small",variant:"primary",trailIcon:(0,a.jsx)(c.o,{size:16}),href:"https://dyno.gg/form/b419bf3e",target:"_blank",children:s("dialogs.relinkTwitter.actions.requestOnDiscord")}),N&&(0,a.jsx)(h.S,{disabled:y,state:"default",size:"small",variant:"primary",onClick:()=>{y||l.steakFarmingStore.relinkTwitter()},children:b?(0,a.jsx)("span",{children:s("dialogs.relinkTwitter.actions.connectNewX")}):(0,a.jsx)("span",{children:"".concat(s("dialogs.relinkTwitter.actions.connectNewX")," IN ").concat(I)})}),(0,a.jsx)(h.S,{state:"default",size:"small",variant:"secondary",onClick:()=>{r.dialogStore.dismiss(v)},children:s("dialogs.relinkTwitter.actions.cancel")})]}),...w,children:(0,a.jsxs)(u.k,{className:"flex-col gap-4",children:[(0,a.jsx)(p.x,{size:"sm",className:"text-muted-foreground",children:s("dialogs.relinkTwitter.content")}),(0,a.jsxs)(u.k,{className:"gap-2 flex-col",children:[!!k&&(0,a.jsx)(f.v,{className:"px-4 py-2",children:(0,a.jsxs)(u.k,{className:(0,m.cn)("flex-col gap-1"),children:[(0,a.jsx)(p.x,{size:"sm",weight:"medium",className:(0,m.cn)("text-muted-foreground"),children:"CURRENTLY LINKED"}),(0,a.jsxs)(p.x,{size:"lg",weight:"semiBold",children:["@",k]})]})}),(0,a.jsxs)(p.x,{size:"xs",className:(0,m.cn)("text-muted-foreground"),children:[N&&(0,a.jsx)("span",{children:s.rich("dialogs.relinkTwitter.quotaAvailable",{quota:j})}),!N&&(0,a.jsx)("span",{children:s("dialogs.relinkTwitter.quotaUnavailable")})]})]})]})})}),k=i.forwardRef((e,t)=>
1{var s,i,n,r,o,d;let c=(0,l.useSteakFarmingStore)(e=>e.profileInfo).value,u=null!==(r=null==c?void 0:null===(s=c.twitter)||void 0===s?void 0:s.username)&&void 0!==r?r:"",m=null!==(o=null==c?void 0:null===(i=c.twitter)||void 0===i?void 0:i.nextLinkTs)&&void 0!==o?o:0,x=null!==(d=null==c?void 0:null===(n=c.twitter)||void 0===n?void 0:n.relinkQuota)&&void 0!==d?d:0;return c&&!c.twitter&&(x=1),(0,a.jsx)(v,{twitterHandle:u,nextLinkTs:m,linkQuota:x,ref:t,...e})})},58079:function(e,t,s){s.d(t,{q:function(){return g}});var a=s(27573),i=s(7653),l=s(1203),n=s(2167),r=s(20416),o=s(64231);async function d(e){if(!navigator.clipboard){!function(e){let t=document.createElement("textarea");if(t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select(),!document.execCommand("copy"))throw Error("Copy unsuccessful");document.body.removeChild(t)}(e);return}await navigator.clipboard.writeText(e)}var c=s(6941),u=s(98600),m=s(51469),x=s(15298),h=s(82819);let g=i.forwardRef((e,t)=>{let{dialogId:s,symbol:g,tokenDecimals:f,tokenKey:p,chainKey:v="ETHEREUM",...k}=e,[S,j]=i.useState(!1),[w,b]=i.useState(!1),N=(0,n.useClientTranslations)(),y=(0,u.u)((0,c.$R)(v),p),T=async()=>{if(!S)try{var e,t;j(!0);let a=y.address;await (null===(t=window.ethereum)||void 0===t?void 0:null===(e=t.request)||void 0===e?void 0:e.call(t,{method:"wallet_watchAsset",params:{type:"ERC20",options:{address:a,symbol:g,decimals:f,image:""}}}))&&((0,o.showToast)({title:N("dialogs.addToWallet.tokenAdded.title"),content:N("dialogs.addToWallet.tokenAdded.content"),duration:5e3}),l.dialogStore.dismiss(s))}catch(e){(0,o.showToast)({title:N("dialogs.addToWallet.failedToAdd.title"),content:N("dialogs.addToWallet.failedToAdd.content"),duration:5e3})}finally{j(!1)}};return(0,a.jsx)(x.v4,{ref:t,dialogId:s,showCloseIcon:!0,contentClassName:"w-[512px] md:w-[512px] md:min-w-[512px] max-w-[calc(100vw-32px)]",header:(0,a.jsx)(x.R$,{title:(0,a.jsx)("span",{className:"inline-block translate-y-px",children:N("dialogs.addToWallet.title")}),description:(0,a.jsx)(h.x,{size:"sm",className:"text-foreground",children:N("dialogs.addToWallet.desc",{symbol:g})})}),...k,children:(0,a.jsxs)(r.k,{col:!0,className:"gap-4",children:[(0,a.jsx)(m.S,{variant:"primary",size:"small",className:"uppercase",onClick:T,state:S?"loading":"default",children:N("dialogs.addToWallet.addToMetaMask")}),(0,a.jsx)(h.x,{size:"sm",className:"text-muted-foreground text-center",children:N("dialogs.addToWallet.addManually")}),(0,a.jsxs)(r.k,{className:"flex-col gap-2 items-center",children:[(0,a.jsx)(m.S,{variant:"secondary",size:"small",className:"uppercase w-full",onClick:()=>{d(y.address),b(!0)},children:w?N("dialogs.addToWallet.copied"):N("dialogs.addToWallet.copyTokenAddress")}),(0,a.jsx)(h.x,{size:"sm",className:"text-muted-foreground",children:y.address})]})]})})})},15032:function(e,t,s){s.d(t,{o:function(){return n}});var a=s(27573);s(7653);var i=s(67055),l=s(92049);let n=e=>{let{size:t=24,className:s}=e;return(0,a.jsx)(l.M,{className:(0,i.cn)("pixelated",s),width:t,height:t})}},60095:function(e,t,s){s.r(t),s.d(t,{BoostFarmingDashboardWithStore:function(){return eY},default:function(){return eq}});var a=s(27573),i=s(7653),l=s(75441),n=s(18167),r=s(46653),o=s(84650),d=s(36150),c=s(6941),u=s(82802),m=s(10588),x=s(20416),h=s(67055),g=s(96332),f=s(43552),p=s(27123),v=s(48013),k=s(92049),S=s(74544),j=s(2167),w=s(24077),b=s(34210),N=s(70047),y=s(47426),T=s(82819),A=s(47740),C=s(98694),E=s(19666),I=s(751),z=s(1203),F=s(2502),M=s(86571),P=s(6100),O=s(51064),B=s(51469),R=s(26768),W=s(70360),V=s(79919),H=e=>{let{claimExpiryTs:t,wallet:s,stage:i}=e,l=(0,w.useWindowStore)(e=>e.isMobile),n=l?48:72,r=(0,u.useSteakFarmingStore)(e=>e.currentSeasonState);return(0,a.jsxs)(x.k,{className:(0,h.cn)("gap-4"),children:[(0,a.jsx)(k.M,{className:"pixelated shrink-0 rounded-full overflow-hidden",width:n,height:n}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 min-w-0",children:[(0,a.jsxs)(x.k,{className:(0,h.cn)("gap-2",l?"flex-col items-start":"flex-row items-center"),children:[(0,a.jsx)(T.x,{size:"md",weight:"medium",children:"BOOST ($BOOST)"}),(0,a.jsx)(V.l,{showFarmingEndsCountdown:"farming"===i,refunded:!1,claimExpiryTs:t,currentSeasonState:r.value,overrideTitle:{commit:"BURN YOUR STEAKS BY"}})]}),(0,a.jsx)(T.x,{size:"sm",children:"One token, three platforms, millions of users."}),(0,a.jsxs)(x.k,{className:(0,h.cn)("gap-2 overflow-x-auto",!!s&&"pb-2"),children:[(0,a.jsx)(F.H,{noUnderline:!0,href:"https://boost.gg/",children:(0,a.jsx)(B.S,{variant:"link",size:"small",textColor:"var(--foreground)",className:"flex-shrink-0 whitespace-nowrap",leadIcon:(0,a.jsx)(O.m,{size:16}),children:"Website"})}),(0,a.jsx)(F.H,{noUnderline:!0,shouldOpenInNewTab:!0,href:(0,W.EO)("boost").research,children:(0,a.jsx)(B.S,{variant:"link",size:"small",textColor:"var(--foreground)",className:"flex-shrink-0 whitespace-nowrap",leadIcon:(0,a.jsx)(P.N,{size:16}),children:"rEsEaRcH"})}),(0,a.jsx)(F.H,{noUnderline:!0,onClick:()=>{z.dialogStore.show(!0,R.R,{dialogId:"about-stakeland-dialog"})},children:(0,a.jsx)(B.S,{variant:"link",size:"small",textColor:"var(--foreground)",className:"flex-shrink-0 whitespace-nowrap",leadIcon:(0,a.jsx)(M.Y,{size:16}),children:"New to Stakeland?"})})]})]})]})};let U=(e,t,s)=>{let i="Unfortunately, you didnât get any rewards this time, but that doesnât mean you canât try again the next time.\n\nYou can still stake more MEME, get more steaks, prepare for the next Stakeland project!";switch(t){case"eligible":return{title:"$".concat(e," FARMING RESULTS!"),content:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("span",{children:"Congrats on the $BOOST rewards. Now stake more $MEME, get more steaks, and prepare for the next Stakeland project!"})}),showTokenButton:!0};case"eligibleDqFarming":return{title:"DISQUALIFIED FARMINGâSUSPICIOUS ACTIVITY",content:"You did not pass our security checks because your farming activities seem suspicious. Your steaks earned from farming are disqualified and removed.\n\nWe forgive you and always welcome you to stake some MEME, get some steaks, and join us for the next Stakeland project!",showTokenButton:!0};case"dqAll":return{title:"DISQUALIFIEDâSUSPICIOUS ACTIVITY",content:"You did not pass our security checks because your farming activities seem suspicious. Your steaks earned from farming are disqualified and removed.\n\nWe forgive you and always welcome you to stake some MEME, get some steaks, and join us for the next Stakeland project!",showTokenButton:!1};case"noSteaksCommitted":case"notEnoughSteaks":case"notEnoughSteaksDQ":case"incorrectWallet":return{title:"BETTER LUCK NEXT TIME!",content:i,showTokenButton:!1};case"ineligible":return{title:"INELIGIBLEâNO STEAKS",content:"You were not eligible to join the new $".concat(e," commit or didn't burn any steaks.\n\nCheer up! You can stake more MEME, get more steaks, and prepare for the next Stakeland project!"),showTokenButton:!1};case"lose":return{title:"BETTER LUCK NEXT TIME!",content:s?"Unfortunately, none of your tickets won this time, but that doesnât mean you canât win the next time!\n\nCheer up! You can still stake more MEME, get more steaks, and prepare for the next Stakeland project!":i,showTokenButton:!1}}},D=e=>{let{isConnected:t,walletAddress:s,solanaWalletAddress:i,season:l,stage:n,refunded:r=!1,isDq:o,symbol:d,tokenDecimals:c,airdropAmount:u,burnSteaks:m,ticketsBought:g,tickets:f,airdroppedAmount:p}=e,v=(0,j.useClientTranslations)(),k=(0,w.useWindowStore)(e=>e.isMobile),S=g>
10,z=u.gt(0)?o?"eligibleDqFarming":"eligible":o?"dqAll":S?m.eq(0)?"ineligible":"lose":"ineligible";return(0,a.jsx)(N.v,{title:k?void 0:v("form.farming.title.pro"),titleProps:{borderSize:k?"default":"large"},borderSize:k?"default":"large",type:"secondary",className:k?"py-[16px] px-[16px]":"w-full px-[32px]",bgColor:"var(--card)",children:(0,a.jsxs)(x.k,{className:"flex-col w-full h-full gap-4",children:[k&&(0,a.jsx)(x.k,{className:"w-full justify-between",children:(0,a.jsx)(y.b,{leadIcon:(0,a.jsx)(b.t,{className:"pixelated",width:28,height:28}),iconPosition:"center",textPosition:"center",className:(0,h.cn)((0,A.s)({size:"heading4",weight:"medium"})),children:v("form.farming.title.pro")})}),(0,a.jsx)(x.k,{className:"flex-col w-full h-full gap-4",children:t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(C.B,{symbol:d,tokenDecimals:c,summary:U(d,z,S)}),(0,a.jsx)(x.k,{className:"z-10",children:(0,a.jsx)(E.J,{season:l,status:z,TokenIcon:e.Icon,airdropAmount:u,airdroppedAmount:p,tokenSymbol:d,tokenDecimals:c})})]}):(0,a.jsx)(I.P,{isConnected:t,stage:n})}),(0,a.jsxs)(x.k,{className:"flex-col gap-4",children:[(0,a.jsx)(T.x,{size:"sm",weight:"medium",className:"text-muted-foreground",children:"About Token"}),(0,a.jsx)(H,{wallet:s,stage:n,claimExpiryTs:0})]})]})})},Y=i.memo(()=>{var e,t,s,i,n;let r=(0,l.useWalletStore)(e=>e.getAddressInUse()),o=(0,u.useSteakFarmingStore)(e=>e.currentSeasonState),d=(0,u.useSteakFarmingStore)(e=>e.farmingResult.value),c=null!==(i=null===(e=o.value)||void 0===e?void 0:e.season)&&void 0!==i?i:4,m=null!==(n=null===(t=o.value)||void 0===t?void 0:t.stage)&&void 0!==n?n:"not-started",{isDq:x=!1,dqSteaks:h=p.O$.from(0),burnSteaks:g=p.O$.from(0)}=null!=d?d:{},f=S.steakFarmAirdropStore_Boost.useState(e=>{var t;return null!==(t=e.airdropAmount.value)&&void 0!==t?t:p.O$.from(0)}),j=S.steakFarmAirdropStore_Boost.useState(e=>{var t;return null!==(t=e.airdroppedAmount.value)&&void 0!==t?t:p.O$.from(0)}),w=S.steakFarmAirdropStore_Boost.useState(e=>e.tokenDecimals),b=S.steakFarmAirdropStore_Boost.useState(e=>e.farmTokenSymbol);(0,u.useSteakFarmingStore)(e=>{var t;return!!(null===(t=e.currentSeasonState.value)||void 0===t?void 0:t.refunded)});let N=(0,u.useSteakFarmingStore)(e=>e.steakFarmingInfo),y=S.steakFarmAirdropStore_Boost.useState(e=>{var t;return null!==(t=e.tickets.value)&&void 0!==t?t:v.t.map(e=>0)}).reduce((e,t)=>e+t,0),T=S.steakFarmAirdropStore_Boost.useState(e=>{var t;return null!==(t=e.ticketsBought.value)&&void 0!==t?t:0});return(0,a.jsx)(D,{isConnected:void 0!==r,walletAddress:r,solanaWalletAddress:null===(s=N.value)||void 0===s?void 0:s.solWallet,season:c,stage:m,Icon:k.M,symbol:b,tokenDecimals:w,isLoading:!1,ticketsBought:T,tickets:y,airdropAmount:f,airdroppedAmount:j,isDq:x,dqSteaks:h,burnSteaks:g})});var q=s(89840),L=s(20313),$=s(93651),X=s(30267),_=s(62059),J=s(3641),K=s.n(J),Q=s(98869),Z=s(56840),G=s(7279),ee=s(83345),et=s(77103),es=s(88139),ea=s(47439),ei=s(15298);let el=i.forwardRef((e,t)=>{var s;let{dialogId:l,setStage:n,onSubmit:r,totalTickets:o,isLoading:d,steakBurnt:c,...m}=e,g=(0,j.useClientTranslations)(),[f,p]=(0,i.useState)(!0),[v,k]=(0,i.useState)(!1),[S,w]=(0,i.useState)(!1),b=u.steakFarmingStore.useState(e=>e.currentSeasonState),N=null==b?void 0:null===(s=b.value)||void 0===s?void 0:s.commitmentEnded,y=(0,u.useSteakFarmingStore)(e=>e.isVerifying),A=(0,u.useSteakFarmingStore)(e=>e.resetVerifyError);return(0,i.useEffect)(()=>{let e=setTimeout(()=>{p(!1)},1e3);return()=>clearTimeout(e)},[]),(0,i.useEffect)(()=>{N&&z.dialogStore.clear()},[N]),(0,a.jsx)(ei.v4,{closeBtnCb:()=>{z.dialogStore.clear(),A(),w(!1)},ref:t,dialogId:l,disableDismissByEsc:!0,contentClassName:(0,h.cn)("w-full md:min-w-[480px] md:w-[480px]"),showCloseIcon:!0,header:(0,a.jsx)(ei.R$,{isContainerCloseIcon:!0,title:(0,a.jsxs)(x.k,{className:"gap-2",children:[(0,a.jsx)(ee.E,{type:"contained",className:(0,h.cn)("pixelated w-[24px] h-[24px] z-10")}),(0,a.jsx)(T.x,{size:"lg",weight:"medium",children:"CONFIRM PURCHASE"})]}),descriptionStyle:"text-foreground"}),footer:(0,a.jsxs)(ei.Lq,{className:"gap-2",children:[(0,a.jsx)(B.S,{disabled:N,onClick:async()=>
1{if(!f&&!d&&!v&&!N)try{k(!0),await (null==r?void 0:r((0,Q.formatEther)(c)))}catch(e){w(!0)}finally{k(!1)}},size:"small",variant:"primary",state:y||v?"loading":"default",children:"CONFIRM PURCHASE"}),(0,a.jsx)(B.S,{size:"small",variant:"secondary",state:"default",onClick:()=>{n("buy")},children:"CHANGE TICKETS"}),S&&(0,a.jsx)(T.x,{size:"sm",className:"pt-2 text-center text-destructive",children:g("common.errorMsg.genericError")})]}),...m,children:(0,a.jsx)(x.k,{col:!0,className:"gap-6",children:(0,a.jsxs)(x.k,{className:"flex-col gap-6",children:[(0,a.jsxs)(T.x,{size:"sm",className:"text-foreground",children:["You acknowledge that:",(0,a.jsxs)("ul",{className:(0,h.cn)("list-outside list-disc pl-6"),children:[(0,a.jsx)("li",{children:"Tickets and steaks are non-refundable"}),(0,a.jsx)("li",{children:"Entering the lottery does not guarantee that you will win any prize"}),(0,a.jsx)("li",{children:"If you unstake MEME before the result is out, your tickets will be revoked"})]})]}),(0,a.jsxs)(x.k,{className:"gap-2 items-start",children:[(0,a.jsx)(x.k,{className:"top-[1px] relative",children:(0,a.jsx)(M.Y,{size:20})}),(0,a.jsx)(T.x,{size:"sm",className:"text-foreground",children:"You can only purchase tickets ONCE."})]}),(0,a.jsxs)(x.k,{className:"gap-4 flex-col",children:[(0,a.jsx)(et.W,{variant:"card",size:"small",header:"TICKETS",icon:(0,a.jsx)(ee.E,{width:24,height:24}),amount:(0,G.W)(o,{abbr:!1}),alignment:"left",className:"w-full",showWatermark:!1}),(0,a.jsx)(et.W,{variant:"card",size:"small",header:"STEAKS TO BURN",icon:(0,a.jsx)(ea.M,{width:24,height:24}),amount:(0,G.W)(c,{abbr:!1}),alignment:"left",className:"w-full",showWatermark:!1})]})]})})})});var en=s(75092),er=s(87968),eo=s(25331),ed=s(8233),ec=s(18141),eu=s(34127),em=s(20891),ex=s(78368),eh=s(15502);let eg=e=>{let{setInputValue:t,inputValue:s,maxBuyingAmount:i,hasNoEnoughSteakAmount:l}=e,n=(0,em.useTranslations)(),r=(0,h.cn)("flex justify-center items-center w-[25px] h-[25px]"),o=0>=Number(s),d=e=>{t(Math.min(Math.max(e,0),9999999999999))};return(0,a.jsxs)(x.k,{className:"gap-2 items-center min-h-[36px]",children:[l&&(0,a.jsx)(M.Y,{size:20,className:"text-destructive"}),!l&&s<i&&(0,a.jsx)(B.S,{variant:"ghost",size:"small",onClick:()=>{t(i)},children:(0,a.jsx)(T.x,{className:"text-primary font-medium",size:"sm",children:n("common.actions.max")})}),(0,a.jsxs)(x.k,{className:"gap-2 items-center w-full touch-none",children:[(0,a.jsx)(N.v,{className:(0,h.cn)(r),onMouseDown:e=>{e.preventDefault()},onTouchStart:e=>{e.preventDefault()},onClick:()=>d(s-1),children:(0,a.jsx)(x.k,{className:(0,h.cn)("justify-center items-center",o&&"text-muted-foreground"),children:(0,a.jsx)(ex.Z,{size:14})})}),(0,a.jsx)(N.v,{className:(0,h.cn)(r),onMouseDown:e=>{e.preventDefault()},onTouchStart:e=>{e.preventDefault()},onClick:()=>d(s+1),children:(0,a.jsx)(x.k,{className:(0,h.cn)("justify-center items-center"),children:(0,a.jsx)(eh.t,{size:16})})})]})]})},ef=e=>{let{title:t,amount:s,amountPrefix:i,leadIcon:l,amountSectionClassName:n}=e;return(0,a.jsxs)(x.k,{className:"w-full py-2",children:[(0,a.jsx)(x.k,{className:"flex-1",children:(0,a.jsx)(T.x,{size:"sm",className:"text-muted-foreground font-medium",children:t})}),(0,a.jsxs)(x.k,{className:(0,h.cn)([l&&"gap-1"]),children:[l&&l,(0,a.jsxs)(x.k,{className:"gap-1",children:[(0,a.jsx)(T.x,{size:"sm",className:"text-foreground",children:i&&i}),(0,a.jsx)(T.x,{size:"sm",className:(0,h.cn)("text-foreground",n),children:s})]})]})]})},ep=(e,t,s)=>{let i=t.mul(80).div(100),l=e.lt(i),n=l?"Current balance (less than 80% of snapshot: ".concat((0,er.d)(t)," steaks)"):"80% of snapshot ".concat((0,er.d)(t)," steaks");return(0,a.jsx)(x.k,{children:(0,a.jsx)(ec.U,{content:(0,a.jsx)(T.x,{size:"sm",className:(0,h.cn)(ec.m),children:n}),children:(0,a.jsxs)(T.x,{size:"sm",className:(0,h.cn)("text-muted-foreground mt-2 select-none",s&&"text-destructive"),children:["Eligible steaks: ",(0,er.d)(l?e:i)]})})})},ev=i.forwardRef((e,t)=>{let{dialogId:s,setStage:i,inputValue:l,eachTicketSteakPrice:n,snapshotSteaksWithPercent:r,snapshotSteaks:o,ticketMultiplier:d,setInputValue:c,onDismiss:m,...g}=e;(0,j.useClientTranslations)();let f=(0,u.useSteakFarmingStore)(e=>e.verifyError),v=(0,u.useSteakFarmingStore)(e=>e.isVerifying),k=(0,eu.useMemeStakingStore)(e=>e.stakedAmount),S=(0,_.useMemeStakingPageStore)(e=>e.totalSteaks),w=(0,u.useSteakFarmingStore)(e=>e.resetVerifyError),b=n.mul(l),N=r.sub(b),y=N.lt(0)?p.O$.from(0):N,A=k.value?S:p.O$.from(0),C=A.lt(o.mul(80).div(100)),E=Number(en.xs.from((C?A:r).div(n))),I=y.eq(0);return(0,a.jsx)(ei.v4,{closeBtnCb:()=>{null==m||m(),w()},ref:t,dialogId:s,disableDismissByEsc:!0,contentClassName:(0,h.cn)("w-full md:min-w-[480px] md:w-[480px]"),showCloseIcon:!0,header:(0,a.jsx)(ei.R$,{isContainerCloseIcon:!0,title:(0,a.jsxs)(x.k,{className:"gap-2",children:[(0,a.jsx)(ee.E,{type:"contained",className:(0,h.cn)("pixelated w-[24px] h-[24px] z-10")}),(0,a.jsx)(T.x,{size:"lg",weight:"medium",children:"GET TICKETS"})]}),descriptionStyle:"text-foreground"}),footer:(0,a.jsx)(ei.Lq,{className:"gap-0",children:(0,a.jsx)(B.S,{size:"small",variant:"primary",state:v?"loading":"default",loadingPlaceholder:"GET TICKETS",disabled:0===l||v||I,onClick:()=>{0===l||v||I||i("confirm")},children:"GET TICKETS"})}),...g,children:(0,a.jsx)(x.k,{col:!0,className:"gap-6",children:(0,a.jsxs)(x.k,{className:"flex-col gap-4",children:[(0,a.jsx)(x.k,{className:"gap-2 items-start",children:(0,a.jsxs)(x.k,{className:"flex-col gap-4",children:[(0,a.jsx)(T.x,{size:"sm",className:"text-foreground",children:"You can use up to 80% of your steaks at snapshot time to get tickets for the $BOOST lottery."}),(0,a.jsxs)(x.k,{className:"gap-2",children:[(0,a.jsx)(x.k,{className:"top-[1px] relative",children:(0,a.jsx)(M.Y,{size:20})}),(0,a.jsx)(T.x,{size:"sm",className:"text-foreground",children:"You can only purchase tickets ONCE."})]})]})}),(0,a.jsxs)(x.k,{className:"flex-col w-full",children:[(0,a.jsx)(x.k,{className:"w-full justify-between",children:(0,a.jsx)(T.x,{size:"sm",weight:"medium",className:(0,h.cn)("text-foreground pb-2"),children:"Lottery Tickets"})}),(0,a.jsx)(eo.f,{placeholder:"0",value:l,inputSize:"small","aria-label":"Wallet Address",containerClassName:"h-10",shouldFormatNumber:!1,state:f||I?"error":"default",onChange:e=>{let t=Number(e.target.value.trim())||0;c(t=Math.min(Math.max(t,0),9999999999999)),w()},extraComponents:(0,a.jsx)(eg,{maxBuyingAmount:E,inputValue:l,setInputValue:c,hasNoEnoughSteakAmount:I})}),ep(A,o,I)]}),(0,a.jsxs)(x.k,{className:"items-center flex-col relative",children:[d>1&&(0,a.jsx)(ed.l,{iconType:"showTicketIcon",alertClassName:"p-2.5",title:"Lucky boost applied"}),(0,a.jsx)(ef,{title:"TOTAL TICKETS",amount:(0,G.W)((d||1)*l,{abbr:!1}),leadIcon:(0,a.jsx)(ee.E,{width:20,height:20})}),(0,a.jsx)("div",{className:"w-full h-[2px] bg-border my-2"}),(0,a.jsx)(ef,{amountSectionClassName:(0,h.cn)(I&&"text-destructive"),title:"STEAKS TO BURN",amount:(0,G.W)(b,{abbr:!1}),leadIcon:(0,a.jsx)(ea.M,{width:20,height:20})})]})]})})})}),ek=i.forwardRef((e,t)=>
1{let{stage:s="buy",setStage:l,snapshotSteaks:n,eachTicketSteakPriceBn:r,ticketMultiplier:o,...d}=e,[c,m]=(0,i.useState)(0),x=(0,Q.parseEther)(n),h=(0,u.useSteakFarmingStore)(e=>e.walletAllocationInfo),g=(0,u.useSteakFarmingStore)(e=>{var t;return null!==(t=e.allocationId.value)&&void 0!==t?t:1});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ev,{eachTicketSteakPrice:r,inputValue:c,ticketMultiplier:o,setInputValue:m,dialogId:"input-form-dialog",snapshotSteaks:x,snapshotSteaksWithPercent:x.mul(80).div(100),setStage:l,open:"buy"===s,onDismiss:()=>{z.dialogStore.clear(),l("idle")}}),(0,a.jsx)(el,{isLoading:null==h?void 0:h.isFetching,dialogId:"confirmation-dialog",setStage:l,steakBurnt:r.mul(c),totalTickets:Number(c)*(o||1),open:"confirm"===s,onSubmit:async e=>{await u.steakFarmingStore.submitTicket(g,e)}})]})}),eS=()=>{var e;let[t,s]=(0,i.useState)("buy"),{snapshotSteaks:l="0"}=null!==(e=(0,u.useSteakFarmingStore)(e=>e.walletAllocationInfo).value)&&void 0!==e?e:{},n=(0,Q.parseEther)("1000");return"idle"!==t?(0,a.jsx)(ek,{ticketMultiplier:1,eachTicketSteakPriceBn:n,snapshotSteaks:l,stage:t,setStage:s,dialogId:"buy-boost-ticket-dialog"}):(0,a.jsx)(a.Fragment,{})},ej=e=>{let{prizePoolAmount:t,ticketPurchasedAmount:s,status:i,message:l,walletInfoMessage:n,prizePoolIcon:r,postCommit:o=!1}=e,d=(0,w.useWindowStore)(e=>e.isMobile),c=(0,j.useClientTranslations)();return(0,a.jsxs)(x.k,{col:!0,className:"w-full gap-4",children:[(0,a.jsxs)(x.k,{col:!0,className:"w-full gap-4",children:[(0,a.jsxs)(T.x,{className:"text-foreground",size:"sm",children:[l[i],("eligible"===i||"purchased"===i)&&(0,a.jsxs)(a.Fragment,{children:[" ",(0,a.jsx)(F.H,{openNewTab:!0,href:"/research/boost",children:(0,a.jsx)("span",{className:"text-foreground",children:"View Lottery Prizes"})})]})]}),n&&"ineligible"!==i&&"insufficient"!==i&&"beforeConnect"!==i&&n]}),(0,a.jsx)(N.v,{type:"outline",borderSize:"default",className:"w-full py-4 px-4",children:(0,a.jsxs)(x.k,{className:"gap-4 justify-between w-full items-center md:flex-row flex-col",children:[(0,a.jsxs)(x.k,{className:"grow gap-4 md:flex-row flex-col",children:[(0,a.jsx)(et.W,{variant:"ghost",size:"small",className:"grow",alignment:d?"center":"left",header:(0,a.jsx)(T.x,{size:"sm",weight:"medium",className:"uppercase text-muted-foreground",children:c("form.farming.commitSummary.prizePool")}),icon:r,iconPosition:"center",amount:t,monoSpaced:!0,showWatermark:!1,enablePaddingX:!1,enablePaddingY:!1}),!d&&(0,a.jsx)("div",{className:"w-[2px] bg-muted mt-[-14px] mb-[-14px]"}),(0,a.jsx)(et.W,{variant:"ghost",size:"small",className:"grow",alignment:d?"center":"left",header:(0,a.jsx)(T.x,{size:"sm",weight:"medium",className:"uppercase text-muted-foreground",children:c("form.farming.commitSummary.lotteryTickets")}),icon:"ineligible"===i?void 0:(0,a.jsx)(ee.E,{type:"contained",width:24,height:24}),iconPosition:"center",amount:"ineligible"===i?"Ineligible":"beforeConnect"===i?es.ar:(0,G.W)(s||0,{abbr:!1}),amountContainerClassName:"ineligible"===i?"ml-[-6px]":void 0,monoSpaced:!0,enableTooltip:!1,showWatermark:!1,enablePaddingX:!1,enablePaddingY:!1})]}),(o?s&&s>0:"beforeConnect"===i||"purchased"===i||"eligible"===i)?(0,a.jsx)(x.k,{className:"h-10",children:(0,a.jsx)(B.S,{variant:"primary",size:"small",disabled:"purchased"===i||"beforeConnect"===i,leadIcon:"purchased"===i?(0,a.jsx)(Z.z,{size:16}):void 0,onClick:()=>{"eligible"===i&&z.dialogStore.show(!0,eS)},children:"purchased"===i?c("form.farming.commitSummary.purchased"):"beforeConnect"===i||"eligible"===i?c("form.farming.commitSummary.getTickets"):""})}):(0,a.jsx)(a.Fragment,{})]})})]})};var ew=s(15032);let eb=i.memo(()=>{var e,t,s,i,n;let r=(0,l.useWalletStore)(e=>!!e.getAddressInUse()),o=(0,_.useMemeStakingPageStore)(e=>e.totalSteaks.gt(0)),d=(0,X.useMemeStakingAuthStore)(e=>e.getJwtStatus()),c=(0,u.useSteakFarmingStore)(e=>e.steakFarmingInfo),m=(0,u.useSteakFarmingStore)(e=>e.currentSeasonState),x=(0,u.useSteakFarmingStore)(e=>e.isExchangingTwitterAuthCode),h=(0,u.useSteakFarmingStore)(e=>!!e.requireJwtToViewFarmingInfo.value),g=(0,u.useSteakFarmingStore)(e=>e.walletAllocationInfo),f=(0,_.useMemeStakingPageStore)(e=>e.totalSteaks);m.isFetching||x||c.isFetching||g.isFetching;let p=null===(e=m.value)||void 0===e?void 0:e.commitmentEnded,v=(0,Q.parseEther)("1000"),k=(0,Q.parseEther)(null!==(n=null===(s=g.value)||void 0===s?void 0:null===(t=s.allocation)||void 0===t?void 0:t.amount)&&void 0!==n?n:"0"),S=(v.eq(0)?0:k.div(v).toNumber())*1,j=null===(i=g.value)||void 0===i?void 0:i.isEligible,w="beforeConnect";return w=!r||h&&o&&"valid"!==d?"beforeConnect":p?j?S>0?"purchased":"insufficient":"ineligible":j?f.lt(v)?"insufficient":k.gt(0)?"purchased":"eligible":"ineligible",(0,a.jsx)(ej,{prizePoolAmount:"20,000,000",status:w,message:p?{beforeConnect:"Feast is coming! The final result will be announced soon. Stay tuned!",eligible:0===S?"$BOOST farming has ended. You missed the chance to buy a lottery ticket. See you next time?":"",ineligible:"You cannot join the feast because you didn't complete all required quests. Keep accumulating your steaks, and join the next feast!",purchased:"Feast is coming! The final result will be announced soon. Stay tuned!",insufficient:"$BOOST farming has ended. You missed the chance to buy a lottery ticket. See you next time?"}:{beforeConnect:"$BOOST farming has ended. Connect your wallet for the next step.",eligible:"Cho
1ose how many steaks you want to burn for $BOOST. Remember if you get any tokens, you will use your Ethereum wallet to collect the airdropped $BOOST.",ineligible:"You cannot join the feast. You did not meet the eligibility requirements, keep accumulating your steaks, and join the next feast!",purchased:"Choose how many steaks you want to burn for $BOOST. Remember if you get any tokens, you will use your Ethereum wallet to collect the airdropped $BOOST.",insufficient:"You are short on steaks at the snapshot time.\n\nCheer up! You can stake more MEME, get more steaks, and prepare for the next Stakeland project!"},postCommit:p,prizePoolIcon:(0,a.jsx)(ew.o,{size:24}),ticketPurchasedAmount:S})},K()),eN=()=>{var e,t,s;let i=(0,j.useClientTranslations)(),n=(0,w.useWindowStore)(e=>e.isMobile),r=(0,l.useWalletStore)(e=>e.getAddressInUse()),o=(0,_.useMemeStakingPageStore)(e=>e.totalSteaks.gt(0));(0,X.useMemeStakingAuthStore)(e=>e.getJwtStatus());let d=(0,u.useSteakFarmingStore)(e=>!!e.requireJwtToViewFarmingInfo.value),c=(0,u.useSteakFarmingStore)(e=>!!e.revealedAllocation.value),g=(0,u.useSteakFarmingStore)(e=>e.steakFarmingInfo),f=(0,u.useSteakFarmingStore)(e=>e.currentSeasonState),p=(0,u.useSteakFarmingStore)(e=>e.isExchangingTwitterAuthCode);(0,u.useSteakFarmingStore)(e=>!!e.isEligibleToChangeAllocation.value);let v=(0,u.useSteakFarmingStore)(e=>e.walletAllocationInfo),k=(0,u.useSteakFarmingStore)(e=>e.eligibilityStatus),S=null===(e=f.value)||void 0===e?void 0:e.stage,C=(f.isFetching||p||g.isFetching||v.isFetching||k.isFetching,"finalizing"===S&&!(null===(t=f.value)||void 0===t?void 0:t.commitmentEnded));return(0,u.useSteakFarmingStore)(e=>e.profileInfo),null===(s=k.value)||void 0===s||s.isEligible,(0,a.jsx)(N.v,{title:n?void 0:i("form.farming.title.pro"),titleProps:{borderSize:n?"default":"large"},borderSize:n?"default":"large",type:"secondary",className:n?"py-[16px] px-[16px]":"w-full px-[32px]",bgColor:"var(--card)",children:(0,a.jsxs)(x.k,{className:"flex-col w-full h-full",children:[n&&(0,a.jsx)(x.k,{className:"w-full justify-between pb-4",children:(0,a.jsx)(y.b,{leadIcon:(0,a.jsx)(b.t,{className:"pixelated",width:28,height:28}),iconPosition:"center",textPosition:"center",className:(0,h.cn)((0,A.s)({size:"heading4",weight:"medium"})),children:i("form.farming.title.pro")})}),(0,a.jsx)("div",{className:"pb-8",children:(0,a.jsx)(H,{})}),(0,a.jsx)($.m,{children:(0,a.jsx)(q.M,{children:(d?!c&&(!r||o)&&"finalized"!==S:!r)&&(0,a.jsx)(m.E.div,{...(0,L.p)(),children:(0,a.jsx)(I.P,{isConnected:!!r,stage:S,inAllocationCommitmentPhase:C,onConnectButtonClick:e=>{let t;if(!e)return;let s=X.memeStakingAuthStore.getJwtStatus();u.steakFarmingStore.requireJwtToViewFarmingInfo.value&&"valid"!==s&&(t="submitAllocation"),u.steakFarmingStore.signWalletFlow({triggersFrom:t})}})})})}),(0,a.jsx)($.m,{children:(0,a.jsx)(q.M,{children:(0,a.jsx)(eb,{})})}),(0,a.jsx)(T.x,{size:"sm",className:"w-full text-center mt-8 text-muted-foreground",children:"BOTS AND SUSPICIOUS ACTIVITY WILL BE FILTERED WITHOUT PRIOR NOTICE"})]})})};var ey=s(64231),eT=s(15019),eA=s(64195),eC=s(36446),eE=s(48235),eI=s(88421),ez=s(34352),eF=s(1861),eM=s(27489),eP=s(19776),eO=s(14777),eB=s(37041),eR=s(11891);let eW=e=>{let{passed:t,redacted:s=!1,title:i}=e;return s?(0,a.jsxs)(x.k,{className:"gap-2 opacity-50",children:[(0,a.jsx)(x.k,{className:"w-6 h-6 items-center justify-center",children:(0,a.jsx)(eB.H,{size:20,className:"text-muted-foreground"})}),(0,a.jsx)(T.x,{size:"sm",className:"text-foreground",children:"[Redacted]"})]}):(0,a.jsxs)(x.k,{className:"gap-2",children:[(0,a.jsx)(x.k,{className:"w-6 h-6 items-center justify-center",children:t?(0,a.jsx)(eO.t,{size:20,className:"text-primary"}):(0,a.jsx)(eR.I,{size:20,className:"text-destructive"})}),"string"==typeof i?(0,a.jsx)(T.x,{size:"sm",children:i}):i]})},eV=e=>{let{rows:t}=e;return(0,a.jsxs)(x.k,{col:!0,className:"gap-2",children:[(0,a.jsx)(T.x,{size:"sm",className:"text-muted-foreground uppercase",weight:"medium",children:"Eligibility (Maintain until farming ends)"}),(0,a.jsx)(x.k,{col:!0,className:"gap-2",children:t.map((e,t)=>{let{isPassed:s,isRedacted:i,title:l}=e;return(0,a.jsx)(eW,{passed:s,redacted:i,title:l},"".concat(t,"-check-row"))})})]})},eH=i.memo(()=>(0,a.jsx)("span",{className:"underline cursor-pointer",onClick:e=>{e.stopPropagation(),z.dialogStore.show(!1,eF.v,{dialogId:"relink-twitter"})},children:"change"})),eU=()=>{var e,t,s,n,r,o,d,c,g,f,v,k;let S=(0,j.useClientTranslations)(),C=(0,w.useWindowStore)(e=>e.isMobile),E=(0,l.useWalletStore)(e=>e.getAddressInUse()),z=(0,_.useMemeStakingPageStore)(e=>e.totalSteaks.gt(0)),F=(0,X.useMemeStakingAuthStore)(e=>e.getJwtStatus()),P=(0,u.useSteakFarmingStore)(e=>!!e.requireJwtToViewFarmingInfo.value),O=(0,u.useSteakFarmingStore)(e=>!!e.revealedAllocation.value),B=(0,u.useSteakFarmingStore)(e=>e.steakFarmingInfo),R=(0,u.useSteakFarmingStore)(e=>e.currentSeasonState),W=(0,u.useSteakFarmingStore)(e=>e.isExchangingTwitterAuthCode);(0,u.useSteakFarmingStore)(e=>e.isRequiringOrdinalsWallet.value),(0,u.useSteakFarmingStore)(e=>!!e.isEligibleToChangeAllocation.value);let V=(0,u.useSteakFarmingStore)(e=>!!e.hasConnectedX.value);null!==(v=(0,eu.useMemeStakingStore)(e=>e.stakedAmount).value)&&void 0!==v||p.O$.from(0);let U=(null===(e=R.value)||void 0===e?void 0:e.stage)==="farming",D=null===(t=(0,u.useSteakFarmingStore)(e=>e.walletQuestStatus))||void 0===t?void 0:t.value,Y=(0,u.useSteakFarmingStore)(e=>e.profileInfo).value,[J,K]=(0,i.useState)(!1),Q=(null==D?void 0:D.quests)||[],Z=null===(s=R.value)||void 0===s?void 0:s.stage,G=R.isFetching||W||B.isFetching,ee="finalizing"===Z&&!(null===(n=R.value)||void 0===n?void 0:n.commitmentEnded),et=null!==(k=null===(r=B.value)||void 0===r?void 0:r.rewards)&&void 0!==k?k:[],es=null==Y?void 0:null===(o=Y.twitter)||void 0===o?void 0:o.username,ea=et.f
1ind(e=>"connectX"===e.type&&e.completed),ei=null==Y?void 0:null===(d=Y.twitter)||void 0===d?void 0:d.isPublic,el=(null==D?void 0:D.farmingQuests)||[],en=null===(c=el.find(e=>{var t,s;return"follow"===e.type&&(null===(s=e.details)||void 0===s?void 0:null===(t=s.handle)||void 0===t?void 0:t.includes("boostdotgg"))}))||void 0===c?void 0:c.id,er=!!en&&!!Q.find(e=>e.id===en&&e.completed),eo=null===(g=el.find(e=>{var t,s;return"follow"===e.type&&(null===(s=e.details)||void 0===s?void 0:null===(t=s.handle)||void 0===t?void 0:t.includes("PulseInfra"))}))||void 0===g?void 0:g.id,ed=!!eo&&!!Q.find(e=>e.id===eo&&e.completed),ec=null===(f=el.find(e=>{var t,s;return"follow"===e.type&&(null===(s=e.details)||void 0===s?void 0:null===(t=s.handle)||void 0===t?void 0:t.includes("AlphabotApp"))}))||void 0===f?void 0:f.id,em=!!ec&&!!Q.find(e=>e.id===ec&&e.completed),ex=!0;return(0,eA.q)(()=>{(async()=>{await (0,eT.K)([eI.Z.src,eE.Z.src,eC.Z.src],{maxTrials:3})})()}),E||(ex=!1),G&&(ex=!1),ee&&!O&&(ex=!1),"farming"===Z||ee||(ex=!1),(0,a.jsx)(N.v,{title:C?void 0:S("form.farming.title.pro"),titleProps:{borderSize:C?"default":"large"},borderSize:C?"default":"large",type:"secondary",className:C?"py-[16px] px-[16px]":"w-full px-[32px]",bgColor:"var(--card)",children:(0,a.jsxs)(x.k,{className:"flex-col w-full h-full gap-2",children:[C&&(0,a.jsx)(x.k,{className:"w-full justify-between pb-4",children:(0,a.jsx)(y.b,{leadIcon:(0,a.jsx)(b.t,{className:"pixelated",width:28,height:28}),iconPosition:"center",textPosition:"center",className:(0,h.cn)((0,A.s)({size:"heading4",weight:"medium"})),children:S("form.farming.title.pro")})}),(0,a.jsx)(H,{claimExpiryTs:+Date.now(),wallet:E,stage:Z}),(0,a.jsx)($.m,{children:(0,a.jsx)(q.M,{children:(P?!O&&(!E||z)&&"finalized"!==Z:"farming"===Z&&"valid"!==F||!E)&&(0,a.jsx)(m.E.div,{...(0,L.p)(),children:(0,a.jsx)(I.P,{isConnected:!!E,stage:Z,inAllocationCommitmentPhase:ee,onConnectButtonClick:e=>{let t;if(!e)return;let s=X.memeStakingAuthStore.getJwtStatus();u.steakFarmingStore.requireJwtToViewFarmingInfo.value&&"valid"!==s&&(t="submitAllocation"),u.steakFarmingStore.signWalletFlow({triggersFrom:t})}})})})}),U&&(0,a.jsx)(x.k,{className:"mb-4",children:(0,a.jsx)(eV,{rows:[{isPassed:er,title:"Follow Boost.gg"},{isPassed:ed,title:"Follow Pulse"},{isPassed:em,title:"Follow Alphabot"}]})}),(es||ea)&&"valid"===F&&E&&(0,a.jsx)(x.k,{className:"pb-1 w-full",children:ei?(0,a.jsx)(N.v,{className:"w-full px-4 py-2",bgColor:"var(--background)",children:(0,a.jsxs)(x.k,{className:"gap-2 items-center",children:[(0,a.jsx)(M.Y,{height:20,width:20}),!!es&&(0,a.jsxs)(T.x,{size:"sm",children:["Complete X quests and earn steaks \uD83E\uDD69 with ",(0,a.jsxs)("span",{className:"text-sm font-bold",children:["@",es]})," (",(0,a.jsx)(eH,{}),")"]}),!es&&(0,a.jsxs)(T.x,{size:"sm",children:["Update your X account (",(0,a.jsx)(eH,{}),")"]})]})}):(0,a.jsx)(eM.r,{alertClassName:"py-[8px]",descClassName:"text-white-500",wrapperClassName:"w-full py-0 z-10",description:(0,a.jsxs)(T.x,{size:"sm",children:["Set your X account ",(0,a.jsxs)("span",{className:"text-sm font-bold",children:["@",es]})," (",(0,a.jsx)(eH,{}),") to public to protect your rewards and quest status."," ",(0,a.jsx)(ez.Y,{variant:"link",onClick:async()=>{try{if(J)return;K(!0);let e=await u.steakFarmingStore.refreshTwitterProfile();if(e.success){let{profileInfo:t}=e,s=!t.protected;u.steakFarmingStore.profileInfo.mutate(e=>({value:{...e.value,...e.value?{twitter:{...e.value.twitter,isPublic:s}}:{}}})),s||(0,ey.showToast)({title:S("toasts.checkXPublicityStatus.title"),content:S("toasts.checkXPublicityStatus.desc",{userXHandle:es}),duration:5e3})}}finally{K(!1)}},className:"text-primary p-0 px-1 h-auto",children:"Check Status"})]}),icon:(0,a.jsx)(x.k,{className:"relative top-[1px]",children:(0,a.jsx)(M.Y,{size:16})})})}),(0,a.jsx)(eP.F,{isLoading:G,isDisabled:!ex,hasConnectedX:V,requireSubmitWallet:!1,onClick:e=>{if(ex){if("valid"!==X.memeStakingAuthStore.getJwtStatus()){u.steakFarmingStore.signWalletFlow({questId:e});return}u.steakFarmingStore.executeQuest(e)}}}),(0,a.jsx)(T.x,{size:"sm",className:"w-full text-center mt-4 text-muted-foreground",children:"...and more"}),(0,a.jsx)(T.x,{size:"sm",className:"w-full text-center mt-6 text-muted-foreground",children:"BOTS AND SUSPICIOUS ACTIVITY WILL BE FILTERED WITHOUT PRIOR NOTICE"})]})})},eD=i.memo(e=>{let{isConnected:t,stage:s,showTopInfo:i}=e,{showStyle:l}=(0,f.C)();if(void 0!==s)return(0,a.jsxs)(x.k,{style:l,className:(0,h.cn)("flex-col max-w-screen gap-4","md:min-w-[688px] md:w-[688px] md:max-w-[688px]","w-[calc(var(--vw-full)_-_32px)] min-w-[calc(var(--vw-full)_-_32px)] max-w-[calc(var(--vw-full)_-_32px)]"),children:[(0,a.jsx)(m.E.div,{layout:"position",children:t&&i&&(0,a.jsx)(g.T,{})}),(0,a.jsxs)(m.E.div,{layout:"position",children:["farming"===s&&(0,a.jsx)(eU,{}),"finalizing"===s&&(0,a.jsx)(eN,{}),"finalized"===s&&(0,a.jsx)(Y,{})]})]})}),eY=i.memo(()=>{var e,t;let i=(0,l.useWalletStore)(e=>e.getAddressInUse()),m=null!==(t=null===(e=(0,u.useSteakFarmingStore)(e=>e.currentSeasonState).value)||void 0===e?void 0:e.stage)&&void 0!==t?t:"not-started",x=(0,n.useWeb3Store)(e=>e.chain),h=(0,d.$S)((0,c.$R)("ETHEREUM")).chain,g=(null==x?void 0:x.id)===h.id;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.C,{storeImporters:[()=>Promise.resolve().then(s.bind(s,74544)).then(e=>e.steakFarmAirdropStore_Boost)]}),(0,a.jsx)(r.q,{children:(0,a.jsx)(eD,{isConnected:void 0!==i,stage:m,showTopInfo:g})})]})});var eq=eY},98694:function(e,t,s){s.d(t,{B:function(){return m}});var a=s(27573),i=s(1203),l=s(45263),n=s(20416),r=s(67055),o=s(16682),d=s(51469),c=s(58079),u=s(82819);let m=e=>{let{symbol:t,tokenKey:s,summary:m,chainKey:x,tokenDecimals:h,drawResult:g,stakeUrl:f,earnUrl:p}=e,{title:v,content:k,showTokenButton:S}=m;return(0,a.jsxs)(n.k,{className:(0,r.cn)("w-full flex-col gap-2 items-start"),children:[v&&(0,a.jsx)(u.x,{size:"sm",weight:"bold",children:v}),(0,a.jsx)(u.x,{size:"sm",children:k}),S&&(0,a.jsxs)(n.k,{className:"items-start md:items-center flex-col md:flex-row md:gap-4",children:[g&&(0,a.jsx)(d.S,{variant:"link",size:"small",className:"text-primary p-0",onClick:g,children:"View Final Result"}),s&&t&&void 0!==h&&(0,a.jsxs)(d.S,{variant:"link",size:"small",className:"text-primary p-0",onClick:()=>
1{i.dialogStore.show(!0,c.q,{dialogId:"add-token-dialog",symbol:t,chainKey:x,tokenKey:s,tokenDecimals:h})},children:["Add $",t," to MetaMask"]}),(f||p)&&(0,a.jsx)(d.S,{variant:"link",size:"small",className:"text-primary p-0",onClick:()=>{(0,o.RB)(f||p||"")},trailIcon:(0,a.jsx)(l.o,{size:16}),children:f?(0,a.jsx)("span",{children:"Stake $".concat(t)}):(0,a.jsx)("span",{children:"Earn Rewards with $".concat(t)})})]})]})}},19666:function(e,t,s){s.d(t,{J:function(){return g}});var a=s(27573),i=s(27123),l=s(2167),n=s(39943),r=s(20416),o=s(67055),d=s(39969),c=s(51469),u=s(70047),m=s(77103),x=s(82819),h=s(18141);let g=e=>{let{season:t,status:s,refunded:g,TokenIcon:f,iconSize:p=18,airdropAmount:v,airdroppedAmount:k,tokenSymbol:S,tokenDecimals:j,nextAirdropDate:w,absoluteAirdropDate:b,onShare:N}=e,y=(0,l.useClientTranslations)(),T="eligible"===s;return(0,a.jsx)(u.v,{type:"outline",borderSize:"default",className:"w-full py-4 px-4",bgColor:"var(--card)",children:(0,a.jsx)(r.k,{className:"gap-4 justify-between w-full items-center md:flex-row flex-col",children:(0,a.jsxs)(r.k,{className:"w-full gap-4 flex-row items-center",children:[(0,a.jsx)(m.W,{variant:"ghost",size:"small",className:"grow",alignment:"left",header:(0,a.jsx)(x.x,{size:"sm",weight:"medium",className:"text-muted-foreground",children:T?y("dialogs.airdropResult.airdroppedRewards.title"):y("dialogs.airdropResult.airdroppedRewards.titleIneligible")}),icon:(0,a.jsx)(f,{width:p,height:p,className:"rounded-full overflow-hidden"}),amount:T?k:i.O$.from(0),amount2:T?v:void 0,amountDecimals:j,showWatermark:!1,enablePaddingX:!1,enablePaddingY:!1,balanceTextProps:{separator:"/",hideAmount2IfSame:!T},description:(()=>{if(T){if(g)return"Airdrop discontinued. Steaks refunded.";if(b)return y("dialogs.airdropResult.airdroppedRewards.nextAirdrop",{date:b});if(w)return y("dialogs.airdropResult.airdroppedRewards.nextAirdrop",{date:(0,d.B)(w)})}})(),tooltipRender:e=>(0,a.jsx)(x.x,{size:"sm",className:(0,o.cn)(h.m),children:y("common.units.custom",{amount:e,symbol:S})})}),T&&N&&(0,a.jsx)(c.S,{size:"small",variant:"secondary",state:"default",onClick:N,leadIcon:(0,a.jsx)(n.i,{size:16}),children:y("common.actions.share")})]})})})}},39943:function(e,t,s){s.d(t,{i:function(){return i}});var a=s(27573);let i=(0,s(7653).memo)(e=>{let{size:t,className:s,...i}=e;return t&&!i.width&&(i.width=t),t&&!i.height&&(i.height=t),(0,a.jsx)("span",{className:s,children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",focusable:!1,role:"img",...i,children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 3H15V5H14V6H12V7H10V8H8V9H3V15H8V16H10V17H12V18H14V19H15V21H21V15H15V17H14V16H12V15H10V14H9V10H10V9H12V8H14V7H15V9H21V3ZM19 5H17V7H19V5ZM7 11H5V13H7V11ZM17 17H19V19H17V17Z",fill:"currentColor",fillOpacity:1})})})});i.group="pixel"},84650:function(e,t,s){s.d(t,{C:function(){return n}});var a=s(27573),i=s(7653),l=s(64195);let n=e=>{let{storeImporters:t}=e,[s,n]=(0,i.useState)([]);return(0,l.q)(()=>{0!==t.length&&(async()=>{n(await Promise.all(t.map(e=>e())))})()}),(0,a.jsx)(a.Fragment,{children:s.map((e,t)=>(0,a.jsx)(r,{store:e},t))})},r=e=>{var t;return(null===(t=e.store)||void 0===t?void 0:t.useLoaders)?(0,a.jsx)(a.Fragment,{children:e.store.useLoaders()}):(0,a.jsx)(a.Fragment,{})}},46653:function(e,t,s){s.d(t,{q:function(){return o},U:function(){return r}});var a=s(27573),i=s(7653);class l extends i.Component{static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){var s,a;null===(s=(a=this.props).onError)||void 0===s||s.call(a,e,t)}render(){if(this.state.hasError){var e,t;return null===(e=(t=this.props).fallback)||void 0===e?void 0:e.call(t)}return this.props.children}constructor(...e){super(...e),this.state={hasError:!1}}}let n=[],r=e=>{n.push(e)},o=e=>{let{children:t}=e;return(0,a.jsx)(l,{fallback:()=>(0,a.jsx)(a.Fragment,{}),onError:(e,t)=>{console.error(e,t),n.forEach(s=>{try{s(e,t)}catch(e){}})},children:t})}}}]);
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.