PageSourceSearch

https://clawintelli.com/assets/Main-HrXqbVc5.js

js clawintelli.com collected 2026-10-08 21:27:27 UTC 20,362 bytes, 2 lines download raw bytes

1import{j as e,b as r,u as D,O as Y}from"./vendor-MqsK_g65.js";import{u,a as V,b as B,c as q,d as F,e as K,I as Q,w as x,S as Z,f as P,C as ee,n as se,g as te,h as ne,l as k}from"./index-vcSPLiYa.js";import{w as W,O as ie,C as oe,t as z}from"./index-OVQuHRdy.js";import{c as v}from"./utils-rXHWPD0r.js";import{I as ce}from"./IconTrashOutline-Dm-NWdVa.js";import"./charts-q-1n0JL6.js";import"./solana-BrFlpkzG.js";import{I as re}from"./IconTwitter-D-mC-1dL.js";import"./ui-CDdlgVHd.js";import"./useWalletConnector-zHP__Dus.js";import"./web3-N1vGHjto.js";import"./switchEvmChain-Deiw3JhJ.js";const ae="hv9oj",le={centered:ae},U=({children:s,className:n,...t})=>e.jsx("div",{...t,className:v(le.centered,n),children:s});function de({width:s=16,height:n=16,...t}){return e.jsxs("svg",{...t,width:s,height:n,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",children:[e.jsx("path",{d:"M12.4 8a.9.9 0 1 0-1.8 0v4.5a.9.9 0 0 0 .584.843l4 1.5a.9.9 0 0 0 .632-1.686l-3.416-1.28V8Z"}),e.jsx("path",{fillRule:"evenodd",d:"M12 2.1c-5.468 0-9.9 4.432-9.9 9.9s4.432 9.9 9.9 9.9 9.9-4.432 9.9-9.9-4.432-9.9-9.9-9.9ZM3.9 12a8.1 8.1 0 1 1 16.2 0 8.1 8.1 0 0 1-16.2 0Z",clipRule:"evenodd"})]})}function he({width:s=16,height:n=16,...t}){return e.jsx("svg",{...t,width:s,height:n,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{fillRule:"evenodd",d:"M3.1 10.5c0-2.24 0-3.36.436-4.216a4 4 0 0 1 1.748-1.748C6.14 4.1 7.26 4.1 9.5 4.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.924.436-4.063.436l.55 2.2H17.1a.9.9 0 1 1 0 1.8H6.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C3.1 13.86 3.1 12.74 3.1 10.5Zm11.4-4.6h-5c-1.15 0-1.904.001-2.48.048-.556.046-.787.125-.919.192a2.2 2.2 0 0 0-.961.961c-.067.132-.146.363-.191.918C4.9 8.596 4.9 9.35 4.9 10.5s.001 1.904.049 2.48c.045.556.124.787.19.919.212.414.548.75.962.961.132.067.363.146.918.192.577.047 1.331.048 2.481.048h5c1.15 0 1.904-.001 2.48-.048.556-.046.787-.125.919-.192a2.2 2.2 0 0 0 .961-.961c.067-.132.146-.363.192-.918.047-.577.048-1.331.048-2.481s-.001-1.904-.049-2.48c-.045-.556-.124-.787-.19-.919a2.2 2.2 0 0 0-.962-.961c-.132-.067-.363-.146-.918-.192-.577-.047-1.331-.048-2.481-.048Zm-3.297 11-.55 2.2h2.694l-.55-2.2h-1.594Z",clipRule:"evenodd"})})}function ue({width:s=16,height:n=16,...t}){return e.jsx("svg",{...t,width:s,height:n,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M12 0.75H3C2.175 0.75 1.5 1.425 1.5 2.25V12.75H3V2.25H12V0.75ZM14.25 3.75H6C5.175 3.75 4.5 4.425 4.5 5.25V15.75C4.5 16.575 5.175 17.25 6 17.25H14.25C15.075 17.25 15.75 16.575 15.75 15.75V5.25C15.75 4.425 15.075 3.75 14.25 3.75ZM14.25 15.75H6V5.25H14.25V15.75Z",fill:"#999696"})})}function pe({width:s=16,height:n=16,...t}){return e.jsxs("svg",{...t,xmlns:"http://www.w3.org/2000/svg",width:s,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-log-out",children:[e.jsx("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),e.jsx("polyline",{points:"16 17 21 12 16 7"}),e.jsx("line",{x1:"21",x2:"9",y1:"12",y2:"12"})]})}function R({width:s=20,height:n=20,...t}){return e.jsx("svg",{...t,width:s,height:n,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M9.07391 3.33203V16.295M4.44428 6.10981H6.29613M4.44428 8.88759H6.29613M4.44428 11.6654H6.29613M4.62947 16.295H15.3702C16.4073 16.295 16.9259 16.295 17.3221 16.0931C17.6705 15.9156 17.9538 15.6323 18.1313 15.2839C18.3332 14.8878 18.3332 14.3692 18.3332 13.332V6.29499C18.3332 5.25786 18.3332 4.73929 18.1313 4.34316C17.9538 3.99471 17.6705 3.71141 17.3221 3.53387C16.9259 3.33203 16.4073 3.33203 15.3702 3.33203H4.62947C3.59234 3.33203 3.07376 3.33203 2.67763 3.53387C2.32918 3.71141 2.04588 3.99471 1.86835 4.34316C1.6665 4.73929 1.6665 5.25785 1.6665 6.29499V13.332C1.6665 14.3692 1.6665 14.8878 1.86835 15.2839C2.04588 15.6323 2.32918 15.9156 2.67763 16.0931C3.07376 16.295 3.59233 16.295 4.62947 16.295Z",stroke:"currentColor",strokeOpacity:"0.8",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}const me=({width:s=20,height:n=20,...t})=>e.jsxs("svg",{...t,width:s,height:n,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M11.6665 4.66536C11.6665 4.19866 11.6665 3.9653 11.7573 3.78704C11.8373 3.63024 11.9647 3.50276 12.1215 3.42286C12.2998 3.33203 12.5331 3.33203 12.9998 3.33203H15.3332C15.7999 3.33203 16.
10333 3.33203 16.2115 3.42286C16.3683 3.50276 16.4958 3.63024 16.5757 3.78704C16.6665 3.9653 16.6665 4.19866 16.6665 4.66536V6.9987C16.6665 7.46541 16.6665 7.69876 16.5757 7.87702C16.4958 8.03382 16.3683 8.16131 16.2115 8.24121C16.0333 8.33203 15.7999 8.33203 15.3332 8.33203H12.9998C12.5331 8.33203 12.2998 8.33203 12.1215 8.24121C11.9647 8.16131 11.8373 8.03382 11.7573 7.87702C11.6665 7.69876 11.6665 7.46541 11.6665 6.9987V4.66536Z",stroke:"white",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M3.3335 4.66536C3.3335 4.19866 3.3335 3.9653 3.42432 3.78704C3.50422 3.63024 3.6317 3.50276 3.7885 3.42286C3.96676 3.33203 4.20012 3.33203 4.66683 3.33203H7.00016C7.46687 3.33203 7.70023 3.33203 7.87849 3.42286C8.03529 3.50276 8.16277 3.63024 8.24267 3.78704C8.3335 3.9653 8.3335 4.19866 8.3335 4.66536V6.9987C8.3335 7.46541 8.3335 7.69876 8.24267 7.87702C8.16277 8.03382 8.03529 8.16131 7.87849 8.24121C7.70023 8.33203 7.46687 8.33203 7.00016 8.33203H4.66683C4.20012 8.33203 3.96676 8.33203 3.7885 8.24121C3.6317 8.16131 3.50422 8.03382 3.42432 7.87702C3.3335 7.69876 3.3335 7.46541 3.3335 6.9987V4.66536Z",stroke:"white",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M3.3335 13.0013C3.3335 12.5346 3.3335 12.3012 3.42432 12.123C3.50422 11.9661 3.6317 11.8387 3.7885 11.7588C3.96676 11.668 4.20012 11.668 4.66683 11.668H7.00016C7.46687 11.668 7.70023 11.668 7.87849 11.7588C8.03529 11.8387 8.16277 11.9661 8.24267 12.123C8.3335 12.3012 8.3335 12.5346 8.3335 13.0013V15.3346C8.3335 15.8014 8.3335 16.0347 8.24267 16.213C8.16277 16.3698 8.03529 16.4972 7.87849 16.5771C7.70023 16.668 7.46687 16.668 7.00016 16.668H4.66683C4.20012 16.668 3.96676 16.668 3.7885 16.5771C3.6317 16.4972 3.50422 16.3698 3.42432 16.213C3.3335 16.0347 3.3335 15.8014 3.3335 15.3346V13.0013Z",stroke:"white",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M11.6665 13.0013C11.6665 12.5346 11.6665 12.3012 11.7573 12.123C11.8373 11.9661 11.9647 11.8387 12.1215 11.7588C12.2998 11.668 12.5331 11.668 12.9998 11.668H15.3332C15.7999 11.668 16.0333 11.668 16.2115 11.7588C16.3683 11.8387 16.4958 11.9661 16.5757 12.123C16.6665 12.3012 16.6665 12.5346 16.6665 13.0013V15.3346C16.6665 15.8014 16.6665 16.0347 16.5757 16.213C16.4958 16.3698 16.3683 16.4972 16.2115 16.5771C16.0333 16.668 15.7999 16.668 15.3332 16.668H12.9998C12.5331 16.668 12.2998 16.668 12.1215 16.5771C11.9647 16.4972 11.8373 16.3698 11.7573 16.213C11.6665 16.0347 11.6665 15.8014 11.6665 15.3346V13.0013Z",stroke:"white",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]});function Ce({width:s=16,height:n=16,...t}){return e.jsx("svg",{...t,width:s,height:n,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M12 5.33341V4.80008C12 4.05335 12 3.67997 11.8547 3.39476C11.7269 3.14387 11.5229 2.9399 11.272 2.81207C10.9868 2.66675 10.6134 2.66675 9.86667 2.66675H4.13333C3.38659 2.66675 3.01323 2.66675 2.72801 2.81207C2.47713 2.9399 2.27315 3.14387 2.14533 3.39476C2 3.67997 2 4.05335 2 4.80008V5.33341M2 5.33341V11.2001C2 11.9468 2 12.3202 2.14533 12.6054C2.27315 12.8563 2.47713 13.0603 2.72801 13.1881C3.01323 13.3334 3.38659 13.3334 4.13333 13.3334H11.8667C12.6134 13.3334 12.9868 13.3334 13.272 13.1881C13.5229 13.0603 13.7269 12.8563 13.8547 12.6054C14 12.3202 14 11.9468 14 11.2001V7.46675C14 6.72001 14 6.34664 13.8547 6.06143C13.7269 5.81054 13.5229 5.60657 13.272 5.47874C12.9868 5.33341 12.6134 5.33341 11.8667 5.33341H2ZM14 8.00008H12.6667C11.9303 8.00008 11.3333 8.59701 11.3333 9.33341C11.3333 10.0698 11.9303 10.6667 12.6667 10.6667H14",stroke:"currentColor"})})}function xe({width:s=16,height:n=16,...t}){return e.jsx("svg",{...t,width:s,height:n,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M8.67765 3.38357H5.32407C4.33555 3.38357 3.84129 3.38357 3.46373 3.57595C3.13161 3.74518 2.8616 4.01519 2.69238 4.3473C2.5 4.72487 2.5 5.21913 2.5 6.20764V14.6798C2.5 15.6683 2.5 16.1627 2.69238 16.5402C2.8616 16.8723 3.13161 17.1423 3.46373 17.3115C3.84129 17.5039 4.33555 17.5039 5.32407 17.5039H13.7963C14.7848 17.5039 15.2791 17.5039 15.6566 17.3115C15.9887 17.1423 16.2588 16.8723 16.4279 16.5402C16.62
103 16.1627 16.6203 15.6683 16.6203 14.6798V10.885M8.46822 8.88812L14.3355 3.02088C15.0247 2.33158 16.1424 2.33158 16.8316 3.02088C17.5209 3.71017 17.5209 4.82773 16.8316 5.51702L10.7758 11.5728C10.1036 12.2451 9.76756 12.5811 9.38472 12.8483C9.04495 13.0857 8.67844 13.2821 8.29287 13.4339C7.8584 13.6049 7.3925 13.6989 6.46069 13.887L6.03008 13.9738L6.07196 13.6806C6.22014 12.6434 6.29424 12.1248 6.46277 11.6405C6.61233 11.2108 6.81663 10.8023 7.07063 10.4249C7.35687 9.99948 7.72734 9.629 8.46822 8.88812Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}const fe=()=>{const[s,n]=r.useState({deviceType:null,orientation:null,isMobile:!1,isTablet:!1,isDesktop:!0});return r.useEffect(()=>{const t=()=>{const a=window.innerWidth,c=window.innerHeight;let i;a>=1024?i="desktop":a>=768?i="tablet":i="mobile";const m=c>a?"portrait":"landscape";n({deviceType:i,orientation:m,isMobile:i==="mobile",isTablet:i==="tablet",isDesktop:i==="desktop"})};return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]),s},je=()=>{const s=u(V.isAuth),n=u(V.accessToken);r.useEffect(()=>(s&&n?W.connect():W.disconnect(),()=>{W.disconnect()}),[s,n])},ve="LkWvi",ge="CR83q",we="qNU46",be="_6VHfa",ke="ufjA3",w={dropdown:ve,hidden:ge,visible:we,menuItem:be,addressItem:ke},_e=({isOpen:s})=>{const n=B(),t=u(V.walletAddress),a=async()=>{if(t)try{await navigator.clipboard.writeText(t)}catch(i){console.error("Failed to copy address:",i)}},c=()=>{n(q.logout())};return e.jsxs("div",{className:v(w.dropdown,s?w.visible:w.hidden),children:[e.jsxs("button",{className:`${w.menuItem} ${w.addressItem}`,onClick:a,title:"Click to copy address",children:[e.jsx("span",{children:t}),e.jsx(ue,{})]}),e.jsxs("a",{href:"https://x.com/ClawIntelli",rel:"noreferrer",target:"_blank",className:w.menuItem,children:[e.jsx(re,{})," ",e.jsx("span",{children:"Twitter"})]}),e.jsxs("button",{className:w.menuItem,onClick:c,children:[e.jsx(pe,{}),e.jsx("span",{children:"Disconnect"})]})]})},Ne="_1DfXJ",Se="vB8JX",He="oQpRV",Le="BSAen",Ie="smTmK",Me="XGfUb",Te="hw-J8",$e="oWsHD",ye="Y3JeO",Oe="Bj9BX",Ve="FmxZP",Re="CSihO",Be="Np4Rk",Ae="wlUhC",Ee="Kaenl",We="bdXqS",De="_2wTqh",Ze="gd5g8",l={wrapper:Ne,button_hide:Se,hidden:He,visible:Le,buttons:Ie,drawer_header:Me,btn:Te,new_chat_btn:$e,chat_btn:ye,deleteIcon:Oe,active:Ve,delimiter:Re,chats:Be,chatsDate:Ae,settings_block:Ee,settings:We,icon_wallet:De,logo:Ze},Ue=({close:s,visible:n})=>{const[a,c]=r.useState(!1),i=u(F.chats),m=u(F.currentChat),H=u(K.isAdmin),L=B(),f=D(),[N,I]=r.useState(1),[M,T]=r.useState(!1),[$,o]=r.useState(!1),p=()=>{c(!a)},g=()=>{a&&c(!1)},y=async()=>{T(!0);const h=await L(P.getAll({page:N,size:50})).unwrap();o(h.items.length<50),I(S=>S+1),T(!1)},A=h=>{if(M||$)return;const S=h.target,{scrollHeight:J,scrollTop:X,clientHeight:G}=S;J-X<=G+10&&y()},E=h=>{f(x.chatById.to(h))},C=()=>{f(x.chatById.to("new"))};return r.useEffect(()=>{y()},[]),e.jsxs("div",{className:v(l.wrapper,n?l.visible:l.hidden),children:[e.jsxs("div",{className:l.drawer_header,children:[e.jsxs("div",{className:l.logo,onClick:C,children:[e.jsx(Q,{width:30,height:30}),"Claw Intelligence"]}),e.jsx("button",{onClick:s,className:l.button_hide,children:e.jsx(R,{})})]}),e.jsxs("div",{className:l.buttons,children:[e.jsxs("button",{className:l.new_chat_btn,onClick:()=>C(),children:[e.jsx(xe,{})," ",e.jsx("span",{children:"New chat"})]}),e.jsxs("button",{className:l.btn,onClick:()=>f(x.scheduledTasks.to()),children:[e.jsx(de,{})," ",e.jsx("span",{children:"Scheduled tasks"})]}),e.jsxs("button",{className:l.btn,onClick:()=>f(x.computers.to()),children:[e.jsx(he,{})," ",e.jsx("span",{children:"Computers"})]}),H&&e.jsxs("button",{className:l.btn,onClick:()=>f(x.admin.to()),children:[e.jsx(me,{width:16,height:16})," ",e.jsx("span",{children:"Admin"})]})]}),e.jsx("div",{className:l.delimiter}),e.jsx("div",{className:l.chats,onScroll:A,children:e.jsxs("div",{className:l.buttons,children:[i.length===0&&M&&e.jsx(U,{children:e.jsx(Z,{})}),e.jsx("div",{className:l.chatsDate,children:"Recent chats"}),i.map(h=>e.jsxs("button",{className:v(l.chat_btn,h.id===m&&l.active),onClick:()=>E(h.id),children:[e.jsx("span",{children:h.title}),e.jsx(ce,{className:l.deleteIcon,onClick:S=>{S.stopPropagation(),L(P.remove(h.id))}})]}
1,h.id))]})}),e.jsxs(ie,{onOutsideClick:g,display:"contents",children:[a&&e.jsx(_e,{isOpen:a}),e.jsx("div",{className:l.settings_block,children:e.jsxs("div",{className:l.settings,onClick:p,children:[e.jsx("div",{className:l.icon_wallet,children:e.jsx(Ce,{})}),e.jsx("span",{children:"Your wallet"})]})})]})]})},Fe="hs79m",Pe="H6---",ze="JDPRq",qe="Ag452",Je="yDWrY",Xe="_8nGSu",Ge="OwZtA",Ye="_9K19t",Ke="cNgcx",Qe="kh5s3",es="-UczS",ss="jAZSh",ts="_26N4O",ns="UoUvH",is="_5M5ls",os="tqzYb",cs="W2wk8",rs="OaoWt",d={wrapper:Fe,header:Pe,title:ze,tabs:qe,tab:Je,tab_active:Xe,token_container:Ge,token:Ye,token_info:Ke,avatar_container:Qe,avatar:es,price_container:ss,mcap:ts,ticker:ns,price:is,price_change:os,price_change_negative:cs,trade_button:rs},as=[{id:"trending",label:"Trending"},{id:"volume",label:"Volume"},{id:"stocks",label:"Stocks"}],ls=({symbol:s,logo:n})=>{const[t,a]=r.useState(!1);return!n||t?e.jsx("div",{className:d.avatar,"aria-hidden":!0,children:s.slice(0,1)}):e.jsx("div",{className:d.avatar,children:e.jsx("img",{src:n,alt:"",onError:()=>{a(!0)}})})};function ds(s){return s===void 0||!Number.isFinite(s)?"—":s>=1?`$${s.toFixed(2)}`:s>=.01?`$${s.toFixed(4)}`:`$${s.toPrecision(3)}`}function hs(s){return s===void 0||!Number.isFinite(s)||s<=0?"—":s>=1e6?`$${(s/1e6).toFixed(1)}M`:s>=1e3?`$${(s/1e3).toFixed(1)}K`:`$${s.toFixed(0)}`}function us(s){return s==null||!Number.isFinite(s)?"—":`${s>0?"+":""}${s.toFixed(2)}%`}function ps(s){return{symbol:s.symbol,name:s.name,address:s.address,logo:s.logo||"",priceUsd:s.priceUsd,volume24hUsd:s.volume24hUsd,priceChange24hPercent:s.priceChange24hPercent}}function ms(s){return s==="volume"?"Top volume on RH":s==="stocks"?"Stocks on RH":"Trending on RH"}const Cs=()=>{const[s,n]=r.useState("trending"),[t,a]=r.useState([]),[c,i]=r.useState(!1),[m,H]=r.useState(null),[L,f]=r.useState(!1),[N,I]=r.useState(null);r.useEffect(()=>{let o=!1;return i(!0),H(null),a([]),(async()=>{if(s==="stocks"){const A=await z.getRhTokens();if(o)return;const E=A.tokens.filter(C=>C.kind==="stock_token").map(C=>({symbol:C.symbol,name:C.name,address:C.address,logo:C.logo||""}));a(E);return}const g=s==="volume"?"volume":"trending",y=await z.getRhTrending({sort:g,limit:20});o||a(y.tokens.map(ps))})().catch(g=>{o||(console.error("[TrendingCoins] load:",g),H(s==="stocks"?"Failed to load Robinhood stocks":"Failed to load Robinhood trending"))}).finally(()=>{o||i(!1)}),()=>{o=!0}},[s]);const M=o=>{I(o),f(!0)},T=o=>{f(o),o||I(null)},$=s!=="stocks";return e.jsxs("div",{className:d.wrapper,children:[e.jsx("div",{className:d.header,children:e.jsx("div",{className:d.title,children:ms(s)})}),e.jsx("div",{className:d.tabs,role:"tablist","aria-label":"List mode",children:as.map(o=>{const p=s===o.id;return e.jsx("button",{type:"button",role:"tab","aria-selected":p,className:p?d.tab_active:d.tab,onClick:()=>{n(o.id)},children:o.label},o.id)})}),e.jsxs("div",{className:d.token_container,children:[c&&t.length===0&&e.jsx(U,{children:e.jsx(Z,{})}),m&&!c&&e.jsx("div",{className:d.mcap,children:m}),t.map(o=>{const p=o.priceChange24hPercent,g=p!=null&&p>=0;return e.jsxs("div",{className:d.token,children:[e.jsxs("div",{className:d.token_info,children:[e.jsx("div",{className:d.avatar_container,children:e.jsx(ls,{symbol:o.symbol,logo:o.logo})}),e.jsxs("div",{children:[e.jsx("div",{className:d.ticker,children:o.symbol}),e.jsx("div",{className:d.mcap,children:$?`Vol ${hs(o.volume24hUsd)}`:o.name})]}),$&&e.jsxs("div",{className:d.price_container,children:[e.jsx("div",{className:d.price,children:ds(o.priceUsd)}),e.jsx("div",{className:g?d.price_change:d.price_change_negative,children:us(p)})]})]}),e.jsx("button",{type:"button",className:d.trade_button,onClick:()=>M(o.address),children:"Trade Now"})]},o.address)})]}),N&&e.jsx(oe,{open:L,onOpenChange:T,assetAddress:N,chainType:ee.ROBINHOOD},N)]})},xs="vcnus",fs="cpqde",js="HDs4f",vs="MC5Vb",gs="m7JlN",ws="sySfr",bs="dqU-f",j={wrapper:xs,title:fs,scroll_container:js,news:vs,news_info:gs,info_title:ws,info_description:bs},ks=()=>{const s=u(se.news),{loading:n}=u(c=>c.news),t=B(),a=c=>{if(!c)return"";let i=c.replace(/<[^>]*>/g,"");return i=i.replace(/BlockBeats News, March \d{1,2}th,/g,""),i=i.trim(),i};return r.useEffect(()=>{t(te.getAll())},[]),e.jsxs("div",{className:j.wrapper,children:[e.jsx("div",{className:j.title,children:"Live Updates"}),e.jsxs("div",{className:j.scroll_container,children:[n&&e.jsx(U,{children:e.jsx(Z,{})}),s.map(c=>e.jsx("div",{className:j.news,children:e.jsxs("div",{className:j.news_info,children:[c.source_url?e.jsx("a",{className:j.info_title,href:c.source_url,target:"_blank",rel:"noopener noreferrer",children:c.title}):e.jsx("div",{className:j.info_title,children:c.title}),e.jsx("div",{className:j.info_description,children:a(c.content)})]})},c.id))]})]})},_s="z3DmP",Ns="_-6JVH",Ss="aPJG5",Hs="_5ha5I",Ls="_4fnfp",_={wrapper:_s,visible:Ns,hidden:Ss,delimiter:Hs,header:Ls},Is=({close:s,visible:n})=>e.jsxs("div",{className:v(_.wrapper,n?_.visible:_.hidden),children:[e.jsx("div",{className:_.header,children:e.jsx("button",{onClick:s,className:_.button_hide,children:e.jsx(R,{})})}),e.jsx(Cs,{}),e.jsx("div",{className:_.delimiter}),e.jsx(ks,{})]}),Ms="GQaTD",Ts="_7L8PQ",$s="WmXc9",ys="PuJY-",Os="RrqTU",b={header:Ms,container:Ts,scroll:$s,"header--left-padding":"OuelG","header--right-padding":"hpkP8",navBtn:ys,active:Os};function Vs(){const s=D(),[n,t]=r.useState(null),{isLeftSidebarOpen:a,isRightSidebarOpen:c}=u(m=>m.layout),{isDesktop:i}=fe();return r.useEffect(()=>{t(null),location.pathname.startsWith(x.computers.path)?t("Computers"):location.pathname.startsWith(x.subscription.path)&&t("Subscription")},[location.pathname]),e.jsx("header",{className:v(b.header,!a&&b["header--left-padding"],!c&&b["header--right-padding"]),children:e.jsx("div",{className:v(b.container,!i&&b.scroll),children:e.jsxs("button",{className:v(b.navBtn,n==="Subscription"&&b.active),onClick:()=>s(x.subscription.to()),children:[e.jsx("span",{children:"💎"})," Subscription"]})})})}const Rs="BjBaX",Bs="_0oV9w",As="F1uAc",Es="zQ-X7",O={wrapper:Rs,openLeftSidebarBtn:Bs,openRightSidebarBtn:As,chatContainer:Es},Ks=()=>{je();const{isLeftSidebarOpen:s,isRightSidebarOpen:n}=u(i=>i.layout),t=B(),a=D(),c=u(V.isAuth);return r.useEffect(()=>{const i=()=>{window.innerWidth<650&&s&&n&&(t(k.closeLeftSidebar()),t(k.closeRightSidebar()))};return i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[]),r.useEffect(()=>{c||a(x.auth.to())},[c]),r.useEffect(()=>{t(ne.getMe())},[]),r.useEffect(()=>{const i=setInterval(()=>{t(q.refresh())},3e5);return()=>{clearInterval(i)}},[]),e.jsxs("div",{className:O.wrapper,children:[!s&&e.jsx("button",{className:O.openLeftSidebarBtn,onClick:()=>t(k.openLeftSidebar()),children:e.jsx(R,{})}),e.jsx(Ue,{close:()=>t(k.closeLeftSidebar()),visible:s}),e.jsxs("div",{className:O.chatContainer,children:[e.jsx(Vs,{}),e.jsx(Y,{})]}),!n&&e.jsx("button",{className:O.openRightSidebarBtn,onClick:()=>t(k.openRightSidebar()),children:e.jsx(R,{})}),e.jsx(Is,{close:()=>t(k.closeRightSidebar()),visible:n})]})};export{Ks as Main};
2//# sourceMappingURL=Main-HrXqbVc5.js.map

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.