1import{e as t,a as ya,g as Ia,j as e,aS as Ca,b_ as Sa,b$ as Ta,c0 as wa,R as ra,E as sa,a0 as ta,u as La,b3 as Ma,I as Oa,h as da,D as $a,m as Ra,n as Ba,C as Va,S as ma,ae as Aa,B as Pa,aW as _a}from"./index-ePwWFRi3.js";import{T as Wa,_ as za,Q as Na,P as ja,W as Fa,Z as Da,a1 as Ha,a2 as Ua,V as Ga,a3 as Ka,u as Za,U as Xa,a4 as qa}from"./UserRouter-CzzbX84q.js";import{a as na}from"./___vite-browser-external_commonjs-proxy-DwoBiO5t.js";import{s as Qa,E as pa,a as ha,b as _,d as Ya}from"./ExchangeSportsBook-zLMJahCM.js";import{M as p,O as la}from"./liveEvent-DSSwdOIQ.js";import{A as Ja,b as Ea}from"./AccordionSummary-6cErxgQm.js";import{T as va,a as ae,b as ee,c as ua,d as Y,e as oe}from"./TableRow-D7Hj_Eud.js";import{g as se,b as le,c as ie,d as ce,e as ga}from"./exchangeSportsSelectors-aiQMihJH.js";import{S as re}from"./Seo-Dg-maXMm.js";import te from"./AdminNotification-BP9tMdfC.js";import{T as de}from"./TrendingGames-CCK-l3Lo.js";import{S as me}from"./SocialMediaNew-D1NKc2o2.js";import{s as ne}from"./SideHeaderUtil-C8-2lPPp.js";import{T as xa}from"./Tabs-DCI78MlZ.js";import{D as pe}from"./CustomButton-BtaGzRdp.js";import"./Button-DVnPiWzl.js";import"./DialogActions-1l5OBIzS.js";import"./trackApkDownload-PL4YyPKe.js";/* empty css */import"./Add-urbzbthg.js";import"./NoDataComponent-k8vmXS4W.js";import"./Tab-Bd-U1Dre.js";import"./useControlled-DDD53nha.js";import"./expand_icon-DsH2M39P.js";import"./Spinner-BwmgTLx7.js";import"./withdraw-BzWPRhcQ.js";import"./debounce-DtXjJkxj.js";import"./createSvgIcon-DkzKZIln.js";const he=({title:i,titleId:r,...h},C)=>t.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:C,"aria-labelledby":r,...h},i?t.createElement("title",{id:r},i):null,t.createElement("path",{d:"M7.75 3.08333V11.25M9.5 5.41667H9.50583M9.5 7.16667H9.50583M9.5 8.91667H9.50583M8.91667 0.75L6 3.08333L3.08333 0.75M3.55 11.25H8.45C9.43012 11.25 9.92012 11.25 10.2945 11.0592C10.6238 10.8915 10.8915 10.6238 11.0592 10.2945C11.25 9.92012 11.25 9.43012 11.25 8.45V5.88333C11.25 4.90322 11.25 4.41319 11.0592 4.03885C10.8915 3.70956 10.6238 3.44185 10.2945 3.27407C9.92012 3.08333 9.43012 3.08333 8.45 3.08333H3.55C2.56991 3.08333 2.07986 3.08333 1.70552 3.27407C1.37623 3.44185 1.10852 3.70956 0.940738 4.03885C0.75 4.41319 0.75 4.90322 0.75 5.88333V8.45C0.75 9.43012 0.75 9.92012 0.940738 10.2945C1.10852 10.6238 1.37623 10.8915 1.70552 11.0592C2.07986 11.25 2.56991 11.25 3.55 11.25Z",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})),ue=t.forwardRef(he),ba=ra.memo(()=>e.jsx(ra.Fragment,{children:e.jsxs("div",{className:"odds-block",children:[e.jsx(la,{mainValue:null,oddType:"back-odd"}),e.jsx(la,{mainValue:null,oddType:"lay-odd"})]})})),ge=i=>{const{allowedConfig:r,inplayEvents:h,setEventType:C,setCompetition:J,setExchEvent:ia,fetchingEvents:E,loggedIn:$,topicUrls:u,betFairWSConnected:v,mobBanners:g,langData:S}=i,R=Ia(),L=["home","draw","away"],[b,W]=t.useState([]),[B,V]=t.useState(""),[z,aa]=t.useState(""),F=[{key:"schedle",Label:":eventType",className:"schedule-cell schedule-cell-header br-inplay-start",align:"left",colSpan:9},{key:"homeTeamOdds",Label:"1",className:"odds-cell-head web-view br-inplay-middle",align:"center",colSpan:1},{key:"drawOdds",Label:"X",className:"odds-cell-head web-view br-inplay-middle",align:"center",colSpan:1},{key:"awayTeamOdds",Label:"2",className:"odds-cell-head web-view br-inplay-end",align:"center",colSpan:1}],M=(c,s)=>{(z!==c||B!==s)&&(Ya(),aa(c),V(s))},O=(c,s)=>{var x,D,T,H,A,U,G,K,P,Z,X,q,Q,f;const a=s==="home"?c==null?void 0:c.homeTeam:s==="away"?c==null?void 0:c.awayTeam:s,m=((x=c==null?void 0:c.matchOdds)==null?void 0:x.runners)??[];for(let l of m)if(((D=l==null?void 0:l.runnerName)==null?void 0:D.toLowerCase())===(a==null?void 0:a.toLowerCase())||(H=(T=l==null?void 0:l.runnerName)==null?void 0:T.toLowerCase())!=null&&H.includes(a==null?void 0:a.toLowerCase()))return[{type:"back-odd",price:(A=l==null?void 0:l.backPrices[0])==null?void 0:A.price,size:(U=l==null?void 0:l.backPrices[0])==null?void 0:U.size,outcomeId:l==null?void 0:l.runnerId,outcomeName:l.runnerName},{type:"lay-odd",price:(G=l==null?void 0:l.layPrices[0])==null?void 0:G.price,size:(K=l==null?void 0:l.layPrices[0])==null?void 0:K.size,outcomeId:l.runnerId,outcomeName:l.runnerName}];if(!(((P=c==null?void 0:c.providerName)==null?void 0:P.toLowerCase())===((Z=wa)==null?void 0:Z.toLowerCase()))||m.length===0)return null;const j=s==="home"?0:s==="away"?m.length>=2?1:0:s==="draw"&&m.length>=3?2:null;
1if(j!==null&&m[j]){const l=m[j];return[{type:"back-odd",price:(X=l==null?void 0:l.backPrices[0])==null?void 0:X.price,size:(q=l==null?void 0:l.backPrices[0])==null?void 0:q.size,outcomeId:l==null?void 0:l.runnerId,outcomeName:l.runnerName},{type:"lay-odd",price:(Q=l==null?void 0:l.layPrices[0])==null?void 0:Q.price,size:(f=l==null?void 0:l.layPrices[0])==null?void 0:f.size,outcomeId:l.runnerId,outcomeName:l.runnerName}]}return null},ea=(c,s)=>{var m;const a=s.competitionName?s.competitionName.toLocaleLowerCase().replace(/[^a-z0-9]/g," ").replace(/ +/g," ").trim().split(" ").join("-"):"league";C({id:c.sportId,name:c.sportName,slug:c.sportSlug}),J({id:s.competitionId,name:s.competitionName,slug:a}),ia({id:s.eventId,name:s.eventName,slug:s.eventSlug}),((m=s==null?void 0:s.providerName)==null?void 0:m.toLowerCase())==="sportradar"&&!$?R.push("/login"):(s==null?void 0:s.catId)==="SR VIRTUAL"?R.push(`/exchange_sports/virtuals/${c.sportSlug}/${a}/${s.eventSlug}/${btoa(`${s.sportId}:${s.competitionId}:${s.eventId}`)}`):R.push(`/exchange_sports/${c.sportSlug}/${a}/${s.eventSlug}/${btoa(`${s.providerName}:${s.sportId}:${s.competitionId}:${s.eventId}:${sa(s.openDate).unix()}`)}`,{homeTeam:s==null?void 0:s.homeTeam,awayTeam:s==null?void 0:s.awayTeam,openDate:s==null?void 0:s.openDate})};t.useEffect(()=>{var c;if($&&h.length>0&&(u!=null&&u.matchOddsTopic))for(let s of h){const a=[...b];M(u==null?void 0:u.matchOddsTopic,u==null?void 0:u.matchOddsBaseUrl);for(let m of s.events)a.includes(m.eventId)||(a.push(m.eventId),Qa(u==null?void 0:u.matchOddsTopic,m.sportId,m.competitionId,m.eventId,(c=m.matchOdds)==null?void 0:c.marketId));W(a)}},[v,h,$]);const oa=({sportId:c})=>{const s=Ta[c];return s?e.jsx("div",{children:e.jsx(s,{width:24,height:24,className:"ip-event-icon"})}):null};return e.jsx(e.Fragment,{children:e.jsx("div",{className:"events-table-ctn live-events-ctn",children:h.length>0?h.map((c,s)=>e.jsx(e.Fragment,{children:r!==0?e.jsx(e.Fragment,{children:e.jsx(Ja,{className:"eventType-accordion",defaultExpanded:!0,children:e.jsx(Ea,{className:"inplay-events-tbl-container",children:e.jsx("div",{className:"events-table-content table-ctn",children:e.jsx(va,{component:Ca,children:e.jsxs(ae,{className:"events-table inplay-table",children:[e.jsx(ee,{children:e.jsx(ua,{children:F.map((a,m)=>e.jsx(Y,{align:a.align==="left"?"left":"center",colSpan:a.colSpan?a.colSpan:1,className:a.className,children:a.Label===":eventType"?e.jsxs("div",{className:"icon-and-name",children:[e.jsx(oa,{sportId:c.sportId}),e.jsxs("div",{className:"ip-event-name",children:[S==null?void 0:S[Sa(c.sportName)]," "]})]}):a.Label},a.key+m))})}),e.jsx(oe,{children:c==null?void 0:c.events.map((a,m)=>e.jsxs(ua,{onClick:()=>ea(c,a),className:"bgc-white",children:[e.jsx(Y,{className:"schedule-cell ipe-time-display web-view",colSpan:1,children:e.jsx(pa,{openDate:a!=null&&a.customOpenDate?a==null?void 0:a.customOpenDate:a==null?void 0:a.openDate,forcedInplay:a==null?void 0:a.forcedInplay,status:a==null?void 0:a.status,sportId:a==null?void 0:a.sportId})}),e.jsx(Y,{className:"teams-cell mob-et-b-c",colSpan:8,children:e.jsxs("div",{className:"all-markets-nav-link",children:[(a==null?void 0:a.homeTeam)!==""&&(a==null?void 0:a.awayTeam)!==""?e.jsx(e.Fragment,{children:e.jsxs("div",{className:" team-name-ctn",children:[e.jsx("div",{className:"temas-col",children:e.jsx(ha,{eventName:a!=null&&a.customEventName?a==null?void 0:a.customEventName:a==null?void 0:a.eventName,homeTeam:a==null?void 0:a.homeTeam,awayTeam:a==null?void 0:a.awayTeam,openDate:a!=null&&a.customOpenDate?a==null?void 0:a.customOpenDate:a==null?void 0:a.openDate,forcedInplay:a==null?void 0:a.forcedInplay,status:a==null?void 0:a.status,sportId:a==null?void 0:a.sportId})}),e.jsxs("div",{className:"enabled-markets",children:[a.status==="IN_PLAY"?e.jsx("div",{className:"live-img",children:e.jsx(ue,{})}):null,e.jsx(p,{marketEnabled:(a==null?void 0:a.catId)==="SR VIRTUAL",marketType:"V"}),e.jsx(p,{marketEnabled:(a==null?void 0:a.enablePremium)&&(a==null?void 0:a.catId)!=="SR VIRTUAL",marketType:"P"}),e.jsx(p,{marketEnabled:a==null?void 0:a.enableMatchOdds,marketType:"MO"}),e.jsx(p,{marketEnabled:a==null?void 0:a.enableBookmaker,marketType:"BM"}),e.jsx(p,{marketEnabled:a==null?void 0:a.enableFancy,marketType:"F"}),e.jsx(p,{marketEnabled:a==null?void 0:a.enableGoal,marketType:"G"}),e.jsx(p,{marketEnabled:a==null?void 0:a.enableSetWinner,marketType:"S"}),e.jsx(p,{marketEnabled:a==null?void 0:a.enableToss,marketType:"T"}),e.jsx(p,{marketEnabled:(a==null?void 0:a.virtualEvent)&&a.catId!="VIRTUAL",marketType:"V2"})]})]})}):e.jsxs("div",{className:"team-name",children:[e.jsx("div",{className:"temas-col",children:e.jsx(ha,{eventName:a!=null&&a.customEventName?a==null?void 0:a.customEventName:a==null?void 0:a.eventName,openDate:a!=null&&a.customOpenDate?a==null?void 0:a.customOpenDate:a==null?void 0:a.openDate,forcedInplay:a==null?void 0:a.forcedInplay,status:a==null?void 0:a.status,sportId:a==null?void 0:a.sportId})}),e.jsxs("div",{className:"enabled-markets",children:[e.jsx(p,{marketEnabled:(a==null?void 0:a.catId)==="SR VIRTUAL",marketType:"V"}),e.jsx(p,{marketEnabled:(a==null?void 0:a.enablePremium)&&(a==null?void 0:a.catId)!=="SR VIRTUAL",marketType:"P"}),e.jsx(p,{marketEnabled:a==null?void 0:a.enableMatchOdds,marketType:"MO"}),e.jsx(p,{marketEnabled:a==null?void 0:a.enableBookmaker,marketType:"BM"}),e.jsx(p,{marketEnabled:a==null?void 0:a.enableFancy,marketType:"F"}),e.jsx(p,{marketEnabled:a==null?void 0:a.enableGoal,marketType:"G"}),e.jsx(p,{marketEnabled:a==null?void 0:a.enableSetWinner,marketType:"S"}),e.jsx(p,{marketEnabled:a==null?void 0:a.enableToss,marketType:"T"}),e.jsx(p,{marketEnabled:(a==null?void 0:a.virtualEvent)&&a.catId!="VIRTUAL",marketType:"V2"})]})]}),na&&e.jsxs("div",{className:"mob-odds-row new-odds-row",children:[e.jsx(pa,{openDate:a!=null&&a.customOpenDate?a==null?void 0:a.customOpenDate:a==null?void 0:a.openDate,forcedInplay:a==null?void 0:a.forcedInplay,status:a==null?void 0:a.status,sportId:a==null?void 0:a.sportId}),L.map((N,j)=>e.jsx("div",{className:"mob-odds-block",children:e.jsx("div",{className:"mob-exchange-btn-odd-row",children:a.matchOdds?O(a,N)?e.jsx(e.Fragment,{children:O(a,N).map(x=>e.jsx(_,{mainValue:x.price,subValue:x.size,oddType:!a.enableMatchOdds&&a.enablePremium?x.type==="back-odd"?"premium-odd":"lay-odd":x.type==="back-odd"?"back-odd":"lay-odd",disable:a.matchOdds.status.toLowerCase().includes("suspended"),valueType:!a.enableMatchOdds&&a.enablePremium?"premiumOdds":"matchOdds",showSubValueinKformat:!0}))}):e.jsxs(e.Fragment,{children:[e.jsx(_,{mainValue:null,oddType:"back-odd",disable:!0}),e.jsx(_,{mainValue:null,oddType:"lay-odd",disable:!0})]}):e.jsxs(e.Fragment,{children:[e.jsx(_,{mainValue:null,oddType:"back-odd",disable:!0}),e.jsx(_,{mainValue:null,oddType:"lay-odd",disable:!0})]})})},N+j))]})]},"all-markets-link")}),!na&&L.map((N,j)=>e.jsx(Y,{className:"odds-cell",align:"center",colSpan:1,children:a!=null&&a.matchOdds?O(a,N)?e.jsx("div",{className:"odds-block",children:O(a,N).map(x=>e.jsx(la,{mainValue:x.price,subValue:x.size,oddType:x.type==="back-odd"?"back-odd":"lay-odd",disable:a.matchOdds.status.toLowerCase().includes("suspended"),valueType:"matchOdds",showSubValueinKformat:!0,onClick:()=>null}))}):e.jsx(ba,{}):e.jsx(ba,{})},N+j))]},a.eventId))})]})})})})},s)}):null})):E?Array.from({length:10}).map(c=>e.jsx(Da,{height:"20vh",width:"100%",style:{marginBottom:"-40px"}})):e.jsx("div",{className:"events-table-msg-text",children:S==null?void 0:S.no_events_txt})})})},xe=i=>{var r;return{allowedConfig:i.common.allowedConfig,loggedIn:i.auth.loggedIn,fetchingEvents:i.exchangeSports.fetchingEvents,topicUrls:(r=i==null?void 0:i.exchangeSports)==null?void 0:r.topicUrls,betFairWSConnected:i.exchangeSports.betFairWSConnected,langData:i.common.langData}},be=i=>({setEventType:r=>i(Fa(r)),setCompetition:r=>i(ja(r)),setExchEvent:r=>
1i(Na(r)),fetchCompetitions:r=>i(za(r)),fetchEventsByCompetition:(r,h)=>i(Wa(r,h,[]))}),fe=ya(xe,be)(ge),fa="/assets/notifi-scroll-icon-noHRBsOZ.svg",ye=({title:i,titleId:r,...h},C)=>t.createElement("svg",{width:120,height:120,viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:C,"aria-labelledby":r,...h},i?t.createElement("title",{id:r},i):null,t.createElement("path",{d:"M60 25.8333C53.6569 25.8333 47.5736 28.3531 43.0884 32.8384C38.6031 37.3236 36.0833 43.4069 36.0833 49.75V61.804C36.0838 62.334 35.961 62.8569 35.7246 63.3313L29.8582 75.0607C29.5716 75.6337 29.4363 76.2705 29.4651 76.9106C29.4939 77.5506 29.6858 78.1727 30.0227 78.7177C30.3595 79.2627 30.8301 79.7125 31.3897 80.0245C31.9494 80.3364 32.5795 80.5001 33.2202 80.5H86.7798C87.4205 80.5001 88.0506 80.3364 88.6103 80.0245C89.1699 79.7125 89.6405 79.2627 89.9773 78.7177C90.3142 78.1727 90.5061 77.5506 90.5349 76.9106C90.5637 76.2705 90.4284 75.6337 90.1418 75.0607L84.2788 63.3313C84.0412 62.8572 83.9172 62.3343 83.9167 61.804V49.75C83.9167 43.4069 81.3969 37.3236 76.9116 32.8384C72.4264 28.3531 66.3431 25.8333 60 25.8333ZM60 90.75C57.8794 90.7511 55.8107 90.0945 54.079 88.8706C52.3472 87.6468 51.0377 85.916 50.3308 83.9167H69.6692C68.9623 85.916 67.6528 87.6468 65.921 88.8706C64.1893 90.0945 62.1206 90.7511 60 90.75Z",fill:"black"})),Ie=t.forwardRef(ye),Ne=i=>{var ca;const{clearAllEvents:r,clearExchcngeBets:h,inplayEvents:C,upcomingEvents:J,cupWinnerEvents:ia,fetchInplayEvents:E,fetchEventsInDateRange:$,loggedIn:u,notificationUpdated:v,langData:g,setCompetition:S,setExchEvent:R}=i,L=La(),[b,W]=t.useState("LIVE_MATCH"),[B,V]=t.useState(!1),z=t.useRef(null),[aa,F]=t.useState({}),[M,O]=t.useState([]),[ea,oa]=t.useState([]),[c,s]=t.useState(),[a,m]=t.useState([]),[N,j]=t.useState([]),[x,D]=t.useState([]),T=Ia(),H=Za(),A=t.useCallback(o=>{switch(o){case"LIVE_MATCH":E();break;case"UPCOMING":G();break}},[]),U=async()=>{const o=await ma.get("/catalog/v2/notifications/",{headers:{Authorization:sessionStorage.getItem("jwt_token")},params:{type:"ACTIVE"}});O(o.data)},G=()=>{const o=sa().toISOString(),d=sa().add(3,"d").toISOString();$(o,d)};t.useEffect(()=>{r(),h()},[]),t.useEffect(()=>{A(b)},[b]),t.useEffect(()=>{Xa().then(o=>{D(o)})},[u]),t.useEffect(()=>{u&&U()},[u,v]),t.useEffect(()=>{let o=setInterval(()=>{A(b)},3e4);return()=>{clearInterval(o)}},[b]);const K=o=>{W(o)},P=()=>{switch(b){case"LIVE_MATCH":return C.map(o=>({...o,events:o.events.filter(d=>{var n;return(n=d==null?void 0:d.eventName)==null?void 0:n.toLowerCase().includes(f==null?void 0:f.toLowerCase())})})).filter(o=>o.events.length>0);case"UPCOMING":return J.map(o=>({...o,events:o.events.filter(d=>{var n;return(n=d==null?void 0:d.eventName)==null?void 0:n.toLowerCase().includes(f==null?void 0:f.toLowerCase())})})).filter(o=>o.events.length>0);case"SPORT":return C.filter(o=>o.sportId===c||o.sportId===Aa[o.sportId]||o.sportId.split("_").join(":")===c).map(o=>{const d=o.events.filter(n=>{var y;return(y=n==null?void 0:n.eventName)==null?void 0:y.toLowerCase().includes(f==null?void 0:f.toLowerCase())});return{...o,events:d}}).filter(o=>o.events.length>0)}};t.useEffect(()=>{console.log(P())},[b]);const Z=o=>e.jsx("div",{className:"marquee-new",children:o.map(d=>e.jsxs("div",{className:"notifi-item",children:[e.jsx("img",{src:fa,alt:"",className:"notifi-scroll-icon",loading:"lazy",style:{animationDuration:`${Math.max(10,d.message.length/5)}s`}}),e.jsx("span",{className:"notifi-mssage",style:{animationDuration:`${Math.max(10,d.message.length/5)}s`},children:d.message}),e.jsx("img",{src:fa,alt:"",className:"notifi-scroll-icon",loading:"lazy",style:{transform:"scaleX(-1)",animationDuration:`${Math.max(10,d.message.length/5)}s`}})]}))}),X=()=>{V(!1)};t.useEffect(()=>{if(!B){F({});return}const o=()=>{const n=z.current;if(!n)return;const{top:y,left:I,width:w,height:k}=n.getBoundingClientRect();F({WebkitMaskImage:"linear-gradient(#000 0 0), linear-gradient(#000 0 0)",WebkitMaskSize:`100% 100%, ${w}px ${k}px`,WebkitMaskPosition:`0 0, ${I}px ${y}px`,WebkitMaskRepeat:"no-repeat",WebkitMaskComposite:"xor",maskImage:"linear-gradient(#000 0 0), linear-gradient(#000 0 0)",maskSize:`100% 100%, ${w}px ${k}px`,maskPosition:`0 0, ${I}px ${y}px`,maskRepeat:"no-repeat",maskComposite:"exclude"})},d=requestAnimationFrame(o);return window.addEventListener("resize",o),()=>{cancelAnimationFrame(d),window.removeEventListener("resize",o)}},[B]);const q=async()=>{var y;let o=[],d=[],n=[];try{const I=await ma.get(`/account/v2/books/${Pa}/banners`,{headers:{"Content-Type":"application/json"},params:{status:"active",type:"*",category:"inplaybanner"}});let w=(y=I==null?void 0:I.data)==null?void 0:y.banners;(w==null?void 0:w.length)>0&&(w.map((k,Ce)=>{k.deviceType==="desktop"&&(o==null?void 0:o.length)<4&&o.push(k),k.deviceType==="mobile"&&n.push(k)}),_a.get("https://stage-cdn.faircric.com/faircric/6c3a5cc0-3b07-45d2-bd85-de6bbe4f4e9c",{headers:{"Content-Type":"application/text"}}).then(k=>{console.log("res - ",k.data)}),m(d),oa(o),j(n))}catch(I){console.log(I)}};t.useEffect(()=>{q()},[]);const Q=o=>{var n,y,I;const d=o.competitionName?o.competitionName.toLocaleLowerCase().replace(/[^a-z0-9]/g," ").replace(/ +/g," ").trim().split(" ").join("-"):"league";
1S({id:o.competitionId,name:o.competitionName,slug:d}),R({id:o.eventId,name:o.eventName,slug:o.eventSlug}),((n=o==null?void 0:o.providerName)==null?void 0:n.toLowerCase())==="sportradar"&&!u?T.push("/login"):(o==null?void 0:o.catId)==="SR VIRTUAL"?T.push(`/exchange_sports/virtuals/${(y=ga[o==null?void 0:o.sportId])==null?void 0:y.toLowerCase()}/${d}/${o.eventSlug}/${btoa(`${o.sportId}:${o.competitionId}:${o.eventId}`)}`):T.push(`/exchange_sports/${(I=ga[o==null?void 0:o.sportId])==null?void 0:I.toLowerCase()}/${d}/${o.eventSlug}/${btoa(`${o.providerName}:${o.sportId}:${o.competitionId}:${o.eventId}`)}`,{homeTeam:o==null?void 0:o.homeTeam,awayTeam:o==null?void 0:o.awayTeam,openDate:o==null?void 0:o.openDate})},[f,l]=t.useState(""),ka=()=>{l("")};return e.jsxs("div",{children:[e.jsx(re,{title:Ma,name:"Inplay events page",description:"Inplay events page",type:"Inplay events page",link:L==null?void 0:L.pathname}),e.jsxs(Oa,{className:"exch-inplay-events-view",children:[e.jsxs(da,{sizeLg:b==="CUP_WINNER"?"11.8":"9",sizeMd:b==="CUP_WINNER"?"10.8":"8",sizeXs:"12",className:"exch-inplay-events-table-section",children:[(M==null?void 0:M.length)>0?e.jsxs("div",{className:"noti-header",children:[e.jsxs("div",{ref:z,className:"animation-notifi",onClick:()=>V(!0),children:[e.jsx(Ie,{className:"notification-icon"}),Z(M)]}),e.jsx("div",{className:"search-tab",children:e.jsxs("div",{className:"search-games-ctn",children:[e.jsx("input",{className:"search-games-input gradient-border",placeholder:g==null?void 0:g.search_events,value:f,onChange:o=>l(o.target.value)}),e.jsx(qa,{onClick:()=>ka()})]})})]}):null,(x==null?void 0:x.length)>0&&e.jsx(xa,{variant:"scrollable",className:"favourite-events",children:x.map(o=>e.jsx("button",{className:"favourite-event-item",onClick:()=>Q(o),children:e.jsx("span",{className:"event-name",children:o!=null&&o.customEventName?o.customEventName:o.eventName})}))}),e.jsx("div",{className:"notifi-live-upcoming-tabs",children:e.jsx("div",{className:"inplay-status-tabs",children:e.jsx("div",{className:"time-tabs",children:e.jsxs(xa,{variant:"scrollable",scrollButtons:"off",children:[e.jsx("button",{className:`inplay-tab ${b==="LIVE_MATCH"?"selected-inplay-tab":""}`,onClick:()=>{K("LIVE_MATCH")},children:g==null?void 0:g.all}),(ca=ne)==null?void 0:ca.map(o=>o.text!=="Multi markets"&&e.jsxs("button",{className:`inplay-tab ${c===o.id&&b!=="LIVE_MATCH"?"selected-inplay-tab":""}`,onClick:()=>{if(o.route&&String(o.route).startsWith("/dc/")){T.push(o.route);return}W("SPORT"),s(o.id)},children:[e.jsx(o.img,{className:"sub-header-icons"}),o.langKey==="cock_fight"?(g==null?void 0:g.cock_fight)||"Cock Fight":g==null?void 0:g[o.langKey]]}))]})})})}),e.jsx(fe,{inplayEvents:P(),mobBanners:ea})]}),b!=="CUP_WINNER"&&e.jsx(da,{sizeLg:"2.8",sizeMd:"4",sizeXs:"12",className:"exch-providers pos-sticky-10",children:e.jsx(de,{langData:g})})]}),H.width<720&&e.jsx("div",{className:"inplay-social-media",children:e.jsx(me,{})}),e.jsxs($a,{open:B,onClose:X,"aria-labelledby":"Settlements Dialog",fullScreen:!1,fullWidth:!0,maxWidth:"md",className:"stl-dialog notification-dialog",BackdropProps:{style:aa},children:[e.jsx(pe,{className:"stl-dialog-title",children:e.jsxs("div",{className:"title-close-icon",children:[e.jsx("div",{className:"modal-title notification-title",children:g==null?void 0:g.notifications}),e.jsx(Ra,{className:"close-btn",onClick:()=>V(!1),children:e.jsx(Ba,{className:"close-icon"})})]})}),e.jsx(Va,{className:"stl-dialog-content",children:e.jsx(te,{})})]})]})},je=i=>{const r=i.exchangeSports.selectedEventType,h=i.exchangeSports.selectedCompetition;return{inplayEvents:ce(i.exchangeSports.events,i.common.contentConfig),upcomingEvents:ie(i.exchangeSports.events,i.common.contentConfig),cupWinnerEvents:le(i.exchangeSports.events,i.common.contentConfig),events:se(i.exchangeSports.events,ta[r.id]?ta[r.id]:r.id,h.id),notificationUpdated:i.common.notificationUpdated,langData:i.common.langData}},ke=i=>({clearAllEvents:()=>i(Ka()),clearExchcngeBets:()=>i(Ga()),fetchInplayEvents:r=>i(Ua()),fetchEventsInDateRange:(r,h)=>i(Ha(r,h)),setExchEvent:r=>i(Na(r)),setCompetition:r=>i(ja(r))}),ve=ya(je,ke)(Ne);export{ve 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.