1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{8299:(e,t,s)=>{Promise.resolve().then(s.bind(s,523))},523:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var r=s(5155),a=s(2115),l=s(2651),i=s(1536);let c=e=>{let{tickers:t,onTickerClick:s}=e,[l,c]=(0,a.useState)(!1),n=(0,a.useRef)(null),[o,d]=(0,a.useState)(!1),[m,h]=(0,a.useState)({});(0,a.useEffect)(()=>{let e=null;if(!l){let t=()=>{n.current&&!o&&(n.current.scrollLeft+=1.5,n.current.scrollLeft>=n.current.scrollWidth/2&&(n.current.scrollLeft=0),e=requestAnimationFrame(t))};e=requestAnimationFrame(t)}return()=>{e&&cancelAnimationFrame(e)}},[o,l]);let x=e=>{h(t=>({...t,[e]:!0}))},p=[...t].sort((e,t)=>e.ticker.localeCompare(t.ticker,void 0,{sensitivity:"base"})),g=l?p:[...p,...p];return(0,r.jsxs)("div",{className:"relative bg-black text-white p-4",children:[(0,r.jsx)("div",{className:"absolute top-4 right-4 cursor-pointer z-50",onClick:()=>c(e=>!e),title:l?"Switch to Ticker View":"Switch to Table View",children:(0,r.jsx)(i.ist,{className:"text-2xl hover:text-gray-400 transition-colors"})}),l?(0,r.jsxs)("table",{className:"table-auto w-full text-sm text-center text-gray-400",children:[(0,r.jsx)("thead",{className:"text-xs uppercase bg-gray-700 text-gray-400",children:(0,r.jsx)("tr",{children:(0,r.jsx)("th",{className:"px-4 py-2",children:"Ticker"})})}),(0,r.jsx)("tbody",{children:p.map(e=>(0,r.jsx)("tr",{onClick:()=>{s(e.ticker),c(!1)},className:"cursor-pointer hover:bg-gray-600 transition-colors",children:(0,r.jsx)("td",{className:"px-4 py-2",children:(0,r.jsxs)("div",{className:"flex items-center justify-center",children:[e.ticker&&!m[e.ticker]?(0,r.jsx)("img",{src:"https://zprager.github.io/asset-logos/cryptoicons/".concat(e.ticker.toUpperCase(),".png"),alt:e.ticker,className:"w-8 h-8 rounded-full",onError:()=>x(e.ticker)}):(0,r.jsx)("img",{src:"/crypto.png",alt:"Default Crypto",className:"w-8 h-8 rounded-full"}),(0,r.jsx)("span",{className:"ml-2 font-bold",children:e.ticker.toUpperCase()})]})})},e.id))})]}):(0,r.jsx)("div",{ref:n,className:"overflow-hidden whitespace-nowrap",style:{height:"120px",display:"flex",alignItems:"center",position:"relative"},onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:g.map((e,t)=>(0,r.jsxs)("div",{onClick:()=>s(e.ticker),className:"cursor-pointer flex items-center px-4 flex-shrink-0 bg-gray-800 rounded-lg p-4 shadow-lg hover:bg-gray-700 transition-colors mx-1",style:{minWidth:"fit-content",height:"120px"},children:[e.ticker&&!m[e.ticker]?(0,r.jsx)("img",{src:"https://zprager.github.io/asset-logos/cryptoicons/".concat(e.ticker.toUpperCase(),".png"),alt:e.ticker,className:"w-8 h-8 rounded-full",onError:()=>x(e.ticker)}):(0,r.jsx)("img",{src:"/crypto.png",alt:"Default Crypto",className:"w-8 h-8 rounded-full"}),(0,r.jsx)("p",{className:"ml-2 font-bold",children:e.ticker.toUpperCase()})]},"".concat(e.id,"-").concat(t)))})]})};var n=s(9507);let o=e=>{let{data:t,ticker:s}=e,[l,i]=(0,a.useState)(!1),c=t.BullishCase?t.BullishCase.split(/\s*(?=\d+\.)/).filter(e=>""!==e.trim()):[],o=t.BearishCase?t.BearishCase.split(/\s*(?=\d+\.)/).filter(e=>""!==e.trim()):[];return(0,r.jsxs)("div",{className:"bg-gray-900 text-white rounded-lg p-6 shadow-md my-4 relative transition-all duration-300 ".concat(l?"max-h-full":"max-h-[18rem] overflow-hidden"),children:[(0,r.jsxs)("div",{className:"flex items-center justify-center mb-4",children:[(0,r.jsx)("img",{src:"https://zprager.github.io/asset-logos/cryptoicons/".concat(s.toUpperCase(),".png"),alt:s,className:"w-12 h-12 rounded-full mr-2",onError:e=>{e.currentTarget.src="crypto.png"}}),(0,r.jsx)("h2",{className:"text-2xl font-bold",children:s.toUpperCase()})]}),(0,r.jsx)("p",{className:"mb-4",children:t.OverallSentimentAnalysis}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{className:"bg-green-900 p-4 rounded flex flex-col items-center",children:[(0,r.jsx)(n.Wao,{className:"text-3xl mb-2"}),(0,r.jsx)("h3",{className:"font-semibold text-xl mb-2 text-center",children:"Bullish Case"}),c.map((e,t)=>(0,r.jsx)("p",{className:"mb-1",children:e},t))]}),(0,r.jsxs)("div",{className:"bg-red-900 p-4 rounded flex flex-col items-center",children:[(0,r.jsx)(n.coR,{className:"text-3xl mb-2"}),(0,r.jsx)("h3",{className:"font-semibold text-xl mb-2 text-center",children:"Bearish Case"}),o.map((e,t)=>(0,r.jsx)("p",{className:"mb-1",children:e},t))]})]}),(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)("h3",{className:"font-semibold text-xl mb-2",children:"Conclusion"}),(0,r.jsx)("p",{children:t.Conclusion})]}),(0,r.jsx)("div",{className:"mt-4 text-gray-400 text-sm",children:(0,r.jsxs)("p",{children:["Data from ",t.startDate," to ",t.endDate]})}),(0,r.jsx)("button",{className:"absolute bottom-2 right-2 bg-gray-800 px-3 py-1 text-sm rounded hover:bg-gray-700 transition-colors",onClick:()=>i(e=>!e),children:l?"Collapse":"Expand"})]})};var d=s(2132);let m=()=>{let e=[{id:"1",ticker:"eth"},{id:"2",ticker:"bnb"},{id:"3",ticker:"btc"},{id:"4",ticker:"doge"},{id:"5",ticker:"avax"},{id:"6",ticker:"ada"}],[t,s]=(0,a.useState)([{id:"1",ticker:"eth"},{id:"2",ticker:"bnb"},{id:"3",ticker:"btc"},{id:"4",ticker:"doge"},{id:"5",ticker:"avax"},{id:"6",ticker:"ada"}]),[i,n]=(0,a.useState)([]),[m,h]=(0,a.useState)(!0),x={Authorization:"Bearer ".concat("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MzQ4Mjk0ODB9.ywxjpsc9wonju_NvvlzLGdfCAKMUGQ9qDXQBRpmxXEQ"),"Content-Type":"application/json"},p=async()=>{try{let e=await l.A.get("".concat("https://shotcallers.us-3.evennode.com","/agents/tokenSentimentList"),{headers:x});s(e.data)}catch(e){console.error("Error fetching ticker list:",e)}},g=async()=>{try{let t=await l.A.post("".concat("https://shotcallers.us-3.evennode.com","/agents/tokenSentiment"),{tickers:e.map(e=>e.ticker)},{headers:x});console.log("Initial sentiment data:",t.data),n(t.data)}catch(e){console.error("Error fetching sentiment data:",e)}finally{h(!1)}},u=async e=>{try{let t=await l.A.post("".concat("https://shotcallers.us-3.evennode.com","/agents/tokenSentiment"),{tickers:[e]},{headers:x});n(e=>[...t.data,...e])}catch(t){console.error("Error fetching sentiment data for ticker:",e,t)}};return((0,a.useEffect)(()=>{p()},[]),(0,a.useEffect)(()=>{t.length>0&&g()},[t]),m)?(0,r.jsx)("p",{className:"text-white",children:"Loading..."}):(0,r.jsxs)("div",{className:"bg-black min-h-screen p-6",children:[(0,r.jsx)(d.A,{logoSrc:"/logo.png",logoAlt:"Shot Caller Logo",title:"Sentiment & Summaries",description:"Shot Caller pulls in data from Reddit, Youtube, and Twitter(X) to provide a pulse on the market for a given asset."}),t.length>0&&(0,r.jsx)(c,{tickers:t,onTickerClick:u}),(0,r.jsx)("div",{className:"mt-8 grid grid-cols-1 md:grid-cols-3 gap-4",children:i?i.map(e=>{let{ticker:t,data:s}=e;return(0,r.jsx)(o,{ticker:t,data:s},t)}):null})]})}},2132:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(5155),a=s(5565);let l=e=>{let{logoSrc:t="/logo.png",logoAlt:s="Shot Caller Logo",title:l="Shot Caller",description:i="Shot Caller ranks influencers by ROI and timing, so you know
1whoâs making profitable calls. It is an indispensable resource for determining who to follow."}=e;return(0,r.jsxs)("header",{className:"flex flex-col items-center justify-center p-0 bg-gray-900 text-white mt-0 border-b border-gray-400 mb-4",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsx)(a.default,{src:t,alt:s,width:70,height:70}),l&&(0,r.jsx)("h1",{className:"text-xl font-bold mt-2",children:l})]}),(0,r.jsx)("p",{className:"mt-1 text-sm text-center max-w-sm mb-4",children:i})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[711,672,401,441,517,358],()=>t(8299)),_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.