PageSourceSearch

https://www.059080.com/b/_next/static/chunks/pages/index-0bb0dcdcfaf34fc8.js

js 059080.com collected 2026-10-09 04:32:31 UTC 121,830 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{7278:function(e,t,a){"use strict";var s=a(7875);a(7294);var n=a(3443),i=a(5274),r=a(1673),o=a(7097),l=a(5893);t.Z=function(e){var t,a=e.siteName,c=(0,s.$G)().t,d=(0,n.Mj)().isCashSite;return t=a===o.Z.taraPlays?c("lbl_RecmndRsltn"):d?"":"\xa9 Copyright ".concat((0,i.Z)(),". ").concat((0,r.Z)(a),". All Rights Reserved."),(0,l.jsx)(l.Fragment,{children:t})}},9737:function(e,t,a){"use strict";a.d(t,{Z:function(){return x}});var s,n=a(9499),i=a(7294),r=a(9008),o=a.n(r),l=a(3443),c=a(8367),d=a(1673),m=a(7097),u=a(6084),p=a(5893),h=(s={},(0,n.Z)(s,m.Z.viva88,[]),(0,n.Z)(s,m.Z.bong88,[]),(0,n.Z)(s,m.Z.IBCBet,[]),(0,n.Z)(s,m.Z.PICA88,[]),(0,n.Z)(s,m.Z.Nova88,[]),(0,n.Z)(s,m.Z.id8899,[]),(0,n.Z)(s,m.Z.bettha88,[]),(0,n.Z)(s,m.Z.taraPlays,[]),(0,n.Z)(s,m.Z.fifabet,[]),(0,n.Z)(s,m.Z.ocean99,[]),s),x=function(){var e=(0,l.Mj)(),t=e.siteName,a=e.composePath,s=e.enableFestivalLogo,n=e.isAutoColorSchemeShow;return(0,i.useContext)(c.cS)[0].isShowMemberRules?(0,p.jsxs)(o(),{children:[(0,p.jsx)("meta",{charset:"UTF-8"}),(0,p.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, user-scalable=no"}),(0,p.jsx)("meta",{httpEquiv:"X-UA-Compatible",content:"ie=edge"}),(0,p.jsx)("title",{children:(0,d.Z)(t)}),(0,p.jsx)("link",{rel:"stylesheet",href:a({pathType:u.Z.helpUiGlobal,pathName:"global-static.css"})}),(0,p.jsx)("link",{rel:"stylesheet",href:a({pathType:u.Z.helpUiTheme,pathName:"theme.css"})})]}):(0,p.jsxs)(o(),{children:[(0,p.jsx)("meta",{charset:"UTF-8"}),(0,p.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0 , user-scalable=no, viewport-fit=cover"}),(0,p.jsx)("title",{children:(0,d.Z)(t)}),(0,p.jsx)("link",{rel:"stylesheet",href:a({pathType:n?u.Z.globalCss:u.Z.siteCss,pathName:"login.css"})}),(0,p.jsx)("link",{rel:"stylesheet",href:a({pathType:u.Z.siteCss,pathName:"event.css"})}),s&&(0,p.jsx)("link",{rel:"stylesheet",href:a({pathType:u.Z.siteCss,pathName:"festival.css"})}),(0,p.jsx)("link",{rel:"icon",href:a({pathType:u.Z.siteImage,pathName:"favicon.ico"})}),n&&(0,p.jsx)("link",{rel:"stylesheet",href:a({pathType:u.Z.colorscheme,pathName:"colorscheme.css"})}),h[t]]})}},2011:function(e,t,a){"use strict";var s=a(7294),n=a(8367),i=a(5893);t.Z=function(){var e=(0,s.useState)(!0),t=e[0],a=e[1];return(0,s.useContext)(n.cS)[0].isShowMemberRules,(0,s.useEffect)(function(){a(!1)},[]),(0,i.jsx)("div",{className:"preloader preloader--overlay","data-open":t,children:(0,i.jsx)("div",{className:"preloader__spiner",children:(0,i.jsxs)("div",{className:"preloader__circles",children:[(0,i.jsx)("div",{className:"preloader__circle-1"}),(0,i.jsx)("div",{className:"preloader__circle-2"})]})})})}},6359:function(e,t,a){"use strict";var s=a(7294),n=a(1163),i=a(3349),r=a(3443),o=a(8835);t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6e4,a=(0,n.useRouter)(),l=(0,n.useRouter)().locale,c=(0,r.Mj)(),d=c.siteId,m=c.clientApiUrl,u=(0,s.useState)((0,o.Z)(e)),p=u[0],h=u[1],x=(0,s.useCallback)(function(){(0,i.pM)(m,d).then(function(e){h((0,o.Z)(e))}).catch(function(e){return console.error(e)});var e="/underMaintenance"===a.pathname;p&&!e?a.push("/".concat(l,"/underMaintenance")):!p&&e&&a.replace("/")},[p,l,a,d]);(0,s.useEffect)(function(){var e=setInterval(x,t),a=function(){clearInterval(e)};return function(){a()}},[x,t])}},1696:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return m},default:function(){return u}}),a(7294);var s=a(9008),n=a.n(s),i=a(3443),r=a(1673),o=a(6084),l=a(7278),c=a(5893),d=function(){var e=(0,i.Mj)(),t=e.composePath,a=e.siteName,s=e.preferredSiteName;return(0,c.jsxs)("div",{className:"app",children:[(0,c.jsx)("div",{className:"header",children:(0,c.jsx)("div",{className:"header__logo"})}),(0,c.jsx)("div",{className:"main",children:(0,c.jsxs)("div",{className:"browser-upgrade",children:[(0,c.jsx)("div",{className:"browser-upgrade__title",children:"Browser Upgrade Needed"}),(0,c.jsxs)("div",{className:"browser-upgrade__download",children:[(0,c.jsxs)("div",{className:"browser-upgrade__item",children:[(0,c.jsx)("img",{className:"browser-upgrade__img",src:t({pathType:o.Z.globalImage,pathName:"browser_Firefox-L.png"}),alt:"Download Firefox"}),(0,c.jsxs)("a",{className:"browser-upgrade__btn",href:"https://support.mozilla.org/kb/update-firefox-latest-version",children:[(0,c.jsx)("i",{className:"icon icon-download"}),(0,c.jsx)("span",{className:"browser-upgrade__text",children:"FireFox"})]})]}),(0,c.jsxs)("div",{className:"browser-upgrade__item",children:[(0,c.jsx)("img",{className:"browser-upgrade__img",src:t({pathType:o.Z.globalImage,pathName:"browser_chrome-L.png"}),alt:"Download Chrome"}),(0,c.jsxs)("a",{className:"browser-upgrade__btn",href:"https://www.google.com/chrome/browser/desktop/",children:[(0,c.jsx)("i",{className:"icon icon-download"}),(0,c.jsx)("span",{className:"browser-upgrade__text",children:"Chrome"})]})]}),(0,c.jsxs)("div",{className:"browser-upgrade__item",children:[(0,c.jsx)("img",{className:"browser-upgrade__img",src:t({pathType:o.Z.globalImage,pathName:"browser_edge-L.png"}),alt:"Download Edge"}),(0,c.jsxs)("a",{className:"browser-upgrade__btn",href:"https://www.microsoft.com/zh-tw/edge",children:[(0,c.jsx)("i",{className:"icon icon-download"}),(0,c.jsx)("span",{className:"browser-upgrade__text",children:"Edge"})]})]})]}),(0,c.jsx)("p",{className:"text",children:"To facilitate your betting experience, please upgrade to the latest browser."}),(0,c.jsx)("p",{className:"text",children:"为优化您的浏览体验,建议您更换以上浏览器并更新至最新版本。"})]})}),(0,c.jsx)("div",{className:"footer",children:(0,c.jsx)(l.Z,{siteName:s||a})})]})},m=!0,u=function(){var e=(0,i.Mj)(),t=e.siteName,a=e.composePath,s=e.isAutoColorSchemeShow;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(n(),{children:[(0,c.jsx)("title",{children:"".concat((0,r.Z)(t)," | BrowserUpgrade")}
1),(0,c.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=utf-8"}),(0,c.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, user-scalable=no"}),(0,c.jsx)("link",{rel:"shortcut icon",href:a({pathType:o.Z.siteImage,pathName:"favicon.ico"}),type:"image/x-icon"}),(0,c.jsx)("link",{rel:"stylesheet",href:a({pathType:o.Z.globalCss,pathName:"core.css"})}),(0,c.jsx)("link",{rel:"stylesheet",href:a({pathType:o.Z.siteCss,pathName:"main.css"})}),s&&(0,c.jsx)("link",{rel:"stylesheet",href:a({pathType:o.Z.colorscheme,pathName:"colorscheme.css"})})]}),(0,c.jsx)(d,{})]})}},5942:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return aS},default:function(){return aw}});var s,n,i,r,o,l,c,d=a(7294),m=a(3443),u=a(8333),p=a(29),h=a(7794),x=a.n(h),j=a(7875),v=a(6234),N=a(52),f=a(6084),g=[{title:"lbl_sports",enterPoint:"#Sports/s=0",imagePath:"products/Sports.png"},{title:"lbl_VirtualSports",enterPoint:"#Sports/s=180",imagePath:"products/VirtualSports.png"},{title:"lbl_Esports",enterPoint:"#Sports/s=43",imagePath:"products/E-Sports.png"},{title:"lbl_NumberGame",enterPoint:"#Sports/s=161",imagePath:"products/NumberGame.png"},{title:"lbl_Gaming",enterPoint:"",imagePath:"products/Gaming.png"},{title:"lbl_RNGKeno",enterPoint:"",imagePath:"products/RNGKeno.png"},{title:"lbl_Sabagames",enterPoint:"",imagePath:"products/Saba.club.png"}],b=a(8873),_=a(5893),y=function(){var e,t=(0,j.$G)().t,a=(0,m.Mj)().composePath,s=(0,d.useContext)(v.pI),n=(s[0],s[1]);(0,d.useEffect)(function(){(0,N.A0)("_EPoint")},[]);var i=(0,b.Z)().fetchCurrentPlatUMData,r=(e=(0,p.Z)(x().mark(function e(t){return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i();case 2:e.sent?n({type:"SHOW_UM_POPUP"}):(n({type:"SHOW_LOGIN_POPUP"}),n({type:"UPDATE_LOGIN_ENTER_POINT",value:t}),(0,N.d8)("_EPoint",t,365));case 4:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)});return(0,_.jsx)("div",{className:"product-sports","data-open":"true",children:(0,_.jsx)("div",{className:"sports-list",children:g.map(function(e){var s=e.title,n=e.enterPoint,i=e.imagePath;return(0,_.jsxs)("div",{className:"sports-card",onClick:function(){r(n)},children:[(0,_.jsx)("div",{className:"sports-card__title",children:(0,_.jsx)("span",{className:"text",children:t(s)})}),(0,_.jsx)("div",{className:"sports-card__image",children:(0,_.jsx)("img",{src:a({pathType:f.Z.siteImage,pathName:i}),alt:""})})]})})})})},Z=a(9499),S=a(7097),w=a(8100),T=(s=(0,p.Z)(x().mark(function e(){var t,a=arguments;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch.apply(void 0,a);case 2:if((t=e.sent).ok){e.next=6;break}throw Error("An error occurred while fetching the data.");case 6:return e.abrupt("return",t.json());case 7:case"end":return e.stop()}},e)})),function(){return s.apply(this,arguments)}),P={NotStarted:0,FirstHalf:10,OneHalf:11,OneHalfEnd:12,TwoHalf:13,TwoHalfEnd:14,Halftime:20,SecondHalf:30,ThreeHalf:31,ThreeHalfEnd:32,FourHalf:33,ExtraTime:40,Penalties:41,Ended:50,Delayed:60,Interrupted:61,Abandoned:62,Extension:63,Cancelled:64,ToBeDetermined:99,CricketStatus:{Scheduled:1,Completed:2,Live:3,Other:4}},k={50:"Ended",60:"Delayed",61:"Interrupted",62:"Abandoned",63:"Extension",64:"Cancelled",99:"TBD"},C=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,0,50,51,52,53,54,55,56,57,58,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99],O=[3,1,2,4],I=[{sportName:"Soccer",sportType:1,i18nKey:"lbl_Soccer"},{sportName:"Basketball",sportType:2,i18nKey:"lbl_basketball"}],E=function(e){try{return JSON.parse(e),!0}catch(e){return!1}},M=function(e,t){var a='"}},',s=e.lastIndexOf(a);return -1===s?e:"".concat(e.slice(0,s+a.length-1)).concat(t?"]}":"]}}")},L=(n=(0,p.Z)(x().mark(function e(t){var a,s,n,i,r,o,l,c,d,m,u,p,h;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.url,s=t.options,n=t.isLiveScoreToday,e.next=3,fetch(a,s);case 3:if((i=e.sent).ok){e.next=6;break}throw Error("An error occurred while fetching the data.");case 6:r=i.body.getReader(),o="";case 8:return e.next=11,r.read();case 11:if(c=(l=e.sent).done,d=l.value,!c){e.next=16;break}return e.abrupt("break",33);case 16:var x,j;if(x=o,j=d,!E(m=M(o=x+new TextDecoder().decode(j),n))){e.next=31;break}
1if(e.prev=19,h=JSON.parse(m),!n||!(h.match&&h.match.length>=15)){e.next=24;break}return e.abrupt("return",h);case 24:if(!(null!=h&&null!==(u=h.Result)&&void 0!==u&&u.Match&&(null==h?void 0:null===(p=h.Result)||void 0===p?void 0:p.Match.length)>=15)){e.next=26;break}return e.abrupt("return",h);case 26:e.next=31;break;case 28:e.prev=28,e.t0=e.catch(19),console.error("Error parsing partial JSON:",e.t0.message);case 31:e.next=8;break;case 33:return e.prev=33,e.abrupt("return",JSON.parse(o));case 37:throw e.prev=37,e.t1=e.catch(33),Error("Failed to parse the received data as JSON.");case 40:case"end":return e.stop()}},e,null,[[19,28],[33,37]])})),function(e){return n.apply(this,arguments)}),G=a(5274),R="https://wonderfulnextapi.com/api",A=(0,G.Z)(),H=function(){var e=(0,d.useContext)(m.Re).envConfig;return{keyToken:(null==e?void 0:e.liveScoreKeyToken)||"",bearerToken:null!=e&&e.liveScoreBearerToken?"Bearer ".concat(e.liveScoreBearerToken):""}},F=function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1.0",a=H(),s=a.keyToken,n=a.bearerToken,i=(0,w.ZP)(function(){return e?["".concat(R,"/").concat(t,"/Match/Soccer/Today/"),{method:"POST",headers:{"Content-Type":"application/json",key:s,Authorization:n}}]:null},T),r=i.data,o=i.error;return{isLoading:!r&&!o,soccerToday:r}},D=function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1.0",a=H(),s=a.keyToken,n=a.bearerToken,i=(0,w.ZP)(function(){return e?["".concat(R,"/").concat(t,"/Match/Basketball/Today/"),{method:"POST",headers:{"Content-Type":"application/json",key:s,Authorization:n}}]:null},T),r=i.data,o=i.error;return{isLoading:!r&&!o,basketballToday:r}},U=function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1.0",a=H(),s=a.keyToken,n=a.bearerToken,i=(0,w.ZP)(function(){return e?["".concat(R,"/").concat(t,"/Match/Cricket/Today/"),{method:"POST",headers:{"Content-Type":"application/json",key:s,Authorization:n}}]:null},T),r=i.data,o=i.error;return{isLoading:!r&&!o,cricketToday:r}},B=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1.0",s=H(),n=s.keyToken,i=s.bearerToken,r=(0,w.ZP)(function(){return t?{url:"".concat(R,"/").concat(a,"/Match/Soccer/Date"),options:{method:"POST",body:JSON.stringify({Date:"".concat(A,"-").concat(e,"-").concat(t)}),headers:{key:n,"Content-Type":"application/json",Authorization:i}},isToday:!1}:null},L,{revalidateOnFocus:!1,refreshInterval:6e4}),o=r.data,l=r.error;return{soccerResult:o,isResultLoading:!o&&!l}},W=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1.0",s=H(),n=s.keyToken,i=s.bearerToken,r=(0,w.ZP)(function(){return t?{url:"".concat(R,"/").concat(a,"/Match/Basketball/Date"),options:{method:"POST",body:JSON.stringify({Date:"".concat(A,"-").concat(e,"-").concat(t)}),headers:{key:n,"Content-Type":"application/json",Authorization:i}},isToday:!1}:null},L,{revalidateOnFocus:!1,refreshInterval:6e4}),o=r.data,l=r.error;return{basketballResult:o,isResultLoading:!o&&!l}},K=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1.0",s=H(),n=s.keyToken,i=s.bearerToken,r=(0,w.ZP)(function(){return t?{url:"".concat(R,"/").concat(a,"/Match/Cricket/Date"),options:{method:"POST",body:JSON.stringify({Date:"".concat(A,"-").concat(e,"-").concat(t)}),headers:{key:n,"Content-Type":"application/json",Authorization:i}},isToday:!1}:null},L,{revalidateOnFocus:!1,refreshInterval:6e4}),o=r.data,l=r.error;return{cricketResult:o,isResultLoading:!o&&!l}},z=function(e){var t=(0,d.useContext)(v.pI)[0],a={league:e.LeagueEn||e.CompetitionName,homeTeam:e.HomeTeam.NameEn||e.HomeTeam.Name,awayTeam:e.AwayTeam.NameEn||e.AwayTeam.Name},s={league:e.LeagueZh||e.LeagueCn||e.CompetitionName,homeTeam:e.HomeTeam.NameZh||e.HomeTeam.NameCn||e.HomeTeam.Name,awayTeam:e.AwayTeam.NameZh||e.AwayTeam.NameCn||e.AwayTeam.Name};return{languageContext:({en:a,ch:s,cs:s,zhcn:s,jp:a,ko:a,th:a,vn:a,id:a,mm:a})[t.language]}},V=a(1709),J=function(e,t,a){var s="1H"===e?45:90;return t?(0,_.jsxs)(_.Fragment,{children:[e,t>s?(0,_.jsxs)(_.Fragment,{children:[s,"+ ",null!=a&&a.InjuryTime?null==a?void 0:a.InjuryTime:""]}):t&&(0,_.jsxs)(_.Fragment,{children:[t,"'"]})]}):e},q=function(e){if(!e)return"";var t=new Date(1e3*e),a=String(t.getMonth()+1).padStart(2,"0"),s=String(t.getDate()).padStart(2,"0");return"".concat(a,"/").concat(s)},Y=function(e){if(!e)return"";var t=new Date(1e3*e),a=String(t.getHours()).padStart(2,"0"),s=String(t.getMinutes()).padStart(2,"0");return"".concat(a,":").concat(s)},Q=function(e){var t="";switch(e){case P.OneHalf:t="Q1";break;case P.OneHalfEnd:t="End Q1";break;case P.TwoHalf:t="Q2";break;
1case P.TwoHalfEnd:t="End Q2";break;case P.ThreeHalf:t="Q3";break;case P.ThreeHalfEnd:t="End Q3";break;case P.FourHalf:t="Q4";break;default:t=k[e]}return t},X=function(e){var t,a,s,n,i=e.status,r=e.matchStatus,o=e.homeFullScore,l=e.awayFullScore,c=e.matchTime,d=e.schedule,m=e.scheduleTicks,u=e.dateShareZh,p=e.selectedSport,h=e.matchDate,x=e.startTime,j=e.homeTeam,v=(e.awayTeam,e.isResult);return"Basketball"===p?(s={},(0,Z.Z)(s,r,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"text-score",children:[o," ","-"," ",l]}),(0,_.jsx)("div",{className:"text-time",children:(0,Z.Z)({},r,(0,_.jsx)(_.Fragment,{children:Q(r)}))[r]})]})),(0,Z.Z)(s,P.NotStarted,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("span",{className:"text",children:d.slice(5,10).replace("-","/")}),(0,_.jsx)("div",{className:"text-time",children:d.slice(-8,-3)})]})),(0,Z.Z)(s,P.Ended,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("span",{className:"text",children:null==u?void 0:u.replace("-","/")}),(0,_.jsxs)("div",{className:"text-score",children:[o," ","-"," ",l]}),(0,_.jsx)("div",{className:"text-time",children:"Full Time"})]})),(0,Z.Z)(s,P.Delayed,(0,_.jsx)("div",{className:"text-time",children:(0,Z.Z)({},r,(0,_.jsx)(_.Fragment,{children:Q(r)}))[r]})),(0,Z.Z)(s,P.ToBeDetermined,(0,_.jsx)(_.Fragment,{children:k[r]?(0,_.jsx)("div",{className:"text-time",children:k[r]}):""})),s)[r]:"Cricket"===p?(n={},(0,Z.Z)(n,P.CricketStatus.Other,(0,_.jsx)("div",{children:"Other"})),(0,Z.Z)(n,P.CricketStatus.Completed,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("span",{className:"text",children:h}),(0,_.jsx)("div",{className:"text-time",children:"Finished"})]})),(0,Z.Z)(n,P.CricketStatus.Scheduled,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("span",{className:"text",children:h}),(0,_.jsx)("div",{className:"text-time",children:x})]})),(0,Z.Z)(n,P.CricketStatus.Live,(0,_.jsx)("span",{className:"text-live",children:"Live"})),n)[i]:(a={},(0,Z.Z)(a,i,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"text-score",children:[o," ","-"," ",l]}),(0,_.jsx)("div",{className:"text-time",children:(t={},(0,Z.Z)(t,i,(0,_.jsx)(_.Fragment,{children:k[i]?(0,_.jsx)("div",{className:"text-time",children:k[i]}):""})),(0,Z.Z)(t,P.FirstHalf,J("1H",c,j)),(0,Z.Z)(t,P.Halftime,"HT"),(0,Z.Z)(t,P.SecondHalf,J("2H",c,j)),t)[i]})]})),(0,Z.Z)(a,P.NotStarted,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("span",{className:"text",children:q(m)}),(0,_.jsx)("div",{className:"text-time",children:Y(m)})]})),(0,Z.Z)(a,P.Ended,(0,_.jsxs)(_.Fragment,{children:[v?"":(0,_.jsx)("span",{className:"text",children:null==u?void 0:u.replace("-","/")}),(0,_.jsxs)("div",{className:"text-score",children:[o," ","-"," ",l]}),(0,_.jsx)("div",{className:"text-time",children:"Full Time"})]})),a)[i]},ee=function(e){var t,a,s,n,i,r,o=e.sportData,l=e.selectedSport,c=e.isResult,u=z(o).languageContext,p=(0,d.useContext)(v.pI)[0],h=(0,m.Mj)(),x=h.leagueTeamLogoTimestamp,j=h.siteName,N=[S.Z.ocean99,S.Z.PICA88];return(0,_.jsxs)("div",{className:"ls-match".concat(N.includes(j)?" ls-match--no-link":""),onClick:N.includes(j)?void 0:function(){return(0,V.l)(l,o.MatchId,p.language)},children:[(0,_.jsx)("div",{className:"ls-match__header",children:(0,_.jsx)("span",{className:"text",children:null==u?void 0:u.league})}),(0,_.jsxs)("div",{className:"ls-match__main",children:[(0,_.jsxs)("div",{className:"ls-match__team-home",children:[(0,_.jsx)("span",{className:"text",children:null==u?void 0:u.homeTeam}),(0,_.jsx)("div",{className:"team-logo",children:o.HomeTeam.Icon?(0,_.jsx)("img",{src:x?"".concat(o.HomeTeam.Icon,"?v=").concat(x):o.HomeTeam.Icon,alt:"icon"}):null}),{Cricket:(0,_.jsx)(_.Fragment,{children:null!==o.HomeTeam.Scores?(0,_.jsxs)("span",{className:"text-score",children:[null===(t=o.HomeTeam)||void 0===t?void 0:t.Scores,"(",null===(a=o.HomeTeam)||void 0===a?void 0:a.Overs,"ov)"]}):""})}[l]]}),(0,_.jsx)("div",{className:"ls-match__info",children:(0,_.jsx)(X,{status:o.Status,matchStatus:o.MatchStatus,homeTeam:o.HomeTeam,awayTeam:o.AwayTeam,homeFullScore:null===(s=o.HomeTeam)||void 0===s?void 0:s.FullScore,awayFullScore:null===(n=o.AwayTeam)||void 0===n?void 0:n.FullScore,matchTime:o.MatchTime,schedule:o.Schedule,scheduleTicks:o.ScheduleTicks,dateShareZh:null==o?void 0:o.DateShareZh,matchDate:o.MatchDate,startTime:o.StartTime,selectedSport:l,isResult:c})}),(0,_.jsxs)("div",{className:"ls-match__team-away",children:[(0,_.jsx)("div",{className:"team-logo",children:o.AwayTeam.Icon?(0,_.jsx)("img",{src:x?"".concat(o.AwayTeam.Icon,"?v=").concat(x):o.AwayTeam.Icon,alt:"icon"}):null}),(0,_.jsx)("span",{className:"text",children:null==u?void 0:u.awayTeam}),{Cricket:(0,_.jsx)(_.Fragment,{children:null!==o.AwayTeam.Scores?(0,_.jsxs)("span",{className:"text-score",children:[null===(i=o.AwayTeam)||void 0===i?void 0:i.Scores,"(",null===(r=o.AwayTeam)||void 0===r?void 0:r.Overs,"ov)"]}):""})}[l]]})]})]})},et=function(){var e=(0,m.Mj)().composePath,t=(0,j.$G)().t;return(0,_.jsx)("div",{className:"empty empty--no-event",children:(0,_.jsxs)("div",{className:"empty__container",children:[(0,_.jsx)("div",{className:"img",children:(0,_.jsx)("img",{src:e({pathType:f.Z.siteImage,pathName:"empty.png"}),alt:""})}),(0,_.jsx)("div",{className:"img",children:(0,_.jsx)("img",{src:e({pathType:f.Z.siteImage,pathName:"kv.svg"}),alt:""})}),(0,_.jsx)("div",{className:"text",children:t("lbl_NomatchesMsg1")}),(0,_.jsx)("div",{className:"text",children:t("lbl_NomatchesMsg2")})]})})},ea={Soccer:1,Basketball:2,Tennis:5,Cricket:50},es=function(e){var t=e.selectedSport,a=e.children;return(0,_.jsx)("div",{className:"live-score__group live-score__group--sport".concat(ea[t]),"data-open":"true",children:a})},en=a(7935),ei=a(2777),er=a(2262),eo=a(5959),el=a(2179),ec=a(7247),ed=function(e){(0,eo.Z)(s,e);var t,a=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,a=(0,ec.Z)(s);if(t){var n=(0,ec.Z)(this).constructor;e=Reflect.construct(a,arguments,n)}else e=a.apply(this,arguments);return(0,el.Z)(this,e)});function s(e){var t;return(0,ei.Z)(this,s),(t=a.call(this,e)).state={hasError:!1},t}return(0,er.Z)(s,[{key:"render",value:function(){return this.state.hasError?(console.log("Something went wrong"),null):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0}}}]),s}(d.Component),em=function(e){var t,a=e.siteName,s=e.children;return(t={},(0,Z.Z)(t,S.Z.Nova88,(0,_.jsx)("div",{className:"live-score__tab",children:(0,_.jsx)("div",{className:"tabs tabs--underline",children:s})})),(0,Z.Z)(t,S.Z.IBCBet,(0,_.jsx)("div",{className:"live-score__tab",children:(0,_.jsx)("div",{className:"tabs tabs--underline",children:s})})),(0,Z.Z)(t,S.Z.PICA88,(0,_.jsx)("div",{className:"live-score__tab",children:(0,_.jsx)("div",{className:"tabs tabs--underline",children:s})})),(0,Z.Z)(t,S.Z.id8899,(0,_.jsx)("div",{className:"live-score__tab",children:(0,_.jsx)("div",{className:"tabs tabs--underline",children:s})})),(0,Z.Z)(t,S.Z.viva88,(0,_.jsx)("div",{className:"live-score__tab",children:(0,_.jsx)("div",{className:"tabs tabs--pills",children:s})})),(0,Z.Z)(t,S.Z.bong88,(0,_.jsx)("div",{className:"live-score__tab",children:(0,_.jsx)("div",{className:"tabs tabs--pills",children:s})})),(0,Z.Z)(t,S.Z.bettha88,(0,_.jsx)("div",{className:"live-score__tab",children:(0,_.jsx)("div",{className:"tabs tabs--underline",children:s})})),(0,Z.Z)(t,S.Z.taraPlays,(0,_.jsx)("div",{className:"live-score__tab",children:(0,_.jsx)("div",{className:"tabs tabs--underline",children:s})})),(0,Z.Z)(t,S.Z.fifabet,(0,_.jsx)("div",{className:"live-score__tab",children:(0,_.jsx)("div",{className:"tabs tabs--underline",children:s})})),(0,Z.Z)(t,S.Z.ocean99,(0,_.jsx)("div",{className:"live-score__tab",children:(0,_.jsx)("div",{className:"tabs tabs--underline",children:s})})),t)[a]},eu=function(e){var t,a,s,n,i,r=e.todaySelectedSport,o=F(),l=o.soccerToday;return o.isLoading?(0,_.jsx)(en.Z,{}):l?(0,_.jsx)(es,{selectedSport:r,children:null==l?void 0:null===(t=l.Result)||void 0===t?void 0:null===(a=t.Match)||void 0===a?void 0:null===(s=a.filter(function(e){return e.HomeTeam.NameEn&&e.AwayTeam.NameEn&&e.HomeTeam.Icon&&e.AwayTeam.Icon}))||void 0===s?void 0:null===(n=s.slice(0,10))||void 0===n?void 0:null===(i=n.sort(function(e,t){return C.indexOf(e.Status)-C.indexOf(t.Status)}))||void 0===i?void 0:i.map(function(e,t){var a="".concat(e.MatchId,"-").concat(t);return(0,_.jsx)(ee,{selectedSport:r,sportData:e},a)})}):(0,_.jsx)(et,{})},ep=function(e){var t,a,s,n,i,r=e.todaySelectedSport,o=D(),l=o.basketballToday;return o.isLoading?(0,_.jsx)(en.Z,{}):l?(0,_.jsx)(es,{selectedSport:r,children:null==l?void 0:null===(t=l.Result)||void 0===t?void 0:null===(a=t.Match)||void 0===a?void 0:null===(s=a.filter(function(e){return e.HomeTeam.NameEn&&e.AwayTeam.NameEn&&e.HomeTeam.Icon&&e.AwayTeam.Icon}))||void 0===s?void 0:null===(n=s.slice(0,10))||void 0===n?void 0:null===(i=n.sort(function(e,t){return C.indexOf(e.MatchStatus)-C.indexOf(t.MatchStatus)}))||void 0===i?void 0:i.map(function(e,t){return(0,_.jsx)(ee,{selectedSport:r,sportData:e},"".concat(e.MatchId,"-").concat(t))})}):(0,_.jsx)(et,{})},eh=function(e){return e.todaySelectedSport,[]},ex=function(e){var t,a,s,n,i,r=e.todaySelectedSport,o=U(),l=o.cricketToday;return o.isLoading?(0,_.jsx)(en.Z,{}):l?(0,_.jsx)(es,{selectedSport:r,children:null==l?void 0:null===(t=l.Result)||void 0===t?void 0:null===(a=t.Match)||void 0===a?void 0:null===(s=a.filter(function(e){return e.HomeTeam.Name&&e.AwayTeam.Name&&e.HomeTeam.Icon&&e.AwayTeam.Icon}))||void 0===s?void 0:null===(n=s.slice(0,10))||void 0===n?void 0:null===(i=n.sort(function(e,t){return O.indexOf(e.Status)-O.indexOf(t.Status)}))||void 0===i?void 0:i.map(function(e,t){var a="".concat(e.MatchId,"-").concat(t);return(0,_.jsx)(ee,{selectedSport:r,sportData:e},a)})}):(0,_.jsx)(et,{})},ej=function(){var e=(0,m.Mj)().siteName,t=(0,d.useState)("Soccer"),a=t[0],s=t[1],n=(0,j.$G)().t,i=function(e,t){window.scrollTo({behavior:"smooth",top:document.querySelector(e).getBoundingClientRect().top-document.body.getBoundingClientRect().top-t})};return(0,_.jsxs)(ed,{children:[(0,_.jsx)(em,{siteName:e,children:(0,_.jsx)("div",{className:"tabs__content",children:I.map(function(e){var t=e.sportName,r=e.sportType,o=e.i18nKey;return(0,_.jsx)("div",{className:"tab","data-selected":a===t,onClick:function(){i(".main__content",68),s(t)},children:(0,_.jsxs)("a",{className:"btn",children:[(0,_.jsx)("i",{className:"icon icon--sport".concat(r)}),(0,_.jsx)("span",{className:"text",children:n(o)})]})},t)})})}),{Soccer:(0,_.jsx)(eu,{todaySelectedSport:a}),Basketball:(0,_.jsx)(ep,{todaySelectedSport:a}),Tennis:(0,_.jsx)(eh,{todaySelectedSport:a}),Cricket:(0,_.jsx)(ex,{todaySelectedSport:a})}[a]]})},ev=function(e){var t=e.toString();return t.length<2&&(t="0".concat(t)),t},eN=function(){for(var e=[],t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],a=new Date().getTime(),s=1;s<8;s+=1){var n=new Date(a-864e5*s),i=ev(n.getMonth()+1),r=ev(n.getDate()),o=n.getDay();e.push({month:i,date:r,day:t[o]})}return{lastWeek:e.reverse()}},ef=function(e){var t=(0,d.useContext)(v.pI)[0],a={League:e.LeagueEn||e.CompetitionName,HomeTeam:e.HomeTeam.NameEn||e.HomeTeam.Name,AwayTeam:e.AwayTeam.NameEn||e.AwayTeam.Name};return{languageContext:({en:a,ch:{League:e.LeagueZh||e.LeagueCn||e.CompetitionName,HomeTeam:e.HomeTeam.NameZh||e.HomeTeam.NameCn||e.HomeTeam.Name,AwayTeam:e.AwayTeam.NameZh||e.AwayTeam.NameCn||e.AwayTeam.Name},jp:a,vn:a,mm:a})[t.language]}},eg=function(e,t,a){var s="1H"===e?45:90;return t?(0,_.jsxs)(_.Fragment,{children:[e,t>s?(0,_.jsxs)(_.Fragment,{children:[s,"+ ",null!=a&&a.InjuryTime?null==a?void 0:a.InjuryTime:""]}):t&&(0,_.jsxs)(_.Fragment,{children:[t,"'"]})]}):e},eb=function(e){if(!e)return"";var t=new Date(1e3*e),a=String(t.getMonth()+1).padStart(2,"0"),s=String(t.getDate()).padStart(2,"0");return"".concat(a,"/").concat(s)},e_=function(e){if(!e)return"";var t=new Date(1e3*e),a=String(t.getHours()).padStart(2,"0"),s=String(t.getMinutes()).padStart(2,"0");return"".concat(a,":").concat(s)},ey=function(e){var t="";switch(e){case P.OneHalf:t="Q1";break;case P.OneHalfEnd:t="End Q1";break;case P.TwoHalf:t="Q2";break;
1case P.TwoHalfEnd:t="End Q2";break;case P.ThreeHalf:t="Q3";break;case P.ThreeHalfEnd:t="End Q3";break;case P.FourHalf:t="Q4";break;default:t=k[e]}return t},eZ=function(e){var t,a,s,n,i=e.Status,r=e.MatchStatus,o=e.homeFullScore,l=e.awayFullScore,c=e.MatchTime,d=e.Schedule,m=e.ScheduleTicks,u=e.DateShareZh,p=e.selectedSport,h=e.MatchDate,x=e.StartTime,j=e.HomeTeam,v=(e.AwayTeam,e.isResult);return"Basketball"===p?(s={},(0,Z.Z)(s,r,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"text-score",children:[o," ","-"," ",l]}),(0,_.jsx)("div",{className:"text-time",children:(0,Z.Z)({},r,(0,_.jsx)(_.Fragment,{children:ey(r)}))[r]})]})),(0,Z.Z)(s,P.NotStarted,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("span",{className:"text",children:d.slice(5,10).replace("-","/")}),(0,_.jsx)("div",{className:"text-time",children:d.slice(-8,-3)})]})),(0,Z.Z)(s,P.Ended,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("span",{className:"text",children:u}),(0,_.jsxs)("div",{className:"text-score",children:[o," ","-"," ",l]}),(0,_.jsx)("div",{className:"text-time",children:"Full Time"})]})),(0,Z.Z)(s,P.Delayed,(0,_.jsx)("div",{className:"text-time",children:(0,Z.Z)({},r,(0,_.jsx)(_.Fragment,{children:ey(r)}))[r]})),(0,Z.Z)(s,P.ToBeDetermined,(0,_.jsx)(_.Fragment,{children:k[r]?(0,_.jsx)("div",{className:"text-time",children:k[r]}):""})),s)[r]:"Cricket"===p?(n={},(0,Z.Z)(n,P.CricketStatus.Other,(0,_.jsx)("div",{children:"Other"})),(0,Z.Z)(n,P.CricketStatus.Completed,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("span",{className:"text",children:h}),(0,_.jsx)("div",{className:"text-time",children:"Finished"})]})),(0,Z.Z)(n,P.CricketStatus.Scheduled,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("span",{className:"text",children:h}),(0,_.jsx)("div",{className:"text-time",children:x})]})),(0,Z.Z)(n,P.CricketStatus.Live,(0,_.jsx)("span",{className:"text-live",children:"Live"})),n)[i]:(a={},(0,Z.Z)(a,i,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"text-score",children:[o," ","-"," ",l]}),(0,_.jsx)("div",{className:"text-time",children:(t={},(0,Z.Z)(t,i,(0,_.jsx)(_.Fragment,{children:k[i]?(0,_.jsx)("div",{className:"text-time",children:k[i]}):""})),(0,Z.Z)(t,P.FirstHalf,eg("1H",c,j)),(0,Z.Z)(t,P.Halftime,"HT"),(0,Z.Z)(t,P.SecondHalf,eg("2H",c,j)),t)[i]})]})),(0,Z.Z)(a,P.NotStarted,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("span",{className:"text",children:eb(m)}),(0,_.jsx)("div",{className:"text-time",children:e_(m)})]})),(0,Z.Z)(a,P.Ended,(0,_.jsxs)(_.Fragment,{children:[v?"":(0,_.jsx)("span",{className:"text",children:u}),(0,_.jsxs)("div",{className:"text-score",children:[o," ","-"," ",l]}),(0,_.jsx)("div",{className:"text-time",children:"Full Time"})]})),a)[i]},eS=function(e){var t,a,s,n,i,r=e.sportData,o=e.selectedSport,l=e.isResult,c=ef(r).languageContext,m=(0,d.useContext)(v.pI)[0];return(0,_.jsxs)("div",{className:"ls-match",onClick:function(){return(0,V.l)(o,r.MatchId,m.language)},children:[(0,_.jsx)("div",{className:"ls-match__header",children:(0,_.jsx)("span",{className:"text",children:null==c?void 0:c.League})}),(0,_.jsxs)("div",{className:"ls-match__main",children:[(0,_.jsxs)("div",{className:"ls-match__team-home",children:[(0,_.jsx)("span",{className:"text",children:null==c?void 0:c.HomeTeam}),(0,_.jsx)("div",{className:"team-logo",children:r.HomeTeam.Icon&&(0,_.jsx)("img",{src:r.HomeTeam.Icon,alt:"icon"})}),{Cricket:(0,_.jsx)(_.Fragment,{children:(0,Z.Z)({},P.CricketStatus.Completed,(0,_.jsxs)("span",{className:"text-score",children:[null===(t=r.HomeTeam)||void 0===t?void 0:t.Scores,"(",r.HomeTeam.Overs,"ov)"]}))[r.Status]})}[o]]}),(0,_.jsx)("div",{className:"ls-match__info",children:(0,_.jsx)(eZ,{Status:r.Status,MatchStatus:r.MatchStatus,HomeTeam:r.HomeTeam,AwayTeam:r.AwayTeam,homeFullScore:null===(a=r.HomeTeam)||void 0===a?void 0:a.FullScore,awayFullScore:null===(s=r.AwayTeam)||void 0===s?void 0:s.FullScore,MatchTime:r.MatchTime,Schedule:r.Schedule,ScheduleTicks:r.ScheduleTicks,DateShareZh:r.DateShareZh,MatchDate:r.MatchDate,StartTime:r.StartTime,selectedSport:o,isResult:l})}),(0,_.jsxs)("div",{className:"ls-match__team-away",children:[(0,_.jsx)("div",{className:"team-logo",children:r.AwayTeam.Icon&&(0,_.jsx)("img",{src:r.AwayTeam.Icon,alt:"icon"})}),(0,_.jsx)("span",{className:"text",children:null==c?void 0:c.AwayTeam}),{Cricket:(0,_.jsx)(_.Fragment,{children:null!==r.AwayTeam.Scores?(0,_.jsxs)("span",{className:"text-score",children:[null===(n=r.AwayTeam)||void 0===n?void 0:n.Scores,"(",null===(i=r.AwayTeam)||void 0===i?void 0:i.Over
1s,"ov)"]}):""})}[o]]})]})]})};function ew(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function eT(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ew(Object(a),!0).forEach(function(t){(0,Z.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ew(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var eP=function(e){var t=e.selectedTime,a=e.setSelectedTime,s=e.resultSelectedSport,n=eN().lastWeek,i=(0,d.useState)(n.map(function(e){return eT(eT({},e),{},{isSelected:e.date===n[0].date})})),r=i[0],o=i[1],l=function(e){o(r.map(function(t){return eT(eT({},t),{},{isSelected:t.date===e})}))},c=function(e,t){l(t),a([e,t])};return(0,d.useEffect)(function(){c(t[0]||n[0].month,t[1]||n[0].date)},[s]),(0,_.jsx)(_.Fragment,{children:r.map(function(e){var t=e.month,a=e.date,s=e.day,n=e.isSelected;return(0,_.jsx)("div",{className:"tab","data-selected":n,onClick:function(){return c(t,a)},children:(0,_.jsxs)("a",{className:"btn",children:[(0,_.jsx)("span",{className:"text",children:a}),(0,_.jsx)("span",{className:"text text--small",children:s})]})},s)})})},ek=function(e){var t,a,s,n,i,r=e.selectedTime,o=e.selectedSport,l=eN().lastWeek,c=B(r[0]||l[0].month,r[1]||l[0].date),d=c.soccerResult;return c.isResultLoading?(0,_.jsx)(en.Z,{}):d?(0,_.jsx)(es,{selectedSport:o,children:null==d?void 0:null===(t=d.Result)||void 0===t?void 0:null===(a=t.Match)||void 0===a?void 0:null===(s=a.filter(function(e){return(null==e?void 0:e.HomeTeam.NameEn)&&(null==e?void 0:e.AwayTeam.NameEn)&&(null==e?void 0:e.HomeTeam.Icon)&&(null==e?void 0:e.AwayTeam.Icon)}))||void 0===s?void 0:null===(n=s.filter(function(e){return 50===e.Status||50===e.MatchStatus||2===e.Status}))||void 0===n?void 0:null===(i=n.slice(0,10))||void 0===i?void 0:i.map(function(e,t){var a="".concat(e.MatchId,"-").concat(t);return(0,_.jsx)(eS,{selectedSport:"Soccer",sportData:e,isResult:!0},a)})}):(0,_.jsx)(et,{})},eC=function(e){var t,a,s,n,i,r=e.selectedTime,o=e.selectedSport,l=eN().lastWeek,c=W(r[0]||l[0].month,r[1]||l[0].date),d=c.basketballResult;return c.isResultLoading?(0,_.jsx)(en.Z,{}):d?(0,_.jsx)(es,{selectedSport:o,children:null==d?void 0:null===(t=d.Result)||void 0===t?void 0:null===(a=t.Match)||void 0===a?void 0:null===(s=a.filter(function(e){return(null==e?void 0:e.HomeTeam.NameEn)&&(null==e?void 0:e.AwayTeam.NameEn)&&(null==e?void 0:e.HomeTeam.Icon)&&(null==e?void 0:e.AwayTeam.Icon)}))||void 0===s?void 0:null===(n=s.filter(function(e){return 50===e.Status||50===e.MatchStatus||2===e.Status}))||void 0===n?void 0:null===(i=n.slice(0,10))||void 0===i?void 0:i.map(function(e,t){return(0,_.jsx)(eS,{selectedSport:"Basketball",sportData:e,isResult:!0},"".concat(e.MatchId,"-").concat(t))})}):(0,_.jsx)(et,{})},eO=function(){return[]},eI=function(e){var t,a,s,n,i,r=e.selectedTime,o=e.selectedSport,l=eN().lastWeek,c=K(r[0]||l[0].month,r[1]||l[0].date),d=c.cricketResult;return c.isResultLoading?(0,_.jsx)(en.Z,{}):d?(0,_.jsx)(es,{selectedSport:o,children:null==d?void 0:null===(t=d.Result)||void 0===t?void 0:null===(a=t.Match)||void 0===a?void 0:null===(s=a.filter(function(e){return(null==e?void 0:e.HomeTeam.Name)&&(null==e?void 0:e.AwayTeam.Name)&&(null==e?void 0:e.HomeTeam.Icon)&&(null==e?void 0:e.AwayTeam.Icon)}))||void 0===s?void 0:null===(n=s.filter(function(e){return 50===e.Status||50===e.MatchStatus||2===e.Status}))||void 0===n?void 0:null===(i=n.slice(0,10))||void 0===i?void 0:i.map(function(e,t){return(0,_.jsx)(eS,{selectedSport:"Cricket",sportData:e,isResult:!0},"".concat(e.MatchId,"-").concat(t))})}):(0,_.jsx)(et,{})},eE=function(){var e=(0,j.$G)().t,t=(0,d.useState)("Soccer"),a=t[0],s=t[1],n=(0,d.useState)([]),i=n[0],r=n[1],o=(0,d.useState)([]),l=o[0],c=o[1],m=(0,d.useState)([]),u=m[0],p=m[1],h=(0,d.useState)([]),x=h[0],v=h[1];return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"live-score__tab",children:[(0,_.jsx)("div",{className:"tabs tabs--pills",children:(0,_.jsx)("div",{className:"tabs__content",children:I.map(function(t){var n=t.sportName,i=t.sportType,r=t.i18nKey;return(0,_.jsx)("div",{className:"tab","data-selected":a===n,onClick:function(){return s(n)},children:(0,_.jsxs)("a",{className:"btn",children:[(0,_.jsx)("i",{className:"icon icon--sport".concat(i)}),(0,_.jsx)("span",{className:"text",children:e(r)})]})},n)})})}),(0,_.jsx)("div",{className:"tabs tabs--underline tabs--date","data-open":"true",children:(0,_.jsx)("div",{className:"tabs__content",children:{Soccer:(0,_.jsx)(eP,{selectedTime:i,setSelectedTime:r,resultSelectedSport:a}),Basketball:(0,_.jsx)(eP,{selectedTime:l,setSelectedTime:c,resultSelectedSport:a}),Tennis:(0,_.jsx)(eP,{selectedTime:u,setSelectedTime:p,resultSelectedSport:a}),Cricket:(0,_.jsx)(eP,{selectedTime:x,setSelectedTime:v,resultSelectedSport:a})}[a]})})]}),{Soccer:(0,_.jsx)(ek,{selectedTime:i,selectedSport:a}),Basketball:(0,_.jsx)(eC,{selectedTime:l,selectedSport:a}),Tennis:(0,_.jsx)(eO,{selectedTime:u,selectedSport:a}),Cricket:(0,_.jsx)(eI,{selectedTime:x,selectedSport:a})}[a]]})},eM=function(e){var t=e.isOnTodayTab,a=e.setIsOnTodayTab,s=(0,j.$G)().t;return(0,_.jsx)("div",{className:"live-score__option",children:(0,_.jsxs)("div",{className:"switch-bar",children:[(0,_.jsx)("a",{className:"btn",onClick:function(){return a(!0)},"data-selected":t,children:(0,_.jsx)("span",{className:"text",children:s("lbl_today")})}),(0,_.jsx)("a",{className:"btn",onClick:function(){return a(!1)},"data-selected":!t,children:(0,_.jsx)("span",{className:"text",children:s("lbl_Result")})})]})})},eL=function(){var e,t=(0,m.Mj)(),a=t.siteName,s=t.loginWebEnableLiveScore,n=(0,d.useState)(!0),i=n[0],r=n[1];return s?(0,_.jsxs)("div",{className:"live-score","data-open":"true",children:[(e={},(0,Z.Z)(e,S.Z.viva88,(0,_.jsx)(eM,{isOnTodayTab:i,setIsOnTodayTab:r})),(0,Z.Z)(e,S.Z.bong88,(0,_.jsx)(eM,{isOnTodayTab:i,setIsOnTodayTab:r})),e)[a],i?(0,_.jsx)(ej,{}):(0,_.jsx)(eE,{})]}):null},eG=function(){return(0,_.jsx)("div",{children:"News"})},eR=function(e,t){var a=(0,w.ZP)("".concat("http://glombi.accordde.com/video","/SoccerList-").concat(e[0],".json?v=").concat(t),T,{revalidateOnFocus:!1}),s=a.data,n=a.error;return{videoData:s,isLoading:!s&&!n}},eA=function(){var e=(0,m.Mj)(),t=(e.siteName,e.allowedIp,e.supportedLanguages),a=(e.imageDomain,e.versionNumber),s=(0,d.useState)({primaryVideo:[],secondaryVideo:[],otherVideo:[]}),n=(s[0],s[1]),i=eR(t,void 0===a?"1.0":a),r=i.videoData;return i.isLoading,(0,d.useEffect)(function(){r&&n({primaryVideo:[r[0]],secondaryVideo:[r[1],r[2]],otherVideo:r.slice(2)})},[r]),[]},eH=a(7144),eF=a(8275),eD=function(e){var t=e.handleSelect,a=e.isSelected,s=(0,j.$G)().t,n=[{name:"Products",i18nKey:"lbl_Products"},{name:"Live Score",i18nKey:"lbl_LiveScore"}],i=(0,d.useState)(n),r=i[0],o=i[1],l=(0,eF.d)().width;return(0,d.useEffect)(function(){if("mobile"===(0,eH.L_)()&&l<u.Z.mediumWidth){o(n);return}l>u.Z.mediumWidth?o([]):o(n)},[l]),(0,_.jsx)("div",{className:"tabs tabs--underline",children:(0,_.jsx)("div",{className:"tabs__content",children:r.map(function(e){return(0,_.jsx)("div",{className:"tab","data-selected":a===e.name,onClick:function(){return t(e.name)}
1,role:"Products"===e.name?"mobile-visible":"",children:(0,_.jsx)("a",{className:"btn",children:(0,_.jsx)("span",{className:"text",children:s(e.i18nKey)})})},e.name)})})})},eU=function(e){return e.handleSelect,e.isSelected,(0,j.$G)().t,[]},eB=function(e){var t,a=e.handleSelect,s=e.isSelected,n=(0,m.Mj)().siteName;return(t={},(0,Z.Z)(t,S.Z.Nova88,(0,_.jsx)(eU,{handleSelect:a,isSelected:s})),(0,Z.Z)(t,S.Z.IBCBet,(0,_.jsx)(eU,{handleSelect:a,isSelected:s})),(0,Z.Z)(t,S.Z.PICA88,(0,_.jsx)(eU,{handleSelect:a,isSelected:s})),(0,Z.Z)(t,S.Z.id8899,(0,_.jsx)(eU,{handleSelect:a,isSelected:s})),(0,Z.Z)(t,S.Z.viva88,(0,_.jsx)(eD,{handleSelect:a,isSelected:s})),(0,Z.Z)(t,S.Z.bong88,(0,_.jsx)(eD,{handleSelect:a,isSelected:s})),(0,Z.Z)(t,S.Z.bettha88,(0,_.jsx)(eU,{handleSelect:a,isSelected:s})),(0,Z.Z)(t,S.Z.taraPlays,(0,_.jsx)(eU,{handleSelect:a,isSelected:s})),(0,Z.Z)(t,S.Z.fifabet,(0,_.jsx)(eU,{handleSelect:a,isSelected:s})),(0,Z.Z)(t,S.Z.ocean99,(0,_.jsx)(eU,{handleSelect:a,isSelected:s})),t)[n]},eW=a(9897),eK=a(3724),ez=a(6501),eV=a(745),e$=a(64),eJ={nova88:{license:"19079437"},viva88:{license:"14792028"},bong88:{license:"14792028"},fifabet:{license:"19079437"},ocean99:{license:"19079437"}},eq=function(e){var t=e.siteName,a=e.layoutType,s=(0,j.$G)().t;return(0,_.jsx)("a",{className:"btn",onClick:function(e){e.preventDefault(),e.stopPropagation(),function(e){var t,a,s=eJ[e];if(window.LiveChatWidget){window.LiveChatWidget.call("maximize");return}var n=(0,_.jsx)(e$._E,{license:s.license,visibility:"maximized",customerName:(t=(null==e?void 0:e.charAt(0).toUpperCase())+(null==e?void 0:e.slice(1)),a=function(){if(window.innerWidth<=768)return"Mobile";if(navigator.userAgentData)return navigator.userAgentData.mobile?"Mobile":"Desktop";var e=navigator.userAgent.toLowerCase();return/mobile|android|iphone|ipad|phone/i.test(e)?"Mobile":"Desktop"}(),"".concat(t,"UserNonLogin-").concat(a)),onNewEvent:function(e){console.log("LiveChatWidget.onNewEvent",e)},onVisibilityChanged:function(e){switch(e.visibility){case"maximized":break;case"minimized":window.LiveChatWidget&&window.LiveChatWidget.call("hide")}}}),i=document.body.appendChild(document.createElement("div"));(0,eV.createRoot)(i).render(n)}(t)},children:"rightNav"===a?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("i",{className:"icon icon--social-live-chat-outline"}),(0,_.jsx)("span",{className:"text",children:s("lbl_LiveChat")})]}):(0,_.jsx)("i",{className:"icon icon--gradient-third",children:(0,_.jsx)("i",{className:"icon icon--social-live-chat-outline"})})})},eY=function(e){var t=e.siteName,a=e.layoutType,s=(0,j.$G)().t;return(0,_.jsxs)("div",{className:"social-list",children:["rightNav"===a&&(0,_.jsx)("div",{className:"social-list__header",children:(0,_.jsx)("span",{className:"text",children:s("lbl_LiveSupport")})}),(0,_.jsx)("div",{className:"social-list__item",children:(0,_.jsx)(eq,{siteName:t,layoutType:a})})]})},eQ=function(e,t,a){(0,d.useEffect)(function(){var s=function(a){e.every(function(e){return e.current&&!e.current.contains(a.target)})&&t()};return document.addEventListener("mousedown",s),a&&document.addEventListener("touchstart",s),function(){document.removeEventListener("mousedown",s),a&&document.removeEventListener("touchstart",s)}},[e,t,a])},eX=function(e){var t=e.siteName,a=e.closeButtonRef,s=e.children,n=e.liveChat,i=(0,d.useContext)(v.pI),r=i[0].isShowRightNav,o=i[1],l=(0,d.useRef)(null),c=(0,d.useRef)(null),m=function(){if(null!=l&&l.current){var e;null===(e=l.current)||void 0===e||e.scrollTo({top:0,behavior:"instant"})}};return eQ([l,a],function(){o({type:"TOGGLE_RIGHT_NAV_SHOWING",value:!1}),m(),o({type:"SET_IS_CLOSE_BUTTON_VISIBLE",value:!0})},!1),(0,_.jsxs)("div",{className:"side-nav","data-open":r,role:"mobile-visible",children:[s,(0,_.jsxs)("div",{className:"side-nav__main",ref:l,onScroll:function(){if(null!=c&&c.current){var e;((null===(e=c.current)||void 0===e?void 0:e.getBoundingClientRect())||{}).top<17?o({type:"SET_IS_CLOSE_BUTTON_VISIBLE",value:!1}):o({type:"SET_IS_CLOSE_BUTTON_VISIBLE",value:!0})}},children:[(0,_.jsx)(ez.Z,{layoutType:"rightNav",ref:c}),!0===n&&(0,_.jsx)(eY,{layoutType:"rightNav",siteName:t}),(0,_.jsx)(eK.Z,{layoutType:"rightNav"})]})]})},e0=a(557),e8=function(e){var t=e.layoutType,a=e.dropdownType,s=e.selectIconName,n=e.languageState,i=e.platformState,r=(0,j.$G)().t;return(0,_.jsx)(_.Fragment,{children:"header"===t?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"dropdown__btn",children:(0,_.jsx)("i",{className:"icon icon--gradient-third",children:(0,_.jsx)("i",{className:s})})}),(0,_.jsx)("span",{className:"text",children:{platform:r(i),language:r(n)}[a]})]}):(0,_.jsxs)("a",{className:"dropdown__btn",children:[(0,_.jsx)("i",{className:"".concat(s)}),(0,_.jsx)("span",{className:"text",children:{platform:r(i),language:r(n)}[a]}),(0,_.jsx)("i",{className:"icon icon--arrow-down"})]})})},e1=function(e,t){var a;return null===(a=e.find(function(e){return e.code===t}))||void 0===a?void 0:a.name},e9=function(e){var t,a=e.siteName,s=e.dropdownType,n=e.selectIconName,i=e.layoutType,r=(0,j.$G)().t,o=(0,d.useContext)(v.pI)[0],l=(0,m.Mj)().languageList,c=(0,d.useState)(!1),u=c[0],p=c[1],h=(0,d.useState)(),x=h[0],N=h[1],f=(0,d.useState)(o.language),g=f[0],b=f[1];return((0,d.useEffect)(function(){p(!0)},[]),(0,d.useEffect)(function(){N(e1(e0.mV,o.platform)),b(e1(l,o.language))},[o,l]),u)?(t={},(0,Z.Z)(t,a,(0,_.jsx)(e8,{layoutType:i,dropdownType:s,selectIconName:n,languageState:g,platformState:x})),(0,Z.Z)(t,S.Z.viva88,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("a",{className:"btn btn--icon",children:(0,_.jsx)("i",{className:n})}),(0,_.jsx)("span",{className:"text",children:{platform:r(x),language:r(g)}[s]})]})),(0,Z.Z)(t,S.Z.bong88,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("a",{className:"btn btn--icon",children:(0,_.jsx)("i",{className:n})}),(0,_.jsx)("span",{className:"text",children:{platform:r(x),language:r(g)}[s]})]})),t)[a]:[]},e2={layout789y:[S.Z.viva88,S.Z.bong88],layoutNova88:[S.Z.Nova88,S.Z.PICA88,S.Z.IBCBet,S.Z.id8899,S.Z.bettha88,S.Z.taraPlays,S.Z.fifabet,S.Z.ocean99],layoutSupportCasino:[S.Z.Nova88,S.Z.IBCBet,S.Z.fifabet,S.Z.ocean99]},e3=(i={},(0,Z.Z)(i,S.Z.viva88,{DROP_DOWN:"dropdown"}),(0,Z.Z)(i,S.Z.bong88,{DROP_DOWN:"dropdown"}),(0,Z.Z)(i,S.Z.Nova88,{DROP_DOWN:"dropdown dropdown--primary"}),(0,Z.Z)(i,S.Z.IBCBet,{DROP_DOWN:"dropdown dropdown--primary"}),(0,Z.Z)(i,S.Z.PICA88,{DROP_DOWN:"dropdown dropdown--primary"}),(0,Z.Z)(i,S.Z.id8899,{DROP_DOWN:"dropdown dropdown--primary"}),(0,Z.Z)(i,S.Z.bettha88,{DROP_DOWN:"dropdown dropdown--primary"}),(0,Z.Z)(i,S.Z.taraPlays,{DROP_DOWN:"dropdown dropdown--primary"}),(0,Z.Z)(i,S.Z.fifabet,{DROP_DOWN:"dropdown dropdown--primary"}),(0,Z.Z)(i,S.Z.ocean99,{DROP_DOWN:"dropdown dropdown--primary"}),i),e5=function(e){var t=e.selectIconName,a=e.dropdownType,s=e.layoutType,n=(0,d.useState)(!1),i=n[0],r=n[1],o=(0,d.useRef)(null),l=(0,m.Mj)().siteName,c=function(e){o.current&&o.current.contains(e.target)||r(!1)};return(0,d.useEffect)(function(){return i&&window.addEventListener("click",c),function(){window.removeEventListener("click",c)}},[i]),(0,_.jsxs)("div",{role:"desktop-visible",ref:o,className:e3[l].DROP_DOWN,"data-open":i,onClick:function(){return r(!i)},children:[(0,_.jsx)(e9,{siteName:l,dropdownType:a,selectIconName:t,layoutType:s}),(0,_.jsx)("div",{className:"dropdown__container",children:{platform:(0,_.jsx)(ez.Z,{layoutType:s}),language:(0,_.jsx)(eK.Z,{})}[a]})]})},e7=a(5569),e4=function(e){var t=e.closeButtonRef;e.siteName,e.liveChat;var a=(0,d.useContext)(v.pI),s=a[0],n=s.isShowRightNav,i=s.isCloseButtonVisible,r=a[1];return(0,_.jsx)("a",{className:"btn btn--nav",onClick:function(){return r({type:"TOGGLE_RIGHT_NAV_SHOWING",value:!n})},ref:t,"data-visible":i,children:(0,_.jsxs)("i",{className:"iconani-nav",children:[(0,_.jsx)("i",{className:"iconani-nav__stick"}),(0,_.jsx)("i",{className:"iconani-nav__stick"}),(0,_.jsx)("i",{className:"iconani-nav__stick"})]})})},e6=a(1281),te=[{name:"edge"},{name:"firefox"},{name:"google"},{name:"safari"}],tt=function(e){var t;return e===S.Z.Nova88?[[{i18nKey:"lbl_AboutUs2",infoPage:"AboutUs.html",openType:1},{i18nKey:"lbl_Termsofuse",infoPage:"TermsOfUse.html",openType:1},{i18nKey:"lbl_Termandconditions",infoPage:"TermsConditions.html",openType:1},{i18nKey:"lbl_FAQ",infoPage:"FAQ.html",openType:1}],[{i18nKey:"lbl_PrivacyPolicy2",infoPage:"PrivacyPolicy.html",openType:1}
1,{i18nKey:"lbl_PlayerFundsPolicy",infoPage:"PlayerFunds.html",openType:1},{i18nKey:"lbl_AMLPolicy",infoPage:"AmlPolicy.html",openType:1},{i18nKey:"lbl_ResponsibleGamingPolicy",infoPage:"ResponsibleGaming.html",openType:1},{i18nKey:"lbl_ComplaintsAndArbitration",infoPage:"ComplaintsArbitration.html",openType:1}]]:[[{i18nKey:"lbl_AboutUs",infoPage:"AboutUs.html",openType:1},{i18nKey:"lbl_ResponsibleGaming",infoPage:"ResponsibleGaming.html",openType:1},{i18nKey:"lbl_TermsofService",infoPage:"TermsOfService.html",openType:1},{i18nKey:"lbl_PrivacyPolicy",infoPage:"PrivacyPolicy.html",openType:1},{i18nKey:"lbl_AccTerms",infoPage:"AccountTerms.html",openType:1}]]},ta={OpenStaticPage:"OpenStaticPage",OpenExternalSite:"OpenExternalSite"},ts=(r={},(0,Z.Z)(r,ta.OpenStaticPage,function(e,t,a,s){var n=e({pathType:s?f.Z.helpUiHtmlGlobal:f.Z.helpUiHtml,language:t,pathName:a});window.open(n,"infoPage")}),(0,Z.Z)(r,ta.OpenExternalSite,function(e,t,a){window.open("".concat(a,"/").concat(t),"infoPage")}),r),tn=["nova88.com","nova8866.com","nova8877.com","nova8888.com","nv9891.com","nov88.net","168933.net","168977.net","168222.net","7755778.net"],ti=a(7484),tr=a.n(ti),to=function(e){var t=(0,d.useState)(null),a=t[0],s=t[1];return(0,d.useEffect)(function(){if(null!==e){var t,a=e-Date.now();if(!(a<=0))return s(a),t=setTimeout(function a(){var n=e-Date.now();if(n<=0){s(null);return}s(n),t=setTimeout(a,n%1e3+1)},a%1e3+1),function(){return clearTimeout(t)}}},[e]),a},tl=function(e){return String(e).padStart(2,"0")},tc=(0,Z.Z)({},40,{key:"world-cup",titleKey:"WorldCup",imageName:"event-countdown/2026/world-cup/event-logo.png",component:function(e){var t=e.tournamentKey,a=e.titleKey,s=e.imageName,n=e.day,i=e.hour,r=e.min,o=e.sec,l=(0,j.$G)("common").t,c=(0,m.Mj)().composePath,d=l("lbl_".concat(a));return(0,_.jsx)("div",{className:"event-countdown","data-event":t,children:(0,_.jsxs)("div",{className:"event-countdown__main",children:[(0,_.jsx)("img",{className:"event-logo",src:c({pathType:f.Z.globalImage,pathName:s}),alt:""}),(0,_.jsx)("span",{className:"event-countdown__title",children:d}),(0,_.jsxs)("div",{className:"countdown",children:[(0,_.jsxs)("div",{className:"countdown__col-day",children:[(0,_.jsx)("span",{className:"countdown__time",children:n}),(0,_.jsx)("span",{className:"countdown__text",children:"DAYS"})]}),(0,_.jsxs)("div",{className:"countdown__col-hrs",children:[(0,_.jsx)("span",{className:"countdown__time",children:i}),(0,_.jsx)("span",{className:"countdown__text",children:"HRS"})]}),(0,_.jsxs)("div",{className:"countdown__col-min",children:[(0,_.jsx)("span",{className:"countdown__time",children:r}),(0,_.jsx)("span",{className:"countdown__text",children:"MIN"})]}),(0,_.jsxs)("div",{className:"countdown__col-sec",children:[(0,_.jsx)("span",{className:"countdown__time",children:o}),(0,_.jsx)("span",{className:"countdown__text",children:"SEC"})]})]})]})})}}),td=function(){var e,t=(0,m.Mj)().tournamentCountdownSettings,a=Object.keys(null!=t?t:{})[0],s=a?null===(e=t[a])||void 0===e?void 0:e.endTime:null,n=tc[a],i=to(a&&n&&s?tr()("".concat(s,"-04:00")).valueOf():null);if(!n||null===i)return null;var r={day:tl(Math.floor(i/864e5)),hour:tl(Math.floor(i%864e5/36e5)),min:tl(Math.floor(i%36e5/6e4)),sec:tl(Math.floor(i%6e4/1e3))},o=r.day,l=r.hour,c=r.min,d=r.sec,u=n.key,p=n.titleKey,h=n.imageName,x=n.component;return(0,_.jsx)(x,{tournamentKey:u,titleKey:p,imageName:h,day:o,hour:l,min:c,sec:d})},tm=function(){var e=(0,j.$G)().t,t=(0,m.Mj)().toggleShowRegister;return(0,_.jsx)(ed,{children:(0,_.jsx)("a",{className:"btn btn--primary",onClick:t,children:e("lbl_AgtCash_JoinUs")})})},tu=function(){var e=(0,m.Mj)(),t=e.sealCasinoPortalUrl,a=e.composePath;return(0,_.jsx)("a",{className:"btn btn--casino-royale",onClick:function(e){e.preventDefault(),e.stopPropagation(),t&&(window.location=t)},children:(0,_.jsx)("i",{className:"icon icon--gradient-third",children:(0,_.jsx)("img",{src:a({pathType:f.Z.globalImage,pathName:"before_nova88/ui/sport52.svg"})})})})},tp=function(e,t){var a="products",s=[S.Z.Nova88,S.Z.IBCBet,S.Z.bettha88,S.Z.taraPlays,S.Z.fifabet,S.Z.ocean99],n=[S.Z.PICA88],i=[{sportName:"lbl_sports",imageUrl:t({pathType:f.Z.siteImage,pathName:"".concat(a,"/Sports_desktop.png")})},{sportName:"lbl_VirtualSports",imageUrl:t({pathType:f.Z.siteImage,pathName:"".concat(a,"/VirtualSports_desktop.png")})},{sportName:"lbl_Esports",imageUrl:t({pathType:f.Z.siteImage,pathName:"".concat(a,"/E-Sports_desktop.png")})},{sportName:"lbl_NumberGame",imageUrl:t({pathType:f.Z.siteImage,pathName:"".concat(a,"/NumberGame_desktop.png")})},{sportName:"lbl_Gaming",imageUrl:t({pathType:f.Z.siteImage,pathName:"".concat(a,"/Gaming_desktop.png")})},{sportName:"lbl_RNGKeno",imageUrl:t({pathType:f.Z.siteImage,pathName:"".concat(a,"/RNGKeno_desktop.png")})},{sportName:"lbl_Sabagames",imageUrl:t({pathType:f.Z.siteImage,pathName:"".concat(a,"/Saba.club_desktop.png")})}],r=[].concat(i);return s.includes(e)&&r.pop(),e===S.Z.taraPlays&&r.push({sportName:"Vgaming",imageUrl:t({pathType:f.Z.siteImage,pathName:"".concat(a,"/Vgaming_desktop")})}),n.includes(e)&&(r=i.filter(function(e){return["lbl_sports","lbl_Esports"].includes(e.sportName)})),r},th=function(e){var t,a=e.siteName,s=e.children;return(t={},(0,Z.Z)(t,S.Z.Nova88,s),(0,Z.Z)(t,S.Z.IBCBet,s),(0,Z.Z)(t,S.Z.PICA88,s),(0,Z.Z)(t,S.Z.id8899,s),(0,Z.Z)(t,S.Z.viva88,(0,_.jsx)("div",{className:"header-nav__main",children:s})),(0,Z.Z)(t,S.Z.bong88,(0,_.jsx)("div",{className:"header-nav__main",children:s})),(0,Z.Z)(t,S.Z.bettha88,s),(0,Z.Z)(t,S.Z.taraPlays,s),(0,Z.Z)(t,S.Z.fifabet,s),(0,Z.Z)(t,S.Z.ocean99,s),t)[a]},tx=(o={},(0,Z.Z)(o,S.Z.Nova88,{LOGIN_POPUP:"btn btn--secondary",JOIN_NOW:"btn btn--primary"}),(0,Z.Z)(o,S.Z.PICA88,{LOGIN_POPUP:"btn btn--secondary",JOIN_NOW:"btn btn--primary"}),(0,Z.Z)(o,S.Z.viva88,{LOGIN_POPUP:"btn btn--secondary",JOIN_NOW:"btn btn--primary"}),(0,Z.Z)(o,S.Z.bong88,{LOGIN_POPUP:"btn btn--secondary",JOIN_NOW:"btn btn--primary"}),(0,Z.Z)(o,S.Z.IBCBet,{LOGIN_POPUP:"btn btn--secondary",JOIN_NOW:"btn btn--primary"}),(0,Z.Z)(o,S.Z.id8899,{LOGIN_POPUP:"btn btn--secondary",JOIN_NOW:"btn btn--primary"}),(0,Z.Z)(o,S.Z.bettha88,{LOGIN_POPUP:"btn btn--secondary",JOIN_NOW:"btn btn--primary"}),(0,Z.Z)(o,S.Z.taraPlays,{LOGIN_POPUP:"btn btn--secondary",JOIN_NOW:"btn btn--primary"}),(0,Z.Z)(o,S.Z.fifabet,{LOGIN_POPUP:"btn btn--secondary",JOIN_NOW:"btn btn--primary"}),(0,Z.Z)(o,S.Z.ocean99,{LOGIN_POPUP:"btn btn--secondary",JOIN_NOW:"btn btn--primary"}),o),tj=function(e){var t,a=e.siteName,s=e.children;return(t={},(0,Z.Z)(t,S.Z.Nova88,(0,_.jsx)("div",{className:"header-login",children:s})),(0,Z.Z)(t,S.Z.IBCBet,(0,_.jsx)("div",{className:"header-login",children:s})),(0,Z.Z)(t,S.Z.PICA88,(0,_.jsx)("div",{className:"header-login",children:s})),(0,Z.Z)(t,S.Z.id8899,(0,_.jsx)("div",{className:"header-login",children:s})),(0,Z.Z)(t,S.Z.viva88,s),(0,Z.Z)(t,S.Z.bong88,s),(0,Z.Z)(t,S.Z.bettha88,(0,_.jsx)("div",{className:"header-login",children:s})),(0,Z.Z)(t,S.Z.taraPlays,(0,_.jsx)("div",{className:"header-login",children:s})),(0,Z.Z)(t,S.Z.fifabet,(0,_.jsx)("div",{className:"header-login",children:s})),(0,Z.Z)(t,S.Z.ocean99,(0,_.jsx)("div",{className:"header-login",children:s})),t)[a]},tv=function(e){var t,a=e.siteName;e.platformState;var s=(0,j.$G)().t,n=(0,d.useContext)(v.pI),i=n[0],r=n[1],o=(0,m.Mj)(),l=(o.countryCode,o.isS
1howCashMemberJoinNowButton),c=o.setIsShowJoinNowButton,u=o.isShowJoinNowButton,h=o.landingPageUrl,N=(0,d.useState)(!1),f=N[0],g=N[1],y=[S.Z.PICA88,S.Z.id8899,S.Z.taraPlays,S.Z.bettha88,S.Z.fifabet,S.Z.ocean99,S.Z.IBCBet],Z=(0,d.useState)(!1);Z[0],Z[1];var w=(0,d.useState)(""),T=w[0],P=w[1],k=(0,b.Z)().fetchCurrentPlatUMData,C=function(){c(!y.includes(a)),P("before_JoinUs")};(0,d.useEffect)(function(){"desktop"===i.platform?g(!0):g(!1)},[i.platform]);var O=s("lbl_Join_Now"),I=(t=(0,p.Z)(x().mark(function e(){return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k();case 2:e.sent?r({type:"SHOW_UM_POPUP"}):r({type:"SHOW_LOGIN_POPUP"});case 4:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});return(0,d.useEffect)(function(){C()},[]),(0,_.jsxs)(_.Fragment,{children:[!e2.layout789y.includes(a)&&f&&(0,_.jsx)("span",{className:"text","data-value":s("lbl_login_desktop"),role:"mobile-visible"}),l&&(0,_.jsx)(tm,{}),u&&!l&&h&&(0,_.jsx)("a",{className:tx[a].JOIN_NOW,onClick:function(){return(0,e7.a_)(a,i.language,h)},gtag:T,children:e2.layoutNova88.includes(a)?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("i",{className:"icon icon--add-account",role:"mobile-visible"}),(0,_.jsx)("span",{className:"text",role:"desktop-visible",children:O})]}):(0,_.jsx)("span",{className:"text",children:O})}),(0,_.jsx)("a",{className:tx[a].LOGIN_POPUP,onClick:I,children:e2.layoutNova88.includes(a)?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("i",{className:"icon icon--login",role:"mobile-visible"}),(0,_.jsx)("span",{className:"text",role:"desktop-visible",children:s("lbl_login")})]}):(0,_.jsx)("span",{className:"text",children:s("lbl_login")})}),e2.layout789y.includes(a)&&f&&(0,_.jsx)("span",{className:"text","data-value":s("lbl_login_desktop"),role:"mobile-visible"})]})},tN=function(){var e=(0,m.Mj)().composePath;return(0,_.jsx)("img",{className:"header-sponsor-logo",src:e({pathType:f.Z.siteImage,pathName:"logo_sponsor/logo_sponsor.png"})})},tf=function(){var e,t,a,s,n,i=(0,d.useContext)(v.pI),r=i[0],o=i[1],l=(0,m.Mj)(),c=l.siteName,u=l.composePath,h=l.enableSponsorLogo,N=l.isCashSite,g=l.enableFestivalLogo,y=l.sealCasinoPortalUrl,w=(0,d.useState)(!1),T=w[0],P=w[1],k=(0,j.$G)().t,C=(0,d.useState)(r.platform),O=C[0],I=C[1],E=(0,b.Z)().fetchCurrentPlatUMData,M=(0,d.useState)(!0),L=M[0],G=M[1];(0,d.useEffect)(function(){I(e1(e0.mV,r.platform))},[r.platform]);var R=(0,d.useRef)(null),A=(e=(0,p.Z)(x().mark(function e(){return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return P(!1),e.next=3,E();case 3:e.sent?o({type:"SHOW_UM_POPUP"}):o({type:"SHOW_LOGIN_POPUP"});case 5:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)});return(0,_.jsxs)(ed,{children:[(0,_.jsx)("div",{className:"header",children:(0,_.jsxs)("div",{className:"header__main",children:[(0,_.jsxs)("div",{className:"header-logo",children:[N&&(0,_.jsx)("span",{className:"text-powered-by",children:k("lbl_AgtCash_PoweredBy")}),g&&L&&(0,_.jsx)("img",{className:"header-festival-decoration",src:u({pathType:f.Z.globalImage,pathName:"logo_decoration/logo-decoration.gif"}),alt:"festival-logo-decoration",onError:function(){return G(!1)}}),S.Z.Nova88===c&&h?(0,_.jsx)(tN,{}):null]}),(0,_.jsxs)("div",{role:e2.layout789y.includes(c)?"desktop-visible":"",className:"header-nav ".concat(T?"is-hover":""),onMouseEnter:function(){return P(!0)},onMouseLeave:function(){return P(!1)},onClick:function(){A()},children:[(0,_.jsx)(th,{siteName:c,children:tp(c,u).map(function(e){var t=e.sportName;return(0,_.jsx)("div",{className:"header-nav__item",children:(0,_.jsx)("a",{className:"btn",children:(0,_.jsx)("span",{className:"text",children:k(t)})})},t)})}),(t={},(0,Z.Z)(t,S.Z.viva88,!0),(0,Z.Z)(t,S.Z.bong88,!0),(0,Z.Z)(t,S.Z.IBCBet,!1),(0,Z.Z)(t,S.Z.PICA88,!1),(0,Z.Z)(t,S.Z.Nova88,!1),(0,Z.Z)(t,S.Z.id8899,!1),(0,Z.Z)(t,S.Z.bettha88,!1),(0,Z.Z)(t,S.Z.taraPlays,!1),(0,Z.Z)(t,S.Z.fifabet,!1),(0,Z.Z)(t,S.Z.ocean99,!1),t)[c]&&(0,_.jsx)("div",{className:"header-nav__product ".concat(T?"is-hover":""),children:(0,_.jsx)("div",{className:"sports-list",children:tp(c,u).map(function(e){var t=e.sportName,a=e.imageUrl;return(0,_.jsxs)("a",{className:"sports-card",children:[(0,_.jsx)("div",{className:"sports-card__title",children:(0,_.jsx)("span",{className:"text",children:k(t)})}),(0,_.jsx)("div",{className:"sports-card__image",children:(0,_.jsx)("img",{src:"".concat(a),alt:""})})]},t)})})})]}),(0,_.jsxs)("div",{className:"header-option",children:[(0,_.jsx)(e5,{selectIconName:"icon icon--".concat(r.platform),dropdownType:"platform",layoutType:"header"}),(0,_.jsx)(e5,{selectIconName:"flag flag--".concat(r.language),dropdownType:"language",layoutType:"header"}),[S.Z.Nova88,S.Z.fifabet,S.Z.ocean99].includes(c)&&(0,_.jsxs)("div",{className:"header-option__btn",role:"desktop-visible",children:[(0,_.jsx)(eq,{siteName:c}),(0,_.jsx)("span",{className:"text",children:k("lbl_LiveChat")})]}),e2.layoutSupportCasino.includes(c)&&y&&(0,_.jsxs)("div",{className:"header-option__btn",children:[(0,_.jsx)(tu,{}),(0,_.jsx)("span",{className:"text",role:"desktop-visible",children:k("lbl_ibc_casino")})]}),(a={},(0,Z.Z)(a,S.Z.viva88,(0,_.jsx)(tj,{siteName:c,platformState:O,children:(0,_.jsx)(tv,{siteName:c,platformState:O})})),(0,Z.Z)(a,S.Z.bong88,(0,_.jsx)(tj,{siteName:c,platformState:O,children:(0,_.jsx)(tv,{siteName:c,platformState:O})})),a)[c]]}),(s={},(0,Z.Z)(s,S.Z.Nova88,(0,_.jsx)(tj,{siteName:c,platformState:O,children:(0,_.jsx)(tv,{siteName:c,platformState:O})})),(0,Z.Z)(s,S.Z.IBCBet,(0,_.jsx)(tj,{siteName:c,platformState:O,children:(0,_.jsx)(tv,{siteName:c,platformState:O})})),(0,Z.Z)(s,S.Z.PICA88,(0,_.jsx)(tj,{siteName:c,platformState:O,children:(0,_.jsx)(tv,{siteName:c,platformState:O})})),(0,Z.Z)(s,S.Z.id8899,(0,_.jsx)(tj,{siteName:c,platformState:O,children:(0,_.jsx)(tv,{siteName:c,platformState:O})})),(0,Z.Z)(s,S.Z.bettha88,(0,_.jsx)(tj,{siteName:c,platformState:O,children:(0,_.jsx)(tv,{siteName:c,platformState:O})})),(0,Z.Z)(s,S.Z.taraPlays,(0,_.jsx)(tj,{siteName:c,platformState:O,children:(0,_.jsx)(tv,{siteName:c,platformState:O})})),(0,Z.Z)(s,S.Z.fifabet,(0,_.jsx)(tj,{siteName:c,platformState:O,children:(0,_.jsx)(tv,{siteName:c,platformState:O})})),(0,Z.Z)(s,S.Z.ocean99,(0,_.jsx)(tj,{siteName:c,platformState:O,children:(0,_.jsx)(tv,{siteName:c,platformState:O})})),s)[c]]})}),(n={},(0,Z.Z)(n,S.Z.Nova88,(0,_.jsx)(eX,{siteName:c,closeButtonRef:R,liveChat:!0,children:(0,_.jsx)(e4,{siteName:c,closeButtonRef:R,liveChat:!0})}
1)),(0,Z.Z)(n,S.Z.IBCBet,(0,_.jsx)(eX,{siteName:c,closeButtonRef:R,children:(0,_.jsx)(e4,{siteName:c,closeButtonRef:R})})),(0,Z.Z)(n,S.Z.PICA88,(0,_.jsx)(eX,{siteName:c,closeButtonRef:R,children:(0,_.jsx)(e4,{siteName:c,closeButtonRef:R})})),(0,Z.Z)(n,S.Z.id8899,(0,_.jsx)(eX,{siteName:c,closeButtonRef:R,children:(0,_.jsx)(e4,{siteName:c,closeButtonRef:R})})),(0,Z.Z)(n,S.Z.viva88,(0,_.jsx)(eX,{siteName:c,closeButtonRef:R,children:(0,_.jsx)(e4,{siteName:c,closeButtonRef:R})})),(0,Z.Z)(n,S.Z.bong88,(0,_.jsx)(eX,{siteName:c,closeButtonRef:R,children:(0,_.jsx)(e4,{siteName:c,closeButtonRef:R})})),(0,Z.Z)(n,S.Z.bettha88,(0,_.jsx)(eX,{siteName:c,closeButtonRef:R,children:(0,_.jsx)(e4,{siteName:c,closeButtonRef:R})})),(0,Z.Z)(n,S.Z.taraPlays,(0,_.jsx)(eX,{siteName:c,closeButtonRef:R,children:(0,_.jsx)(e4,{siteName:c,closeButtonRef:R})})),(0,Z.Z)(n,S.Z.fifabet,(0,_.jsx)(eX,{siteName:c,closeButtonRef:R,liveChat:!0,children:(0,_.jsx)(e4,{siteName:c,closeButtonRef:R,liveChat:!0})})),(0,Z.Z)(n,S.Z.ocean99,(0,_.jsx)(eX,{siteName:c,closeButtonRef:R,liveChat:!0,children:(0,_.jsx)(e4,{siteName:c,closeButtonRef:R,liveChat:!0})})),n)[c],(0,_.jsx)(td,{})]})},tg=a(4730),tb=a(719),t_=a(8116),ty={modules:[t_.W_,t_.tl,t_.lI,t_.pt,t_.oM],effect:"coverflow",grabCursor:!1,centeredSlides:!0,lazy:!0,preloadImages:!1,slidesPerView:"auto",coverflowEffect:{rotate:332,stretch:200,depth:230,modifier:1,scale:.9,slideShadows:!0},pagination:{el:".promotions__swiper-pagination",clickable:!0},navigation:{nextEl:".promotions__swiper-button-next",prevEl:".promotions__swiper-button-prev"},loop:!1,autoplay:{delay:5e3,disableOnInteraction:!0},observer:!0,observeParents:!0},tZ={modules:[t_.W_,t_.tl,t_.lI,t_.pt,t_.oM],effect:"coverflow",grabCursor:!1,centeredSlides:!0,lazy:!1,preloadImages:!0,slidesPerView:"auto",coverflowEffect:{rotate:0,stretch:350,depth:300,modifier:1,scale:.9},pagination:{el:".swiper-pagination",type:"bullets",clickable:!0},navigation:{nextEl:".promotions__swiper-button-next",prevEl:".promotions__swiper-button-prev",clickable:!0},loop:!1,autoplay:{delay:5e3,disableOnInteraction:!0},observer:!0,observeParents:!0,className:"promotions"},tS={modules:[t_.W_,t_.tl,t_.lI,t_.pt,t_.oM],effect:"coverflow",grabCursor:!1,centeredSlides:!0,lazy:!1,preloadImages:!0,slidesPerView:"auto",coverflowEffect:{rotate:0,stretch:350,depth:300,modifier:1,scale:.9},pagination:{el:".swiper-pagination",type:"bullets",clickable:!0},navigation:{nextEl:".promotions__swiper-button-next",prevEl:".promotions__swiper-button-prev",clickable:!0},loop:!1,autoplay:{delay:5e3,disableOnInteraction:!0},observer:!0,observeParents:!0,className:"promotions",autoHeight:!0},tw=function(){return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:" promotions__swiper-pagination swiper-pagination-clickable swiper-pagination-bullets",children:[(0,_.jsx)("span",{className:"swiper-pagination-bullet",tabIndex:"0",role:"button","aria-label":"Go to slide 1"}),(0,_.jsx)("span",{className:"swiper-pagination-bullet swiper-pagination-bullet-active",tabIndex:"0",role:"button","aria-label":"Go to slide 2"}),(0,_.jsx)("span",{className:"swiper-pagination-bullet",tabIndex:"0",role:"button","aria-label":"Go to slide 3"})]}),(0,_.jsx)("span",{className:"swiper-notification","aria-live":"assertive","aria-atomic":"true"})]})},tT=function(){return(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("div",{className:" swiper-pagination swiper-pagination-clickable swiper-pagination-bullets swiper-pagination-horizontal",children:[(0,_.jsx)("span",{className:"swiper-pagination-bullet",tabIndex:"0",role:"button","aria-label":"Go to slide 1"}),(0,_.jsx)("span",{className:"swiper-pagination-bullet",tabIndex:"0",role:"button","aria-label":"Go to slide 2"}),(0,_.jsx)("span",{className:"swiper-pagination-bullet swiper-pagination-bullet-active",tabIndex:"0",role:"button","aria-label":"Go to slide 3","aria-current":"true"})]})})},tP=function(e){var t,a=e.siteName;return(t={},(0,Z.Z)(t,S.Z.Nova88,(0,_.jsx)(tw,{})),(0,Z.Z)(t,S.Z.PICA88,(0,_.jsx)(tw,{})),(0,Z.Z)(t,S.Z.IBCBet,(0,_.jsx)(tw,{})),(0,Z.Z)(t,S.Z.id8899,(0,_.jsx)(tw,{})),(0,Z.Z)(t,S.Z.viva88,(0,_.jsx)(tT,{})),(0,Z.Z)(t,S.Z.bong88,(0,_.jsx)(tT,{})),(0,Z.Z)(t,S.Z.bettha88,(0,_.jsx)(tw,{})),(0,Z.Z)(t,S.Z.taraPlays,(0,_.jsx)(tw,{})),(0,Z.Z)(t,S.Z.fifabet,(0,_.jsx)(tw,{})),(0,Z.Z)(t,S.Z.ocean99,(0,_.jsx)(tw,{})),t)[a]},tk=function(){return(0,_.jsx)("div",{className:"promotions__swiper-button-prev",tabIndex:"0",role:"button","aria-label":"Previous slide",children:(0,_.jsx)("i",{className:"icon icon--arrow-left",role:"desktop-visible"})})},tC=function(){return(0,_.jsx)("div",{className:"promotions__swiper-button-next",tabIndex:"0",role:"button","aria-label":"Next slide",children:(0,_.jsx)("i",{className:"icon icon--arrow-right",role:"desktop-visible"})})},tO=["imageUrl","imageUrlV2"];function tI(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function tE(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?tI(Object(a),!0).forEach(function(t){(0,Z.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):tI(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var tM=function(e,t){var a=t.language,s=t.loginWebImageServerHost;return null==e?void 0:e.map(function(e){var t=e.imageUrl,n=e.imageUrlV2,i=(0,tg.Z)(e,tO);if(n)return tE({imageUrl:n.replace("{0}",a)},i);var r=t.split("/en/");return 1===r.length?tE({imageUrl:t},i):tE({imageUrl:"".concat(s,"/").concat(r[0],"/").concat(a,"/").concat(r[1])},i)})},tL=function(e){e&&window.open(e,"_blank")},tG=function(e){var t,a,s=e.swiperConfig,n=(0,m.Mj)(),i=n.siteName,r=n.loginWebImageServerHost,o=n.desktopBanners,l=n.mobileBanners,c=n.youTubeBrandVideoId,p=(0,eF.d)().width,h=(0,d.useState)(!0),x=h[0],j=h[1],N=(0,d.useState)(!0),f=N[0],g=N[1],b=(0,d.useState)(!1),y=b[0],w=b[1],T=(0,d.useState)(!1),P=T[0],k=T[1],C={language:(0,d.useContext)(v.pI)[0].language,loginWebImageServerHost:r},O=s.lazy,I=(0,d.useRef)(null);return((0,d.useEffect)(function(){k(!0)},[]),(0,d.useEffect)(function(){(null==o?void 0:o.length)===1&&j(!1),(null==l?void 0:l.length)===1&&g(!1)},[o,l]),(0,d.useEffect)(function(){p>u.Z.mediumWidth?w(x):w(f)},[p]),(0,d.useEffect)(function(){if(i===S.Z.viva88&&P){var e=function(){document.querySelectorAll(".swiper__item--youtube iframe").forEach(function(e){e.contentWindow&&e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),I.current&&I.current.autoplay&&I.current.autoplay.stop()},t=document.querySelector(".swiper");if(t&&t.swiper)return t.swiper.on("slideChange",e),function(){t.swiper&&t.swiper.off("slideChange",e)}}},[i,P]),P&&(!(p>u.Z.mediumWidth)||null!=o&&o.length)&&(!(p<u.Z.mediumWidth)||null!=l&&l.length))?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(tb.tq,tE(tE({},s),{},{loop:y,onSwiper:function(e){I.current=e},children:[i===S.Z.viva88&&p>u.Z.mediumWidth&&!!c&&(0,_.jsx)(tb.o5,{"data-swiper-autoplay":"48000",children:(0,_.jsxs)("div",{className:"swiper__item swiper__item--youtube",children:[(0,_.jsx)("iframe",{id:"youtube-player-desktop",width:"560",height:"315",src:"https://www.youtube.com/embed/".concat(c,"?autoplay=1&mute=1&loop=1&controls=1&playlist=").concat(c,"&rel=0&modestbranding=1&enablejsapi=1"),title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0}),(0,_.jsx)("div",{className:"promotions__swiper-button-prev",tabIndex:"0",role:"button","aria-label":"Previous slide",children:(0,_.jsx)("i",{className:"icon icon--arrow-left"})}),(0,_.jsx)("div",{className:"promotions__swiper-button-next",tabIndex:"0",role:"button","aria-label":"Next slide",children:(0,_.jsx)("i",{className:"icon icon--arrow-right"})})]})},"viva88-video"),p>u.Z.mediumWidth?tM(o,C).map(function(e){var t=e.imageUrl,a=e.link;return(0,_.jsx)(tb.o5,{onClick:function(){return tL(a)},children:(0,_.jsxs)("div",{className:"swiper__item",children:[(0,_.jsxs)("picture",{className:"swiper-lazy",children:[(0,_.jsx)("source",{media:"(min-width: 769px)",srcSet:t,loading:O?"lazy":""}),(0,_.jsx)("source",{media:"(max-width: 768px)",srcSet:t,loading:O?"lazy":""}),(0,_.jsx)("img",{alt:"",src:t,loading:O?"lazy":""})]}),O&&(0,_.jsx)("div",{className:"swiper-lazy-preloader"})]})},t)}):(0,_.jsxs)(_.Fragment,{children:[i===S.Z.viva88&&!!c&&(0,_.jsx)(tb.o5,{"data-swiper-autoplay":"48000",children:(0,_.jsxs)("div",{className:"swiper__item swiper__item--youtube","data-open":"false",children:[(0,_.jsx)("iframe",{id:"youtube-player-mobile",width:"560",height:"315",src:"https://www.youtube.com/embed/".concat(c,"?autoplay=1&mute=1&loop=1&controls=1&playlist=").concat(c,"&rel=0&modestbranding=1&enablejsapi=1"),title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0}),(0,_.jsx)("div",{className:"promotions__swiper-button-prev",tabIndex:"0",role:"button","aria-label":"Previous slide",children:(0,_.jsx)("i",{className:"icon icon--arrow-left"})}),(0,_.jsx)("div",{className:"promotions__swiper-button-next",tabIndex:"0",role:"button","aria-label":"Next slide",children:(0,_.jsx)("i",{className:"icon icon--arrow-right"})})]})}
1,"viva88-video-mobile"),null===(t=tM(l,C))||void 0===t?void 0:t.map(function(e){var t=e.imageUrl,a=e.link;return(0,_.jsx)(tb.o5,{onClick:function(){return tL(a)},children:(0,_.jsxs)("div",{className:"swiper__item",children:[(0,_.jsxs)("picture",{className:"swiper-lazy",children:[(0,_.jsx)("source",{media:"(min-width: 769px)",srcSet:t,loading:O?"lazy":""}),(0,_.jsx)("source",{media:"(max-width: 768px)",srcSet:t,loading:O?"lazy":""}),(0,_.jsx)("img",{alt:"",src:t,loading:O?"lazy":""})]}),O&&(0,_.jsx)("div",{className:"swiper-lazy-preloader"})]})},t)})]}),(0,_.jsx)(tP,{siteName:i})]})),(a={},(0,Z.Z)(a,S.Z.Nova88,(0,_.jsx)(_.Fragment,{children:x&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(tk,{}),(0,_.jsx)(tC,{})]})})),(0,Z.Z)(a,S.Z.IBCBet,(0,_.jsx)(_.Fragment,{children:x&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(tk,{}),(0,_.jsx)(tC,{})]})})),(0,Z.Z)(a,S.Z.PICA88,(0,_.jsx)(_.Fragment,{children:x&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(tk,{}),(0,_.jsx)(tC,{})]})})),(0,Z.Z)(a,S.Z.id8899,(0,_.jsx)(_.Fragment,{children:x&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(tk,{}),(0,_.jsx)(tC,{})]})})),(0,Z.Z)(a,S.Z.bettha88,(0,_.jsx)(_.Fragment,{children:x&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(tk,{}),(0,_.jsx)(tC,{})]})})),(0,Z.Z)(a,S.Z.taraPlays,(0,_.jsx)(_.Fragment,{children:x&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(tk,{}),(0,_.jsx)(tC,{})]})})),(0,Z.Z)(a,S.Z.fifabet,(0,_.jsx)(_.Fragment,{children:x&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(tk,{}),(0,_.jsx)(tC,{})]})})),(0,Z.Z)(a,S.Z.ocean99,(0,_.jsx)(_.Fragment,{children:x&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(tk,{}),(0,_.jsx)(tC,{})]})})),a)[i]]}):[]},tR=function(){var e,t=(0,m.Mj)().siteName;return(0,_.jsx)(ed,{children:(e={},(0,Z.Z)(e,S.Z.Nova88,(0,_.jsx)("div",{className:"promotions",children:(0,_.jsx)(tG,{swiperConfig:ty})})),(0,Z.Z)(e,S.Z.IBCBet,(0,_.jsx)("div",{className:"promotions",children:(0,_.jsx)(tG,{swiperConfig:ty})})),(0,Z.Z)(e,S.Z.id8899,(0,_.jsx)("div",{className:"promotions",children:(0,_.jsx)(tG,{swiperConfig:ty})})),(0,Z.Z)(e,S.Z.viva88,(0,_.jsx)(tG,{swiperConfig:tS})),(0,Z.Z)(e,S.Z.bong88,(0,_.jsx)(tG,{swiperConfig:tZ})),(0,Z.Z)(e,S.Z.bettha88,(0,_.jsx)("div",{className:"promotions",children:(0,_.jsx)(tG,{swiperConfig:ty})})),(0,Z.Z)(e,S.Z.taraPlays,(0,_.jsx)("div",{className:"promotions",children:(0,_.jsx)(tG,{swiperConfig:ty})})),(0,Z.Z)(e,S.Z.fifabet,(0,_.jsx)("div",{className:"promotions",children:(0,_.jsx)(tG,{swiperConfig:ty})})),(0,Z.Z)(e,S.Z.ocean99,(0,_.jsx)("div",{className:"promotions",children:(0,_.jsx)(tG,{swiperConfig:ty})})),e)[t]})},tA=[{title:"lbl_sports",text:"lbl_SportsIntro",sportIcon:"icon icon--sport1",enterPoint:"#Sports/s=0",desktopPNGPath:"sports/desktop/Sports.png",desktopWebPPath:"sports/desktop/Sports.webp",mobilePNGPath:"sports/mobile/Sports.png",mobileWebPPath:"sports/mobile/Sports.webp"},{title:"lbl_VirtualSports",text:"lbl_VSIntro",sportIcon:"icon icon--sport18x",enterPoint:"#Sports/s=180",desktopPNGPath:"sports/desktop/VirtualSports.png",desktopWebPPath:"sports/desktop/VirtualSports.webp",mobilePNGPath:"sports/mobile/VirtualSports.png",mobileWebPPath:"sports/mobile/VirtualSports.webp"},{title:"lbl_Esports",text:"lbl_EsportsIntro",sportIcon:"icon icon--gv-esports",enterPoint:"#Sports/s=43",desktopPNGPath:"sports/desktop/E-Sports.png",desktopWebPPath:"sports/desktop/E-Sports.webp",mobilePNGPath:"sports/mobile/E-Sports.png",mobileWebPPath:"sports/mobile/E-Sports.webp"},{title:"lbl_NumberGame",text:"lbl_NGIntro",sportIcon:"icon icon--gv-number-game",enterPoint:"#Sports/s=161",desktopPNGPath:"sports/desktop/NumberGame.png",desktopWebPPath:"sports/desktop/NumberGame.webp",mobilePNGPath:"sports/mobile/NumberGame.png",mobileWebPPath:"sports/mobile/NumberGame.webp"},{title:"lbl_Gaming",text:"lbl_GamingIntro",sportIcon:"icon icon--gv-live-casino",enterPoint:"",desktopPNGPath:"sports/desktop/Gaming.png",desktopWebPPath:"sports/desktop/Gaming.webp",mobilePNGPath:"sports/mobile/Gaming.png",mobileWebPPath:"sports/mobile/Gaming.webp"},{title:"lbl_RNGKeno",text:"lbl_RNGKenoIntro",sportIcon:"icon icon--gv-mini-casino",enterPoint:"",desktopPNGPath:"sports/
1desktop/RNGKeno.png",desktopWebPPath:"sports/desktop/RNGKeno.webp",mobilePNGPath:"sports/mobile/RNGKeno.png",mobileWebPPath:"sports/mobile/RNGKeno.webp"}],tH={modules:[t_.o3,t_.pt,t_.xW,t_.oM],spaceBetween:0,preloadImages:!1,lazy:!0,effect:"fade",loop:!0,autoplay:{delay:8e3,disableOnInteraction:!0}};function tF(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function tD(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?tF(Object(a),!0).forEach(function(t){(0,Z.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):tF(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var tU=function(){var e,t=(0,d.useState)(null),a=t[0],s=t[1],n=(0,d.useContext)(v.pI),i=n[0],r=n[1],o=(0,d.useState)(tA),l=o[0],c=o[1],u=i.language,h=(0,m.Mj)(),g=h.composePath,y=h.siteName,Z=h.loginWebEnableSabaScore,w=(0,j.$G)().t,T=[S.Z.taraPlays,S.Z.PICA88,S.Z.ocean99],P=[S.Z.ocean99,S.Z.PICA88].includes(y)?f.Z.siteImage:f.Z.autoColorscheme,k=(0,b.Z)().fetchCurrentPlatUMData;(0,d.useEffect)(function(){(0,N.A0)("_EPoint"),[S.Z.PICA88].includes(y)&&c(tA.filter(function(e){return["lbl_sports","lbl_Esports"].includes(e.title)}))},[]);var C=(e=(0,p.Z)(x().mark(function e(t){return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k();case 2:e.sent?r({type:"SHOW_UM_POPUP"}):(r({type:"SHOW_LOGIN_POPUP"}),r({type:"UPDATE_LOGIN_ENTER_POINT",value:t}),(0,N.d8)("_EPoint",t,365));case 4:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)});return(0,_.jsxs)("div",{className:"sports",children:[(0,_.jsx)("div",{className:"sports__banner",children:(0,_.jsxs)(tb.tq,tD(tD({},tH),{},{thumbs:{swiper:a},children:[l.map(function(e){var t=e.title,a=e.text,s=e.enterPoint,n=e.desktopWebPPath,i=e.desktopPNGPath,r=e.mobilePNGPath,o=e.mobileWebPPath,l=g({pathType:P,pathName:i}),c=g({pathType:P,pathName:n}),d=g({pathType:P,pathName:r}),m=g({pathType:P,pathName:o});return(0,_.jsxs)(tb.o5,{onClick:function(){return C(s)},children:[(0,_.jsxs)("div",{className:"swiper__item",children:[(0,_.jsxs)("div",{className:"swiper__text-group",children:[(0,_.jsx)("span",{className:"title","data-text":w(t)}),(0,_.jsx)("span",{className:"text",children:w(a)})]}),(0,_.jsxs)("picture",{className:"swiper-lazy",children:[(0,_.jsx)("source",{media:"(min-width: 769px)",srcSet:c,type:"image/webp",loading:"lazy"}),(0,_.jsx)("source",{media:"(min-width: 769px)",srcSet:l,type:"image/webp",loading:"lazy"}),(0,_.jsx)("source",{media:"(max-width: 768px)",srcSet:m,type:"image/webp",loading:"lazy"}),(0,_.jsx)("source",{media:"(max-width: 768px)",srcSet:d,type:"image/webp",loading:"lazy"}),(0,_.jsx)("img",{srcSet:d,mode:"scaleToFill",alt:"",loading:"lazy"})]}),(0,_.jsx)("div",{className:"swiper-lazy-preloader"})]}),(0,_.jsx)("div",{className:"swiper-pagination"})]},t)}),(0,_.jsx)("span",{className:"swiper-notification","aria-live":"assertive","aria-atomic":"true"})]}))}),(0,_.jsxs)("div",{className:"sports__bullets",children:[(0,_.jsx)(tb.tq,{modules:[t_.o3],watchSlidesProgress:!0,onSwiper:s,children:l.map(function(e){var t=e.sportIcon,a=e.title;return(0,_.jsx)(tb.o5,{children:(0,_.jsx)("div",{className:"swiper__item",children:(0,_.jsx)("a",{className:"btn btn--icon",children:(0,_.jsx)("i",{className:"icon icon--gradient-primary",children:(0,_.jsx)("i",{className:t})})})})},a)})}),Z&&!T.includes(y)&&(0,_.jsxs)("a",{className:"btn btn--third btn--saba-score",onClick:function(e){(0,V.V)(u),e.stopPropagation()},target:"_blank",rel:"noreferrer",children:[(0,_.jsx)("i",{className:"icon icon--sport997",role:"desktop-visible"}),(0,_.jsx)("span",{className:"text",children:w("lbl_SabaScore")}),(0,_.jsx)("i",{className:"icon icon--arrow-right"})]})]})]})},tB=a(4328),tW=function(){var e=(0,j.$G)().t,t=(0,d.useRef)(null),a=(0,d.useRef)(!1);return(0,d.useEffect)(function(){var e=document.createElement("script");return e.src="https://913b555d-5bd3-4dbf-ac70-bfee5507839e.seals.dlagglobal.com/dlag-seal.js",e.async=!0,document.body.appendChild(e),e.onload=function(){a.current=!0},function(){document.body.removeChild(e)}},[]),(0,d.useEffect)(function(){a.current&&t.current&&window.dlag_913b555d_5bd3_4dbf_ac70_bfee5507839e&&window.dlag_913b555d_5bd3_4dbf_ac70_bfee5507839e.init(
1)},[t.current,a.current]),(0,_.jsxs)("div",{className:"footer__col footer__col--gaming-lic",children:[(0,_.jsxs)("div",{className:"footer__heading",children:[(0,_.jsx)("i",{className:"icon icon--certified"}),(0,_.jsx)("span",{className:"text",children:e("lbl_GamingLic")})]}),(0,_.jsx)("div",{className:"footer__item",children:(0,_.jsx)("div",{ref:t,id:"dlag-913b555d-5bd3-4dbf-ac70-bfee5507839e","data-dlag-seal-id":"913b555d-5bd3-4dbf-ac70-bfee5507839e","data-dlag-image-size":"128","data-dlag-image-type":"basic-small"})})]})},tK={modules:[t_.lI,t_.pt,t_.oM],className:"provider",slidesPerView:"auto",spaceBetween:0,loop:!0,autoplay:{delay:5e3},navigation:{nextEl:".provider__swiper-button-prev",prevEl:".provider__swiper-button-next"}};function tz(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function tV(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?tz(Object(a),!0).forEach(function(t){(0,Z.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):tz(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var t$=function(){var e=(0,m.Mj)().composePath;return(0,_.jsx)("div",{className:"footer__provider",children:(0,_.jsx)("div",{className:"provider",children:(0,_.jsx)(tb.tq,tV(tV({},tK),{},{loop:!0,children:["Allbet.png","Arvadiv.png","BetBuilder.png","BetRadar.png","Inspire.png","Lottery.png","MetricGaming.png","PragmaticPlay.png","RNGKeno.png","Saba.png","Sexy.png","Spadegaming.png","TableGames.png","VirtualGame.png"].map(function(t){return e({pathType:f.Z.siteImage,pathName:"provider/".concat(t)})}).map(function(e){return(0,_.jsx)(tb.o5,{children:(0,_.jsx)("div",{className:"swiper__item",children:(0,_.jsx)("img",{className:"swiper-lazy swiper-lazy-loaded",alt:"",src:e})})},e)})}))})})},tJ=a(7278),tq=function(e,t,a,s,n){var i=e;"zhcn"===e&&(i="cs"),ts[({1:ta.OpenStaticPage,2:ta.OpenExternalSite})[a]](s,i,t,n)},tY=function(){var e=(0,j.$G)().t,t=(0,d.useContext)(v.pI)[0],a=(0,m.Mj)(),s=a.composePath,n=a.siteName,i=a.isCashSite,r=(0,d.useState)(!1),o=r[0],l=r[1],c=function(e){var t=window.location.hostname;return RegExp("(^|\\.)".concat(e,"$")).test(t)};return(0,d.useEffect)(function(){l(tn.some(function(e){return c(e)}))},[]),(0,_.jsx)("div",{className:"footer__container",children:(0,_.jsxs)("div",{className:"footer__nav",children:[(0,_.jsx)("div",{className:"logo",role:"desktop-visible",children:i&&(0,_.jsx)("span",{className:"text-powered-by",children:e("lbl_AgtCash_PoweredBy")})}),(0,Z.Z)({},S.Z.Nova88,o&&(0,_.jsx)(tW,{}))[n],(0,_.jsxs)("div",{className:"footer__col footer__col--browser",role:"desktop-visible",children:[(0,_.jsx)("div",{className:"footer__heading",children:(0,_.jsx)("span",{className:"text",children:e("lbl_SuggestedBrwsr")})}),te.map(function(e){return(0,_.jsx)("div",{className:"footer__item",children:(0,_.jsx)("img",{src:s({pathType:f.Z.autoColorscheme,pathName:"browser/".concat(e.name,".svg")}),alt:""})},e.name)})]}),(0,_.jsxs)("div",{className:"footer__col footer__col--dropdown",children:[(0,_.jsx)(e5,{selectIconName:"icon icon--".concat(t.platform),dropdownType:"platform",layoutType:"footer"}),(0,_.jsx)(e5,{selectIconName:"flag flag--".concat(t.language),dropdownType:"language",layoutType:"footer"})]})]})})},tQ=function(){var e=(0,j.$G)().t,t=(0,d.useContext)(v.pI)[0],a=(0,m.Mj)(),s=a.composePath,n=a.siteName,i=a.isAutoColorSchemeShow;return(0,_.jsx)("div",{className:"footer__nav-list",role:"desktop-visible",children:tt(n).map(function(a,n){return(0,_.jsx)("div",{className:"footer__nav",children:a.map(function(a){var n=a.i18nKey,r=a.infoPage,o=a.openType;return(0,_.jsx)("div",{className:"footer__item",onClick:function(){return tq(t.language,r,o,s,i)},children:(0,_.jsx)("span",{className:"text",children:e(n)})},n)})},n)})})},tX=function(e){var t=e.siteName,a=(0,j.$G)().t,s=(0,m.Mj)().isCashSite;return(0,_.jsxs)("div",{className:"footer__cpr",children:[(0,_.jsx)("div",{className:"logo",role:"mobile-visible",children:s&&(0,_.jsx)("span",{className:"text-powered-by",children:a("lbl_AgtCash_PoweredBy")})}),(0,_.jsx)("span",{className:"text",children:(0,_.jsx)(tJ.Z,{siteName:t})})]})},t0=function(e){var t=e.siteName;return(0,_.jsx)("div",{className:"footer__main",children:(0,_.jsx)("span",{className:"text",children:(0,_.jsx)(tJ.Z,{siteName:t})})})},t8=function(){var e,t=(0,m.Mj)(),a=t.siteName,s=t.preferredSiteName,n=t.isCashSite,i=s||a;return(0,_.jsx)(ed,{children:(0,_.jsx)("div",{className:"footer",children:(e={},(0,Z.Z)(e,S.Z.Nova88,(0,_.jsxs)(_.Fragment,{children:[n&&(0,_.jsx)(tB.Z,{contactListType:"cash-agent"}),(0,_.jsx)(tY,{}),!n&&(0,_.jsx)(tQ,{}),(0,_.jsx)(tX,{siteName:i})]})),(0,Z.Z)(e,S.Z.IBCBet,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(t$,{}),(0,_.jsx)(tY,{}),(0,_.jsx)(tX,{siteName:i})]})),(0,Z.Z)(e,S.Z.PICA88,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(tY,{}),(0,_.jsx)(tX,{siteName:i})]})),(0,Z.Z)(e,S.Z.id8899,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(tY,{}),(0,_.jsx)(tX,{siteName:i})]})),(0,Z.Z)(e,S.Z.viva88,(0,_.jsx)(t0,{siteName:i})),(0,Z.Z)(e,S.Z.bong88,(0,_.jsx)(t0,{siteName:i})),(0,Z.Z)(e,S.Z.bettha88,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(tY,{}),(0,_.jsx)(tQ,{}),(0,_.jsx)(tX,{siteName:i})]})),(0,Z.Z)(e,S.Z.taraPlays,(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(tY,{}),(0,_.jsx)(tQ,{}),(0,_.jsx)(tX,{siteName:i})]})),(0,Z.Z)(e,S.Z.fifabet,(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(tX,{siteName:i})}
1)),(0,Z.Z)(e,S.Z.ocean99,(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(tX,{siteName:i})})),e)[i]})})},t1=a(4976),t9=function(){var e=(0,d.useContext)(t1.zK),t=e[0],a=e[1];return(0,_.jsx)("div",{className:"modal modal--select-league","data-open":t.openSelectLeaugePopup,children:(0,_.jsxs)("div",{className:"modal__dialog",children:[(0,_.jsx)("div",{className:"modal__close",onClick:function(){return a({type:"SHOWSELECTLEAGUEPOPUP"})},children:(0,_.jsx)("a",{className:"btn btn--icon",children:(0,_.jsx)("i",{className:"icon icon--close"})})}),(0,_.jsxs)("div",{className:"modal__header",children:[(0,_.jsx)("a",{className:"btn btn--icon",children:(0,_.jsx)("i",{className:"icon icon--arrow-left"})}),(0,_.jsx)("span",{className:"text",children:"Select Leagues"})]}),(0,_.jsx)("div",{className:"modal__body",children:(0,_.jsxs)("div",{className:"select-league",children:[(0,_.jsx)("div",{className:"select-league__tab",children:(0,_.jsx)("div",{className:"tabs tabs--underline",children:(0,_.jsxs)("div",{className:"tabs__content",children:[(0,_.jsx)("div",{className:"tab","data-selected":"true",children:(0,_.jsxs)("a",{className:"btn",children:[(0,_.jsx)("span",{className:"text",children:"All"}),(0,_.jsx)("span",{className:"text text--small",children:"(522)"})]})}),(0,_.jsx)("div",{className:"tab","data-selected":"false",children:(0,_.jsxs)("a",{className:"btn",children:[(0,_.jsx)("span",{className:"text",children:"Major"}),(0,_.jsx)("span",{className:"text text--small",children:"(0)"})]})}),(0,_.jsx)("div",{className:"tab","data-selected":"false",children:(0,_.jsxs)("a",{className:"btn",children:[(0,_.jsx)("span",{className:"text",children:"Minor"}),(0,_.jsx)("span",{className:"text text--small",children:"(177)"})]})}),(0,_.jsx)("div",{className:"tab","data-selected":"false",children:(0,_.jsxs)("a",{className:"btn",children:[(0,_.jsx)("span",{className:"text",children:"Others"}),(0,_.jsx)("span",{className:"text text--small",children:"(345)"})]})})]})})}),(0,_.jsx)("div",{className:"select-league__scorller",children:(0,_.jsxs)("div",{className:"select-league__list",children:[(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"1. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"2. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"3. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"4. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"5. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"6. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"7. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"8. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"9. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"10. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"11. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"12. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"13. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"14. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"15. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"16. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"17. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"18. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"19. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"20. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"21. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"22. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"23. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"24. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"25. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"26. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"27. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"28. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"29. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]}),(0,_.jsxs)("div",{className:"select-league__item","data-selected":"false",children:[(0,_.jsx)("span",{className:"text",children:"30. HNL"}),(0,_.jsx)("i",{className:"icon icon--done"})]})]})}),(0,_.jsxs)("div",{className:"select-league__option",children:[(0,_.jsxs)("label",{className:"checkbox",children:[(0,_.jsx)("input",{type:"checkbox"}),(0,_.jsx)("i",{className:"icon icon--checkbox"}),(0,_.jsx)("span",{className:"text",children:"Check All"})]}),(0,_.jsxs)("label",{className:"checkbox",children:[(0,_.jsx)("input",{type:"checkbox"}),(0,_.jsx)("i",{className:"icon icon--checkbox"}),(0,_.jsx)("span",{className:"text",children:"UnCheck"})]}),(0,_.jsx)("a",{className:"btn btn--secondary",children:(0,_.jsx)("span",{className:"text",children:"Go"})})]})]})})]})})},t2=a(8367),t3=a(1163),t5=a(1975),t7=a(1934),t4=a(2151),t6=a(3349),ae=a(7541),at=a(4487),aa=function(e){var t,a=e.loginMode,s=e.username,n=e.setLoginMode,i=e.getGestureUsers,r=e.changeGestureUser,o=e.addGestureAccount,l=e.userNameIndex,c=(0,d.useContext)(v.pI)[0],u=(0,j.$G)().t,p=c.language,h=c.platform,x=(0,d.useState)(!1),f=x[0],g=x[1],b=(0,d.useState)(!1),y=b[0],Z=b[1],S=(0,t3.useRouter)().locale,w=(0,m.Mj)(),T=w.ip,P=w.clientApiUrl,k=(0,d.useRef)(null);(0,d.useEffect)(function(){return g(!0),function(){document.getElementById("gestureInput")&&document.getElementById("gestureInput").remove()}},[]);var C=function(e){k.current&&k.current.contains(e.target)||Z(!1)};(0,d.useEffect)(function(){return y&&window.addEventListener("click",C),function(){window.removeEventListener("click",C)}},[y]);var O=function(e,t,a){(0,N.d8)("rememberMe",!0,365);var r={username:s,password:e,isGesture:!0,platform:h,language:p};(0,t6.xt)(P+"/api/Login",r).then(function(e){return(0,ae.z4)(P,e,r,null,S,T,!0,!0,u,t,a,i,n)}).catch(function(e){return console.error(e)})},I=function(){var e=[],t=(0,N.ej)("UserName");t=t&&""!==t?t.split(","):[];var a=(0,N.ej)("ges");a=a&&""!==a?a.split(","):[];for(var s=0;s<a.length;s+=1)t.indexOf(a[s])>=0&&e.push(a[s]);return e.length>5&&(e.length=5),e},E=function(){var e=!1;(0,N.ej)("gesTip")||(e=!0,(0,N.d8)("gesTip",1,7));var t={};t.lang=c.language,t.parent="divLogin",t.lockType="smallUnLock",t.userName=s,t.showTip=e,t.loginRemain=u("lbl_GesturePWD_login"),t.users=I(),t.first=!1,t.t=$,t.mcb=O,t.crcb=function(e){var t=(0,N.ej)("UserName"),a=(t=t&&""!==t?t.split(","):[]).indexOf(e);a>=0&&t.splice(a,1),t.unshift(loginData.username),(0,N.d8)("UserName",t.join(","),365)},new GestureClass(t)};return((0,d.useEffect)(function(){f&&E()},[f]),(0,d.useEffect)(function(){document.getElementById("gestureInput")&&document.getElementById("gestureInput").remove(),E()},[s,h]),f)?(0,_.jsx)("div",{id:"divLogin",className:"login-gesture","data-open":"gesture-password"===a,children:(0,_.jsxs)("div",{className:"dropdown","data-open":y,ref:k,children:[(0,_.jsxs)("div",{className:"dropdown__btn",onClick:function(){return Z(!y)},children:[(0,_.jsx)("i",{className:"icon icon--my-account"}),(0,_.jsx)("span",{className:"text",children:(null==s?void 0:s.split(",")[l])||s}),(0,_.jsx)("i",{className:"icon icon--arrow-down"})]}),(0,_.jsxs)("div",{className:"dropdown__container",children:[null===(t=I())||void 0===t?void 0:t.map(function(e){return(0,_.jsx)("div",{className:"dropdown__list",children:(0,_.jsxs)("div",{className:"dropdown__item","data-selected":e===s,onClick:function(){r(e),Z(!1)},children:[(0,_.jsx)("i",{className:"icon icon--my-account"}),(0,_.jsx)("span",{className:"text",children:e}),(0,_.jsx)("i",{className:"icon icon--done"})]})},e)}),(0,_.jsxs)("div",{className:"dropdown__item",onClick:function(){return o()},children:[(0,_.jsx)("i",{className:"icon icon--add-account"}),(0,_.jsx)("span",{className:"text",children:u("lbl_AddAccount")}
1)]})]})]})}):[]},as=a(7161),an=function(e,t){var a,s=function(){for(var s=arguments.length,n=Array(s),i=0;i<s;i++)n[i]=arguments[i];var r=this;clearTimeout(a),a=setTimeout(function(){return e.apply(r,n)},t)};return s.cancel=function(){clearTimeout(a)},s},ai=function(){var e,t,a,s,n,i,r,o,l,c,u=(0,d.useContext)(v.pI),p=u[0],h=u[1],x=p.isShowLoginPopup,f=(0,d.useContext)(t2.cS),g=f[0],b=f[1],y=(0,t5.$)().setLoginTempData,S=(0,j.$G)().t,w=(0,d.useState)(!1),T=w[0],P=w[1],k=(0,d.useState)([]),C=k[0],O=k[1],I=(0,d.useState)(!1),E=I[0],M=I[1],L=(0,d.useState)(!1),G=L[0],R=L[1],A=(0,d.useState)("keypad"),H=A[0],F=A[1],D=(0,d.useState)(!1),U=D[0],B=D[1],W=g.username,K=(0,m.Mj)(),z=K.openGesture,V=K.ip,J=K.clientApiUrl,q=K.toggleShowRegister,Y=K.rsaPublicKey,Q=(0,t3.useRouter)().locale,X=(0,d.useState)(!1),ee=X[0],et=X[1],ea=(0,d.useState)(!1),es=ea[0],en=ea[1],ei=(0,d.useState)(!1),er=ei[0],eo=ei[1],el=(0,d.useState)(0),ec=el[0],ed=el[1],em=(0,d.useState)(!1),eu=em[0],ep=em[1],eh=(0,d.useRef)(null),ex=function(){var e=!!(0,N.ej)("rememberMe")&&(0,N.ej)("rememberMe");return!["undefined","null"].includes(e)&&JSON.parse(e)};(0,d.useEffect)(function(){B(!0),R(ex())},[]),(0,d.useEffect)(function(){eh&&eh.current&&eh.current.focus()},[H]);var ej=function(){O([]),et(!1),ev("password",g.password)},ev=(0,d.useCallback)(an(function(e,t){"password"===e&&t.length>10?(b({type:t7.Kv.SHOWING_ERROR_MESSAGE,payload:{errorMessage:{errorMessage:t4.Xu.LimitPassword}}}),ep(!0)):(b({type:t7.Kv.NOT_SHOWING_ERROR_MESSAGE}),ep(!1))},300),[]);(0,d.useEffect)(function(){return function(){ev.cancel()}},[ev]);var eN=function(e){var t=e.target,a=t.id,s=t.value;ej(),b({type:t7.Kv.UPDATE_LOGIN_DATA,payload:{key:a,value:s}}),ev(a,s)},ef=function(){en(!0),setTimeout(function(){en(!1)},1e3),(0,t6._y)(J).then(function(e){return(0,ae.Zs)(e,g,b)}).catch(function(e){return console.error(e)})},eg=function(){var e=(0,N.ej)("ges")||"";return e?e.split(","):[]},eb=function(){var e=(0,N.ej)("UserName")&&!(0,N.ej)("UserNameList")?(0,N.ej)("UserName"):(0,N.ej)("UserNameList");return e&&e.split(",")},e_=function(){if(!z){b({type:t7.Kv.NOT_SHOWING_GESTURE_LOGIN_FORM});return}var e="mobile"===p.platform;eg().includes(null==W?void 0:W.toLowerCase())&&G&&e?b({type:t7.Kv.SHOWING_GESTURE_LOGIN_FORM}):(F("keypad"),b({type:t7.Kv.NOT_SHOWING_GESTURE_LOGIN_FORM}))},ey=(e={},(0,Z.Z)(e,t4.Ag.MakeSuccess,function(){b({type:t7.Kv.NOT_SHOWING_LOGIN_CODE_IMAGE}),b({type:t7.Kv.NOT_SHOWING_ERROR_MESSAGE}),e_()}),(0,Z.Z)(e,t4.Ag.RefreshLoginCode,function(){P(!0),b({type:t7.Kv.SHOWING_ERROR_MESSAGE,payload:{errorMessage:{errorMessage:t4.Xu.InvalidLoginCode}}}),ef()}),e),eZ=function(e){var t;b({type:t7.Kv.UPDATE_LOGIN_DATA,payload:{key:"loginCode",value:""}}),ey[(t={},(0,Z.Z)(t,t4.hc.Success,t4.Ag.MakeSuccess),(0,Z.Z)(t,t4.hc.CheckLoginCodeFail,t4.Ag.RefreshLoginCode),t)[e.errorCode]](e)},eS=function(){if(""===g.loginCode&&g.isShowLoginCodeForm){P(!0),b({type:t7.Kv.SHOWING_ERROR_MESSAGE,payload:{errorMessage:{errorMessage:t4.Xu.EmptyLoginCode}}});return}(0,t6.Mq)(J,g).then(function(e){return eZ(e)}).catch(function(e){return console.error(e)})},ew=function(){if(!eu){if(""===g.username){O(["emptyUsername"]);return}if(""===g.password){O(["emptyPassword"]);return}""!==g.password&&""!==g.username&&((0,at.n_)({category:"login",message:"loginData payload",data:{loginData:g,ip:V,locale:Q}}),(0,t6.xt)(J+"/api/Login",g,Y).then(function(e){if(ep(!0),(0,ae.z4)(J,e,g,b,Q,V,G,!1,S,null,null,eg,F,q,h,y),[t4.vm.LoginTooOften,t4.vm.LoginTooOftenPleaseWait5Minutes].includes(e.errorCode)){var t,a=Error("Login Failed - Error Code: ".concat(e.errorCode));a.status=e.errorCode,a.response=e;var s=(t={},(0,Z.Z)(t,t4.vm.LoginTooOften,t4.T0.LoginTooOften),(0,Z.Z)(t,t4.vm.LoginTooOftenPleaseWait5Minutes,t4.T0.LoginTooOftenPleaseWait5Minutes),t);(0,at.YA)("Login",s[e.errorCode]),(0,at.Tb)(a,{level:"error",extra:{errorCode:e.errorCode,response:e}})}e.errorCode!==t4.vm.Success&&setTimeout(function(){ep(!1)},3e3)}).catch(function(e){console.error(e),(0,at.YA)("Login","api_failed"),(0,at.Tb)(e,{level:"error",extra:{errorContent:e,clientApiUrl:J,apiName:"/api/Login",loginData:g}})}))}},eT=function(e){e.preventDefault(),R(!G)},eP=function(){h({type:"SHOW_LOGIN_POPUP"}),b({type:t7.Kv.NOT_SHOWING_ERROR_MESSAGE}),ej()},ek=function(){var e=(0,N.ej)("IS_GESTURE_TOOLTIP_SHOWN");if(e&&"gesture-password"===H){eo(!1);return}
1e||"keypad"!==H||(eo(!0),(0,N.d8)("IS_GESTURE_TOOLTIP_SHOWN",!0,365),setTimeout(function(){eo(!1)},5e3))};return((0,d.useEffect)(function(){e_()},[W,G,H,p.platform]),(0,d.useEffect)(function(){if(ex()){var e,t=(0,N.ej)("UserName");b({type:t7.Kv.UPDATE_LOGIN_DATA,payload:{key:"username",value:(null==t?void 0:t.split(",")[0])||""}});var a=eg(),s=null==(e=null==t?void 0:t.split(","))?void 0:e.some(function(e){return a.includes(e)});z&&a.length>0&&s&&"mobile"===p.platform&&F("gesture-password"),"desktop"===p.platform&&F("keypad")}},[b,z,p.platform]),(0,d.useEffect)(function(){(0,N.A0)("IsBDLogin")},[]),(0,d.useEffect)(function(){"gesture-password"===H&&x&&!(0,N.ej)("IS_GESTURE_TOOLTIP_SHOWN")&&(eo(!0),(0,N.d8)("IS_GESTURE_TOOLTIP_SHOWN",!0,365),setTimeout(function(){eo(!1)},5e3))},[x,H]),U)?(0,_.jsx)("div",{className:"modal modal--login","data-open":x,onMouseDown:eP,children:(0,_.jsxs)("div",{className:"modal__dialog",onMouseDown:function(e){return e.stopPropagation()},children:[(0,_.jsx)("div",{className:"modal__close",onClick:eP,children:(0,_.jsx)("a",{className:"btn btn--icon",children:(0,_.jsx)("i",{className:"icon icon--close"})})}),(0,_.jsx)("div",{className:"tooltip tooltip--top-right","data-open":er,children:(0,_.jsx)("div",{className:"text",children:S("lbl_UsePwdTooltip")})}),(0,_.jsxs)("div",{className:"modal__header",children:[(0,_.jsx)("span",{className:"text",children:g.isShowLoginCodeForm?S("lbl_EnterValidCode"):S("lbl_login")}),g.gestureToggle&&(0,_.jsx)("div",{className:"login-switch","data-mode":H,onClick:function(){F("keypad"===H?"gesture-password":"keypad"),ek()},children:(0,_.jsxs)("a",{className:"btn btn--icon",children:[(0,_.jsx)("i",{className:"icon icon--gesture-password"}),(0,_.jsx)("i",{className:"icon icon--keypad"})]})})]}),(0,_.jsxs)("div",{className:"login-form","data-open":!g.isShowLoginCodeForm&&"keypad"===H,children:[(0,_.jsxs)("div",{className:"login-form__item",children:[(0,_.jsx)(as.Z,{errorType:"usernameError",tooltip:C,setIsRequired:et},"usernameError"),(0,_.jsxs)("div",{className:"textfield",children:[(0,_.jsx)("div",{className:"textfield__icon",children:(0,_.jsx)("i",{className:"icon icon--my-account"})}),(0,_.jsx)("input",{className:"textfield__input",type:"text",placeholder:S("lbl_UName"),value:g.username,id:"username",maxLength:t4.B6.usernameMaxLength,onChange:eN,onKeyDown:function(e){return"Enter"===e.key&&ew()},required:ee,ref:eh}),(0,_.jsx)("span",{className:"textfield__bg"})]})]}),(0,_.jsxs)("div",{className:"login-form__item",children:[(0,_.jsx)(as.Z,{errorType:"passwordError",tooltip:C,setIsRequired:et},"passwordError"),(0,_.jsxs)("div",{className:"textfield",children:[(0,_.jsx)("div",{className:"textfield__icon",children:(0,_.jsx)("i",{className:"icon icon--lock"})}),(0,_.jsx)("input",{className:"textfield__input",type:E?"text":"password",placeholder:S("lbl_login_password"),value:g.password,id:"password",maxLength:t4.B6.passwordMaxLength,onChange:eN,onKeyDown:function(e){return"Enter"===e.key&&ew()},required:ee}),(0,_.jsxs)("a",{className:"btn btn--icon","data-selected":E,onClick:function(){return M(!E)},children:[(0,_.jsx)("i",{className:"icon icon--visibility-off"}),(0,_.jsx)("i",{className:"icon icon--visibility"})]}),(0,_.jsx)("span",{className:"textfield__bg"})]})]}),(0,_.jsx)("div",{className:"login-form__item",children:(0,_.jsxs)("label",{"aria-checked":G,className:"checkbox",htmlFor:G.toString(),onClick:function(e){return eT(e)},tabIndex:"",role:"checkbox",children:[(0,_.jsx)("input",{type:"checkbox",value:G,checked:G,onChange:function(){}}),(0,_.jsx)("i",{className:"icon icon--checkbox"}),(0,_.jsx)("span",{className:"text",children:S("lbl_RememberMe")})]})}),(0,_.jsx)("div",{className:"login-form__item login-form__item--failed","data-open":g.isShowLoginErrorMessage,children:(0,_.jsx)("span",{className:"text-void",children:null!=g&&null!==(t=g.errorMessage)&&void 0!==t&&t.replacedText?S(null==g?void 0:null===(a=g.errorMessage)||void 0===a?void 0:a.errorMessage,{0:null==g?void 0:null===(s=g.errorMessage)||void 0===s?void 0:s.replacedText,1:null==g?void 0:null===(n=g.errorMessage)||void 0===n?void 0:n.replacedText1}):S([null==g?void 0:null===(i=g.errorMessage)||void 0===i?void 0:i.errorMessage])})}),(0,_.jsx)("div",{className:"login-form__item","data-disable":eu,onClick:ew,children:(0,_.jsx)("a",{className:"btn btn--secondary",children:(0,_.jsx)("span",{className:"text",children:S("lbl_login")})})})]}),(0,_.jsxs)("div",{className:"login-form login-form--verified","data-open":g.isShowLoginCodeForm,children:[(0,_.jsx)("div",{className:"login-form__item",children:(0,_.jsx)("span",{className:"text",children:S("lbl_InputValidCode")})}),(0,_.jsxs)("div",{className:"login-form__item",children:[(0,_.jsxs)("div",{className:"textfield",children:[(0,_.jsx)("div",{className:"textfield__icon",children:(0,_.jsx)("i",{className:"icon icon--shield"})}),(0,_.jsx)("input",{className:"textfield__input",type:"text",placeholder:S("lbl_Captcha"),value:g.loginCode,id:"loginCode",maxLength:t4.B6.loginCodeMaxLength,onChange:function(e){var t=e.target.value;b({type:t7.Kv.UPDATE_LOGIN_DATA,payload:{key:"loginCode",value:t}}),P(!1)},onKeyDown:function(e){return"Enter"===e.key&&eS()},required:T}),(0,_.jsx)("div",{className:"img",children:(0,_.jsx)("img",{src:"data:image/png;base64,".concat(g.loginCodeImage),alt:""})}),(0,_.jsx)("a",{className:"btn btn--refresh","data-refresh":es,onClick:ef,children:(0,_.jsx)("i",{className:"icon icon--refresh"})}),(0,_.jsx)("span",{className:"textfield__bg"})]}),(0,_.jsx)("div",{className:"tooltip tooltip--bottom","data-open":T,children:(0,_.jsx)("span",{className:"text",children:null!=g&&null!==(r=g.errorMessage)&&void 0!==r&&r.replacedText?S(null==g?void 0:null===(o=g.errorMessage)||void 0===o?void 0:o.errorMessage,{0:null==g?void 0:null===(l=g.errorMessage)||void 0===l?void 0:l.replacedText}):S([null==g?void 0:null===(c=g.errorMessage)||void 0===c?void 0:c.errorMessage])})})]}),(0,_.jsx)("div",{className:"login-form__item",children:(0,_.jsx)("a",{className:"btn btn--secondary",onClick:eS,children:(0,_.jsx)("span",{className:"text",children:S("lbl_Submit")})})})]}),(0,_.jsx)(aa,{loginMode:H,username:W,setLoginMode:F,getGestureUsers:eg,changeGestureUser:function(e){var t,a=null===(t=eb())||void 0===t?void 0:t.findIndex(function(t){return t===e});ej(),ed(a),b({type:t7.Kv.UPDATE_LOGIN_DATA,payload:{key:"username",value:e}})},addGestureAccount:function(){F("keypad")},userNameIndex:ec})]})}):[]},ar=a(1601),ao=function(){var e,t=(0,d.useRef)(null),a=(0,d.useContext)(v.pI),s=a[0],n=a[1],i=s.isShowUMPopup,r=(0,d.useContext)(ar.Kw)[0],o=(0,j.$G)().t,l=(0,m.Mj)().siteName,c=(e={},(0,Z.Z)(e,S.Z.Nova88,"text-primary"),(0,Z.Z)(e,S.Z.IBCBet,"text-primary"),(0,Z.Z)(e,S.Z.PICA88,"text-primary"),(0,Z.Z)(e,S.Z.bong88,"text-highlight"),(0,Z.Z)(e,S.Z.viva88,"text-highlight"),(0,Z.Z)(e,S.Z.id8899,"text-primary"),(0,Z.Z)(e,S.Z.bettha88,"text-primary"),(0,Z.Z)(e,S.Z.taraPlays,"text-primary"),(0,Z.Z)(e,S.Z.fifabet,"text-primary"),(0,Z.Z)(e,S.Z.ocean99,"text-primary"),e),u=function(){n({type:"SHOW_UM_POPUP"})};return(0,d.useEffect)(function(){if(t.current&&r.umPlatform){var e=c[l],a="<span class='".concat(e,"'>").concat(o("lbl_login_".concat(r.umPlatform)),"</span>"),s="".concat(o("lbl_UMmsg_Txt1_1").replace("{0}",a));t.current.innerHTML=s}}
1,[r.umPlatform,r.displayUmStartTime,r.displayUmEndTime]),(0,_.jsx)("div",{className:"modal modal--um ","data-open":i,onClick:function(){return u()},children:(0,_.jsxs)("div",{className:"modal__dialog",onClick:function(e){return e.stopPropagation()},children:[(0,_.jsx)("div",{className:"modal__close",onClick:function(){return u()},children:(0,_.jsx)("a",{className:"btn btn--icon",children:(0,_.jsx)("i",{className:"icon icon--close"})})}),(0,_.jsx)("div",{className:"modal__header",children:(0,_.jsx)("span",{className:"text",children:o("lbl_UMmsg_Title")})}),(0,_.jsxs)("div",{className:"modal__body",children:[(0,_.jsxs)("p",{children:[(0,_.jsx)("span",{className:"text",ref:t}),(0,_.jsx)("br",{}),(0,_.jsxs)("span",{className:"text-group",children:[(0,_.jsxs)("span",{className:"text-col",children:[(0,_.jsx)("span",{className:"text-from",children:o("lbl_UMmsg_Txt2_1")}),(0,_.jsx)("span",{className:"text-to",children:o("lbl_UMmsg_Txt2_2")})]}),(0,_.jsxs)("span",{className:"text-col",children:[(0,_.jsx)("span",{className:"text-highlight",children:r.displayUmStartTime}),(0,_.jsx)("span",{className:"text-highlight",children:r.displayUmEndTime})]}),(0,_.jsx)("span",{className:"text-gmt",children:"(GMT+8)"})]}),(0,_.jsx)("br",{}),(0,_.jsx)("span",{className:"text",children:o("lbl_UMmsg_Txt3")})]}),(0,_.jsx)("p",{children:(0,_.jsx)("strong",{children:o("lbl_UMmsg_Txt4")})})]})]})})},al=function(){var e=(0,d.useState)(!1),t=e[0],a=e[1];return(0,d.useEffect)(function(){var e=function(){window.pageYOffset>150?a(!0):a(!1)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}},[]),{isVisible:t,scrollToTop:function(){window.scrollTo({top:0,behavior:"smooth"})}}},ac=function(){var e,t=(0,m.Mj)().siteName,a=al(),s=a.isVisible,n=a.scrollToTop,i=(e={},(0,Z.Z)(e,S.Z.viva88,"btn btn--icon btn--gototop"),(0,Z.Z)(e,S.Z.bong88,"btn btn--icon btn--gototop"),(0,Z.Z)(e,S.Z.Nova88,"btn btn--primary btn--icon btn--gototop"),(0,Z.Z)(e,S.Z.PICA88,"btn btn--primary btn--icon btn--gototop"),(0,Z.Z)(e,S.Z.IBCBet,"btn btn--primary btn--icon btn--gototop"),(0,Z.Z)(e,S.Z.id8899,"btn btn--primary btn--icon btn--gototop"),(0,Z.Z)(e,S.Z.bettha88,"btn btn--primary btn--icon btn--gototop"),(0,Z.Z)(e,S.Z.taraPlays,"btn btn--primary btn--icon btn--gototop"),(0,Z.Z)(e,S.Z.fifabet,"btn btn--primary btn--icon btn--gototop"),(0,Z.Z)(e,S.Z.ocean99,"btn btn--primary btn--icon btn--gototop"),e)[t];return(0,_.jsx)("a",{className:i,"data-open":s,role:"mobile-visible",onClick:n,children:(0,_.jsx)("i",{className:"icon icon--gototop"})})},ad=a(2011),am=a(217),au=function(){var e=navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident")},ap=a(1696),ah=function(e,t){var a="";if(1===e)a+="@keyframes messages-marquee-animate1 {\n0% {transform: translateY(0)}\n22.22222222222222% {transform: translateY(0px)}\n50% {transform: translateY(0px)}\n72.22222222222221% {transform: translateY(-22px)}\n100% {transform: translateY(-22px)}\n}\n";else{a+="@keyframes messages-marquee-animate".concat(e," {\n")+"0% {transform: translateY(0)}\n";for(var s=1;s<=e;s++){var n="{transform: translateY(".concat(-(t*s),"px)}");a+="".concat(100*(s-.5555555555555556)/e,"% ").concat(n,"\n")+"".concat(100*s/e,"% ").concat(n,"\n")}a+="}\n\n"}return a+'[class*="marquee"] {\n        line-height: 22px;\n        animation-timing-function: ease;\n        animation-delay: 2.5s;\n        animation-iteration-count: infinite;\n    }\n'+".marquee".concat(e," {\n            animation-duration: ").concat(5+4*(e-1),"s;\n            animation-name: messages-marquee-animate").concat(e,";\n        }\n")},ax=function(){(0,m.Mj)().siteName;var e=(0,j.$G)().t,t=(0,d.useRef)(null),a=(0,eF.d)().width,s=(0,d.useState)(1),n=s[0],i=s[1],r=(0,d.useState)(""),o=r[0],l=r[1];return(0,d.useEffect)(function(){if(void 0!==a){var e=Math.round(parseFloat(getComputedStyle(t.current).height)/22/2);l(ah(e,22)),i(e)}},[a]),(0,_.jsx)(ed,{children:(0,_.jsx)("div",{className:"topbar",children:(0,_.jsx)("div",{className:"announce",children:(0,_.jsxs)("div",{className:"announce__content",children:[(0,_.jsx)("style",{dangerouslySetInnerHTML:{__html:o}}),(0,_.jsxs)("div",{ref:function(e){t.current=e},className:"text marquee".concat(n),children:[(0,_.jsx)("span",{className:"text",children:e("lbl_CopySiteWarning")}),(0,_.jsx)("br",{}),(0,_.jsx)("span",{className:"text",children:e("lbl_CopySiteWarning")})]})]})})})})},aj=a(3677),av=(l={},(0,Z.Z)(l,S.Z.viva88,[(0,_.jsx)(tR,{})]),(0,Z.Z)(l,S.Z.bong88,[(0,_.jsx)(tR,{})]),(0,Z.Z)(l,S.Z.IBCBet,[(0,_.jsx)(tU,{}),(0,_.jsx)(tR,{})]),(0,Z.Z)(l,S.Z.PICA88,[(0,_.jsx)(tU,{}),(0,_.jsx)(tR,{})]),(0,Z.Z)(l,S.Z.Nova88,[(0,_.jsx)(tU,{}),(0,_.jsx)(tR,{})]),(0,Z.Z)(l,S.Z.id8899,[(0,_.jsx)(tU,{}),(0,_.jsx)(tR,{})]),(0,Z.Z)(l,S.Z.bettha88,[(0,_.jsx)(tU,{}),(0,_.jsx)(tR,{})]),(0,Z.Z)(l,S.Z.taraPlays,[(0,_.jsx)(tU,{}),(0,_.jsx)(tR,{})]),(0,Z.Z)(l,S.Z.fifabet,[(0,_.jsx)(tU,{}),(0,_.jsx)(tR,{})]),(0,Z.Z)(l,S.Z.ocean99,[(0,_.jsx)(tU,{}),(0,_.jsx)(tR,{})]),l),aN=(c={},(0,Z.Z)(c,S.Z.viva88,[(0,_.jsx)(t9,{}),(0,_.jsx)(ai,{}),(0,_.jsx)(ac,{}),(0,_.jsx)(ao,{}),(0,_.jsx)(function(){var e=(0,d.useContext)(v.pI),t=e[0],a=e[1],s=t.isShowCopySiteWarningPopup,n=(0,j.$G)().t,i=(0,d.useState)(!1),r=i[0],o=i[1];(0,d.useEffect)(function(){localStorage.getItem("doNotShowCopySiteWarning")?a({type:"HIDE_COPYSITE_WARNING_POPUP"}):a({type:"SHOW_COPYSITE_WARNING_POPUP"})},[a]);var l=function(){r&&localStorage.setItem("doNotShowCopySiteWarning",!0),a({type:"HIDE_COPYSITE_WARNING_POPUP"})};return(0,_.jsx)("div",{className:"modal modal--alert","data-open":s,onClick:l,children:(0,_.jsxs)("div",{className:"modal__dialog",onClick:function(e){return e.stopPropagation()},children:[(0,_.jsx)("div",{className:"modal__close",onClick:l,children:(0,_.jsx)("a",{className:"btn btn--icon",children:(0,_.jsx)("i",{className:"icon icon--close"})})}),(0,_.jsx)("div",{className:"modal__header",children:(0,_.jsx)("span",{className:"text",children:n("lbl_CopySiteWarning1")})}),(0,_.jsxs)("div",{className:"modal__body",children:[(0,_.jsx)("p",{children:(0,_.jsx)("span",{className:"text",children:n("lbl_CopySiteWarning2")})}),(0,_.jsx)("a",{className:"btn btn--secondary",onClick:l,children:(0,_.jsx)("span",{className:"text",children:n("lbl_ok")})}),(0,_.jsxs)("label",{className:"checkbox",children:[(0,_.jsx)("input",{type:"checkbox",onChange:function(e){o(e.target.checked)}}),(0,_.jsx)("i",{className:"icon icon--checkbox"}),(0,_.jsx)("span",{className:"text",children:n("DoNotShowAgain")})]})]})]})})},{})]),(0,Z.Z)(c,S.Z.bong88,[(0,_.jsx)(t9,{}),(0,_.jsx)(ai,{}),(0,_.jsx)(ac,{}),(0,_.jsx)(ao,{})]),(0,Z.Z)(c,S.Z.IBCBet,[(0,_.jsx)(t9,{}),(0,_.jsx)(ai,{}),(0,_.jsx)(ac,{}),(0,_.jsx)(ao,{})]),(0,Z.Z)(c,S.Z.PICA88,[(0,_.jsx)(t9,{}),(0,_.jsx)(ai,{}),(0,_.jsx)(ac,{}),(0,_.jsx)(ao,{})]),(0,Z.Z)(c,S.Z.Nova88,[(0,_.jsx)(t9,{}),(0,_.jsx)(ai,{}),(0,_.jsx)(ac,{}),(0,_.jsx)(ao,{})]),(0,Z.Z)(c,S.Z.id8899,[(0,_.jsx)(t9,{}),(0,_.jsx)(ai,{}),(0,_.jsx)(ac,{}),(0,_.jsx)(ao,{})]),(0,Z.Z)(c,S.Z.bettha88,[(0,_.jsx)(t9,{}),(0,_.jsx)(ai,{}),(0,_.jsx)(ac,{}),(0,_.jsx)(ao,{})]),(0,Z.Z)(c,S.Z.taraPlays,[(0,_.jsx)(t9,{}),(0,_.jsx)(ai,{}),(0,_.jsx)(ac,{}),(0,_.jsx)(ao,{})]),(0,Z.Z)(c,S.Z.fifabet,[(0,_.jsx)(t9,{}),(0,_.jsx)(ai,{}),(0,_.jsx)(ac,{}),(0,_.jsx)(ao,{})]),(0,Z.Z)(c,S.Z.ocean99,[(0,_.jsx)(t9,{}),(0,_.jsx)(ai,{}),(0,_.jsx)(ac,{}),(0,_.jsx)(ao,{})]),c),af=function(e){var t,a=e.children,s=(0,m.Mj)(),n=s.siteName,i=(s.isDeniedIp,s.isShowRegister),r=(0,d.useState)("desktop");r[0],r[1];var o=(0,d.useState)(!1),l=o[0],c=o[1],u=(0,d.useContext)(v.pI),p=(u[0],u[1]),h=(0,d.useContext)(t2.cS)[0],x=function(e){return e.map(function(e,t){return(0,_.jsx)(d.Fragment,{children:e},t)})};return((0,d.useEffect)(function(){c(au())},[]),(0,d.useEffect)(function(){"login"===(0,e6.re)("modal")&&p({type:"SHOW_LOGIN_POPUP"})},[p]),l)?(0,_.jsx)(ap.default,{}):h.isShowMemberRules?(0,_.jsx)(am.default,{}):i?(0,_.jsx)(eW.Z,{children:(0,_.jsx)(aj.Z,{})}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(ad.Z,{}),(0,_.jsxs)(eW.Z,{children:[(t={},(0,Z.Z)(t,S.Z.Nova88,!0),(0,Z.Z)(t,S.Z.viva88,!0),(0,Z.Z)(t,S.Z.bong88,!0),(0,Z.Z)(t,S.Z.IBCBet,!0),(0,Z.Z)(t,S.Z.PICA88,!0),(0,Z.Z)(t,S.Z.id8899,!0),(0,Z.Z)(t,S.Z.bettha88,!0),(0,Z.Z)(t,S.Z.taraPlays,!0),(0,Z.Z)(t,S.Z.fifabet,!0),(0,Z.Z)(t,S.Z.ocean99,!0),t)[n]?(0,_.jsx)(ax,{}):null,(0,_.jsx)(tf,{}),(0,_.jsxs)("div",{className:"main",children:[x(av[n]),a]}),(0,_.jsx)(t8,{}),x(aN[n])]})]})},ag=a(9737),ab=function(){var e=(0,j.$G)().t,t=(0,m.Mj)().platform,a=(0,d.useState)(!1),s=a[0],n=a[1];return((0,d.useEffect)(function(){(0,N.ej)("cookieConsent")||n(!0)},[]),s)?(0,_.jsx)("div",{className:"cookie-popup","data-layout":t,children:(0,_.jsxs)("div",{className:"cookie-popup__container",children:[(0,_.jsx)("p",{className:"cookie-popup__title",children:e("lbl_CookieTitle")}),(0,_.jsxs)("div",{className:"cookie-popup__content",children:[(0,_.jsx)("p",{className:"cookie-popup__text",children:e("lbl_Cookie")}),(0,_.jsx)("div",{className:"btn btn--primary",onClick:function(){(0,N.d8)("cookieConsent","true",365),n(!1)},children:(0,_.jsx)("span",{className:"text",children:e("lbl_IAgree")})})]})]})}):null},a_=a(2005),ay=a(1129),aZ=a(6359),aS=!0,aw=function(){var e=(0,d.useState)("Live Score"),t=e[0],a=e[1],s=(0,m.Mj)(),n=s.underMaintenanceInfo,i=s.siteName,r=(0,eF.d)().width,o=(0,a_.Z)().verifyCashDomain;return(0,d.useEffect)(function(){o((0,ay.Z)(window.location.href))},[]),(0,d.useEffect)(function(){"Products"===t&&r>u.Z.mediumWidth&&a("Live Score")},[t,r]),(0,aZ.Z)(n),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(ag.Z,{}),(0,_.jsxs)(af,{children:[(0,_.jsx)(eB,{handleSelect:a,isSelected:t}),(0,_.jsx)(ab,{}),i!==S.Z.taraPlays&&(0,_.jsx)("div",{className:"main__content",children:function(){switch(t){case"Products":return(0,_.jsx)(y,{});case"Live Score":default:return(0,_.jsx)(eL,{});case"Video":return(0,_.jsx)(eA,{});case"News":return(0,_.jsx)(eG,{})}}()})]})]})}},217:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return b},default:function(){return _}});var s=a(7294),n=a(9737),i=a(3443),r=a(29),o=a(7794),l=a.n(o),c=a(1163),d=a.n(c),m=a(8367),u=a(6234),p=a(3349),h=a(1934),x=a(7875),j=a(6084),v=a(5893),N=function(){var e,t=(0,s.useContext)(m.cS),a=t[0],n=t[1],o=(0,i.Mj)(),c=o.composePath,N=o.clientApiUrl,f=o.rsaPublicKey,g=(0,s.useContext)(u.pI)[0].language,b=(0,s.use
1State)(""),_=b[0],y=b[1],Z=(0,x.$G)().t;(0,s.useEffect)(function(){y(g),"zhcn"===g&&y("cs"),"mm"===g&&y("en")},[g]);var S=(e=(0,r.Z)(l().mark(function e(){return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,p.PT)(N,a,f);case 3:a.redirectUrl&&d().push(a.redirectUrl),e.next=10;break;case 6:e.prev=6,e.t0=e.catch(0),n({type:h.Kv.TOGGLE_SHOWING_MEMBER_RULES,payload:{isShowMemberRules:!1}}),console.error(e.t0);case 10:case"end":return e.stop()}},e,null,[[0,6]])})),function(){return e.apply(this,arguments)});return(0,v.jsx)("div",{className:"main",children:(0,v.jsxs)("div",{className:"main__container",children:[_&&(0,v.jsx)("iframe",{title:"MemberRules",src:c({pathType:j.Z.helpUiHtml,language:_,pathName:"_NewmemberConfirm.html"})}),(0,v.jsxs)("div",{className:"btn-group",children:[(0,v.jsx)("a",{className:"btn btn--agree",onClick:S,children:(0,v.jsx)("span",{className:"text",children:Z("lbl_Agree")})}),(0,v.jsx)("a",{className:"btn btn--disagree",onClick:function(){n({type:h.Kv.TOGGLE_SHOWING_MEMBER_RULES,payload:{isShowMemberRules:!1}})},children:(0,v.jsx)("span",{className:"text",children:Z("lbl_Disagree")})})]})]})})},f=a(2011),g=a(7278),b=!0,_=function(){var e=(0,i.Mj)(),t=e.siteName,a=e.preferredSiteName;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(n.Z,{}),(0,v.jsx)(f.Z,{}),(0,v.jsxs)("div",{className:"app",children:[(0,v.jsx)("div",{className:"header",children:(0,v.jsx)("div",{className:"header__main",children:(0,v.jsx)("div",{className:"logo"})})}),(0,v.jsx)(N,{}),(0,v.jsx)("div",{className:"footer",children:(0,v.jsxs)("div",{className:"footer__cpr",children:[(0,v.jsx)("div",{className:"logo",role:"mobile-visible"}),(0,v.jsx)("span",{className:"text",children:(0,v.jsx)(g.Z,{siteName:a||t})})]})})]})]})}},8835:function(e,t){"use strict";t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.desktop,a=e.mobile;return!!(null!=t&&t.isUnderMaintenance&&null!=a&&a.isUnderMaintenance)}},1709:function(e,t,a){"use strict";a.d(t,{V:function(){return n},l:function(){return i}});var s=function(e){switch(e){case"th":return"https://www.sabanews-th.com";
1case"in":return"https://www.cricsabasportsin.com";case"id":return"https://www.thesabasportsindo.com";case"vn":return"https://www.sabavn.net/lich-thi-dau/bong-da";case"zhcn":case"ch":case"cs":return"https://www.thesabanewscn.com";default:return"https://www.thesabamynews.com"}},n=function(e){var t=s(e);"vn"===e&&(t+="?v=".concat(new Date().getTime())),window.open(t,"sabaScore")},i=function(e,t,a){var n=s(a),i="".concat(n,"/live-score/?sport=").concat(e.toLowerCase(),"&matchid=").concat(t);window.open(i,"landingPage")}},5274:function(e,t){"use strict";t.Z=function(){return new Date().getFullYear()}},5728:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return a(5942)}])}},function(e){e.O(0,[906,734,666,550,877,169,774,888,179],function(){return e(e.s=5728)}),_N_E=e.O()}]);
2//# sourceMappingURL=index-0bb0dcdcfaf34fc8.js.map

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.