1import{l as o,r as s,A as t,m as P}from"./index.de87edb2.1790921510855.js";import{r as a}from"./agentation.fba256cd.1790921510855.js";import{D as I}from"./draggable-floating-icon.2e3a649c.1790921510855.js";import{u as j,i as C}from"./store.f11aeb67.1790921510855.js";import"./floatingNotification.constant.27687fe7.1790921510855.js";import"./dayjs.min.bf300ad3.1790921510855.js";import"./matchPredictionModules.1de5babb.1790921510855.js";import"./oddsFeedModules.562f5348.1790921510855.js";import"./promotionModules.f66e2e00.1790921510855.js";import"./index.803958c3.1790921510855.js";const V=()=>{const r=a.useHistory(),{pathname:l}=a.useLocation(),n=o.useSelector(e=>e?.portal),p=o.useSelector(e=>e?.screen),i=o.useSelector(e=>e.predictionReducer?.floatingIcon),d=s.useMemo(()=>i?.settingStatus?.toUpperCase()==="ACTIVE",[i?.settingStatus]),m=o.useDispatch(),[u,h]=s.useState(!0),c="/public/html/default_whitelabel/template/images/prediction/predict-floating-icon.png",g=p.isMobile?i?.mobileIconPath||c:i?.webIconPath||c,f=j(n?.settings?.features?.hideFloatingPredictionIconOnPaths)?.some(e=>l?.startsWith?.(e));s.useEffect(()=>{m(C())},[]);const b=()=>{r.push("/match-prediction")},x=()=>{h(!1)};if(!(!u||!d||f))return t.jsx(t.Fragment,{children:t.jsxs(I,{id:"prediction-icon",customClass:"prediction-icon-wrapper theme",disableDragFeature:P(n,"settings.features.disablePredictionDragFeature"),showFullSizeOpt:!0,children:[t.jsx("button",{className:"prediction-icon-close",onClick:()=>x()}),t.jsx("button",{onClick:()=>b(),children:t.jsx("div",{className:"prediction-icon-content-wrapper",children:t.jsx("div",{className:"prediction-icon-top-wrapper",children:t.jsx("div",{className:"prediction-icon-image",children:t.jsx("img",{draggable:!1,src:g})})})})})]})})};export{V as 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.