(this["webpackJsonppancake-frontend"]=this["webpackJsonppancake-frontend"]||[]).push([[35],{1167:function(e,t,c){"use strict";c.r(t),c.d(t,"default",(function(){return nt}));var n,i,r,j,b,a,s,l,o,O,x,d,h,u,g,p,m,f,v,y,S,k,C,w,z,A,L,q,G,R,F,E,H,M,Y,T,I,N,B,W,D=c(28),P=c(0),V=c(11),U=c(5),J=c(24),K=c(169),Q=c(3),X=c.n(Q),Z=c(10),$=c(21),_=c(17),ee=c(18),te=c(879),ce=c(874),ne=c(877),ie=c(875),re=c(878),je=c(876),be=c(880),ae=c(125),se=c(884),le=c(2),oe=function(){Object(J.b)().t;return Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(se.o,{}),Object(le.jsx)(U.Ob,{as:"p",color:"green",pr:"24px",mb:"10px",fontSize:"25px",children:"Contain:"}),Object(le.jsx)(se.J,{}),Object(le.jsx)(se.K,{}),Object(le.jsx)("br",{})]})},Oe=Object(V.e)(U.u)(n||(n=Object(D.a)(["\n  background-image: url('/images/');\n  background-repeat: no-repeat;\n  background-position: top right;\n  min-height: 376px;\n"]))),xe=V.e.div(i||(i=Object(D.a)(["\n  margin-bottom: 16px;\n"]))),de=V.e.img(r||(r=Object(D.a)(["\n  margin-bottom: 16px;\n"]))),he=V.e.div(j||(j=Object(D.a)(["\n  color: ",";\n  font-size: 14px;\n"])),(function(e){return e.theme.colors.textSubtle})),ue=V.e.div(b||(b=Object(D.a)(["\n  display: flex;\n  margin-top: 24px;\n  button {\n    flex: 1 0 50%;\n  }\n"]))),ge=Object(V.e)(U.bb)(a||(a=Object(D.a)(["\n  width: 100%;\n\n  &:hover {\n    text-decoration: underline;\n    color: black;\n\n  }\n"]))),pe=function(){var e=Object(_.c)().account,t=Object(P.useState)(!1),c=Object($.a)(t,2),n=(c[0],c[1]),i=Object(J.b)().t,r=(Object(ie.x)(),Object(ie.J)(),Object(U.ic)(Object(le.jsx)(je.a,{}))),j=Object($.a)(r,1)[0],b=Object(ne.b)(),a=(b.claimAmount,b.setLastUpdated),s=Object(ce.Bb)().onMultiClaim,l=Object(ce.hc)(),o=(Object(ce.y)(),Object(ie.Rd)()),O=Object(ie.Td)(),x=Object(te.b)(Object(ee.k)()),d=Object(re.j)(j),h=(d.handleApprove,d.requestedApproval,Object(re.r)(j)),u=(h.handleApproveEGGC,h.requestedApprovalEGGC,Object(U.kc)("",{placement:"bottom-end"})),g=(u.targetRef,u.tooltip,u.tooltipVisible,Object(P.useCallback)(Object(Z.a)(X.a.mark((function e(){return X.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n(!0),e.next=4,s();case 4:e.sent&&(n(!1),a()),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])}))),[s,n,a]),Object(U.ic)(Object(le.jsx)(be.a,{max:x})));Object($.a)(g,1)[0];return Object(le.jsx)(Oe,{children:Object(le.jsxs)(U.v,{children:[Object(le.jsx)(U.S,{scale:"xl",mb:"24px",children:i(" Weekly Supply")}),Object(le.jsx)(de,{src:"/images/chickenwar/supply.png",alt:"evobox",width:350,height:250}),Object(le.jsx)(xe,{children:Object(le.jsx)(he,{children:i("")})}),Object(le.jsxs)(xe,{children:[Object(le.jsx)(ge,{external:!0,href:"https://eggchainproject-sol.medium.com/weekly-supply-f09e5af0d4c8",children:Object(le.jsxs)(he,{children:[i("Your Personal HashPower"),":  ",Object(le.jsx)(U.T,{ml:"4px",width:"20px",height:"20px",color:"textSubtle"}),"  "]})}),Object(le.jsx)(oe,{})]}),e?Object(le.jsx)(ue,{children:O>=o?Object(le.jsx)(U.q,{width:"100%",children:i("Waiting the Refill.")}):Object(le.jsx)(U.q,{id:"dashboard-buy-tickets",variant:"secondary",onClick:l,children:i("Claim Your Army Supply.")})}):Object(le.jsx)(ue,{children:Object(le.jsx)(ae.a,{width:"100%"})}),Object(le.jsx)(ge,{external:!0,href:"https://app.liquidifty.io/@EggChain",children:Object(le.jsxs)(he,{children:[i("Get your army fast and easy here \ud83d\udc14"),"  "]})})]})})},me=function(){Object(J.b)().t;return Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(se.p,{}),Object(le.jsx)(U.Ob,{as:"p",color:"green",pr:"24px",mb:"10px",fontSize:"25px",children:"Contain:"}),Object(le.jsx)(se.q,{}),Object(le.jsx)("br",{})]})},fe=Object(V.e)(U.u)(s||(s=Object(D.a)(["\n  background-image: url('/images/');\n  background-repeat: no-repeat;\n  background-position: top right;\n  min-height: 376px;\n"]))),ve=V.e.div(l||(l=Object(D.a)(["\n  margin-bottom: 16px;\n"]))),ye=V.e.img(o||(o=Object(D.a)(["\n  margin-bottom: 16px;\n"]))),Se=V.e.div(O||(O=Object(D.a)(["\n  color: ",";\n  font-size: 14px;\n"])),(function(e){return e.theme.colors.textSubtle})),ke=V.e.div(x||(x=Object(D.a)(["\n  display: flex;\n  margin-top: 24px;\n  button {\n    flex: 1 0 50%;\n  }\n"]))),Ce=Object(V.e)(U.bb)(d||(d=Object(D.a)(["\n  width: 100%;\n\n  &:hover {\n    text-decoration: underline;\n    color: black;\n\n  }\n"]))),we=function(){var e=Object(_.c)().account,t=Object(P.useState)(!1),c=Object($.a)(t,2),n=(c[0],c[1],Object(J.b)().t),i=Object(P.useState)(0),r=Object($.a)(i,2),j=r[0],b=r[1],a=Object(ce.qb)(j),s=Object(ie.Rd)(),l=Object(te.b)(Object(ee.k)()),o=function(){var t=Object(ie.Xb)(j),c=Object(ie.Eb)(),i=Object(ie.rc)(j);var r=t-c,b=function(e,t){return e*t}(r,3);return e?e===i?Object(le.jsxs)(le.Fragment,{children:[Object(le.jsxs)(U.Ob,{color:"textSubtle",fontSize:"17px",lineHeight:"30px",children:["  Next Reward of this NFT In: ",r,"  Blocks."]}),Object(le.jsxs)(U.Ob,{color:"gray",fontSize:"13px",lineHeight:"20px",children:["  ~Time: ",b," Seg."]}),e?Object(le.jsx)(ke,{children:t>=s?Object(le.jsx)(U.q,{width:"100%",children:n("Waiting the Refill.")}):Object(le.jsxs)(U.q,{id:"dashboard-buy-tickets",variant:"secondary",onClick:a,children:["Claim Reward of ID ",j]})}):Object(le.jsx)(ke,{children:Object(le.jsx)(ae.a,{width:"100%"})})]}):Object(le.jsx)(U.Ob,{color:"gray",fontSize:"13px",lineHeight:"20px",children:"  You are not the Owner of this ID."}):Object(le.jsx)(U.Ob,{color:"textDisabled",style:{lineHeight:"14px"},children:n("Locked")})};var O=Object(U.ic)(Object(le.jsx)(be.a,{max:l}));Object($.a)(O,1)[0];return Object(le.jsx)(fe,{children:Object(le.jsxs)(U.v,{children:[Object(le.jsx)(U.S,{scale:"xl",mb:"24px",children:n(" General Iron")}),Object(le.jsx)(ye,{src:"/images/chickenwar/ironcard.gif",alt:"evobox",width:150,height:200}),Object(le.jsx)(ve,{children:Object(le.jsx)(Se,{children:n("")})}),Object(le.jsxs)(ve,{children:[Object(le.jsxs)(Se,{children:[n("Your Holding"),":"]}),Object(le.jsx)(me,{}),Object(le.jsx)(Se,{children:n("Put the ID of your NFT:")}),Object(le.jsx)("input",{type:"number",onChange:function(e){b(e.target.value)}}),Object(le.jsx)(o,{}),Object(le.jsx)(Ce,{external:!0,href:"https://eggchainproject-sol.medium.com/find-the-id-number-of-your-nft-in-the-bscscan-explorer-90fc9b046d2",children:Object(le.jsxs)(Se,{children:[n("How can I find the ID of my NFT"),":  ",Object(le.jsx)(U.T,{ml:"4px",width:"20px",height:"20px",color:"textSubtle"}),"  "]})})]})]})})},ze=c(906),Ae=function(){Object(J.b)().t;return Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(se.H,{}),Object(le.jsx)(U.Ob,{as:"p",color:"green",fontSize:"25px",children:"Contain:"}),Object(le.jsx)("br",{})]})},Le=Object(V.e)(U.u)(h||(h=Object(D.a)(["\n  background-image: url('/images/');\n  background-repeat: no-repeat;\n  background-position: top right;\n  min-height: 376px;\n"]))),qe=(V.e.div(u||(u=Object(D.a)(["\n  margin-bottom: 16px;\n"]))),V.e.img(g||(g=Object(D.a)(["\n  margin-bottom: 16px;\n"])))),Ge=(V.e.div(p||(p=Object(D.a)(["\n  color: ",";\n  font-size: 14px;\n"])),(function(e){return e.theme.colors.textSubtle})),V.e.div(m||(m=Object(D.a)(["\n  display: flex;\n  margin-top: 24px;\n  button {\n    flex: 1 0 50%;\n  }\n"])))),Re=function(){var e=Object(_.c)().account,t=Object(P.useState)(!1),c=Object($.a)(t,2),n=(c[0],c[1],Object(J.b)().t),i=(Object(ie.x)(),Object(ie.J)(),Object(U.ic)(Object(le.jsx)(je.a,{}))),r=Object($.a)(i,1)[0],j=Object(ne.b)(),b=(j.claimAmount,j.setLastUpdated,Object(ce.Bb)().onMultiClaim,Object(ce.Pb)()),a=Object(ce.Qb)(),s=Object(ce.Rb)(),l=(Object(ce.y)(),Object(ie.Rd)()),o=Object(ie.ld)(),O=Object(te.b)(Object(ee.k)()),x=Object(re.j)(r),d=(x.handleApprove,x.requestedApproval,Object(re.r)(r)),h=(d.handleApproveEGGC,d.requestedApprovalEGGC,function(){var t=!1,c=!1,i=!1,r=Object(ie.pc)(),j=Object(ie.nb)(),O=Object(ie.rb)();function x(e,t){return e*t}var d=x(r,1),h=x(j,1),u=x(O,1);return d>19&&h>4&&u>1&&(t=!0),d>39&&h>9&&u>1&&(c=!0),d>49&&h>14&&u>1&&(i=!0),e?!0===t&&!1===c&&!1===i?Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(U.Ob,{color:"textSubtle",fontSize:"15px",children:" Nivel 1 of the Real Army"}),Object(le.jsxs)(U.Ob,{color:"textSubtle",fontSize:"15px",children:[" ",Object(le.jsx)("img",{src:"/images/eggc.png",alt:""})," EGGC: ",Object(le.jsx)(ze.a,{value:150,decimals:4,fontSize:"15px",lineHeight:"10px"})]}),Object(le.jsx)(se.I,{}),e?Object(le.jsx)(Ge,{children:o>=l?Object(le.jsx)(U.q,{width:"100%",children:n("Waiting the Refill of Lvl 1.")}):Object(le.jsx)(U.q,{id:"dashboard-buy-tickets",variant:"secondary",onClick:b,children:n("Claim Your Real Army Supply Lvl 1.")})}):Object(le.jsx)(Ge,{children:Object(le.jsx)(ae.a,{width:"100%"})})]}):!0===t&&!0===c&&!1===i?Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(U.Ob,{color:"textSubtle",fontSize:"15px",children:"Nivel 2 of the Real Army"}),Object(le.jsxs)(U.Ob,{color:"textSubtle",fontSize:"15px",children:[" ",Object(le.jsx)("img",{src:"/images/eggc.png",alt:""})," EGGC: ",Object(le.jsx)(ze.a,{value:230,decimals:4,fontSize:"15px",lineHeight:"10px",tag:"#f3670e"})]}),Object(le.jsx)(se.I,{}),e?Object(le.jsx)(Ge,{children:o>=l?Object(le.jsx)(U.q,{width:"100%",children:n("Waiting the Refill of Lvl 2.")}):Object(le.jsx)(U.q,{id:"dashboard-buy-tickets",variant:"secondary",onClick:a,children:n("Claim Your Real Army Supply Lvl 2.")})}):Object(le.jsx)(Ge,{children:Object(le.jsx)(ae.a,{width:"100%"})})]}):!0===t&&!0===c&&!0===i?Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(U.Ob,{color:"textSubtle",fontSize:"15px",children:"Nivel 3 of the Real Army"}),Object(le.jsxs)(U.Ob,{color:"textSubtle",fontSize:"15px",children:[" ",Object(le.jsx)("img",{src:"/images/eggc.png",alt:""})," EGGC: ",Object(le.jsx)(ze.a,{value:320,decimals:4,fontSize:"15px",lineHeight:"10px",tag:"#f3670e"})]}),Object(le.jsx)(se.I,{}),e?Object(le.jsx)(Ge,{children:o>=l?Object(le.jsx)(U.q,{width:"100%",children:n("Waiting the Refill of Lvl 3.")}):Object(le.jsx)(U.q,{id:"dashboard-buy-tickets",variant:"secondary",onClick:s,children:n("Claim Your Real Army Supply Lvl 3.")})}):Object(le.jsx)(Ge,{children:Object(le.jsx)(ae.a,{width:"100%"})})]}):Object(le.jsx)(le.Fragment,{children:Object(le.jsx)(U.Ob,{color:"gray",fontSize:"15px",children:"  You dont have enought NFT. "})}):Object(le.jsx)(U.Ob,{color:"textDisabled",style:{lineHeight:"5px"},children:n("Locked")})}),u=Object(U.ic)(Object(le.jsx)(be.a,{max:O}));Object($.a)(u,1)[0];return Object(le.jsx)(Le,{children:Object(le.jsxs)(U.v,{children:[Object(le.jsx)(U.S,{scale:"xl",mb:"24px",children:n(" The Real Chicken Army")}),Object(le.jsx)(qe,{src:"/images/chickenwar/realarmy.gif",alt:"evobox","border-radius":"10px",width:350,height:250}),Object(le.jsx)(Ae,{}),Object(le.jsx)(h,{})]})})},Fe=function(){Object(J.b)().t;return Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(se.h,{}),Object(le.jsx)(U.Ob,{as:"p",color:"green",pr:"24px",mb:"10px",fontSize:"25px",children:"Contain:"}),Object(le.jsx)(se.i,{}),Object(le.jsx)("br",{})]})},Ee=Object(V.e)(U.u)(f||(f=Object(D.a)(["\n  background-image: url('/images/');\n  background-repeat: no-repeat;\n  background-position: top right;\n  min-height: 376px;\n"]))),He=V.e.div(v||(v=Object(D.a)(["\n  margin-bottom: 16px;\n"]))),Me=V.e.img(y||(y=Object(D.a)(["\n  margin-bottom: 16px;\n"]))),Ye=V.e.div(S||(S=Object(D.a)(["\n  color: ",";\n  font-size: 14px;\n"])),(function(e){return e.theme.colors.textSubtle})),Te=V.e.div(k||(k=Object(D.a)(["\n  display: flex;\n  margin-top: 24px;\n  button {\n    flex: 1 0 50%;\n  }\n"]))),Ie=function(){var e=Object(_.c)().account,t=Object(P.useState)(!1),c=Object($.a)(t,2),n=(c[0],c[1],Object(J.b)().t),i=Object(P.useState)(0),r=Object($.a)(i,2),j=r[0],b=r[1],a=Object(ce.N)(j),s=Object(ie.Rd)(),l=Object(te.b)(Object(ee.k)()),o=function(){var t=Object(ie.G)(j),c=Object(ie.Eb)(),i=Object(ie.qc)(j);var r=t-c,b=function(e,t){return e*t}(r,3);return e?e===i?Object(le.jsxs)(le.Fragment,{children:[Object(le.jsxs)(U.Ob,{color:"textSubtle",fontSize:"17px",lineHeight:"30px",children:["  Next Reward of this NFT In: ",r,"  Blocks."]}),Object(le.jsxs)(U.Ob,{color:"gray",fontSize:"13px",lineHeight:"20px",children:["  ~Time: ",b," Seg."]}),e?Object(le.jsx)(Te,{children:t>=s?Object(le.jsx)(U.q,{width:"100%",children:n("Waiting the Refill.")}):Object(le.jsxs)(U.q,{id:"dashboard-buy-tickets",variant:"secondary",onClick:a,children:["Claim Reward of ID ",j]})}):Object(le.jsx)(Te,{children:Object(le.jsx)(ae.a,{width:"100%"})})]}):Object(le.jsx)(U.Ob,{color:"gray",fontSize:"13px",lineHeight:"20px",children:"  You are not the Owner of this ID."}):Object(le.jsx)(U.Ob,{color:"textDisabled",style:{lineHeight:"14px"},children:n("Locked")})};var O=Object(U.ic)(Object(le.jsx)(be.a,{max:l}));Object($.a)(O,1)[0];return Object(le.jsx)(Ee,{children:Object(le.jsxs)(U.v,{children:[Object(le.jsx)(U.S,{scale:"xl",mb:"24px",children:n(" General Big Crest")}),Object(le.jsx)(Me,{src:"/images/chickenwar/cardcrest.png",alt:"evobox",width:150,height:200}),Object(le.jsx)(He,{children:Object(le.jsx)(Ye,{children:n("")})}),Object(le.jsxs)(He,{children:[Object(le.jsxs)(Ye,{children:[n("Your Holding"),":"]}),Object(le.jsx)(Fe,{}),Object(le.jsx)(Ye,{children:n("Put the ID of your NFT:")}),Object(le.jsx)("input",{type:"number",onChange:function(e){b(e.target.value)}}),Object(le.jsx)(o,{})]})]})})},Ne=function(){Object(J.b)().t;return Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(se.a,{}),Object(le.jsx)(U.Ob,{as:"p",color:"green",fontSize:"25px",children:"Contain:"}),Object(le.jsx)("br",{})]})},Be=Object(V.e)(U.u)(C||(C=Object(D.a)(["\n  background-image: url('/images/');\n  background-repeat: no-repeat;\n  background-position: top right;\n  min-height: 376px;\n"]))),We=(V.e.div(w||(w=Object(D.a)(["\n  margin-bottom: 16px;\n"]))),V.e.img(z||(z=Object(D.a)(["\n  margin-bottom: 16px;\n"])))),De=(V.e.div(A||(A=Object(D.a)(["\n  color: ",";\n  font-size: 14px;\n"])),(function(e){return e.theme.colors.textSubtle})),V.e.div(L||(L=Object(D.a)(["\n  display: flex;\n  margin-top: 24px;\n  button {\n    flex: 1 0 50%;\n  }\n"])))),Pe=function(){var e=Object(_.c)().account,t=Object(P.useState)(!1),c=Object($.a)(t,2),n=(c[0],c[1],Object(J.b)().t),i=(Object(ie.x)(),Object(ie.J)(),Object(U.ic)(Object(le.jsx)(je.a,{}))),r=Object($.a)(i,1)[0],j=Object(ne.b)(),b=(j.claimAmount,j.setLastUpdated,Object(ce.Bb)().onMultiClaim,Object(ce.K)()),a=Object(ce.L)(),s=Object(ce.M)(),l=Object(ie.Rd)(),o=Object(ie.b)(),O=Object(te.b)(Object(ee.k)()),x=Object(re.j)(r),d=(x.handleApprove,x.requestedApproval,Object(re.r)(r)),h=(d.handleApproveEGGC,d.requestedApprovalEGGC,function(){var t=!1,c=!1,i=!1,r=Object(ie.X)(),j=Object(ie.hb)();function O(e,t){return e*t}var x=O(r,1),d=O(j,1);return x>24&&d>4&&(t=!0),x>49&&d>9&&(c=!0),x>99&&d>19&&(i=!0),e?!0===t&&!1===c&&!1===i?Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(U.Ob,{color:"textSubtle",fontSize:"15px",children:" Nivel 1 of the Big Crest Army"}),Object(le.jsxs)(U.Ob,{color:"textSubtle",fontSize:"15px",children:[" ",Object(le.jsx)("img",{src:"/images/eggc.png",alt:""})," EGGC: ",Object(le.jsx)(ze.a,{value:120,decimals:4,fontSize:"15px",lineHeight:"10px"})]}),Object(le.jsx)(se.b,{}),e?Object(le.jsx)(De,{children:o>=l?Object(le.jsx)(U.q,{width:"100%",children:n("Waiting the Refill of Lvl 1.")}):Object(le.jsx)(U.q,{id:"dashboard-buy-tickets",variant:"secondary",onClick:b,children:n("Claim Your Big Crest Army Lvl 1.")})}):Object(le.jsx)(De,{children:Object(le.jsx)(ae.a,{width:"100%"})})]}):!0===t&&!0===c&&!1===i?Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(U.Ob,{color:"textSubtle",fontSize:"15px",children:"Nivel 2 of the Big Crest Army"}),Object(le.jsxs)(U.Ob,{color:"textSubtle",fontSize:"15px",children:[" ",Object(le.jsx)("img",{src:"/images/eggc.png",alt:""})," EGGC: ",Object(le.jsx)(ze.a,{value:200,decimals:4,fontSize:"15px",lineHeight:"10px",tag:"#f3670e"})]}),Object(le.jsx)(se.b,{}),e?Object(le.jsx)(De,{children:o>=l?Object(le.jsx)(U.q,{width:"100%",children:n("Waiting the Refill of Lvl 2.")}):Object(le.jsx)(U.q,{id:"dashboard-buy-tickets",variant:"secondary",onClick:a,children:n("Claim Your Big Crest Army Lvl 2.")})}):Object(le.jsx)(De,{children:Object(le.jsx)(ae.a,{width:"100%"})})]}):!0===t&&!0===c&&!0===i?Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(U.Ob,{color:"textSubtle",fontSize:"15px",children:"Nivel 3 of the Big Crest Army"}),Object(le.jsxs)(U.Ob,{color:"textSubtle",fontSize:"15px",children:[" ",Object(le.jsx)("img",{src:"/images/eggc.png",alt:""})," EGGC: ",Object(le.jsx)(ze.a,{value:450,decimals:4,fontSize:"15px",lineHeight:"10px",tag:"#f3670e"})]}),Object(le.jsx)(se.b,{}),e?Object(le.jsx)(De,{children:o>=l?Object(le.jsx)(U.q,{width:"100%",children:n("Waiting the Refill of Lvl 3.")}):Object(le.jsx)(U.q,{id:"dashboard-buy-tickets",variant:"secondary",onClick:s,children:n("Claim Your Big Crest Army Lvl 3.")})}):Object(le.jsx)(De,{children:Object(le.jsx)(ae.a,{width:"100%"})})]}):Object(le.jsx)(le.Fragment,{children:Object(le.jsx)(U.Ob,{color:"gray",fontSize:"15px",children:"  You dont have enought NFT. "})}):Object(le.jsx)(U.Ob,{color:"textDisabled",style:{lineHeight:"5px"},children:n("Locked")})}),u=Object(U.ic)(Object(le.jsx)(be.a,{max:O}));Object($.a)(u,1)[0];return Object(le.jsx)(Be,{children:Object(le.jsxs)(U.v,{children:[Object(le.jsx)(U.S,{scale:"xl",mb:"24px",children:n(" The Big Crest Army")}),Object(le.jsx)(We,{src:"/images/chickenwar/crestarmy.gif",alt:"evobox","border-radius":"10px",width:350,height:250}),Object(le.jsx)(Ne,{}),Object(le.jsx)(h,{})]})})},Ve=function(){Object(J.b)().t;return Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(se.r,{}),Object(le.jsx)(U.Ob,{as:"p",color:"green",fontSize:"25px",children:"Contain:"}),Object(le.jsx)("br",{})]})},Ue=Object(V.e)(U.u)(q||(q=Object(D.a)(["\n  background-image: url('/images/');\n  background-repeat: no-repeat;\n  background-position: top right;\n  min-height: 376px;\n"]))),Je=(V.e.div(G||(G=Object(D.a)(["\n  margin-bottom: 16px;\n"]))),V.e.img(R||(R=Object(D.a)(["\n  margin-bottom: 16px;\n"])))),Ke=(V.e.div(F||(F=Object(D.a)(["\n  color: ",";\n  font-size: 14px;\n"])),(function(e){return e.theme.colors.textSubtle})),V.e.div(E||(E=Object(D.a)(["\n  display: flex;\n  margin-top: 24px;\n  button {\n    flex: 1 0 50%;\n  }\n"])))),Qe=function(){var e=Object(_.c)().account,t=Object(P.useState)(!1),c=Object($.a)(t,2),n=(c[0],c[1],Object(J.b)().t),i=Object(U.ic)(Object(le.jsx)(je.a,{})),r=(Object($.a)(i,1)[0],Object(ne.b)()),j=(r.claimAmount,r.setLastUpdated,Object(ce.Bb)().onMultiClaim,Object(ce.sb)()),b=Object(ce.tb)(),a=Object(ce.ub)(),s=Object(ie.Rd)(),l=Object(ie.Yb)(),o=Object(te.b)(Object(ee.k)()),O=function(){var t=!1,c=!1,i=!1,r=Object(ie.nb)();var o=r*1;return o>24&&(t=!0),o>49&&(c=!0),o>99&&(i=!0),e?!0===t&&!1===c&&!1===i?Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(U.Ob,{color:"textSubtle",fontSize:"15px",children:" LVL 1 of the Magic Army"}),Object(le.jsxs)(U.Ob,{color:"textSubtle",fontSize:"15px",children:[" ",Object(le.jsx)("img",{src:"/images/eggc.png",alt:""})," EGGC: ",Object(le.jsx)(ze.a,{value:200,decimals:4,fontSize:"15px",lineHeight:"10px"})]}),Object(le.jsx)(se.s,{}),e?Object(le.jsx)(Ke,{children:l>=s?Object(le.jsx)(U.q,{width:"100%",children:n("Waiting the Refill of Lvl 1.")}):Object(le.jsx)(U.q,{id:"dashboard-buy-tickets",variant:"secondary",onClick:j,children:n("Claim Your Magic Army Lvl 1.")})}):Object(le.jsx)(Ke,{children:Object(le.jsx)(ae.a,{width:"100%"})})]}):!0===t&&!0===c&&!1===i?Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(U.Ob,{color:"textSubtle",fontSize:"15px",children:"LVL 2 of the Magic Army"}),Object(le.jsxs)(U.Ob,{color:"textSubtle",fontSize:"15px",children:[" ",Object(le.jsx)("img",{src:"/images/eggc.png",alt:""})," EGGC: ",Object(le.jsx)(ze.a,{value:300,decimals:4,fontSize:"15px",lineHeight:"10px",tag:"#f3670e"})]}),Object(le.jsx)(se.s,{}),e?Object(le.jsx)(Ke,{children:l>=s?Object(le.jsx)(U.q,{width:"100%",children:n("Waiting the Refill of Lvl 2.")}):Object(le.jsx)(U.q,{id:"dashboard-buy-tickets",variant:"secondary",onClick:b,children:n("Claim Your Magic Army Lvl 2.")})}):Object(le.jsx)(Ke,{children:Object(le.jsx)(ae.a,{width:"100%"})})]}):!0===t&&!0===c&&!0===i?Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(U.Ob,{color:"textSubtle",fontSize:"15px",children:"LVL 3 of the Magic Army"}),Object(le.jsxs)(U.Ob,{color:"textSubtle",fontSize:"15px",children:[" ",Object(le.jsx)("img",{src:"/images/eggc.png",alt:""})," EGGC: ",Object(le.jsx)(ze.a,{value:600,decimals:4,fontSize:"15px",lineHeight:"10px",tag:"#f3670e"})]}),Object(le.jsx)(se.s,{}),e?Object(le.jsx)(Ke,{children:l>=s?Object(le.jsx)(U.q,{width:"100%",children:n("Waiting the Refill of Lvl 3.")}):Object(le.jsx)(U.q,{id:"dashboard-buy-tickets",variant:"secondary",onClick:a,children:n("Claim Your Magic Army Lvl 3.")})}):Object(le.jsx)(Ke,{children:Object(le.jsx)(ae.a,{width:"100%"})})]}):Object(le.jsx)(le.Fragment,{children:Object(le.jsx)(U.Ob,{color:"gray",fontSize:"15px",children:"  You dont have enought NFT. "})}):Object(le.jsx)(U.Ob,{color:"textDisabled",style:{lineHeight:"5px"},children:n("Locked")})},x=Object(U.ic)(Object(le.jsx)(be.a,{max:o}));Object($.a)(x,1)[0];return Object(le.jsx)(Ue,{children:Object(le.jsxs)(U.v,{children:[Object(le.jsx)(U.S,{scale:"xl",mb:"24px",children:n(" The Magic Army")}),Object(le.jsx)(Je,{src:"/images/chickenwar/magicarmy.gif",alt:"evobox","border-radius":"10px",width:350,height:250}),Object(le.jsx)(Ve,{}),Object(le.jsx)(O,{})]})})},Xe=function(){Object(J.b)().t;return Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(se.j,{}),Object(le.jsx)(U.Ob,{as:"p",color:"green",fontSize:"25px",children:"Contain:"}),Object(le.jsx)("br",{})]})},Ze=Object(V.e)(U.u)(H||(H=Object(D.a)(["\n  background-image: url('/images/');\n  background-repeat: no-repeat;\n  background-position: top right;\n  min-height: 376px;\n"]))),$e=(V.e.div(M||(M=Object(D.a)(["\n  margin-bottom: 16px;\n"]))),V.e.img(Y||(Y=Object(D.a)(["\n  margin-bottom: 16px;\n"])))),_e=(V.e.div(T||(T=Object(D.a)(["\n  color: ",";\n  font-size: 14px;\n"])),(function(e){return e.theme.colors.textSubtle})),V.e.div(I||(I=Object(D.a)(["\n  display: flex;\n  margin-top: 24px;\n  button {\n    flex: 1 0 50%;\n  }\n"])))),et=function(){var e=Object(_.c)().account,t=Object(P.useState)(!1),c=Object($.a)(t,2),n=(c[0],c[1],Object(J.b)().t),i=Object(U.ic)(Object(le.jsx)(je.a,{})),r=(Object($.a)(i,1)[0],Object(ne.b)()),j=(r.claimAmount,r.setLastUpdated,Object(ce.Bb)().onMultiClaim,Object(ce.T)()),b=Object(ce.U)(),a=Object(ce.V)(),s=Object(ie.Rd)(),l=Object(ie.T)(),o=Object(te.b)(Object(ee.k)()),O=function(){var t=!1,c=!1,i=!1,r=Object(ie.hb)();var o=r*1;return o>24&&(t=!0),o>49&&(c=!0),o>99&&(i=!0),e?!0===t&&!1===c&&!1===i?Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(U.Ob,{color:"textSubtle",fontSize:"15px",children:" LVL 1 of the Elemental Army"}),Object(le.jsxs)(U.Ob,{color:"textSubtle",fontSize:"15px",children:[" ",Object(le.jsx)("img",{src:"/images/eggc.png",alt:""})," EGGC: ",Object(le.jsx)(ze.a,{value:200,decimals:4,fontSize:"15px",lineHeight:"10px"})]}),Object(le.jsx)(se.k,{}),e?Object(le.jsx)(_e,{children:l>=s?Object(le.jsx)(U.q,{width:"100%",children:n("Waiting the Refill of Lvl 1.")}):Object(le.jsx)(U.q,{id:"dashboard-buy-tickets",variant:"secondary",onClick:j,children:n("Claim Your Elemental Army Lvl 1.")})}):Object(le.jsx)(_e,{children:Object(le.jsx)(ae.a,{width:"100%"})})]}):!0===t&&!0===c&&!1===i?Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(U.Ob,{color:"textSubtle",fontSize:"15px",children:"LVL 2 of the Elemental Army"}),Object(le.jsxs)(U.Ob,{color:"textSubtle",fontSize:"15px",children:[" ",Object(le.jsx)("img",{src:"/images/eggc.png",alt:""})," EGGC: ",Object(le.jsx)(ze.a,{value:300,decimals:4,fontSize:"15px",lineHeight:"10px",tag:"#f3670e"})]}),Object(le.jsx)(se.k,{}),e?Object(le.jsx)(_e,{children:l>=s?Object(le.jsx)(U.q,{width:"100%",children:n("Waiting the Refill of Lvl 2.")}):Object(le.jsx)(U.q,{id:"dashboard-buy-tickets",variant:"secondary",onClick:b,children:n("Claim Your Elemental Army Lvl 2.")})}):Object(le.jsx)(_e,{children:Object(le.jsx)(ae.a,{width:"100%"})})]}):!0===t&&!0===c&&!0===i?Object(le.jsxs)(le.Fragment,{children:[Object(le.jsx)(U.Ob,{color:"textSubtle",fontSize:"15px",children:"LVL 3 of the Elemental Army"}),Object(le.jsxs)(U.Ob,{color:"textSubtle",fontSize:"15px",children:[" ",Object(le.jsx)("img",{src:"/images/eggc.png",alt:""})," EGGC: ",Object(le.jsx)(ze.a,{value:600,decimals:4,fontSize:"15px",lineHeight:"10px",tag:"#f3670e"})]}),Object(le.jsx)(se.k,{}),e?Object(le.jsx)(_e,{children:l>=s?Object(le.jsx)(U.q,{width:"100%",children:n("Waiting the Refill of Lvl 3.")}):Object(le.jsx)(U.q,{id:"dashboard-buy-tickets",variant:"secondary",onClick:a,children:n("Claim Your Elemental Army Lvl 3.")})}):Object(le.jsx)(_e,{children:Object(le.jsx)(ae.a,{width:"100%"})})]}):Object(le.jsx)(le.Fragment,{children:Object(le.jsx)(U.Ob,{color:"gray",fontSize:"15px",children:"  You dont have enought NFT. "})}):Object(le.jsx)(U.Ob,{color:"textDisabled",style:{lineHeight:"5px"},children:n("Locked")})},x=Object(U.ic)(Object(le.jsx)(be.a,{max:o}));Object($.a)(x,1)[0];return Object(le.jsx)(Ze,{children:Object(le.jsxs)(U.v,{children:[Object(le.jsx)(U.S,{scale:"xl",mb:"24px",children:n(" The Elemental Army")}),Object(le.jsx)($e,{src:"/images/chickenwar/elementalarmy.gif",alt:"evobox","border-radius":"10px",width:350,height:250}),Object(le.jsx)(Xe,{}),Object(le.jsx)(O,{})]})})},tt=V.e.div(N||(N=Object(D.a)(["\n  align-items: center;\n  background-image: url('/images/chickenwar/airdrop.png');\n  background-repeat: no-repeat;\n  background-position: top center;\n  display: flex;\n  justify-content: center;\n  flex-direction: column;\n  margin: auto;\n  margin-bottom: 32px;\n  padding-top: 116px;\n  height: 550px;\n  width: 600px;\n  text-align: center;\n\n  "," {\n    background-image: url('/images/chickenwar/airdrop.png');\n    background-position: top center;\n    background-size: contain;\n    width: 1200px;\n    height: 420px;\n    padding-top: 0;\n  }\n"])),(function(e){return e.theme.mediaQueries.lg})),ct=Object(V.e)(U.i)(B||(B=Object(D.a)(["\n  align-items: stretch;\n  justify-content: stretch;\n  margin-bottom: 24px;\n  grid-gap: 24px;\n\n  & > div {\n    grid-column: span 4;\n    width: 100%;\n  }\n\n  "," {\n    & > div {\n      grid-column: span 4;\n    }\n  }\n\n  "," {\n    margin-bottom: 32px;\n    grid-gap: 32px;\n\n    & > div {\n      grid-column: span 3;\n    }\n  }\n"])),(function(e){return e.theme.mediaQueries.sm}),(function(e){return e.theme.mediaQueries.lg})),nt=(Object(V.e)(U.i)(W||(W=Object(D.a)(["\n  align-items: start;\n  margin-bottom: 24px;\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(e){return e.theme.mediaQueries.sm}),(function(e){return e.theme.mediaQueries.lg})),function(){var e=Object(J.b)().t;return Object(le.jsxs)(K.a,{children:[Object(le.jsxs)(tt,{children:[Object(le.jsx)(U.S,{as:"h1",scale:"xl",mb:"24px",color:"secondary",children:e("")}),Object(le.jsx)(U.Ob,{children:e("")})]}),Object(le.jsx)("div",{children:Object(le.jsxs)(ct,{children:[Object(le.jsx)(pe,{}),Object(le.jsx)(Re,{}),Object(le.jsx)(Pe,{}),Object(le.jsx)(Qe,{}),Object(le.jsx)(et,{}),Object(le.jsx)(we,{}),Object(le.jsx)(Ie,{})]})})]})})},880:function(e,t,c){"use strict";var n,i,r,j,b,a,s,l=c(28),o=c(3),O=c.n(o),x=c(10),d=c(21),h=c(0),u=c(11),g=c(5),p=c(33),m=c(24),f=c(2),v=u.e.div(n||(n=Object(l.a)(["\n  width: ","px;\n"])),(function(e){return e.theme.spacing[3]})),y=u.e.div(i||(i=Object(l.a)(["\n  align-items: center;\n  display: flex;\n"]))),S=u.e.div(r||(r=Object(l.a)(["\n  align-items: center;\n  color: ",";\n  display: flex;\n  font-size: 14px;\n  font-weight: 700;\n  height: 44px;\n  justify-content: flex-end;\n"])),(function(e){return e.theme.colors.primary})),k=u.e.span(j||(j=Object(l.a)(["\n  color: ",";\n  font-weight: 700;\n"])),(function(e){return e.theme.colors.primary})),C=function(e){var t=e.max,c=e.symbol,n=e.availableSymbol,i=e.onChange,r=e.onSelectMax,j=e.value,b=Object(m.b)().t;return Object(f.jsxs)(f.Fragment,{children:[Object(f.jsxs)(g.R,{alignItems:"center",children:[Object(f.jsx)(g.Y,{type:"number",inputMode:"numeric",min:"0",onChange:i,placeholder:"0",value:j}),Object(f.jsxs)(y,{children:[Object(f.jsx)(v,{}),Object(f.jsx)(k,{children:c}),Object(f.jsx)(v,{}),Object(f.jsx)(g.q,{scale:"sm",onClick:r,children:b("Max")})]})]}),Object(f.jsx)(S,{children:b("%num% %symbol% Available",{num:t.toLocaleString(),symbol:n})})]})},w=c(887),z=c(874),A=c(50),L=(t.a=function(e){var t,c=e.max,n=e.onDismiss,i=Object(h.useState)("1"),r=Object(d.a)(i,2),j=r[0],b=r[1],a=Object(h.useState)(!1),s=Object(d.a)(a,2),l=s[0],o=s[1],u=Object(h.useState)(!1),v=Object(d.a)(u,2)[1],y=Object(m.b)().t,S=Object(h.useMemo)((function(){return Object(p.c)(c)}),[c]),k=Object(h.useMemo)((function(){return parseInt(Object(p.e)(c.div(A.i)),10)}),[c]),R=Object(z.Ab)().onMultiBuy,F=Object(z.xb)(),E=Object(h.useCallback)(Object(x.a)(O.a.mark((function e(){var t,c;return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,v(!0),t=parseInt(j),c=Array.apply(null,{length:t}).map((function(){return[Math.floor(Math.random()*F)+1,Math.floor(Math.random()*F)+1,Math.floor(Math.random()*F)+1,Math.floor(Math.random()*F)+1]})),e.next=6,R(A.i.toString(),c);case 6:e.sent&&v(!1),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])}))),[R,v,F,j]),H=Object(h.useCallback)((function(){Number(k)>A.h?b(A.h.toString()):b(k.toString())}),[k]);return Object(f.jsxs)(g.nb,{title:y("Enter amount of tickets to buy"),onDismiss:n,children:[Object(f.jsx)(C,{value:j,onSelectMax:H,onChange:function(e){e.currentTarget.validity.valid&&b(e.currentTarget.value)},max:S,symbol:y("Ticket").toUpperCase(),availableSymbol:"CAKE"}),Object(f.jsx)("div",{children:Object(f.jsx)(L,{children:y("1 Ticket = %lotteryPrice% CAKE",{lotteryPrice:A.i})})}),Object(f.jsxs)("div",{children:[Object(f.jsx)(G,{children:y("Ticket purchases are final. Your CAKE cannot be returned to you after buying tickets.")}),Object(f.jsx)(q,{children:y("You will spend: %num% CAKE",{num:(t=j,+t*A.i)})})]}),Object(f.jsxs)(w.a,{children:[Object(f.jsx)(g.q,{width:"100%",variant:"secondary",onClick:n,children:y("Cancel")}),Object(f.jsx)(g.q,{id:"lottery-buy-complete",width:"100%",disabled:l||!Number.isInteger(parseInt(j))||parseInt(j)>Number(k)||parseInt(j)>A.h||parseInt(j)<1,onClick:Object(x.a)(O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o(!0),e.next=3,E();case 3:o(!1),n();case 5:case"end":return e.stop()}}),e)}))),children:y(l?"Pending Confirmation":"Confirm")})]})]})},u.e.div(b||(b=Object(l.a)(["\n  margin-left: 0.4em;\n  font-size: 14px;\n  font-weight: 600;\n  color: ",";\n"])),(function(e){return e.theme.colors.primary}))),q=u.e.div(a||(a=Object(l.a)(["\n  margin-top: 1em;\n  text-align: center;\n  font-size: 20px;\n  font-weight: 600;\n  color: ",";\n"])),(function(e){return e.theme.colors.primary})),G=u.e.div(s||(s=Object(l.a)(["\n  margin-top: 1em;\n  margin-left: 0.4em;\n  color: #ed4b9e;\n"])))}}]);
//# sourceMappingURL=35.21830f64.chunk.js.map