(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8177],{62197:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/rewards",function(){return i(1761)}])},70855:function(e,n,i){"use strict";var t=i(85893),o=i(43120),r=i(62519),s=i(82703),c=i(74509),d=i(51192);let l=(0,d.ZP)(c.E.div).withConfig({componentId:"sc-d8f5bd38-0"})`
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  width: 100%;

  width: 542px;
  margin-bottom: 12px;

  @media ${o.U.mobileS} {
    width: calc(100vw - 32px);
  }
`,a=d.ZP.div.withConfig({componentId:"sc-d8f5bd38-1"})`
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  padding: 6px 12px;
  gap: 6px;
  background: #212738;
  cursor: pointer;
  &:hover {
    background: rgba(39, 44, 57, 0.85);
  }
  transition: background 0.2s ease-in-out;
`,f=d.ZP.div.withConfig({componentId:"sc-d8f5bd38-2"})`
  width: 8px;
  height: 8px;
  background: #1e873c;
  border-radius: 50%;
`,h=d.ZP.div.withConfig({componentId:"sc-d8f5bd38-3"})`
  font-size: 14px;
  line-height: 1.5;
`;n.Z=function(){return(0,t.jsx)(r.NL.Custom,{children:e=>{let{mounted:n,account:i,openAccountModal:o}=e;return(0,t.jsx)(s.M,{children:i&&n&&(0,t.jsx)(l,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{delay:.5},children:(0,t.jsxs)(a,{onClick:o,children:[(0,t.jsx)(f,{}),(0,t.jsxs)(h,{children:["Connected as ",i?i.ensName||`${i.address.slice(0,6)}...${i.address.slice(i.address.length-3,i.address.length)}`:null]})]})})})}})}},90374:function(e,n,i){"use strict";var t=i(85893),o=i(51192);let r=o.ZP.div.withConfig({componentId:"sc-547afdda-0"})``;n.Z=function(){return(0,t.jsx)(r,{})}},81594:function(e,n,i){"use strict";i.d(n,{P:function(){return c},Z:function(){return d}});var t=i(85893),o=i(43120),r=i(62519),s=i(51192);let c=s.ZP.div.withConfig({componentId:"sc-4fdd3633-0"})`
  width: 100%;
  height: 54px;
  display: flex;
  justify-content: center;
  align-items: center;

  @media ${o.U.mobileM} {
    text-align: center;
  }

  background: ${e=>e.background?e.background:e.disabled?"rgba(200,200,200,.6)":"#ffffff"};
  color: ${e=>e.color?e.color:e.disabled?"rgba(0,0,0,.5)":"#000000"};
  border-radius: 36px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 500;

  ${e=>!e.disabled&&`
  &:hover {
    background: #e5e5e5;
    transform: scale(0.995);
    cursor: pointer;
  }
  `}

  transition: all 0.225s ease-in-out;
`;var d=function(e){let{text:n,onClick:i,disabled:o,color:s,background:d,skipConnect:l}=e;return(0,t.jsx)(r.NL.Custom,{children:e=>{let{openConnectModal:r,account:a,mounted:f}=e;return f?a||l?(0,t.jsx)(c,{background:d,color:s,disabled:o,onClick:i,children:n}):(0,t.jsx)(c,{onClick:r,children:"Connect Wallet"}):(0,t.jsx)(c,{})}})}},84842:function(e,n,i){"use strict";i.d(n,{CB:function(){return d},ER:function(){return g},Fn:function(){return a},HY:function(){return m},JS:function(){return p},OZ:function(){return c},SI:function(){return f},Y2:function(){return x},eN:function(){return l},jp:function(){return u}});var t=i(85893),o=i(43120),r=i(74509),s=i(51192);let c=e=>{let{children:n}=e;return(0,t.jsx)(h,{initial:{opacity:0,y:3,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:3,scale:.95},transition:{duration:.225},children:n})},d=(0,s.ZP)(r.E.div).withConfig({componentId:"sc-3fbdcf21-0"})`
  position: relative;

  padding: 14px 24px;
  flex-grow: 1;

  flex: 1;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  transition: opacity 0.15s ease-in-out;

  @media ${o.U.mobileS} {
    padding: 14px 16px;
  }
`,l=s.ZP.div.withConfig({componentId:"sc-3fbdcf21-1"})`
  font-size: 35px;
  @media ${o.U.mobileS} {
    font-size: 30px;
  }
`,a=s.ZP.div.withConfig({componentId:"sc-3fbdcf21-2"})`
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;

  color: #ffffff;

  a {
    color: #00bfff;
    cursor: pointer;
    transition: color 0.125s ease-in-out;
  }

  a:hover {
    color: #00adbb;
  }

  @media ${o.U.mobileS} {
    font-size: 14px;
  }
`,f=s.ZP.div.withConfig({componentId:"sc-3fbdcf21-3"})`
  font-size: 24px;
  line-height: 1.5;
  font-weight: 400;
  margin-top: 10px;

  color: #ffffff;

  a {
    color: #00bfff;
    cursor: pointer;
    transition: color 0.125s ease-in-out;
  }

  a:hover {
    color: #00adbb;
  }

  @media ${o.U.mobileS} {
    font-size: 14px;
  }
`,h=(0,s.ZP)(r.E.div).withConfig({componentId:"sc-3fbdcf21-4"})`
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
`,u=s.ZP.div.withConfig({componentId:"sc-3fbdcf21-5"})`
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
`,x=s.ZP.input.withConfig({componentId:"sc-3fbdcf21-6"})`
  font-size: 48px;
  font-weight: 500;
  color: #ffffff;
  text-align: right;
  width: 100%;
  ${e=>e.disabled&&`
  opacity: .7;
`}
`,p=s.ZP.div.withConfig({componentId:"sc-3fbdcf21-7"})`
  font-size: 22px;
  line-height: 40px;
  font-weight: 500;
  width: 50%;
  color: #ffffff;
`,g=s.ZP.div.withConfig({componentId:"sc-3fbdcf21-8"})`
  font-size: 14px;
  color: #c9c9c9;

  ${e=>e.onClick&&`&:hover {
    cursor: pointer;
    color: #ffffff;
  }`}
  margin-bottom: 15px;
  transition: color 0.225s ease-in-out;
`,m=s.ZP.div.withConfig({componentId:"sc-3fbdcf21-9"})`
  font-size: 14px;
  color: #c9c9c9;
  margin-top: 20px;

  ${e=>e.onClick&&`&:hover {
    cursor: pointer;
    color: #ffffff;
  }`}

  transition: color 0.225s ease-in-out;
`},42522:function(e,n,i){"use strict";var t=i(85893);n.Z=function(e){let{fill:n="#A3A9C2"}=e;return(0,t.jsx)("svg",{style:{marginLeft:-6,marginRight:-6},width:"12",height:"9",viewBox:"0 0 12 9",fill:"none",children:(0,t.jsx)("path",{d:"M7.75054 8.83705C7.66731 8.93486 7.54602 8.99383 7.41628 8.99953C7.28653 9.00532 7.16023 8.95731 7.06838 8.86724C6.97662 8.77718 6.92755 8.65345 6.93346 8.52624C6.93936 8.39895 6.99951 8.28002 7.09927 8.19852L10.4221 4.93698H0.439188C0.27955 4.9286 0.135534 4.84032 0.0581257 4.70323C-0.0193752 4.56622 -0.0193752 4.39972 0.0581257 4.26264C0.135536 4.12554 0.279545 4.03726 0.439188 4.02898H10.4221L7.09416 0.771088C7.01038 0.685036 6.96368 0.570743 6.96368 0.45182C6.96368 0.332898 7.01038 0.218527 7.09416 0.132553C7.18047 0.047658 7.29759 0 7.41979 0C7.54199 0 7.6592 0.047658 7.74542 0.132553L11.8614 4.16809C11.9499 4.25165 12 4.36683 12 4.48727C12 4.60779 11.9499 4.72307 11.8614 4.80653L7.75054 8.83705Z",fill:n})})}},71414:function(e,n,i){"use strict";var t=i(85893);n.Z=function(e){let{height:n=102,width:i=102,fill:o="white"}=e;return(0,t.jsx)("svg",{width:i,height:n,viewBox:"0 0 102 102",fill:"none",children:(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.0969 49.3961C18.9239 49.6668 18.9883 50.0254 19.2447 50.2186L50.6311 73.8766C50.8496 74.0413 51.1504 74.0413 51.3689 73.8766L82.7553 50.2186C83.0117 50.0254 83.0761 49.6668 82.9031 49.3961L51.5167 0.283232C51.2754 -0.0944106 50.7246 -0.0944106 50.4833 0.283232L19.0969 49.3961ZM48.8527 11.899V66.6253C48.8527 66.8786 48.5641 67.0231 48.3619 66.8712L42.3493 62.3535C42.1949 62.2374 42.1039 62.0553 42.1039 61.8618V40.0417L35.1343 52.8429C34.9382 53.2031 34.4515 53.2733 34.1619 52.9832L30.447 49.2615V52.9223C30.447 53.1804 30.1487 53.3235 29.948 53.1618L26.3813 50.2868C26.2366 50.1701 26.1524 49.994 26.1524 49.8079V46.6777C26.1524 46.5588 26.1868 46.4425 26.2515 46.3428L29.7103 41.0118C29.9283 40.6757 30.4041 40.6353 30.6755 40.9299L33.8214 44.3443L37.5025 28.6707L48.2873 11.7338C48.4523 11.4747 48.8527 11.5918 48.8527 11.899ZM53.1473 66.6897V11.9112C53.1473 11.6029 53.5498 11.4866 53.7137 11.7475L64.0393 28.1855C64.211 28.4587 64.1423 28.8185 63.8822 29.009L59.8961 31.929V39.7344L67.1929 34.2875C67.4773 34.0752 67.8818 34.1481 68.0745 34.4465L70.7779 38.6321C70.9546 38.9058 70.8874 39.2701 70.6248 39.4623L59.8961 47.3159V54.3323L73.6321 44.2703C73.9182 44.0607 74.3215 44.1369 74.5118 44.4365L77.0775 48.4757C77.2492 48.746 77.1849 49.1029 76.9299 49.296L53.6391 66.9349C53.437 67.0879 53.1473 66.9435 53.1473 66.6897ZM20.0035 59.8409C19.7958 59.5554 20.154 59.2018 20.4358 59.4142L51 82.4525L81.5642 59.4142C81.846 59.2018 82.2043 59.5554 81.9965 59.8409L51.4957 101.747C51.2507 102.084 50.7493 102.084 50.5043 101.747L20.0035 59.8409Z",fill:o})})}},35854:function(e,n,i){"use strict";i.d(n,{RK:function(){return d},cD:function(){return c},dJ:function(){return s},rL:function(){return l},x7:function(){return r}});var t=i(43120),o=i(51192);let r=o.ZP.div.withConfig({componentId:"sc-11156ab2-0"})`
  background: #212738;
  width: 100%;
  height: 52px;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;

  @media ${t.U.mobileS} {
    padding: 0 16px;
  }
`,s=o.ZP.div.withConfig({componentId:"sc-11156ab2-1"})`
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
`,c=o.ZP.div.withConfig({componentId:"sc-11156ab2-2"})`
  font-size: 14px;
  font-weight: 500;
  color: ${e=>e.selected?"#FFFFFF":"#A3A9C2"};

  // if onClick is defined, then it is clickable, and we define the hover state
  ${e=>e.onClick&&!e.disabled&&"&:hover { cursor: pointer; color: #ffffff; }"}
  transition: color 0.2s ease-in-out;
`,d=o.ZP.div.withConfig({componentId:"sc-11156ab2-3"})`
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;

  @media ${t.U.mobileS} {
    gap: 12px;
  }
`,l=(0,o.ZP)(c).withConfig({componentId:"sc-11156ab2-4"})`
  text-align: right;
`},1761:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return B}});var t=i(85893),o=i(70855),r=i(90374),s=i(16553),c=i(62331),d=i(67294),l=i(51192),a=i(69077),f=i(81594),h=i(84842),u=function(e){let{height:n=88,width:i=54,fill:o="white"}=e;return(0,t.jsxs)("svg",{width:i,height:n,viewBox:"0 0 54 88",fill:"none",children:[(0,t.jsx)("path",{d:"M26.9927 60.7835L53.9854 44.8194L26.9927 0L0 44.8194L26.9927 60.7835Z",fill:o}),(0,t.jsx)("path",{d:"M26.9927 88L54 49.9408L26.9927 65.8903L0 49.9408L26.9927 88Z",fill:o})]})},x=i(71414),p=i(82106);function g(){return(0,t.jsx)("svg",{width:"12",height:"6.75",viewBox:"0 0 445 267",fill:"none",children:(0,t.jsx)("path",{d:"M444.427 42.8L401.864 0.982666L224.157 182.423L42.7173 4.716L0.905273 48.0227L225.652 266.796L444.427 42.8Z",fill:"white"})})}function m(e){let{text:n,onClick:i,logo:o}=e;return(0,t.jsxs)(b,{style:{border:"none"},onClick:i,children:[(0,t.jsx)(v,{src:o}),n]})}let C=l.ZP.div.withConfig({componentId:"sc-4c08d554-0"})`
  border-radius: 6px;
  // gray border
  border: 1px solid #c9c9c9;

  font-size: 14px;
  // color: #c9c9c9;
  color: white;
  padding: 8px 16px;

  &:hover {
    cursor: pointer;
    border: 1px solid #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
  }

  transition: all 0.2s ease-in-out;

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
`,w=(0,l.ZP)(C).withConfig({componentId:"sc-4c08d554-1"})`
  margin-top: 16px;
  margin-bottom: 16px;
`,b=(0,l.ZP)(C).withConfig({componentId:"sc-4c08d554-2"})`
  border: none;
`,j=l.ZP.div.withConfig({componentId:"sc-4c08d554-3"})`
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: rgba(15, 16, 22, 0.9);

  // add background blur
  backdrop-filter: blur(10px);
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #c9c9c9;
`,v=l.ZP.img.withConfig({componentId:"sc-4c08d554-4"})`
  height: 24px;
  width: 24px;
`;var y=function(e){let{options:n,selectedIndex:i,setSelectedIndex:o}=e,r=n[i],[s,c]=(0,d.useState)(!1);return(0,t.jsx)(p.Popover,{isOpen:s,positions:["bottom","right"],padding:12,onClickOutside:()=>c(!1),containerStyle:{zIndex:"1000"},content:(0,t.jsx)(j,{children:n.map((e,n)=>(0,t.jsx)(m,{text:e.name,logo:e.logo,onClick:()=>{o(n),c(!1)}},n))}),children:(0,t.jsxs)(w,{onClick:()=>c(!s),children:[r.name,(0,t.jsx)(g,{})]})})};let Z=[{name:"Ethereum Mainnet",logo:"/svg/chains/ETH.svg"},{name:"Optimism",logo:"/svg/chains/OP.svg"},{name:"Arbitrum",logo:"/svg/chains/ARB.svg"}];function L(){let[e,n]=(0,d.useState)("Loading"),i=(0,t.jsxs)(h.Fn,{children:["Your transaction to claim rewards is currently being processed in the mempool. Click"," ",(0,t.jsx)("a",{href:"https://etherscan.io/",children:"here"})," to see it on Etherscan."]});return"Error"===e&&(i=(0,t.jsx)(h.Fn,{children:"There was an error processing your transaction. Please try again."})),"Ready"===e&&(i=(0,t.jsx)(h.Fn,{children:"Your transaction to claim rewards has been processed successfully. You should see the rewarded mevETH appear in your wallet in the next few seconds."})),(0,d.useEffect)(()=>{setTimeout(()=>{n("Ready")},1250)},[]),(0,t.jsxs)(h.CB,{children:[(0,t.jsx)("div",{style:{height:80},children:i}),(0,t.jsx)(h.OZ,{children:(0,t.jsx)(E,{style:"Loading"===e?{}:{animation:"none"},children:(0,t.jsx)(x.Z,{height:48,width:48})})})]})}function k(e){let{setMode:n}=e,{address:i}=(0,a.mA)(),{selected:o,selectedIndex:r,setSelectedIndex:s}=function(){let[e,n]=(0,d.useState)(0),i=Z[e];return{selected:i,selectedIndex:e,setSelectedIndex:n}}(),[c,l]=(0,d.useState)(""),[x,p]=(0,d.useState)(!1),{loading:g,amountOfMevETHRewards:m}=function(){let[e,n]=(0,d.useState)(!0),[i,t]=(0,d.useState)(0);return(0,d.useEffect)(()=>{setTimeout(()=>{n(!1),t(100*Math.random())},1250)},[]),{loading:e,amountOfMevETHRewards:i}}();return(0,t.jsxs)(h.CB,{children:[(0,t.jsx)(h.Fn,{children:"Claim your accrued rewards from holding mevETH."}),(0,t.jsxs)(h.OZ,{children:[(0,t.jsx)(h.ER,{children:"Claim"}),(0,t.jsxs)(h.jp,{children:[(0,t.jsx)(I,{children:"0.0"}),(0,t.jsx)(h.JS,{style:{width:"auto"},children:(0,t.jsx)(u,{height:32,width:32})})]}),(0,t.jsx)(h.ER,{children:"of ETH rewards on"}),(0,t.jsx)(y,{options:Z,selectedIndex:r,setSelectedIndex:s}),(0,t.jsxs)(h.ER,{onClick:()=>p(!x),children:["(",x?"Hide ":"Show ","advanced options)"]}),x&&(0,t.jsx)(S,{children:(0,t.jsx)($,{placeholder:"Enter address to send ETH Rewards",value:c,onChange:e=>l(e.target.value)})})]}),(0,t.jsx)(f.P,{disabled:!0,onClick:()=>{},children:"Coming Soon"})]})}function P(e){return"Confirm"===e.mode?(0,t.jsx)(L,{}):(0,t.jsx)(k,{...e})}let I=l.ZP.div.withConfig({componentId:"sc-176027de-0"})`
  font-size: 48px;
  font-weight: 500;
  color: #ffffff;
  text-align: right;
`,E=l.ZP.div.withConfig({componentId:"sc-176027de-1"})`
  display: flex;
  justify-content: center;
  align-items: center;

  animation: spin 2s linear infinite;
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
`,S=l.ZP.div.withConfig({componentId:"sc-176027de-2"})`
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
`,$=l.ZP.input.withConfig({componentId:"sc-176027de-3"})`
  margin-bottom: 16px;
  min-width: 280px;
  text-align: center;
  color: #ffffff;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #ffffff;

  padding: 0 16px;
  ::placeholder {
    color: rgba(255, 255, 255, 0.85);
  }
`;var M=i(35854),z=i(42522),T=function(e){let{mode:n}=e;return(0,t.jsxs)(M.x7,{children:[(0,t.jsx)(M.dJ,{children:(0,t.jsx)(M.cD,{selected:!0,children:"Claim mevETH Rewards"})}),(0,t.jsxs)(M.RK,{children:[(0,t.jsx)(M.rL,{disabled:!0,selected:"Claim"===n,children:"1. Claim"}),(0,t.jsx)(z.Z,{}),(0,t.jsx)(M.rL,{disabled:!0,selected:"Confirm"===n,children:"2. Confirm"})]})]})},_=i(57419),F=i(13589),R=i(82703),H=i(41664),A=i.n(H);/**
 * @author Manifold Finance, Inc.
 * @date July, 12, 2023
 * @license GPL-3.0
 */function N(){return(0,t.jsxs)(s.gM,{children:[(0,t.jsx)(A(),{href:"/",children:(0,t.jsx)(s.yA,{src:"/svg/MEV Text White.svg",alt:"Manifold LSD"})}),(0,t.jsx)(c.Z,{href:"/stake",style:{marginTop:3},children:"Start staking ETH"})]})}function O(){let[e,n]=(0,d.useState)("Claim");return(0,t.jsx)(F.S,{children:(0,t.jsxs)(s.A_,{initial:{transform:"scale(0.9)"},animate:{transform:"scale(1)"},exit:{transform:"scale(0.9)"},layout:!0,children:[(0,t.jsx)(o.Z,{}),(0,t.jsxs)(s.kS,{style:{height:464},children:[(0,t.jsx)(T,{mode:e}),(0,t.jsx)(R.M,{children:(0,t.jsx)(P,{mode:e,setMode:n})})]})]})})}function B(){return(0,t.jsxs)(_.Z,{hideFooter:!0,children:[(0,t.jsx)(N,{}),(0,t.jsx)(O,{}),(0,t.jsx)(r.Z,{})]})}}},function(e){e.O(0,[5090,5675,1068,1438,9774,2888,179],function(){return e(e.s=62197)}),_N_E=e.O()}]);
//# sourceMappingURL=rewards-32d227039ba542a9.js.map