PageSourceSearch

https://www.betway.co.mz/_nuxt/book-a-bet-results.DmQuiNE_.5e3b0eee-4325-43c7-a9fe-ae93e1ec1864.js

js betway.co.mz collected 2026-09-25 18:19:28 UTC 52,202 bytes, 1 lines download raw bytes

1var e=Object.defineProperty,t=Object.defineProperties,l=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,n=(t,l,a)=>l in t?e(t,l,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[l]=a,s=(e,t,l)=>new Promise((a,o)=>{var r=e=>{try{s(l.next(e))}catch(t){o(t)}},n=e=>{try{s(l.throw(e))}catch(t){o(t)}},s=e=>e.done?a(e.value):Promise.resolve(e.value).then(r,n);s((l=l.apply(e,t)).next())});import{_ as i}from"./Input.DbiDFS0P.c03e871c-d31f-4523-a71e-92d8cc48acb3.js";import{d,o as u,l as c,a as p,A as m,b as g,t as b,h as v,m as f,i as x,J as k,F as h,ba as w,k as y,bb as I,c0 as C,n as D,c2 as j,w as _,cx as B,c4 as S,p as N,c5 as E,c as A,r as O,B as T,u as M,ap as P,a3 as z,a8 as $,c1 as F,an as L,dI as V,g as W,S as R,bk as q,Z as H,ab as U,a5 as G,E as K,j as J,ak as Y,R as Z,q as Q,cE as X,f9 as ee,be as te,a6 as le,z as ae,av as oe,aq as re,D as ne,a9 as se,aj as ie,W as de,d3 as ue,d4 as ce,aA as pe,dK as me}from"./entry.9359e195-2951-4572-8cf4-3b1277d53f18.js";import{B as ge,a as be}from"./BetSlipShareModal.vue.B0oZPM7q.d443de97-2c7a-42e7-8c50-72fb2b41d2bd.js";import{u as ve,s as fe}from"./Tooltip.vue.C1WF8SrF.c882cf40-299c-4f5f-99f4-be13c4cbda0d.js";import{_ as xe}from"./FeedsAvatarPickerModal.CN5jC8nO.abe217ee-e834-4ddc-9fa8-37702d5a7011.js";import{A as ke}from"./NotificationInGame.C3l7X1OJ.41dc8604-ddf3-4d8f-8a99-950b9abc9724.js";import{S as he}from"./_toteView_.BmWJAi6s.c6c9767e-f5e5-4cda-aebd-ed917a18439b.js";import{D as we}from"./CollapseViewNav.B8ykXcGa.a8750471-0e7d-4069-8a85-a0a40bb4a65c.js";import{s as ye}from"./shuffle.BcvugTfh.a1c7d154-a7b3-496a-bc8c-67ea64f6ff49.js";import{v as Ie}from"./Modals.elnWUxNI.fe941a59-a83b-4f49-8dbf-18be7d56b00f.js";const Ce={key:0,class:"bg-[#E0F3E0] dark:bg-[#003B00] rounded-md p-2 flex gap-1 items-center my-auto h-7 leading-5"},De={class:"text-xs"},je={class:"text-primary-500 font-bold text-sm"},_e=d({__name:"WinBoostBadge",props:{boostValue:{}},setup:e=>(t,l)=>{const a=m;return null!==e.boostValue?(u(),c("div",Ce,[p(a,{path:"betwayWinBoost",class:"w-5 h-5 fill-primary-600"}),g("div",De,b(v(f)("win-boost")),1),g("div",je,b(e.boostValue)+"%",1)])):x("",!0)}}),Be={class:"relative flex flex-row flex-wrap justify-between flex-1 px-1 pl-4 bg-light-50 dark:bg-dark-700 dark:border-dark-500"},Se={class:"flex justify-between w-full"},Ne={class:"flex justify-start flex-nowrap min-w-0 flex-1"},Ee={class:"relative ml-1 dark:text-light-50 min-w-0 w-full"},Ae={class:"truncate"},Oe={class:"flex items-center justify-end"},Te={class:"flex flex-wrap gap-1 font-bold"},Me={class:"line-through text-dark-100"},Pe={class:"flex flex-row justify-between w-full gap-2 mt-1"},ze={class:"flex gap-1 ml-1 max-w-[80%] text-dark-200 dark:text-light-400"},$e={class:"w-full overflow-hidden truncate text-ellipsis whitespace-nowrap"},Fe=d({__name:"BetRow",props:{index:{},event:{},market:{},outcome:{},price:{}},setup(e){const t=e,l=y(()=>{var e,l,o;return a(null==(e=t.price)?void 0:e.priceDecimal,null==(l=t.price)?void 0:l.numerator,null==(o=t.price)?void 0:o.denominator)}),a=(e,t,l)=>I(null!=e?e:0,null!=t?t:1,null!=l?l:1).toString(),o=y(()=>(e=>{if(!(null==e?void 0:e.numerator)||!(null==e?void 0:e.denominator))return"N/A";const t=C({priceNumerator:e.numerator,priceDenominator:e.denominator});return I(null==t?void 0:t.preBoostedPriceDecimal,null==t?void 0:t.preBoostedPriceNumerator,null==t?void 0:t.preBoostedPriceDenominator).toString()})(t.price)),r=y(()=>{var e,l;return null!=(l=null==(e=t.outcome)?void 0:e.isBoosted)&&l});return(t,a)=>{var n,s,i,d,f,y,I;const C=m;return u(),c("div",Be,[g("div",Se,[g("div",Ne,[g("div",Ee,[a[0]||(a[0]=g("span",{class:"absolute block w-2 h-2 -translate-y-1/2 border rounded-full border-light-400 dark:border-dark-200 -left-4 top-1/2 bg-light-50 dark:bg-dark-700 z-10"},null,-1)),g("p",Ae,[g("strong",null,b(null==(n=e.outcome)?void 0:n.displayName)+":",1),k(" "+b(null==(s=e.market)?void 0:s.displayName),1)])])]),g("div",Oe,[g("div",Te,[v(r)?(u(),c(h,{key:0},[g("p",Me,b(v(o)),1),p(C,{path:v(w),class:"w-4 h-4 fill-warning-600"},null,8,["path"])],64)):x("",!0),g("p",null,b(v(l)),1)])])]),g("div",Pe,[g("div",ze,[g("p",$e,b((null==(i=e.event)?void 0:i.awayTeam)&&(null==(d=e.event)?void 0:d.homeTeam)?`${null==(f=e.event)?void 0:f.homeTeam} vs ${null==(y=e.event)?void 0:y.awayTeam}`:null==(I=e.event)?void 0:I.displayName),1)])])])}}}),Le={class:"flex items-center gap-2 whitespace-nowrap"},Ve={class:"relative whitespace-nowrap flex items-center"},We=d({__name:"BookingCodeCopy",props:{post:{},bookingCode:{},iconFill:{default:"fill-dark-700 dark:fill-light-50"},textSize:{default:"xs"},label:{},tooltipPosition:{}},setup(e){const t=e,l=N(!1),a=y(()=>{var e;return(null==(e=t.post)?void 0:e.topic.topicId.replace("ext-BB-",""))||t.bookingCode||""}),o=()=>{E(a.value).then(()=>{l.value=!0,setTimeout(()=>l.value=!1,2e3)}
1).catch(()=>l.value=!1)};return(t,r)=>{var n;return u(),c("div",Le,[g("div",{class:D(`text-${e.textSize}`)},[k(b(e.label||v(f)("booking-code"))+": ",1),g("strong",null,b((null==(n=e.post)?void 0:n.topic.topicId.replace("ext-BB-",""))||v(a)||""),1)],2),g("div",Ve,[p(j,{position:e.tooltipPosition||"bottom",class:D("absolute w-32 text-center whitespace-nowrap"),type:"click",tooltip:v(l)?v(f)("copied-to-clipboard"):void 0},{default:_(()=>[p(m,{onClick:o,class:D(["w-5 h-5 cursor-pointer",e.iconFill]),path:v(l)?v(B):v(S)},null,8,["class","path"])]),_:1},8,["position","tooltip"])])])}}}),Re={class:"p-2 pt-1 bg-light-50 dark:bg-dark-700"},qe={class:"flex justify-between items-center pb-[5px] border-b border-light-400 dark:border-dark-800"},He={class:"text-sm ml-1"},Ue={class:"text-primary-500 font-bold"},Ge={class:"relative flex flex-col flex-1 w-full my-1 mt-2 overflow-hidden text-xs transition-all dark:text-light-50 text-dark-800 whitespace-nowrap overflow-x-clip gap-4 leading-snug"},Ke={class:"shadow-[0_-4px_8px_0px_rgba(0,0,0,0.08)] sticky bottom-0 left-0 z-10 flex gap-3 items-center justify-center rounded-b-md dark:text-light-50 py-3 px-4 bg-light-50 dark:bg-dark-900"},Je=d({__name:"ShowAllSelection",props:{bookingCode:{},active:{type:Boolean},totalOdds:{},winBoostValue:{},emop:{}},emits:["setActive","add-to-betslip"],setup:(e,{emit:t})=>(t,l)=>{const a=xe;return u(),A(a,{active:e.active,onSetActive:l[2]||(l[2]=e=>t.$emit("setActive",e)),"content-padding":!1,size:"small",showOverflow:!0,"content-class":"bg-light-50 dark:bg-dark-900"},{titleElement:_(()=>[p(We,{"booking-code":e.bookingCode,label:v(f)("booking-code"),"text-size":"md","icon-fill":"fill-light-50"},null,8,["booking-code","label"])]),default:_(()=>[g("div",Re,[g("div",qe,[g("div",He,[k(b(v(f)("odds"))+" : ",1),g("span",Ue,b(e.totalOdds),1)]),p(_e,{"boost-value":e.winBoostValue},null,8,["boost-value"])]),g("div",Ge,[l[3]||(l[3]=g("span",{class:"absolute top-[10px] bottom-[0px] left-[7px] w-[2px] bg-[linear-gradient(180deg,_#E1E1E1_0%,_#E1E1E1_50%,_rgba(225,225,225,0)_100%)] dark:bg-[linear-gradient(180deg,_#838383_0%,_#838383_50%,_rgba(131,131,131,0)_100%)] z-[5]"},null,-1)),(u(!0),c(h,null,O(e.emop,(e,t)=>(u(),A(Fe,{key:`more-bets-${t}-${e.outcome.outcomeId}`,bet:e,index:t,event:e.event,market:e.market,outcome:e.outcome,price:e.price},null,8,["bet","index","event","market","outcome","price"]))),128))])]),g("div",Ke,[p(T,{label:v(f)("close"),class:D("w-full h-10 bg-light-200 dark:bg-dark-600 rounded font-bold"),variant:"custom",onClick:l[0]||(l[0]=e=>t.$emit("setActive"))},null,8,["label"]),p(T,{label:v(f)("add-to-betslip"),class:D("w-full"),onClick:l[1]||(l[1]=e=>t.$emit("add-to-betslip"))},null,8,["label"])])]),_:1},8,["active"])}}),Ye={key:0,class:"bg-light-50 dark:bg-dark-700 rounded-lg w-[95%] md:w-[312px] h-[210px] shrink-0 flex flex-col select-none"},Ze={class:"flex justify-between items-center px-1 py-2 border-b border-light-400 dark:border-dark-800"},Qe={class:"text-sm ml-1 mt-1"},Xe={class:"text-primary-500 font-bold"},et={class:"p-1 flex-1 overflow-hidden"},tt={class:"relative flex flex-col flex-1 w-full my-1 overflow-hidden text-xs transition-all dark:text-light-50 text-dark-800 whitespace-nowrap overflow-x-clip gap-3"},lt={class:"font-bold text-xs text-dark-600 dark:text-light-50"},at={class:"mt-auto flex justify-between items-center gap-2 px-2 py-2 relative"},ot={class:"flex flex-1 gap-1 items-center ml-2 text-dark-600 dark:text-light-50 text-xs"},rt=d({__name:"Bet",props:{bookingCode:{},emop:{}},setup(e){const t=e,l=M(),a=P(),o=ve("betslip",ge),r=N(!1),n=y(()=>{var e;return null==(e=t.emop)?void 0:e.slice(0,2).filter(Boolean)}),i=y(()=>{var e,a;const o=null==(e=l.config)?void 0:e.winBoostConfig;if(!(null==o?void 0:o.WinBoostOffers))return null;const r=(e=>{var t;const a=null==(t=l.config)?void 0:t.winBoostConfig;if(!a)return[];const{MinOddsPerEvent:o,DisableForLiveInPlay:r,ExcludedMarkets:n,ExcludedSports:s}=a;return e.filter(e=>{const t=e.price.priceDecimal;if(t&&t<o)return!1;if(r&&e.event.eventIsLive)return!1;const l=e.market.marketTypeCName;if(null==n?void 0:n.includes(l))return!1;const a=e.event.sportId;return!(null==s?void 0:s.includes(a))})})(t.emop||[]).length,n=0===r?0:o.WinBoostOffers.findLastIndex(({Events:e})=>e<=r),s=-1!==n?o.WinBoostOffers[n]:null;return null!=(a=null==s?void 0:s.WinBoostValue)?a:null}),d=y(()=>{var e;if(!(null==(e=t.emop)?void 0:e.length))return 0;const l=t.emop.map(e=>{var t,l;return{priceNumerator:null!=(t=e.price.numerator)?t:0,priceDenominator:null!=(l=e.price.denominator)?l:1}});return Number(F(l)).toFixed(2)}),w=()=>s(null,null,function*(){var e,n,i,d,u,c;try{yield(e=>s(null,null,function*(){var t;const r=[];
1if(e.forEach(e=>{e.selected&&a.selection.find(t=>t.outcomeId===e.outcomeId)&&r.push({outcomeId:e.outcomeId,eventId:e.eventId,marketId:e.marketId})}),r.length>0){const e=r.map(e=>{var t;return null==(t=a.markets.get(e.marketId))?void 0:t.name});o.unSubscribe(fe.unsubscriptionBetslipEndpoint,{eventIds:r.map(e=>e.eventId),marketTypes:[...new Set(e)],countryCode:null==(t=l.getCountryConfig)?void 0:t.countryIsoTwo})}}))(a.selection),a.selection=[],a.events=new Map,a.markets=new Map,a.outcomes=new Map,a.prices=new Map,a.scores=new Map;const r=null==(e=t.emop)?void 0:e.map(e=>({event:e.event,market:e.market,outcome:e.outcome,price:e.price,score:null}));if(!r||0===r.length)return;a.referringBookingCode=t.bookingCode,a.handleMultipleSelections(r);const p=[],m=new Set;for(const e of r)p.push(null!=(i=null==(n=e.event)?void 0:n.eventId)?i:0),(null==(d=e.market)?void 0:d.name)&&m.add(null==(u=e.market)?void 0:u.name);o.subscribe(fe.subscriptionBetslipEndpoint,p,{eventIds:p,marketTypes:[...m],countryCode:null==(c=l.getCountryConfig)?void 0:c.countryIsoTwo})}catch(p){console.error("Error adding bets to betslip:",p)}finally{r.value&&(r.value=!1),$&&(a.open=!0)}});return(t,l)=>{const a=m,o=T;return e.emop&&e.emop.length?(u(),c("div",Ye,[g("div",Ze,[g("div",Qe,[k(b(v(f)("odds"))+" : ",1),g("span",Xe,b(v(d)),1)]),p(_e,{"boost-value":v(i)},null,8,["boost-value"])]),g("div",et,[g("div",tt,[l[4]||(l[4]=g("span",{class:"absolute top-[10px] bottom-[0px] left-[7px] w-[2px] bg-[linear-gradient(180deg,_#E1E1E1_0%,_#E1E1E1_50%,_rgba(225,225,225,0)_100%)] dark:bg-[linear-gradient(180deg,_#838383_0%,_#838383_50%,_rgba(131,131,131,0)_100%)] z-[5]"},null,-1)),(u(!0),c(h,null,O(v(n),(e,t)=>(u(),A(Fe,{key:`selection-${t}-${e.outcome.outcomeId}`,index:t,event:e.event,market:e.market,outcome:e.outcome,price:e.price},null,8,["index","event","market","outcome","price"]))),128))]),e.emop&&e.emop.length>2?(u(),c("div",{key:0,class:"mt-3 mb-2 flex gap-1 items-center cursor-pointer",onClick:l[0]||(l[0]=e=>r.value=!0)},[p(a,{path:v(z),class:"w-4 h-4 fill-dark-600 dark:fill-light-50"},null,8,["path"]),g("div",lt,b(`${v(f)("show-all")} ${e.emop.length} ${v(f)("outcomes")}`),1)])):x("",!0)]),v(r)?(u(),A(Je,{key:0,active:v(r),"booking-code":e.bookingCode,onSetActive:l[1]||(l[1]=e=>r.value=!1),onAddToBetslip:l[2]||(l[2]=e=>w()),emop:e.emop,winBoostValue:v(i),totalOdds:v(d)},null,8,["active","booking-code","emop","winBoostValue","totalOdds"])):x("",!0),g("div",at,[g("div",ot,[p(We,{class:"ml-2 max-w-[150px]","booking-code":e.bookingCode,label:v(f)("code"),"tooltip-position":"top"},null,8,["booking-code","label"])]),p(o,{onClick:l[3]||(l[3]=e=>w()),variant:"primary",size:"custom",class:"h-7 rounded-md text-xs flex-2 px-2",label:v(f)("add-to-betslip")},null,8,["label"])])])):x("",!0)}}}),nt={class:"flex-col flex pt-2 bg-light-50 dark:bg-dark-800 text-light-50 rounded-md place-content-between overflow-hidden relative w-[312px] h-[210px]"},st={class:"relative top-0 w-full h-fit -translate-y-2 dark:bg-dark-700 flex flex-col"},it={class:"flex flex-row justify-between mx-2 mt-2 mb-3 min-h-[28px]"},dt={class:"flex w-full flex-row justify-between border-t bg-light-50 dark:bg-dark-800 dark:border-none"},ut={class:"flex w-full items-center ml-2 gap-2"},ct={class:"flex w-full flex-row justify-between dark:bg-dark-800"},pt={class:D(["flex justify-between mb-1 px-2 pt-2 rounded-b-xl bg-light-50 dark:bg-dark-700 dark:border-dark-500 translate-y-2 pb-0 gap-2"])},mt=d({__name:"BetsLoader",setup:e=>(e,t)=>(u(!0),c(h,null,O(Array.from({length:6}).keys(),e=>(u(),c("div",{key:`bet-loader-${e}`,class:"flex justify-center items-center"},[g("div",nt,[g("div",st,[g("div",it,[p(L,{class:"flex flex-row h-5 w-3/12 ml-2 text-dark-600 dark:text-light-50 bg-light-200 dark:bg-dark-600 rounded-md font-bold text-xs px-3 justify-between"})])]),(u(!0),c(h,null,O(Array.from({length:2}).keys(),e=>(u(),c("div",{key:`bet-selection-loader-${e}`,class:"flex flex-row flex-wrap justify-between flex-shrink-0 border-light-300 bg-light-50 dark:bg-dark-800 dark:border-none overflow-hidden flex-1"},[g("div",dt,[g("div",ut,[p(L,{class:"w-2 h-2 rounded-full text-dark-600 dark:text-light-50 bg-light-200 dark:bg-dark-600"}),p(L,{class:"flex flex-row h-3 w-2/5 mt-1 pb-2 text-dark-600 dark:text-light-50 bg-light-200 dark:bg-dark-600 rounded-md font-bold text-xs"})]),p(L,{class:"flex flex-row h-3 w-[10%] mt-1 mr-1 pb-2 text-dark-600 dark:text-light-50 bg-light-200 dark:bg-dark-600 rounded-md font-bold text-xs"})]),g("div",ct,[p(L,{class:"flex flex-row ml-6 h-3 w-6/12 mt-1 pt-1 text-dark-600 dark:text-light-50 bg-light-200 dark:bg-dark-600 rounded-md font-bold text-xs px-3 justify-between"})])]))),128)),g("div",pt,[p(L,{class:"flex flex-row h-10 w-full bg-light-200 dark:text-light-50 dark:bg-dark-600 text-dark-600 rounded-md text-sm px-2 justify-between mb-2"}),p(L,{class:"flex flex-row h-10 w-full bg-light-200 dark:text-light-50 dark:bg-dark-600 text-dark-600 rounded-md text-sm px-2 justify-between"})])])]))),128))}),gt={class:"relative text-xs font-normal leading-4 bg-light-400 dark:bg-dark-800 rounded-b-lg p-1 overflow-hidden scrollbar-hidden"},bt={id:"recommended-scroller",class:"flex gap-1 md:gap-[6px] items-center overflow-x-scroll overflow-y-hidden scrollbar-hidden"},vt=d({__name:"index",props:{label:{default:"recommended-bets"},icon:{}},setup(e){const{scroll:t,hasMore:l,forceUpdate:a}=V("recommended-scroller",250),o=K`w-6 h-full top-0 absolute transition-all bg-light-50 dark:bg-dark-800 hidden md:flex shadow z-10  items-center justify-center cursor-pointer`,{isIOS:r}=(()=>{const e=["iPhone","Android","Huawei"],t=y(()=>e.find(e=>navigator.userAgent.toString().indexOf(e)>-1)||"Desktop"),l=y(()=>"iPhone"===t.value),a=y(()=>"Android"===t.value),o=y(()=>"Huawei"===t.value);return{deviceName:t,isIOS:l,isAndroid:a,isHuawei:o}})(),{data:n,isLoading:i}=W({queryKey:["recommended-bets-emop"],staleTime:Number.POSITIVE_INFINITY,queryFn:()=>J({url:"/cron/bookingcode/synapse/BW?api-version=1.0",type:"config"}).then(e=>ye(e)),onSuccess:()=>{s(null,null,function*(){yield setTimeout(()=>{var e;
1const t=null==(e=document.getElementById("recommended-scroller"))?void 0:e.getElementsByClassName("sports-list-active-item")[0];t&&t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},100),setTimeout(()=>{(r.value?document.body:window).scrollTo({top:0,behavior:"smooth"})},100),setTimeout(()=>{a()},250)})}}),d=y(()=>{var e;return null==(e=n.value)?void 0:e.some(e=>{var t;return null==(t=e.emop)?void 0:t.some(e=>e.outcome.shouldDisplay&&e.outcome.isTradingActive&&e.market.shouldDisplay&&!e.market.isSuspended&&e.event.shouldDisplay&&e.event.isActive&&1!==e.price.priceDecimal)})});return(a,r)=>{const s=m,w=G;return u(),A(ke,{open:!0,"header-class":"bg-dark-600 dark:bg-dark-700 font-bold h-8 text-light-50 "},{header:_(()=>[e.icon?(u(),A(s,{key:0,path:e.icon},null,8,["path"])):x("",!0),g("div",{class:D(["text-xs font-bold",e.icon?"":"px-1"])},b(v(f)(e.label)),3)]),default:_(()=>{var e;return[g("div",gt,[R(g("div",{onClick:r[0]||(r[0]=e=>v(t)("left")),class:D([o,"z-[15] left-0 rounded-l-lg shadow-[8px_0_8px_0_rgba(0,0,0,0.16)] dark:shadow-[8px_0_8px_0_rgba(0,0,0,0.18)]"])},[p(s,{path:v(H)},null,8,["path"])],2),[[q,v(l).left]]),R(g("div",{onClick:r[1]||(r[1]=e=>v(t)("right")),class:D([o,"z-[15] right-0 rounded-r-lg shadow-[-8px_0_8px_0_rgba(0,0,0,0.16)] dark:shadow-[-8px_0_8px_0_rgba(0,0,0,0.18)] "])},[p(s,{path:v(U)},null,8,["path"])],2),[[q,v(l).right]]),g("div",bt,[v(i)?(u(),A(mt,{key:0})):v(d)?(u(!0),c(h,{key:1},O(null==(e=v(n))?void 0:e.filter(e=>e.emop&&e.emop.length>0),(e,t)=>(u(),A(rt,{key:t,bookingCode:e.bookingCodeId,emop:e.emop.filter(e=>e.outcome.shouldDisplay&&e.outcome.isTradingActive&&e.market.shouldDisplay&&!e.market.isSuspended&&e.event.shouldDisplay&&e.event.isActive&&1!==e.price.priceDecimal)},null,8,["bookingCode","emop"]))),128)):(u(),A(w,{key:2,severity:"warning"},{default:_(()=>[k(b(v(f)("no-recommended-bets-available")),1)]),_:1}))])])]}),_:1})}}}),ft={key:0,class:"flex flex-col gap-2"},xt={key:0,class:"px-2 p-2 pt-1 overflow-y-auto relative"},kt={class:"flex justify-between items-center pb-[5px] border-b border-light-400 dark:border-dark-800"},ht={class:"text-sm ml-1"},wt={class:"text-primary-500 font-bold"},yt={class:"relative py-1"},It={class:"leading-tight relative py-1 z-[5]"},Ct={class:"flex justify-between font-bold gap-2 py-1"},Dt={class:"relative pl-4 text-xs truncate"},jt={class:"truncate font-normal"},_t={class:"flex gap-1"},Bt={class:"line-through text-dark-300 text-xs"},St={class:"text-xs"},Nt={class:"flex gap-2 justify-between font-normal text-dark-300 dark:text-light-700 pl-4"},Et={class:"truncate text-xs max-w-[280px] min-[500px]:max-w-[480px]"},At={class:"shadow-[0_-4px_8px_0px_rgba(0,0,0,0.08)] sticky bottom-0 left-0 z-10 flex gap-3 items-center justify-center rounded-b-md dark:text-light-50 py-3 px-4 bg-light-50 dark:bg-dark-900"},Ot=d({__name:"BookingCodeOutcomesModal",props:{bookingCode:{},active:{type:Boolean},payload:{}},emits:["setActive","add-to-betslip"],setup(e,{emit:t}){const l=t;return(t,a)=>{const o=m;return u(),A(xe,{active:e.active,onSetActive:a[2]||(a[2]=e=>l("setActive",e)),"content-padding":!1,size:"small",showOverflow:!0},{titleElement:_(()=>[p(We,{"booking-code":e.bookingCode,iconFill:"fill-light-50","text-size":"md",class:"ml-2"},null,8,["booking-code"])]),default:_(()=>[e.payload?(u(),c("div",ft,[g("div",{class:D(["w-full bg-light-50 dark:bg-dark-800",{"leading-tight":e.payload.legs}])},[e.payload.legs?(u(),c("div",xt,[g("div",kt,[g("div",ht,[k(b(v(f)("odds"))+" : ",1),g("span",wt,b(e.payload.totalOdds),1)]),p(_e,{"boost-value":e.payload.winboost},null,8,["boost-value"])]),g("div",yt,[a[4]||(a[4]=g("span",{class:"absolute top-[20px] bottom-[40px] left-[3px] w-[2px] bg-light-700 z-[4]"},null,-1)),(u(!0),c(h,null,O(e.payload.legs,e=>(u(),c("div",It,[e?(u(),c(h,{key:0},[g("div",Ct,[g("div",Dt,[a[3]||(a[3]=g("span",{class:"h-2 w-2 rounded-full border border-light-900 block absolute left-0 top-1/2 -translate-y-1/2 bg-light-50"},null,-1)),k(" "+b(e.outcomeName)+": ",1),g("span",jt,b(e.marketName),1)]),g("div",_t,[e.preBoost?(u(),c(h,{key:0},[p(o,{path:v(w),class:"w-4 h-4 fill-warning-600"}
1,null,8,["path"]),g("span",Bt,b(e.preBoost),1)],64)):x("",!0),g("span",St,b(e.odds),1)])]),g("div",Nt,[g("span",Et,b(e.eventName),1)])],64)):x("",!0)]))),256))])])):x("",!0)],2)])):x("",!0),g("div",At,[p(T,{label:v(f)("close"),class:D("w-full h-10 bg-light-200 dark:bg-dark-600 rounded font-bold"),variant:"custom",onClick:a[0]||(a[0]=e=>l("setActive",!1))},null,8,["label"]),p(T,{label:v(f)("add-to-betslip"),class:D("w-full"),onClick:a[1]||(a[1]=e=>l("add-to-betslip"))},null,8,["label"])])]),_:1},8,["active"])}}}),Tt={key:1,class:D(["flex justify-center"])},Mt={class:"flex flex-row items-center justify-between mx-2 mt-2 mb-3"},Pt={key:0,class:"flex flex-row justify-between px-2 text-xs rounded-md whitespace-nowrap bg-light-200 dark:text-light-50 dark:bg-dark-600 text-dark-600"},zt={class:"text-primary-500"},$t={class:"ml-1"},Ft={key:0,class:"flex flex-row justify-between px-2 mx-2 mb-2 text-xs rounded-md dark:text-light-50 bg-light-200 dark:bg-dark-600 text-dark-600"},Lt={class:"mr-1"},Vt={class:"flex flex-nowrap"},Wt={class:"mr-1"},Rt={class:"flex flex-row"},qt={class:"mr-1 font-bold md:font-normal"},Ht={key:0,class:"text-primary-600"},Ut={class:"relative flex flex-col flex-1 w-full my-1 overflow-hidden text-xs transition-all dark:text-light-50 text-dark-800 whitespace-nowrap overflow-x-clip"},Gt={class:"flex justify-between w-full"},Kt={class:"flex justify-start flex-nowrap"},Jt={class:"flex flex-nowrap"},Yt={class:"relative ml-1 dark:text-light-50"},Zt={class:"truncate max-w-[240px]"},Qt={class:"flex items-center justify-end"},Xt={class:"flex flex-wrap gap-1 font-bold"},el={class:"line-through text-dark-100"},tl={class:"flex flex-row justify-between w-full gap-2"},ll={class:"flex gap-1 ml-1 max-w-[80%] -mt-1 text-dark-200 dark:text-light-400"},al={class:"w-full overflow-hidden truncate text-ellipsis whitespace-nowrap"},ol={class:D(["flex flex-row justify-between px-2 gap-2 mt-1"])},rl={class:"flex flex-wrap justify-between w-full py-1 -mt-2 -mb-2 text-xs transition-all rounded-t-lg dark:text-light-50 text-dark-800 whitespace-nowrap"},nl={class:"flex justify-between"},sl={class:"flex flex-wrap"},il={class:"flex justify-between items-center px-2 m-1 rounded bg-light-200 dark:bg-dark-700 h-8"},dl={class:"flex flex-col justify-center sm:flex-row align-center"},ul={class:"block mr-1 -mb-2 font-normal sm:inline-block leading-0 md:mb-0"},cl={class:"block font-bold sm:inline-block leading-0"},pl={class:"flex justify-start items-center px-1 my-1 py-1 rounded bg-light-200 h-8 dark:bg-dark-700 md:w-[85px]"},ml={class:"mr-1 font-normal"},gl={class:"flex justify-start flex-wrap items-center ml-1 my-1 p-1 rounded h-8 bg-light-200 dark:bg-dark-700 md:w-[105px]"},bl={class:"flex"},vl={class:"mr-1 font-bold md:font-normal"},fl={key:0,class:"text-primary-600"},xl={key:1,class:"flex items-center justify-center ml-2"},kl={class:"items-center justify-start hidden w-32 h-8 px-2 my-1 ml-1 rounded md:flex bg-light-200 dark:bg-dark-700"},hl={class:"mr-1 font-normal"},wl={class:"hidden md:flex justify-start items-center my-1 ml-1 px-2 rounded h-8 bg-light-200 dark:bg-dark-700 w-[130px]"},yl={class:"mr-1 font-normal"},Il={class:"items-center justify-start hidden h-8 mx-1 rounded md:flex flex-nowrap md:my-1"},Cl={class:"flex items-center justify-end w-8 h-8 px-2 mr-1 rounded flex-nowrap bg-light-200 dark:bg-dark-700"},Dl={key:0,class:"flex-col gap-1 p-1 pr-3 -mt-1 -mb-2 text-xs transition-all border-b rounded-none md:mb-1 md:-mt-1 md:rounded-b-lg bg-light-50 dark:bg-dark-800 dark:text-light-50 text-dark-800 whitespace-nowrap border-light-300 dark:border-dark-600 md:border-none"},jl={class:"flex justify-start flex-nowrap"},_l={class:"flex items-center"},Bl={class:"flex flex-nowrap"},Sl={class:"ml-1 dark:text-light-50"},Nl={class:"hidden ml-1 md:flex text-dark-200 dark:text-light-400"},El={class:"flex items-center justify-end"},Al={class:"flex flex-wrap gap-1 font-bold"},Ol={class:"hidden truncate text-dark-600 md:flex dark:text-light-50"},Tl={class:"hidden truncate text-dark-600 md:flex dark:text-light-50"},Ml={class:"line-through text-dark-100"},Pl={class:"text-primary-600"},zl={class:"flex flex-row justify-between w-full gap-1 md:hidden"},$l={class:"w-1/2 gap-1 truncate"},Fl={class:"flex ml-1 -mt-1 text-dark-200 dark:text-light-400"},Ll={class:"truncate"},Vl={class:"flex justify-end w-1/2 gap-1 -mt-1"},Wl={class:"truncate text-dark-600 dark:text-light-50"},Rl={key:3,class:"flex items-center justify-start w-full gap-1 mb-1 -mt-1 text-xs rounded-b-lg md:hidden bg-light-50 dark:bg-dark-800"},ql={class:"flex items-center h-8 px-2 my-2 ml-1 rounded text-wrap bg-light-200 w-15 dark:bg-dark-700"},Hl={class:"mr-1 leading-none"},Ul={class:"flex items-center h-8 px-2 my-2 leading-none rounded bg-light-200 w-15 dark:bg-dark-700"},Gl={class:"mr-1"},Kl={class:"items-center flex-1 pr-1"},Jl=d({__name:"BookABetAccordion",props:{events:{},markets:{},outcomes:{},prices:{},winBoost:{},totalOdds:{},package:{},initialState:{type:Boolean},forceSmallScreenDesigns:{type:Boolean},wrapperClass:{},fixtureDisplayCount:{},bookingCodeStats:{type:Boolean,default:!0},betslipButtonLabel:{default:"booking-codes-add-to-betslip"}},emits:["fetchNext","fetchPrevious"],setup(e,{emit:i}){var d;const j=e,B=P(),S=N([]),E=N(!1),z=N(!1),F=N(null==(d=j.initialState)||d),L=N(!1),V=N(),W=M(),R=ve("betslip",ge),q=e=>s(null,null,function*(){var t,l,a,o;const{bets:r,bookingCode:n}=e;if(!r.length)return 0;z.value=!0,yield(e=>s(null,null,function*(){var t;const l=[];
1if(e.forEach(e=>{e.selected&&B.selection.find(t=>t.outcomeId===e.outcomeId)&&l.push({outcomeId:e.outcomeId,eventId:e.eventId,marketId:e.marketId})}),l.length>0){const e=l.map(e=>{var t;return null==(t=B.markets.get(e.marketId))?void 0:t.name});R.unSubscribe(fe.unsubscriptionBetslipEndpoint,{eventIds:l.map(e=>e.eventId),marketTypes:[...new Set(e)],countryCode:null==(t=W.getCountryConfig)?void 0:t.countryIsoTwo})}}))(B.selection),B.selection=[],B.events=new Map,B.markets=new Map,B.outcomes=new Map,B.prices=new Map,B.scores=new Map;const i=r.map(e=>({event:j.events.get(e.eventID),market:j.markets.get(String(e.marketID)),outcome:j.outcomes.get(String(e.outcomeID)),price:j.prices.get(String(e.outcomeID)),score:null}));B.referringBookingCode=n,B.handleMultipleSelections(i);const d=[],u=new Set;for(const e of i)d.push(null==(t=e.event)?void 0:t.eventId),(null==(l=e.market)?void 0:l.name)&&u.add(null==(a=e.market)?void 0:a.name);R.subscribe(fe.subscriptionBetslipEndpoint,d,{eventIds:d,marketTypes:[...u],countryCode:null==(o=W.getCountryConfig)?void 0:o.countryIsoTwo}),V.value=void 0,$&&(B.open=!0),z.value=!1}),H=e=>{var t,l;const a=null==(t=j.prices.get(e))?void 0:t.numerator,o=null==(l=j.prices.get(e))?void 0:l.denominator;if(void 0!==a&&void 0!==o){const e=C({priceNumerator:a,priceDenominator:o});return I(null==e?void 0:e.preBoostedPriceDecimal,null==e?void 0:e.preBoostedPriceNumerator,null==e?void 0:e.preBoostedPriceDenominator)}return"N/A"},U=y(()=>($||j.forceSmallScreenDesigns)&&0!==j.totalOdds),G=y(()=>{var e,s;if(!(null==(s=null==(e=j.package)?void 0:e.bets)?void 0:s.length))return j.package;const i=j.package.bets.filter(e=>{const t=j.events.get(e.eventID),l=j.markets.get(String(e.marketID)),a=j.outcomes.get(String(e.outcomeID)),o=j.prices.get(String(e.outcomeID));return t&&l&&a&&o});return d=((e,t)=>{for(var l in t||(t={}))o.call(t,l)&&n(e,l,t[l]);if(a)for(var l of a(t))r.call(t,l)&&n(e,l,t[l]);return e})({},j.package),t(d,l({bets:i}));var d}),K=y(()=>!(!G.value.bets.length||!j.totalOdds));return(t,l)=>{const a=m,o=T,r=Q;return u(),c(h,null,[v(E)?(u(),A(be,{key:0,onHandleClose:l[0]||(l[0]=e=>E.value=!1),bets:void 0,events:e.events,markets:e.markets,outcomes:e.outcomes,prices:e.prices,bookingCode:e.package.bookingCode,selections:v(S)},null,8,["events","markets","outcomes","prices","bookingCode","selections"])):x("",!0),v(U)&&v(K)?(u(),c("div",Tt,[g("div",{class:D(["flex-col flex my-1 bg-light-50 dark:bg-dark-700 rounded-2xl dark:bg-[url(/img/bookabetBackground.svg)] shadow-[0_4px_8px_0px_rgba(0,0,0,0.08)]",e.wrapperClass?e.wrapperClass:"w-full"])},[g("div",Mt,[p(We,{class:"ml-2 max-w-[150px]","booking-code":e.package.bookingCode},null,8,["booking-code"]),e.package.count?(u(),c("div",Pt,[g("strong",zt,b(e.package.count),1),g("strong",$t,b(v(f)("bets-taken")),1)])):x("",!0)]),e.bookingCodeStats?(u(),c("div",Ft,[g("div",null,[g("span",Lt,b(v(f)("outcomes"))+":",1),g("strong",null,b(v(G).bets.length),1)]),l[9]||(l[9]=g("div",{class:"text-xl text-light-50 dark:text-dark-500"},"|",-1)),g("div",Vt,[p(a,{path:"betwayWinBoost",class:"w-4 h-4 mt-1 cursor-pointer fill-primary-600"}),g("span",Wt,b(v(f)("win-boost"))+":",1),g("strong",null,b(e.winBoost)+"%",1)]),l[10]||(l[10]=g("div",{class:"text-xl text-light-50 dark:text-dark-500"},"|",-1)),g("div",Rt,[g("span",qt,b(v(f)("odds"))+":",1),e.totalOdds?(u(),c("strong",Ht,b(e.totalOdds),1)):(u(),A(a,{key:1,path:v(Y),class:"w-4 h-4 mt-2 animate-spin fill-primary-600"},null,8,["path"]))])])):x("",!0),g("div",Ut,[l[12]||(l[12]=g("span",{class:"absolute top-[10px] bottom-[33px] left-[7px] w-[2px] bg-light-700 z-[5]"},null,-1)),(u(!0),c(h,null,O(v(G).bets.slice(0,j.fixtureDisplayCount),(t,o)=>{var r,n,s,i,d,m,f,y,C,D,j;return u(),c("div",{key:`${o}-${t.outcomeID}`,class:"relative flex flex-row flex-wrap justify-between flex-1 px-1 pl-4 bg-light-50 dark:bg-dark-800 dark:border-dark-500"},[g("div",Gt,[g("div",Kt,[g("div",Jt,[g("div",Yt,[l[11]||(l[11]=g("span",{class:"absolute z-10 block w-2 h-2 -translate-y-1/2 border rounded-full border-light-900 -left-4 top-1/2 bg-light-50"},null,-1)),g("p",Zt,[g("strong",null,b(null==(r=e.events.get(t.eventID))?void 0:r.homeTeam)+":",1),k(" "+b(null==(n=e.markets.get(String(t.marketID)))?void 0:n.displayName),1)])])])]),g("div",Qt,[g("div",Xt,[(null==(s=e.outcomes.get(t.outcomeID))?void 0:s.isBoosted)?(u(),c(h,{key:0},[g("p",el,b(H(t.outcomeID)),1),p(a,{path:v(w),class:"w-4 h-4 mt-1 fill-warning-600"},null,8,["path"])],64)):x("",!0),g("p",null,b(v(I)(null!=(d=null==(i=e.prices.get(String(t.outcomeID)))?void 0:i.priceDecimal)?d:0,null!=(f=null==(m=e.prices.get(String(t.outcomeID)))?void 0:m.numerator)?f:1,null!=(C=null==(y=e.prices.get(String(t.outcomeID)))?void 0:y.denominator)?C:1)),1)])])]),g("div",tl,[g("div",ll,[g("p",al,b(null==(D=e.events.get(t.eventID))?void 0:D.homeTeam)+" vs "+b(null==(j=e.events.get(t.eventID))?void 0:j.awayTeam),1)])])])}),128))]),g("div",ol,[p(o,{rootClass:"text-dark-900 cursor-pointer mb-2 rounded-lg dark:text-light-50 h-10 px-2",size:"custom",class:"w-full rounded-lg bg-light-200 dark:bg-dark-600 hover:dark:bg-dark-700",variant:"custom",label:`${v(f)("show-all")} ${v(G).bets.length} ${v(f)("outcomes").toLocaleLowerCase()}`,onClick:l[1]||(l[1]=e=>{return t=v(G),V.value={totalOdds:j.totalOdds,winboost:j.winBoost,outcomes:t.count,legs:[...t.bets.map(e=>{var t,l,a,o,r,n,s,i,d,u,c,p,m;return{eventName:null!=(l=null==(t=j.events.get(e.eventID))?void 0:t.displayName)?l:"",marketName:null!=(o=null==(a=j.markets.get(String(e.marketID)))?void 0:a.displayName)?o:"",outcomeName:null!=(n=null==(r=j.outcomes.get(String(e.outcomeID)))?void 0:r.displayName)?n:"",odds:I(null!=(i=null==(s=j.prices.get(String(e.outcomeID)))?void 0:s.priceDecimal)?i:0,null!=(u=null==(d=j.prices.get(String(e.outcomeID)))?void 0:d.numerator)?u:1,null!=(p=null==(c=j.prices.get(String(e.outcomeID)))?void 0:c.denominator)?p:1).toString(),preBoost:(null==(m=j.outcomes.get(e.outcomeID))?void 0:m.isBoosted)?H(e.outcomeID).toString():void 0}})]},void(L.value=!0);var t})},null,8,["label"]),p(o,{rootClass:"text-dark-900 mb-2 cursor-pointer rounded-lg w-full h-10 px-2",label:v(f)(e.betslipButtonLabel),size:"custom",onClick:l[2]||(l[2]=Z(e=>q(v(G)),["stop"]))},null,8,["label"])])],2)])):!v($)&&e.totalOdds&&v(K)?(u(),A(ke,{key:2,class:"my-1 overflow-hidden md:rounded-lg",onHeaderToggle:l[5]||(l[5]=e=>F.value=!v(F)),iconClass:"hidden",size:"custom"},{header:_(()=>[g("div",{class:D([[v(F)?"rounded-t-lg border-b":"rounded-t-lg  md:rounded-lg border-b md:border-none"],"flex justify-between w-full py-1 text-xs transition-all rounded-t-lg flex-nowrap dark:text-light-50 bg-light-50 dark:bg-dark-800 text-dark-800 dark:border-dark-600 whitespace-nowrap border-light-300"])},[g("div",rl,[g("div",nl,[g("div",sl,[g("div",il,[g("div",dl,[g("div",ul,b(v(f)("booking-code")),1),g("div",cl,"#"+b(e.package.bookingCode),1)]),g("div",{class:"flex items-center cursor-pointer",onClick:l[3]||(l[3]=Z(e=>
1(S.value=[],j.package.bets.forEach(e=>{var t,l,a,o,r,n;const s={outcomeId:String(e.outcomeID),eventId:e.eventID,marketId:String(e.marketID),selected:!0,value:Number(I(null!=(l=null==(t=j.prices.get(String(e.outcomeID)))?void 0:t.priceDecimal)?l:0,null!=(o=null==(a=j.prices.get(String(e.outcomeID)))?void 0:a.numerator)?o:1,null!=(n=null==(r=j.prices.get(String(e.outcomeID)))?void 0:r.denominator)?n:1))};S.value.push(s)}),void(E.value=!0)),["stop"]))},[p(a,{path:v(X),class:"w-6 h-6 ml-1 cursor-pointer fill-dark-800 dark:fill-light-50"},null,8,["path"])])]),g("div",pl,[g("div",null,[g("span",ml,b(v(f)("outcomes"))+":",1),g("strong",null,b(v(G).bets.length),1)])]),g("div",gl,[g("div",bl,[g("span",vl,b(v(f)("odds"))+":",1),e.totalOdds?(u(),c("strong",fl,b(e.totalOdds),1)):(u(),c("div",xl,[p(a,{path:v(Y),class:"w-4 h-4 animate-spin fill-primary-600"},null,8,["path"])]))])]),g("div",kl,[p(a,{path:v(ee),class:"w-5 h-5 mr-1 cursor-pointer fill-primary-600"},null,8,["path"]),g("span",hl,b(v(f)("bets-taken")),1),g("strong",null,b(e.package.count),1)]),g("div",wl,[p(a,{path:"betwayWinBoost",class:"w-5 h-5 mr-1 cursor-pointer fill-primary-600"}),g("span",yl,b(v(f)("win-boost"))+":",1),g("strong",null,b(e.winBoost)+"%",1)])]),g("div",Il,[p(o,{onClick:l[4]||(l[4]=Z(e=>q(v(G)),["stop"])),disabled:v(z),loading:v(z),variant:"primary",class:"h-7 md:h-8 w-34",size:"large",label:v(f)("add-to-betslip")},null,8,["disabled","loading","label"])])])]),g("div",Cl,[p(a,{class:D(["z-10 w-6 h-6 fill-dark-800  dark:fill-light-50 transition-all",!v(F)&&"rotate-180"]),path:v(te)},null,8,["class","path"])])],2)]),default:_(()=>[v(F)?(u(),c("div",Dl,[(u(!0),c(h,null,O(v(G).bets,(t,l)=>{var o,n,s,i,d,m,k,y,C,D,j,_,B,S,N,E,A,O,T,M,P,z;return u(),c("div",{key:`${l}-${t.outcomeID}`,class:"flex flex-row flex-wrap justify-between flex-shrink-0 w-full px-1 m-1 rounded bg-light-200 dark:bg-dark-700"},[v(G).bets?(u(),c(h,{key:0},[g("div",jl,[g("div",_l,[p(r,{width:18,height:18,provider:"kentico",src:"/medialibraries/content.gmgamingsystems.com/Synapse/icons/"+(null==(o=e.events.get(t.eventID))?void 0:o.sportId)+".png",alt:null==(n=e.events.get(t.eventID))?void 0:n.sportId},null,8,["src","alt"])]),g("div",Bl,[g("div",Sl,[g("span",null,b(null==(s=e.events.get(t.eventID))?void 0:s.displayName),1)]),g("div",Nl,[g("span",null," - "+b(v(f)(null!=(d=null==(i=e.events.get(t.eventID))?void 0:i.region)?d:"Region Not Found"))+", "+b(v(f)(null!=(k=null==(m=e.events.get(t.eventID))?void 0:m.league)?k:"League Not Found")),1)])])]),g("div",El,[g("div",Al,[g("p",Ol,b(null==(y=e.markets.get(t.marketID))?void 0:y.displayName),1),g("p",Tl,b(null==(C=e.outcomes.get(t.outcomeID))?void 0:C.displayName),1),(null==(D=e.outcomes.get(t.outcomeID))?void 0:D.isBoosted)?(u(),c(h,{key:0},[g("p",Ml,b(H(t.outcomeID)),1),p(a,{path:v(w),class:"w-4 h-4 mt-1 fill-warning-600"},null,8,["path"])],64)):x("",!0),g("p",Pl,b(v(I)(null!=(_=null==(j=e.prices.get(String(t.outcomeID)))?void 0:j.priceDecimal)?_:0,null!=(S=null==(B=e.prices.get(String(t.outcomeID)))?void 0:B.numerator)?S:1,null!=(E=null==(N=e.prices.get(String(t.outcomeID)))?void 0:N.denominator)?E:1)),1)])]),g("div",zl,[g("div",$l,[g("div",Fl,[g("p",Ll,b(v(f)(null!=(O=null==(A=e.events.get(t.eventID))?void 0:A.region)?O:"Region Not Found"))+", "+b(v(f)(null!=(M=null==(T=e.events.get(t.eventID))?void 0:T.league)?M:"League Not Found")),1)])]),g("div",Vl,[g("p",Wl,b(null==(P=e.markets.get(t.marketID))?void 0:P.displayName)+" "+b(null==(z=e.outcomes.get(t.outcomeID))?void 0:z.displayName),1)])])],64)):x("",!0)])}),128))])):x("",!0)]),_:1})):x("",!0),v($)||e.forceSmallScreenDesigns?x("",!0):(u(),c("div",Rl,[g("div",ql,[p(a,{path:v(ee),class:"w-5 h-5 mr-1 cursor-pointer fill-primary-600"},null,8,["path"]),g("span",Hl,b(v(f)("bets-taken")),1),g("strong",null,b(e.package.count),1)]),g("div",Ul,[p(a,{path:"betwayWinBoost",class:"w-4 h-4 mr-1 cursor-pointer fill-primary-600"}),g("span",Gl,b(v(f)("win-boost"))+":",1),g("strong",null,b(e.winBoost)+"%",1)]),g("div",Kl,[p(o,{onClick:l[6]||(l[6]=e=>q(v(G))),disabled:v(z),loading:v(z),variant:"primary",class:"block w-full h-8 text-xs md:h-9 px-0.5",size:"large",label:v(f)("add-to-betslip")},null,8,["disabled","loading","label"])])])),v(V)?(u(),A(Ot,{key:4,active:v(L),onSetActive:l[7]||(l[7]=e=>L.value=e),onAddToBetslip:l[8]||(l[8]=e=>q(v(G))),"booking-code":v(G).bookingCode,payload:v(V)},null,8,["active","booking-code","payload"])):x("",!0)],64)}}}),Yl={class:"'rounded-t-lg md:rounded-lg border-none mb-1 flex flex-nowrap justify-between w-full py-1 text-xs dar
1k:text-light-50 transition-all bg-light-50 dark:bg-dark-800 text-dark-800 whitespace-nowrap dark:border-dark-600 border-light-300"},Zl={class:"-mb-2 -mt-2 flex flex-wrap justify-between w-full py-1 text-xs dark:text-light-50 transition-all text-dark-800 whitespace-nowrap"},Ql={class:"flex justify-between"},Xl={class:"flex flex-wrap"},ea={class:"flex gap-1 mb-1 -mt-1 justify-start items-center md:hidden w-full h-10 bg-light-50 rounded-b-lg p-1 dark:bg-dark-800"},ta={class:"relative top-0 w-full h-fit -translate-y-2 dark:bg-dark-700 flex flex-col"},la={class:"flex flex-row justify-between mx-2 mt-2 mb-3 min-h-[28px]"},aa={key:0,class:"flex justify-center items-center dark:border-dark-500"},oa={class:"flex w-full flex-row justify-between border-t bg-light-50 dark:bg-dark-800 dark:border-none"},ra={class:"flex w-full items-center ml-2 gap-2"},na={class:"flex w-full flex-row justify-between dark:bg-dark-800"},sa={class:D(["flex justify-between mb-1 px-2 pt-2 rounded-b-xl bg-light-50 dark:bg-dark-700 dark:border-dark-500 translate-y-2 pb-0 gap-2"])},ia=d({__name:"BookABetLoading",props:{loaderSize:{},forceSmallScreenDesigns:{type:Boolean},fixtureDisplayCount:{},bookABetAditionalInfo:{type:Boolean},hasBetsTaken:{type:Boolean,default:!0}},setup:e=>(t,l)=>(u(),c(h,null,[v($)||e.forceSmallScreenDesigns?x("",!0):(u(!0),c(h,{key:0},O(Array.from({length:12}).keys(),e=>(u(),c("div",{class:"flex",key:`transaction-loader-${e}`},[g("div",Yl,[g("div",Zl,[g("div",Ql,[g("div",Xl,[p(L,{class:"flex w-[100px] md:w-[185px] items-center px-2 m-1 rounded bg-light-200 dark:bg-dark-700 h-8"}),p(L,{class:"flex items-center px-1 my-1 py-1 rounded bg-light-200 h-8 dark:bg-dark-700 w-[80px]"}),p(L,{class:"flex flex-wrap items-center ml-1 my-1 p-1 rounded h-8 bg-light-200 dark:bg-dark-700 w-[105px]"}),p(L,{class:"flex items-center my-1 ml-1 px-2 rounded h-8 bg-light-200 dark:bg-dark-700 w-32"}),p(L,{class:"hidden md:flex items-center my-1 ml-1 px-2 rounded h-8 bg-light-200 dark:bg-dark-700 w-[130px]"}),p(L,{class:"hidden md:flex items-center my-1 ml-1 px-2 rounded h-8 bg-light-200 dark:bg-dark-700 w-[130px]"})])])]),p(L,{class:"flex flex-nowrap justify-end items-center px-2 mr-1 h-8 w-8 rounded bg-light-200 dark:bg-dark-700"})]),g("div",ea,[p(L,{class:"flex px-2 py-1 my-2 rounded h-8 bg-light-200 w-32 text-xs dark:bg-dark-700"}),p(L,{class:"flex px-2 py-1 my-2 rounded h-8 bg-light-200 w-32 text-xs dark:bg-dark-700"})])]))),128)),v($)||e.forceSmallScreenDesigns?(u(!0),c(h,{key:1},O(Array.from({length:6}).keys(),t=>{var l;return u(),c("div",{key:`transaction-loader-${t}`,class:"flex justify-center items-center xl:pr-2"},[g("div",{class:D(["flex-col flex py-1 pt-2 mt-1 mb-1 bg-light-50 dark:bg-dark-800 text-light-50 rounded-2xl place-content-between overflow-hidden relative",e.loaderSize?e.loaderSize:"w-full h-[272px]"])},[g("div",ta,[g("div",la,[(u(!0),c(h,null,O(e.hasBetsTaken?Array.from({length:2}).keys():Array.from({length:1}).keys(),e=>(u(),A(L,{key:`transaction-loader-${e}`,class:"flex flex-row h-5 w-3/12 ml-2 text-dark-600 dark:text-light-50 bg-light-200 dark:bg-dark-600 rounded-md font-bold text-xs px-3 justify-between"}))),128))]),e.bookABetAditionalInfo?x("",!0):(u(),c("div",aa,[p(L,{class:"h-5 mx-2 mb-2 w-full rounded-md bg-light-200 dark:text-light-50 dark:bg-dark-600"})]))]),(u(!0),c(h,null,O(Array.from({length:null!=(l=e.fixtureDisplayCount)?l:2}).keys(),e=>(u(),c("div",{key:`transaction-loader-${e}`,class:"flex flex-row flex-wrap justify-between flex-shrink-0 border-light-300 bg-light-50 dark:bg-dark-800 dark:border-none overflow-hidden flex-1"},[g("div",oa,[g("div",ra,[p(L,{class:"w-2 h-2 rounded-full text-dark-600 dark:text-light-50 bg-light-200 dark:bg-dark-600"}),p(L,{class:"flex flex-row h-3 w-2/5 mt-1 pb-2 text-dark-600 dark:text-light-50 bg-light-200 dark:bg-dark-600 rounded-md font-bold text-xs"})]),p(L,{class:"flex flex-row h-3 w-[10%] mt-1 mr-1 pb-2 text-dark-600 dark:text-light-50 bg-light-200 dark:bg-dark-600 rounded-md font-bold text-xs"})]),g("div",na,[p(L,{class:"flex flex-row ml-6 h-3 w-6/12 mt-1 pt-1 text-dark-600 dark:text-light-50 bg-light-200 dark:bg-dark-600 rounded-md font-bold text-xs px-3 justify-between"})])]))),128)),g("div",sa,[p(L,{class:"flex flex-row h-10 w-full bg-light-200 dark:text-light-50 dark:bg-dark-600 text-dark-600 rounded-md text-sm px-2 justify-between mb-2"}),p(L,{class:"flex flex-row h-10 w-full bg-light-200 dark:text-light-50 dark:bg-dark-600 text-dark-600 rounded-md text-sm px-2 justify-between"})])],2)])}),128)):x("",!0)],64))}),da={class:"flex items-center justify-center flex-grow-0 overflow-hidden border rounded border-light-400 dark:border-dark-500 bg-light-50 dark:bg-dark-800"},ua=d({__name:"Pagination",props:{pageNumber:{},visualNumber:{},pageCount:{},pageSize:{}},emits:["page-change"],setup(e,{emit:t}){const l=t,a=K`bg-light-50 dark:bg-dark-800 h-10 w-10 flex items-center justify-center cursor-pointer hover:bg-light-500 transition-all border-r border-x-light-400 dark:border-x-dark-500 `,o=K`cursor-default opacity-40 hover:bg-[transparent] pointer-events-none`,r=K`!bg-identity text-light-50 font-bold pointer-events-none`,n=e=>{l("page-change",e)};return(t,l)=>{const s=m;return u(),c("div",da,[g("div",{class:D([a,e.pageNumber<=1&&o]),onClick:l[0]||(l[0]=t=>n(e.pageNumber-1))},[p(s,{path:v(H)},null,8,["path"])],2),e.visualNumber-2>=1?(u(),c("div",{key:0,class:D([a]),onClick:l[1]||(l[1]=t=>n(e.pageNumber-2))},b(e.visualNumber-2),3)):x("",!0),e.visualNumber-1>0?(u(),c("div",{key:1,class:D([a]),onClick:l[2]||(l[2]=t=>n(e.pageNumber-1))},b(e.visualNumber-1),3)):x("",!0),g("div",{class:D([a,r])},b(e.visualNumber),3),e.pageCount>=e.visualNumber+1?(u(),c("div",{key:2,class:D([a]),onClick:l[3]||(l[3]=t=>n(e.pageNumber+1))},b(e.visualNumber+1),3)):x("",!0),e.pageCount>=e.visualNumber+2?(u(),c("div",{key:3,class:D([a]),onClick:l[4]||(l[4]=t=>n(e.pageNumber+2))},b(e.visualNumber+2),3)):x("",!0),g("div",{class:D([a,e.pageNumber+1>=e.pageCount&&o]),style:{border:"0"},onClick:l[5]||(l[5]=t=>n(e.pageNumber+1))},[p(s,{path:v(U)},null,8,["path"])],2)])}}}),ca={key:0,class:"relative flex flex-col mb-2"},pa={class:D(["flex items-center justify-between w-full h-8 p-3 text-xs font-bold rounded-t-lg md:text-base bg-dark-600 dark:bg-dark-700"])},ma={class:"flex gap-1 items-center justify-center"},ga={class:"text-light-50 text-sm font-[500]"},ba={class:"hidden md:block"},va={class:"gap-2 px-1 rounded-b-lg bg-light-400 dark:bg-dark-800 dark:border dark:border-dark-800 scrollbar-hidden"},fa=d({__name:"WidgetContainer",props:{name:{},id:{},iconLeftPath:{},iconRightPath:{}},emits:["iconRightAction"],setup(e,{emit:t}
1){const l=t,a=le(e.id,{default:()=>!1}),o=()=>{a.value=!0};return(t,r)=>{const n=m;return v(a)?x("",!0):(u(),c("div",ca,[g("div",pa,[g("div",ma,[e.iconLeftPath?(u(),A(m,{key:0,path:e.iconLeftPath,"path-fill":"light-50","path-class":"fill-light-50 h-6 w-6"},null,8,["path"])):x("",!0),g("label",ga,b(e.name),1)]),g("div",ba,[e.iconRightPath?(u(),A(n,{key:0,path:e.iconRightPath,class:"w-6 h-6 fill-light-50",onClick:r[0]||(r[0]=e=>l("iconRightAction"))},null,8,["path"])):x("",!0)])]),g("div",va,[e.iconRightPath?(u(),c("div",{key:0,class:"absolute top-0 right-0 flex items-center justify-center w-8 h-8 cursor-pointer md:hidden text-light-50",onClick:o},[p(n,{path:v(ae),class:"h-6 w-6 fill-[currentColor]"},null,8,["path"])])):x("",!0),oe(t.$slots,"default")])]))}}}),xa={key:0,class:"relative mb-3"},ka={class:"relative flex justify-between w-full mt-1 mb-5 text-xs h-fit"},ha={class:"flex flex-row items-center justify-start"},wa={class:"flex items-center justify-center"},ya={key:0,class:"flex items-center w-8 h-8 cursor-pointer"},Ia={key:1,class:"flex items-center w-8 h-8 cursor-pointer"},Ca={class:"items-center hidden md:relative md:flex"},Da={key:0},ja={key:1,class:"grid items-center justify-center mb-5"},_a={key:2},Ba={key:1,class:"flex items-center justify-center w-full p-2 text-center bg-light-200 dark:bg-dark-900"},Sa=d({__name:"BookABet",setup(e){const t=M(),l=P();re();const a=N(!1),o=N(!1),r=N(!1),n=N(!1),d=N(!1),k=N(!1),w=N(0),I=N([]),C=N(!1),D=N(new Map),B=N(new Map),S=N(new Map),E=N(new Map),T=N(new Map),z=N([]),L=N(""),V=N(""),R=N(new Map),q=N([{translation:f("odds"),value:"odds"},{translation:f("win-boost"),value:"winboost"},{translation:f("outcomes"),value:"outcomes"},{translation:f("bets-taken"),value:"bets-taken"}]),H=N(q.value[3].value),U=N(0),G=N(0),K=N(0),Q=y(()=>U.value),X=N(!1);ne(()=>{X.value=!0});const{isLoading:ee}=W({queryKey:["booking-codes",Q],queryFn:()=>J({url:`/Widget/BookingCodes?skip=${Q.value}&limit=${$?6:12}&source={source}`,type:"apic",options:{method:"GET",headers:{}}}),enabled:y(()=>X.value),onSuccess:e=>s(null,null,function*(){if(G.value+=e.data.length,K.value=Math.floor(e.total/($?6:12)),z.value=[...e.data],!e.data.length)return void(k.value=!0);const l=[];yield z.value.forEach(e=>s(null,null,function*(){var a,o;R.value.set(e.bookingCode,e.bets.map(e=>String(e.outcomeID))),I.value=null!=(a=R.value.get(e.bookingCode))?a:[];const r=J({url:`/FeedsOutcome/emop/?CountryCode=${null==(o=t.getCountryConfig)?void 0:o.countryIsoTwo}&CultureCode=${t.locale}`+(()=>{let e="";for(let t=0;t<I.value.length;t++)e+="&OutcomeIds="+encodeURIComponent(String(I.value[t]));return e})(),type:"sports",options:{method:"GET",headers:{}}}).then(e=>{e.events.length&&(e.events.forEach(e=>{D.value.set(e.eventId,e)}),e.markets.forEach(e=>{B.value.set(String(e.marketId),e)}),e.outcomes.forEach(e=>{S.value.set(String(e.outcomeId),e)}),e.prices.forEach(e=>{E.value.set(String(e.outcomeId),e)}))}).catch(e=>{k.value=!0,C.value=!1});l.push(r)})),yield Promise.all(l),w.value+=1,G.value=e.data.length,n.value=!1,z.value.forEach(e=>{T.value.set(e.bookingCode,Number(F(e.bets.map(e=>{var t,l,a,o;return{priceNumerator:null!=(l=null==(t=E.value.get(e.outcomeID))?void 0:t.numerator)?l:1,priceDenominator:null!=(o=null==(a=E.value.get(e.outcomeID))?void 0:a.denominator)?o:1}})).toFixed(2)))}),ae()})}),{mutate:te}=se({mutationFn:()=>{var e,l;return J({url:"/Betting/FindBookABet",type:"betting",options:{method:"POST",headers:{}},data:{countryCode:null==(e=t.getCountryConfig)?void 0:e.countryIsoTwo,bookingCode:V.value,cultureCode:null!=(l=t.locale)?l:"en-US"}})},onSuccess:e=>{if(!e.selections.length)return r.value=!1;l.selection=[],l.events=new Map,l.markets=new Map,l.outcomes=new Map,l.prices=new Map,l.scores=new Map;const t=e.selections.map(e=>({event:e.sportEvent,market:e.market,outcome:e.outcome,price:e.price,score:null}));l.handleMultipleSelections(t),$&&e.selections.length&&(l.open=!0),o.value=!1},onError:e=>{d.value=!0,o.value=!1}}),le=()=>{a.value=!a.value,ae()},ae=()=>{"odds"===H.value&&(z.value=z.value.sort((e,t)=>{const l=F(e.bets.map(e=>{var t,l,a,o;return{priceNumerator:null!=(l=null==(t=E.value.get(e.outcomeID))?void 0:t.numerator)?l:1,priceDenominator:null!=(o=null==(a=E.value.get(e.outcomeID))?void 0:a.denominator)?o:1}}
1)),o=F(t.bets.map(e=>{var t,l,a,o;return{priceNumerator:null!=(l=null==(t=E.value.get(e.outcomeID))?void 0:t.numerator)?l:1,priceDenominator:null!=(o=null==(a=E.value.get(e.outcomeID))?void 0:a.denominator)?o:1}}));return a.value?l-o:o-l})),"bets-taken"===H.value&&(z.value=z.value.sort((e,t)=>{const l=e.count,o=t.count;return a.value?l-o:o-l})),"outcomes"===H.value&&(z.value=z.value.sort((e,t)=>{const l=e.bets.length,o=t.bets.length;return a.value?l-o:o-l})),"winboost"===H.value&&(z.value=z.value.sort((e,t)=>{var l,o;const r=null!=(l=oe(e.bets))?l:0,n=null!=(o=oe(t.bets))?o:0;return a.value?r-n:n-r})),C.value=!0},oe=e=>{var l,a;const o=null==(l=t.config)?void 0:l.winBoostConfig;if(!o||!o.WinBoostOffers)return null;const r=ge(e).length,n=0===r?0:o.WinBoostOffers.findLastIndex(({Events:e})=>e<=r),s=-1!==n?o.WinBoostOffers[n]:null;return null!=(a=null==s?void 0:s.WinBoostValue)?a:null},ge=e=>{var l;const a=null==(l=t.config)?void 0:l.winBoostConfig;if(!a)return[];const{MinOddsPerEvent:o,DisableForLiveInPlay:r,ExcludedMarkets:n,ExcludedSports:s}=a;return e.filter(e=>{var t,l,a,i,d,u,c,p,m;return!((null==(l=null==(t=E.value)?void 0:t.get(e.outcomeID))?void 0:l.priceDecimal)&&(null==(a=E.value.get(e.outcomeID))?void 0:a.priceDecimal)<o)&&((!r||!(null==(d=null==(i=D.value)?void 0:i.get(e.eventID))?void 0:d.eventIsLive))&&(!(null==n?void 0:n.includes(null==(c=null==(u=B.value)?void 0:u.get(e.marketID))?void 0:c.marketTypeCName))&&!(null==s?void 0:s.includes(null==(m=null==(p=D.value)?void 0:p.get(e.eventID))?void 0:m.sportId))))})},be=()=>{d.value=!1,o.value=!0,r.value=!0;const{validatedCode:e,isValid:t}=Ie(L.value);!1!==t&&(V.value=e,L.value=e);try{te()}catch(l){r.value=!1,o.value=!1}setTimeout(()=>{r.value=!0},5e3)},ve=()=>{d.value=!1};return(e,l)=>{const r=i,s=m;return u(),A(he,{title:v(f)("booking-codes-head")},{default:_(()=>[v(t).hasFeature("IsNewBookingCodeEnabled")?(u(),c("div",xa,[p(vt,{label:"recommended-bets"})])):x("",!0),p(fa,{id:"book-a-bet",name:v(f)("all-booking-codes")},{default:_(()=>[g("div",ka,[g("div",ha,[g("div",wa,[g("form",{onSubmit:l[2]||(l[2]=Z(e=>be(),["prevent"]))},[p(r,{class:"m-1 rounded-lg",id:"book-a-bet-search",modelValue:v(L),"onUpdate:modelValue":l[0]||(l[0]=e=>de(L)?L.value=e:null),iconPos:"right",onBlur:ve,labelClass:"!text-xs ",label:v(f)("search"),"icon-class":[v(o)?"animate-spin":"",v(d)?"text-error-800":""],icon:v(o)?v(Y):v(ie),error:v(d)?v(f)("booking-code-not-found"):null,"unwrap-error":!0,"icon-button":!0,onIconClicked:l[1]||(l[1]=e=>be()),"no-floating-label":""},null,8,["modelValue","label","icon-class","icon","error"])],32)]),p(we,{class:"m-1 min-w-[130px] flex items-center justify-center",onChange:l[3]||(l[3]=e=>ae()),disabled:v(ee),label:"Sort By",modelValue:v(H),"onUpdate:modelValue":l[4]||(l[4]=e=>de(H)?H.value=e:null),noFloatingLabel:!0,size:"large",options:v(q).map(e=>({name:e.translation,value:e.value}))},null,8,["disabled","modelValue","options"]),g("div",{onClick:le,class:"m-2"},[v(a)?x("",!0):(u(),c("div",ya,[p(s,{class:"flex w-8 h-8 p-1 dark:fill-light-50",path:v(ue)},null,8,["path"])])),v(a)?(u(),c("div",Ia,[p(s,{class:"flex w-8 h-8 p-1 dark:fill-light-50",path:v(ce)},null,8,["path"])])):x("",!0)])]),g("div",Ca,[p(j,{position:"bottom",type:"click",tooltip:v(f)("odds-may-differ")},{default:_(()=>[p(s,{path:v(pe)},null,8,["path"])]),_:1},8,["tooltip"])])]),v(C)?v(k)&&!v(C)||!v(D).size?(u(),c("div",ja,b(v(f)("no-booking-code-packages")),1)):v(C)?(u(),c("div",_a,[(u(!0),c(h,null,O(v(z),(e,t)=>(u(),A(Jl,{events:v(D),markets:v(B),winBoost:oe(e.bets),totalOdds:v(T).get(e.bookingCode),outcomes:v(S),prices:v(E),package:e,key:`data.bookingCode-${t}`,initialState:!1,"fixture-display-count":3},null,8,["events","markets","winBoost","totalOdds","outcomes","prices","package"]))),128))])):x("",!0):(u(),c("div",Da,[p(ia,{fixtureDisplayCount:3})]))]),_:1},8,["name"]),v(z).length&&v(C)&&v(D).size?(u(),c("div",Ba,[p(ua,{pageNumber:v(w),pageCount:v(K),pageSize:1,onPageChange:l[5]||(l[5]=e=>{var t;t=e,C.value=!1,w.value=Number(t-1),n.value=!0,U.value=$?Math.max(6*(t-1),0):Math.max(12*(t-1),0),$&&me()}),visualNumber:Number(v(w))},null,8,["pageNumber","pageCount","visualNumber"])])):x("",!0)]),_:1},8,["title"])}}}),Na=d({__name:"book-a-bet-results",setup:e=>(e,t)=>
1(u(),A(Sa))}),Ea=Object.freeze(Object.defineProperty({__proto__:null,default:Na},Symbol.toStringTag,{value:"Module"}));export{vt as _,Ea as b};

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.