1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[952],{566:(e,l,t)=>{t.d(l,{A:()=>o});var n=t(3591),r=t(1953);let o=(0,t(18543).memo)(e=>{let{t:l}=(0,r.B)();return(0,n.jsxs)("label",{className:"inline-flex items-center cursor-pointer relative",children:[(0,n.jsx)("input",{type:"checkbox",className:"sr-only peer",checked:e.checked||!1,onChange:e.onChange,disabled:e.disabled}),(0,n.jsxs)("div",{className:"relative bg-bg_color_primary border-[0.5px] font-lato border-border_color_primary1 rounded-full peer-checked:bg-bg_color_switchAfterCheck ".concat((null==e?void 0:e.height)?"h-[".concat(null==e?void 0:e.height,"px]"):"h-7"," ").concat((null==e?void 0:e.width)?"w-[".concat(null==e?void 0:e.width,"px]"):"w-14"),children:[(null==e?void 0:e.checked)?(0,n.jsx)("span",{className:"absolute top-1/2 left-[5px] transform -translate-y-1/2 font-bold text-text_color_primary2 ".concat((null==e?void 0:e.labelHeight)?" text-[".concat(e.labelHeight,"px]"):"text-[10px]"),children:l("ON")}):(0,n.jsx)("span",{className:"absolute top-1/2 right-[5px] transform -translate-y-1/2 text-[10px] font-bold text-text_color_primary1 ".concat((null==e?void 0:e.labelHeight)?"text-[".concat(e.labelHeight,"px]"):"text-[10px]"),children:l("OFF")}),(0,n.jsx)("div",{className:" bg-bg_SwitchBtnRound h-full border-[0.5px] border-border_color_primary transition-all ease-in-out aspect-square absolute ".concat(e.checked?"".concat(e.onBtnPosition?"left-".concat(e.onBtnPosition):"left-7"):"left-0"," rounded-full ")})]})]})})},21383:(e,l,t)=>{t.d(l,{A:()=>a});var n=t(3591),r=t(18543);let o=(0,r.forwardRef)((e,l)=>{var t,r,o,a;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("input",{htmlFor:null==e?void 0:e.htmlFor,...e,type:(null==e?void 0:e.type)?null==e?void 0:e.type:"text",id:null==e?void 0:e.id,className:"block w-full focus:outline-none ".concat(null==e?void 0:e.className),disabled:null!=e&&!!e.disabled&&(null==e?void 0:e.disabled),style:e.style,placeholder:null==e?void 0:e.placeholder,value:null==e?void 0:e.value,onChange:null==e?void 0:e.onChange,onKeyDown:null==e?void 0:e.onKeyDown,onInput:null==e?void 0:e.onInput,onFocus:null==e?void 0:e.onFocus,onWheel:null==e?void 0:e.onWheel,autoComplete:null!=(a=null==e?void 0:e.autoComplete)?a:"off",inputMode:null==e?void 0:e.inputMode,onTouchStart:null==e?void 0:e.onTouchStart,max:null==e||null==(t=e.validations)?void 0:t.max,min:null==e||null==(r=e.validations)?void 0:r.min,pattern:null==e||null==(o=e.validations)?void 0:o.pattern,ref:l,required:null==e?void 0:e.required,onPaste:null==e?void 0:e.onPaste,onPasteCapture:null==e?void 0:e.onPasteCapture,minLength:null==e?void 0:e.minLength,maxLength:null==e?void 0:e.maxLength})})});o.displayName="InputBox";let a=(0,r.memo)(o)},22438:(e,l,t)=>{t.d(l,{A:()=>c});var n=t(3591),r=t(70858),o=t(75720),a=t(18543),i=t(36820),s=t(59662),d=t(95969);let c=(0,a.memo)(e=>{let{children:l,mainClassName:t,loader:c,setLoader:u,stakesInput:m,setEditStakes:p}=e,x=(0,s.d4)(e=>e.authentication.isLoggedIn),b=(0,s.d4)(e=>e.authentication.decodedToken),{showToast:v}=(0,r.d)(),f=(0,s.wA)(),g=(0,a.useCallback)(async()=>{try{if(m.some(e=>e<=0))return void v({message:"All stakes should be greater than 0",type:"error"});if(u(!0),x){let e=null==b?void 0:b.memberCode;(await (0,i.q)({endPoint:"/account/".concat(e,"/settings/mobile-stakes"),method:"post",payload:{settings:m}})).data.success&&(v({message:"Stakes Updated successfully",type:"success"}),f((0,d.qk)(m)),localStorage.setItem("normalStakes",JSON.stringify(m)),p(!1))}else v({message:"Please login to update stakes",type:"error"})}catch(e){v({message:"Error while updating stakes",type:"error"})}finally{u(!1)}},[m,x,null==b?void 0:b.memberCode]);return(0,n.jsx)(o.A,{className:t,disabled:c,onClick:g,enableAudio:!0,type:"button",children:l})})},37561:(e,l,t)=>{t.d(l,{A:()=>r});var n=t(3591);let r=(0,t(18543).memo)(e=>{var l,t,r,o;return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:null!=(l=null==e?void 0:e.width)?l:"18",height:null!=(t=null==e?void 0:e.height)?t:"18",viewBox:"0 0 18 18",fill:"none",children:[(0,n.jsx)("path",{d:"M8.99997 17.4897C8.36269 17.4897 7.84631 16.9734 7.84631 16.3361V1.66342C7.84631 1.02614 8.36269 0.509766 8.99997 0.509766C9.63725 0.509766 10.1536 1.02614 10.1536 1.66342V16.3361C10.1536 16.9734 9.63725 17.4897 8.99997 17.4897Z",fill:null!=(r=null==e?void 0:e.fill)?r:"#fff"}
1),(0,n.jsx)("path",{d:"M16.3363 10.1535H1.66367C1.02639 10.1535 0.51001 9.63713 0.51001 8.99985C0.51001 8.36257 1.02639 7.84619 1.66367 7.84619H16.3363C16.9736 7.84619 17.49 8.36257 17.49 8.99985C17.49 9.63713 16.9736 10.1535 16.3363 10.1535Z",fill:null!=(o=null==e?void 0:e.fill)?o:"#fff"})]})})},47153:(e,l,t)=>{t.d(l,{F:()=>m});var n=t(18543),r=t(59662),o=t(16032),a=t(70858),i=t(1788),s=t(36820),d=t(20432),c=t(71266),u=t(25696);let m=e=>{let{onSuccess:l,onProgress:t,onFinish:m,onBetPlaceCompletion:p}=e,x=(0,r.d4)(e=>e.authentication.isLoggedIn),b=(0,r.d4)(e=>e.authentication.decodedToken),{handleLoginRegisterAccToTab:v}=(0,i.J)(),[f,g]=(0,n.useState)(!1),h=(0,r.wA)(),y=(0,r.d4)(e=>e.newBetSlipStates.betSlipData),_=(0,r.d4)(e=>e.newBetSlipStates.betSlipPrice),j=(0,r.d4)(e=>e.newBetSlipStates.betSlipStake),k=(0,r.d4)(e=>e.newBetSlipStates.betSlipLine),w=(0,r.d4)(e=>{var l;return null==(l=e.globalCommonStates)?void 0:l.countryDetails}),{showToast:C}=(0,a.d)(),[S,N]=(0,n.useState)(""),B=(0,r.d4)(e=>e.newBetSlipStates.oneClickBetting.selectedStakeIndex),A=(0,r.d4)(e=>e.newBetSlipStates.oneClickBetting.currentStakes),I=(0,n.useMemo)(()=>A[B]||0,[A,B]);return{PlaceBet:(0,n.useCallback)(async(e,n)=>{let r=null!=e&&e;if(!x)return void v("login");if(f)return;let a="".concat(null==y?void 0:y.selectionId,"-").concat(null==y?void 0:y.marketId,"-").concat(null==y?void 0:y.runner,"-").concat(Date.now());try{var i,S,B,A,M,F,P,D,L,O,T,E,V,H,q,R,Z,G;g(!0),N("");let e=r?Number(I):null!=n&&Number(n)>0?Number(n):Number(j),m={side:null==y?void 0:y.side,price:_?(null==y?void 0:y.isBookmakerOrMiniBookmaker)?(0,u._k)(Number(_)/100+1):Number(_):2,selectionId:null==y?void 0:y.selectionId,btype:null==y?void 0:y.btype,oddsType:null==y?void 0:y.oddsType,eventTypeId:null==y?void 0:y.eventTypeId,marketId:null==y?void 0:y.marketId,totalSize:e,betSlipRef:0,fromOneClick:+!!r,betDelay:null!=(S=null==y?void 0:y.betDelay)?S:0,line:null!=k?k:null,runner:null==y?void 0:y.runner},x={"x-user-id":null==b?void 0:b.memberCode,"x-app-version":"4.0.19.2","x-client":"mobile","x-client-id":"451012928.1605029998","x-client-info":"e883e9a15db99de2fdd0579c576a0693","x-log-timing":!0,"x-xid":"6b76ff17-70d2-b5fe-2373-08f62ee312af"};h((0,c.q9)(!0)),null==t||t(a);let v=await (0,s.q)({endPoint:"/exchange/order",method:"POST",payload:[m],additionalHeaders:x});if(null==p||p(v),v.success&&(null==v?void 0:v.status)===200&&(null==v||null==(i=v.data)?void 0:i.success))C({message:"Bet placed successfully",type:"success"}),(0,o.EF)((null==b?void 0:b.memberCode)||"",(null==v||null==(M=v.data)||null==(A=M.placed)||null==(B=A[0])?void 0:B.betId)||"",e.toString(),(null==w?void 0:w.currency)||""),h(d.Z4.util.invalidateTags(["OnBalanceChanges"])),N(""),null==l||l();else{console.error("response",v);let e="Something went wrong";if(null==v||null==(O=v.error)||null==(L=O.details)||null==(D=L.error)||null==(P=D[0])||null==(F=P[0])?void 0:F.description)e=v.error.details.error[0][0].description;else if((null==v||null==(T=v.error)?void 0:T.message)&&"object"==typeof v.error.message&&!Array.isArray(v.error.message)&&Array.isArray(null==(E=v.error.message)?void 0:E.status)&&v.error.message.status.length>0){let l=v.error.message.status;e="string"==typeof l[0]?l[0]:(null==(Z=l[0])?void 0:Z.description)||(null==(G=l[0])?void 0:G.message)||e}else"string"==typeof(null==v||null==(V=v.error)?void 0:V.message)?e=v.error.message:(null==v||null==(q=v.error)||null==(H=q.details)?void 0:H.message)?e="string"==typeof v.error.details.message?v.error.details.message:e:(null==v||null==(R=v.error)?void 0:R.code)&&(e="Error: ".concat(v.error.code));console.error("errorMessage",e),C({message:e,type:"error"}),N(e)}}catch(e){console.error("Place Bet Error",e),null==p||p(e),C({message:"Something went wrong",type:"error"}),N("Something went wrong")}finally{h((0,c.q9)(!1)),g(!1),null==m||m(a)}},[x,y,_,j,null==b?void 0:b.memberCode,k,w,t,I]),loader:f,errorMessage:S}
1}},47189:(e,l,t)=>{t.d(l,{g:()=>r}),t(3591),t(25696);var n=t(18543);let r=e=>{let{stakeValue:l,oddValue:t,isFancy:r,isLineMarket:o}=e;return{calculatedprofit:(0,n.useMemo)(()=>l<=0?0:r||o?l:l*t-l,[r,t,l,o]),calculatedLiability:(0,n.useMemo)(()=>null==l||l<=0?0:l,[l])}}},80952:(e,l,t)=>{t.d(l,{H:()=>D,A:()=>P});var n=t(3591),r=t(18543),o=t(59662),a=t(1953),i=t(71266),s=t(47153),d=t(47189),c=t(26396),u=t(79149),m=t(20432),p=t(1788),x=t(21383);let b=(0,r.memo)(e=>{var l,t,r;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:null!=(l=null==e?void 0:e.width)?l:"18",height:null!=(t=null==e?void 0:e.height)?t:"4",viewBox:"0 0 18 4",fill:"none",children:(0,n.jsx)("path",{d:"M16.3363 3.1535H1.66367C1.02639 3.1535 0.51001 2.63713 0.51001 1.99985C0.51001 1.36257 1.02639 0.846191 1.66367 0.846191H16.3363C16.9736 0.846191 17.49 1.36257 17.49 1.99985C17.49 2.63713 16.9736 3.1535 16.3363 3.1535Z",fill:null!=(r=null==e?void 0:e.fill)?r:"#fff"})})});var v=t(37561),f=t(75720);let g=[2,3,4,6,10,20,30,50,100,1e3],h=[.01,.02,.05,.1,.2,.5,1,2,5,10],y=[.01,.02,.05,.1,.2,.5,1,2,5,10],_=e=>{let{oddValue:l,setOddValue:t}=e;return(0,n.jsx)(f.A,{onClick:()=>{let e=Number(l);for(let l=0;l<g.length;l++)if(e<g[l]){t((e+y[l]).toFixed(2));break}},className:"overflow-hidden w-full h-full flex items-center justify-center bg-bg_color_betSlipOddIncDecrBtnsGrd text-xl font-normal text-center border border-border_color_primary4 border-l-0",enableAudio:!0,children:(0,n.jsx)(v.A,{fill:"var(--icon-color-secondary)"})})},j=e=>{let{oddValue:l,setOddValue:t}=e;return(0,n.jsx)(f.A,{onClick:()=>{let e=Number(l);for(let l=0;l<g.length;l++)if(e<g[l]){t((e-h[l]).toFixed(2));break}},className:"overflow-hidden w-full h-full flex items-center justify-center bg-bg_color_betSlipOddIncDecrBtnsGrd text-xl font-normal text-center border border-border_color_primary4 border-r-0",enableAudio:!0,children:(0,n.jsx)(b,{fill:"var(--icon-color-secondary)"})})};var k=t(25696);let w=(0,r.memo)(e=>{let{className:l,oddValue:t,setOddValue:r,isFancy:o,isMatchOdds:i}=e,{t:s}=(0,a.B)();return(0,n.jsxs)("div",{title:"Odds: ".concat(t),className:"".concat(l," flex flex-col gap-1"),children:[(0,n.jsx)("label",{htmlFor:"odd-input",className:"text-text_color_primary1 sm:text-xs text-[10px] font-normal",children:s(o?"ODDS(H-J)":"ODDS")}),(0,n.jsxs)("div",{className:(0,k.cn)("flex items-center justify-center bg-bg_color_input_bg rounded overflow-hidden",!i&&"border border-border_color_primary"),children:[i&&(0,n.jsx)(j,{oddValue:t,setOddValue:r}),(0,n.jsx)(x.A,{placeholder:s("Enter Odds"),type:"number",id:"odd-input","aria-label":"Odds input",inputMode:"numeric",value:t,onChange:e=>r(e.target.value),className:(0,k.cn)("text-sm w-full h-full py-2 text-center flex items-center justify-center text-text_color_primary1 bg-bg_color_input_bg ",i&&"border border-border_color_primary border-l-0 border-r-0"),validations:{pattern:"^[+-ed]+$"},disabled:o}),i&&(0,n.jsx)(_,{oddValue:t,setOddValue:r})]})]})}),C=(0,r.memo)(e=>{let{className:l,runs:t}=e;return(0,n.jsxs)("div",{title:"Runs: ".concat(t),className:"".concat(l," flex flex-col gap-1"),children:[(0,n.jsx)("span",{className:"text-text_color_primary1 sm:text-xs text-[10px] font-normal",children:"RUNS"}),(0,n.jsx)("span",{id:"runsInput",className:"text-sm h-full text-center rounded-[4px] py-2 flex items-center justify-center text-text_brand_primary border-oddInputColor bg-bg_color_input_bg focus:border-oddInputBorderActive active:border-oddInputBorderActive",children:t})]})});var S=t(52648);let N=(0,r.memo)(e=>{let{className:l,stake:t,setStake:o,maxBet:i,stakesClicked:s,maxMarket:d}=e,{t:c}=(0,a.B)();return(0,n.jsx)(r.Fragment,{children:(0,n.jsxs)("div",{title:"Max Mkt: ".concat(d.toString()),className:"".concat(l," flex flex-col gap-1"),children:[(0,n.jsxs)("div",{className:"text-text_color_primary1 sm:text-xs text-[10px] font-normal flex items-center justify-between gap-2",children:[(0,n.jsx)("div",{children:c("STAKE")}),(0,n.jsxs)("div",{className:"whitespace-nowrap overflow-hidden text-ellipsis inline-block",children:[c("Max mkt")," :"," ",(0,n.jsx)(u.A,{number:d,showCurrency:!1})]})]}),(0,n.jsx)(x.A,{id:"stakeInput",type:"number",value:t>0?t:"",inputMode:"numeric",onChange:e=>o(Number(e.target.value)),className:"text-md w-full h-full text-center focus:bg-bg_color_input_bg flex items-center justify-center border-[0.75px] text-text_color_primary1 border-border_color_primary placeholder:text-text_color_primary1 5 rounded-sm ".concat(0==t?" text-text_color_primary1 bg-transparent":" text-text_color_primary1 bg-bg_color_input_bg","\n focus:border-oddInputBorderActive active:border-oddInputBorderActive\n ").concat(s?(null==S||null==S.env?void 0:"light")==="dark"?"increaseStakesValueDark":"increaseStakesValue":""),placeholder:"Max bet: ".concat((0,k.r6)(i||0)),validations:{pattern:"d*"}})]})})});var B=t(22438);let A=(0,r.memo)(e=>{let{setStakesClicked:l,stake:t,setStake:i,onMinClick:s,onMaxClick:d,minBet:c,maxBet:u}=e,m=(0,o.d4)(e=>e.layout.stakesInput),[p,b]=(0,r.useState)(m),[v,g]=(0,r.useState)(!1),{t:h}=(0,a.B)(),y=(0,o.d4)(e=>e.authentication.isLoggedIn),[_,j]=(0,r.useState)(!1);return(0,n.jsxs)("div",{title:"Stakes",className:" w-full p-2.5 rounded-md border ".concat(" bg-bg_color_quaternary1 border-borderColorOfMarket"," "),children:[(0,n.jsx)("div",{className:" grid grid-cols-12 gap-[7px]",children:v?null==p?void 0:p.map((e,l)=>(0,n.jsx)(x.A,{value:e||"",type:"number",onChange:e=>{b(null==p?void 0:p.map((t,n)=>n===l?Number(e.target.value):t))},inputMode:"numeric",className:"col-span-4 overflow-hidden w-full text-[12px] font-semibold rounded-[4px] py-1.5 bg-bg_color_primary text-text_brand_primary text-center border focus border-border_color_brand_primary ".concat(e?" border-borderColorOfMarket":" border-secondary"),placeholder:"Enter Stake"},l)):null==m?void 0:m.map((e,t)=>(0,n.jsx)(f.A,{onClick:()=>{l(!0),i(Number(e));let t=setTimeout(()=>{l(!1)},200);return()=>clearTimeout(t)},className:"col-span-4 w-full active:scale-95 md:active:scale-[98%] text-[12px] font-semibold rounded-[4px] text-text_color_primary2 text-center py-1.5 ".concat("bg-bg_text_brand_primary "),enableAudio:!0,children:(0,n.jsxs)("span",{children:["+ ",(0,k.r6)(e)]})},t))}),y&&(0,n.jsxs)("div",{className:" grid grid-cols-12 gap-x-1 gap-y-1 pt-[15px]",children:[(0,n.jsx)(f.A,{className:"col-span-3 w-full text-[10px] min-h-[26px] active:scale-95 md:active:scale-[98%] font-semibold rounded-[4px] bg-bg_color_minBtn text-text_color_primary2 py-2",onClick:()=>{s?s():c&&i(Number(c)||0,"min")},isrippleeffecton:!0,enableAudio:!0,children:h("MIN")}),(0,n.jsx)(f.A,{className:"col-span-3 w-full text-[10px] active:scale-95 md:active:scale-[98%] font-semibold rounded-[4px] bg-bg_color_maxBtn text-text_color_primary2 py-2",onClick:()=>{d?d():u&&i(Number(u)||0,"max")},isrippleeffecton:!0,enableAudio:!0,children:h("MAX")}),v?(0,n.jsx)(B.A,{mainClassName:"col-span-3 w-full text-[10px] active:scale-95 md:active:scale-[98%] font-semibold rounded-[4px] text-text_color_primary2 py-2 bg-bg_brand_primary ",loader:_,setLoader:j,stakesInput:p,setEditStakes:g,children:_?h("UPDATING")+"...":h("UPDATE")}):(0,n.jsx)(f.A,{enableAudio:!0,className:"col-span-3 w-full text-[10px] active:scale-95 md:active:scale-[98%] font-semibold rounded-[4px] text-text_color_primary2 py-2 bg-bg_color_editStakes ",onClick:()=>g(!0),isrippleeffecton:!0,children:h(v?"UPDATE":"EDIT STAKES")}),(0,n.jsx)(f.A,{className:"col-span-3 w-full active:scale-95 md:active:scale-[98%] text-[10px] font-semibold rounded-[4px] bg-bg_color_clearBtn text-text_color_primary2 leading-4 py-2",onClick:()=>{l(!0),i(0,"clear");let e=setTimeout(()=>{l(!1)},200);return()=>clearTimeout(e)},isrippleeffecton:!0,enableAudio:!0,id:"clearBtn",disabled:0===t,children:h("CLEAR")})]})]})});var I=t(87272),M=t(566);let F=(0,r.memo)(e=>{let{confirmBetBeforePlacing:l,setConfirmBetBeforePlacing:t}=e,{t:o}=(0,a.B)(),i=(0,r.useId)(),s=(0,r.useId)();return(0,n.jsxs)("div",{className:" flex items-center justify-between w-full select-none",role:"group","aria-labelledby":i,children:[(0,n.jsx)("label",{id:i,htmlFor:s,className:" text-[13px] text-text_color_primary1 font-medium cursor-pointer flex-1",children:o("Confirm bet before placing")}),(0,n.jsx)("div",{role:"switch","aria-checked":l,"aria-labelledby":i,"aria-label":o("Confirm bet before placing"),title:o(l?"Enabled":"Disabled"),children:(0,n.jsx)(M.A,{checked:l,onChange:e=>{t(e.target.checked)}})})]})}),P=(0,r.memo)(e=>{var l,t,x,b,v,g,h,y,_,j,S;let{smoothIncreaseHeight:B=!0}=e,{startClosing:M,handleStartClosing:P}=(0,c.x)(),L=(0,o.d4)(e=>e.authentication.isLoggedIn),{t:O}=(0,a.B)(),T=(0,o.wA)(),{handleLoginRegisterAccToTab:E}=(0,p.J)(),V=(0,o.d4)(e=>
1e.newBetSlipStates.betSlipPrice),H=(0,o.d4)(e=>e.newBetSlipStates.betSlipSize),q=(0,o.d4)(e=>e.newBetSlipStates.confirmBet.confirmBetBeforeBetPlace),R=(0,o.d4)(e=>e.newBetSlipStates.confirmBet.isOpen),Z=(0,o.d4)(e=>e.newBetSlipStates.betSlipStake),G=(0,o.d4)(e=>e.newBetSlipStates.betSlipData),U=(0,o.d4)(e=>e.newBetSlipStates.betSlipLine),J=(0,o.d4)(e=>e.authentication.isLoading),{data:K}=(0,m.np)({marketId:null!=(g=null==G?void 0:G.marketId)?g:"",runnerId:null!=(h=null==G||null==(l=G.runnerId)?void 0:l.toString())?h:""},{skip:!(null==G?void 0:G.marketId)||!(null==G?void 0:G.runnerId)||!L||J}),[z,W]=(0,r.useState)(!1),Y=(0,r.useCallback)(()=>{P(100*!!B,()=>{T((0,i.Vg)(0)),T((0,i.uv)(0)),T((0,i.LR)(0)),T((0,i.oj)(null)),T((0,i.YG)(0))})},[T,P,B]),$=(0,r.useMemo)(()=>{let e=null==G?void 0:G.mtype;return(null==e?void 0:e.toLowerCase())==="match_odds"},[null==G?void 0:G.mtype]),{calculatedprofit:X}=(0,d.g)({stakeValue:Z,oddValue:(null==G?void 0:G.isBookmakerOrMiniBookmaker)?(0,k._k)(Number(V)/100+1):Number(V),isFancy:null!=(y=null==G?void 0:G.isFancy)&&y}),Q=(0,r.useMemo)(()=>!(null==G?void 0:G.marketId)||!V||0===Z,[null==G?void 0:G.marketId,V,Z]),{PlaceBet:ee,loader:el,errorMessage:et}=(0,s.F)({onSuccess:()=>{Y()},onProgress:e=>{var l,t,n,r,o,a,s,d,c,u;T((0,i.H0)({uniqueId:e,side:null!=(l=null==G?void 0:G.side)?l:0,selectionId:null!=(t=null==G?void 0:G.selectionId)?t:null,eventId:null!=(n=null==G?void 0:G.eventId)?n:null,eventName:null!=(r=null==G?void 0:G.eventName)?r:null,mtype:null!=(o=null==G?void 0:G.mtype)?o:null,price:null!=V?V:0,size:null!=H?H:0,line:null!=U?U:0,stake:null!=Z?Z:0,runner:null!=(a=null==G?void 0:G.runner)?a:null,betDelay:(null==G?void 0:G.betDelay)!==0&&(null==G?void 0:G.betDelay)?null!=(s=null==G?void 0:G.betDelay)?s:0:2,isFancy:null!=(d=null==G?void 0:G.isFancy)&&d,isLineMarket:null!=(c=null==G?void 0:G.isLineMarket)&&c,index:null!=(u=null==G?void 0:G.index)?u:0}))},onFinish:e=>{T((0,i.hL)(e))},onBetPlaceCompletion:e=>{}}),en=(0,r.useRef)(!1),er=(0,r.useRef)(!1);en.current=el,er.current=R,(0,r.useEffect)(()=>{if(!G)return;let e=setTimeout(()=>{en.current||er.current||Y()},1e4);return()=>clearTimeout(e)},[null==G?void 0:G.marketId,null==G?void 0:G.runnerId,null==G?void 0:G.selectionId,null==G?void 0:G.side,Y]);let eo=(0,r.useCallback)(()=>{if(!Q){if(!L)return void E("login");if(q)return void T((0,i.AR)(!0));ee()}},[Q,T,ee,E,L,q]);return(0,n.jsx)(r.Fragment,{children:(0,n.jsxs)("div",{title:null!=(_=null==G?void 0:G.eventName)?_:"",className:"".concat(el?" pointer-events-none touch-none cursor-not-allowed":""," w-full h-max bg-bg_color_betSlipBgColor font-lato origin-top transition-all flex flex-col ease-in-out p-2 pb-0 rounded-sm border-[2px] border-b-[5px] ").concat((null==G?void 0:G.side)===0?"border-backBtn":"border-layBtn","\n ").concat(B?M?"closeScaleAtY":"openScaleAtY":""),children:[(0,n.jsxs)("div",{className:" w-full grid grid-cols-12 gap-2",children:[(0,n.jsx)(w,{oddValue:null==V?void 0:V.toString(),setOddValue:e=>T((0,i.Vg)(e)),className:"".concat((null==G?void 0:G.isFancy)?"col-span-3":"col-span-5"),isFancy:null!=(j=null==G?void 0:G.isFancy)&&j,isMatchOdds:$}),(null==G?void 0:G.isFancy)&&(0,n.jsx)(C,{runs:null!=U?U:0,className:"col-span-3"}),(0,n.jsx)(N,{stake:Z,setStake:e=>T((0,i.uv)(e)),className:"".concat((null==G?void 0:G.isFancy)?"col-span-6":"col-span-7"),maxBet:(null==K||null==(t=K.result)?void 0:t.maxBet)||0,stakesClicked:z,maxMarket:(null==K||null==(x=K.result)?void 0:x.maxWinPerMarket)||0})]}),(0,n.jsx)("div",{className:" w-full flex mt-2 items-center justify-center",children:(0,n.jsx)(A,{stake:Z,setStake:(e,l)=>{"min"===l||"max"===l?T((0,i.uv)(Number(e))):"clear"===l?T((0,i.uv)(0)):T((0,i.uv)(Z+e))},setStakesClicked:W,minBet:(null==K||null==(b=K.result)?void 0:b.minBet)||0,maxBet:(null==K||null==(v=K.result)?void 0:v.maxBet)||0})}),(0,n.jsxs)("div",{className:" w-full grid mt-2 grid-cols-12 gap-2",children:[(0,n.jsx)(f.A,{onClick:()=>Y(),type:"button",className:" col-span-6 py-1 w-full flex items-center justify-center text-sm bg-transperent text-text_color_betSlipCancelBtnColor font-medium border border-border_color_brand_secondary rounded-md",isrippleeffecton:!0,disabled:el,children:(0,n.jsx)("span",{className:" text-text_brand_primary font-bold text-sm md:text-base leading-5",children:O("Cancel Bet")})}),(0,n.jsxs)(f.A,{className:"relative text-text_color_primary2 active:scale-95 md:active:scale-[98%] px-2 py-1 rounded-md w-full col-span-6 border flex items-center justify-between bg-bg_color_placeBetBtnGrd border-border_color_placeBetBtn curs
1or-pointer disabled:bg-bg_color_disableBackGroundColorfForPlaceBetBtn disabled:border-transparent disabled:cursor-not-allowed",disabled:Q||el,type:"button",onClick:eo,children:[(0,n.jsxs)("div",{className:" flex items-start justify-start flex-col",children:[(0,n.jsx)("span",{className:" text-text_color_primary2 text-sm font-bold",children:O(L?"Place Bet":"Login")}),(0,n.jsxs)("span",{className:" text-text_color_primary2 text-xs",children:[(null==G?void 0:G.side)===0?"Profit":"Liability"," :"," ",(0,n.jsx)(u.A,{number:X,maxFractionDigits:2})]})]}),(0,n.jsxs)("div",{className:"flex items-center justify-center gap-x-1",children:[(0,n.jsx)("span",{children:(0,n.jsx)(I.A,{fill:Q?"var(--icon-color-betSlipIconsColor)":"var(--icon-color-secondary)"})}),(0,n.jsxs)("span",{className:"font-normal ".concat(Q?"text-text_color_tertiary3":" text-text_color_primary2"),children:[null!=(S=null==G?void 0:G.betDelay)?S:0,"s"]})]}),el&&(0,n.jsx)(D,{})]})]}),(0,n.jsx)("div",{className:"w-full mt-2 lg:mt-1 flex flex-col gap-y-1",children:(0,n.jsx)(F,{confirmBetBeforePlacing:null!=q&&q,setConfirmBetBeforePlacing:e=>{T((0,i.$E)(e))}})})]})})}),D=e=>{let{height:l="3",width:t="3",bgColor:r="bg_color_primary"}=e;return(0,n.jsxs)("div",{className:"flex space-x-2 justify-center items-center bg-transparent absolute transform-gpu top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",children:[(0,n.jsx)("span",{className:"sr-only",children:"Loading..."}),(0,n.jsx)("div",{className:"h-".concat(l," w-").concat(t," bg-").concat(r," rounded-full animate-bounce [animation-delay:-0.3s]")}),(0,n.jsx)("div",{className:"h-".concat(l," w-").concat(t," bg-").concat(r," rounded-full animate-bounce [animation-delay:-0.15s]")}),(0,n.jsx)("div",{className:"h-".concat(l," w-").concat(t," bg-").concat(r," rounded-full animate-bounce")})]})}},87272:(e,l,t)=>{t.d(l,{A:()=>r});var n=t(3591);let r=(0,t(18543).memo)(e=>{var l;return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[(0,n.jsx)("g",{clipPath:"url(#clip0_2144_3162)",children:(0,n.jsx)("path",{d:"M9.91095 3.68857L10.3814 3.21808C10.5643 3.03525 10.5643 2.7388 10.3814 2.55606C10.1986 2.37323 9.90225 2.37323 9.71942 2.55606L9.24893 3.02655C8.45956 2.36884 7.50037 1.9715 6.47717 1.87848V0.93631H6.92972C7.18826 0.93631 7.39783 0.726654 7.39783 0.468109C7.39783 0.209564 7.18826 0 6.92972 0H5.08832C4.82977 0 4.62021 0.209564 4.62021 0.468109C4.62021 0.726654 4.82977 0.93631 5.08832 0.93631H5.54086V1.87848C2.97958 2.11139 0.9375 4.26306 0.9375 6.92844C0.9375 9.73141 3.20572 12 6.00906 12C8.81195 12 11.0805 9.73178 11.0805 6.92844C11.0805 5.73111 10.6682 4.59723 9.91095 3.68857ZM6.00897 11.0637C3.72885 11.0637 1.87372 9.20865 1.87372 6.92844C1.87372 4.64832 3.72885 2.79327 6.00897 2.79327C8.28918 2.79327 10.1442 4.64832 10.1442 6.92844C10.1442 9.20865 8.28918 11.0637 6.00897 11.0637ZM8.1785 4.759C8.36133 4.94183 8.36133 5.23828 8.1785 5.42102L6.34003 7.25949C6.1572 7.44232 5.86075 7.44232 5.67801 7.25949C5.49518 7.07666 5.49518 6.78021 5.67801 6.59747L7.51639 4.759C7.69922 4.57617 7.99567 4.57617 8.1785 4.759Z",fill:null!=(l=null==e?void 0:e.fill)?l:"#B0B0B0"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_2144_3162",children:(0,n.jsx)("rect",{width:"12",height:"12",fill:"white"})})})]})})}}]);
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.