1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1699],{91848:()=>{},58954:()=>{},39653:(e,t,n)=>{Promise.resolve().then(n.bind(n,66968)),Promise.resolve().then(n.bind(n,2005)),Promise.resolve().then(n.bind(n,39753)),Promise.resolve().then(n.bind(n,23398))},66968:(e,t,n)=>{"use strict";n.d(t,{default:()=>p});var a=n(95155),i=n(19749),l=n(12115),s=n(24231);function o(e){let t,n,o,c,u,d;let p=(0,i.c)(10),{historicalData:m,cryptoData:y}=e;p[0]===Symbol.for("react.memo_cache_sentinel")?(t=["Date","Value"],p[0]=t):t=p[0],p[1]!==m.prices?(n=[t,...m.prices],p[1]=m.prices,p[2]=n):n=p[2];let h=n,b=y.toUpperCase()+" daily chart";p[3]===Symbol.for("react.memo_cache_sentinel")?(o={position:"bottom"},p[3]=o):o=p[3],p[4]!==b?(c={title:b,curveType:"function",legend:o},p[4]=b,p[5]=c):c=p[5];let x=c;return p[6]===Symbol.for("react.memo_cache_sentinel")?(u=[],p[6]=u):u=p[6],(0,l.useEffect)(r,u),p[7]!==h||p[8]!==x?(d=(0,a.jsx)("div",{children:(0,a.jsx)(s.Ay,{chartType:"LineChart",width:"350px",height:"400px",data:h,options:x})}),p[7]=h,p[8]=x,p[9]=d):d=p[9],d}function r(){}var c=n(50376);function u(e){let t,n,s,o;let r=(0,i.c)(12),{setFilterFunction:u,selectionmenu:p}=e,[m,y]=(0,l.useState)("");console.log(p);let h=(0,c.useSearchParams)();r[0]!==h?(t=h.get("filter"),r[0]=h,r[1]=t):t=r[1];let b=t;console.log(b);let x=(0,c.useRouter)();r[2]!==b||r[3]!==x||r[4]!==u?(n=e=>{console.log(e.target.value),y(e.target.value),u(e.target.value),console.log("triggered"),""==e.target.value?(console.log("triggered"),b&&x.push("/Crypto/Crypto-Predictions/",{scroll:!1})):(console.log("triggered"),x.push("/Crypto/Crypto-Predictions/?filter=".concat(e.target.value),{scroll:!1}))},r[2]=b,r[3]=x,r[4]=u,r[5]=n):n=r[5];let g=n;return r[6]!==p?(s=p.map(d),r[6]=p,r[7]=s):s=r[7],r[8]!==m||r[9]!==g||r[10]!==s?(o=(0,a.jsx)("div",{className:"p-2",children:(0,a.jsx)("select",{className:"select select-lg w-full max-w-xs bg-black",value:m,onChange:g,autoWidth:!0,children:s})}),r[8]=m,r[9]=g,r[10]=s,r[11]=o):o=r[11],o}function d(e){let{Value:t,Label:n}=e;return(0,a.jsx)("option",{value:t,children:n})}function p(e){let t,n,s,r,c,d,p,m,y,h,b,x,g,f,v,w,j,T,S,_,N,C,M,k,B,P,E,F,G,L,W,A,Y,D,H,V,z,O,I,U,$,R,J;let Z=(0,i.c)(102),{fetchprediction:q,fetchCryptoPriceData:K}=e,[Q,X]=(0,l.useState)(null),[ee,et]=(0,l.useState)(1),[en,ea]=(0,l.useState)(null),[ei,el]=(0,l.useState)(null),[es,eo]=(0,l.useState)(null),[er,ec]=(0,l.useState)("bg-white"),[eu,ed]=(0,l.useState)("bg-white");Z[0]!==Q||Z[1]!==K?(t=async function(){console.log("triggered");let e=null==Q?void 0:Q.crypto;console.log(e);let t=await K(e);console.log(t),eo(t)},Z[0]=Q,Z[1]=K,Z[2]=t):t=Z[2];let ep=t;Z[3]!==Q||Z[4]!==q||Z[5]!==en?(n=async function(){ec("bg-white"),ed("bg-lime-400"),console.log("triggered");let e=null==Q?void 0:Q.crypto,t=await q(e,10);console.log(t),r(t),X(t),et(10)},s=async function(){ed("bg-white"),ec("bg-lime-400"),console.log("triggered");let e=null==Q?void 0:Q.crypto,t=await q(e,1);console.log(t),r(t),X(t),et(1)},console.log(en),r=async function(e){let t=((1-e.recentprice/e.cryptoprediction)*100).toFixed(2)+"%";console.log(t),console.log(t+"%"),t.includes("-")?(ea(t),el("down")):(ea(t),el("up"))},Z[3]=Q,Z[4]=q,Z[5]=en,Z[6]=n,Z[7]=s,Z[8]=r):(n=Z[6],s=Z[7],r=Z[8]);let em=r;Z[9]!==q||Z[10]!==em?(c=async function(e,t){console.log(e);let n=await q(e,void 0===t?1:t);console.log(n),r(n),X(n)},Z[9]=q,Z[10]=em,Z[11]=c):c=Z[11];let ey=c,eh=null==Q?void 0:Q.dateUnEdited;if(Z[12]!==eh||Z[13]!==ee){let e=new Date(eh);if(d=ee,1==ee){let t;let n=e.getTime()+864e5;Z[15]!==n?(t=new Date(n),Z[15]=n,Z[16]=t):t=Z[16],d=t}if(10==ee){let t;let n=e.getTime()+9504e5;Z[17]!==n?(t=new Date(n),Z[17]=n,Z[18]=t):t=Z[18],d=t}Z[12]=eh,Z[13]=ee,Z[14]=d}else d=Z[14];Z[19]!==d?(p=d.getDay(),Z[19]=d,Z[20]=p):p=Z[20];let eb=p,ex=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];Z[21]!==Q?(m=[Q],Z[21]=Q,Z[22]=m):m=Z[22],(0,l.useEffect)(()=>{ep(),console.log(null),ev(ex[eb])},m);let[eg,ef]=(0,l.useState)(ex[eb]),ev=ef;Z[23]===Symbol.for("react.memo_cache_sentinel")?(y=[{Value:"",Label:"Select Crypto"},{Value:"ethereum",Label:"Ethereum"},{Value:"bitcoin",Label:"Bitcoin"},{Value:"cardano",Label:"Cardano"},{Value:"polkadot",Label:"Polkadot"},{Value:"solana",Label:"Solana"}],Z[23]=y):y=Z[23];let ew=y;Z[24]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsx)("div",{children:(0,a.jsx)("h1",{className:"text-4xl md:text-4xl flex items-center justify-center p-10 ",children:"Crypto Predictions - Beta"})}),Z[24]=h):h=Z[24],Z[25]!==(null==Q?void 0:Q.crypto)||Z[26]!==es?(b=es&&(0,a.jsx)(o,{historicalData:es,cryptoData:null==Q?void 0:Q.crypto}),Z[25]=null==Q?void 0:Q.crypto,Z[26]=es,Z[27]=b):b=Z[27],Z[28]!==b?(x=(0,a.jsx)("div",{className:"flex items-center justify-center",children:b}),Z[28]=b,Z[29]=x):x=Z[29],Z[30]===Symbol.for("react.memo_cache_sentinel")?(g=(0,a.jsx)("br",{}),Z[30]=g):g=Z[30],Z[31]!==ey?(f=(0,a.jsx)("div",{className:"flex items-center justify-center",children:(0,a.jsx)(u,{selectionmenu:ew,setFilterFunction:ey})}),Z[31]=ey,Z[32]=f):f=Z[32];let ej="btn ".concat(er);Z[33]!==s||Z[34]!==ej?(v=(0,a.jsx)("button",{className:ej,onClick:s,children:"One Day ForeCast"}),Z[33]=s,Z[34]=ej,Z[35]=v):v=Z[35];let eT="btn ".concat(eu);Z[36]!==n||Z[37]!==eT?(w=(0,a.jsx)("button",{className:eT,onClick:n,children:"Ten Day ForeCast"}),Z[36]=n,Z[37]=eT,Z[38]=w):w=Z[38],Z[39]!==v||Z[40]!==w?(j=(0,a.jsxs)("div",{className:"flex items-center justify-center gap-5 mb-3 flex-wrap",children:[v,w]}),Z[39]=v,Z[40]=w,Z[41]=j):j=Z[41],Z[42]===Symbol.for("react.memo_cache_sentinel")?(T=(0,a.jsx)("div",{className:"stat-figure text-primary",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"inline-block w-8 h-8 stroke-current",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"})})}),Z[42]=T):T=Z[42];let eS=null==Q?void 0:Q.crypto,e_=null==Q?void 0:Q.recentDate;Z[43]!==eS||Z[44]!==e_?(S=(0,a.jsxs)("div",{className:"stat-title",children:[eS," Price on ",e_," "]}),Z[43]=eS,Z[44]=e_,Z[45]=S):S=Z[45],Z[46]!==(null==Q?void 0:Q.recentprice)?(_=null==Q?void 0:Q.recentprice.toFixed(2),Z[46]=null==Q?void 0:Q.recentprice,Z[47]=_):_=Z[47],Z[48]!==_?(N=(0,a.jsxs)("div",{className:"stat-value text-primary",children:["$",_]}),Z[48]=_,Z[49]=N):N=Z[49],Z[50]===Symbol.for("react.memo_cache_sentinel")?(C=(0,a.jsx)("div",{className:"stat-desc",children:"Current Price"}),Z[50]=C):C=Z[50],Z[51]!==S||Z[52]!==N?(M=(0,a.jsxs)("div",{className:"stat ",children:[T,S,N,C]}),Z[51]=S,Z[52]=N,Z[53]=M):M=Z[53],Z[54]===Symbol.for("react.memo_cache_sentinel")?(k=(0,a.jsx)("div",{className:"stat-figure text-secondary",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"inline-block w-8 h-8 stroke-current",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 10V3L4 14h7v7l9-11h-7z"})})}),Z[54]=k):k=Z[54];let eN=null==Q?void 0:Q.crypto;Z[55]!==eg||Z[56]!==ee||Z[57]!==eN?(B=(0,a.jsxs)("div",{className:"stat-title",children:[eg," in (",ee," days) ",eN," Price Estimation"]}),Z[55]=eg,Z[56]=ee,Z[57]=eN,Z[58]=B):B=Z[58],Z[59]!==(null==Q?void 0:Q.cryptoprediction)?(P=null==Q?void 0:Q.cryptoprediction.toFixed(2),Z[59]=null==Q?void 0:Q.cryptoprediction,Z[60]=P):P=Z[60],Z[61]!==P?(E=(0,a.jsxs)("div",{className:"stat-value text-secondary",children:["$",P]}),Z[61]=P,Z[62]=E):E=Z[62],Z[63]===Symbol.for("react.memo_cache_sentinel")?(F=(0,a.jsx)("div",{className:"stat-desc",children:"Estimated Price"}),Z[63]=F):F=Z[63],Z[64]!==B||Z[65]!==E?(G=(0,a.jsxs)("div",{className:"stat ",children:[k,B,E,F]}),Z[64]=B,Z[65]=E,Z[66]=G):G=Z[66],Z[67]===Symbol.for("react.memo_cache_sentinel")?(L=(0,a.jsx)("div",{className:"stat-figure text-secondary"}),Z[67]=L):L=Z[67],Z[68]!==en||Z[69]!==ei?(W="up"==ei&&(0,a.jsxs)("div",{className:"stat-value text-green-400",children:[en," - Gain"]}),Z[68]=en,Z[69]=ei,Z[70]=W):W=Z[70],Z[71]!==en||Z[72]!==ei?(A="down"==ei&&(0,a.jsx)("div",{className:"stat-value text-red-400",children:en}),Z[71]=en,Z[72]=ei,Z[73]=A):A=Z[73],Z[74]===Symbol.for("react.memo_cache_sentinel")?(Y=(0,a.jsx)("div",{className:"stat-title",children:"Price"}),Z[74]=Y):Y=Z[74],Z[75]!==ei?(D=(0,a.jsxs)("div",{className:"stat-desc text-secondary",children:["Your Money will go ",ei]}),Z[75]=ei,Z[76]=D):D=Z[76],Z[77]!==W||Z[78]!==A||Z[79]!==D?(H=(0,a.jsxs)("div",{className:"stat ",children:[L,W,A,Y,D]}),Z[77]=W,Z[78]=A,Z[79]=D,Z[80]=H):H=Z[80],Z[81]!==M||Z[82]!==G||Z[83]!==H?(V=(0,a.jsxs)("div",{className:"stats shadow flex flex-col items-center justify-center ml-[1%] mr-[1%] mt-[2%] md:ml-[30%] md:mr-[30%] xl:pl-[5%] xl:pr-[15%] ",children:[M,G,H]}),Z[81]=M,Z[82]=G,Z[83]=H,Z[84]=V):V=Z[84],Z[85]===Symbol.for("react.memo_cache_sentinel")?(z=(0,a.jsx)("br",{}),O=(0,a.jsx)("br",{}),Z[85]=z,Z[86]=O):(z=Z[85],O=Z[86]);let eC=null==Q?void 0:Q.crypto;return Z[87]!==(null==Q?void 0:Q.cryptoprediction)?(I=null==Q?void 0:Q.cryptoprediction.toFixed(2),Z[87]=null==Q?void 0:Q.cryptoprediction,Z[88]=I):I=Z[88],Z[89]!==eg||Z[90]!==eC||Z[91]!==I?(U=(0,a.jsx)("div",{children:(0,a.jsxs)("p",{children:["By ",eg," ",eC," is predicted to be worth $",I," U.S Dollars"]})}
1),Z[89]=eg,Z[90]=eC,Z[91]=I,Z[92]=U):U=Z[92],Z[93]===Symbol.for("react.memo_cache_sentinel")?($=(0,a.jsx)("div",{children:(0,a.jsx)("p",{children:(0,a.jsx)("b",{children:"This is Not Financial Advice"})})}),Z[93]=$):$=Z[93],Z[94]!==U?(R=(0,a.jsxs)("div",{className:"flex flex-col items-center gap-10 justify-center pl-[10%] pr-[10%] pb-[10%] text-lg",children:[U,$]}),Z[94]=U,Z[95]=R):R=Z[95],Z[96]!==x||Z[97]!==f||Z[98]!==j||Z[99]!==V||Z[100]!==R?(J=(0,a.jsxs)("div",{className:" text-white ",children:[h,x,g,f,j,V,z,O,R]}),Z[96]=x,Z[97]=f,Z[98]=j,Z[99]=V,Z[100]=R,Z[101]=J):J=Z[101],J}},2005:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});var a=n(95155),i=n(19749),l=n(12115),s=n(19004),o=n(41897),r=n(6507);let c="";function u(e){let t,n,u,d,p,m,y,h,b,x,g,f,v,w,j,T,S,_,N,C,M,k,B,P,E,F;let G=(0,i.c)(55),[L,W]=(0,l.useState)(null),[A,Y]=(0,l.useState)("this field will populate once you play a game"),[D,H]=(0,l.useState)(null),[V,z]=(0,l.useState)(!1),[O,I]=(0,l.useState)(null),[U,$]=(0,l.useState)("N/A");(0,l.useState)("");let[R,J]=(0,l.useState)(""),[Z,q]=(0,l.useState)("$1000 (disconnected)"),[K,Q]=(0,l.useState)(""),[X,ee]=(0,l.useState)(!1),[et,en]=(0,l.useState)("Press Play Game"),[ea,ei]=(0,l.useState)("Connect Your Wallet To see The Jackpot!");G[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{try{let e=new s.j(window.ethereum);W(e),ee(!0)}catch(e){ee(!1)}},n=[],G[0]=t,G[1]=n):(t=G[0],n=G[1]),(0,l.useEffect)(t,n),G[2]!==L?(u=async function(){L.getSigner();let e=await new o.NZ("0x4fF8570ca3A00Ff1B8087d7dA5C649fB8bBC1c8F",[{inputs:[{internalType:"address",name:"_houseWallet",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"balance",type:"uint256"}],name:"GetBalance",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"number",type:"uint256"},{indexed:!1,internalType:"uint256",name:"gamesPlayed",type:"uint256"},{indexed:!1,internalType:"uint256",name:"balance",type:"uint256"}],name:"YouLoose",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"number",type:"uint256"},{indexed:!1,internalType:"uint256",name:"gamesPlayed",type:"uint256"},{indexed:!1,internalType:"uint256",name:"balance",type:"uint256"}],name:"YouWin",type:"event"},{inputs:[],name:"_gameCredits",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"balance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"gameOwner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBalance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"player",type:"address"}],name:"getGamesCredits",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"player",type:"address"}],name:"getGamesPlayed",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"houseWallet",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"initializeValue",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"initialized",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_guess",type:"uint256"}],name:"placeBet",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"randomNumber",type:"uint256"},{internalType:"address",name:"player1",type:"address"}],name:"playGame",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"result",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"transfer",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}],L.getSigner()),t=await L.getBalance(e.address);q(r.ck(t)+" ETH"),ei("")},G[2]=L,G[3]=u):u=G[3];let el=u;G[4]!==el||G[5]!==L?(d=async function(){try{if(L){await L.send("eth_requestAccounts",[]);let e=L.getSigner(),t=await e.getAddress();H(t),z(!0);let n=await L.getBalance(t);I(r.ck(n)),el()}else Q('You will need the MetaMask wallet extention or any compatible ethereum wallet to play this game. If on mobile you need to open this app on MetaMask/Coinbase Wallet or any compatible etherium wallet.<b><a class=" text-4xl underline" href = https://metamask.io/download/> Please Download MetaMask.</a> </b>')}catch(e){console.error("Failed to connect wallet:",e)}},G[4]=el,G[5]=L,G[6]=d):d=G[6];let es=d;G[7]===Symbol.for("react.memo_cache_sentinel")?(p=function(){H(null),z(!1),I(null)},G[7]=p):p=G[7];let eo=p;G[8]===Symbol.for("react.memo_cache_sentinel")?(m=function(){let e=new Date,t=e.getHours(),n=e.getMinutes();return"".concat(t.toString().padStart(2,"0"),":").concat(n.toString().padStart(2,"0"))},G[8]=m):m=G[8];let er=m;G[9]!==L||G[10]!==D?(y=async function(e){if(D){let t=r.g5(e.toString());try{let e=L.getSigner(),n=await e.sendTransaction({to:"0x4fF8570ca3A00Ff1B8087d7dA5C649fB8bBC1c8F",value:t});c="<p>"+er()+" Mining Transaction...</p> + <p>"+er()+"TransactionHash: "+n.hash+"</p>"+c,en(c),await n.wait(),c="<p>"+er()+"Transaction Mined!</p>"+c,en(c)}catch(e){console.error("Error sending Ether:",e)}}else console.error("Wallet not connected.")},G[9]=L,G[10]=D,G[11]=y):y=G[11];let ec=y;G[12]!==R||G[13]!==e||G[14]!==L||G[15]!==D?(h=async function(){en(c="<p>"+er()+"Fetching Wallet Permission...</p>"+c),(parseInt(R)>10||1>parseInt(R))&&en(c="<p>"+er()+" Please enter a valid number</p>"+c);try{L.getSigner();let t=await new o.NZ("0x4fF8570ca3A00Ff1B8087d7dA5C649fB8bBC1c8F",[{inputs:[{internalType:"address",name:"_houseWallet",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"balance",type:"uint256"}],name:"GetBalance",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"number",type:"uint256"},{indexed:!1,internalType:"uint256",name:"gamesPlayed",type:"uint256"},{indexed:!1,internalType:"uint256",name:"balance",type:"uint256"}],name:"YouLoose",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"number",type:"uint256"},{indexed:!1,internalType:"uint256",name:"gamesPlayed",type:"uint256"},{indexed:!1,internalType:"uint256",name:"balance",type:"uint256"}],name:"YouWin",type:"event"},{inputs:[],name:"_gameCredits",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"balance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"gameOwner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBalance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"player",type:"address"}],name:"getGamesCredits",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"player",type:"address"}],name:"getGamesPlayed",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"houseWallet",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"initializeValue",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"initialized",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_guess",type:"uint256"}],name:"placeBet",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"randomNumber",type:"uint256"},{internalType:"address",name:"player1",type:"address"}],name:"playGame",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"result",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"transfer",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}],L.getSigner());await t.placeBet(R);let n=await t.getGamesCredits(D);Y(n.toString());let a=await L.getBalance(t.address),i=r.ck(a);c="<p>"+er()+"Mining Transaction...</p>"+c,en(c);let l=await e.propFunction(D);$(l[1]),!0==l[0]?(c="<p>"+er()+" you won, you will be paid"+i+"ethYour wallet balance will be updated once the transaction is mined, this should take less than a minute</p>"+c,en(c)):(c="<p>"+er()+" you lost</p>"+c,en(c),ei(i+" ETH"))}catch(e){e.message.includes("You have no credits left")?en(c="<p>"+er()+" You have no credits left, please deposit .0001 eth for 1 credit </p>"+c):console.error(e)}},G[12]=R,G[13]=e,G[14]=L,G[15]=D,G[16]=h):h=G[16];let eu=h;G[17]===Symbol.for("react.memo_cache_sentinel")?(v=(0,a.jsx)("h1",{className:"text-4xl bg-teal-500 text-center text-white",children:"LETS P
1LAY GUESS THE NUMBER!"}),w=(0,a.jsx)("br",{}),b=(0,a.jsx)("p",{className:"text-xl",children:"This is a crypto gambling game built on the Ethereum blockchain. You must connect to your Ethereum Wallet and purchase a game token. Guess the winning number (1-10). You will win the current jackpot if you guess correctly. If an incorrect guess is made the house will keep 1/10th of the winnings and the rest will go to the jackpot. This game is in beta only playable on optimism. You will neeed Optimism ETH to play. The easiest way to get Optimism ETH, would be to buy normal ETH on Coinbase... and then use the coinbase wallet bridge to convert ETH into Optimism ETH"}),x=(0,a.jsx)("span",{className:"text-3xl text-white bg-pink-600",children:"Please do not try to connect with any other network except for Optimism or you will lose funds."}),g=(0,a.jsx)("br",{}),f=(0,a.jsx)("br",{}),G[17]=b,G[18]=x,G[19]=g,G[20]=f,G[21]=v,G[22]=w):(b=G[17],x=G[18],g=G[19],f=G[20],v=G[21],w=G[22]),G[23]!==Z?(j=(0,a.jsxs)("h2",{className:"text-4xl",children:["Current JackPot:",(0,a.jsxs)("span",{className:"bg-green-600 text-white",children:[" ",Z]})]}),G[23]=Z,G[24]=j):j=G[24],G[25]===Symbol.for("react.memo_cache_sentinel")?(T=(0,a.jsx)("br",{}),G[25]=T):T=G[25],G[26]!==U?(S=(0,a.jsxs)("h2",{className:"text-4xl",children:["Winning Number:",(0,a.jsxs)("span",{className:"bg-blue-600 text-white",children:[" ",U]})]}),G[26]=U,G[27]=S):S=G[27],G[28]===Symbol.for("react.memo_cache_sentinel")?(_=(0,a.jsx)("br",{}),G[28]=_):_=G[28];let ed=R||"N/A";return G[29]!==ed?(N=(0,a.jsxs)("h2",{className:"text-4xl",children:["You Guessed:",(0,a.jsxs)("span",{className:"bg-blue-600 text-white",children:[" ",ed]})]}),G[29]=ed,G[30]=N):N=G[30],G[31]===Symbol.for("react.memo_cache_sentinel")?(C=(0,a.jsx)("br",{}),G[31]=C):C=G[31],G[32]!==A?(M=(0,a.jsxs)("h2",{className:"text-4xl",children:["Remaining Game Credits: ",(0,a.jsx)("span",{className:"text-2xl bg-yellow-600 text-white",children:A})]}),G[32]=A,G[33]=M):M=G[33],G[34]===Symbol.for("react.memo_cache_sentinel")?(k=(0,a.jsx)("br",{}),G[34]=k):k=G[34],G[35]!==ea?(B=(0,a.jsx)("p",{className:" text-blue ",children:ea}),G[35]=ea,G[36]=B):B=G[36],G[37]===Symbol.for("react.memo_cache_sentinel")?(P=(0,a.jsx)("br",{}),G[37]=P):P=G[37],G[38]!==O||G[39]!==ec||G[40]!==es||G[41]!==V||G[42]!==R||G[43]!==eu||G[44]!==et||G[45]!==D||G[46]!==K?(E=V?(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"bg-amber-500 text-white max-w-sm",children:[(0,a.jsx)("h2",{children:"Your Wallet Information"}),(0,a.jsxs)("p",{children:["Connected Wallet: ",D]}),(0,a.jsxs)("p",{children:["Balance: ",O," ETH"]}),(0,a.jsx)("button",{className:"bg-pink-600 hover:bg-green-600 text-white font-bold py-2 px-4 rounded",onClick:eo,children:"Disconnect Wallet"})]}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{className:"flex gap-16",children:[(0,a.jsx)("button",{className:"bg-indigo-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded",onClick:()=>ec(1e-4),children:"Buy 1 Game Credit (.0001 eth)"}),(0,a.jsx)("button",{className:"bg-indigo-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded",onClick:()=>ec(5e-4),children:"Buy 5 Game Credits (.0005 eth)"}),(0,a.jsx)("button",{className:"bg-indigo-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded",onClick:()=>ec(.001),children:"Buy 10 Game Credits (.001 eth)"})]}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{children:"Enter the Number You want To Guess Between 1-10:"}),(0,a.jsx)("br",{}),(0,a.jsx)("input",{type:"text",value:R,onChange:e=>J(e.target.value),placeholder:"Guess a number"})]}),(0,a.jsx)("br",{}),(0,a.jsx)("button",{className:"bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded",onClick:eu,children:"Play Game"}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("h1",{className:"text-4xl",children:"Game Logs:"}),(0,a.jsx)("br",{}),(0,a.jsx)("p",{className:"text-3xl",dangerouslySetInnerHTML:{__html:et}})]}):(0,a.jsxs)("div",{children:[(0,a.jsx)("button",{className:"bg-indigo-500 hover:bg-green-600 text-white font-bold py-2 px-4 roun
1ded",onClick:es,children:"Connect Wallet"}),(0,a.jsx)("p",{className:"bg-pink-600 text-xl text-white",dangerouslySetInnerHTML:{__html:K}})]}),G[38]=O,G[39]=ec,G[40]=es,G[41]=V,G[42]=R,G[43]=eu,G[44]=et,G[45]=D,G[46]=K,G[47]=E):E=G[47],G[48]!==j||G[49]!==S||G[50]!==N||G[51]!==M||G[52]!==B||G[53]!==E?(F=(0,a.jsxs)("div",{className:"bg-violet-100 p-10",children:[v,w,b,x,g,f,j,T,S,_,N,C,M,k,B,P,E]}),G[48]=j,G[49]=S,G[50]=N,G[51]=M,G[52]=B,G[53]=E,G[54]=F):F=G[54],F}},39753:(e,t,n)=>{"use strict";n.d(t,{default:()=>x});var a=n(95155),i=n(19749),l=n(12115),s=n(61098),o=n(46688),r=n(8588),c=n(99302),u=n(57101),d=n(69811),p=n(87885),m=n(18789),y=n(95618);let h=(0,p.A)({palette:{primary:{main:u.A[500]},secondary:{main:d.A[500]}}});function b(e){let t,n,l,s,o,u;let d=(0,i.c)(15);d[0]!==e?({children:t,value:s,index:n,...l}=e,d[0]=e,d[1]=t,d[2]=n,d[3]=l,d[4]=s):(t=d[1],n=d[2],l=d[3],s=d[4]);let p=s!==n,m="simple-tabpanel-".concat(n),y="simple-tab-".concat(n);return d[5]!==t||d[6]!==n||d[7]!==s?(o=s===n&&(0,a.jsx)(c.default,{sx:{p:0},children:(0,a.jsx)(r.default,{children:t})}),d[5]=t,d[6]=n,d[7]=s,d[8]=o):o=d[8],d[9]!==l||d[10]!==p||d[11]!==m||d[12]!==y||d[13]!==o?(u=(0,a.jsx)("div",{role:"tabpanel",hidden:p,id:m,"aria-labelledby":y,...l,children:o}),d[9]=l,d[10]=p,d[11]=m,d[12]=y,d[13]=o,d[14]=u):u=d[14],u}function x(e){let t,n,o,r,u,d,p,y;let x=(0,i.c)(19),{landingpage:f,tabContent:v}=e;x[0]!==f||x[1]!==v?(t=function(e,t){let n=0;for(let a of e){if(a.landingPage==t)return n;n+=1}}(v,f),x[0]=f,x[1]=v,x[2]=t):t=x[2];let[w,j]=l.useState(t);x[3]===Symbol.for("react.memo_cache_sentinel")?(n=(e,t)=>{j(t)},x[3]=n):n=x[3];let T=n;if(x[4]===Symbol.for("react.memo_cache_sentinel")?(o={width:"100%",background:"linear-gradient(45deg, purple, darkblue)",boxShadow:"0px 0px 10px 3px rgba(255,255,255,0.5)",marginTop:"20px"},x[4]=o):o=x[4],x[5]===Symbol.for("react.memo_cache_sentinel")?(r={borderBottom:1,borderColor:"divider"},x[5]=r):r=x[5],x[6]!==v?(u=v.map(g),x[6]=v,x[7]=u):u=x[7],x[8]!==u||x[9]!==w?(d=(0,a.jsx)(c.default,{sx:r,children:(0,a.jsx)(s.default,{value:w,onChange:T,"aria-label":"basic tabs example",centered:!0,textColor:"secondary",indicatorColor:"secondary",children:u})}),x[8]=u,x[9]=w,x[10]=d):d=x[10],x[11]!==v||x[12]!==w){let e;x[14]!==w?(e=(e,t)=>(0,a.jsx)(b,{value:w,index:t,children:e.Content}),x[14]=w,x[15]=e):e=x[15],p=v.map(e),x[11]=v,x[12]=w,x[13]=p}else p=x[13];return x[16]!==d||x[17]!==p?(y=(0,a.jsx)("div",{children:(0,a.jsx)(m.A,{theme:h,children:(0,a.jsxs)(c.default,{sx:o,children:[d,p]})})}),x[16]=d,x[17]=p,x[18]=y):y=x[18],y}function g(e,t){return(0,a.jsx)(y.default,{href:e.landingPage,scroll:!1,children:(0,a.jsx)(o.default,{label:e.TabName,id:"simple-tab-".concat(t),"aria-controls":"simple-tabpanel-".concat(t),sx:{color:"white",fontSize:14,"@media (min-width:400px)":{fontSize:14},"@media (min-width:500px)":{fontSize:24}}})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[3398,6464,2793,2296,4231,1170,4537,3939,8441,1075,7358],()=>t(39653)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.