1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6369],{30627:(e,t,a)=>{a.d(t,{A:()=>i});var o=a(3591),l=a(36593),s=a(18543),n=a(90466),r=a(76610);let i=(0,s.memo)(e=>{let{selectedCountryCode:t,setSelectedCountryCode:a,textColor:i,selectionClassName:d,showFlag:u,top:c="top-full",enableCountryCodeSelection:m=!1,flagClassName:p="w-max h-max ml-1",flagImgClassName:h="w-4 h-4"}=e,[v,y]=(0,s.useState)(""),[x,f]=(0,s.useState)(!1),g=(0,s.useMemo)(()=>0===v.length?l.N:l.N.filter(e=>{var t,a,o;return(null==(t=e.name)?void 0:t.toLowerCase().includes(v.toLowerCase()))||(null==(a=e.dialCode)?void 0:a.includes(v))||(null==(o=e.code)?void 0:o.toLowerCase().includes(v.toLowerCase()))}),[v]),w=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let e=e=>{w.current&&!w.current.contains(e.target)&&(f(!1),y(""))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,o.jsxs)("div",{ref:w,className:"w-max transition-none h-full relative",children:[(0,o.jsxs)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),f(!x)},className:"flex w-max items-center h-full justify-between px-1 ".concat(i),disabled:!m,children:[(0,o.jsxs)("div",{className:" flex items-center justify-center h-full",children:[null==t?void 0:t.dialCode,u&&(0,o.jsx)(n.default,{path:null==t?void 0:t.flag,alt:null==t?void 0:t.name,className:p,imgClassName:h})]}),m?(0,o.jsx)("span",{className:"ml-2 transition-all duration-150 ease-in-out ".concat(x?"rotate-180":""),children:(0,o.jsx)(r.A,{className:"w-3 h-3",fill:"var(--icon-color-brand-tertiary1)"})}):null]}),x&&(0,o.jsxs)("div",{title:"Country Code",className:"absolute transition-height ease-in-out duration-200 bg-bg_color_primary left-0 z-[1000] w-[75%] min-w-60 mt-1.5 border border-border_color_primary rounded-md shadow-passwordRulesBox overflow-hidden flex flex-col h-max ".concat(i," ").concat(d," ").concat(c),style:{maxHeight:"15rem"},children:[(0,o.jsx)("div",{className:"flex-shrink-0",children:(0,o.jsx)("input",{type:"text",value:v,onChange:e=>{e.preventDefault(),y(e.target.value)},placeholder:"Search country or code",className:"w-full px-3 py-2 border-b border-border_color_primary focus:outline-none focus:border-border_color_activeInput bg-bg_color_input_bg ".concat(i),onKeyDown:e=>{"Enter"===e.key&&e.preventDefault()}})}),(0,o.jsx)("div",{className:"flex-grow overflow-auto no-scrollbar scroll-smooth bg-bg_loginPopUpBg",children:g.length>0?g.map(e=>(0,o.jsxs)("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e),y(""),f(!1)},className:"px-3 py-2 w-full text-left cursor-pointer \n ".concat((null==t?void 0:t.dialCode)===(null==e?void 0:e.dialCode)?"bg-bg_color_quaternary6":"","\n ").concat("hover:bg-bg_color_quaternary6 active:bg-bg_color_quaternary6"),children:[e.name," (",e.dialCode,")"]},e.code)):(0,o.jsx)("div",{className:"px-3 py-2 text-sm",children:"No results found"})})]})]})})},36820:(e,t,a)=>{a.d(t,{q:()=>n});var o=a(93207),l=a(87287),s=a(11980);let n=async e=>{var t,a,n,r,i,d,u;try{let{endPoint:d,method:u,payload:c,additionalHeaders:m,params:p,url:h,formData:v,sendHeaders:y=!1,token:x}=e,f=l.qk.ENABLE_ENCRY_DECRYP,g=h?"".concat(h).concat(d):"".concat("https://b51.max247.co/api").concat(d),w=null!=v?v:c,b=(()=>{if(x)return x;let e=localStorage.getItem("ROYAL_TOKEN");if(!e)return null;try{return JSON.parse(e)}catch(t){return e}})(),N={};v||(N["Content-Type"]=null!=(t=null==m?void 0:m["Content-Type"])?t:"application/json"),b&&(N.Authorization=b);let C={...N,...m};if(!f){let e=await (0,o.A)({url:g,method:u,data:w,params:p,headers:C});return{success:!0,data:e.data,status:e.status,headers:y?e.headers:void 0}}let T=await s.J.encrypt({method:null==u?void 0:u.toUpperCase(),url:"/api".concat(d),headers:C,params:p||{},body:w}),S=await o.A.post("".concat("https://b51.max247.co/api","/enc_data"),T,{headers:{"Content-Type":"application/encrypted"}}),D=S.data,_=(null==D?void 0:D.key)&&(null==D?void 0:D.payload)?await s.J.decrypt(D):D;return{success:!0,data:null!=(a=null==_?void 0:_.body)?a:_,status:null!=(n=null==_?void 0:_.status)?n:S.status,statusText:null!=(r=null==_?void 0:_.statusText)?r:S.statusText,headers:y?null!=(i=null==_?void 0:_.headers)?i:S.headers:void 0}}catch(n){let e;if(!o.A.isAxiosError(n))return{success:!1,error:{message:n.message||"Unexpected error",code:"UNKNOWN_ERROR"},status:500};
1if("ECONNABORTED"===n.code)return{success:!1,error:{message:"Request timed out",code:"TIMEOUT"},status:408};if(!n.response)return{success:!1,error:{message:"Network error",code:"NETWORK_ERROR"},status:0};let t=n.response.data,a=t&&"object"==typeof t&&"key"in t&&"payload"in t,l=t;if(a)try{let e=await s.J.decrypt(t);l=null!=(d=null==e?void 0:e.body)?d:e}catch(e){return{success:!1,error:{message:e instanceof Error?e.message:"Failed to decrypt error response",code:"DECRYPTION_ERROR"},status:n.response.status||500,statusText:n.response.statusText}}if(a){let t=null==l?void 0:l.body;e=(null==t?void 0:t.error)||(null==t?void 0:t.message)||(null==t||null==(u=t.status)?void 0:u.statusDesc)||(null==t?void 0:t.statusDesc)||(null==l?void 0:l.error)||(null==l?void 0:l.message)||n.message}else e=t&&"object"==typeof t&&"message"in t?t.message:t&&"object"==typeof t&&"error"in t?t.error:n.message;return{success:!1,error:{message:e||"An error occurred",details:a?l:t,code:n.code},status:n.response.status||500,statusText:n.response.statusText}}}},39357:(e,t,a)=>{a.d(t,{EG:()=>s,PJ:()=>l,d4:()=>n,iA:()=>r,m:()=>i});var o=a(11963);let l=(()=>{let e=o.A.get("selectedTimeZone");try{return e?JSON.parse(decodeURIComponent(e)):{id:"localTime",label:"Local Time (".concat(Intl.DateTimeFormat().resolvedOptions().timeZone,")"),value:"Local Time (".concat(Intl.DateTimeFormat().resolvedOptions().timeZone,")"),timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone}}catch(e){return{id:"localTime",label:"Local Time (".concat(Intl.DateTimeFormat().resolvedOptions().timeZone,")"),value:"Local Time (".concat(Intl.DateTimeFormat().resolvedOptions().timeZone,")"),timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone}}})(),s={title:null,path:void 0,endAdornment:null,backButtonClickFunction:void 0,breadcumbPath:null,extraComponent:null,className:"",headerClassName:""},n=(()=>{{let e=navigator.userAgent,t=/iPad|iPhone/.test(e),a=/Android/.test(e);return{isIOS:t,isAndroid:a,isOthers:!t&&!a}}})(),r=(()=>{{let e=localStorage.getItem("nextBallStakes");if(e)try{let t=JSON.parse(e);if(Array.isArray(t)&&t.length>=4)return t.slice(0,4)}catch(e){}}return[50,100,200,500]})(),i=(()=>{let e=[100,200,500,1e3,2e3,5e3];{let t=localStorage.getItem("normalStakes");if(t)try{let a=JSON.parse(t);if(a.length>=6)return a.slice(0,6);let o=new Set(a),l=[...a],s=a.length>0?Math.max(...a):0;for(let t of e){if(l.length>=6)break;o.has(t)||(l.push(t),o.add(t),s=Math.max(s,t))}for(;l.length<6;){let e=2*s;l.push(e),s=e}return l}catch(e){}}return e})()},70858:(e,t,a)=>{a.d(t,{d:()=>l});var o=a(86272);let l=()=>({showToast:e=>{o.A.emit("show",{id:Date.now(),...e})},hideToast:e=>{o.A.emit("hide",e)}})},86272:(e,t,a)=>{a.d(t,{A:()=>o});let o=new(a(59988)).EventEmitter},95969:(e,t,a)=>{a.d(t,{GD:()=>c,J3:()=>n,K:()=>y,LE:()=>i,MK:()=>h,ZS:()=>p,i9:()=>r,qk:()=>v,te:()=>u,vG:()=>d});var o=a(39357),l=a(96439);let s={showFooter:!1,showBottomBar:!1,openAccountDrawer:!1,openLeftDrawer:!1,selectedTimeZone:o.PJ,backButtonStates:o.EG,deviceDetails:o.d4,showNotificationStrip:!0,withdrawalNoticePopup:!1,stakesInput:o.m,nextBallStakesInput:o.iA,systemSound:"true"===localStorage.getItem("systemSound")},n=(0,l.Z0)({name:"layout",initialState:s,reducers:{setShowBottomBar:(e,t)=>{e.showBottomBar=t.payload},setOpenAccountDrawer:(e,t)=>{e.openAccountDrawer=t.payload},setOpenLeftDrawer:(e,t)=>{e.openLeftDrawer=t.payload},setSelectedTimeZone:(e,t)=>{e.selectedTimeZone=t.payload},setBackButtonStates:(e,t)=>{e.backButtonStates=t.payload},setDeviceDetails:(e,t)=>{e.deviceDetails=t.payload},setShowNotificationStrip:(e,t)=>{e.showNotificationStrip=t.payload},setWithdrawalNoticePopup:(e,t)=>{e.withdrawalNoticePopup=t.payload},setStakesInput:(e,t)=>{e.stakesInput=t.payload},setNextBallStakesInput:(e,t)=>{e.nextBallStakesInput=t.payload},setSystemSound:(e,t)=>{e.systemSound=t.payload}}}),{setShowBottomBar:r,setOpenAccountDrawer:i,setOpenLeftDrawer:d,setSelectedTimeZone:u,setBackButtonStates:c,setDeviceDetails:m,setShowNotificationStrip:p,setWithdrawalNoticePopup:h,setStakesInput:v,setNextBallStakesInput:y,setSystemSound:x}=n.actions},98853:(e,t,a)=>{a.d(t,{A:()=>n});var o=a(3591),l=a(18543);let s=(0,l.forwardRef)((e,t)=>{var a;let[s,n]=(0,l.useState)(!1);return(0,o.jsxs)("div",{title:null==e?void 0:e.title,className:null!=(a=null==e?void 0:e.mainClassName)?a:"flex flex-col w-full",children:[null==e?void 0:e.label,(0,o.jsxs)("div",{className:"flex items-center w-full ".concat(e.className||""," ").concat((null==e?void 0:e.dirtyClassName)&&s?null==e?void 0:e.dirtyClassName:""),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,children:[e.startAdornment&&(0,o.jsx)("div",{className:"flex-shrink-0 w-max",children:e.startAdornment}),(0,o.jsx)("input",{ref:t,type:e.type,className:"".concat(null==e?void 0:e.inputClassName," flex-grow min-w-0 border-none focus:outline-none bg-transparent"),placeholder:e.placeholder,value:e.value,onChange:e.onChange,onKeyDown:e.onKeyDown,onTouchStart:t=>{var a;n(!0),null==e||null==(a=e.onTouchStart)||a.call(e,t)},onClick:e.onClick,onInput:e.onInput,autoComplete:e.autoComplete,inputMode:e.inputMode,onFocus:e.onFocus,onBlur:()=>{var t;n(!0),null==(t=e.onBlur)||t.call(e)},readOnly:e.readonly,disabled:e.disabled,"aria-label":e.ariaLabel,style:e.inputBoxStyle,id:e.id,onTouchEnd:e.onTouchEnd,onWheel:e.onWheel,name:e.name,onPaste:e.onPaste,onPasteCapture:e.onPasteCapture,autoF
1ocus:e.autoFocus}),e.endAdornment&&(0,o.jsx)("div",{className:"flex-shrink-0 w-max",children:e.endAdornment})]}),(0,o.jsxs)("div",{className:"flex items-start w-full justify-between leading-normal px-1",children:[(0,o.jsx)("div",{className:" w-max ".concat((null==e?void 0:e.showDirtyMessage)?"min-h-[18px] h-max":"h-max"),children:((null==e?void 0:e.showDirtyMessage)||!e.value)&&(s||(null==e?void 0:e.showInitialMessage))&&(0,o.jsxs)(l.Fragment,{children:["string"==typeof(null==e?void 0:e.dirtyMessage)?(0,o.jsxs)("div",{className:"text-x text-text_color_error_message",children:[" ",null==e?void 0:e.dirtyMessage," "]}):null==e?void 0:e.dirtyMessage," "]})}),e.countOfChars&&(0,o.jsxs)(l.Fragment,{children:[" ",null==e?void 0:e.countOfChars," "]})]}),e.extraInfo&&(0,o.jsx)(l.Fragment,{children:e.extraInfo})]})});s.displayName="BrandInput2";let n=s}}]);
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.