1import{l as o,r as s,A as t,m as P}from"./index.40d342e9.1791468131499.js";import{r as a}from"./agentation.5bb278ab.1791468131499.js";import{D as I}from"./draggable-floating-icon.f17eaa8a.1791468131499.js";import{u as j,i as C}from"./store.016afc78.1791468131499.js";import"./floatingNotification.constant.27687fe7.1791468131499.js";import"./dayjs.min.d5a1da16.1791468131499.js";import"./matchPredictionModules.59d916eb.1791468131499.js";import"./oddsFeedModules.090fa001.1791468131499.js";import"./promotionModules.50dc86d8.1791468131499.js";import"./index.d73faf44.1791468131499.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.