1import{O as d,w as o,T as p,bu as x,N as w,ag as y,bx as E,j as r,ey as h,ex as R}from"./client-Bai4VJA1.js";import{u as j,I as c,t as C}from"./FeaturedSgmWidgetHeader-Bs5pMGp9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"97808a5afbf047a0a6f7534b79e8c9b165448d38"};var n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="256ab30f-5171-48ba-9a24-f308a6adea7e",e._sentryDebugIdIdentifier="sentry-dbid-256ab30f-5171-48ba-9a24-f308a6adea7e")}catch{}})();const z=()=>d(n=>n.embed);function I(e){const[n,t]=o.useState(null);return o.useEffect(()=>{if(e.current){const i=new ResizeObserver(([l])=>t(l.contentRect)),{current:s}=e;if(s)return i.observe(s),()=>i.unobserve(s)}},[e]),n}function N(e){const n=I(e),[t,i]=o.useState(null),s=o.useCallback(()=>{e.current&&i(e.current.getBoundingClientRect())},[e]);return o.useEffect(()=>(window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}),[s]),o.useEffect(()=>{s()},[n,s]),t}const T=({routeToLogin:e})=>{const{t:n}=j(),t=p(),i=x(),{loggedIn:s}=w(),l=d(v=>v.racing.visionEnabled),b=y(),f=z(),{flags:u}=E(),g=f?.logoCircleUrl??`${b.assetsUrl}/public/logos-circle/${t.logoCircle}.svg`,a=o.useMemo(()=>u?.skyVisionEnabled?"sky1":u?.betVisionEnabled?"vision":"none",[u]),m=()=>{s?(i(h(a)),i(R())):e&&e()};return a==="none"||l?null:r.jsxs("button",{onClick:m,className:C("border-bg-button-vision relative rounded-full border-2 p-0.5 shadow-lg","h-[78px] w-[78px]"),children:[a==="vision"&&r.jsx("img",{src:g,alt:t.logoCircle,className:"h-full w-full"}),a==="sky1"&&r.jsx(c,{name:"sky-circle",size:"raw"}),r.jsxs("div",{className:"bg-bg-button-vision text-text-button-vision absolute bottom-[-10px] left-0 right-0 z-50 flex h-6 items-center justify-center gap-0.5 rounded-lg p-3",children:[r.jsx(c,{name:"vision-play",size:"raw"}),r.jsx("span",{className:"text-xs font-extrabold uppercase ",children:n("watch",{ns:"racing"})})]})]})};export{T as F,N as a,I as u};
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.