text: (this["webpackJsonppancake-frontend"]=this["webpackJsonppancake-frontend"]||[]).push([[37],{1181:function(n,e,t){"use strict";t.r(e),t.d(e,"default",(function(){return En}));var i,r,c,a,o,d,b,s,l,j,p,m,u,x,g,h,O,f,v,k,w,y,F,Q,E,C,G,S,z,D,A,q,L,N,R,W,I,$,B,M,P=t(29),H=t(0),J=t(11),T=t(5),U=t(24),Y=t(169),K=t(885),V=t(21),Z=t(18),X=t(876),_=t(879),nn=t(877),en=t(880),tn=t(125),rn=t(878),cn=t(2),an=J.e.div(i||(i=Object(P.a)(["\n  align-self: stretch;\n  background: ",";\n  flex: none;\n  \n  text-align: center;\n  width: 120px;\n  height: 200px;\n"])),(function(n){return function(n){return n.isDark?"linear-gradient(139.73deg, #142339 0%, #24243D 47.4%, #37273F 100%)":"linear-gradient(139.73deg, #E6FDFF 0%, #EFF4F5 46.87%, #F3EFFF 100%)"}(n.theme)})),on=J.e.div(r||(r=Object(P.a)(["\n  align-items: start;\n  display: flex;\n  flex: 1;\n  flex-direction: column;\n  padding: 24px;\n\n  "," {\n    align-items: center;\n    flex-direction: row;\n    font-size: 40px;\n  }\n"])),(function(n){return n.theme.mediaQueries.md})),dn=J.e.div(c||(c=Object(P.a)(["\n  flex: 1;\n"]))),bn=J.e.img(a||(a=Object(P.a)(["\n  border-radius: 20%;\n  \n"]))),sn=J.e.img(o||(o=Object(P.a)(["\n  \n  border-radius: 15px;\n  height: 460px;\n  width: 700px;\n"]))),ln=J.e.img(d||(d=Object(P.a)(["\n  \n  border-radius: 15px;\n  height: 100px;\n  width: 450px;\n"]))),jn=(Object(J.e)(T.S).attrs({as:"h3"})(b||(b=Object(P.a)(["\n  font-size: 24px;\n\n  "," {\n    font-size: 40px;\n  }\n"])),(function(n){return n.theme.mediaQueries.md})),J.e.div(s||(s=Object(P.a)(["\n  flex: none;\n  margin-right: 8px;\n\n  "," {\n    height: 164px;\n    width: 164px;\n  }\n\n  "," {\n    display: none;\n  }\n"])),bn,(function(n){return n.theme.mediaQueries.md})),J.e.div(l||(l=Object(P.a)(["\n  flex: none;\n  margin-right: 8px;\n\n  "," {\n    height: 300px;\n    width: 300px;\n  }\n\n  "," {\n    display: none;\n  }\n"])),sn,(function(n){return n.theme.mediaQueries.md}))),pn=J.e.div(j||(j=Object(P.a)(["\n  flex: none;\n  margin-right: 8px;\n\n  "," {\n    height: 80px;\n    width: 280px;\n  }\n\n  "," {\n    display: none;\n  }\n"])),ln,(function(n){return n.theme.mediaQueries.md})),mn=J.e.div(p||(p=Object(P.a)(["\n  display: none;\n\n  "," {\n    display: block;\n    \n\n    "," {\n      height: 200px;\n      width: 200px;\n    }\n  }\n"])),(function(n){return n.theme.mediaQueries.md}),bn),un=J.e.div(m||(m=Object(P.a)(["\n  display: none;\n\n  "," {\n    display: block;\n    margin-left: 24px;\n\n    "," {\n      height: 300px;\n      width: 300px;\n    }\n  }\n"])),(function(n){return n.theme.mediaQueries.md}),sn),xn=Object(J.e)(T.u)(u||(u=Object(P.a)(["\n  display: flex;\n  margin-bottom: 16px;\n  \n \n  & > div {\n    grid-column: span 6;\n    width: 40%;\n  }\n  \n"]))),gn=(Object(J.e)(T.u)(x||(x=Object(P.a)(["\n  background-image: url('/images/');\n  background-repeat: no-repeat;\n  background-position: top right;\n  min-height: 376px;\n"]))),J.e.img(g||(g=Object(P.a)(["\n  background-image: url('/images/armylevel1b.gif');\n  background-repeat: no-repeat;\n  background-size: contain;\n  \n  min-height: 376px;\n  "]))),J.e.div(h||(h=Object(P.a)(["\n  margin-bottom: 16px;\n"]))),J.e.img(O||(O=Object(P.a)(["\n  margin-bottom: 16px;\n"]))),J.e.div(f||(f=Object(P.a)(["\n  color: ",";\n  font-size: 14px;\n"])),(function(n){return n.theme.colors.textSubtle})),J.e.div(v||(v=Object(P.a)(["\n  display: flex;\n  margin-top: 24px;\n  button {\n    flex: 1 0 50%;\n  }\n"])))),hn=function(){var n=Object(Z.c)().account,e=Object(H.useState)(!1),t=Object(V.a)(e,2),i=(t[0],t[1],Object(U.b)().t),r=(Object(nn.j)(),Object(T.ic)(Object(cn.jsx)(rn.a,{}))),c=Object(V.a)(r,1)[0],a=Object(_.b)(),o=(a.claimAmount,a.setLastUpdated,Object(X.Db)().onMultiClaim,Object(X.n)(),Object(nn.Lb)()),d=Object(nn.Mb)(),b=Object(nn.Nb)(),s=Object(nn.Ob)(),l=i("This button will change if you are 1/10 random winner of the 300EGGC or 1/500 random winner of the accumulated bag. "),j=Object(T.kc)(l,{placement:"right-end"}),p=j.targetRef,m=j.tooltip,u=j.tooltipVisible,x=Object(X.ab)(),g=Object(en.g)(c),h=(g.handleApprove,g.requestedApproval,Object(cn.jsx)(sn,{src:"/images/chickenwar/genesis.gif",alt:"team avatar"})),O=Object(cn.jsx)(ln,{src:"/images/chickenwar/text.gif",alt:"team avatar"});return Object(cn.jsxs)(xn,{children:[Object(cn.jsx)(mn,{children:h}),Object(cn.jsxs)(on,{children:[Object(cn.jsxs)(dn,{children:[Object(cn.jsxs)(T.R,{alignItems:"center",mb:"16px",children:[Object(cn.jsx)(jn,{children:h}),Object(cn.jsx)(un,{children:O})]}),Object(cn.jsx)(pn,{children:O}),Object(cn.jsx)(T.Ob,{as:"p",color:"textSubtle",pr:"24px",mb:"16px",children:"Here it all began, through this door all the EvoChicken reached the Blockchain but now it is just a Dungeon full of monsters, take your army and try to discover clues from the beginning and rescue some trapped EGGC."}),Object(cn.jsx)(K.n,{}),Object(cn.jsx)(T.Ob,{as:"p",color:"textSubtle",pr:"34px",mb:"6px",lineHeight:"50px",children:"1 in 10 could win $ 900 EGGC."}),u&&m,n?Object(cn.jsx)(gn,{ref:p,children:o===b?Object(cn.jsx)(T.q,{variant:"secondary",width:"100%",onClick:x,children:i("You Win 900 $EGGC")}):d===s?Object(cn.jsx)(T.q,{variant:"secondary",width:"100%",onClick:x,children:i("You Win ALL $EGGC !!!")}):Object(cn.jsx)(T.q,{variant:"secondary",width:"100%",children:i("No WIN")})}):Object(cn.jsx)(gn,{children:Object(cn.jsx)(tn.a,{width:"100%"})})]}),Object(cn.jsxs)(an,{children:[Object(cn.jsx)(T.Ob,{as:"p",color:"textSubtle",pr:"4px",mb:"16px",children:"Total Won:"}),Object(cn.jsx)(K.o,{})]})]})]})},On=(J.e.div(k||(k=Object(P.a)(["\n  align-self: stretch;\n  background: ",";\n  flex: none;\n  padding: 10px 0;\n  text-align: center;\n  width: 70px;\n  \n"])),(function(n){return function(n){return n.isDark?"linear-gradient(139.73deg, #142339 0%, #24243D 47.4%, #37273F 100%)":"linear-gradient(139.73deg, #E6FDFF 0%, #EFF4F5 46.87%, #F3EFFF 100%)"}(n.theme)})),J.e.div(w||(w=Object(P.a)(["\n  align-items: start;\n  display: flex;\n  flex: 1;\n  flex-direction: column;\n  padding: 24px;\n\n  "," {\n    align-items: center;\n    flex-direction: row;\n    font-size: 40px;\n  }\n"])),(function(n){return n.theme.mediaQueries.md}))),fn=J.e.div(y||(y=Object(P.a)(["\n  flex: 1;\n"]))),vn=J.e.img(F||(F=Object(P.a)(["\n  border-radius: 20%;\n  \n"]))),kn=J.e.img(Q||(Q=Object(P.a)(["\n  border-radius: 25%;\n  height: 300px;\n  width: 300px;\n"]))),wn=Object(J.e)(T.S).attrs({as:"h3"})(E||(E=Object(P.a)(["\n  font-size: 24px;\n\n  "," {\n    font-size: 40px;\n  }\n"])),(function(n){return n.theme.mediaQueries.md})),yn=(J.e.div(C||(C=Object(P.a)(["\n  flex: none;\n  margin-right: 8px;\n\n  "," {\n    height: 164px;\n    width: 164px;\n  }\n\n  "," {\n    display: none;\n  }\n"])),vn,(function(n){return n.theme.mediaQueries.md})),J.e.div(G||(G=Object(P.a)(["\n  flex: none;\n  margin-right: 8px;\n\n  "," {\n    height: 300px;\n    width: 300px;\n  }\n\n  "," {\n    display: none;\n  }\n"])),kn,(function(n){return n.theme.mediaQueries.md})),J.e.div(S||(S=Object(P.a)(["\n  display: none;\n\n  "," {\n    display: block;\n    margin-left: 24px;\n\n    "," {\n      height: 300px;\n      width: 300px;\n    }\n  }\n"])),(function(n){return n.theme.mediaQueries.md}),vn),J.e.div(z||(z=Object(P.a)(["\n  display: none;\n\n  "," {\n    display: block;\n    margin-left: 24px;\n\n    "," {\n      height: 100px;\n      width: 100px;\n    }\n  }\n"])),(function(n){return n.theme.mediaQueries.md}),kn),Object(J.e)(T.u)(D||(D=Object(P.a)(["\n  display: flex;\n  margin-bottom: 16px;\n  \n \n  & > div {\n    grid-column: span 6;\n    width: 40%;\n  }\n  \n"])))),Fn=(Object(J.e)(T.u)(A||(A=Object(P.a)(["\n  background-image: url('/images/');\n  background-repeat: no-repeat;\n  background-position: top right;\n  min-height: 376px;\n"]))),J.e.img(q||(q=Object(P.a)(["\n  background-image: url('/images/armylevel1b.gif');\n  background-repeat: no-repeat;\n  background-size: contain;\n  \n  min-height: 376px;\n  "]))),J.e.div(L||(L=Object(P.a)(["\n  margin-bottom: 16px;\n"]))),J.e.img(N||(N=Object(P.a)(["\n  margin-bottom: 16px;\n"]))),J.e.div(R||(R=Object(P.a)(["\n  color: ",";\n  font-size: 14px;\n"])),(function(n){return n.theme.colors.textSubtle})),J.e.div(W||(W=Object(P.a)(["\n  display: flex;\n  margin-top: 24px;\n  button {\n    flex: 1 0 50%;\n  }\n"])))),Qn=function(){var n=Object(Z.c)().account,e=Object(H.useState)(!1),t=Object(V.a)(e,2),i=(t[0],t[1],Object(U.b)().t),r=Object(nn.yb)(),c=Object(nn.pe)(),a=Object(nn.Ed)(),o=Object(nn.fc)(),d=Object(nn.Rd)(),b=Object(nn.m)(),s=Object(nn.Ab)(),l=Object(nn.Kb)(),j=Object(nn.Bb)(),p=Object(T.ic)(Object(cn.jsx)(rn.a,{})),m=Object(V.a)(p,1)[0],u=Object(_.b)(),x=(u.claimAmount,u.setLastUpdated,Object(X.Db)().onMultiClaim,Object(X.Z)()),g=Object(X.gc)(),h=Object(en.A)(m),O=h.handleApprove,f=h.requestedApproval;return Object(cn.jsx)(yn,{children:Object(cn.jsx)(On,{children:Object(cn.jsxs)(fn,{children:[Object(cn.jsxs)(T.Ob,{color:"red",fontSize:"15px",children:["Army Power required: 150AP    ",Object(cn.jsx)("img",{src:"/images/chickenwar/ButtonGenesis.png",alt:""})]}),Object(cn.jsx)(T.R,{alignItems:"center",mb:"10px",children:Object(cn.jsx)(wn,{children:Object(cn.jsx)(K.c,{})})}),Object(cn.jsx)(T.Ob,{as:"p",color:"textSubtle",pr:"24px",mb:"10px",children:"Possible Rewards of exploration:"}),Object(cn.jsx)(K.d,{}),Object(cn.jsx)(K.e,{}),Object(cn.jsx)(K.f,{}),Object(cn.jsx)(K.g,{}),Object(cn.jsx)(T.Ob,{as:"p",color:"gray",pr:"24px",mb:"10px",fontSize:"15px",children:"Dungeon Duration: 4hrs."}),n?Object(cn.jsx)(Fn,{children:r.toNumber()?!1===a&&!1===c&&!1===o&&!1===d&&!1===b&&!1===s?Object(cn.jsx)(T.q,{width:"100%",onClick:g,children:i("Start the Dungeon GENESIS. 50$EGGC")}):j>=l||!0===c||!0===a||!0===o||!0===d||!0===b?Object(cn.jsx)(T.q,{id:"dashboard-buy-tickets",variant:"secondary",children:i("Wait for the end of Exploration...")}):Object(cn.jsx)(T.q,{onClick:x,children:i("Claim your rewards.")}):Object(cn.jsx)(T.q,{width:"100%",disabled:f,onClick:O,children:i("Enable EGGC for Dungeon.")})}):Object(cn.jsx)(Fn,{children:Object(cn.jsx)(tn.a,{width:"100%"})})]})})})},En=(J.e.div(I||(I=Object(P.a)(["\n  align-items: center;\n  background-image: url('/images/machinesanders.gif');\n  background-repeat: no-repeat;\n  background-size: contain;\n  background-position: top center;\n  display: flex;\n  justify-content: center;\n  flex-direction: column;\n  margin: auto;\n  margin-bottom: 10px;\n  padding-top: 116px;\n  text-align: center;\n\n  "," {\n    background-image: url('/images/machinesanders.gif');\n    background-position: Left;\n    background-size: contain;\n    height: 380px;\n    padding-top: 0;\n    \n  }\n"])),(function(n){return n.theme.mediaQueries.lg})),Object(J.e)(T.i)($||($=Object(P.a)(["\n  align-items: stretch;\n  justify-content: stretch;\n  margin-bottom: 64px;\n  grid-gap: 64px;\n\n  & > div {\n    grid-column: span 6;\n    width: 105%;\n  }\n\n  "," {\n    & > div {\n      grid-column: span 8;\n    }\n  }\n\n  "," {\n    margin-bottom: 32px;\n    grid-gap: 32px;\n\n    & > div {\n      grid-column: span 6;\n    }\n  }\n"])),(function(n){return n.theme.mediaQueries.sm}),(function(n){return n.theme.mediaQueries.lg})),Object(J.e)(T.i)(B||(B=Object(P.a)(["\n  align-items: stretch;\n  justify-content: stretch;\n  margin-bottom: 64px;\n  grid-gap: 64px;\n\n  & > div {\n    grid-column: span 10;\n    width: 120%;\n  }\n\n  "," {\n    & > div {\n      grid-column: span 10;\n    }\n  }\n\n  "," {\n    margin-bottom: 32px;\n    grid-gap: 32px;\n\n    & > div {\n      grid-column: span 10;\n    }\n  }\n"])),(function(n){return n.theme.mediaQueries.sm}),(function(n){return n.theme.mediaQueries.lg})),Object(J.e)(T.i)(M||(M=Object(P.a)(["\n  align-items: start;\n  margin-bottom: 34px;\n  grid-gap: 24px;\n\n  & > div {\n    grid-column: span 6;\n  }\n\n  "," {\n    & > div {\n      grid-column: span 8;\n    }\n  }\n\n  "," {\n    margin-bottom: 32px;\n    grid-gap: 32px;\n\n    & > div {\n      grid-column: span 4;\n    }\n  }\n"])),(function(n){return n.theme.mediaQueries.sm}),(function(n){return n.theme.mediaQueries.lg})),function(){Object(U.b)().t;return Object(cn.jsxs)(Y.a,{children:[Object(cn.jsx)(K.p,{}),Object(cn.jsx)(hn,{}),Object(cn.jsx)(Qn,{})]})})}}]);
  //# sourceMappingURL=37.ccbd6f38.chunk.js.map