PageSourceSearch

https://www.stake786.online/assets/MultimarketView-CFdsEpFj.js

js stake786.online collected 2026-09-29 23:01:57 UTC 14,219 bytes, 1 lines download raw bytes

1import{a as ne,e as r,b9 as X,j as t,I as oe,ba as le,bb as me,s as ue,u as he,S as pe,E as fe,b5 as be,h as U}from"./index-C8CmtRH8.js";import{ac as D,a8 as ge,aa as xe,V as ke,as as Me,ad as Ce,at as Be,af as Ie,ah as ee,ai as ve}from"./UserRouter-CsBH8qmi.js";import{m as Se,n as Oe,o as Ee}from"./exchangeSportsSelectors-JwcaF4S-.js";import{u as ce,M as Ne,B as je,m as Fe,E as Te,n as se,a as we}from"./ExchangeAllMarkets-DeSkO4Ql.js";import{C as te}from"./CurrencyTypeFactor-BXiaQXLY.js";import{u as ye,d as A,l as _e,s as Re,e as Ve,h as Ae,i as Pe}from"./ExchangeSportsBook-Cs5IT6fK.js";import{a as re}from"./___vite-browser-external_commonjs-proxy-Be4xUchY.js";import{T as ae}from"./TabPanel-DBfhVINs.js";import{S as We}from"./Seo-DT2P_qvW.js";import{N as He}from"./NoDataComponent-F5HLyE0p.js";import"./Button-CZ2229uv.js";import"./DialogActions-DCQoYEXI.js";import"./CustomButton-BVGXRQfr.js";import"./trackApkDownload-CiVu5KXr.js";import"./CloseOutlined-DsKjrnwW.js";import"./MarketTermsCondi-BOLkN3_K.js";import"./ExpandMore-B7lYCASl.js";import"./AccordionSummary-B_HtXSGr.js";import"./useControlled-K4G7mWAF.js";import"./liveEvent-COMyh5rM.js";import"./TableRow-CWfSdunU.js";import"./Tooltip-igeJUTWd.js";import"./Grow-BXcVtLlO.js";import"./Drawer-BcYdzkAq.js";import"./debounce-DtXjJkxj.js";import"./capitalize-D63APbBt.js";import"./createStyles-yD3y8ldD.js";import"./Add-Dj9X1CJh.js";import"./react-number-format.es-DeXsf-vZ.js";import"./Spinner-CeQ6FtO-.js";/* empty css                             */import"./Tabs-CUk4_lou.js";import"./createSvgIcon-DiPEYX1W.js";import"./TrendingGames-McNm2w8k.js";import"./Tab-DRDHh1eu.js";const Le=a=>{var R;const{loggedIn:m,eventData:s,openBets:$,secondaryMatchOdds:x,secondaryMarkets:d,eventId:P,bmMData:v,fmData:W,seEventData:k,isMultiMarket:N,bets:Z,exposureMap:f,topicUrls:e,betFairWSConnected:S}=a,[p]=ce(),[b,j]=r.useState(),[O,F]=r.useState(te[X()]),[K,T]=r.useState(!1),[o,Y]=r.useState(""),[z,M]=r.useState(""),[C,E]=r.useState(""),[w,H]=r.useState(""),y=(c,i)=>{(z!==c||o!==i)&&(A(),M(c),Y(i))},L=(c,i)=>{(w!==c||C!==i)&&(A(),H(c),E(i))};r.useEffect(()=>{ye()},[]),r.useEffect(()=>{if(m&&(e!=null&&e.matchOddsBaseUrl)){S&&A();const c={matchOddsBaseUrl:e==null?void 0:e.matchOddsBaseUrl,bookMakerAndFancyBaseUrl:e==null?void 0:e.bookMakerBaseUrl,premiumBaseUrl:e==null?void 0:e.premiumBaseUrl};return _e(c),()=>{S&&A()}}},[m,e]),r.useEffect(()=>{s!==null&&j(s.matchOdds)},[s==null?void 0:s.eventId]),r.useEffect(()=>{var c;if(m&&s&&(e!=null&&e.matchOddsTopic)&&(F(te[X()]),y(e==null?void 0:e.matchOddsTopic,e==null?void 0:e.matchOddsBaseUrl),Re(e==null?void 0:e.matchOddsTopic,s.sportId,s.competitionId,s.eventId,s.matchOdds.marketId,s.providerName,!0)),(c=d==null?void 0:d.bookmakers)!=null&&c.length&&(e!=null&&e.bookMakerTopic)){L(e==null?void 0:e.bookMakerTopic,e==null?void 0:e.bookMakerBaseUrl);for(let i of d==null?void 0:d.bookmakers)Ve(e==null?void 0:e.bookMakerTopic,s==null?void 0:s.eventId,i.marketId,s.sportId,s.competitionId,!0)}if(e!=null&&e.matchOddsTopic){y(e==null?void 0:e.matchOddsTopic,e==null?void 0:e.matchOddsBaseUrl);for(let i of x)Ae(e==null?void 0:e.matchOddsTopic,s.eventId,i.marketId,s.providerName,s.sportId,s.competitionId,!0)}},[S,m,x,d,s==null?void 0:s.eventId]),r.useEffect(()=>{if(m&&e!=null&&e.matchOddsBaseUrl){const c={matchOddsBaseUrl:e==null?void 0:e.matchOddsBaseUrl,bookMakerAndFancyBaseUrl:e==null?void 0:e.bookMakerBaseUrl,premiumBaseUrl:e==null?void 0:e.premiumBaseUrl};Pe(c)}},[]);const B=c=>{const i=Number(c/O),h=Number(Math.floor(i/50)*50);return h>999?Number(h/1e3).toFixed()+"K":h.toFixed()},_=c=>{const i=Number(c/O),h=Number(Math.ceil(i/10)*10);return h>999?Number(h/1e3).toFixed()+"K":h.toFixed()};return t.jsx(t.Fragment,{children:s?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"multi-market-eventname mob-view",children:re&&(p==null?void 0:p.filter(c=>{var i;return(c==null?void 0:c.marketId)===((i=s==null?void 0:s.matchOdds)==null?void 0:i.marketId)}).length)>0?s==null?void 0:s.eventName:null}),t.jsx(Ne,{exposureMap:f||null,loggedIn:m,getFormattedMinLimit:_,getFormattedMaxLimit:B,eventData:s,secondaryMatchOdds:x,isMultiMarket:N,fetchEvent:D,showMatchOdds:!0,showSecondaryMatchOdds:!0}),((R=d==null?void 0:d.bookmakers)==null?void 0:R.length)>0&&(d==null?void 0:d.bookmakers[0].runners.length)>0?t.jsx(t.Fragment,{children:t.jsxs(oe,{className:"eam-table-section",children:[t.jsx("div",{className:"multi-market-eventname mob-view",children:re&&(p==null?void 0:p.filter(c=>{var i;return(c==null?void 0:c.marketId)===((i=d==null?void 0:d.bookmakers[0])==null?void 0:i.marketId)}).length)>0?s==null?void 0:s.eventName:null}),t.jsx(je,{exposureMap:f||null,loggedIn:m,getFormattedMinLimit:_,getFormattedMaxLimit:B,bmMData:v,eventData:s,isMultiMarket:N,fetchEvent:D})]})}):null]}):null})},$e=(a,m)=>{var s;return a.exchangeSports.selectedEvent,{bets:a.exchBetslip.bets,openBets:a.exchBetslip.openBets,topicUrls:(s=a==null?void 0:a.exch
1angeSports)==null?void 0:s.topicUrls,betFairWSConnected:a.exchangeSports.betFairWSConnected}},Ze=a=>({}),Ke=ne($e,Ze)(Le),Ye="data:image/svg+xml,%3csvg%20width='44'%20height='44'%20viewBox='0%200%2044%2044'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3306_1454)'%3e%3cpath%20d='M0%202.93697V41.0639C0%2041.763%200.565059%2042.328%201.26411%2042.328H42.7359C43.4349%2042.328%2044%2041.763%2044%2041.0639V2.93697C44%202.23791%2043.4349%201.67285%2042.7359%201.67285H1.26411C0.565059%201.67285%200%202.23791%200%202.93697ZM37.3773%2039.7998V21.9998C37.3773%2021.3007%2036.8135%2020.7357%2036.1132%2020.7357C35.4141%2020.7357%2034.8491%2021.3007%2034.8491%2021.9998V39.7998H29.9924V26.8982C29.9924%2026.1992%2029.4273%2025.6341%2028.7282%2025.6341C28.0292%2025.6341%2027.4641%2026.1992%2027.4641%2026.8982V39.7998H20.0071V31.3858C20.0071%2030.6868%2019.4421%2030.1217%2018.743%2030.1217C18.044%2030.1217%2017.4789%2030.6868%2017.4789%2031.3858V39.7998H10.2368V34.6435C10.2368%2033.9444%209.67173%2033.3794%208.97268%2033.3794C8.27362%2033.3794%207.70856%2033.9444%207.70856%2034.6435V39.7998H2.52823V13.4493H41.4718V39.7998H37.3773ZM41.4718%204.20108V10.9211H2.52823V4.20108H41.4718Z'%20fill='black'/%3e%3cpath%20d='M29.8877%2017.9431V17.9279C29.8877%2017.914%2029.8789%2017.9026%2029.8789%2017.89C29.8751%2017.7788%2029.8637%2017.6675%2029.8309%2017.5575C29.8233%2017.5323%2029.8068%2017.5146%2029.7992%2017.4905C29.7816%2017.4412%2029.7563%2017.3983%2029.7323%2017.3515C29.6855%2017.263%2029.6311%2017.1821%2029.5667%2017.1075C29.5325%2017.0683%2029.4984%2017.0304%2029.4605%2016.9963C29.3796%2016.923%2029.2885%2016.8648%2029.1912%2016.8155C29.1571%2016.7965%2029.1267%2016.7725%2029.0901%2016.7574C28.9611%2016.7068%2028.8246%2016.6727%2028.683%2016.6651L25.4267%2016.5109C25.4065%2016.5096%2025.39%2016.5197%2025.3698%2016.5197C25.2876%2016.5197%2025.2067%2016.5399%2025.1271%2016.5551C25.0512%2016.5703%2024.9792%2016.5791%2024.9071%2016.6082C24.8136%2016.6448%2024.7327%2016.7043%2024.6493%2016.7649C24.6025%2016.7978%2024.5544%2016.8256%2024.5115%2016.8648C24.4874%2016.8876%2024.4571%2016.8964%2024.4344%2016.9217C24.38%2016.9811%2024.356%2017.0532%2024.3155%2017.1189C24.2814%2017.172%2024.2447%2017.2188%2024.2195%2017.2769C24.1803%2017.3704%2024.16%2017.4665%2024.1423%2017.5664C24.1322%2017.617%2024.1057%2017.6599%2024.1032%2017.713C24.1032%2017.737%2024.1107%2017.7573%2024.1107%2017.78C24.1107%2017.8306%2024.1221%2017.8786%2024.1284%2017.9279C24.1436%2018.0316%2024.1626%2018.1289%2024.2005%2018.2237C24.2207%2018.2692%2024.2372%2018.3122%2024.2624%2018.3565C24.3193%2018.4626%2024.3901%2018.5587%2024.4723%2018.6459C24.4925%2018.6636%2024.4988%2018.6877%2024.5165%2018.7054L24.8212%2018.9835C16.9849%2023.8288%208.6974%2025.6403%208.60386%2025.6592C7.92124%2025.8046%207.48512%2026.4759%207.63049%2027.161C7.7569%2027.7551%208.28151%2028.1622%208.86553%2028.1622C8.95149%2028.1622%209.04124%2028.1533%209.12973%2028.1356C9.54056%2028.0484%2018.3894%2026.108%2026.7527%2020.7469L27.7729%2021.6773C27.8323%2021.7304%2027.9018%2021.7569%2027.965%2021.7974C28.0295%2021.8366%2028.0838%2021.8846%2028.1521%2021.9137C28.3051%2021.9756%2028.4631%2022.0085%2028.6236%2022.0085C28.7993%2022.0085%2028.9662%2021.9731%2029.1217%2021.9061C29.1432%2021.896%2029.1596%2021.877%2029.1811%2021.8669C29.3126%2021.7999%2029.4339%2021.7177%2029.535%2021.6115C29.5426%2021.6052%2029.5515%2021.6027%2029.5578%2021.5964C29.5983%2021.5521%2029.6134%2021.4978%2029.6463%2021.4497C29.7019%2021.3688%2029.7613%2021.2917%2029.7967%2021.1982C29.8309%2021.111%2029.8359%2021.0187%2029.8511%2020.9264C29.8612%2020.8645%2029.8877%2020.8088%2029.8877%2020.7444V17.9431C29.8877%2017.9444%2029.8877%2017.9444%2029.8877%2017.9431Z'%20fill='currentColor'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3306_1454'%3e%3crect%20width='44'%20height='44'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",ze=a=>{var Q;const{fetchMultiMarketEventData:m,marketData:s,secondaryMultiMatchOdds:$,secondaryMultiMarket:x,loggedIn:d,openBets:P,totalOrders:v,fetchOpenBets:W,bets:k,triggerFetchMarkets:N,triggerFetchOrders:Z,houseId:f,parentId:e,accountId:S,triggerBetStatus:p,betStatusResponse:b,clearExchangeBets:j,setBettingInprogress:O,clearBetStatusResponse:F,pushNotifWSConnection:K,setAlertMsg:T,langData:o}=a,[Y,z]=r.useState(!0),[M,C]=r.useState(0),E=!(window.innerWidth>1120),[w,H]=r.useState(new Map),[y,L]=r.useState(!1),B=he(),[_,R]=r.useState(),[c,i]=r.useState(null),[h,de]=r.useState(!0),V=r.useRef(null),G=r.useRef(!0),q=r.useRef(!0),[Je,Qe]=r.useState(!1),[u]=ce(),J=r.useCallback(async n=>{try{if(!(n!=null&&n.length))return;let l=[],g=[];
1n.forEach(I=>{l.push(I==null?void 0:I.eventId),g.push(I==null?void 0:I.marketId)});const ie=await pe.get("/reports/v2/risk-management/user-risk",{headers:{Authorization:sessionStorage.getItem("jwt_token")},params:{eventId:Array.isArray(l)?l.join(","):l,marketId:Array.isArray(g)?g.join(","):g}});H(ie.data.marketExposureMap)}catch(l){console.log(l)}},[]);return r.useEffect(()=>{m()},[N]),r.useEffect(()=>{if(u!=null&&u.length){let n=[];u.forEach(l=>{n.push(l==null?void 0:l.eventId)}),W(n),J(u)}L(!0)},[u==null?void 0:u.length]),r.useEffect(()=>{if(d&&y&&(u!=null&&u.length)){let n=[];u.forEach(l=>{n.push(l==null?void 0:l.eventId)}),setTimeout(()=>{W(n),J(u)},1e3)}},[d,Z,c]),r.useEffect(()=>{v&&!E&&C(1)},[v]),r.useEffect(()=>{k.length>0&&C(0)},[k]),r.useEffect(()=>{d&&(Be(!0,f,e,S),Ie(!0,f))},[K,d]),r.useEffect(()=>{var n;if(b!==null){switch(b.status){case"IN_PROGRESS":{T({type:"error",message:b.message});break}case"SUCCESS":{T({type:"success",message:b.message}),h&&i(fe.now());break}case"FAIL":{T({type:"error",message:(o==null?void 0:o.bet_failed_prefix)+" - "+b.message});break}}O(!1),(n=k[0])!=null&&n.amount&&j(),F()}},[b]),r.useEffect(()=>{if(G.current){G.current=!1;return}clearInterval(V.current),ee()},[p]),r.useEffect(()=>{if(q.current){q.current=!1;return}return V.current=setInterval(()=>{ee(),clearInterval(V.current)},ve),()=>clearInterval(V.current)},[_]),r.useEffect(()=>{var n;O(!1),(n=k[0])!=null&&n.amount&&j(),F()},[]),t.jsxs(t.Fragment,{children:[t.jsx(We,{title:be,name:"Multi-market",description:"Multi-market page",type:"multimarket",link:B==null?void 0:B.pathname}),t.jsxs(oe,{className:"eam-ctn",children:[t.jsxs(U,{className:"eam-events-table-section",children:[t.jsxs("div",{className:"casino-header-ctn mt-12",children:[t.jsxs("div",{className:"casino-heading",children:[t.jsx("div",{className:"casino-icon-img",children:t.jsx("img",{src:Fe})}),o==null?void 0:o.multimarkets]}),t.jsx("div",{className:"casino-search-ctn",children:t.jsx("div",{className:"eventTypes-menu-tabs"})})]}),u!=null&&u.length&&s&&((Q=Object.keys(s))!=null&&Q.length)?Object.keys(s).map(n=>{var l,g;return t.jsx(Ke,{loggedIn:d,eventData:s[n]??{},openBets:P,secondaryMarkets:Ee(x,n),secondaryMatchOdds:Oe($,n,(l=s[n])==null?void 0:l.sportId),bmMData:Se(x,n),eventId:(g=s[n])==null?void 0:g.eventId,isMultiMarket:!0,exposureMap:w||null},n)}):t.jsx(He,{noDataImg:Ye,title:o==null?void 0:o.no_market_followed_txt,bodyContent:o==null?void 0:o.no_multimarket_follwed_txt})]}),E?null:t.jsx(U,{className:"stream-section",children:t.jsxs("div",{className:"sticky-col bet-slip-open-bets-ctn",children:[t.jsx("div",{className:"betslip-container",children:t.jsxs("div",{className:"betslip-bg",children:[t.jsx("div",{className:`betslip-text ${M===0?"selected":""}`,onClick:()=>C(0),children:o==null?void 0:o.bet_slip}),t.jsxs("div",{className:`betslip-text ${M===1?"selected":""}`,onClick:()=>C(1),children:["(",o==null?void 0:o.open_bets,") (",v,")"]})]})}),t.jsx(ae,{value:M,index:0,className:"event-stat-mobile-ctn",children:k.length>0&&!E?t.jsx(Te,{setBetStartTime:n=>R(n),setAddNewBet:n=>de(n)}):t.jsx(t.Fragment,{children:t.jsxs("div",{className:"no-bets-div",children:[t.jsx("div",{className:"no-bets-icon-div",children:t.jsx("img",{src:se})}),t.jsx("div",{className:"no-bet-data",children:o==null?void 0:o.no_bet_placed_txt})]})})}),t.jsx(ae,{value:M,index:1,className:"event-stat-mobile-ctn",children:P.length>0&&d?t.jsx(we,{}):t.jsx(t.Fragment,{children:t.jsxs("div",{className:"no-bets-div",children:[t.jsx("div",{className:"no-bets-icon-div",children:t.jsx("img",{src:se})}),t.jsx("div",{className:"no-bet-data",children:o==null?void 0:o.no_bet_placed_txt})]})})})]})})]})]})},Ge=a=>({openBets:a.exchBetslip.openBets,totalOrders:a.exchBetslip.totalOrders,loggedIn:a.auth.loggedIn,secondaryMultiMarket:a.multiMarket.secondaryMultiMarketsMap,secondaryMultiMatchOdds:a.multiMarket.secondaryMultiMatchOddsMap,bets:a.exchBetslip.bets,marketData:a.multiMarket.multiMarketData,triggerFetchMarkets:a.multiMarket.triggerFetchMarkets,triggerFetchOrders:a.multiMarket.triggerFetchOrders,houseId:me(),parentId:le(),accountId:sessionStorage.getItem("aid"),triggerBetStatus:a.multiMarket.triggerBetStatus,betStatusResponse:a.exchBetslip.betStatusResponse,pushNotifWSConnection:a.exchangeSports.pushNotifWSConnection,langData:a.common.langData}),qe=a=>({fetchOpenBets:(m,s)=>a(Ce(m,s)),fetchMultiMarketEventData:()=>a(Me()),clearExchangeBets:()=>a(ke()),setBettingInprogress:m=>a(xe(m)),clearBetStatusResponse:()=>a(ge()),setAlertMsg:m=>a(ue(m))}),w2=ne(Ge,qe)(ze);export{w2 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.