PageSourceSearch

https://prophet-neo.vercel.app/static/js/306.07a3f6cd.chunk.js

js prophet-neo.vercel.app collected 2026-10-03 07:33:13 UTC 16,844 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkforelook=self.webpackChunkforelook||[]).push([[306,231,275,294],{2231:function(e,n,l){l.r(n);var o=l(2791),i=l(5953),t=l(5254),r=l(3287),s=l(1091),c=l(8525),d=l(1923),u=l(2622),a=l(184);n.default=(0,c.Pi)((function(){var e,n=c.C8.status,l=c.On.market,f=c.t3.balance,x=(0,o.useRef)(null);return(0,a.jsxs)(u.Z,{open:n.deposit,setOpen:function(){return c.C8.close("deposit")},title:"Deposit",children:[(0,a.jsxs)(i.ZP,{item:!0,children:[(0,a.jsxs)(t.Z,{sx:{display:"flex",justifyContent:"space-between",mb:.5},children:[(0,a.jsx)("span",{style:{color:"#6F767E"},children:"Your Balance"}),(0,a.jsx)("span",{style:{color:"#6F767E"},children:"".concat(null!==(e=null===f||void 0===f?void 0:f[d.eh.addressHash])&&void 0!==e?e:0," ").concat(d.eh.symbol)})]}),(0,a.jsx)(r.Z,{inputRef:x,fullWidth:!0,disableUnderline:!0,type:"number",sx:{border:"2px solid #6F767E",borderRadius:"8px",mb:2,color:"#fff",pl:1,height:"50px"},endAdornment:(0,a.jsx)(s.Z,{sx:{color:"#305FF5"},children:"MAX",onClick:function(){var e;return x.current.value=null!==(e=null===f||void 0===f?void 0:f[d.eh.addressHash])&&void 0!==e?e:0}}),defaultValue:0})]}),(0,a.jsx)(i.ZP,{item:!0,children:(0,a.jsx)(s.Z,{fullWidth:!0,sx:{backgroundColor:"#305FF5",color:"#fff",borderRadius:"8px",mt:2},children:"Deposit",onClick:function(){return c.t3.deposit(l.liquidityTokenId,x.current.value).then((function(e){return c.C8.open("wait",e)})).catch((function(e){return c.t3.catch(e,"deposit")})).finally((function(){return c.C8.close("deposit")}))}})})]})}))},7370:function(e,n,l){l.r(n);var o=l(2791),i=l(5953),t=l(5254),r=l(3287),s=l(1091),c=l(4162),d=l(8525),u=l(2622),a=l(184);n.default=(0,d.Pi)((function(){var e,n,l,f,x,h,p=d.C8.status,v=d.On.market,m=d.On.balance,b=(0,o.useRef)(null);return(0,a.jsxs)(u.Z,{open:p.redeem,setOpen:function(){return d.C8.close("redeem")},title:"Redeem",children:[(0,a.jsxs)(i.ZP,{item:!0,children:[(0,a.jsxs)(t.Z,{sx:{display:"flex",justifyContent:"space-between",mb:.5},children:[(0,a.jsx)("span",{style:{color:"#6F767E"},children:"Your Balance"}),(0,a.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,a.jsx)("span",{style:{color:"#6F767E"},children:"Yes: $".concat(null!==(e=null===m||void 0===m||null===(n=m.amountTrue)||void 0===n?void 0:n.toLocaleString())&&void 0!==e?e:0)}),(0,a.jsx)("span",{style:{color:"#6F767E",textAlign:"right"},children:"No: $".concat(null!==(l=null===m||void 0===m||null===(f=m.amountFalse)||void 0===f?void 0:f.toLocaleString())&&void 0!==l?l:0)})]})]}),(0,a.jsx)(r.Z,{inputRef:b,fullWidth:!0,disableUnderline:!0,type:"number",sx:{border:"2px solid #6F767E",borderRadius:"8px",mb:2,color:"#fff",pl:1,height:"50px"},endAdornment:(0,a.jsx)(s.Z,{sx:{color:"#305FF5"},children:"MAX",onClick:function(){var e,n;return b.current.value=Math.min(null!==(e=m.amountTrue)&&void 0!==e?e:0,null!==(n=m.amountFalse)&&void 0!==n?n:0)}}),defaultValue:Math.min(null!==(x=m.amountTrue)&&void 0!==x?x:0,null!==(h=m.amountFalse)&&void 0!==h?h:0)})]}),(0,a.jsxs)(c.Z,{direction:"row",spacing:1,children:[(0,a.jsx)(s.Z,{sx:{backgroundColor:"#305FF5","&:hover":{bgcolor:"#5077f6"},color:"#fff",borderRadius:"8px",flexGrow:3},children:"Redeem",onClick:function(){return d.t3.redeem(null===v||void 0===v?void 0:v.liquidityTokenId,b.current.value).then((function(e){return d.C8.open("wait",e)})).catch((function(e){return d.t3.catch(e,"redeem")})).finally((function(){return d.C8.close("redeem")}))}}),(0,a.jsx)(s.Z,{sx:{backgroundColor:"#FF6A55","&:hover":{bgcolor:"#f1a196"},color:"#fff",borderRadius:"8px",flexGrow:1},children:"Redeem All",onClick:function(){return d.t3.redeemOnce().then((function(e){return d.C8.open("wait",e)})).catch((function(e){return d.t3.catch(e,"redeemOnce")})).finally((function(){return d.C8.close("redeem")}))}})]})]})}))},8714:function(e,n,l){l.r(n);var o=l(2791),i=l(5953),t=l(5254),r=l(4162),s=l(3287),c=l(1091),d=l(8525),u=l(2622),a=l(184);n.default=(0,d.Pi)((function(){var e,n,l=d.C8.status,f=d.On.balance,x=d.On.market,h=(0,o.useRef)(null);return(0,a.jsxs)(u.Z,{open:l.removeliquidity,setOpen:function(){return d.C8.close("removeliquidity")},title:"Remove Liquidity",children:[(0,a.jsxs)(i.ZP,{item:!0,children:[(0,a.jsxs)(t.Z,{sx:{display:"flex",justifyContent:"space-between",mb:.5},children:[(0,a.jsx)("span",{style:{color:"#6F767E"},children:"Your Balance"}),(0,a.jsx)("span",{style:{color:"#6F767E",textAlign:"right",marginBottom:"4px"},children:"".concat(null!==(e=null===f||void 0===f?void 0:f.liquidity)&&void 0!==e?e:0)})]}),(0,a.jsx)(r.Z,{direction:"row",spacing:2,children:(0,a.jsx)(s.Z,{inputRef:h,fullWidth:!0,name:"amount",placeholder:"amount",disableUnderline:!0,sx:{border:"2px s
1olid #6F767E",borderRadius:"8px",mb:2,color:"#fff",pl:1,height:"50px"},endAdornment:(0,a.jsx)(c.Z,{sx:{color:"#305FF5"},children:"MAX",onClick:function(){var e;return h.current.value=null!==(e=f.liquidity)&&void 0!==e?e:0}}),defaultValue:null!==(n=f.liquidity)&&void 0!==n?n:0})})]}),(0,a.jsx)(i.ZP,{item:!0,children:(0,a.jsx)(c.Z,{fullWidth:!0,sx:{backgroundColor:"#305FF5",color:"#fff",borderRadius:"8px",mt:2},children:"Remove Liquidity",onClick:function(){return d.t3.removeLiquidity(x.liquidityTokenId,h.current.value).then((function(e){return d.C8.open("wait",e)})).catch((function(e){return d.t3.catch(e,"removeLiquidity")})).finally((function(){return d.C8.close("removeliquidity")}))}})})]})}))},6275:function(e,n,l){l.r(n);var o=l(885),i=l(2791),t=l(5953),r=l(5254),s=l(3287),c=l(1091),d=l(8525),u=l(1895),a=l(2622),f=l(184),x=function(e){var n,l,a=e.inputRef,x=d.On.balance,h=(0,i.useState)(0),p=(0,o.Z)(h,2),v=p[0],m=p[1];return(0,f.jsxs)(t.ZP,{item:!0,children:[(0,f.jsxs)(r.Z,{sx:{display:"flex",justifyContent:"space-between",mb:.5},children:[(0,f.jsx)("span",{style:{color:"#6F767E"},children:"Your Balance"}),(0,f.jsx)("span",{style:{color:"#6F767E",textAlign:"right"},children:"No: $".concat(null!==(n=null===x||void 0===x?void 0:x.amountFalse)&&void 0!==n?n:0)})]}),(0,f.jsx)(s.Z,{inputRef:a,fullWidth:!0,disableUnderline:!0,type:"number",sx:{border:"2px solid #6F767E",borderRadius:"8px",mb:1,color:"#fff",pl:1,height:"50px"},endAdornment:(0,f.jsx)(c.Z,{sx:{color:"#305FF5"},children:"MAX",onClick:function(){var e;return m((0,u.KJ)(a.current.value=null!==(e=null===x||void 0===x?void 0:x.amountFalse)&&void 0!==e?e:0))}}),onChange:function(e){return m((0,u.KJ)(e.target.value))},defaultValue:0}),(0,f.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column",mb:.5},children:[(0,f.jsx)("span",{style:{color:"#6F767E",fontSize:"12px"},children:"You will get about ".concat(v.toLocaleString()," Yes,")}),(0,f.jsx)("span",{style:{color:"#6F767E",fontSize:"12px"},children:"Your Balance Yes will be about ".concat(((null!==(l=null===x||void 0===x?void 0:x.amountTrue)&&void 0!==l?l:0)+v).toLocaleString(),".")})]})]})};n.default=(0,d.Pi)((function(){var e=d.C8.status,n=d.On.market,l=(0,i.useRef)(null);return(0,f.jsxs)(a.Z,{open:e.sellno,setOpen:function(){return d.C8.close("sellno")},title:"Sell No",children:[(0,f.jsx)(x,{inputRef:l}),(0,f.jsx)(t.ZP,{item:!0,children:(0,f.jsx)(c.Z,{fullWidth:!0,sx:{backgroundColor:"#305FF5",color:"#fff",borderRadius:"8px",mt:2},children:"Sell No",onClick:function(){return d.t3.buy((null===n||void 0===n?void 0:n.liquidityTokenId)+2,l.current.value).then((function(e){return d.C8.open("wait",e)})).catch((function(e){return d.t3.catch(e,"buy")})).finally((function(){return d.C8.close("sellno")}))}})})]})}))},2294:function(e,n,l){l.r(n);var o=l(885),i=l(2791),t=l(5953),r=l(5254),s=l(3287),c=l(1091),d=l(8525),u=l(1895),a=l(2622),f=l(184),x=function(e){var n,l,a=e.inputRef,x=d.On.balance,h=(0,i.useState)(0),p=(0,o.Z)(h,2),v=p[0],m=p[1];return(0,f.jsxs)(t.ZP,{item:!0,children:[(0,f.jsxs)(r.Z,{sx:{display:"flex",justifyContent:"space-between",mb:.5},children:[(0,f.jsx)("span",{style:{color:"#6F767E"},children:"Your Balance"}),(0,f.jsx)("span",{style:{color:"#6F767E",textAlign:"right"},children:"Yes: $".concat(null!==(n=null===x||void 0===x?void 0:x.amountTrue)&&void 0!==n?n:0)})]}),(0,f.jsx)(s.Z,{inputRef:a,fullWidth:!0,disableUnderline:!0,type:"number",sx:{border:"2px solid #6F767E",borderRadius:"8px",mb:1,color:"#fff",pl:1,height:"50px"},endAdornment:(0,f.jsx)(c.Z,{sx:{color:"#305FF5"},children:"MAX",onClick:function(){var e;return m((0,u.EE)(a.current.value=null!==(e=null===x||void 0===x?void 0:x.amountTrue)&&void 0!==e?e:0))}}),onChange:function(e){return m((0,u.EE)(e.target.value))},defaultValue:0}),(0,f.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column",mb:.5},children:[(0,f.jsx)("span",{style:{color:"#6F767E",fontSize:"12px"},children:"You will get about ".concat(v.toLocaleString()," NO,")}),(0,f.jsx)("span",{style:{color:"#6F767E",fontSize:"12px"},children:"Your Balance No will be about ".concat(((null!==(l=null===x||void 0===x?void 0:x.amountFalse)&&void 0!==l?l:0)+v).toLocaleStr
1ing(),".")})]})]})};n.default=(0,d.Pi)((function(){var e=d.C8.status,n=d.On.market,l=(0,i.useRef)(null);return(0,f.jsxs)(a.Z,{open:e.sellyes,setOpen:function(){return d.C8.close("sellyes")},title:"Sell Yes",children:[(0,f.jsx)(x,{inputRef:l}),(0,f.jsx)(t.ZP,{item:!0,children:(0,f.jsx)(c.Z,{fullWidth:!0,sx:{backgroundColor:"#305FF5",color:"#fff",borderRadius:"8px",mt:2},children:"Sell Yes",onClick:function(){return d.t3.buy((null===n||void 0===n?void 0:n.liquidityTokenId)+1,l.current.value).then((function(e){return d.C8.open("wait",e)})).catch((function(e){return d.t3.catch(e,"buy")})).finally((function(){return d.C8.close("sellyes")}))}})})]})}))},3306:function(e,n,l){l.r(n);var o=l(885),i=l(2791),t=l(5953),r=l(5254),s=l(4162),c=l(1091),d=l(3287),u=l(8525),a=l(1923),f=l(8714),x=l(4777),h=l(2231),p=l(7370),v=l(2294),m=l(6275),b=l(184);n.default=(0,u.Pi)((function(e){var n,l,y,j,g,C,F,Z,k,R,w,E,A,q,S=e.expired,O=u.On.balance,Y=u.On.market,B=(0,i.useState)(!1),T=(0,o.Z)(B,2),P=T[0],L=T[1],N=(0,i.useRef)(null);return(0,b.jsxs)(t.ZP,{item:!0,children:[(0,b.jsxs)(r.Z,{sx:{backgroundColor:"#16182C",borderRadius:"8px",mb:1,p:3},children:[(0,b.jsxs)(s.Z,{mb:2,spacing:1,direction:"row",children:[(0,b.jsx)(c.Z,{sx:{width:"50%",backgroundColor:"#070707",borderRadius:"18px",py:1},children:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{style:{color:"#83BF6E",marginRight:"8px"},children:"Yes"}),(0,b.jsx)("span",{style:{color:"#fff"},children:"".concat(null!==(n=null===Y||void 0===Y||null===(l=Y.amountTrue)||void 0===l?void 0:l.toLocaleString())&&void 0!==n?n:0," ").concat(null!==(y=null===Y||void 0===Y||null===(j=Y.collateralToken)||void 0===j?void 0:j.symbol)&&void 0!==y?y:"")})]})}),(0,b.jsx)(c.Z,{sx:{width:"50%",backgroundColor:"#070707",borderRadius:"18px",py:1},children:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{style:{color:"#FF6A55",marginRight:"8px"},children:"No"}),(0,b.jsx)("span",{style:{color:"#fff"},children:"".concat(null!==(g=null===Y||void 0===Y||null===(C=Y.amountFalse)||void 0===C?void 0:C.toLocaleString())&&void 0!==g?g:0," ").concat(null!==(F=null===Y||void 0===Y||null===(Z=Y.collateralToken)||void 0===Z?void 0:Z.symbol)&&void 0!==F?F:"")})]})})]}),(0,b.jsxs)(r.Z,{sx:{display:"flex",justifyContent:"space-between",mb:1},children:[(0,b.jsx)("span",{style:{color:"#6F767E"},children:"Fees"}),(0,b.jsx)("span",{style:{color:"#fff"},children:"".concat((100*a.uN.fee).toFixed(1)," %")})]}),(0,b.jsxs)(r.Z,{sx:{display:"flex",justifyContent:"space-between",mb:1},children:[(0,b.jsx)("span",{style:{color:"#6F767E"},children:"LP Fee"}),(0,b.jsx)("span",{style:{color:"#83BF6E"},children:"".concat((100*a.uN.lpfee).toFixed(1)," %")})]}),(0,b.jsxs)(r.Z,{sx:{display:"flex",justifyContent:"space-between",mb:1},children:[(0,b.jsx)("span",{style:{color:"#6F767E"},children:"Liquidity"}),(0,b.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,b.jsx)("span",{style:{color:"#6F767E",textAlign:"right",marginBottom:"4px"},children:"Yes: ".concat(null!==(k=null===Y||void 0===Y?void 0:Y.liquidityTrue)&&void 0!==k?k:0)}),(0,b.jsx)("span",{style:{color:"#6F767E",textAlign:"right",marginBottom:"4px"},children:"No: ".concat(null!==(R=null===Y||void 0===Y?void 0:Y.liquidityFalse)&&void 0!==R?R:0)})]})]}),"Connect Wallet"!==u.t3.address&&(0,b.jsxs)(r.Z,{sx:{display:"flex",justifyContent:"space-between",mb:1},children:[(0,b.jsx)("span",{style:{color:"#6F767E"},children:"Your Balance"}),(0,b.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,b.jsx)("span",{style:{color:"#6F767E",textAlign:"right",marginBottom:"4px"},children:"".concat(a.eh.symbol,": ").concat(null!==(w=null===(E=u.t3.balance)||void 0===E?void 0:E[a.eh.addressHash])&&void 0!==w?w:0)}),(0,b.jsx)("span",{style:{color:"#6F767E",textAlign:"right",marginBottom:"4px"},children:"Yes: ".concat(null!==(A=null===O||void 0===O?void 0:O.amountTrue)&&void 0!==A?A:0)}),(0,b.jsx)("span",{style:{color:"#6F767E",textAlign:"right",marginBottom:"4px"},children:"No: ".concat(null!==(q=null===O||void 0===O?void 0:O.amountFalse)&&void 0!==q?q:0)})]})]}),(0,b.jsx)(d.Z,{inputRef:N,fullWidth:!0,disableUnderline:!0,defaultValue:0,type:"number",sx:{border:"2px s
1olid #6F767E",borderRadius:"8px",color:"#fff",pl:1,height:"50px"},endAdornment:(0,b.jsx)(c.Z,{sx:{color:"#305FF5"},children:"MAX",onClick:function(){var e,n;return N.current.value=null!==(e=null===(n=u.t3.balance)||void 0===n?void 0:n[a.eh.addressHash])&&void 0!==e?e:0}})}),(0,b.jsxs)(s.Z,{my:2,spacing:1,direction:"row",children:[(0,b.jsx)(c.Z,{disabled:S,sx:{width:"100%",bgcolor:"#83BF6E","&:hover":{bgcolor:"#b9dbad"},color:"#fff",borderRadius:"8px"},children:"Buy Yes",onClick:function(){return u.t3.buyOnce((null===Y||void 0===Y?void 0:Y.liquidityTokenId)+2,N.current.value).then((function(e){return u.C8.open("wait",e)})).catch((function(e){return u.t3.catch(e,"buyOnce")}))}}),(0,b.jsx)(c.Z,{disabled:S,sx:{width:"100%",backgroundColor:"#FF6A55","&:hover":{bgcolor:"#f1a196"},color:"#fff",borderRadius:"8px"},children:"Buy No",onClick:function(){return u.t3.buyOnce((null===Y||void 0===Y?void 0:Y.liquidityTokenId)+1,N.current.value).then((function(e){return u.C8.open("wait",e)})).catch((function(e){return u.t3.catch(e,"buyOnce")}))}}),"Unknown"===(null===Y||void 0===Y?void 0:Y.winnerTokenType)?(0,b.jsx)(c.Z,{disabled:S,sx:{width:"100%",bgcolor:"#305FF5","&:hover":{bgcolor:"#5077f6"},color:"#fff",borderRadius:"8px"},children:"redeem",onClick:function(){return u.C8.open("redeem")}}):(0,b.jsx)(c.Z,{sx:{width:"100%",backgroundColor:"#305FF5","&:hover":{bgcolor:"#5077f6"},color:"#fff",borderRadius:"8px"},children:"winnerRedeem",onClick:function(){return u.t3.winnerRedeem().then((function(e){return u.C8.open("wait",e)})).catch((function(e){return u.t3.catch(e,"winnerRedeem")}))}})]}),(0,b.jsxs)(r.Z,{sx:{display:"flex",mb:1,alignItems:"center",justifyContent:"flex-end","&:hover":{cursor:"pointer"}},onClick:function(){return L(!P)},children:[(0,b.jsx)("span",{style:{color:"#6F767E"},children:"Advanced"}),(0,b.jsx)("span",{className:"material-icons",style:{color:"#6F767E",fontSize:"24px"},children:"".concat(P?"expand_less":"expand_more")})]}),P&&(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)(s.Z,{my:2,spacing:1,direction:"row",children:[(0,b.jsx)(c.Z,{disabled:S,sx:{width:"100%",backgroundColor:"#83BF6E","&:hover":{bgcolor:"#b9dbad"},color:"#fff",borderRadius:"8px"},children:"Sell Yes",onClick:function(){return u.C8.open("sellyes")}}),(0,b.jsx)(c.Z,{disabled:S,sx:{width:"100%",bgcolor:"#FF6A55","&:hover":{bgcolor:"#f1a196"},color:"#fff",borderRadius:"8px"},children:"Sell No",onClick:function(){return u.C8.open("sellno")}}),(0,b.jsx)(c.Z,{disabled:S,sx:{width:"100%",backgroundColor:"#305FF5","&:hover":{bgcolor:"#5077f6"},color:"#fff",borderRadius:"8px"},children:"Deposit",onClick:function(){return u.C8.open("deposit")}})]})})]}),(0,b.jsxs)(s.Z,{spacing:1,direction:"row",children:[(0,b.jsxs)(r.Z,{sx:{width:"50%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#16182C",borderRadius:"8px",p:2,"&:hover":{cursor:"pointer"}},onClick:function(){return u.C8.open("addliquidity")},children:[(0,b.jsx)("span",{className:"material-icons-outlined",style:{display:"flex",fontSize:"18px",color:"#fff",marginRight:"8px"},children:"add"}),(0,b.jsx)("span",{style:{display:"flex",color:"#fff"},children:"Add Liquidity"})]}),(0,b.jsxs)(r.Z,{sx:{width:"50%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#16182C",borderRadius:"8px",p:2,mt:1,"&:hover":{cursor:"pointer"}},onClick:function(){return u.C8.open("removeliquidity")},children:[(0,b.jsx)("span",{className:"material-icons-outlined",style:{display:"flex",fontSize:"18px",color:"#fff",marginRight:"8px"},children:"remove"}),(0,b.jsx)("span",{style:{display:"flex",color:"#fff"},children:"Remove Liquidity"})]})]}),(0,b.jsx)(x.default,{}),(0,b.jsx)(f.default,{}),(0,b.jsx)(h.default,{}),(0,b.jsx)(p.default,{}),(0,b.jsx)(v.default,{}),(0,b.jsx)(m.default,{})]})}))}}]);

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.