PageSourceSearch

https://arabia365.com/assets/ExchangeSportsBook-ZBXLIlsx.js

js arabia365.com collected 2026-10-03 18:21:06 UTC 37,843 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ExchInplayEventsView-BCW_JLk1.js","assets/index-BP99-Kiy.js","assets/index-DOdRD5Dv.css","assets/UserRouter-0lY9qO-N.js","assets/___vite-browser-external_commonjs-proxy-Be4j4IkX.js","assets/Button-DgnPDEVz.js","assets/DialogActions-DqP0oj-U.js","assets/CustomButton-DgoUqeqd.js","assets/CustomButton-CstZwuHw.css","assets/trackApkDownload-1DCe7sUx.js","assets/UserRouter-DJOyunfK.css","assets/liveEvent-DdXZqJ5Y.js","assets/liveEvent-D-judO4e.css","assets/AccordionSummary-yaLV5zIl.js","assets/useControlled-2mnCc5iv.js","assets/TableRow-CFSDyUhF.js","assets/exchangeSportsSelectors-C9D1x0os.js","assets/Seo-DwiHh3pF.js","assets/AdminNotification-vlvUQqlP.js","assets/expand_icon-L0brBftK.js","assets/Spinner-C8En8sma.js","assets/Spinner-DnmQejRu.css","assets/AdminNotification-CLcgpUK9.css","assets/TrendingGames-jmS5-mMB.js","assets/SocialMediaNew-DpHeNRE0.js","assets/SocialMediaNew-CzZtzCTA.css","assets/SideHeaderUtil-DgYMml5r.js","assets/withdraw-R0RMwe3S.js","assets/Tabs-CMbrVkzF.js","assets/debounce-DtXjJkxj.js","assets/createSvgIcon-Lcqb3FMo.js","assets/Add-DHPMPfly.js","assets/NoDataComponent-C-5FW-QF.js","assets/NoDataComponent-BvG6Uodd.css","assets/Tab-BVLrDO2d.js","assets/ExchInplayEventsView-6KQtER1m.css","assets/SportsProviderIframe-CN1vRqe7.css","assets/ExchangeAllMarkets-DSzeoAq2.js","assets/ArrowBack-DdYi0WYA.js","assets/ExchangeAllMarkets-bgqso6vF.js","assets/CloseOutlined-D8XNPwe3.js","assets/MarketTermsCondi-DvvvRq_t.js","assets/ExpandMore-6lKXnH1P.js","assets/MarketTermsCondi-Dad3xK-e.css","assets/CurrencyTypeFactor-BXiaQXLY.js","assets/Tooltip-BWJIkSHZ.js","assets/Grow-CSsOp4CC.js","assets/Drawer-BmkU9H-V.js","assets/capitalize-CnEmi4Ir.js","assets/createStyles-yD3y8ldD.js","assets/react-number-format.es-CagjhuxW.js","assets/ExchangeAllMarkets-CLxajoPu.css","assets/TabPanel-COdgWJ-x.js","assets/index-Mx64PBmk.js","assets/Checkbox-CD62lPJ9.js","assets/SwitchBase-CXAaJz_k.js","assets/useFormControl-BSJlwtVR.js","assets/ExchangeAllMarkets-28ybRXbQ.css","assets/MultimarketView-CwR1lOgF.js","assets/ExchangeVirtualMarkets-CXBQQQ5u.js"])))=>i.map(i=>d[i]);
2import{p as Ca,R as _e,E as b,aF as S,b$ as ma,u as ke,j as a,e as l,a as oe,a1 as R,g as je,bD as Fe,b5 as Oa,aU as ua,c0 as pa,$ as wa,a0 as Aa,c1 as Ba,c2 as Ma,N as aa,c3 as ta,S as $a,B as _a,I as Fa,h as sa,c4 as Va,c5 as Ra,bh as La,aX as q,b6 as he}from"./index-BP99-Kiy.js";import{x as Ve,y as Re,z as oa,A as ca,B as ia,D as Da,E as Wa,G as Pa,H as za,I as Ga,J as Ya,K as Qa,L as Ja,N as Ua,O as ha,P as fa,Q as ba,T as ga,U as Ha,V as Za,W as Ka,w as qa}from"./UserRouter-0lY9qO-N.js";/* empty css                             */import{g as xa}from"./exchangeSportsSelectors-C9D1x0os.js";import{d as Oe}from"./Add-DHPMPfly.js";import{L as Sa,M as y,O as $e}from"./liveEvent-DdXZqJ5Y.js";import{a as G}from"./___vite-browser-external_commonjs-proxy-Be4j4IkX.js";import{N as ka}from"./NoDataComponent-C-5FW-QF.js";import{S as Xa}from"./Seo-DwiHh3pF.js";import{T as ja}from"./Tabs-CMbrVkzF.js";import{T as ya,a as Ia,b as va,c as ue,d as X,e as Ta}from"./TableRow-CFSDyUhF.js";import{B as we}from"./Button-DgnPDEVz.js";import{T as Na}from"./TrendingGames-jmS5-mMB.js";import{T as Ea}from"./Tab-BVLrDO2d.js";const Ae=Ca(_e.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}));let _=null,Q=null,F=null,L={},$={},Be=new Map,J={},D={},W={},P={},z={},ae,te,se;const Le=t=>{if(_==null){const s=new Ve(t);_=Re.over(s),_.debug=null,_.heartbeat.outgoing=5e3,_.connect({},function(o){console.log("BF Connected: "+o+" time "+b.now()),S.dispatch(oa(!0)),clearInterval(ae),ae=void 0},function(o){S.dispatch(oa(!1)),et(),console.log("bf ws_error: "+o+" time "+b.now()),typeof ae>"u"&&(ae&&clearInterval(ae),ae=setInterval(()=>{Le(t)},30*1e3))})}},et=()=>{if(_!=null){for(const t of Object.keys(L))L[t].unsubscribe(),console.log("bf unsubscribed "+t),delete L[t];for(const t of Object.keys(z))z[t].unsubscribe(),console.log("bf unsubscribed "+t),delete z[t];for(const t of Object.keys($))$[t].unsubscribe(),console.log("scorecard unsubscribed "+t),delete $[t];L={},z={},$={},S.getState().exchangeSports.betFairWSConnected&&_.disconnect(()=>console.log("BF Disconnected - time "+b.now())),_=null}},De=t=>{if(F==null&&t){const s=new Ve(t);F=Re.over(s),F.debug=null,F.heartbeat.outgoing=5e3,F.connect({token:`Bearer ${ma()}`},function(o){console.log("DR Connected: "+o+" time "+b.now()),S.dispatch(ca(!0)),clearInterval(se),se=void 0},function(o){S.dispatch(ca(!1)),at(),console.log("dream ws_error: "+o+" time "+b.now()),typeof se>"u"&&(se&&clearInterval(se),se=setInterval(()=>{De(t)},30*1e3))})}},at=()=>{if(F!=null){for(const t of Object.keys(D))D[t].unsubscribe(),console.log("dream unsubscribed "+t),delete D[t];D={};for(const t of Object.keys(W))W[t].unsubscribe(),console.log("dream unsubscribed "+t),delete W[t];W={};for(const t of Object.keys(P))P[t].unsubscribe(),console.log("dream unsubscribed "+t),delete P[t];P={},F.disconnect(()=>console.log("Dream Disconnected - time "+b.now())),F=null}},We=t=>{if(Q==null&&t){const s=new Ve(t);Q=Re.over(s),Q.debug=null,Q.heartbeat.outgoing=1e4,Q.connect({token:`Bearer ${ma()}`},function(o){console.log("SR Connected: "+o+" time "+b.now()),S.dispatch(ia(!0)),clearInterval(te),te=void 0}
2,function(o){S.dispatch(ia(!1)),tt(),console.log("SR ws_error: "+o+" time "+b.now()),typeof te>"u"&&(te&&clearInterval(te),te=setInterval(()=>{We(t)},30*1e3))})}},tt=()=>{if(Q!=null){for(const t of Object.keys(J))J[t].unsubscribe(),console.log("dream unsubscribed "+t),delete J[t];J={},Q.disconnect(()=>console.log("SR Disconnected - time "+b.now())),Q=null}},st=t=>{t!=null&&t.matchOddsBaseUrl&&Le(t==null?void 0:t.matchOddsBaseUrl),t!=null&&t.bookMakerAndFancyBaseUrl&&De(t==null?void 0:t.bookMakerAndFancyBaseUrl),t!=null&&t.premiumBaseUrl&&We(t==null?void 0:t.premiumBaseUrl)},qt=t=>{S.getState().exchangeSports.betFairWSConnected||(console.log("BetFair client is null or not connected"),Le(t.matchOddsBaseUrl)),S.getState().exchangeSports.dreamWSConnected||(console.log("Dream client is null or not connected"),De(t.bookMakerAndFancyBaseUrl)),S.getState().exchangeSports.sportsRadarWSConnected||(console.log("SR client is null or not connected"),We(t.premiumBaseUrl))},Pe=(t,s,o,c,u,m,k)=>{S.getState().exchangeSports.betFairWSConnected?L[c]===void 0&&(Be.set(c,`${s}-${o}`),L[c]=_.subscribe(`${t}/${c}/${u}`,function(T){const h=JSON.parse(T.body),p={eventId:h.eventId,matchOdds:{marketId:h.marketId,marketTime:h.marketTime,marketName:h.marketName,status:h.status,runners:h.runners}},g=h.eventId;if(g){const j={eventData:p.matchOdds?p.matchOdds:"no-data",sportId:Be.get(g).split("-")[0],competitionId:Be.get(g).split("-")[1],eventId:g,matchOddsData:p.matchOdds?p.matchOdds:null,isMultiMarket:!!k};j&&j!==void 0&&(k?S.dispatch(Da({events:[j]})):S.dispatch(Wa({events:[j]})))}})):setTimeout(()=>Pe(t,s,o,c,u,m,k),1e3)},ot=(t,s,o,c,u,m)=>{if(S.getState().exchangeSports.dreamWSConnected){let k=t.includes("tommy")?`${t}/${s}/${o}`:`${t}/${s}`;D[s]===void 0&&(D[s]=F.subscribe(k,function(T){try{const p=JSON.parse(T.body);if(s){const g={eventId:s,bookmakerOddsData:p||[],enableBookmaker:!0};m?S.dispatch(za({...g,sportId:c,competitionId:u})):S.dispatch(Ga(g))}}catch(h){console.error("Failed to update bm odds ",h)}}))}else setTimeout(()=>ot(t,s,o,c,u,m),1e3)},ct=(t,s)=>{if(S.getState().exchangeSports.betFairWSConnected||S.getState().exchangeSports.dreamWSConnected){let o=`${t}${s}`,c=S.getState().exchangeSports.betFairWSConnected?_:F;$[s]===void 0&&($[s]=c.subscribe(o,function(u){try{let m=u.body;const k=m.indexOf("<html");if(k!==-1){const T=m.substring(k);S.dispatch(Pa(T))}}catch(m){console.error("Failed to update scorecard",m)}}))}else setTimeout(()=>ct(t,s),1e3)},it=(t,s)=>{if(S.getState().exchangeSports.dreamWSConnected){let o=`${t}/${s}`;W[s]===void 0&&(W[s]=F.subscribe(o,function(c){try{const u=JSON.parse(c.body);if(s){const m={eventId:s,fancyUpdateData:u};S.dispatch(Ya(m))}}catch(u){console.error("Failed to update fancy odds ",u)}}))}else setTimeout(()=>it(t,s),1e3)},nt=(t,s)=>{if(S.getState().exchangeSports.dreamWSConnected){let o=`${t}/${s}`;P[s]===void 0&&(P[s]=F.subscribe(o,function(c){try{const u=JSON.parse(c.body);if(s){const m={eventId:s,fancyUpdateData:u};S.dispatch(Qa(m))}}catch(u){console.error("Failed to update line odds ",u)}}))}else setTimeout(()=>nt(t,s),1e3)},Xt=(t,s,o,c,u,m,k)=>{S.getState().exchangeSports.betFairWSConnected&&z[s+"-"+o]===void 0&&(z[s+"-"+o]=_.subscribe(`${t}/${s}/${o}`,function(T){var j;const h=JSON.parse(T.body),p={eventId:h.eventId,matchOdds:{marketId:h.marketId,marketTime:h.marketTime,marketName:h.marketName,status:h.status,runners:h.runners}},g=h.eventId;if(g){const f={eventId:g,marketId:(j=p.matchOdds)==null?void 0:j.marketId,matchOddsData:p.matchOdds?p.matchOdds:null};k?S.dispatch(Ja({...f,sportId:u,competitionId:m})):S.dispatch(Ua(f))}}))},pe=()=>{if(S.getState().exchangeSports.betFairWSConnected){for(const t of Object.keys(L))L[t].unsubscribe(),console.log("unsubscribed "+t),delete L[t];for(const t of Object.keys(z))z[t].unsubscribe(),console.log("unsubscribed "+t),delete z[t];for(const t of Object.keys($))$[t].unsubscribe(),console.log("unsubscribed "+t),delete $[t];L={},z={},$={}}if(S.getState().exchangeSports.dreamWSConnected){for(const t of Object.keys(D))D[t].unsubscribe(),console.log("unsubscribed "+t),delete D[t];D={};for(const t of Object.keys($))$[t].unsubscribe(),console.log("unsubscribed "+t),delete $[t];$={}}if(S.getState().exchangeSports.dreamWSConnected){for(const t of Object.keys(W))W[t].unsubscribe(),console.log("unsubscribed "+t),delete W[t];W={};for(const t of Object.keys(P))P[t].unsubscribe(),console.log("unsubscribed "+t),delete P[t];P={}}if(S.getState().exchangeSports.sportsRadarWSConnected){for(const t of Object.keys(J))J[t].unsubscribe(),console.log("sr unsubscribed "+t),delete J[t];J={}}},Se=()=>{_!==null&&pe()},rt="/assets/No_events_icon-ZUwRVsuz.svg",Me=t=>{const{openDate:s,forcedInplay:o,status:c,sportId:u}=t,m=ke().pathname;return a.jsx(a.Fragment,{children:u!="2"&&b(s).diff(b(),"seconds")<=0||o||c=="IN_PLAY"||u==="2"&&b(s).diff(b(),"minutes")<=5?!G&&a.jsx("img",{className:m!=null&&m.includes("/inplay")||m!=null&&m.includes("/home")?"live-img-display inplay-img-display":"live-img-display",src:Sa}):a.jsxs("div",{className:"date-display",children:[a.jsx("div",{children:b(b(s).format("DD MMM YYYY")).isSame(b().format("DD MMM YYYY"))?"Today":b(s).format("DD MMM")}),a.jsx("div",{children:b(s).format("hh:mm A")})]})})},na=t=>
2{const{homeTeam:s,awayTeam:o,eventName:c,openDate:u,forcedInplay:m,status:k,sportId:T}=t,h=ke().pathname;return a.jsxs("div",{className:"home-away-team",children:[c?a.jsx("div",{className:"team-names",children:c}):a.jsxs("div",{className:"team-names",children:[s,"   V  ",o]}),a.jsxs("div",{className:"team-names flex-team",children:[a.jsx("span",{className:"date",children:T!="2"&&b(u).diff(b(),"seconds")<=0||m||k=="IN_PLAY"||T==="2"&&b(u).diff(b(),"minutes")<=5?"("+b(u).format("DD/MM/YY , hh:mm A")+")":null}),G&&k=="IN_PLAY"&&a.jsx("img",{className:h!=null&&h.includes("/inplay")||h!=null&&h.includes("/home")?"live-img-display inplay-img-display":"live-img-display",src:Sa}),G&&k==="UPCOMING"&&a.jsx("div",{className:"upcoming-badge",children:"Upcoming"})]})]})},lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAYAAAAiYZ4HAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGQSURBVHgBlZGxSwJxFMd/Z+apCZ5aapmoNWhR5OAW5EENNQQSQg1CRWOz4BCp/REtDik0OIktQmR0YkNLYA0iNnSFxElSd3nqqXiXN5xcCkofePD7vd/3y3u/9yAgwuFArasbOxcwLHeOwzD4+iwns9lUGC9guKAZE4vdW7t3Gq3eSlHfMZZtv5lm5zx2h3Pvg6rESAJn/hjWt49CBoN5s4jnF+KRQPzxIZWEYe21Zd4RkEGyZv45g/E6iWBQTahXajSFJaOhXvmb1HmuTJRyk1MzTiEnFf+BYRqgH7bTIbuhFu6Q13eCanTT+wiiQ9utJsJxUFJskMGyXr748nQF+YPx1xr9g7BshwRDkCuUSIthgLRer1qJcimcuDwLDTN4fachvdEclIB/Iu1PCMvjz7fpxKF4aTwDFZZcawcWmx3lY3nR5el/HzAQxDtGVynAh9Fowka2dJ+OYpUSbusOhMRxjBxp4Cn09S0GOvZHOMABDAIgA4bQYBpuWK5ApbUqGVaqkCAHADrM0BUDmibDv2wQpIpCmcgxAAAAAElFTkSuQmCC",me=t=>{const{mainValue:s,mainValueClass:o,subValue:c,subValueClass:u,disable:m,oddType:k,valueType:T,onClick:h,oddsSet:p,showSubValueinKformat:g}=t,[j,f]=l.useState(null),[N,x]=l.useState("mob-exch-odd-button"),[V,C]=l.useState(null),M=2,[A,U]=l.useState(),H=0;l.useEffect(()=>{c&&U(T==="matchOdds"?c*1e3:c)},[c,T]);const ye=()=>{clearTimeout(V);const v=s;if(v){const Z=j;f(v),Z&&v!==Z&&(N.includes("odd-change")||x(N+" odd-change"),C(setTimeout(()=>x(N.replace(" odd-change","")),5e3)))}};return l.useEffect(()=>ye(),[s]),a.jsx("div",{className:"mob-exch-odd-view",children:s&&Number(s)>0?a.jsx("div",{className:m?`${k} disabled `+N:`${k} `+N,children:a.jsxs("div",{className:"mob-exch-odd-button-content",children:[a.jsx("div",{className:o||"price",children:Number.isNaN(Number(s))?a.jsx("br",{}):Number(s).toFixed(M)}),k!=="premium-odd"&&T!=="bookmakerOdds"?a.jsx("div",{className:u||"size",children:A?g&&+(A>999)?Number(A/1e3).toFixed(H)+"K":Number(A).toFixed(H):"0.00K"}):null]})}):a.jsx("div",{className:`${k} disabled `+N,children:a.jsx("img",{className:"lock-icon",slot:"icon-only",src:lt,alt:"lock"})})})},dt=t=>{var I,O;const{allowedConfig:s,events:o,selectedEventType:c,selectedCompetition:u,fetchEventsByCompetition:m,setExchEvent:k,setCompetition:T,fetchEventsBySport:h,fetchingEvents:p,loggedIn:g,topicUrls:j,betFairWSConnected:f,loading:N,langData:x}=t,V=je(),C=Fe(),M=ke(),A=["home","draw","away"],[U,H]=l.useState([]),[ye,v]=l.useState([]),[Z,ce]=l.useState(""),[fe,Ie]=l.useState(""),[Te,Ne]=l.useState(""),[B,E]=l.useState(),[ee,be]=l.useState([]),Y=(e,i)=>{var ze,Ge,Ye,Qe,Je,Ue,He,Ze,Ke,qe,Xe,ve,Ee,ea;const d=i==="home"?e==null?void 0:e.homeTeam:i==="away"?e==null?void 0:e.awayTeam:i,w=((ze=e==null?void 0:e.matchOdds)==null?void 0:ze.runners)??[];for(let r of w)if(((Ge=r==null?void 0:r.runnerName)==null?void 0:Ge.toLowerCase())===(d==null?void 0:d.toLowerCase())||(Qe=(Ye=r==null?void 0:r.runnerName)==null?void 0:Ye.toLowerCase())!=null&&Qe.includes(d==null?void 0:d.toLowerCase()))return[{type:"back-odd",price:(Je=r==null?void 0:r.backPrices[0])==null?void 0:Je.price,size:(Ue=r==null?void 0:r.backPrices[0])==null?void 0:Ue.size,outcomeId:r==null?void 0:r.runnerId,outcomeName:r==null?void 0:r.runnerName},{type:"lay-odd",price:(He=r==null?void 0:r.layPrices[0])==null?void 0:He.price,size:(Ze=r==null?void 0:r.layPrices[0])==null?void 0:Ze.size,outcomeId:r==null?void 0:r.runnerId,outcomeName:r==null?void 0:r.runnerName}];if(!(((Ke=e==null?void 0:e.providerName)==null?void 0:Ke.toLowerCase())===((qe=Ma)==null?void 0:qe.toLowerCase()))||w.length===0)return null;const de=i==="home"?0:i==="away"?w.length>=2?1:0:i==="draw"&&w.length>=3?2:null;if(de!==null&&w[de]){const r=w[de];return[{type:"back-odd",price:(Xe=r==null?void 0:r.backPrices[0])==null?void 0:Xe.price,size:(ve=r==null?void 0:r.backPrices[0])==null?void 0:ve.size,outcomeId:r==null?void 0:r.runnerId,outcomeName:r==null?void 0:r.runnerName},{type:"lay-odd",price:(Ee=r==null?void 0:r.layPrices[0])==null?void 0:Ee.price,size:(ea=r==null?void 0:r.layPrices[0])==null?void 0:ea.size,outcomeId:r==null?void 0:r.runnerId,outcomeName:r==null?void 0:r.runnerName}]}return null};l.useEffect(()=>{C.competition||T({id:"",name:"",slug:""})},[C]),l.useEffect(()=>{E(null)},[M==null?void 0:M.pathname]);const ge=(e,i)=>{(Te!==e||fe!==i)&&(Se(),Ne(e),Ie(i))},Ce=async e=>{console.log(e);const i=await wa.get("/catalog/v2/sports-feed/sports/live-events:search",{headers:{Authorization:sessionStorage.getItem("jwt_token")},params:{providerId:Aa,query:e}});i.status==200&&v(i==null?void 0:i.data)};l.useEffect(()=>{Z&&Ce(Z)},[Z]);const xe=()=>{C.competition?m(R[c.id]?R[c.id]:c.id,u.id,o):h(R[c.id]?R[c.id]:c.id,o)};l.useEffect(()=>{C.competition||h(R[c.id]?R[c.id]:c.id,o)},[c]),l.useEffect(()=>{C.competition&&!o&&m(R[c.id]?R[c.id]:c.id,u.id,o)},[u]),l.useEffect(()=>{let e=setInterval(()=>{xe()},6e4);return()=>{clearInterval(e)}},[c]),l.useEffect(()=>{pe(),H([])},[c]),l.useEffect(()=>{C.competition&&(pe(),H([]))},[u,C]),l.useEffect(()=>{var e;if(g&&(j!=null&&j.matchOddsTopic)&&c.id==="4"&&o){ge(j==null?void 0:j.matchOddsTopic,j==null?void 0:j.matchOddsBaseUrl);let i=[...U];for(let d of o)d.status==="IN_PLAY"&&!U.includes(d.eventId)&&(i.push(d.eventId),Pe(j==null?void 0:j.matchOddsTopic,d.sportId,d.competitionId,d.eventId,(e=d.matchOdds)==null?void 0:e.marketId));H(i)}},[f,o,c,g]);const ie=e=>e==null?void 0:e.toLocaleLowerCase().replace(/[^a-z0-9]/g," ").replace(/ +/g," ").trim().split(" ").join("-"),ne=e=>{let i=e;i=b.utc(e).toString();let d=b(i);return d=d.local(),b(d).diff(b(),"minutes")>60*24*2},re=e=>{var i;T({id:e.competitionId,name:e.competitionName,slug:ie(e.competitionName)}),k({id:e.eventId,name:e.eventName,slug:e.eventSlug}),V.push(((i=e==null?void 0:e.providerName)==null?void 0:i.toLowerCase())==="sportradar"&&(e==null?void 0:e.catId)==="SR VIRTUAL"?g?`/exchange_sports/virtuals/${c.slug}/${ie(e.competitionName)}
2/${e.eventSlug}/${btoa(`${e.sportId}:${e.competitionId}:${e.eventId}`)}`:"/login":`/exchange_sports/${c.slug}/${ie(e.competitionName)}/${e.eventSlug}/${btoa(`${e.providerName}:${e.sportId}:${e.competitionId}:${e.eventId}:${b(e.openDate).unix()}`)}`)},le=e=>{switch(e){case"LIVE":return o.filter(i=>((i==null?void 0:i.sportId)!="2"&&b(i==null?void 0:i.openDate).diff(b(),"seconds")<=0||(i==null?void 0:i.forcedInplay)||(i==null?void 0:i.status)=="IN_PLAY"||(i==null?void 0:i.sportId)==="2"&&b(i==null?void 0:i.openDate).diff(b(),"minutes")<=5)&&!i.virtualEvent);case"UPCOMING":return o.filter(i=>i.status==="UPCOMING"&&!i.virtualEvent);case"VIRTUAL":return o==null?void 0:o.filter(i=>i.catId==="SR VIRTUAL"||i.virtualEvent);default:return o}};l.useEffect(()=>{Ha().then(e=>{be(e)})},[g]);const n=({sportId:e})=>{const i=Ba[e];return i?a.jsx("div",{style:{height:"fit-content",width:"fit-content"},children:a.jsx(i,{width:24,height:24,className:"ip-event-icon"})}):null};return a.jsxs("div",{className:"events-table-ctn",children:[a.jsx(Xa,{title:`${Oa}`,description:"Sports list",name:"Sports list",type:"Sports List",link:M==null?void 0:M.pathname}),(o==null?void 0:o.length)>0?a.jsxs("div",{className:"events-table-content table-ctn",children:[(ee==null?void 0:ee.length)>0&&a.jsx(ja,{variant:"scrollable",className:"favourite-events",children:ee.map(e=>a.jsx("button",{className:"favourite-event-item",onClick:()=>re(e),children:a.jsx("span",{className:"event-name",children:e!=null&&e.customEventName?e.customEventName:e.eventName})}))}),a.jsx(ya,{component:ua,children:a.jsxs(Ia,{className:"events-table",children:[a.jsx(va,{className:"et-head",children:a.jsx(ue,{className:"status-btns",children:a.jsx(X,{colSpan:12,className:"status-btns-cell",children:a.jsxs("div",{style:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0 8px"},children:[a.jsxs("div",{className:"icon-and-name",children:[a.jsx(n,{sportId:c==null?void 0:c.id}),a.jsxs("div",{className:"ip-event-name",children:[x==null?void 0:x[pa(c==null?void 0:c.name)]," "]})]}),a.jsxs("div",{style:{alignItems:"center",display:"flex",gap:"4px"},children:[a.jsxs(we,{className:B==="LIVE"?"active status-btn":"status-btn",onClick:()=>E(B==="LIVE"?null:"LIVE"),children:[B==="LIVE"?a.jsx(Ae,{style:{height:"16px"}}):a.jsx(Oe,{style:{height:"16px"}}),"Live"]}),a.jsxs(we,{className:B==="VIRTUAL"?"active status-btn":"status-btn",onClick:()=>E(B==="VIRTUAL"?null:"VIRTUAL"),children:[B==="VIRTUAL"?a.jsx(Ae,{style:{height:"16px"}}):a.jsx(Oe,{style:{height:"16px"}}),"Virtual"]}),a.jsxs(we,{className:B==="UPCOMING"?"active status-btn":"status-btn",onClick:()=>E(B==="UPCOMING"?null:"UPCOMING"),children:[B==="UPCOMING"?a.jsx(Ae,{style:{height:"16px"}}):a.jsx(Oe,{style:{height:"16px"}}),"Upcoming"]})]})]})})})}),a.jsxs(Ta,{children:[le(B).map((e,i)=>a.jsxs(ue,{className:"bgc-white markets-team-cell-pointer",onClick:()=>re(e),children:[a.jsx(X,{className:"teams-cell mob-et-b-c ",children:a.jsxs("div",{className:"all-markets-nav-link",children:[e.homeTeam!==""&&e.awayTeam!==""?a.jsxs(a.Fragment,{children:[!G&&a.jsxs("div",{className:"web-view team-name-ctn",children:[a.jsxs("div",{className:"temas-col",children:[a.jsx(Me,{openDate:e!=null&&e.customOpenDate?e==null?void 0:e.customOpenDate:e==null?void 0:e.openDate,forcedInplay:e==null?void 0:e.forcedInplay,status:e==null?void 0:e.status,sportId:e==null?void 0:e.sportId}),a.jsx(na,{eventName:e==null?void 0:e.customEventName,homeTeam:e.homeTeam,awayTeam:e==null?void 0:e.awayTeam,openDate:e!=null&&e.customOpenDate?e==null?void 0:e.customOpenDate:e==null?void 0:e.openDate,forcedInplay:e==null?void 0:e.forcedInplay,status:e==null?void 0:e.status,sportId:e==null?void 0:e.sportId})]}),a.jsxs("div",{className:"enabled-markets",children:[a.jsx(y,{marketEnabled:(e==null?void 0:e.catId)==="SR VIRTUAL",marketType:"V"}),a.jsx(y,{marketEnabled:(e==null?void 0:e.enablePremium)&&(e==null?void 0:e.catId)!=="SR VIRTUAL",marketType:"P"}),a.jsx(y,{marketEnabled:e==null?void 0:e.enableMatchOdds,marketType:"MO"}),a.jsx(y,{marketEnabled:e==null?void 0:e.enableBookmaker,marketType:"BM"}),a.jsx(y,{marketEnabled:e==null?void 0:e.enableFancy,marketType:"F"}),a.jsx(y,{marketEnabled:e==null?void 0:e.enableGoal,marketType:"G"}),a.jsx(y,{marketEnabled:e==null?void 0:e.enableSetWinner,marketType:"S"}),a.jsx(y,{marketEnabled:e==null?void 0:e.enableToss,marketType:"T"}),a.jsx(y,{marketEnabled:(e==null?void 0:e.virtualEvent)&&e.catId!="VIRTUAL",marketType:"V2"})]})]}),G&&a.jsx("div",{className:"mob-view",children:a.jsxs("div",{className:"event-details-ctn",children:[a.jsx("div",{className:"event-name mob-event-name",children:a.jsx("div",{className:"event-name-and-link",children:a.jsx(na,{eventName:e!=null&&e.customEventName?e==null?void 0:e.customEventName:e==null?void 0:e.eventName,openDate:e!=null&&e.customOpenDate?e==null?void 0:e.customOpenDate:e==null?void 0:e.openDate,forcedInplay:e==null?void 0:e.forcedInplay,status:e==null?void 0:e.status,sportId:e==null?void 0:e.sportId})})}),a.jsxs("div",{className:"enabled-markets",children:[a.jsx(y,{marketEnabled:(e==null?void 0:e.catId)==="SR VIRTUAL",marketType:"V"}),a.jsx(y,{marketEnabled:(e==null?void 0:e.enablePremium)&&(e==null?void 0:e.catId)!=="SR VIRTUAL",marketType:"P"}),a.jsx(y,{marketEnabled:e==null?void 0:e.enableMatchOdds,marketType:"MO"}),a.jsx(y,{marketEnabled:e==null?void 0:e.enableBookmaker,marketType:"BM"}),a.jsx(y,{marketEnabled:e==null?void 0:e.enableFancy,marketType:"F"}),a.jsx(y,{marketEnabled:e==null?void 0:e.enableGoal,marketType:"G"}),a.jsx(y,{marketEnabled:e==null?void 0:e.enableSetWinner,marketType:"S"}),a.jsx(y,{marketEnabled:e==null?void 0:e.enableToss,marketType:"T"}),a.jsx(y,{marketEnabled:(e==null?void 0:e.virtualEvent)&&e.catId!="VIRTUAL",marketType:"V2"})]})]})})]}):a.jsxs("div",{className:"team-name",children:[a.jsxs("div",{className:"temas-col",children:[a.jsx(Me,{openDate:e!=null&&e.customOpenDate?e==null?void 0:e.customOpenDate:e==null?void 0:e.openDate,forcedInplay:e.forcedInplay,status:e==null?void 0:e.status,sportId:e==null?void 0:e.sportId}),a.jsx("div",{className:"team-names",children:e.eventName})]}),a.jsxs("div",{className:"enabled-markets",children:[a.jsx(y,{marketEnabled:(e==null?void 0:e.catId)==="SR VIRTUAL",marketType:"V"}),a.jsx(y,{marketEnabled:(e==null?void 0:e.enablePremium)&&(e==null?void 0:e.catId)!=="SR VIRTUAL",marketType:"P"}),a.jsx(y,{marketEnabled:e==null?void 0:e.enableMatchOdds,marketType:"MO"}),a.jsx(y,{marketEnabled:e==null?void 0:e.enableBookmaker,marketType:"BM"}),a.jsx(y,{marketEnabled:e==null?void 0:e.enableFancy,marketType:"F"}),a.jsx(y,{marketEnabled:e==null?void 0:e.enableGoal,marketType:"G"}),a.jsx(y,{marketEnabled:e==null?void 0:e.enableSetWinner,marketType:"S"}),a.jsx(y,{marketEnabled:e==null?void 0:e.enableToss,marketType:"T"}),a.jsx(y,{marketEnabled:(e==null?void 0:e.virtualEvent)&&e.catId!="VIRTUAL",marketType:"V2"})]})]}),G&&a.jsxs("div",{className:"mob-odds-row new-odds-row",children:[a.jsx(Me,{openDate:e!=null&&e.customOpenDate?e==null?void 0:e.customOpenDate:e==null?void 0:e.openDate,forcedInplay:e==null?void 0:e.forcedInplay,status:e==null?void 0:e.status,sportId:e==null?void 0:e.sportId}),A.map((d,w)=>a.jsx("div",{className:"mob-odds-block",children:a.jsx("div",{className:"mob-exchange-btn-odd-row",children:e.matchOdds?Y(e,d)?a.jsx(a.Fragment,{children:Y(e,d).map(K=>a.jsx(me,{mainValue:K.price,oddType:K.type==="back-odd"?"back-odd":"lay-odd",disable:e.matchOdds.status.toLowerCase().includes("suspended")||ne(e.openDate)}))}):a.jsxs(a.Fragment,{children:[a.jsx(me,{mainValue:null,oddType:"back-odd",disable:!0}),a.jsx(me,{mainValue:null,oddType:"lay-odd",disable:!0})]}):a.jsxs(a.Fragment,{children:[a.jsx(me,{mainValue:null,oddType:"back-odd",disable:!0}),a.jsx(me,{mainValue:null,oddType:"lay-odd",disable:!0})]})})},d+w))]})]},"all-markets-link")}),A.map((d,w)=>a.jsx(X,{className:"odds-cell",align:"center",colSpan:2,children:e.matchOdds?Y(e,d)?a.jsx("div",{className:"odds-block",children:Y(e,d).map((K,de)=>a.jsx($e,{mainValue:K.price,subValue:K.size,oddType:K.type==="back-odd"?"back-odd":"lay-odd",valueType:"matchOdds",showSubValueinKformat:!0,disable:e.matchOdds.status.toLowerCase().includes("suspended")||ne(e.openDate),onClick:()=>null},de))}):a.jsx(ra,{}):a.jsx(ra,{})},d+w))]},e==null?void 0:e.eventId)),le(B).length===0&&!p&&a.jsx(ue,{children:a.jsxs(X,{colSpan:12,className:"no-data-cell",style:{textAlign:"center",textTransform:"uppercase",padding:"16px 0 16px 0",fontWeight:"bold"},children:[(I=x==null?void 0:x.no_data_to_display)==null?void 0:I.toLowerCase()," for"," ",(O=x==null?void 0:x[B==null?void 0:B.toLowerCase()])==null?void 0:O.toLowerCase()]})})]})]})})]}):p?null:a.jsx(ka,{title:x==null?void 0:x.no_events_display_txt,bodyContent:x==null?void 0:x.no_events_placed,noDataImg:rt})]})};function ra(){return a.jsx(_e.Fragment,{children:a.jsxs("div",{className:"odds-block",children:[a.jsx($e,{mainValue:null,oddType:"back-odd"}),a.jsx($e,{mainValue:null,oddType:"lay-odd"})]})})}const mt=t=>{var c;const s=t.exchangeSports.selectedEventType,o=t.exchangeSports.selectedCompetition;return{events:xa(t.exchangeSports.events,R[s.id]?R[s.id]:s.id,o.id),selectedEventType:s,selectedCompetition:o,fetchingEvents:t.exchangeSports.fetchingEvents,allowedConfig:t.common.allowedConfig,topicUrls:(c=t==null?void 0:t.exchangeSports)==null?void 0:c.topicUrls,betFairWSConnected:t.exchangeSports.betFairWSConnected,loading:t.auth.loading,langData:t.common.langData}},ut=t=>({fetchEventsByCompetition:(s,o,c)=>t(ga(s,o,c)),setExchEvent:s=>t(ba(s)),setCompetition:s=>t(fa(s)),fetchEventsBySport:(s,o)=>t(ha(s,o))}),pt=oe(mt,ut)(dt),ht=t=>{var ne,re,le;const{events:s,selectedEventType:o,selectedCompetition:c,fetchEventsByCompetition:u,setExchEvent:m,setCompetition:k,fetchEventsBySport:T,fetchingEvents:h,loggedIn:p,topicUrls:g,betFairWSConnected:j,langData:f}=t,N=Fe(),[x,V]=l.useState([]),[C,M]=l.useState([]),[A,U]=l.useState({}),[H,ye]=l.useState([]),[v,Z]=l.useState([]),[ce,fe]=_e.useState(""),[Ie,Te]=l.useState(""),[Ne,B]=l.useState("");je();const E=(n,I)=>{fe(I)};l.useEffect(()=>{N.competition||k({id:"",name:"",slug:""})},[N]);const ee=(n,I)=>{(Ne!==n||Ie!==I)&&(Se(),B(n),Te(I))},be=()=>{var n,I;N.competition?o.id&&s&&o.id===((I=s[0])==null?void 0:I.sportId)&&u(o.id,c.id,s):o.id&&s&&o.id===((n=s[0])==null?void 0:n.sportId)&&T(o.id,s)};l.useEffect(()=>{N.competition||T(o.id,s)},[o]),l.useEffect(()=>{N.competition&&!s&&u(o.id,c.id,s)},[c]),l.useEffect(()=>{be()}
2,[p]),l.useEffect(()=>{let n=setInterval(()=>{be()},6e4);return()=>{clearInterval(n)}},[o]),l.useEffect(()=>{pe(),V([])},[o]),l.useEffect(()=>{N.competition&&(pe(),V([]))},[c,N]),l.useEffect(()=>{var n;if(p&&(g!=null&&g.matchOddsTopic)&&o.id==="4"&&s){let I=[...x];for(let O of s)O.status==="IN_PLAY"&&!x.includes(O.eventId)&&(I.push(O.eventId),ee(g==null?void 0:g.matchOddsTopic,g==null?void 0:g.matchOddsBaseUrl),Pe(g==null?void 0:g.matchOddsTopic,O.sportId,O.competitionId,O.eventId,(n=O.matchOdds)==null?void 0:n.marketId,O.providerName));V(I)}},[j,s,o,p]),l.useEffect(()=>{s&&(M([...s]),ie(s))},[s]);const Y=n=>n.toLocaleLowerCase().replace(/[^a-z0-9]/g," ").replace(/ +/g," ").trim().split(" ").join("-"),ge=n=>{k({id:n.competitionId,name:n.competitionName,slug:Y(n.competitionName)}),m({id:n.eventId,name:n.eventName,slug:n.eventSlug})},Ce=n=>n.sort((I,O)=>{if(I.inPlay&&!O.inPlay)return-1;if(!I.inPlay&&O.inPlay)return 1}),xe=n=>{let I=b.duration(b(n).diff(b()));return(I==null?void 0:I.asMinutes())<10},ie=n=>{let I={};const O=[...new Set(n.map(i=>{var d;return(d=i==null?void 0:i.competitionId)==null?void 0:d.split("_")[0]}))];for(let i of O)I[i]=(n==null?void 0:n.filter(d=>{var w;return(w=d==null?void 0:d.competitionId)==null?void 0:w.startsWith(i+"_")}))??[];const e=Object.keys(I).sort().reduce((i,d)=>(i[d]=I[d],i),{});U(e),ce===""&&fe(O[0])};return l.useEffect(()=>{},[N.eventType]),a.jsxs("div",{className:"events-table-ctn race-events-ctn",children:[a.jsx("div",{className:"heading",children:a.jsx("div",{children:f==null?void 0:f[pa(o==null?void 0:o.name)]})}),a.jsx("div",{children:(C==null?void 0:C.length)>0?a.jsxs("div",{className:"events-table-content table-ctn",children:[a.jsx(ja,{value:ce,onChange:E,"aria-label":"basic tabs example",children:(ne=Object==null?void 0:Object.keys(A))==null?void 0:ne.map((n,I)=>a.jsx(Ea,{className:"com-tab",label:n,value:n}))}),a.jsx(ya,{component:ua,className:"border-radius",children:a.jsx(Ia,{className:"events-table mt-0",children:a.jsx(Ta,{children:((re=A[ce])==null?void 0:re.length)>0?(le=Ce(A[ce]))==null?void 0:le.map((n,I)=>{var O,e,i;return a.jsx(a.Fragment,{children:n.sportId===o.id&&((O=n.raceMarkets)==null?void 0:O.length)>0?a.jsxs(ue,{className:"extra-table",children:[a.jsxs(X,{className:"team-name-cell table-cell-last",children:[a.jsx("div",{className:"team",children:n.eventName}),a.jsx("div",{className:"web-view race-market-times",children:(e=n.raceMarkets)==null?void 0:e.map((d,w)=>a.jsx(a.Fragment,{children:w<8?a.jsx(aa,{className:"market-time",onClick:()=>ge(n),to:`/exchange_sports/${o.slug}/${Y(n.competitionName)}/${n.eventSlug}/${btoa(`${n.providerName}:${n.sportId}:${n.competitionId}:${n.eventId}:${d.marketTime}`)}`,id:d.marketId,children:a.jsx("div",{className:xe(d.marketTime)?"market-time live":"market-time",children:ta(d.marketTime)})},"all-markets-link"):null}))})]}),a.jsx(X,{className:"odds-cell mob-view race-markets",align:"left",colSpan:2,children:a.jsx("div",{className:"race-market-times",children:(i=n.raceMarkets)==null?void 0:i.map((d,w)=>a.jsx(a.Fragment,{children:w<4?a.jsx(aa,{className:"all-markets-nav-link",onClick:()=>ge(n),to:`/exchange_sports/${o.slug}/${Y(n.competitionName)}/${n.eventSlug}/${btoa(`${n.providerName}:${n.sportId}:${n.competitionId}:${n.eventId}:${d.marketTime}`)}`,id:d.marketId,children:a.jsx("div",{className:xe(d.marketTime)?"market-time live":"market-time",children:ta(d.marketTime)})},"all-markets-link"):null}))})},"market-time-cell")]},`idx-${n.eventName}`):null})}):a.jsx(ue,{children:a.jsx(X,{align:"center",colSpan:8,children:f==null?void 0:f.inplay_matches_not_found})})})})}),G?a.jsx(Na,{langData:f}):null]}):h?null:a.jsx(ka,{title:f==null?void 0:f.no_events_display_txt,bodyContent:"",noDataImg:void 0})})]})},ft=t=>{var c;const s=t.exchangeSports.selectedEventType,o=t.exchangeSports.selectedCompetition;return{events:xa(t.exchangeSports.events,s.id,o.id),selectedEventType:s,selectedCompetition:o,fetchingEvents:t.exchangeSports.fetchingEvents,topicUrls:(c=t==null?void 0:t.exchangeSports)==null?void 0:c.topicUrls,betFairWSConnected:t.exchangeSports.betFairWSConnected,langData:t.common.langData}},bt=t=>({fetchEventsByCompetition:(s,o,c)=>t(ga(s,o,c)),setExchEvent:s=>t(ba(s)),setCompetition:s=>t(fa(s)),fetchEventsBySport:(s,o)=>t(ha(s,o))}),gt=oe(ft,bt)(ht),la=[],xt=t=>{const{loggedIn:s,loggedInUserStatus:o}=t,[c,u]=l.useState([]),[m,k]=l.useState([]),[T,h]=l.useState(!1),p=ke().pathname,g=je(),j=async()=>{var V;let f=[],N=[],x="";p.includes("indian_casino")?x="indiancasinobanner":p.includes("/casino")?x="Casinobanner":p.includes("cricket")?x="cricketbanner":p.includes("football")?x="footballbanner":p.includes("tennis")?x="tennisbanner":p.includes("horseracing")?x="horseracingbanner":p.includes("greyhound")?x="greyhoundbanner":p.includes("basketball")?x="Basketballbanner":p.includes("baseball")&&(x="Baseballbanner");try{const C=await $a.get(`/account/v2/books/${_a}/banners`,{headers:{"Content-Type":"application/json"},params:{status:"active",type:"mobile",category:x}});let M=(V=C==null?void 0:C.data)==null?void 0:V.banners;(M==null?void 0:M.length)>0&&(M.map(A=>{A.deviceType==="desktop"?f.push(A):A.deviceType==="mobile"&&N.push(A)}),u(N)),N.length==0&&u([])}catch(C){console.log(C),N.length==0&&u([]),C.response&&C.response.status}};return l.useEffect(()=>{p!=null&&p.includes("/inplay")||j()},[]),a.jsx("div",{className:"promotions-sidebar-container",children:a.jsx("div",{className:"promotions-sidebar-ctn web-view",children:G&&la.length>0?a.jsx("div",{className:"promotions-banners",children:la.map(f=>a.jsx("div",{className:"banner",children:a.jsx("div",{className:"banner-image",onClick:()=>g.push(f.path)})}))}):a.jsx("div",{className:"promotions-banners"})})})},St=t=>{let s=0;return t.auth.loggedIn&&(s=JSON.parse(window.atob(sessionStorage.getItem("jwt_token").split(".")[1])).status),{loggedIn:t.auth.loggedIn,loggedInUserStatus:s}},kt=oe(St,null)(xt),jt=t=>{const{loggedIn:s,selectedEventType:o,langData:c}=t;return a.jsx("div",{children:a.jsxs(Fa,{className:"sports-home-view",children:[a.jsx(sa,{sizeLg:"9.2",sizeMd:"8.5",className:"events-table-section",children:["7","4339"].includes(o.id)?a.jsx(gt,{loggedIn:s}):a.jsx(pt,{loggedIn:s})}),a.jsx(sa,{sizeLg:"2.8",sizeMd:"3.5",className:"exch-providers web-view pos-sticky-10",children:!G&&a.jsxs(a.Fragment,{children:[a.jsx(kt,{}),a.jsx(Na,{langData:c})]})})]})})},yt=t=>({loggedIn:t.auth.loggedIn,selectedEventType:t.exchangeSports.selectedEventType,langData:t.common.langData}),It=oe(yt)(jt),Tt=t=>{const{eventTypes:s,selectedEventType:o,setEventType:c,clearExchcngeBets:u,browseAll:m,contentConfig:k}=t,h=Fe().eventType,p=je(),g=p.location.pathname;return l.useEffect(()=>{if(m&&k){var j=k.sports.filter(f=>!f.disabled);return j.sort((f,N)=>f.priority-N.priority),p.push(`/exchange_sports/${Va.get(j[0].name).slug}`)}if(g!=="/exchange_sports/multi-markets"){if(h&&h!==o.slug&&s&&s.length>0)if(s.find(f=>f.slug===h)){for(let f of s)if(f.slug===h)return c({id:f.id,name:f.name,slug:f.slug}),p.push(`/exchange_sports/${f.slug}`)}else return c({id:o.id,name:o.name,slug:o.slug}),p.push(`/exchange_sports/${o.slug}`);if(!h)return s&&s.length>0&&!s.find(f=>f.id===o.id)?(c({id:s[0].id,name:s[0].name,slug:s[0].slug}),p.push(`/exchange_sports/${s[0].slug}`)):p.push(`/exchange_sports/${o.slug}`)}else return p.push("/exchange_sports/multi-markets")},[s,p,o,h,c]),l.useEffect(()=>{u()},[]),a.jsx(It,{})},Nt=t=>({eventTypes:t.exchangeSports.eventTypes,selectedEventType:t.exchangeSports.selectedEventType,contentConfig:t.common.contentConfig}),Ct=t=>({setEventType:s=>t(Ka(s)),clearExchcngeBets:()=>t(Za())}),da=oe(Nt,Ct)(Tt),Ot=l.lazy(()=>he(()=>import("./ExchInplayEventsView-BCW_JLk1.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36]))),wt=l.lazy(()=>he(()=>import("./ExchangeAllMarkets-DSzeoAq2.js"),__vite__mapDeps([37,1,2,38,4,39,3,5,6,7,8,9,10,40,41,42,13,14,43,44,11,12,15,45,46,47,29,48,49,31,50,16,20,21,51,52,32,33,23,17,53,54,55,56,30,28,34,57,36]))),At=l.lazy(()=>he(()=>import("./MultimarketView-CwR1lOgF.js"),__vite__mapDeps([58,1,2,3,4,5,6,7,8,9,10,16,39,40,41,42,13,14,43,44,11,12,15,45,46,47,29,48,49,31,50,20,21,51,52,17,32,33,28,30,23,34,36]))),Bt=l.lazy(()=>he(()=>import("./ExchangeVirtualMarkets-CXBQQQ5u.js"),__vite__mapDeps([59,1,2]))),Mt=l.lazy(()=>he(()=>import("./ExchInplayEventsView-BCW_JLk1.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36]))),$t=t=>{const{loggedIn:s,fetchButtonVariables:o,topicUrls:c,betFairWSConnected:u}=t,{path:m}=Ra();return l.useEffect(()=>{s&&o()},[s]),l.useEffect(()=>{if(s&&(c!=null&&c.matchOddsBaseUrl||c!=null&&c.bookMakerBaseUrl||c!=null&&c.premiumBaseUrl)){u&&Se();const k={matchOddsBaseUrl:c==null?void 0:c.matchOddsBaseUrl,bookMakerAndFancyBaseUrl:c==null?void 0:c.bookMakerBaseUrl,premiumBaseUrl:c==null?void 0:c.premiumBaseUrl};return st(k),()=>{u&&Se()}}},[s,c]),a.jsx(a.Fragment,{children:a.jsx("div",{className:"ds-view-ctn",children:a.jsx("div",{className:"punter-view",id:"main-content",children:a.jsx("div",{className:(m==null?void 0:m.length)>36?"sports-view-ctn sports-margin":"sports-view-ctn",children:a.jsxs(La,{children:[a.jsx(q,{exact:!0,path:m,children:a.jsx(Ot,{loggedIn:s})}),a.jsx(q,{exact:!0,path:`${m}/inplay`,render:()=>a.jsx(Mt,{loggedIn:s})}),a.jsx(q,{exact:!0,path:`${m}/multi-markets`,render:()=>a.jsx(At,{})}),a.jsx(q,{exact:!0,path:`${m}/:eventType`,render:()=>a.jsx(da,{})}),a.jsx(q,{exact:!0,path:`${m}/:eventType/:competition`,render:()=>a.jsx(da,{})}),a.jsx(q,{exact:!0,path:`${m}/:eventType/:competition/:eventId/:eventInfo`,render:()=>a.jsx(wt,{loggedIn:s})}),a.jsx(q,{exact:!0,path:`${m}/virtuals/:eventType/:competition/:eventId/:eventInfo`,render:()=>a.jsx(Bt,{loggedIn:s})})]})})})})})},_t=t=>{var s;return{loggedIn:t.auth.loggedIn,topicUrls:(s=t==null?void 0:t.exchangeSports)==null?void 0:s.topicUrls,betFairWSConnected:t.exchangeSports.betFairWSConnected}},Ft=t=>({fetchButtonVariables:()=>t(qa())}),Vt=oe(_t,Ft)($t),vt=Object.freeze(Object.defineProperty({__proto__:null,default:Vt},Symbol.toStringTag,{value:"Module"}));
2export{Me as E,na as a,me as b,ct as c,Se as d,ot as e,it as f,nt as g,Xt as h,qt as i,Le as j,De as k,st as l,vt as m,Pe as s,pe 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.