(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5728:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return s(8933)}])},8933:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>q});var a=s(5893),r=s(7294);let n=function(e){let{value:t}=e,[s,n]=(0,r.useState)();return(0,r.useEffect)(()=>{void 0==s&&fetch("https://api.binance.com/api/v3/ticker/price?symbol=BNBUSDT").then(e=>e.json()).then(e=>{n(Number(e.price))})},[]),t?(0,a.jsx)("span",{children:(s*t).toFixed(2)}):(0,a.jsx)("span",{children:null==s?void 0:s.toFixed(2)})};var l=s(6709),i=s(8458);let c=function(){let e=[{name:"Linkedin",href:"https://www.linkedin.com/in/newman-perez-9a8261286/",icon:e=>(0,a.jsx)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:0,viewBox:"0 0 16 16",...e,xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854V1.146zm4.943 12.248V6.169H2.542v7.225h2.401zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.52-1.248-1.342-1.248-.822 0-1.359.54-1.359 1.248 0 .694.521 1.248 1.327 1.248h.016zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016a5.54 5.54 0 0 1 .016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225h2.4z"})})},{name:"Instagram",href:"https://instagram.com/Soynewmanperez",icon:e=>(0,a.jsx)("svg",{fill:"currentColor",viewBox:"0 0 24 24",...e,children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z",clipRule:"evenodd"})})},{name:"Telegram",href:"https://t.me/newmanperez",icon:e=>(0,a.jsx)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:0,viewBox:"0 0 448 512",...e,xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"})})},{name:"Whatsapp",href:"https://wa.link/am6k4o",icon:e=>(0,a.jsx)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:0,viewBox:"0 0 16 16",...e,xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})})},{name:"Twitter",href:"https://twitter.com/soynewmanperez1",icon:e=>(0,a.jsx)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 448 512",...e,xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-48.9 158.8c.2 2.8.2 5.7.2 8.5 0 86.7-66 186.6-186.6 186.6-37.2 0-71.7-10.8-100.7-29.4 5.3.6 10.4.8 15.8.8 30.7 0 58.9-10.4 81.4-28-28.8-.6-53-19.5-61.3-45.5 10.1 1.5 19.2 1.5 29.6-1.2-30-6.1-52.5-32.5-52.5-64.4v-.8c8.7 4.9 18.9 7.9 29.6 8.3a65.447 65.447 0 0 1-29.2-54.6c0-12.2 3.2-23.4 8.9-33.1 32.3 39.8 80.8 65.8 135.2 68.6-9.3-44.5 24-80.6 64-80.6 18.9 0 35.9 7.9 47.9 20.7 14.8-2.8 29-8.3 41.6-15.8-4.9 15.2-15.2 28-28.8 36.1 13.2-1.4 26-5.1 37.8-10.2-8.9 13.1-20.1 24.7-32.9 34z"})})},{name:"Beats Ecosystem",href:"https://linktr.ee/beatsecosystem",icon:e=>(0,a.jsxs)("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",...e,xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,a.jsx)("path",{d:"M9 3l-7 12h3v5h5v-5h-2l4 -7z"}),(0,a.jsx)("path",{d:"M15 3l7 12h-3v5h-5v-5h2l-4 -7z"})]})},{name:"Mail",href:"mailto:hello@beatswap.net",icon:e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2.5,stroke:"currentColor",...e,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75"})})}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("footer",{className:"bg-black",children:(0,a.jsxs)("div",{className:"mx-auto flex max-w-7xl items-center py-12 px-6 md:justify-between lg:px-8",children:[(0,a.jsxs)("div",{className:"flex items-center lg:hidden block",children:[(0,a.jsx)("div",{className:"flex-shrink-0 ",children:(0,a.jsx)("img",{width:"0",height:"0",sizes:"100vw",src:"/new.png",alt:"Workflow",className:"h-32 w-40 "})}),(0,a.jsx)("div",{className:"ml-4",children:(0,a.jsxs)("div",{className:" order-2",children:[(0,a.jsx)("img",{width:"0",height:"0",sizes:"100vw",src:"/chain.png",alt:"Workflow",className:"h-12 w-auto"}),(0,a.jsx)("div",{className:"mt-5 flex justify-center space-x-3",children:e.slice(0,4).map(e=>(0,a.jsxs)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"text-black p-1.5 rounded-full bg-primary",children:[(0,a.jsx)("span",{className:"sr-only",children:e.name}),(0,a.jsx)(e.icon,{className:"h-4 w-4","aria-hidden":"true"})]},e.name))}),(0,a.jsx)("div",{className:"mt-3 flex justify-center space-x-3",children:e.slice(4).map(e=>(0,a.jsxs)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"text-black p-1.5 rounded-full bg-primary",children:[(0,a.jsx)("span",{className:"sr-only",children:e.name}),(0,a.jsx)(e.icon,{className:"h-4 w-4","aria-hidden":"true"})]},e.name))})]})})]}),(0,a.jsxs)("div",{className:"lg:block hidden order-2",children:[(0,a.jsx)("img",{width:"0",height:"0",sizes:"100vw",src:"/chain.png",alt:"Workflow",className:"h-12 w-auto"}),(0,a.jsx)("div",{className:"mt-5 flex justify-center space-x-3",children:e.map(e=>(0,a.jsxs)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"text-black p-1.5 rounded-full bg-primary",children:[(0,a.jsx)("span",{className:"sr-only",children:e.name}),(0,a.jsx)(e.icon,{className:"h-6 w-6","aria-hidden":"true"})]},e.name))})]}),(0,a.jsx)("div",{className:"lg:block hidden order-1 mt-8 md:mt-0 px-4",children:(0,a.jsx)("img",{width:"0",height:"0",sizes:"100vw",src:"/new.png",alt:"Workflow",className:"h-32 w-full "})})]})}),(0,a.jsx)("footer",{className:" mt-12 px-7",children:(0,a.jsx)("div",{className:"border border-yellow-400 rounded-lg ",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,a.jsxs)("div",{className:"-mx-6 grid grid-cols-1 items-center gap-0.5 overflow-hidden sm:mx-0 sm:rounded-2xl md:grid-cols-3 py-3",children:[(0,a.jsx)("div",{className:"p-2",children:(0,a.jsx)("a",{href:"https://poocoin.app/tokens/0x86333e34c8804532ae34207c46e741cbc3ff3fe3",target:"_blank",rel:"noopener noreferrer",className:"justify-center text-purple-800",children:(0,a.jsx)("img",{className:"max-h-20 w-full object-contain ",src:"https://s3.magic-api.xyz/beats-miner-v4/button-chart-cryptopesos.png",alt:"",width:158,height:48})})}),(0,a.jsx)("div",{className:"p-2 ",children:(0,a.jsx)("a",{href:"https://bscscan.com/address/0x86333e34c8804532ae34207c46e741cbc3ff3fe3#code",target:"_blank",rel:"noopener noreferrer",className:"justify-center text-purple-800 ",children:(0,a.jsx)("img",{className:"max-h-20 w-full object-contain ",src:"https://s3.magic-api.xyz/beats-miner-v4/button-contract-cryptopesos.png",alt:"",width:158,height:48})})}),(0,a.jsx)("div",{className:"p-2",children:(0,a.jsx)("a",{href:"https://bscscan.com/address/0x27D47172103915766062F9406EE30a6D3fE0f5ab",target:"_blank",rel:"noopener noreferrer",className:"justify-center text-purple-800 ",children:(0,a.jsx)("img",{className:"max-h-20 w-full object-contain",src:"https://s3.magic-api.xyz/beats-miner-v4/button-contract-project.png",alt:"",width:158,height:48})})}),(0,a.jsx)("div",{className:"p-2 ",children:(0,a.jsx)("a",{href:"https://blocksafu.com/audit/0x86333e34c8804532ae34207c46e741cbc3ff3fe3",target:"_blank",rel:"noopener noreferrer",className:"justify-center text-purple-800 ",children:(0,a.jsx)("img",{className:"max-h-20 w-full object-contain ",src:"https://s3.magic-api.xyz/beats-miner-v4/button-blocksafu-auditoria.png",alt:"",width:158,height:48})})}),(0,a.jsx)("div",{className:"p-2",children:(0,a.jsx)("a",{href:"https://github.com/blocksafu111/kyc/blob/main/KYC-Crypto-Pesos-By-BlockSafu.pdf",target:"_blank",rel:"noopener noreferrer",className:"justify-center text-purple-800 ",children:(0,a.jsx)("img",{className:"max-h-20 w-full object-contain ",src:"https://s3.magic-api.xyz/beats-miner-v4/button-blocksafu-kyc.png",alt:"",width:158,height:48})})})]})})})}),(0,a.jsx)("div",{className:"py-20"})]})};s(8459);var o=s(2331),d=s(5226),m=s(5663),x=s(5152),u=s.n(x);s(7918);var h=s(6501),p=s(120),f=s(7331),g=s(9474),b=s(4146),v=s(2593),w=s(1046),y=s(5553);let j=e=>{let{accounts:t,isLoaded:s,connect:a}=(0,r.useContext)(d.Z),n=async()=>{if(!s)return null;let t=(await a()).getSigner();return new b.CH(e,g.lz,t)},l=async e=>{if(!s)return v.O$.from(0);let a=await n(),r=void 0==e?t:e;return await a.balanceOf(r)},i=async(e,t)=>{let s=void 0==t?w.Bz:y.parseEther(t).toString();return(await n()).approve(e,s)},c=async(e,t)=>(await n()).allowance(e,t),o=async(e,t)=>{let s=y.parseEther(t).toString();return(await n()).transfer(e,s)},m=async(e,t,s)=>{let a=y.parseEther(s).toString();return(await n()).transferFrom(e,t,a)},x=async e=>{let s=await n();return(await s.allowance(t,e)).gt(y.parseEther("10000"))};return(0,r.useMemo)(()=>{try{return[{contract:n,balanceOf:l,approve:i,allowance:c,transfer:o,transferFrom:m,allowanceHandle:x,address_:e}]}catch(t){return console.log(t),[n,l,i,c,o,m,x,e]}},[t,s,e])};var N=s(4632);let k=e=>{let{accounts:t,isLoaded:s,connect:a}=(0,r.useContext)(d.Z),[n,l]=(0,r.useState)(0),[i,c]=(0,r.useState)(0);(0,r.useEffect)(()=>{if(s)return x(),m(),()=>{}},[s,e]);let o=async()=>{if(!s)return null;let e=(await a()).getSigner();return new b.CH("0xA79dd1E6c162Df76453cf5a992b7F9a9488Afa78",["function BUSD() public view  returns (address)","function WBNB() public view  returns (address)","function getBusdToBNBToToken(\n            address token,\n            uint _amount\n        ) external view  returns (uint256)","function getTokensToBNBtoBusd(\n            address token,\n            uint _amount\n        ) external view  returns (uint256)","function getTokensToBnb(\n            address token,\n            uint _amount\n        ) external view  returns (uint256)","function getBnbToTokens(\n            address token,\n            uint _amount\n        ) public view  returns (uint256)"],e)},m=async()=>{if(!s)return null;try{let e=await p();return e=y.formatEther(e),c(e),e}catch(e){return console.log(e,"price"),!1}},x=async()=>{if(!s)return null;try{let e=await h();return e=y.formatEther(e),console.log(e,"price_"),l(e),e}catch(e){return console.log(e,"price"),!1}},u=async(t,a)=>{if(!s)return null;try{let s=await s();a=void 0==a?y.parseEther(1):y.parseEther(a);let r=void 0==t?e:t;return await s.getBusdToBNBToToken(r,a)}catch(e){return console.log(e),!1}},h=async(t,a)=>{if(!s)return null;try{let s=void 0==a?y.parseEther("1"):y.parseEther(a),r=void 0==t?e:t,n=await o();return await n.getTokensToBNBtoBusd(r,s)}catch(e){return v.O$.from(0)}},p=async(e,t)=>{if(!s)return null;try{let s=void 0==t?y.parseEther("1"):y.parseEther(t),a=e,r=await o();return void 0==a&&(a=await r.BUSD()),await r.getBnbToTokens(a,s)}catch(e){return console.log(e,"getBnbToTokens"),!1}};return(0,r.useMemo)(()=>{try{return{contract:o,getBusdToBNBToToken:u,getTokensToBNBtoBusd:h,price:n,priceBnb:i,getPrice:x}}catch(e){return console.log(e),{}}},[t,s,n,e,i])};var B=s(242),C=s(9485);s(1664);let E=[{id:1,name:"BEATS",address:"0x83d3C2D1A55687498Df6800c5F173EC6a7556089",_tokenIndex:1},{id:2,name:"CRYPTOBEATS",address:"0xbB21c4A6257f3306d0458E92aD0FE583AD0cE858",_tokenIndex:0},{id:3,name:"USDT",address:"0x55d398326f99059fF775485246999027B3197955",_tokenIndex:4},{id:4,name:"BTC",address:"0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c",_tokenIndex:3},{id:5,name:"BNB",address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",_tokenIndex:2}];var D=s(6010),F=s(1626),A=s(1495),_=s(9121),T=s(7909),S=s(786),R=s(2564),z=s(5121),P=s(9622),Z=s(7739);let M=u()(()=>s.e(754).then(s.bind(s,9754)),{loadableGenerated:{webpack:()=>[9754]},ssr:!1}),L=e=>{let{time:t}=e,[s,n]=(0,r.useState)({days:0,hours:0,minutes:0,seconds:0}),l=()=>{let e=p.ou.fromISO(t);console.log(e.year,"target.year");let s=p.ou.now(),a=e.diff(s,["days","hours","minutes","seconds"]);e>s?n({days:a.days,hours:a.hours,minutes:a.minutes,seconds:a.seconds}):n({days:0,hours:0,minutes:0,seconds:0})};return(0,r.useEffect)(()=>{let e=setInterval(l,1e3);return()=>clearInterval(e)},[t]),(0,a.jsx)("div",{children:(0,a.jsx)("p",{className:"text-center text-2xl text-gray-100",children:(0,a.jsxs)("span",{className:"block pt-3",children:[Math.floor(s.days),":",Math.floor(s.hours),":",Math.floor(s.minutes),":",Math.floor(s.seconds)]})})})};function I(e){let{image:t,type:s,className:r}=e;return(0,a.jsxs)("div",{className:(0,D.Z)("safari-mask-fix relative aspect-[4/6]  items-center overflow-hidden rounded-lg bg-black",r),children:[(0,a.jsx)("img",{className:"z-10 h-full w-full scale-100 object-contain align-middle transition-transform duration-700 group-hover:scale-110",src:t,alt:""}),(0,a.jsxs)("div",{className:"absolute h-full w-full rounded-lg opacity-40 ",style:{backgroundImage:"url(".concat(t,")")},children:[(0,a.jsx)("div",{className:"absolute h-full w-full rounded-lg backdrop-blur-md "}),s]})]})}let O=function(){let[e,t]=(0,r.useState)(0),[s,n]=(0,r.useState)(0),{stakeUserData:l,harvest:c,withdrawStake:x,ForsewithdrawStake:u,currenRewards_:p,invest:g,isApprove:v,userData:Z,approveHandle:M,allData:L,withdraw1000Hours:O,setchangeToken:X,getUserData:H,approveHandlePlus:$,getUserTotalPendingRewardsToken:Y,balanceOf:q,balanceOfBNB:G}=(0,r.useContext)(o.Z),{priceHandle:Q,btc:K,bnb:J,cryptobeats:ee}=function(){let{accounts:e,isLoaded:t,update:s,connect:a,errorMessage:n}=(0,r.useContext)(d.Z),[l,i]=(0,r.useState)(1),[c,o]=(0,r.useState)(1),[m,x]=(0,r.useState)(1),[u,h]=(0,r.useState)(1),[p,f]=(0,r.useState)(1);(0,r.useEffect)(()=>{t&&w()},[t]);let g=async e=>{let t=(await a()).getSigner();return e="0x7020E75a4A0d0af507F21327f4228A84500E50A7",new b.CH(e,["function getTokenToBnbToAltToken(\n              address token,\n              address altToken,\n              uint _amount\n          ) public view returns (uint256)","function getBnbToTokens(\n            address token,\n            uint _amount\n        ) public view  returns (uint256)"],t)},v=async e=>{let t;let s=await g(e);return t="0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"==e?await s.getBnbToTokens("0xbB21c4A6257f3306d0458E92aD0FE583AD0cE858",y.parseEther("1")):await s.getTokenToBnbToAltToken(e,"0xbB21c4A6257f3306d0458E92aD0FE583AD0cE858",y.parseEther("1")),Number(y.formatEther(t))},w=async()=>{let e=await v(E[3].address),t=await v(E[4].address),s=await v(E[0].address),a=await v(E[1].address);console.log("btc_",e),console.log("bnb_",t),x(t),o(e),h(s),f(a)};return{priceHandle:v,btc:c,bnb:m,beats:u,cryptobeats:p}}(),[et,es]=(0,r.useState)(2),{accounts:ea,isLoaded:er,update1:en}=(0,r.useContext)(d.Z),[el,ei]=(0,r.useState)(0),ec=k(N.Lk.busd),{timerDays:eo,timerHours:ed,timerMinutes:em,timerSeconds:ex,setDate:eu,timeShow:eh,isZero:ep}=(0,m.QD)(),[ef,eg]=r.useState(200),[eb,ev]=r.useState(0),[ew,ey]=r.useState(200),[ej,eN]=r.useState(0),[ek,eB]=(0,r.useState)(!1),[eC,eE]=(0,r.useState)(0);!function(e){let{accounts:t,isLoaded:s,connect:a}=(0,r.useContext)(d.Z),n=(0,N.e2)(),l=async(t,a)=>{if(!s)return;let[r,l]=await n,i=y.parseEther(t),c=(0,B.Z)();return l.invest(void 0==a?e:a,i,c)},i=async t=>{if(!s)return;let[a,r]=await n;return r.harvest(void 0==t?e:t)},c=async t=>{if(!s)return;let[a,r]=await n;return r.withdraw(void 0==t?e:t)},o=async t=>{if(!s)return;let[a,r]=await n;return r.reinvest(void 0==t?e:t)},m=async t=>{if(s)try{let[s,a]=await n;return a.forceWithdraw(void 0==t?e:t)}catch(e){return console.log(e),!1}},x=async(t,a,r)=>{if(s)try{let[s,l]=await n;return await l.getReward(a,r,void 0==t?e:t),!0}catch(e){return console.log(e),!1}},u=async a=>{if(s)try{let[s,r]=await n;return await r.userCanwithdraw(void 0==a?e:a,t)}catch(e){return console.log(e),!1}},h=async a=>{if(s)try{let[s,r]=await n;return await r.getUser(t,void 0==a?e:a)}catch(e){return console.log(e),!1}},p=async t=>{if(s&&s)try{let[s,a]=await n;return await a.getPublicData(void 0==t?e:t)}catch(e){return console.log(e),!1}};(0,r.useMemo)(()=>{if(s)try{return[{invest:l,harvest:i,withdraw:c,reinvest:o,forceWithdraw:m,getReward:x,users:h,userCanwithdraw:u,dataStake:p}]}catch(e){return console.log(e),[{invest:l,harvest:i,withdraw:c,reinvest:o,forceWithdraw:m,getReward:x,users:h,userCanwithdraw:u,dataStake:p}]}},[t,s])}(et),j(N.Lk.busd),j(N.Lk.busd);let[eD,eF]=(0,r.useState)(0),[eA,e_]=(0,r.useState)(0),[eT,eS]=(0,r.useState)(0),[eR,ez]=(0,r.useState)(0),[eP,eZ]=(0,r.useState)(0),[eM,eL]=(0,r.useState)(30),[eI,eO]=(0,r.useState)(30);k(N.Lk.busd),k(N.Lk.busd);let[eU,eW]=(0,r.useState)(0),[eV,eX]=(0,r.useState)(0),[eH,e$]=(0,r.useState)(0),[eY,eq]=(0,r.useState)(0),[eG,eQ]=(0,r.useState)("Loading..."),[eK,eJ]=(0,r.useState)(1),[e0,e1]=(0,r.useState)(1),[e2,e3]=(0,r.useState)(!1),[e4,e5]=(0,r.useState)(""),[e6,e8]=(0,r.useState)(U[0]),[e7,e9]=(0,r.useState)(W[1]),[te,tt]=(0,r.useState)(!0),{ByuHandle:ts,counterNFT:ta,isApprove2:tr,approveHandle2:tn,userDataNFT:tl}=(0,r.useContext)(P.Z),ti=(0,R.Z)(),[tc,to]=(0,r.useState)([]),[td,tm]=(0,r.useState)(3),[tx,tu]=(0,r.useState)(0),[th,tp]=(0,r.useState)(5e3),[tf,tg]=(0,r.useState)(""),[tb,tv]=(0,r.useState)(1),[tw,ty]=(0,r.useState)(!1),[tj,tN]=(0,r.useState)(""),[tk,tB]=(0,r.useState)([]),[tC,tE]=(0,r.useState)(!1),[tD,tF]=(0,r.useState)(0),[tA,t_]=(0,r.useState)(!1),tT=(0,N.S3)(),[tS,tR]=(0,r.useState)(!1),tz=async e=>{if(!er&&"000000000000000000000000000000000000000000000"!=ea)return;let[t,s]=await tT;if(!t)return;let a=ti.address;(await s.approve(a,w.Bz)).wait().then(()=>tF(tD+1))},tP=async()=>{if(!er&&"000000000000000000000000000000000000000000000"!=ea)return;let[e,t]=await tT;e&&t_((await t.allowance(ea,ti.address)).gt(w.Bz.div(5)))};(0,r.useEffect)(()=>{if(er)return X(e6.address),()=>{}},[e6,er]),(0,r.useEffect)(()=>{if(er)return tM(),()=>{}},[et,er,ea,eP,ec.price,ec.priceBnb]),(0,r.useEffect)(()=>{if(er)return tM(),Y(1===e7.pool?1:2),H(1===e7.pool?1:2),()=>{}},[et,er,ea,e7.pool]),(0,r.useEffect)(()=>{if(er&&0!=Number(Z.time_))return"number"==typeof Number(Z.time_)&&eu(Number(Z.time_)),()=>{}},[Z,er,eP]),(0,r.useEffect)(()=>{if(er&&1!=eK)return tZ(),()=>{}},[eC,er]);let tZ=async()=>{try{e_((eC*eK*.05).toFixed(7)),eS((eC/e0*.05).toFixed(8))}catch(e){console.log(e)}},tM=async()=>{let{priceBnb:e,price:t,getTokensToBNBtoBusd:s}=ec,a=await s(N.Lk.btc),r=Number(t)/Number(e);e1(Number(y.formatEther(a)).toFixed(2)),eJ(r)},tL=async()=>{console.log({selectedCurrency:e6.address,amount:eC,selected:e7.pool,additionalValue:"BNB"===e6.name?eC:"0"}),await g(e7.pool,eC,U[0].address)},[tI,tO]=r.useState(!1),tU=r.useLayoutEffect,tW=async()=>{try{await F.Z.get("/user/verify/".concat(ea),{headers:{"Content-Type":"application/json"}}),tO(!0),h.Am.success("Successful verification")}catch(e){console.log(e,"error")}};tU(()=>{!1==!C.isAddress(ea)&&tW()},[ea]);let tV=async()=>{try{let e=await ts(tb),t=await z.Z.get("https://nft.api.cryptopeso.co/nft/v2/"+e);console.log(t),tg(t.data.image),ty(!0)}catch(e){console.log(e),void 0!=e.data?h.Am.error(e.error.data.message):h.Am.error(JSON.stringify(e))}},[tX,tH]=(0,r.useState)(!1),t$=async()=>{try{let e=await ti.nft_register(ea);if(!e||"0"===e)return 0;let{data:t}=await z.Z.get("https://nft.api.cryptopeso.co/nft/v2/".concat(e),{headers:{"Cache-Control":"no-cache"}});if("0"===t.token_id)return 0;return tN(t.image),to(t),tH(!0),e}catch(e){return console.error("Error fetching NFT data:"),0}},tY=async e=>{if(er)try{let t=await ti.upgradeType(e);h.Am.success("upgrade Type success"),t.wait().then(e=>{})}catch(e){var t;if(console.log(e),(null===(t=e.message.split("reason=")[1])||void 0===t?void 0:t.length)>0)return h.Am.error(e.message.split("reason=")[1].split(",")[0]);if(void 0!=e.message)return h.Am.error(e.message)}},tq=async()=>{var e;if(tl&&(null===(e=tl.allTokens)||void 0===e?void 0:e.length)!==0)try{let e=(await Promise.all(tl.allTokens.map(e=>z.Z.get("https://nft.api.cryptopeso.co/nft/v2/".concat(e))))).map(e=>e.data).filter(e=>(null==e?void 0:e.image)!==void 0).map(e=>({name:e.name,tokenID:e.token_id,faction:"Miner",level:1,earn:58,image:e.image}));tH(!0),tB(e[0])}catch(e){console.error("Error fetching NFT data:")}},tG=async e=>{if(er)try{let t=await ti.payForRevive(e);h.Am.success("register NFT success"),t.wait().then(e=>{})}catch(e){var t;if(console.log(e),(null===(t=e.message.split("reason=")[1])||void 0===t?void 0:t.length)>0)return h.Am.error(e.message.split("reason=")[1].split(",")[0]);if(void 0!=e.message)return h.Am.error(e.message)}},tQ=async e=>{if(er)try{let t=await ti.registerNFT(e);h.Am.success("register NFT success"),t.wait().then(e=>{})}catch(e){var t;if((null===(t=e.message.split("reason=")[1])||void 0===t?void 0:t.length)>0)return h.Am.error(e.message.split("reason=")[1].split(",")[0]);if(void 0!=e.message)return h.Am.error(e.message)}},tK=async e=>{if(er&&(null==tc?void 0:tc.token_id)!=void 0)try{let e=await ti.getNftData(null==tk?void 0:tk.tokenID);tE(e.used),tu(e.getType.toString()),"1"==e.getType.toString()&&tm(5),"2"==e.getType.toString()&&tm(9),e.owner==ea&&tR(!0)}catch(e){return console.log(e),e}};(0,r.useEffect)(()=>((async()=>{await t$(),await tq(),await tK(),await tP()})().catch(console.error),t1(["0xC74422A72D0E14DCEb282905185962D061DF42Ef","0x14489066f815DDFeB3CE094a3173b07d5916eefB","0x98Fa9C40BBD21814fbb928E6E33f13D3A9BCB261","0xF669970132D5e6A5E6A9Aec4393384ADBca58b4f","0x7b74cA1823Ea847DF4622C03594703515566934F","0xa8D04Bbf893D40029Cc40704EEd1A75dc8A96216","0x12cD7Cb7675aea9B6824C9A88ef776a5Ca7ef703"].some(e=>(null==e?void 0:e.toLowerCase())===(null==ea?void 0:ea.toLowerCase()))),()=>{}),[er,ea,tl,null==tk?void 0:tk.tokenID]);let tJ=Number(tx)+1,[t0,t1]=(0,r.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mt-16",children:(0,a.jsx)(i.Z,{src:"/airdrop/logo.png",className:"mx-auto w-full px-6 lg:w-1/4"})}),(0,a.jsxs)("div",{id:"pass",className:" box-card shadow-b card-gradient relative mx-auto mt-12   max-w-2xl rounded-lg bg-cover bg-local bg-no-repeat py-8",children:[" ",(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex justify-between gap-x-4 px-6 py-3",children:[(0,a.jsx)("dt",{className:"tlt text-xs text-slate-100",children:"Wallet CRP"}),(0,a.jsxs)("dd",{className:"tlt text-xs text-slate-100",children:[" ",q," ",e6.name]})]}),(0,a.jsxs)("div",{className:"flex justify-between gap-x-4 px-6 py-3",children:[(0,a.jsx)("dt",{className:"tlt text-xs text-slate-100",children:"Wallet BNB"}),(0,a.jsxs)("dd",{className:"tlt text-xs text-slate-100",children:[" ",G," BNB"]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-x-8 gap-y-6 px-6 sm:grid-cols-2 ",children:[(0,a.jsx)("div",{className:"relative",children:(0,a.jsx)("div",{className:"mt-2.5",children:(0,a.jsxs)("div",{className:" rounded-md px-0 shadow-sm ",children:[(0,a.jsx)("input",{className:"tlt block w-full rounded-md border-0 bg-black px-3.5 py-4 text-gray-100 shadow-sm ring-1 ring-inset ring-[#9F0] placeholder:text-gray-200 focus:ring-2 focus:ring-inset focus:ring-yellow-600 sm:text-sm sm:leading-6",placeholder:"0.00",onChange:e=>eE(e.target.value),type:"number",min:0,"aria-describedby":"buy-beats"}),(0,a.jsx)("div",{className:"absolute inset-y-0 right-1 flex items-center lg:right-2",children:(0,a.jsx)(A.R,{value:e6,onChange:e=>{e8(e)},children:e=>{let{open:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(A.R.Button,{className:"tlt mt-1 flex h-full items-center rounded-md border-0 bg-transparent px-4 text-sm font-bold text-[#9F0] focus:ring-2 focus:ring-inset focus:ring-indigo-600 lg:mt-2",children:[(0,a.jsx)("img",{src:e6.img,className:"ml-1 h-7 w-7",alt:""}),(0,a.jsx)(T.Z,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,a.jsx)(_.u,{show:t,as:r.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)(A.R.Options,{className:"absolute z-10 mt-1 max-h-60 w-40  overflow-auto rounded-md bg-black py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm",children:U.map(e=>(0,a.jsx)(A.R.Option,{className:e=>{let{active:t}=e;return(0,D.Z)(t?"bg-[#9F0] text-black":"text-gray-200","relative cursor-default select-none py-2 pl-3 pr-9")},value:e,children:t=>{let{selected:s,active:r}=t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:(0,D.Z)(s?"font-semibold":"font-normal"," flex truncate"),children:[(0,a.jsx)("img",{src:e.img,className:"mr-1 h-5 w-5",alt:""}),e.name]}),s?(0,a.jsx)("span",{className:(0,D.Z)(r?"text-black":"text-[#9F0]","absolute inset-y-0 right-0 flex items-center pr-4"),children:(0,a.jsx)(S.Z,{className:"h-5 w-5","aria-hidden":"true"})}):null]})}},e.id))})})]})}})})]})})}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("label",{htmlFor:"profit",className:"tlt green absolute -top-0 left-2 hidden  px-1  text-xs font-medium text-gray-900 lg:block",children:["BTC/BNB Profit ",1===e7.pool?"0.15%":"0.30%"," Daily"]}),(0,a.jsxs)("label",{htmlFor:"email",className:"tlt block text-sm font-medium leading-6 text-gray-100 lg:hidden",children:["BTC/BNB Profit ",1===e7.pool?"0.15%":"0.30%"," Daily"]}),(0,a.jsxs)("div",{className:"mt-2.5",children:[(0,a.jsx)("input",{type:"text",name:"last-name",id:"last-name",autoComplete:"family-name",placeholder:"To Receive BNB",value:eT,className:"tlt block w-full rounded-md border-0 bg-black px-3.5 py-4 text-gray-100 shadow-sm ring-1 ring-inset ring-[#B3B3B3] placeholder:text-gray-200 focus:ring-2 focus:ring-inset focus:ring-yellow-600 sm:text-sm sm:leading-6"}),(0,a.jsx)("div",{className:"tlt pointer-events-none absolute inset-y-0 right-0 mt-[35px] flex items-center pr-3 lg:mt-3",children:(0,a.jsx)("span",{className:"text-gray-200 sm:text-sm",id:"price-currency",children:"BTC"})})]})]})]}),(0,a.jsxs)("div",{className:"relative mt-3 px-6",children:[(0,a.jsxs)("label",{htmlFor:"profit",className:"tlt green absolute -top-1 left-9 hidden  px-1  text-xs font-medium text-gray-900 lg:block",children:["BTC/BNB Profit ",1===e7.pool?"0.15%":"0.30%"," Daily"]}),(0,a.jsxs)("div",{className:"mt-2.5",children:[(0,a.jsx)("input",{type:"text",name:"last-name",id:"last-name",autoComplete:"family-name",placeholder:"To Receive BNB",value:eA,className:"tlt block w-full rounded-md border-0 bg-black px-3.5 py-4 text-gray-100 shadow-sm ring-1 ring-inset ring-[#B3B3B3] placeholder:text-gray-200 focus:ring-2 focus:ring-inset focus:ring-yellow-600 sm:text-sm sm:leading-6"}),(0,a.jsx)("div",{className:"tlt pointer-events-none absolute inset-y-0 right-0 mt-[1px] flex items-center pr-9 lg:mt-0",children:(0,a.jsx)("span",{className:"text-gray-200 sm:text-sm",id:"price-currency",children:"BNB"})})]})]}),(0,a.jsx)("div",{className:"px-6",children:(0,a.jsx)(A.R,{value:e7,onChange:e9,children:e=>{let{open:t}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"relative mt-2",children:[(0,a.jsxs)(A.R.Button,{className:"green relative w-full cursor-default rounded-md py-2 pl-3 pr-10 text-left text-black shadow-sm ring-1 ring-inset ring-gray-700 focus:outline-none focus:ring-2 focus:ring-slate-600 sm:text-sm sm:leading-6",children:[(0,a.jsx)("div",{className:"group block flex-shrink-0",children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("div",{children:(0,a.jsx)("img",{className:"inline-block h-9 w-9 rounded-full",src:"/icon_clock.png",alt:""})}),(0,a.jsxs)("div",{className:"ml-3",children:[(0,a.jsxs)("div",{className:"text-sm font-medium text-gray-900 group-hover:text-gray-900",children:[" ","Time Locked: ",e7.locked," Days"]}),(0,a.jsxs)("div",{className:"text-sm font-medium text-gray-900 group-hover:text-gray-900",children:[" ",e7.apr_value,"% Daily Roi"]})]})]})}),(0,a.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:(0,a.jsx)(T.Z,{className:"h-5 w-5 text-slate-900","aria-hidden":"true"})})]}),(0,a.jsx)(_.u,{show:t,as:r.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)(A.R.Options,{className:"green absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md py-3 text-base shadow-lg ring-1 ring-white ring-opacity-5 focus:outline-none sm:text-sm",children:W.map(e=>(0,a.jsx)(A.R.Option,{className:e=>{let{active:t}=e;return(0,D.Z)(t?"bg-black text-white":"text-gray-900","relative cursor-default select-none py-2 pl-8 pr-4")},value:e,children:t=>{let{selected:s,active:r}=t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:(0,D.Z)(s?"font-semibold":"font-normal","block truncate"),children:["Locked: ",e.locked," Days - Roi:"," ",e.apr_value,"%"]}),s?(0,a.jsx)("span",{className:(0,D.Z)(r?"text-white":"text-slate-900","absolute inset-y-0 left-0 flex items-center pl-1.5"),children:(0,a.jsx)(S.Z,{className:"h-5 w-5","aria-hidden":"true"})}):null]})}},e.id))})})]})})}})}),(0,a.jsx)("div",{className:"mt-12 flex justify-center px-1",children:(0,a.jsxs)("div",{children:[" ",(0,a.jsx)("div",{className:"mb-9 flex justify-center",children:(0,a.jsx)("span",{className:"isolate inline-flex rounded-md shadow-sm",children:v?(0,a.jsx)("button",{onClick:()=>tL(),type:"button",style:{background:"linear-gradient(180deg, #98FF00 0%, #33CB66 100%)"},className:"tlt  relative inline-flex cursor-pointer items-center rounded-lg  px-4 py-3 text-[12px] text-black ",children:"Get Airdrop"}):(0,a.jsx)("button",{type:"button",onClick:()=>$(),className:"tlt gradient-yellow relative inline-flex items-center rounded-lg  px-4 py-3 text-[12px] text-black ",children:"APPROVE"})})})]})})]})]}),(0,a.jsx)(V,{selected:e7,isAminP:te,updateRegister:tI,isPaso:tX}),(0,a.jsx)("div",{className:"box-card box-card shadow-b border-4 border-white bg-black bg-[radial-gradient(100%_50%_at_50%_0%,rgba(0,163,255,0.13)_0,rgba(0,163,255,0)_50%,rgba(0,163,255,0)_100%)]",children:(0,a.jsxs)("div",{className:"mx-auto mt-9 max-w-7xl px-6 text-center lg:px-8",children:[(0,a.jsx)("div",{className:"mx-auto flex max-w-2xl items-center justify-center",children:(0,a.jsx)("h2",{className:"tlt text-3xl font-bold tracking-tight text-white sm:text-4xl",children:"Disclaimer"})}),(0,a.jsx)("p",{className:"mb-8 mt-2 font-bold text-white",children:"The ROI of the Crypto Airdrop operates until more than double your capital is achieved or your coins are doubled, whichever occurs first. In other words, The daily ROI of the Crypto Airdrop is designed to significantly grow your initial investment. Once you have doubled your capital through the ROI, you will no longer be entitled to claim the initial capital, as you will have already achieved the goal of doubling your investment. This structure is designed to maximize your profits and ensure a fair and equitable return."})]})}),(0,a.jsxs)("div",{className:"mx-auto mt-6 max-w-8xl px-0 lg:px-8",children:[(0,a.jsx)("div",{className:"mx-auto   px-0  pt-8 lg:px-0",children:(0,a.jsxs)("div",{className:"flex  justify-center overflow-hidden ",children:[(0,a.jsx)("div",{className:!0}),(0,a.jsx)("div",{className:!0,children:(0,a.jsx)("img",{width:0,height:0,sizes:"100vw",className:"w-[820px] transform   ",src:"https://nft.cryptopeso.co/banner.png",alt:"App screenshot"})})]})}),(0,a.jsxs)("div",{className:" box-card shadow-b card-gradient relative mx-auto mt-12   max-w-2xl rounded-lg bg-cover bg-local bg-no-repeat py-8",children:[(0,a.jsx)("h1",{className:"relative px-3 text-center text-2xl font-bold uppercase text-[#9F0]",children:"GET YOUR NFT TO MINE HERE"}),(0,a.jsx)("div",{className:"flex flex-col justify-center",children:(null==tk?void 0:tk.image)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("section",{className:"safari-mask-fix relative mx-auto mt-12 w-fit overflow-hidden rounded-xl border-4 bg-contain bg-no-repeat transition duration-500 hover:rotate-3 hover:scale-95",children:[(0,a.jsx)(I,{image:tk.image,type:"",className:"max-h-[400px]"}),(0,a.jsx)("div",{className:"absolute bottom-0 z-10 h-12 w-full bg-gradient-to-t from-black to-transparent"}),(0,a.jsx)("div",{className:"absolute bottom-0 z-10 w-full space-y-2 px-4 pb-6 md:px-6 md:pb-8",children:(0,a.jsx)("h2",{className:"break-words text-left text-xs font-semibold text-white sm:text-lg"})})]}),(0,a.jsxs)("div",{className:"my-4",children:[(0,a.jsx)("div",{className:"items-center text-center text-sm capitalize text-slate-100",children:(0,a.jsxs)("span",{children:["Token ID: ",tk.tokenID]})}),(0,a.jsx)("div",{children:(0,a.jsx)("h6",{className:"text-md mb-1 mt-2 line-clamp-2 break-words text-center font-bold leading-tight text-white ",children:"Faction: Miner"})}),(0,a.jsxs)("ul",{className:"mb-1 flex list-disc flex-wrap justify-center space-x-4 text-xs  leading-5 text-gray-200 marker:text-gray-300  sm:mb-0",children:[(0,a.jsxs)("li",{className:"!mr-2 first:list-none",children:["Level: ",Number(tx)+1," "]}),(0,a.jsx)("li",{className:"!mr-2 first:list-none",children:"Raise the Level"}),(0,a.jsxs)("li",{className:"!mr-2 first:list-none",children:["Earn: ",3===tJ?100:tk.earn,"%"]})]}),(0,a.jsxs)("div",{className:"flex justify-center space-x-3",children:[tS?(0,a.jsx)(a.Fragment,{children:2===Number(tx)?(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("button",{type:"button",className:(0,D.Z)("btn-green mt-3 block rounded-md px-3 py-2 text-center text-sm font-semibold uppercase text-white shadow-sm hover:bg-slate-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"),children:"Maximum"}),(0,a.jsx)("p",{className:(0,D.Z)("pt-3 text-center text-sm uppercase text-white"),children:"Level"})]}):(0,a.jsx)(a.Fragment,{children:tA?(0,a.jsxs)("div",{children:[(0,a.jsxs)("button",{type:"button",onClick:()=>tY(tk.tokenID),className:"mt-3 block rounded-md bg-orange-600 px-3 py-2 text-center text-sm font-semibold uppercase text-black shadow-sm hover:bg-slate-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:["Up Level ",tJ+1]}),(0,a.jsxs)("p",{className:(0,D.Z)("pt-3 text-center text-sm uppercase text-white"),children:[0===Number(tx)&&"Price 50$"," ",1===Number(tx)&&"Price 25$"]})]}):(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("button",{type:"button",onClick:()=>tz(),className:"mt-3 block rounded-md bg-orange-600 px-3 py-2 text-center text-sm font-semibold uppercase text-black shadow-sm hover:bg-slate-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Level Up"}),(0,a.jsx)("p",{className:(0,D.Z)("pt-3 text-center text-sm uppercase text-white"),children:"Approve"})]})})}):(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("button",{type:"button",onClick:()=>{tC?tG(tk.tokenID):tQ(tk.tokenID)},className:"mt-3 block rounded-md bg-orange-600 px-3 py-2 text-center text-sm font-semibold uppercase text-black shadow-sm hover:bg-slate-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"MINER HERE"}),(0,a.jsx)("p",{className:(0,D.Z)("pt-3 text-center text-sm uppercase text-white"),children:"Registre NFT"})]}),(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("a",{href:"https://nft.cryptopeso.co/character",children:(0,a.jsx)("button",{type:"button",className:"mt-3 block rounded-md bg-white px-3 py-2 text-center text-sm font-semibold uppercase text-black shadow-sm hover:bg-slate-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Characters"})}),(0,a.jsx)("p",{className:(0,D.Z)("pt-3 text-center text-sm uppercase text-white"),children:"NFT Setting"})]})]})]})]})}),(0,a.jsxs)("div",{className:"box-padding",children:[(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"relative mt-4 rounded-md px-0 shadow-sm lg:px-0",children:[(0,a.jsx)("input",{className:"input-gradient block w-full  pl-7 pr-20 text-2xl text-primary placeholder:text-primary  focus:border-yellow-400 focus:ring-slate-900",placeholder:"0.00",value:100,type:"number",min:0,"aria-describedby":"buy-beats"}),(0,a.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-4 flex items-center pr-3 lg:right-1",children:(0,a.jsx)("span",{className:"text-2xl font-bold text-primary",id:"buy-beats",children:"USD/CRP"})})]})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"flex justify-center py-[12px]",children:tr?(0,a.jsx)("button",{type:"button",onClick:()=>tV(),className:"btn-green inline-flex  items-center px-8 py-3 text-sm font-medium text-white shadow-sm focus:outline-none focus:ring-2 focus:ring-slate-900 focus:ring-offset-2",children:"GET NFT"}):(0,a.jsx)("button",{type:"button",onClick:()=>tn(),className:"btn-orange inline-flex items-center  px-8 py-3 text-sm font-medium text-black shadow-sm focus:outline-none focus:ring-2 focus:ring-slate-900 focus:ring-offset-2",children:"APPROVE"})}),(0,a.jsxs)("h1",{className:" mt-5 text-center font-black text-yellow-400",children:["Limited ",th," NFT"]}),(0,a.jsx)("div",{className:"mt-3 flex  justify-center",children:(0,a.jsxs)("div",{className:"flex h-full w-72 items-center lg:flex-row ",children:[(0,a.jsx)("div",{className:"text-md mb-0 flex items-center justify-center uppercase text-gray-500"}),(0,a.jsxs)("div",{className:"relative h-1 w-full max-w-lg rounded-full bg-slate-800",children:[(0,a.jsx)(f.E.div,{animate:{width:"".concat(Number.parseInt(Number(ta)>0?Number(ta)+9:Number(ta))/th*100,"%")},initial:{width:"".concat(Number.parseInt(Number(ta)>0?Number(ta)+9:Number(ta))/th*100,"%")},transition:{duration:.5,type:"spring",mass:.5},className:"h-1 bg-green-600 transition-transform duration-75 ease-in-out"}),(0,a.jsx)("div",{style:{left:"99%"},className:"absolute -mt-3 h-5 w-5 rounded-full border-2  bg-white "})]})]})}),(0,a.jsxs)("h1",{className:" mt-2 text-center font-bold text-yellow-400",children:[Number(ta)>0?Number(ta)+9:Number(ta)," ","NFT"]})]})]})]})]})]})},U=[{id:2,name:"CRP",img:"/tokens/crp.png",address:"0x86333e34c8804532Ae34207c46e741cBc3Ff3FE3",_tokenIndex:0}],W=[{id:1,name:"EARN BEATS",description:"Xstake $XMB earn BNB",href:"/stake/earn",icon:"/bnb.png",image:"/grafico-pool.png",total_staked_name:"Total Xtaked (USD)",total_staked_value:"0",pending_claim:"Pending Claim",pending_day:"Pending X day",your_staked_name:"Your Xtaked (USD)",your_staked_value:"0",deposit_fee_name:"Deposit Fee",deposit_fee_value:"0",apr_name:"APR (daily)",apr_value:"0.15",invest:"XMB",reward:"BNB",pool:1,locked:"Free"},{id:2,name:"EARN BEATS",description:"Xstake $XMB earn BNB",href:"/stake/earn",icon:"/bnb.png",image:"/grafico-pool.png",total_staked_name:"Total Xtaked (USD)",total_staked_value:"0",your_staked_name:"Your Xtaked (USD)",your_staked_value:"0",deposit_fee_name:"Deposit Fee",deposit_fee_value:"0",apr_name:"APR (daily)",apr_value:"0.30",invest:"XMB",reward:"BNB",pool:2,locked:360}],V=e=>{let{update:t,selected:s,isAminP:n,updateRegister:i,isPaso:c}=e,{withdrawStake:x,ForsewithdrawStake:u,getUserData:p,userData:f,totalInvested_:g,allData:b,withdraw1000Hours:v,totalUsers_:w,setSpecialConvertionRate:y,specialConvertionRate:j,specialConvertionRate_:N,pendingBonus:k,currenRewards_:B}=(0,r.useContext)(o.Z),{accounts:C,isLoaded:E,update1:F}=(0,r.useContext)(d.Z),[A,_]=(0,r.useState)(""),[T,S]=(0,r.useState)(U[0]),[R,z]=(0,r.useState)("0x83d3C2D1A55687498Df6800c5F173EC6a7556089"),[P,I]=(0,r.useState)(0),{timerDays:O,timerHours:W,timerMinutes:V,timerSeconds:X,setDate:H,timeShow:$,isZero:Y}=(0,m.QD)(),{timerDays:q,timerHours:G,timerMinutes:Q,timerSeconds:K,setDateTime:J,timeShow:ee,isZero:et}=(0,m.qX)();(0,r.useEffect)(()=>{if(E&&0!=Number(b.dateBonus))return"number"==typeof Number(b.dateBonus)&&J(Number(b.dateBonus)),()=>{}},[b,E]),(0,r.useEffect)(()=>{E&&ei(C)},[E,s.pool,C]),(0,r.useEffect)(()=>{if(E&&0!=Number(f.time_))return"number"==typeof Number(f.time_)&&H(Number(f.time_)),()=>{}},[f,E]);let es=async(e,t)=>{console.log({selected:s.pool});let a=U.find(t=>t.id==e);await x(s.pool,a.address,t)},[ea,er]=(0,r.useState)(!1),[en,el]=(0,r.useState)("");function ei(e){return["0xC74422A72D0E14DCEb282905185962D061DF42Ef","0x14489066f815DDFeB3CE094a3173b07d5916eefB","0x98Fa9C40BBD21814fbb928E6E33f13D3A9BCB261","0xF669970132D5e6A5E6A9Aec4393384ADBca58b4f","0xC74422A72D0E14DCEb282905185962D061DF42Ef","0x14489066f815DDFeB3CE094a3173b07d5916eefB","0x98Fa9C40BBD21814fbb928E6E33f13D3A9BCB261","0xF669970132D5e6A5E6A9Aec4393384ADBca58b4f","0x7b74cA1823Ea847DF4622C03594703515566934F","0xa8D04Bbf893D40029Cc40704EEd1A75dc8A96216","0x12cD7Cb7675aea9B6824C9A88ef776a5Ca7ef703"].some(t=>t.toLowerCase()===e.toLowerCase())}let[ec]=(0,Z.z)(),eo=async(e,t)=>{if("0x87C05229B6661a97ae67c985e4C946B0d84bf5F9"!==en)try{await ec.setBlackList(e,t),h.Am.success("Success Wallet ".concat(!0===t?"Add":"Remove"))}catch(e){void 0!=e.data?h.Am.error(e.data.message):h.Am.error(e.message)}};return(0,a.jsx)("div",{className:" tlt pb-20 pt-6",children:(0,a.jsxs)("div",{className:"",children:[(0,a.jsxs)("div",{className:"box-card shadow-b card-gradient relative  mx-auto mb-16 mt-12 max-w-2xl rounded-lg   bg-cover bg-local bg-center bg-no-repeat pb-7 shadow",children:[(0,a.jsx)("img",{src:"/airdrop.png",className:"mx-auto w-64 px-6 pt-8"}),(0,a.jsx)("div",{className:" px-6 py-5 sm:px-16",children:(0,a.jsxs)("div",{className:"my-4 text-center",children:[(0,a.jsxs)("div",{className:"flex justify-between gap-x-4 py-3",children:[(0,a.jsxs)("dt",{className:"flex items-center text-sm text-slate-100",children:[(0,a.jsx)("img",{className:"mr-1 h-6 w-6",src:"/icon-1.png",alt:""}),"Total Invest Airdrop"]}),(0,a.jsxs)("dd",{className:"text-sm text-slate-100",children:[B," CRP"]})]}),(0,a.jsxs)("div",{className:"flex justify-between gap-x-4 py-3",children:[(0,a.jsxs)("dt",{className:"flex items-center text-sm text-slate-100",children:[(0,a.jsx)("img",{className:"mr-1 h-6 w-6",src:"/icon_referral_green.png",alt:""}),"Total Users"]}),(0,a.jsxs)("dd",{className:"text-sm text-slate-100",children:[w," "]})]}),(0,a.jsxs)("div",{className:"flex justify-between gap-x-4 py-3",children:[(0,a.jsxs)("dt",{className:"flex items-center text-sm text-slate-100",children:[(0,a.jsx)("img",{className:"mr-1 h-6 w-6",src:"/icon-3.png",alt:""}),"Your Invest"]}),(0,a.jsxs)("dd",{className:"text-sm text-slate-100",children:[f.totalDeposits_," CRP"]})]}),(0,a.jsxs)("div",{className:"flex justify-between gap-x-4 py-3",children:[(0,a.jsxs)("dt",{className:"flex items-center text-sm text-slate-100",children:[(0,a.jsx)("img",{className:"mr-1 h-6 w-6",src:"/icon-3.png",alt:""}),"Your Invest (USD)"]}),(0,a.jsxs)("dd",{className:"text-sm text-slate-100",children:[f.totalDeposits_>0?(0,a.jsx)(l.Z,{value:f.totalDeposits_}):0," ","$"]})]}),(0,a.jsxs)("div",{className:"flex justify-between gap-x-4 py-3",children:[(0,a.jsxs)("dt",{className:"flex items-center text-sm text-slate-100",children:[(0,a.jsx)("img",{className:"mr-1 h-6 w-6",src:"/icon-4.png",alt:""}),"How Long your CRP on air"]}),(0,a.jsx)("dd",{className:"text-sm text-slate-100",children:f.checkpoint})]}),(0,a.jsxs)("div",{className:"flex justify-between gap-x-4 py-3",children:[(0,a.jsxs)("dt",{className:"flex items-center text-sm text-slate-100",children:[(0,a.jsx)("img",{className:"mr-1 h-6 w-6",src:"/icon-5.png",alt:""}),"Airdrops Rewards"]}),(0,a.jsxs)("dd",{className:"text-sm text-slate-100",children:[f.pendingRewards," CRP"]})]}),(0,a.jsxs)("div",{className:"flex justify-between gap-x-4 py-3",children:[(0,a.jsxs)("dt",{className:"flex items-center text-sm text-slate-100",children:[(0,a.jsx)("img",{className:"mr-1 h-6 w-6",src:"/icon-2.png",alt:""}),"Total earned (CRP)"]}),(0,a.jsxs)("dd",{className:"text-sm text-slate-100",children:[Number(f.totalWithdrawn_).toFixed(3)," CRP"]})]}),(0,a.jsxs)("div",{className:"flex justify-between gap-x-4 py-3",children:[(0,a.jsxs)("dt",{className:"flex items-center text-sm text-slate-100",children:[(0,a.jsx)("img",{className:"mr-1 h-6 w-6",src:"/icon-2.png",alt:""}),"Total earned (BTC)"]}),(0,a.jsxs)("dd",{className:"text-sm text-slate-100",children:[Number(f.sellEggs_).toFixed(3)," BTC"]})]}),(0,a.jsxs)("div",{className:"flex justify-between gap-x-4 py-3",children:[(0,a.jsxs)("dt",{className:"flex items-center text-sm text-slate-100",children:[(0,a.jsx)("img",{className:"mr-1 h-6 w-6",src:"/icon-2.png",alt:""}),"Total earned (BNB)"]}),(0,a.jsxs)("dd",{className:"text-sm text-slate-100",children:[Number(f.eggsMiners_).toFixed(3)," BNB"]})]}),f.totalDeposits_>0&&(0,a.jsx)("div",{className:"mt-3  pb-5 ",children:(0,a.jsxs)("div",{className:(0,D.Z)("text-xl ",Y?"text-green-300":"text-red-600"),children:[" ",(0,a.jsx)("div",{children:"".concat(O,":").concat(W,":").concat(V,":").concat(X)})]})})]})}),(0,a.jsxs)("h1",{className:"-mt-5 text-center text-xl text-yellow-400",children:[1===s.pool?"0.15%":"0.30%"," daily earnings"]}),(0,a.jsx)("h1",{className:"mt-5 text-center text-xl text-white",children:"Rewards"}),(0,a.jsxs)("h1",{className:"mt-1 text-center text-xl text-white",children:[f.pendingRewards," CRP"]}),(0,a.jsxs)("h1",{className:"mt-1 text-center text-xl text-white",children:[(0,a.jsx)(l.Z,{value:f.pendingRewards})," USD"]}),!["0x18E7E44b61B5bdbB71A49Aa12f36152FF3069fFd","0xdb6F4D4254A1e10e1468A359e1F68C5f3B8463Ab","0xA97f756E2b70114BB7e621E6aBF81dDa7Ea8034E","0x22B95f54c095E78FC39fa77D6cB707190625894a","0x8143131a1A381B43cFE48c8Bb4B90b644142D058","0x3C3d88502086Fe7Cb1c93942a42A753506e65700","0x8144127121b88d5e88EC874583483d68f2e28DF8","0xd35C6c8BC63D3BaDbcdB775373259052d186A8F5","0x97ea8ee76E68ec960A1253907a71D7683d162b67","0x9bAb6193421a13B260A99172AAF45CFcEE53429A","0xC19d22457222AeACF666c29c94794e07706Ad715","0xD77b9c2E92aCE17F5c3A980adA47f7D17a73bf75","0x644588c68f421cC74f95c0089d3b2A44BC5D8b9C","0x3aDC56E4DcB1402438a1e8194f3687453d13291d","0x90B861Df8c1C6De0Cc0AcBfDe6D94427c682a40a","0x26c6D56E735CC1E5372ae556BCd351085687Fd16","0xE2cF583FBC33eE992162Dc7b94DBf389174c6E72","0xc90794DE5C1274C4204DEAE30047b07adfA823ED","0x27c0641E2f8D1Be706C0b24F81B6387e86aBc8Dc","0x9A2a026A1CE951961FEd5d0E62283327532b551b","0xC72438B136A1FB81cf66a86D7B60b2acA43580BA","0xd140EC0C8cf124ecA9DC7b7B6104b8bD4aCFCf44","0x5a485b9962D22Bd3977c0BDd7fd8794F544Cc47B","0xba2417bdDF5695E18e42Ff087dACfcD079a789CD","0x6dBd09Bed8a4764eEA49BB59e5FC570edF8D6aDE","0xf1ffE57ABB8caa3925552a8970FdD6D4fD81211b","0x4Eeb54C08e3ED7CdF52C31Fdead54763223Ff6AD","0x7AA642dDAf83887d9d9D614C23cf6CA2c1E2266C","0xe9d2b21EBd63426E9cdF146EA5B3f107c973b74C","0xB18FAD0a0Cb3c08592bA3d98c5508e57d4dF2cfc","0xc7763bc861d6c5A75F910C5B828bb303B51C9820","0x69aD687Aaa69b436FbC4c1D20a3E2cAE20819C77","0xA25B08C952a1d50C7220977115cD999a151EaA7e","0x759d4f6a66177067d53F845a25d79960433b2e3b","0xC782cB43Eb4a51aB7bD4Cec525e608A672F60248","0x26CAad35E2ceC3003FFd3C66BC8731CB22f16Ce8","0x084980603C44cA893eD98b9864b45354eEaD648c","0x13D9B11fC40A1330C041e95C2e38AafD294d91A0","0x9ee301816511Ebbccf6186Be47960B5afA00df3F","0xA89F344a98b518E960Bfd41ceC43dA14a68c51C6","0x5A34646a44F8240C21a48126C6db0c34e1e3EEeF","0x978907A9BFc5CbC1895ecE463a8D8acc513B63c5","0x56BE2E1F8603CDF462a07eFE6B7553d004900435","0x2eed1ff67e928FB8bf19c87782d63a4462385740","0x181E1772a754ac858588c79127ca50271872EC0B","0xf369A9b0A780D5fAcE9Cc4666f6fc613e90A4D04","0x5FaAa6ebBe87E8d5F64d28cB0A4397291C774FF6","0xbAA601D30e97dAb196d7f5560ee450D1B64058C2","0xd6a1046E5446Adf2e8b24202C69F5dD2eDFDeD77","0x3b345AEf51c99B9b59c93c63c68fFBECf1863Fb3"].some(e=>e.toLowerCase()===C.toLowerCase())&&(0,a.jsxs)("div",{className:"hidden mt-4 grid grid-cols-1 items-center gap-6 px-6 sm:grid-cols-1 lg:grid-cols-1 lg:px-4",children:[1===s.pool&&c&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("button",{onClick:()=>es(2,!1),type:"button",style:{background:"linear-gradient(180deg, #98FF00 0%, #33CB66 100%)"},className:"tlt relative w-full  cursor-pointer items-center rounded-lg px-6 py-3 text-center text-[17px] text-black disabled:opacity-70",children:"Claim CRP"})}),2===s.pool&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("button",{onClick:()=>es(2,!1),type:"button",disabled:!c,style:{background:"linear-gradient(180deg, #98FF00 0%, #33CB66 100%)"},className:"tlt relative w-full  cursor-pointer items-center rounded-lg px-6 py-3 text-center text-[17px] text-black disabled:opacity-70",children:"Claim CRP"})})]})]}),n&&(0,a.jsxs)(a.Fragment,{children:[1===s.pool&&(0,a.jsxs)("div",{className:"box-card shadow-b card-gradient relative mx-auto  mb-16 mt-12  max-w-2xl rounded-lg   bg-cover bg-local bg-center bg-no-repeat pb-7 shadow",children:[(0,a.jsx)("h1",{className:"mt-5 flex justify-center text-white",children:"5% Bonus For 90 Floating Days"}),(0,a.jsxs)("div",{className:"relative mt-2.5 px-4",children:[(0,a.jsx)("input",{type:"text",name:"last-name",id:"last-name",autoComplete:"family-name",placeholder:"To Receive BNB",className:"tlt block w-full rounded-md border-0 bg-black px-3.5 py-4 text-gray-100 shadow-sm ring-1 ring-inset ring-[#B3B3B3] placeholder:text-gray-200 focus:ring-2 focus:ring-inset focus:ring-yellow-600 sm:text-sm sm:leading-6",value:f.prendingRewardsToken,readOnly:!0}),(0,a.jsx)("div",{className:"tlt pointer-events-none absolute inset-y-0 right-0 mt-[1px] flex items-center pr-9 lg:mt-0",children:(0,a.jsx)("span",{className:"text-gray-200 sm:text-sm",id:"price-currency",children:"CRP"})})]}),(0,a.jsx)("div",{className:"mt-3  flex justify-center pb-5",children:(0,a.jsxs)("div",{className:(0,D.Z)("text-xl ",et?"text-green-300":"text-red-600"),children:[" ",(0,a.jsx)("div",{children:"".concat(q,":").concat(G,":").concat(Q,":").concat(K)})]})}),(0,a.jsx)("div",{className:"mt-4 flex justify-center",children:(0,a.jsx)("button",{type:"button",style:{background:"linear-gradient(180deg, #98FF00 0%, #33CB66 100%)"},className:"tlt  relative inline-flex cursor-pointer items-center rounded-lg px-6 py-3 text-[17px] text-black ",onClick:()=>v(1===s.pool?1:2,"0x86333e34c8804532Ae34207c46e741cBc3Ff3FE3"),children:"Claim Bonus CRP"})})]}),(0,a.jsx)(M,{}),ei(C)&&(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"box-card shadow-b card-gradient relative  mx-auto mb-16 mt-12 max-w-2xl rounded-lg   bg-cover bg-local bg-center bg-no-repeat pb-7 shadow",children:[(0,a.jsx)("h1",{className:"mt-5 flex justify-center text-xl text-white",children:"BLACKLIST"}),(0,a.jsxs)("div",{className:"mt-5 px-8",children:[(0,a.jsx)("label",{htmlFor:"number",className:"block text-sm font-medium leading-6 text-gray-100",children:"Colocar Wallet"}),(0,a.jsx)("div",{className:"mt-2 flex",children:(0,a.jsx)("input",{type:"text",name:"text",id:"text",className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",placeholder:"0x000000",onChange:e=>el(e.target.value)})})]}),(0,a.jsxs)("div",{className:"mx-8 mt-4 grid grid-cols-1 gap-4 sm:grid-cols-1 ",children:[(0,a.jsx)("button",{type:"button",onClick:()=>eo(en,!0),className:"rounded-md bg-green-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-green-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-green-600",children:"Agregar"}),(0,a.jsx)("button",{type:"button",onClick:()=>eo(en,!1),className:"rounded-md bg-green-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-green-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-green-600",children:"Quitar"})]})]})}),(0,a.jsxs)("div",{className:"box-card shadow-b card-gradient relative  mx-auto mb-16 mt-12 max-w-2xl rounded-lg   bg-cover bg-local bg-center bg-no-repeat pb-7 shadow",children:[2===s.pool&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h1",{className:"mt-4 text-center text-2xl text-white",children:"Time to unlock"}),(0,a.jsx)(L,{time:f.unlockDate})]}),(0,a.jsxs)("div",{className:"relative mt-2.5 px-4",children:[(0,a.jsx)("input",{type:"text",name:"last-name",id:"last-name",autoComplete:"family-name",placeholder:"To Receive BNB",className:"tlt block w-full rounded-md border-0 bg-black px-3.5 py-4 text-gray-100 shadow-sm ring-1 ring-inset ring-[#B3B3B3] placeholder:text-gray-200 focus:ring-2 focus:ring-inset focus:ring-yellow-600 sm:text-sm sm:leading-6",value:f.totalDeposits_,readOnly:!0}),(0,a.jsx)("div",{className:"tlt pointer-events-none absolute inset-y-0 right-0 mt-[1px] flex items-center pr-9 lg:mt-0",children:(0,a.jsx)("span",{className:"text-gray-200 sm:text-sm",id:"price-currency",children:"CRP"})})]}),(0,a.jsxs)("div",{className:"mt-4 text-center text-white",children:["Unlock in USD: ",(0,a.jsx)(l.Z,{value:f.totalDeposits_})," $"]}),(0,a.jsx)("div",{className:"mx-auto mt-5 max-w-md px-5",children:(0,a.jsx)("button",{className:"hidden w-full items-center rounded-md bg-red-600 px-8 py-3 text-lg font-medium text-white shadow-sm focus:outline-none focus:ring-2 focus:ring-slate-900 focus:ring-offset-2",onClick:()=>es(2,!0),disabled:!c,children:"Finish to fly CRP"})})]})]})]})})};var X=s(6241),H=s(1594);let $=function(e){let{open:t,setOpen:s,background:n=!0,allowClickToClose:l=!0,children:i,size:c="md",flat:o,closeButton:d,className:m}=e;return(0,a.jsx)(_.u.Root,{show:t,as:r.Fragment,children:(0,a.jsxs)(X.V,{as:"div",className:"relative z-[999]",onClose:l?s:()=>{},children:[(0,a.jsx)(_.u.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-90 transition-opacity"})}),(0,a.jsx)("div",{className:"fixed inset-0 z-50 overflow-y-auto",children:(0,a.jsx)("div",{className:"flex min-h-full items-center justify-center text-center sm:items-center sm:p-0",children:(0,a.jsx)(_.u.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,a.jsxs)(X.V.Panel,{className:(0,D.Z)("align-center inline-block transform overflow-hidden rounded-lg text-left shadow-xl transition-all sm:align-middle",{"mt-12":d,"m-8 p-10":!o," bg-yellow-400":!0===n,"max-w-md md:w-full md:max-w-sm":"sm"===c,"max-w-md md:w-full md:max-w-md":"md"===c,"max-w-md md:w-full md:max-w-lg":"lg"===c,"max-w-md md:w-full md:max-w-xl":"xl"===c,"max-w-md md:w-full md:max-w-2xl":"2xl"===c,"max-w-md md:w-full md:max-w-3xl":"3xl"===c},m),children:[(0,a.jsx)("button",{onClick:()=>s(!1),className:"absolute left-2 top-2 z-50 md:left-4 md:top-4",type:"button",children:(0,a.jsx)(H.Z,{className:"h-6 w-6 text-black"})}),i]})})})})]})})};function Y(){let[e,t]=r.useState(!1),s={chainId:"0x38",chainName:"BNB smart chain",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:["https://bscrpc.com/"],blockExplorerUrls:["https://bscscan.com/"]};async function n(){if(window.ethereum)try{await window.ethereum.request({method:"eth_requestAccounts"})}catch(e){console.error("El usuario rechaz\xf3 la conexi\xf3n",e)}else alert("Por favor instala MetaMask primero.")}async function l(){try{await n(),await window.ethereum.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:"0x86333e34c8804532ae34207c46e741cbc3ff3fe3",symbol:"CRYPTOPESO",decimals:18,image:"https://miner.cryptopeso.co/crypto-pesos.png"}}})?h.ZP.success("Token agregado a MetaMask"):h.ZP.success("El token ya estaba agregado")}catch(e){console.error("Hubo un error al agregar el token a MetaMask",e)}}async function i(e){try{await window.ethereum.request({method:"wallet_addEthereumChain",params:[e]}),h.ZP.success("Red ".concat(e.chainName," agregada a MetaMask"))}catch(e){console.error("Error adding the network:",e),e.message.includes("nativeCurrency.symbol does not match")?h.ZP.error("Ya tienes una red con el mismo ID de cadena pero con un s\xedmbolo de moneda nativa diferente. Por favor, elimina o actualiza la red existente en MetaMask y vuelve a intentarlo."):h.ZP.error(e.message)}}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",onClick:()=>t(!0),className:"mt-1 rounded-md bg-gray-100 px-2 py-2 text-xs font-bold text-black",children:"\uD83E\uDD8A ADD Network + Token"}),(0,a.jsxs)($,{size:"xl",open:e,setOpen:t,children:[(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"mt-3 text-center sm:mt-5",children:(0,a.jsx)(X.V.Title,{as:"h3",className:"dark:text-dark-100 text-lg font-medium leading-6 text-gray-900",children:"Add the main networks to your wallet"})})}),(0,a.jsxs)("div",{className:"mt-5 grid grid-flow-row-dense gap-y-1 sm:mt-6 sm:grid-cols-2 sm:gap-3",children:[(0,a.jsx)("button",{type:"button",onClick:()=>i(s),className:"group rounded-lg border border-gray-300 bg-white text-black transition duration-300 hover:ring-2 hover:ring-gray-200 focus:outline-none focus:ring-2 focus:ring-white  focus:ring-offset-2 ",children:(0,a.jsx)("img",{src:" https://s3.magic-api.xyz/beats-miner-v3/btn-binance.png",className:""})}),(0,a.jsx)("button",{type:"button",onClick:l,className:"group rounded-lg border border-gray-300 bg-white text-black transition duration-300 hover:ring-2 hover:ring-gray-200 focus:outline-none focus:ring-2 focus:ring-white  focus:ring-offset-2 ",children:(0,a.jsx)("img",{src:" https://s3.magic-api.xyz/beats-miner-v3/btn-crypto_pesos.png",className:""})})]})]})]})}let q=function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:" fixed bottom-1 right-2 z-10 z-[99999999]  text-black lg:right-7 lg:text-white",children:(0,a.jsx)("a",{target:"_blank",className:"before:bg-brand flex  flex-col items-center  rounded-lg p-2 text-sm font-semibold before:absolute before:h-1 before:w-1 before:content-[''''] lg:text-base lg:font-medium  ",href:"https://poocoin.app/tokens/0x86333e34c8804532ae34207c46e741cbc3ff3fe3",rel:"noreferrer",children:(0,a.jsx)("img",{src:"https://s3.magic-api.xyz/beats-miner-v4/buy-cryptopesos.png",alt:"",className:"h-[5.4rem] w-auto lg:h-24"})})}),(0,a.jsxs)("div",{className:" overflow-x-hidden bg-black bg-cover bg-fixed bg-center",children:[(0,a.jsx)(O,{}),(0,a.jsx)(c,{}),(0,a.jsxs)("div",{className:"md:aspect-video fixed bottom-3 left-2 z-[9999] flex   flex-col justify-between overflow-hidden  rounded-lg border border-white/5  bg-[#ffcc02] px-3 py-2 md:px-10 md:py-5 lg:bottom-3 lg:left-4",children:[(0,a.jsxs)("h4",{className:"text-xs font-bold  text-black",children:["Price CryptoPeso:"," ",(0,a.jsx)("span",{children:(0,a.jsx)(l.Z,{})})," ","$"]}),(0,a.jsxs)("h4",{className:"text-xs  font-bold text-black",children:["Price BNB:"," ",(0,a.jsx)("span",{children:(0,a.jsx)(n,{})})," ","$"]}),(0,a.jsx)(Y,{})]})]})]})}},1626:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});let a=s(5121).Z.create({baseURL:"https://beast-miner-api.magic-api.xyz/v1"});a.interceptors.request.use(e=>{let t=localStorage.getItem("token");return t&&(e.headers.Authorization="Bearer ".concat(t)),e}),a.interceptors.response.use(e=>e.data);let r=a}},e=>{var t=t=>e(e.s=t);e.O(0,[548,888,774,179],()=>t(5728)),_N_E=e.O()}]);