PageSourceSearch

https://anfin.vn/_next/static/chunks/pages/du-doan-world-cup-2022-abdbb87f111df033.js

js anfin.vn collected 2026-09-24 10:11:52 UTC 89,838 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7663],{50463:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/du-doan-world-cup-2022",function(){return t(17442)}])},63877:function(e,n,t){"use strict";var i=t(85893),r=t(90948),o=t(80822),s=t(15861),l=t(86650),a=t(89755),d=t.n(a),c=t(67294),x=t(73046);let h=(0,r.ZP)(o.Z)({overflow:"hidden"}),u=(0,r.ZP)(o.Z)({display:"flex",alignItems:"center",justifyContent:"center",background:"#234494"}),p=(0,r.ZP)(s.Z)({textTransform:"capitalize",color:"#fff",fontSize:"18px"}),g=e=>{let[n,t]=(0,c.useState)(""),[r,o]=(0,c.useState)(""),s=(0,l.cF)();return(0,c.useEffect)(()=>{if(e&&(null==e?void 0:e.uid)!==""&&(0,l.Jt)((0,l.iH)(s,"user/".concat(null==e?void 0:e.uid,"/avatar.jpg"))).then(e=>{t(e)}).catch(e=>{x.k.info(e)}),e&&(null==e?void 0:e.email)!==""){let n=(null==e?void 0:e.email)?null==e?void 0:e.email.charAt(0):"";o(n)}},[]),(0,i.jsx)(h,{sx:{width:(null==e?void 0:e.width)+"px",height:(null==e?void 0:e.height)+"px",borderRadius:(null==e?void 0:e.width)/2+"px"},children:""!==n&&n.length>1?(0,i.jsx)(d(),{src:n||"",alt:"Avatar",width:(null==e?void 0:e.width)||32,height:(null==e?void 0:e.height)||32,layout:"fixed"}):(0,i.jsx)(u,{sx:{width:(null==e?void 0:e.width)+"px",height:(null==e?void 0:e.height)+"px"},children:(0,i.jsx)(p,{children:r})})})};n.Z=g},56137:function(e,n,t){"use strict";t.d(n,{s:function(){return S},y:function(){return Z}});var i=t(85893),r=t(90948),o=t(58826),s=t(80822),l=t(51233),a=t(2734),d=t(15861),c=t(11163),x=t(50841),h=t(67294),u=t(85518),p=t(40962),g=t(67030),m=t(36075),f=t(45561),j=t(79592),C=t(42496),y=t(64458),b=t(87999);let Z=220,v=(0,r.ZP)(o.ZP)({"& .MuiDrawer-paper":{boxShadow:"none",border:"none"}}),w=(0,r.ZP)(s.Z)({height:"72px",display:"flex",alignItems:"center",padding:"16px 16px 8px"}),k=(0,r.ZP)(s.Z)({backgroundColor:"#fff",borderRadius:"10px",padding:"10px 14px",display:"flex",alignItems:"center"}),F=(0,r.ZP)(l.Z)({padding:"8px 12px 12px","& .itemSidebar":{marginBottom:"4px"}}),S=()=>{let e=(0,a.Z)(),n=(0,c.useRouter)(),{pathname:t}=n;(0,h.useEffect)(()=>{j.yj.forEach(e=>n.prefetch(e))},[]);let r=(e,n)=>(e+"/").includes(n);return(0,i.jsxs)(v,{sx:{display:{xxs:"none",xs:"none",sm:"none",md:"block"},zIndex:e.zIndex.appBar+1,width:0},variant:"permanent",PaperProps:{elevation:0,sx:{backgroundColor:"#121F3E",width:Z}},children:[(0,i.jsx)(w,{children:(0,i.jsx)(k,{children:(0,i.jsx)(f.Z,{})})}),(0,i.jsx)(F,{alignItems:"stretch",justifyContent:"flex-start",children:j.Wn.map((e,n)=>(0,i.jsx)(E,{config:e,isCurrentPath:r(t,e.path)},n))})]})},B=(e,n)=>
1(0,i.jsx)(e,{sx:{fontSize:"22px",color:n?"#FFFFFF":"#8A93AC"}}),E=e=>{let{config:n,isCurrentPath:t}=e,r=(0,c.useRouter)(),{canOpenDrawer:o,changeCanOpenDrawer:a,changeTooltipGPT:f}=(0,y.Pb)(),[Z,v]=(0,h.useState)(!1),{symbol:w}=(0,b.kb)(),{user:k}=(0,C.a)(),{enqueueSnackbar:F}=(0,x.Ds)(),S="";r.pathname.includes("market")&&w&&(S=w);let E=()=>{if(!k&&n.path!==j.Ti){F("T\xednh năng cần phải đăng nhập",{variant:"warning"});return}if(n.path===j.A$.Community){a(g.Od.COMMUNITY,!o[g.Od.COMMUNITY]),f(g.Od.TOOLTIPS,!1),(0,m.Z)("web_cm_sidebar_open_button",null==k?void 0:k.userFS.uid,u.KC);return}if(n.path===j.A$.Search){a(g.Od.COMMUNITY,!o[g.Od.COMMUNITY]),a(g.Od.SEARCHING,!o[g.Od.SEARCHING]),(0,m.Z)("web_log_in_search",null==k?void 0:k.userFS.uid,w);return}if(n.path===j.A$.Trade){a(g.Od.TRADING,!o[g.Od.TRADING],{initTicker:S}),(0,m.Z)("web_sb_trade_icon",null==k?void 0:k.userFS.uid,w);return}n.path===j.A$.History&&(0,m.Z)("web_transaction_history",null==k?void 0:k.userFS.uid,u.KC),n.path===j.A$.Statistic&&(0,m.Z)("web_view_statistic_site",null==k?void 0:k.userFS.uid,u.KC),n.path===j.A$.Portfolio&&(0,m.Z)("web_view_portfolio_site",null==k?void 0:k.userFS.uid,u.KC),r.push(n.path)};return(0,i.jsxs)(s.Z,{className:"itemSidebar",children:[(0,i.jsxs)(l.Z,{direction:"row",alignItems:"center",spacing:1.5,sx:{borderRadius:"10px",padding:"12px",backgroundColor:t?"#0AA5FF":"transparent",textDecoration:"none",cursor:"pointer","&:hover":{backgroundColor:t?"#0AA5FF":"rgba(255, 255, 255, 0.06)"}},onClick:E,children:[B(n.Icon,t),(0,i.jsx)(d.Z,{fontWeight:t?700:400,fontSize:14,color:t?"#FFFFFF":"#8A93AC",children:n.title})]}),(0,i.jsx)(p.H,{canOpen:Z,handleClose:()=>v(!1)})]})}},40962:function(e,n,t){"use strict";t.d(n,{H:function(){return p}});var i=t(85893),r=t(63343),o=t(53793),s=t(39043),l=t(80822),a=t(86886),d=t(93946),c=t(15861),x=t(89755),h=t.n(x);let u={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",borderRadius:"8px",p:4},p=e=>{let{canOpen:n,handleClose:t}=e;return(0,i.jsx)(s.Z,{open:n,onClose:t,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,i.jsx)(l.Z,{sx:{...u,width:"100%",maxWidth:"400px"},children:(0,i.jsxs)(a.ZP,{sx:{alignItems:"center"},children:[(0,i.jsx)(d.Z,{onClick:t,sx:{position:"absolute",top:10,right:10},children:(0,i.jsx)(r.Z,{})}),(0,i.jsxs)(a.ZP,{sx:{padding:"10px",fontSize:"18px"},children:[(0,i.jsxs)(c.Z,{sx:{color:"#000000",fontSize:"18px",fontWeight:800},children:["Để sử dụng t\xednh năng n\xe0y, bạn cần ho\xe0n tất"," "]}),(0,i.jsx)(c.Z,{sx:{color:"#FF6B00",fontSize:"18px",fontWeight:800},children:"x\xe1c thực t\xe0i khoản (eKYC)"}),(0,i.jsx)(a.ZP,{sx:{padding:"10px",display:"table",margin:"auto"},children:(0,i.jsx)(h(),{src:"/landing-page/DownloadQRcode.png",alt:"Anfin",width:120,height:120})}),(0,i.jsxs)(a.ZP,{children:[(0,i.jsxs)(a.ZP,{sx:{display:"flex",alignItems:"center",padding:"8px",background:"#FDF8EB",justifyContent:"center"},children:[(0,i.jsx)(o.Z,{sx:{color:"#FF6B00"}}),(0,i.jsx)(c.Z,{sx:{fontSize:"14px",fontWeight:700},children:"Qu\xe9t QR-code để tải app v\xe0 x\xe1c thực"})]}),(0,i.jsxs)(c.Z,{sx:{color:"#000000",fontSize:12,fontWeight:700},children:["*Hướng dẫn:"," "]}),(0,i.jsx)(c.Z,{sx:{color:"#000000",fontSize:12},children:"Mở Camera tr\xean thiết bị di động v\xe0 hướng ống k\xednh về m\xe3 QR để qu\xe9t."})]})]})]})})})}},92486:function(e,n,t){"use strict";t.d(n,{D:function(){return g}});var i=t(85893),r=t(90948),o=t(23795),s=t(39043),l=t(80822),a=t(86886),d=t(15861),c=t(89755),x=t.n(c),h=t(11163);let u=(0,r.ZP)(o.Z)({background:"#0B3B50",borderRadius:"8px",padding:"16px 32px",color:"#fff",textDecoration:"none",cursor:"pointer",display:"flex",width:"fit-content",fontSize:"18px","&:hover":{background:"#284653"}}),p={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",boxShadow:24,borderRadius:"32px",p:4},g=e=>{let{canOpen:n,handleClose:t,data:r}=e,c=(0,h.useRouter)();return(0,i.jsx)(s.Z,{open:n,onClose:t,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,i.jsx)(l.Z,{sx:{...p,width:"100%",maxWidth:"800px"},children:(0,i.jsxs)(a.ZP,{container:!0,spacing:2,sx:{alignItems:"center"},children:[(0,i.jsxs)(a.ZP,{item:!0,xs:12,sm:7,children:[(0,i.jsx)("h2",{id:"parent-modal-title",children:null==r?void 0:r.title}),(0,i.jsx)("p",{id:"parent-modal-description",children:null==r?void 0:r.decs}),(0,i.jsx)(u,{onClick:()=>{c.push({pathname:"/login/",query:{comeFrom:c.asPath}},"/login/"),t()},id:"login-Anfin",children:null==r?void 0:r.titleButton}),(null==r?void 0:r.qrCode)&&(0,i.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",marginTop:"5%"},children:[(0,i.jsx)(x(),{src:"/common/QR-Code.png",alt:"Anfin",width:54,height:54}),(0,i.jsxs)(l.Z,{sx:{marginLeft:"10px"},children:[(0,i.jsx)(d.Z,{sx:{display:"flex",color:"#6B6B6B"},children:"Bạn chưa c\xf3 t\xe0i khoản?"}),(0,i.jsx)(d.Z,{sx:{display:"flex"},children:(0,i.jsx)(o.Z,{sx:{color:"#0B3B50",fontWeight:"600"},href:"/login/",id:"register-Anfin",children:"Đăng k\xfd t\xe0i khoản ngay nh\xe9"})})]})]})]}),(0,i.jsx)(a.ZP,{item:!0,xs:12,sm:5,sx:{display:{xs:"none",sm:"block"}},children:(0,i.jsx)(x(),{src:r.url,alt:"Anfin - Nền tảng đầu tư d\xe0nh cho người mới bắt đầu",width:(null==r?void 0:r.qrCode)?326:300,height:300})})]})})})}},19641:function(e,n,t){"use strict";var i,r,o,s;t.d(n,{Bi:function(){return d},DE:function(){return a},Du:function(){return l},Iw:function(){return i},JH:function(){return c},Kd:function(){return r},MC:function(){return g},gB:function(){return p},gR:function(){return x},kt:function(){return h},mz:function(){return m},uH:function(){return u}});let l=e=>"https://firebasestorage.googleapis.com/v0/b/anfin-prod.appspot.com/o/worldcup%2Fflag%2F".concat(e.toLowerCase(),".svg?alt=media");(o=i||(i={})).A="a",o.B="b",o.C="c",o.D="d",o.E="e",o.F="f",o.G="g",o.H="h",(s=r||(r={})).Argentina="Argentina",s.Australia="Australia",s.Belgium="Belgium",s.Brazil="Brazil",s.Cameroon="Cameroon",s.Canada="Canada",s.CostaRica="CostaRica",s.Croatia="Croatia",s.Denmark="Denmark",s.Ecuador="Ecuador",s.England="England",s.France="France",s.Germany="Germany",s.Ghana="Ghana",s.Iran="Iran",s.Japan="Japan",s.Mexico="Mexico",s.Morocco="Morocco",s.Netherlands="Netherlands",s.Poland="Poland",s.Portugal="Portugal",s.Qatar="Qatar",s.SaudiArabia="SaudiArabia",s.Senegal="Senegal",s.Serbia="Serbia",s.SouthKorea="SouthKorea",s.Spain="Spain",s.Switzerland="Switzerland",s.Tunisia="Tunisia",s.UnitedStates="UnitedStates",s.Uruguay="Uruguay",s.Wales="Wales",s.NaNNation1="NaNNation1",s.NaNNation2="NaNNation2",s.NaNNation3="NaNNation3",s.NaNNation4="NaNNation4";let a=[r.NaNNation1,r.NaNNation2,r.NaNNation3,r.NaNNation4],d={[i.A]:[r.Qatar,r.Ecuador,r.Senegal,r.Netherlands],[i.B]:[r.England,r.Iran,r.UnitedStates,r.Wales],[i.C]:[r.Argentina,r.SaudiArabia,r.Mexico,r.Poland],[i.D]:[r.France,r.Australia,r.Denmark,r.Tunisia],[i.E]:[r.Spain,r.CostaRica,r.Germany,r.Japan],[i.F]:[r.Belgium,r.Canada,r.Morocco,r.Croatia],[i.G]:[r.Brazil,r.Serbia,r.Switzerland,r.Cameroon],[i.H]:[r.Portugal,r.Ghana,r.Uruguay,r.SouthKorea]},c={[r.Argentina]:{nation:"Argentina",acronym:"ARG"},[r.Australia]:{nation:"Australia",acronym:"AUS"},[r.Belgium]:{nation:"Belgium",acronym:"BEL"},[r.Brazil]:{nation:"Brazil",acronym:"BRA"},[r.Cameroon]:{nation:"Cameroon",acronym:"CMR"},[r.Canada]:{nation:"Canada",acronym:"CAN"},[r.CostaRica]:{nation:"Costa Rica",acronym:"CRI"},[r.Croatia]:{nation:"Croatia",acronym:"CRO"}
1,[r.Denmark]:{nation:"Denmark",acronym:"DEN"},[r.Ecuador]:{nation:"Ecuador",acronym:"ECU"},[r.England]:{nation:"England",acronym:"ENG"},[r.France]:{nation:"France",acronym:"FRA"},[r.Germany]:{nation:"Germany",acronym:"GER"},[r.Ghana]:{nation:"Ghana",acronym:"GHA"},[r.Iran]:{nation:"Iran",acronym:"IRN"},[r.Japan]:{nation:"Japan",acronym:"JAP"},[r.Mexico]:{nation:"Mexico",acronym:"MEX"},[r.Morocco]:{nation:"Morocco",acronym:"MOR"},[r.Netherlands]:{nation:"Netherlands",acronym:"NED"},[r.Poland]:{nation:"Poland",acronym:"POL"},[r.Portugal]:{nation:"Portugal",acronym:"POR"},[r.Qatar]:{nation:"Qatar",acronym:"QAT"},[r.SaudiArabia]:{nation:"Saudi Arabia",acronym:"SAU"},[r.Senegal]:{nation:"Senegal",acronym:"SEN"},[r.Serbia]:{nation:"Serbia",acronym:"SER"},[r.SouthKorea]:{nation:"South Korea",acronym:"KOR"},[r.Spain]:{nation:"Spain",acronym:"ESP"},[r.Switzerland]:{nation:"Switzerland",acronym:"SWI"},[r.Tunisia]:{nation:"Tunisia",acronym:"TUN"},[r.UnitedStates]:{nation:"United States",acronym:"USA"},[r.Uruguay]:{nation:"Uruguay",acronym:"URU"},[r.Wales]:{nation:"Wales",acronym:"WAL"},[r.NaNNation1]:{nation:"NaNNation1",acronym:"NaNNation1"},[r.NaNNation2]:{nation:"NaNNation2",acronym:"NaNNation2"},[r.NaNNation3]:{nation:"NaNNation3",acronym:"NaNNation3"},[r.NaNNation4]:{nation:"NaNNation4",acronym:"NaNNation4"}},x=4,h=new Date("2022-12-15T17:00:00+07:00"),u=new Date("2022-11-20T00:00:00+07:00"),p={title:"Chưa đăng nhập t\xe0i khoản",decs:"Bạn cần đăng nhập t\xe0i khoản Anfin",titleButton:"Đăng nhập",url:"/common/computer_analystic.png",qrCode:!0},g={title:"Cảm ơn bạn đ\xe3 tham gia",decs:"Anfin đ\xe3 ghi nhận dự đo\xe1n của bạn. Bạn c\xf3 thể xem lại dự đo\xe1n v\xe0 điểm của m\xecnh ở trang Dự đo\xe1n của t\xf4i.",titleButton:"Dự đo\xe1n của t\xf4i",url:"/common/worldCup-thank-you.png",qrCode:!1},m={ARG:r.Argentina,AUS:r.Australia,BEL:r.Belgium,BRA:r.Brazil,CMR:r.Cameroon,CAN:r.Canada,CRI:r.CostaRica,CRO:r.Croatia,DEN:r.Denmark,ECU:r.Ecuador,ENG:r.England,FRA:r.France,GER:r.Germany,GHA:r.Ghana,IRN:r.Iran,JAP:r.Japan,MEX:r.Mexico,MOR:r.Morocco,NED:r.Netherlands,POL:r.Poland,POR:r.Portugal,QAT:r.Qatar,SAU:r.SaudiArabia,SEN:r.Serbia,SER:r.Serbia,KOR:r.SouthKorea,ESP:r.Spain,SWI:r.Switzerland,TUN:r.Tunisia,USA:r.UnitedStates,URU:r.Uruguay,WAL:r.Wales}},13078:function(e,n,t){"use strict";t.d(n,{C:function(){return r}});var i=t(50841);let r=()=>{let{enqueueSnackbar:e,closeSnackbar:n}=(0,i.Ds)(),t=t=>i=>{let r=e(i,{onClick:()=>n(r),variant:t});setTimeout(()=>{},5e3)};return{default:t("default"),error:t("error"),success:t("success"),warning:t("warning"),info:t("info")}}},69429:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var i=t(85893),r=t(90948),o=t(80822),s=t(2734),l=t(15861),a=t(51233),d=t(5152),c=t.n(d),x=t(11163),h=t(67294),u=t(21816),p=t(56137),g=t(67030),m=t(76755),f=t(42496),j=t(64458),C=t(72329),y=t(36470);let b=c()(()=>Promise.resolve().then(t.bind(t,36470)).then(e=>e.MainHeader),{loadableGenerated:{webpack:()=>[36470]}}),Z=c()(()=>Promise.all([t.e(4564),t.e(7918),t.e(1535),t.e(6693),t.e(6720),t.e(7022)]).then(t.bind(t,67022)).then(e=>e.AppHeader),{loadableGenerated:{webpack:()=>[67022]}}),v=(0,r.ZP)(o.Z)({position:"absolute",width:"100%",height:"100%",background:"rgba(255, 255, 255, 0.4)",backdropFilter:"blur(15px)",zIndex:2,display:"flex",alignItems:"center",justifyContent:"center"}),w=(0,r.ZP)("main")(e=>{let{theme:n}=e;return{overflow:"auto",width:"100%",marginTop:"".concat(y.MAIN_DESKTOP_HEADER_HEIGHT,"px"),[n.breakpoints.down("md")]:{marginTop:"".concat(y.MAIN_DESKTOP_HEADER_HEIGHT,"px")}}});function k(e){let{children:n,sx:t,hasDownloadingApp:r=!1,hasFooter:d=!1,keepAppHeaderForGuest:c=!1}=e,{user:y}=(0,f.a)(),k=(0,s.Z)(),F=(0,x.useRouter)(),{modalLoginRegister:S}=(0,j.Pb)(),B=F.pathname.startsWith("/app"),[E,A]=(0,h.useState)(!1),[D,I]=(0,h.useState)("login"),N=()=>{A(!0),I("login")},P=()=>{A(!0),I("register")};return(0,i.jsxs)(o.Z,{sx:{position:"relative"},children:[(0,i.jsx)(v,{sx:{display:S[g.Od.LOGINREGISTER]?"flex":"none"},children:E?(0,i.jsx)(u.vF,{tabName:D}):(0,i.jsxs)(o.Z,{sx:{textAlign:"center",fontWeight:"700"},children:["Bạn cần",(0,i.jsx)(l.Z,{sx:{color:"#2491DD",margin:"0px 5px",fontWeight:"bolder",":hover":{textDecoration:"underline"}},onClick:()=>N(),children:"đăng nhập"}),"hoặc",(0,i.jsx)(l.Z,{sx:{color:"#2491DD",margin:"0px 5px",fontWeight:"bolder",":hover":{textDecoration:"underline"}},onClick:()=>P(),children:"đăng k\xfd"}),(0,i.jsx)("br",{}),"t\xe0i khoản Anfin để sử dụng t\xednh năng n\xe0y."]})}),(0,i.jsxs)(a.Z,{sx:{minHeight:1,display:"flex",width:"100%",pl:{md:B?"".concat(p.y,"px"):0}},children:[y||c?(0,i.jsx)(Z,{}):(0,i.jsx)(b,{}),(0,i.jsxs)(w,{sx:t,children:[(0,i.jsx)(o.Z,{sx:{p:{xs:k.spacing(0,2,1,2),sm:k.spacing(0,2,1,3)}},children:n}),(0,i.jsxs)("footer",{children:[r&&(0,i.jsx)(m.default,{}),d&&(0,i.jsx)(C.MainFooter,{})]})]})]})]})}},17442:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return nT},default:function(){return nR}});var i=t(85893),r=t(26215),o=t(23508),s=t(90813),l=t(90948),a=t(86886),d=t(80822),c=t(15861),x=t(23795),h=t(46574),u=t(51233),p=t(69417),g=t(2962),m=t(89755),f=t.n(m),j=t(67294),C=t(63877),y=t(32141),b=t(11351);let Z=(0,l.ZP)(u.Z)(()=>({justifyContent:"center",alignItems:"center",borderRadius:"12px",padding:"2px",border:"double 2px transparent",backgroundImage:"linear-gradient(white, white), linear-gradient(to right, #F36D50, #7816C5)",backgroundOrigin:"border-box",backgroundClip:"content-box, border-box"})),v=(0,l.ZP)(u.Z)(e=>{let{theme:n}=e;return{justifyContent:"center",alignItems:"center",padding:n.spacing(1,2)}}),w=(0,l.ZP)(c.Z)({fontFamily:"Mulish,sans-serif !important",fontWeight:900,fontSize:24}),k=(0,l.ZP)(c.Z)({fontWeight:400,fontSize:16}),F=e=>{let{untilDate:n}
1=e,[t,r]=(0,j.useState)({days:0,hours:0,mins:0,secs:0});return(0,j.useEffect)(()=>{let e=setInterval(()=>{let e=n.getTime()-Date.now();if(e<0){r({days:0,hours:0,mins:0,secs:0});return}r((0,b.L)(e))},1e3);return()=>{clearInterval(e)}},[n]),(0,i.jsxs)(u.Z,{justifyContent:"center",alignItems:{xs:"center",md:"flex-start"},spacing:2,children:[(0,i.jsx)(c.Z,{fontWeight:700,fontSize:20,children:"Bạn cần gửi kết quả trận đấu trước 17:00 ng\xe0y 15/12/2022"}),(0,i.jsxs)(Z,{direction:"row",spacing:2,children:[(0,i.jsxs)(v,{children:[(0,i.jsx)(w,{children:t.days}),(0,i.jsx)(k,{children:"Ng\xe0y"})]}),(0,i.jsx)(c.Z,{children:":"}),(0,i.jsxs)(v,{children:[(0,i.jsx)(w,{children:t.hours}),(0,i.jsx)(k,{children:"Giờ"})]}),(0,i.jsx)(c.Z,{children:":"}),(0,i.jsxs)(v,{children:[(0,i.jsx)(w,{children:t.mins}),(0,i.jsx)(k,{children:"Ph\xfat"})]}),(0,i.jsx)(c.Z,{children:":"}),(0,i.jsxs)(v,{children:[(0,i.jsx)(w,{children:t.secs}),(0,i.jsx)(k,{children:"Gi\xe2y"})]})]}),(0,i.jsxs)(d.Z,{sx:{color:"#F0C45C",display:"flex"},children:[(0,i.jsx)(y.Z,{}),(0,i.jsx)(c.Z,{sx:{color:"#697896",fontSize:"16px",lineHeight:"20px",letterSpacing:"0.01em",marginLeft:"7px",width:"75%"},children:"Lưu \xfd: Khi bạn dự đo\xe1n đ\xfang sẽ được cộng điểm tăng cơ hội nhận thưởng, bạn sẽ kh\xf4ng mất bất kỳ chi ph\xed n\xe0o khi dự đo\xe1n sai."})]})]})};var S=t(73595),B=t(73601),E=t(67720),A=t(27484),D=t.n(A),I=t(88767),N=t(57404),P=t(19641),T=t(13078),R=t(42496),W=t(77829),z=t(73046),H=t(92486),M=t(60888),G=t(50594);let O=(0,l.ZP)(d.Z)({background:"#FFFFFF",border:"1px solid #B6BEC9",borderRadius:"8px",height:"100%"}),J=(0,l.ZP)(d.Z)({display:"flex",justifyContent:"space-between",background:"#143A55",borderTopLeftRadius:"7px",borderTopRightRadius:"7px",padding:"12px"}),L=(0,l.ZP)(c.Z)({color:"#52BE80",fontWeight:"600"}),_=(0,l.ZP)(d.Z)({padding:"12px 12px 0px 12px",position:"relative"}),q=(0,l.ZP)(d.Z)({display:"flex",alignItems:"center"}),U=(0,l.ZP)(d.Z)({cursor:"pointer",border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px","&.win":{background:"#E9F7EF",border:"1px solid #52BE80"},"&.lose":{background:"##FFEEEE",border:"1px solid #FF5959"}}),K=(0,l.ZP)(d.Z)({display:"flex",justifyContent:"space-between",alignItems:"center",padding:"15px 12px"}),Q=(0,l.ZP)(d.Z)({display:"flex",alignItems:"center"}),V=e=>{var n,t,r,o,s,l,a,x,h,u,p,g,m,j,C,y;return(0,i.jsxs)(O,{children:[(0,i.jsxs)(J,{children:[(0,i.jsxs)(c.Z,{sx:{textTransform:"uppercase",color:"#fff"},children:["Trận ",e.index+1]}),(0,i.jsxs)(L,{children:[(null==e?void 0:null===(n=e.match)||void 0===n?void 0:n.point)>0?"+":"",null==e?void 0:null===(t=e.match)||void 0===t?void 0:t.point,"đ"]})]}),(0,i.jsxs)(_,{children:[(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",margin:"10px 0px 20px 0px"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000"},children:"Bạn chọn"}),(0,i.jsx)(Y,{data:null==e?void 0:null===(r=e.match)||void 0===r?void 0:r.winnerCode})]}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(0,i.jsxs)(U,{className:e.match.winnerCode.winnerCode===e.matchResult.winner.code?"win":"",children:[(0,i.jsx)(f(),{alt:""!==e.match.winnerCode.winnerCode?e.match.winnerCode.winnerCode:e.matchResult.winner.code,src:(0,P.Du)(""!==e.match.winnerCode.winnerCode?e.match.winnerCode.winnerCode:e.matchResult.winner.code),unoptimized:!0,width:34,height:24}),(0,i.jsx)(c.Z,{fontWeight:500,fontSize:18,color:"#191D2B",sx:{marginLeft:"10px",fontWeight:"600"},children:""!==e.match.winnerCode.winnerCode?e.match.winnerCode.winnerCode:e.matchResult.winner.code})]}),(0,i.jsx)(d.Z,{sx:{display:"flex",fontSize:"32px",margin:"0px 20px",color:"#96A0B5"},children:"/"}),(0,i.jsxs)(U,{className:e.match.winnerCode.winnerCode===e.matchResult.loser.code?"win":"",children:[(0,i.jsx)(f(),{alt:""!==e.match.loserCode.loserCode?e.match.loserCode.loserCode:e.matchResult.loser.code,src:(0,P.Du)(""!==e.match.loserCode.loserCode?e.match.loserCode.loserCode:e.matchResult.loser.code),unoptimized:!0,width:34,he
1ight:24}),(0,i.jsx)(c.Z,{fontWeight:500,fontSize:18,color:"#191D2B",sx:{marginLeft:"10px",fontWeight:"600"},children:""!==e.match.loserCode.loserCode?e.match.loserCode.loserCode:e.matchResult.loser.code})]})]}),(0,i.jsxs)(d.Z,{sx:{borderTop:"1px solid #E8EAEE",borderBottom:"1px solid #E8EAEE",margin:"20px 0px 0px",padding:"10px 0px",position:"relative"},children:[(0,i.jsx)(c.Z,{sx:{display:"table",marginBottom:"10px"},children:"Kết quả chi tiết"}),(0,i.jsx)(X,{title:"Tổng số b\xe0n thắng:",value:null==e?void 0:null===(o=e.match)||void 0===o?void 0:null===(s=o.goals)||void 0===s?void 0:s.goals,result:null==e?void 0:null===(l=e.match)||void 0===l?void 0:l.goals.result}),(0,i.jsx)(X,{title:"Số lần phạt g\xf3c:",value:null==e?void 0:null===(a=e.match)||void 0===a?void 0:null===(x=a.corners)||void 0===x?void 0:x.corners,result:null==e?void 0:null===(h=e.match)||void 0===h?void 0:h.corners.result}),(0,i.jsx)(X,{title:"Số thẻ đỏ:",value:null==e?void 0:null===(u=e.match)||void 0===u?void 0:null===(p=u.redCards)||void 0===p?void 0:p.redCards,result:null==e?void 0:null===(g=e.match)||void 0===g?void 0:g.redCards.result})]})]}),(0,i.jsxs)(K,{children:[(0,i.jsxs)(Q,{children:[(0,i.jsx)(f(),{width:20,height:20,alt:"ball",src:"/common/win.png"}),(0,i.jsx)(c.Z,{sx:{color:"#27AE60",fontWeight:600,ml:1},children:null==e?void 0:null===(m=e.matchResult)||void 0===m?void 0:m.winner.name})]}),(0,i.jsxs)(Q,{children:[(0,i.jsx)(f(),{width:20,height:20,alt:"ball",src:"/common/soccer-ball.png"}),(0,i.jsx)(c.Z,{sx:{color:"#27AE60",fontWeight:600,ml:1},children:null==e?void 0:null===(j=e.matchResult)||void 0===j?void 0:j.goals})]}),(0,i.jsxs)(Q,{children:[(0,i.jsx)(f(),{width:20,height:20,alt:"ball",src:"/common/corner.png"}),(0,i.jsx)(c.Z,{sx:{color:"#27AE60",fontWeight:600,ml:1},children:null==e?void 0:null===(C=e.matchResult)||void 0===C?void 0:C.corners})]}),(0,i.jsxs)(Q,{children:[(0,i.jsx)(f(),{width:20,height:20,alt:"ball",src:"/common/red.png"}),(0,i.jsx)(c.Z,{sx:{color:"#27AE60",fontWeight:600,ml:1},children:null==e?void 0:null===(y=e.matchResult)||void 0===y?void 0:y.redCards})]})]})]})},Y=e=>{var n,t;return(0,i.jsxs)(i.Fragment,{children:["true"===e.data.result&&(0,i.jsxs)(q,{children:[(0,i.jsx)(c.Z,{sx:{color:"#27AE60",fontWeight:600,marginRight:"5px"},children:P.mz[null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.winnerCode]}),(0,i.jsx)(M.Z,{sx:{fontSize:"16px",color:"#27AE60"}})]}),"false"===e.data.result&&(0,i.jsxs)(q,{children:[(0,i.jsx)(c.Z,{sx:{color:"#FF5959",fontWeight:600,marginRight:"5px"},children:P.mz[null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.winnerCode]}),(0,i.jsx)(G.Z,{sx:{fontSize:"16px",color:"#FF5959"}})]}),""===e.data.result&&(0,i.jsx)(c.Z,{sx:{color:"#191D2B",fontWeight:600},children:"-"})]})},X=e=>(0,i.jsxs)(i.Fragment,{children:["true"===e.result&&(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000",fontWeight:"600"},children:null==e?void 0:e.title}),(0,i.jsxs)(d.Z,{children:[(0,i.jsx)(c.Z,{sx:{color:"#27AE60",fontWeight:"600",marginRight:"5px"},children:(null==e?void 0:e.value)<0?"-":null==e?void 0:e.value}),(0,i.jsx)(M.Z,{sx:{fontSize:"16px",color:"#27AE60"}})]})]}),"false"===e.result&&(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000",fontWeight:"600"},children:null==e?void 0:e.title}),(0,i.jsxs)(d.Z,{children:[(0,i.jsx)(c.Z,{sx:{color:"#FF5959",fontWeight:"600",marginRight:"5px"},children:(null==e?void 0:e.value)<0?"-":null==e?void 0:e.value}),(0,i.jsx)(G.Z,{sx:{fontSize:"16px",color:"#FF5959"}})]})]}),""===e.result&&(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000",fontWeight:"600"},children:null==e?void 0:e.title}),(0,i.jsx)(c.Z,{sx:{color:"#019BFD",fontWeight:"600"},children:(null==e?void 0:e.value)<0?"-":null==e?void 0:e.value})]})]}),$=(0,l.ZP)(d.Z)({background:"#FFFFFF",border:"1px solid #B6BEC9",borderRadius:"8px",height:"100%"}),ee=(0,l.ZP)(d.Z)({display:"flex",justifyContent:"space-between",background:"#143A55",borderTopLeftRadius:"7px",borderTopRightRadius:"7px",padding:"12px"}),en=(0,l.ZP)(d.Z)({padding:"12px 12px 0px 12px",position:"relative"}),et=(0,l.ZP)(d.Z)({cursor:"pointer",border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px","&.win":{background:"#E9F7EF",border:"1px solid #2491DD"},"&.lose":{background:"##FFEEEE",border:"1px solid #FF5959"}}),ei=(0,l.ZP)(d.Z)({display:"flex",justifyContent:"space-between",alignItems:"center",padding:"12px"}),er=(0,l.ZP)(d.Z)({display:"flex",alignItems:"center"}),eo=e=>{var n,t,r,o;return(0,i.jsxs)($,{children:[(0,i.jsx)(ee,{children:(0,i.jsxs)(c.Z,{sx:{textTransform:"uppercase",color:"#fff"},children:["Trận ",e.index+1]})}),(0,i.jsxs)(en,{children:[(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",margin:"10px 0px 20px 0px"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000"},children:"Bạn chọn"}),(0,i.jsx)(c.Z,{children:"-"})]}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(0,i.jsxs)(et,{children:[(0,i.jsx)(f(),{alt:e.match.winner.code,src:(0,P.Du)(e.match.winner.code),unoptimized:!0,width:34,he
1ight:24}),(0,i.jsx)(c.Z,{fontWeight:500,fontSize:18,color:"#191D2B",sx:{marginLeft:"10px",fontWeight:"600"},children:e.match.winner.code})]}),(0,i.jsx)(d.Z,{sx:{display:"flex",fontSize:"32px",margin:"0px 20px",color:"#96A0B5"},children:"/"}),(0,i.jsxs)(et,{sx:{border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px"},children:[(0,i.jsx)(f(),{alt:e.match.loser.code,src:(0,P.Du)(e.match.loser.code),unoptimized:!0,width:34,height:24}),(0,i.jsx)(c.Z,{fontWeight:500,fontSize:18,color:"#191D2B",sx:{marginLeft:"10px",fontWeight:"600"},children:e.match.loser.code})]})]}),(0,i.jsxs)(d.Z,{sx:{borderTop:"1px solid #E8EAEE",borderBottom:"1px solid #E8EAEE",margin:"20px 0px 0px",padding:"10px 0px",position:"relative"},children:[(0,i.jsx)(c.Z,{sx:{display:"table",marginBottom:"10px"},children:"Kết quả chi tiết"}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center",lineHeight:"24px"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000",fontWeight:"600"},children:"Số b\xe0n thắng:"}),(0,i.jsx)(c.Z,{children:"-"})]}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center",lineHeight:"24px"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000",fontWeight:"600"},children:"Số phạt g\xf3c:"}),(0,i.jsx)(c.Z,{children:"-"})]}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center",lineHeight:"24px"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000",fontWeight:"600"},children:"Số thẻ đỏ:"}),(0,i.jsx)(c.Z,{children:"-"})]})]})]}),(0,i.jsxs)(ei,{children:[(0,i.jsxs)(er,{children:[(0,i.jsx)(f(),{width:20,height:20,alt:"ball",src:"/common/win.png"}),(0,i.jsx)(c.Z,{sx:{color:"#27AE60",fontWeight:600,ml:1},children:null==e?void 0:null===(n=e.match)||void 0===n?void 0:n.winner.name})]}),(0,i.jsxs)(er,{children:[(0,i.jsx)(f(),{width:20,height:20,alt:"ball",src:"/common/soccer-ball.png"}),(0,i.jsx)(c.Z,{sx:{color:"#27AE60",fontWeight:600,ml:1},children:null==e?void 0:null===(t=e.match)||void 0===t?void 0:t.goals})]}),(0,i.jsxs)(er,{children:[(0,i.jsx)(f(),{width:20,height:20,alt:"ball",src:"/common/corner.png"}),(0,i.jsx)(c.Z,{sx:{color:"#27AE60",fontWeight:600,ml:1},children:null==e?void 0:null===(r=e.match)||void 0===r?void 0:r.corners})]}),(0,i.jsxs)(er,{children:[(0,i.jsx)(f(),{width:20,height:20,alt:"ball",src:"/common/red.png"}),(0,i.jsx)(c.Z,{sx:{color:"#27AE60",fontWeight:600,ml:1},children:null==e?void 0:null===(o=e.match)||void 0===o?void 0:o.redCards})]})]})]})},es=(0,l.ZP)(d.Z)({background:"#FFFFFF",border:"1px solid #B6BEC9",borderRadius:"8px",height:"100%","&.ChungKet":{border:"1px solid #FF9A3F"}}),el=(0,l.ZP)(d.Z)({display:"flex",justifyContent:"space-between",background:"#143A55",borderTopLeftRadius:"7px",borderTopRightRadius:"7px",padding:"12px","&.ChungKet":{background:"#FF9A3F"}}),ea=(0,l.ZP)(c.Z)({color:"#fff"}),ed=(0,l.ZP)(d.Z)({padding:"12px 12px 0px 12px",position:"relative"}),ec=(0,l.ZP)(d.Z)({display:"flex","&.hide":{display:"none"}}),ex=(0,l.ZP)(B.ZP)({input:{textAlign:"right"}}),eh=(0,l.ZP)(d.Z)({cursor:"pointer","&.win":{background:"rgb(36 145 221 / 20%)",border:"1px solid #2491DD"},"&:hover":{background:"rgb(36 145 221 / 20%)",border:"1px solid #2491DD"}}),eu=(0,l.ZP)(p.Z)({display:"flex",justifyContent:"center",fontWeight:"600",width:"100%",padding:"12px 0px","&.hide":{display:"none"}}),ep={r2A:{matchId:"r2A",goals:{goals:-1,result:""},corners:{corners:-1,result:""},redCards:{redCards:-1,result:""},winnerCode:{winnerCode:"",result:""},loserCode:{loserCode:"",result:""},point:0,status:"",typeMatch:2,isChecked:!1},r2B:{matchId:"r2B",goals:{goals:-1,result:""},corners:{corners:-1,result:""},redCards:{redCards:-1,result:""},winnerCode:{winnerCode:"",result:""},loserCode:{loserCode:"",result:""},point:0,status:"",typeMatch:2,isChecked:!1}},eg=e=>{let{match:n,predictions:t}=e,{user:r}
1=(0,R.a)(),o=(0,T.C)(),[s,l]=(0,j.useState)(!1),[x,h]=(0,j.useState)(P.gB),[u,g]=(0,j.useState)(ep),[m,C]=(0,j.useState)(!1),y="show share-facebook-playGame";y=!0===m||t&&(null==t?void 0:t.isActive)===!0?"hide share-facebook-playGame":"show share-facebook-playGame";let b=()=>l(!1),Z=()=>{h(P.gB),l(!0)};(0,j.useEffect)(()=>{window.FB&&FB.init({appId:N.z0,autoLogAppEvents:!0,xfbml:!0,version:"v15.0"})}),(0,j.useEffect)(()=>{let e=ep;if(null==t?void 0:t.predictions){let i=t.predictions;Object.keys(e).map((t,r)=>{t in i&&(e[t]=i[t]),e[t].status=n[r].status})}g(e)},[]);let v=()=>{if(r)FB.ui({display:"popup",method:"share",href:"https://iboard.anfin.vn/du-doan-world-cup-2022/",hashtag:"#AnfinDuDoanWorldCup2022"},function(e){e?(C(!0),w()):C(!1)});else{Z();return}},{mutate:w}=(0,I.useMutation)(async()=>{let e=await (null==r?void 0:r.userFS.getIdToken())||"";if(e)return fetch("/api/world-cup/prediction/active-prediction-round2",{method:"PUT",headers:(0,W.IZ)(e),body:JSON.stringify(u)}).then(e=>e.json())},{onSuccess:()=>{C(!0)},onError:e=>{C(!1),z.k.error(e)}}),k=async e=>{if(r)try{let n=null==u?void 0:u[e];if(""===n.winnerCode.winnerCode){o.warning("H\xe3y chọn đội chiến thắng?");return}F(n)}catch(e){z.k.error(e)}else{Z();return}},{mutate:F}=(0,I.useMutation)(async e=>{let n=await (null==r?void 0:r.userFS.getIdToken())||"";if(n)return fetch("/api/world-cup/prediction/set-round2",{method:"POST",headers:(0,W.IZ)(n),body:JSON.stringify({matchId:e.matchId,goals:e.goals.goals,corners:e.corners.corners,redCards:e.redCards.redCards,winnerCode:e.winnerCode.winnerCode,loserCode:e.loserCode.loserCode})}).then(e=>e.json())},{onSuccess:()=>{o.success("Gửi kết quả th\xe0nh c\xf4ng!"),z.k.info("Successfully")},onError:e=>{o.error("Gửi kết quả thất bại!"),z.k.error(e)}}),B=(e,n,t)=>{let i={...u,[e]:{...u[e],matchId:e,winnerCode:{winnerCode:n,result:""},loserCode:{loserCode:t,result:""}}};g(i)},A=e=>n=>{let t={...u,[e]:{...u[e],matchId:e,goals:{goals:Number(n.target.value),result:""}}};g(t)},M=e=>n=>{let t={...u,[e]:{...u[e],matchId:e,corners:{corners:Number(n.target.value),result:""}}};g(t)},G=e=>n=>{let t={...u,[e]:{...u[e],matchId:e,redCards:{redCards:Number(n.target.value),result:""}}};g(t)};return(0,i.jsxs)(d.Z,{children:[(0,i.jsx)(c.Z,{children:"Nhấp v\xe0o quốc kỳ của đội bạn dự đo\xe1n sẽ thắng v\xe0 nhấn Gửi kết quả."}),(0,i.jsx)(E.Z,{sx:{margin:"20px 0px"}}),(0,i.jsx)(a.ZP,{container:!0,spacing:2,children:n.length>0&&n.map((e,t)=>{let o=!0;{let n=new window.Date,t=D()(n).unix()-D()(null==e?void 0:e.startTime).unix();o=!(t>0)}return(0,i.jsxs)(a.ZP,{item:!0,xs:12,sm:6,lg:6,children:["completed"!==e.status&&(0,i.jsxs)(es,{className:"ChungKet",children:[(0,i.jsxs)(el,{className:"ChungKet",children:[(0,i.jsxs)(c.Z,{sx:{textTransform:"uppercase",color:"#fff"},children:["Trận"," ",(0,i.jsx)("strong",{children:0===t?"Tranh Hạng Ba":"Chung Kết"})]}),(0,i.jsx)(ea,{children:D()(null==e?void 0:e.startTime).format("DD/MM - HH:mm")})]}),(0,i.jsxs)(d.Z,{sx:{position:"relative"},children:[(0,i.jsxs)(ed,{children:[(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",margin:"10px 0px 20px 0px"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000"},children:"Bạn chọn"}),(0,i.jsx)(c.Z,{sx:{color:"#191D2B",fontWeight:600},children:P.mz[null==u?void 0:u[e.id].winnerCode.winnerCode]||"T\xean quốc gia"})]}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(null==e?void 0:e.team1)?(0,i.jsxs)(eh,{className:P.JH[null==e?void 0:e.team1].acronym===(null==u?void 0:u[null==e?void 0:e.id].winnerCode.winnerCode)?"win":"",sx:{border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px"},onClick:()=>B(e.id,P.JH[null==e?void 0:e.team1].acronym,P.JH[null==e?void 0:e.team2].acronym),children:[(0,i.jsx)(f(),{alt:P.JH[null==e?void 0:e.team1].acronym,src:(0,P.Du)(P.JH[null==e?void 0:e.team1].acronym),unoptimized:!0,width:34,height:24}),(0,i.jsx)(c.Z,{fontWeight:500,fontSize:18,color:"#191D2B",sx:{marginLeft:"10px",fontWeight:"600"},children:P.JH[null==e?void 0:e.team1].acronym})]}):(0,i.jsx)(eh,{sx:{border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px"}}),(0,i.jsx)(d.Z,{sx:{display:"flex",fontSize:"32px",margin:"0px 20px",color:"#96A0B5"},children:"/"}),(null==e?void 0:e.team2)?(0,i.jsxs)(eh,{className:P.JH[null==e?void 0:e.team2].acronym===(null==u?void 0:u[null==e?void 0:e.id].winnerCode.winnerCode)?"win":"",sx:{border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px"},onClick:()=>B(e.id,P.JH[null==e?void 0:e.team2].acronym,P.JH[null==e?void 0:e.team1].acronym),children:[(0,i.jsx)(f(),{alt:P.JH[null==e?void 0:e.team2].acronym,src:(0,P.Du)(P.JH[null==e?void 0:e.team2].acronym),unoptimized:!0,width:34,he
1ight:24}),(0,i.jsx)(c.Z,{fontWeight:500,fontSize:18,color:"#191D2B",sx:{marginLeft:"10px",fontWeight:"600"},children:P.JH[null==e?void 0:e.team2].acronym})]}):(0,i.jsx)(eh,{sx:{border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px"}})]}),(0,i.jsxs)(d.Z,{sx:{borderTop:"1px solid #E8EAEE",borderBottom:"1px solid #E8EAEE",margin:"20px 0px 0px",padding:"10px 0px",position:"relative"},children:[(0,i.jsx)(c.Z,{sx:{display:"table",marginBottom:"10px"},children:"Chọn chi tiết"}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000",fontWeight:"600",height:"24px"},children:"Số b\xe0n thắng:"}),(0,i.jsx)(ex,{placeholder:"nhấn để nhập",value:(null==u?void 0:u[e.id].goals.result)===""&&(null==u?void 0:u[e.id].goals.goals)===-1?"":null==u?void 0:u[e.id].goals.goals,type:"number",name:"goals",onChange:A(e.id),sx:{textAlign:"right",color:"#019BFD",height:"24px",padding:"0px"}})]}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000",fontWeight:"600",height:"24px"},children:"Số lần phạt g\xf3c:"}),(0,i.jsx)(ex,{placeholder:"nhấn để nhập",name:"corners",type:"number",value:(null==u?void 0:u[e.id].corners.result)===""&&(null==u?void 0:u[e.id].corners.corners)===-1?"":null==u?void 0:u[e.id].corners.corners,onChange:M(e.id),sx:{textAlign:"right",color:"#019BFD",height:"24px",padding:"0px"}})]}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000",fontWeight:"600",height:"24px"},children:"Số thẻ đỏ:"}),(0,i.jsx)(ex,{placeholder:"nhấn để nhập",name:"redCards",type:"number",value:(null==u?void 0:u[e.id].redCards.result)===""&&(null==u?void 0:u[e.id].redCards.redCards)===-1?"":null==u?void 0:u[e.id].redCards.redCards,onChange:G(e.id),sx:{textAlign:"right",color:"#019BFD",height:"24px",padding:"0px"}})]}),(null==e?void 0:e.team1)&&(null==e?void 0:e.team2)&&(0,i.jsxs)(ec,{sx:{position:"absolute",width:"100%",height:"100%",top:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",background:"rgba(255, 255, 255, 0.9)"},className:y,children:[(0,i.jsx)(S.Z,{sx:{color:"#FF9A3F",marginBottom:"12px"}}),(0,i.jsx)(p.Z,{className:"share-facebook-playGame",sx:{color:"#fff",background:"linear-gradient(180deg, #F36702 0%, #FFA800 100%)",borderRadius:"4px",padding:"6px 8px",fontSize:"14px"},onClick:()=>v(),children:"Mở kho\xe1"}),(0,i.jsx)(c.Z,{sx:{color:"#FF6B00",marginTop:"10px"},children:"Chia sẻ ngay để mở kh\xf3a"})]})]})]}),(0,i.jsx)(eu,{className:o?"send-match":"send-match hide",onClick:()=>k(e.id),children:"Gửi kết quả"})]})]}),"completed"===e.status&&!r&&(0,i.jsx)(eo,{match:null==n?void 0:n[t],index:t}),"completed"===e.status&&r&&(0,i.jsx)(V,{match:null==u?void 0:u[null==e?void 0:e.id],matchResult:null==n?void 0:n[t],index:t})]},t)})}),(0,i.jsx)(H.D,{canOpen:s,handleClose:b,data:x})]})};var em=t(90244);let ef=(0,l.ZP)(d.Z)({background:"#FFFFFF",border:"1px solid #B6BEC9",borderRadius:"8px",height:"100%"}),ej=(0,l.ZP)(d.Z)({display:"flex",justifyContent:"space-between",background:"#143A55",borderTopLeftRadius:"7px",borderTopRightRadius:"7px",padding:"12px"}),eC=(0,l.ZP)(c.Z)({color:"#fff"}),ey=(0,l.ZP)(d.Z)({padding:"12px 12px 0px 12px",position:"relative"}),eb=(0,l.ZP)(d.Z)({display:"flex","&.hide":{display:"none"}}),eZ=(0,l.ZP)(B.ZP)({input:{textAlign:"right"}}),ev=(0,l.ZP)(d.Z)({cursor:"pointer","&.win":{background:"rgb(36 145 221 / 20%)",border:"1px solid #2491DD"},"&:hover":{background:"rgb(36 145 221 / 20%)",border:"1px solid #2491DD"}}),ew=(0,l.ZP)(d.Z)({position:"absolute",width:"100%",height:"100%",background:"rgba(255, 255, 255, 0.95)",borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px",zIndex:"1",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"}),ek=(0,l.ZP)(p.Z)({display:"flex",justifyContent:"center",fontWeight:"600",width:"100%",padding:"12px 0px","&.hide":{display:"none"}}),eF={r8A:{matchId:"r8A",goals:{goals:-1,result:""},corners:{corners:-1,result:""},redCards:{redCards:-1,result:""},winnerCode:{winnerCode:"",result:""},loserCode:{loserCode:"",result:""},point:0,status:"",typeMatch:8,isChecked:!1}
1,r8B:{matchId:"r8B",goals:{goals:-1,result:""},corners:{corners:-1,result:""},redCards:{redCards:-1,result:""},winnerCode:{winnerCode:"",result:""},loserCode:{loserCode:"",result:""},point:0,status:"",typeMatch:8,isChecked:!1},r8C:{matchId:"r8C",goals:{goals:-1,result:""},corners:{corners:-1,result:""},redCards:{redCards:-1,result:""},winnerCode:{winnerCode:"",result:""},loserCode:{loserCode:"",result:""},point:0,status:"",typeMatch:8,isChecked:!1},r8D:{matchId:"r8D",goals:{goals:-1,result:""},corners:{corners:-1,result:""},redCards:{redCards:-1,result:""},winnerCode:{winnerCode:"",result:""},loserCode:{loserCode:"",result:""},point:0,status:"",typeMatch:8,isChecked:!1}},eS=e=>{let{match:n,predictions:t}=e,{user:r}=(0,R.a)(),o=(0,T.C)(),[s,l]=(0,j.useState)(!1),[x,h]=(0,j.useState)(P.gB),[u,g]=(0,j.useState)(eF),[m,C]=(0,j.useState)(!1),y="show share-facebook-playGame";y=!0===m||t&&(null==t?void 0:t.isActive)===!0?"hide share-facebook-playGame":"show share-facebook-playGame";let b=()=>l(!1),Z=()=>{h(P.gB),l(!0)};(0,j.useEffect)(()=>{window.FB&&FB.init({appId:N.z0,autoLogAppEvents:!0,xfbml:!0,version:"v15.0"})}),(0,j.useEffect)(()=>{let e=eF;if(null==t?void 0:t.predictions){let i=t.predictions;Object.keys(e).map((t,r)=>{t in i&&(e[t]=i[t]),e[t].status=n[r].status})}g(e)},[]);let v=()=>{if(r)FB.ui({display:"popup",method:"share",href:"https://iboard.anfin.vn/du-doan-world-cup-2022/",hashtag:"#AnfinDuDoanWorldCup2022"},function(e){e?(C(!0),w()):C(!1)});else{Z();return}},{mutate:w}=(0,I.useMutation)(async()=>{let e=await (null==r?void 0:r.userFS.getIdToken())||"";if(e)return fetch("/api/world-cup/prediction/active-prediction-round2",{method:"PUT",headers:(0,W.IZ)(e),body:JSON.stringify(u)}).then(e=>e.json())},{onSuccess:()=>{C(!0)},onError:e=>{C(!1),z.k.error(e)}}),k=async e=>{if(r)try{let n=null==u?void 0:u[e];if(""===n.winnerCode.winnerCode){o.warning("H\xe3y chọn đội chiến thắng?");return}F(n)}catch(e){z.k.error(e)}else{Z();return}},{mutate:F}=(0,I.useMutation)(async e=>{let n=await (null==r?void 0:r.userFS.getIdToken())||"";if(n)return fetch("/api/world-cup/prediction/set-round2",{method:"POST",headers:(0,W.IZ)(n),body:JSON.stringify({matchId:e.matchId,goals:e.goals.goals,corners:e.corners.corners,redCards:e.redCards.redCards,winnerCode:e.winnerCode.winnerCode,loserCode:e.loserCode.loserCode})}).then(e=>e.json())},{onSuccess:()=>{o.success("Gửi kết quả th\xe0nh c\xf4ng!"),z.k.info("Successfully")},onError:e=>{o.error("Gửi kết quả thất bại!"),z.k.error(e)}}),B=(e,n,t)=>{let i={...u,[e]:{...u[e],matchId:e,winnerCode:{winnerCode:n,result:""},loserCode:{loserCode:t,result:""}}};g(i)},A=e=>n=>{let t={...u,[e]:{...u[e],matchId:e,goals:{goals:Number(n.target.value),result:""}}};g(t)},M=e=>n=>{let t={...u,[e]:{...u[e],matchId:e,corners:{corners:Number(n.target.value),result:""}}};g(t)},G=e=>n=>{let t={...u,[e]:{...u[e],matchId:e,redCards:{redCards:Number(n.target.value),result:""}}};g(t)};return(0,i.jsxs)(d.Z,{children:[(0,i.jsx)(c.Z,{children:"Nhấp v\xe0o quốc kỳ của đội bạn dự đo\xe1n sẽ thắng v\xe0 nhấn Gửi kết quả."}),(0,i.jsx)(E.Z,{sx:{margin:"20px 0px"}}),(0,i.jsx)(a.ZP,{container:!0,spacing:2,sx:{justifyContent:"center"},children:n.length>0&&n.map((e,t)=>{let o=!0;{let n=new window.Date,t=D()(n).unix()-D()(null==e?void 0:e.startTime).unix();o=!(t>0)}return(0,i.jsxs)(a.ZP,{item:!0,xs:12,sm:6,lg:3,children:["completed"!==e.status&&(0,i.jsxs)(ef,{children:[(0,i.jsxs)(ej,{children:[(0,i.jsxs)(c.Z,{sx:{textTransform:"uppercase",color:"#fff"},children:["Trận ",t+1]}),(0,i.jsx)(eC,{children:D()(null==e?void 0:e.startTime).format("DD/MM - HH:mm")})]}),(0,i.jsxs)(d.Z,{sx:{position:"relative"},children:[!(null==e?void 0:e.team1)&&!(null==e?void 0:e.team2)&&(0,i.jsxs)(ew,{children:[(0,i.jsx)(em.Z,{sx:{color:"#FF9A3F",marginBottom:"12px"}}),(0,i.jsx)(c.Z,{sx:{color:"#FF6B00",marginTop:"10px"},children:"Trận đấu chưa diễn ra."}),(0,i.jsx)(c.Z,{sx:{color:"#FF6B00",marginTop:"10px"},children:"Vui l\xf2ng quay lại sau"})]}),(0,i.jsxs)(ey,{children:[(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",margin:"10px 0px 20px 0px"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000"},children:"Bạn chọn"}),(0,i.jsx)(c.Z,{sx:{color:"#191D2B",fontWeight:600},children:P.mz[null==u?void 0:u[e.id].winnerCode.winnerCode]||"T\xean quốc gia"})]}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(null==e?void 0:e.team1)?(0,i.jsxs)(ev,{className:P.JH[null==e?void 0:e.team1].acronym===(null==u?void 0:u[null==e?void 0:e.id].winnerCode.winnerCode)?"win":"",sx:{border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px"},onClick:()=>B(e.id,P.JH[null==e?void 0:e.team1].acronym,P.JH[null==e?void 0:e.team2].acronym),children:[(0,i.jsx)(f(),{alt:P.JH[null==e?void 0:e.team1].acronym,src:(0,P.Du)(P.JH[null==e?void 0:e.team1].acronym),unoptimized:!0,width:34,he
1ight:24}),(0,i.jsx)(c.Z,{fontWeight:500,fontSize:18,color:"#191D2B",sx:{marginLeft:"10px",fontWeight:"600"},children:P.JH[null==e?void 0:e.team1].acronym})]}):(0,i.jsx)(ev,{sx:{border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px"}}),(0,i.jsx)(d.Z,{sx:{display:"flex",fontSize:"32px",margin:"0px 20px",color:"#96A0B5"},children:"/"}),(null==e?void 0:e.team2)?(0,i.jsxs)(ev,{className:P.JH[null==e?void 0:e.team2].acronym===(null==u?void 0:u[null==e?void 0:e.id].winnerCode.winnerCode)?"win":"",sx:{border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px"},onClick:()=>B(e.id,P.JH[null==e?void 0:e.team2].acronym,P.JH[null==e?void 0:e.team1].acronym),children:[(0,i.jsx)(f(),{alt:P.JH[null==e?void 0:e.team2].acronym,src:(0,P.Du)(P.JH[null==e?void 0:e.team2].acronym),unoptimized:!0,width:34,height:24}),(0,i.jsx)(c.Z,{fontWeight:500,fontSize:18,color:"#191D2B",sx:{marginLeft:"10px",fontWeight:"600"},children:P.JH[null==e?void 0:e.team2].acronym})]}):(0,i.jsx)(ev,{sx:{border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px"}})]}),(0,i.jsxs)(d.Z,{sx:{borderTop:"1px solid #E8EAEE",borderBottom:"1px solid #E8EAEE",margin:"20px 0px 0px",padding:"10px 0px",position:"relative"},children:[(0,i.jsx)(c.Z,{sx:{display:"table",marginBottom:"10px"},children:"Chọn chi tiết"}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000",fontWeight:"600",height:"24px"},children:"Số b\xe0n thắng:"}),(0,i.jsx)(eZ,{placeholder:"nhấn để nhập",value:(null==u?void 0:u[e.id].goals.result)===""&&(null==u?void 0:u[e.id].goals.goals)===-1?"":null==u?void 0:u[e.id].goals.goals,type:"number",name:"goals",onChange:A(e.id),sx:{textAlign:"right",color:"#019BFD",height:"24px",padding:"0px"}})]}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000",fontWeight:"600",height:"24px"},children:"Số lần phạt g\xf3c:"}),(0,i.jsx)(eZ,{placeholder:"nhấn để nhập",name:"corners",type:"number",value:(null==u?void 0:u[e.id].corners.result)===""&&(null==u?void 0:u[e.id].corners.corners)===-1?"":null==u?void 0:u[e.id].corners.corners,onChange:M(e.id),sx:{textAlign:"right",color:"#019BFD",height:"24px",padding:"0px"}})]}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000",fontWeight:"600",height:"24px"},children:"Số thẻ đỏ:"}),(0,i.jsx)(eZ,{placeholder:"nhấn để nhập",name:"redCards",type:"number",value:(null==u?void 0:u[e.id].redCards.result)===""&&(null==u?void 0:u[e.id].redCards.redCards)===-1?"":null==u?void 0:u[e.id].redCards.redCards,onChange:G(e.id),sx:{textAlign:"right",color:"#019BFD",height:"24px",padding:"0px"}})]}),(null==e?void 0:e.team1)&&(null==e?void 0:e.team2)&&(0,i.jsxs)(eb,{sx:{position:"absolute",width:"100%",height:"100%",top:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",background:"rgba(255, 255, 255, 0.9)"},className:y,children:[(0,i.jsx)(S.Z,{sx:{color:"#FF9A3F",marginBottom:"12px"}}),(0,i.jsx)(p.Z,{className:"share-facebook-playGame",sx:{color:"#fff",background:"linear-gradient(180deg, #F36702 0%, #FFA800 100%)",borderRadius:"4px",padding:"6px 8px",fontSize:"14px"},onClick:()=>v(),children:"Mở kho\xe1"}),(0,i.jsx)(c.Z,{sx:{color:"#FF6B00",marginTop:"10px"},children:"Chia sẻ ngay để mở kh\xf3a"})]})]})]}),(0,i.jsx)(ek,{className:o?"send-match":"send-match hide",onClick:()=>k(e.id),children:"Gửi kết quả"})]})]}),"completed"===e.status&&!r&&(0,i.jsx)(eo,{match:null==n?void 0:n[t],index:t}),"completed"===e.status&&r&&(0,i.jsx)(V,{match:null==u?void 0:u[null==e?void 0:e.id],matchResult:null==n?void 0:n[t],index:t})]},t)})}),(0,i.jsx)(H.D,{canOpen:s,handleClose:b,data:x})]})},eB=(0,l.ZP)(d.Z)({background:"#FFFFFF",border:"1px solid #B6BEC9",borderRadius:"8px",height:"100%"}),eE=(0,l.ZP)(d.Z)({display:"flex",justifyContent:"space-between",background:"#143A55",borderTopLeftRadius:"7px",borderTopRightRadius:"7px",padding:"12px"}),eA=(0,l.ZP)(c.Z)({color:"#fff"}),eD=(0,l.ZP)(d.Z)({padding:"12px 12px 0px 12px",position:"relative"}),eI=(0,l.ZP)(d.Z)({display:"flex","&.hide":{display:"none"}}),eN=(0,l.ZP)(B.ZP)({input:{textAlign:"right"}}),eP=(0,l.ZP)(d.Z)({cursor:"pointer","&.win":{background:"rgb(36 145 221 / 20%)",border:"1px solid #2491DD"},"&:hover":{background:"rgb(36 145 221 / 20%)",border:"1px solid #2491DD"}}),eT=(0,l.ZP)(d.Z)({position:"absolute",width:"100%",height:"100%",background:"rgba(255, 255, 255, 0.95)",borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px",zIndex:"1",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"}
1),eR=(0,l.ZP)(x.Z)({display:"flex",width:"fit-content",cursor:"pointer",background:"#2F8BCB",color:"#fff",padding:"16px",borderRadius:"8px",fontSize:"18px",fontWeight:"600",margin:"20px 0px","&.hide":{display:"none"}}),eW=(0,l.ZP)(p.Z)({display:"flex",justifyContent:"center",fontWeight:"600",width:"100%",padding:"12px 0px","&.hide":{display:"none"}}),ez={r16A:{matchId:"r16A",goals:{goals:-1,result:""},corners:{corners:-1,result:""},redCards:{redCards:-1,result:""},winnerCode:{winnerCode:"",result:""},loserCode:{loserCode:"",result:""},point:0,status:"",typeMatch:16,isChecked:!1},r16B:{matchId:"r16B",goals:{goals:-1,result:""},corners:{corners:-1,result:""},redCards:{redCards:-1,result:""},winnerCode:{winnerCode:"",result:""},loserCode:{loserCode:"",result:""},point:0,status:"",typeMatch:16,isChecked:!1},r16C:{matchId:"r16C",goals:{goals:-1,result:""},corners:{corners:-1,result:""},redCards:{redCards:-1,result:""},winnerCode:{winnerCode:"",result:""},loserCode:{loserCode:"",result:""},point:0,status:"",typeMatch:16,isChecked:!1},r16D:{matchId:"r16D",goals:{goals:-1,result:""},corners:{corners:-1,result:""},redCards:{redCards:-1,result:""},winnerCode:{winnerCode:"",result:""},loserCode:{loserCode:"",result:""},point:0,status:"",typeMatch:16,isChecked:!1},r16E:{matchId:"r16E",goals:{goals:-1,result:""},corners:{corners:-1,result:""},redCards:{redCards:-1,result:""},winnerCode:{winnerCode:"",result:""},loserCode:{loserCode:"",result:""},point:0,status:"",typeMatch:16,isChecked:!1},r16F:{matchId:"r16F",goals:{goals:-1,result:""},corners:{corners:-1,result:""},redCards:{redCards:-1,result:""},winnerCode:{winnerCode:"",result:""},loserCode:{loserCode:"",result:""},point:0,status:"",typeMatch:16,isChecked:!1},r16G:{matchId:"r16G",goals:{goals:-1,result:""},corners:{corners:-1,result:""},redCards:{redCards:-1,result:""},winnerCode:{winnerCode:"",result:""},loserCode:{loserCode:"",result:""},point:0,status:"",typeMatch:16,isChecked:!1}
1,r16H:{matchId:"r16H",goals:{goals:-1,result:""},corners:{corners:-1,result:""},redCards:{redCards:-1,result:""},winnerCode:{winnerCode:"",result:""},loserCode:{loserCode:"",result:""},point:0,status:"",typeMatch:16,isChecked:!1}},eH=e=>{let{match:n,predictions:t}=e,{user:r}=(0,R.a)(),o=(0,T.C)(),[s,l]=(0,j.useState)(!1),[x,h]=(0,j.useState)(P.gB),[u,g]=(0,j.useState)(ez),[m,C]=(0,j.useState)(!1),y="show share-facebook-playGame";y=!0===m||t&&(null==t?void 0:t.isActive)===!0?"hide share-facebook-playGame":"show share-facebook-playGame";let b=()=>l(!1),Z=()=>{h(P.gB),l(!0)};(0,j.useEffect)(()=>{window.FB&&FB.init({appId:N.z0,autoLogAppEvents:!0,xfbml:!0,version:"v15.0"})}),(0,j.useEffect)(()=>{let e=ez;if(null==t?void 0:t.predictions){let i=t.predictions;Object.keys(e).map((t,r)=>{t in i&&(e[t]=i[t]),e[t].status=n[r].status})}g(e)},[]);let v=()=>{if(r)FB.ui({display:"popup",method:"share",href:"https://iboard.anfin.vn/du-doan-world-cup-2022/",hashtag:"#AnfinDuDoanWorldCup2022"},function(e){e?(C(!0),w()):C(!1)});else{Z();return}},{mutate:w}=(0,I.useMutation)(async()=>{let e=await (null==r?void 0:r.userFS.getIdToken())||"";if(e)return fetch("/api/world-cup/prediction/active-prediction-round2",{method:"PUT",headers:(0,W.IZ)(e),body:JSON.stringify(u)}).then(e=>e.json())},{onSuccess:()=>{C(!0)},onError:e=>{C(!1),z.k.error(e)}}),k=async e=>{if(r)try{let n=null==u?void 0:u[e];if(""===n.winnerCode.winnerCode){o.warning("H\xe3y chọn đội chiến thắng?");return}F(n)}catch(e){z.k.error(e)}else{Z();return}},{mutate:F}=(0,I.useMutation)(async e=>{let n=await (null==r?void 0:r.userFS.getIdToken())||"";if(n)return fetch("/api/world-cup/prediction/set-round2",{method:"POST",headers:(0,W.IZ)(n),body:JSON.stringify({matchId:e.matchId,goals:e.goals.goals,corners:e.corners.corners,redCards:e.redCards.redCards,winnerCode:e.winnerCode.winnerCode,loserCode:e.loserCode.loserCode})}).then(e=>e.json())},{onSuccess:()=>{o.success("Gửi kết quả th\xe0nh c\xf4ng!"),z.k.info("Successfully")},onError:e=>{o.error("Gửi kết quả thất bại!"),z.k.error(e)}}),B=(e,n,t)=>{let i={...u,[e]:{...u[e],matchId:e,winnerCode:{winnerCode:n,result:""},loserCode:{loserCode:t,result:""}}};g(i)},A=e=>n=>{let t={...u,[e]:{...u[e],matchId:e,goals:{goals:Number(n.target.value),result:""}}};g(t)},M=e=>n=>{let t={...u,[e]:{...u[e],matchId:e,corners:{corners:Number(n.target.value),result:""}}};g(t)},G=e=>n=>{let t={...u,[e]:{...u[e],matchId:e,redCards:{redCards:Number(n.target.value),result:""}}};g(t)};return(0,i.jsxs)(d.Z,{children:[(0,i.jsx)(eR,{className:y,onClick:v,children:"Chia sẻ chương tr\xecnh"}),(0,i.jsx)(E.Z,{sx:{marginBottom:"20px"}}),(0,i.jsx)(a.ZP,{container:!0,spacing:2,children:n.length>0&&n.map((e,t)=>{let o=!0;{let n=new window.Date,t=D()(n).unix()-D()(null==e?void 0:e.startTime).unix();o=!(t>0)}return(0,i.jsxs)(a.ZP,{item:!0,xs:12,sm:6,lg:3,children:["completed"!==e.status&&(0,i.jsxs)(eB,{children:[(0,i.jsxs)(eE,{children:[(0,i.jsxs)(c.Z,{sx:{textTransform:"uppercase",color:"#fff"},children:["Trận ",t+1]}),(0,i.jsx)(eA,{children:D()(null==e?void 0:e.startTime).format("DD/MM - HH:mm")})]}),(0,i.jsxs)(d.Z,{sx:{position:"relative"},children:[!(null==e?void 0:e.team1)&&!(null==e?void 0:e.team2)&&(0,i.jsxs)(eT,{children:[(0,i.jsx)(em.Z,{sx:{color:"#FF9A3F",marginBottom:"12px"}}),(0,i.jsx)(c.Z,{sx:{color:"#FF6B00",marginTop:"10px"},children:"Trận đấu chưa diễn ra."}),(0,i.jsx)(c.Z,{sx:{color:"#FF6B00",marginTop:"10px"},children:"Vui l\xf2ng quay lại sau"})]}),(0,i.jsxs)(eD,{children:[(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",margin:"10px 0px 20px 0px"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000"},children:"Bạn chọn"}),(0,i.jsx)(c.Z,{sx:{color:"#191D2B",fontWeight:600},children:P.mz[null==u?void 0:u[e.id].winnerCode.winnerCode]||"T\xean quốc gia"})]}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(null==e?void 0:e.team1)?(0,i.jsxs)(eP,{className:P.JH[null==e?void 0:e.team1].acronym===(null==u?void 0:u[null==e?void 0:e.id].winnerCode.winnerCode)?"win":"",sx:{border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px"},onClick:()=>B(e.id,P.JH[null==e?void 0:e.team1].acronym,P.JH[null==e?void 0:e.team2].acronym),children:[(0,i.jsx)(f(),{alt:P.JH[null==e?void 0:e.team1].acronym,src:(0,P.Du)(P.JH[null==e?void 0:e.team1].acronym),unoptimized:!0,width:34,he
1ight:24}),(0,i.jsx)(c.Z,{fontWeight:500,fontSize:18,color:"#191D2B",sx:{marginLeft:"10px",fontWeight:"600"},children:P.JH[null==e?void 0:e.team1].acronym})]}):(0,i.jsx)(eP,{sx:{border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px"}}),(0,i.jsx)(d.Z,{sx:{display:"flex",fontSize:"32px",margin:"0px 20px",color:"#96A0B5"},children:"/"}),(null==e?void 0:e.team2)?(0,i.jsxs)(eP,{className:P.JH[null==e?void 0:e.team2].acronym===(null==u?void 0:u[null==e?void 0:e.id].winnerCode.winnerCode)?"win":"",sx:{border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px"},onClick:()=>B(e.id,P.JH[null==e?void 0:e.team2].acronym,P.JH[null==e?void 0:e.team1].acronym),children:[(0,i.jsx)(f(),{alt:P.JH[null==e?void 0:e.team2].acronym,src:(0,P.Du)(P.JH[null==e?void 0:e.team2].acronym),unoptimized:!0,width:34,height:24}),(0,i.jsx)(c.Z,{fontWeight:500,fontSize:18,color:"#191D2B",sx:{marginLeft:"10px",fontWeight:"600"},children:P.JH[null==e?void 0:e.team2].acronym})]}):(0,i.jsx)(eP,{sx:{border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px"}})]}),(0,i.jsxs)(d.Z,{sx:{borderTop:"1px solid #E8EAEE",borderBottom:"1px solid #E8EAEE",margin:"20px 0px 0px",padding:"10px 0px",position:"relative"},children:[(0,i.jsx)(c.Z,{sx:{display:"table",marginBottom:"10px"},children:"Chọn chi tiết"}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000",fontWeight:"600",height:"24px"},children:"Số b\xe0n thắng:"}),(0,i.jsx)(eN,{placeholder:"nhấn để nhập",value:(null==u?void 0:u[e.id].goals.result)===""&&(null==u?void 0:u[e.id].goals.goals)===-1?"":null==u?void 0:u[e.id].goals.goals,type:"number",name:"goals",onChange:A(e.id),sx:{textAlign:"right",color:"#019BFD",height:"24px",padding:"0px"}})]}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000",fontWeight:"600",height:"24px"},children:"Số lần phạt g\xf3c:"}),(0,i.jsx)(eN,{placeholder:"nhấn để nhập",name:"corners",type:"number",value:(null==u?void 0:u[e.id].corners.result)===""&&(null==u?void 0:u[e.id].corners.corners)===-1?"":null==u?void 0:u[e.id].corners.corners,onChange:M(e.id),sx:{textAlign:"right",color:"#019BFD",height:"24px",padding:"0px"}})]}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000",fontWeight:"600",height:"24px"},children:"Số thẻ đỏ:"}),(0,i.jsx)(eN,{placeholder:"nhấn để nhập",name:"redCards",type:"number",value:(null==u?void 0:u[e.id].redCards.result)===""&&(null==u?void 0:u[e.id].redCards.redCards)===-1?"":null==u?void 0:u[e.id].redCards.redCards,onChange:G(e.id),sx:{textAlign:"right",color:"#019BFD",height:"24px",padding:"0px"}})]}),(null==e?void 0:e.team1)&&(null==e?void 0:e.team2)&&(0,i.jsxs)(eI,{sx:{position:"absolute",width:"100%",height:"100%",top:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",background:"rgba(255, 255, 255, 0.9)"},className:y,children:[(0,i.jsx)(S.Z,{sx:{color:"#FF9A3F",marginBottom:"12px"}}),(0,i.jsx)(p.Z,{className:"share-facebook-playGame",sx:{color:"#fff",background:"linear-gradient(180deg, #F36702 0%, #FFA800 100%)",borderRadius:"4px",padding:"6px 8px",fontSize:"14px"},onClick:()=>v(),children:"Mở kho\xe1"}),(0,i.jsx)(c.Z,{sx:{color:"#FF6B00",marginTop:"10px"},children:"Chia sẻ ngay để mở kh\xf3a"})]})]})]}),(0,i.jsx)(eW,{className:o?"send-match":"send-match hide",onClick:()=>k(e.id),children:"Gửi kết quả"})]})]}),"completed"===e.status&&!r&&(0,i.jsx)(eo,{match:null==n?void 0:n[t],index:t}),"completed"===e.status&&r&&(0,i.jsx)(V,{match:null==u?void 0:u[null==e?void 0:e.id],matchResult:null==n?void 0:n[t],index:t})]},t)})}),(0,i.jsx)(H.D,{canOpen:s,handleClose:b,data:x})]})},eM=(0,l.ZP)(d.Z)({background:"#FFFFFF",border:"1px solid #B6BEC9",borderRadius:"8px",height:"100%"}),eG=(0,l.ZP)(d.Z)({display:"flex",justifyContent:"space-between",background:"#143A55",borderTopLeftRadius:"7px",borderTopRightRadius:"7px",padding:"12px"}),eO=(0,l.ZP)(c.Z)({color:"#fff"}),eJ=(0,l.ZP)(d.Z)({padding:"12px 12px 0px 12px",position:"relative"}),eL=(0,l.ZP)(d.Z)({display:"flex","&.hide":{display:"none"}}),e_=(0,l.ZP)(B.ZP)({input:{textAlign:"right"}}),eq=(0,l.ZP)(d.Z)({cursor:"pointer","&.win":{background:"rgb(36 145 221 / 20%)",border:"1px solid #2491DD"},"&:hover":{background:"rgb(36 145 221 / 20%)",border:"1px solid #2491DD"}}),eU=(0,l.ZP)(d.Z)({position:"absolute",width:"100%",height:"100%",background:"rgba(255, 255, 255, 0.95)",borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px",zIndex:"1",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"}),eK=(0,l.ZP)(p.Z)({display:"flex",justifyContent:"center",fontWeight:"600",width:"100%",padding:"12px 0px","&.hide":{display:"none"}}),eQ={r4A:{matchId:"r4A",goals:{goals:-1,result:""},corners:{corners:-1,result:""},redCards:{redCards:-1,result:""},winnerCode:{winnerCode:"",result:""},loserCode:{loserCode:"",result:""},point:0,status:"",typeMatch:4,isChecked:!1}
1,r4B:{matchId:"r4B",goals:{goals:-1,result:""},corners:{corners:-1,result:""},redCards:{redCards:-1,result:""},winnerCode:{winnerCode:"",result:""},loserCode:{loserCode:"",result:""},point:0,status:"",typeMatch:4,isChecked:!1}},eV=e=>{let{match:n,predictions:t}=e,{user:r}=(0,R.a)(),o=(0,T.C)(),[s,l]=(0,j.useState)(!1),[x,h]=(0,j.useState)(P.gB),[u,g]=(0,j.useState)(eQ),[m,C]=(0,j.useState)(!1),y="show share-facebook-playGame";y=!0===m||t&&(null==t?void 0:t.isActive)===!0?"hide share-facebook-playGame":"show share-facebook-playGame";let b=()=>l(!1),Z=()=>{h(P.gB),l(!0)};(0,j.useEffect)(()=>{window.FB&&FB.init({appId:N.z0,autoLogAppEvents:!0,xfbml:!0,version:"v15.0"})}),(0,j.useEffect)(()=>{let e=eQ;if(null==t?void 0:t.predictions){let i=t.predictions;Object.keys(e).map((t,r)=>{t in i&&(e[t]=i[t]),e[t].status=n[r].status})}g(e)},[]);let v=()=>{if(r)FB.ui({display:"popup",method:"share",href:"https://iboard.anfin.vn/du-doan-world-cup-2022/",hashtag:"#AnfinDuDoanWorldCup2022"},function(e){e?(C(!0),w()):C(!1)});else{Z();return}},{mutate:w}=(0,I.useMutation)(async()=>{let e=await (null==r?void 0:r.userFS.getIdToken())||"";if(e)return fetch("/api/world-cup/prediction/active-prediction-round2",{method:"PUT",headers:(0,W.IZ)(e),body:JSON.stringify(u)}).then(e=>e.json())},{onSuccess:()=>{C(!0)},onError:e=>{C(!1),z.k.error(e)}}),k=async e=>{if(r)try{let n=null==u?void 0:u[e];if(""===n.winnerCode.winnerCode){o.warning("H\xe3y chọn đội chiến thắng?");return}F(n)}catch(e){z.k.error(e)}else{Z();return}},{mutate:F}=(0,I.useMutation)(async e=>{let n=await (null==r?void 0:r.userFS.getIdToken())||"";if(n)return fetch("/api/world-cup/prediction/set-round2",{method:"POST",headers:(0,W.IZ)(n),body:JSON.stringify({matchId:e.matchId,goals:e.goals.goals,corners:e.corners.corners,redCards:e.redCards.redCards,winnerCode:e.winnerCode.winnerCode,loserCode:e.loserCode.loserCode})}).then(e=>e.json())},{onSuccess:()=>{o.success("Gửi kết quả th\xe0nh c\xf4ng!"),z.k.info("Successfully")},onError:e=>{o.error("Gửi kết quả thất bại!"),z.k.error(e)}}),B=(e,n,t)=>{let i={...u,[e]:{...u[e],matchId:e,winnerCode:{winnerCode:n,result:""},loserCode:{loserCode:t,result:""}}};g(i)},A=e=>n=>{let t={...u,[e]:{...u[e],matchId:e,goals:{goals:Number(n.target.value),result:""}}};g(t)},M=e=>n=>{let t={...u,[e]:{...u[e],matchId:e,corners:{corners:Number(n.target.value),result:""}}};g(t)},G=e=>n=>{let t={...u,[e]:{...u[e],matchId:e,redCards:{redCards:Number(n.target.value),result:""}}};g(t)};return(0,i.jsxs)(d.Z,{children:[(0,i.jsx)(c.Z,{children:"Nhấp v\xe0o quốc kỳ của đội bạn dự đo\xe1n sẽ thắng v\xe0 nhấn Gửi kết quả."}),(0,i.jsx)(E.Z,{sx:{margin:"20px 0px"}}),(0,i.jsx)(a.ZP,{container:!0,spacing:2,sx:{justifyContent:"center"},children:n.length>0&&n.map((e,t)=>{let o=!0;{let n=new window.Date,t=D()(n).unix()-D()(null==e?void 0:e.startTime).unix();o=!(t>0)}return(0,i.jsxs)(a.ZP,{item:!0,xs:12,sm:6,lg:6,children:["completed"!==e.status&&(0,i.jsxs)(eM,{children:[(0,i.jsxs)(eG,{children:[(0,i.jsxs)(c.Z,{sx:{textTransform:"uppercase",color:"#fff"},children:["Trận ",t+1]}),(0,i.jsx)(eO,{children:D()(null==e?void 0:e.startTime).format("DD/MM - HH:mm")})]}),(0,i.jsxs)(d.Z,{sx:{position:"relative"},children:[!(null==e?void 0:e.team1)&&!(null==e?void 0:e.team2)&&(0,i.jsxs)(eU,{children:[(0,i.jsx)(em.Z,{sx:{color:"#FF9A3F",marginBottom:"12px"}}),(0,i.jsx)(c.Z,{sx:{color:"#FF6B00",marginTop:"10px"},children:"Trận đấu chưa diễn ra."}),(0,i.jsx)(c.Z,{sx:{color:"#FF6B00",marginTop:"10px"},children:"Vui l\xf2ng quay lại sau"})]}),(0,i.jsxs)(eJ,{children:[(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",margin:"10px 0px 20px 0px"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000"},children:"Bạn chọn"}),(0,i.jsx)(c.Z,{sx:{color:"#191D2B",fontWeight:600},children:P.mz[null==u?void 0:u[e.id].winnerCode.winnerCode]||"T\xean quốc gia"})]}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(null==e?void 0:e.team1)?(0,i.jsxs)(eq,{className:P.JH[null==e?void 0:e.team1].acronym===(null==u?void 0:u[null==e?void 0:e.id].winnerCode.winnerCode)?"win":"",sx:{border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px"},onClick:()=>B(e.id,P.JH[null==e?void 0:e.team1].acronym,P.JH[null==e?void 0:e.team2].acronym),children:[(0,i.jsx)(f(),{alt:P.JH[null==e?void 0:e.team1].acronym,src:(0,P.Du)(P.JH[null==e?void 0:e.team1].acronym),unoptimized:!0,width:34,he
1ight:24}),(0,i.jsx)(c.Z,{fontWeight:500,fontSize:18,color:"#191D2B",sx:{marginLeft:"10px",fontWeight:"600"},children:P.JH[null==e?void 0:e.team1].acronym})]}):(0,i.jsx)(eq,{sx:{border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px"}}),(0,i.jsx)(d.Z,{sx:{display:"flex",fontSize:"32px",margin:"0px 20px",color:"#96A0B5"},children:"/"}),(null==e?void 0:e.team2)?(0,i.jsxs)(eq,{className:P.JH[null==e?void 0:e.team2].acronym===(null==u?void 0:u[null==e?void 0:e.id].winnerCode.winnerCode)?"win":"",sx:{border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px"},onClick:()=>B(e.id,P.JH[null==e?void 0:e.team2].acronym,P.JH[null==e?void 0:e.team1].acronym),children:[(0,i.jsx)(f(),{alt:P.JH[null==e?void 0:e.team2].acronym,src:(0,P.Du)(P.JH[null==e?void 0:e.team2].acronym),unoptimized:!0,width:34,height:24}),(0,i.jsx)(c.Z,{fontWeight:500,fontSize:18,color:"#191D2B",sx:{marginLeft:"10px",fontWeight:"600"},children:P.JH[null==e?void 0:e.team2].acronym})]}
1):(0,i.jsx)(eq,{sx:{border:"1px solid #96A0B5",borderRadius:"4px",padding:"12px 20px",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",height:"53px"}})]}),(0,i.jsxs)(d.Z,{sx:{borderTop:"1px solid #E8EAEE",borderBottom:"1px solid #E8EAEE",margin:"20px 0px 0px",padding:"10px 0px",position:"relative"},children:[(0,i.jsx)(c.Z,{sx:{display:"table",marginBottom:"10px"},children:"Chọn chi tiết"}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000",fontWeight:"600",height:"24px"},children:"Số b\xe0n thắng:"}),(0,i.jsx)(e_,{placeholder:"nhấn để nhập",value:(null==u?void 0:u[e.id].goals.result)===""&&(null==u?void 0:u[e.id].goals.goals)===-1?"":null==u?void 0:u[e.id].goals.goals,type:"number",name:"goals",onChange:A(e.id),sx:{textAlign:"right",color:"#019BFD",height:"24px",padding:"0px"}})]}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000",fontWeight:"600",height:"24px"},children:"Số lần phạt g\xf3c:"}),(0,i.jsx)(e_,{placeholder:"nhấn để nhập",name:"corners",type:"number",value:(null==u?void 0:u[e.id].corners.result)===""&&(null==u?void 0:u[e.id].corners.corners)===-1?"":null==u?void 0:u[e.id].corners.corners,onChange:M(e.id),sx:{textAlign:"right",color:"#019BFD",height:"24px",padding:"0px"}})]}),(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[(0,i.jsx)(c.Z,{sx:{color:"#000",fontWeight:"600",height:"24px"},children:"Số thẻ đỏ:"}),(0,i.jsx)(e_,{placeholder:"nhấn để nhập",name:"redCards",type:"number",value:(null==u?void 0:u[e.id].redCards.result)===""&&(null==u?void 0:u[e.id].redCards.redCards)===-1?"":null==u?void 0:u[e.id].redCards.redCards,onChange:G(e.id),sx:{textAlign:"right",color:"#019BFD",height:"24px",padding:"0px"}})]}),(null==e?void 0:e.team1)&&(null==e?void 0:e.team2)&&(0,i.jsxs)(eL,{sx:{position:"absolute",width:"100%",height:"100%",top:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",background:"rgba(255, 255, 255, 0.9)"},className:y,children:[(0,i.jsx)(S.Z,{sx:{color:"#FF9A3F",marginBottom:"12px"}}),(0,i.jsx)(p.Z,{className:"share-facebook-playGame",sx:{color:"#fff",background:"linear-gradient(180deg, #F36702 0%, #FFA800 100%)",borderRadius:"4px",padding:"6px 8px",fontSize:"14px"},onClick:()=>v(),children:"Mở kho\xe1"}),(0,i.jsx)(c.Z,{sx:{color:"#FF6B00",marginTop:"10px"},children:"Chia sẻ ngay để mở kh\xf3a"})]})]})]}),(0,i.jsx)(eK,{className:o?"send-match":"send-match hide",onClick:()=>k(e.id),children:"Gửi kết quả"})]})]}),"completed"===e.status&&!r&&(0,i.jsx)(eo,{match:null==n?void 0:n[t],index:t}),"completed"===e.status&&r&&(0,i.jsx)(V,{match:null==u?void 0:u[null==e?void 0:e.id],matchResult:null==n?void 0:n[t],index:t})]},t)})}),(0,i.jsx)(H.D,{canOpen:s,handleClose:b,data:x})]})};var eY=t(66242),eX=t(78445),e$=t(44267),e0=t(44510);let e1=e=>{for(let n of Object.keys(P.Iw)){let t=P.Bi[P.Iw[n]];if(t.indexOf(e)>-1)return P.Iw[n]}return P.Iw.A},e2=(e,n,t)=>{let i;let r=e.findIndex(e=>P.DE.includes(e));if((r=(i=e.map((e,n)=>n===r?t:e)).findIndex(e=>P.DE.includes(e)))===P.gR-1){let e=P.Bi[n].find(e=>e!==t&&-1===i.indexOf(e));e&&(i=i.map((n,t)=>t===r?e:n))}return i},e5=(e,n)=>{let t=[...e],i=e.indexOf(n);return t.splice(i,1),t.push(P.Kd["NaNNation".concat(i+1)]),t},e6=e=>Object.keys(P.Iw).filter(n=>{let t=e[P.Iw[n]],i=t.findIndex(e=>P.DE.includes(e));return i>-1}).map(e=>P.Iw[e]),e4=(0,l.ZP)(u.Z,{shouldForwardProp:e=>"isSelected"!==e})(e=>{let{theme:n,isSelected:t}=e;return{padding:n.spacing(1,.5),justifyContent:"center",alignItems:"center",...t?{border:"1px solid #BFDBEF !important",borderRadius:"4px",opacity:.4}:{border:"1px solid transparent"}}}),e9=(0,j.memo)(function(e){let{team:n,showFullName:t,onClickTeam:r,isSelected:o}=e;return(0,i.jsxs)(e4,{direction:"row",spacing:.5,isSelected:o,onClick:()=>r&&r(e1(n),n),sx:{border:t?"none":"1px solid #E8EAEE",borderRadius:"4px",cursor:"pointer"},children:[(0,i.jsx)(f(),{alt:P.JH[n].acronym,src:(0,P.Du)(P.JH[n].acronym),unoptimized:!0,width:24,height:16,layout:"fixed"}),(0,i.jsx)(c.Z,{fontWeight:500,fontSize:12,color:"#191D2B",children:t?P.JH[n].nation:P.JH[n].acronym})]})}),e3=e=>{let{resultOfPrediction:n,teams:t}=e;return(0,i.jsx)(d.Z,{children:t.map((e,t)=>(0,i.jsxs)(u.Z,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{backgroundColor:t<2?"#f0e9df":"#fff",px:2,py:.5},children:[(0,i.jsx)(c.Z,{fontWeight:700,fontSize:12,color:"#191D2B",children:t+1}),(0,i.jsx)(e9,{team:e,showFullName:!0,isSelected:!1}),(0,i.jsx)(d.Z,{sx:{flexGrow:1}}),n[t]?(0,i.jsx)(M.Z,{color:"success",fontSize:"small"}):(0,i.jsx)(e0.Z,{color:"error",fontSize:"small"})]},t))})};var e8=t(58032);let e7=(0,l.ZP)(u.Z)(e=>{let{theme:n}=e;return{justifyContent:"space-between",alignItems:"center",padding:n.spacing(1),margin:n.spacing(1,2,2,2),border:"1px solid #6EC994",borderRadius:"8px",backgroundColor:"#E9F7EF"}}),ne=(0,l.ZP)(e8.Z)({backgroundColor:"#FFFFFF",minHeight:20,width:20,height:20,"&:disabled":{backgroundColor:"#FFFFFF"}}),nn=(0,j.memo)(function(e){let{currentRank:n}=e;return(0,i.jsx)(e7,{direction:"row",spacing:1,divider:(0,i.jsx)(E.Z,{orientation:"vertical",flexItem:!0,sx:{border:"1px solid #6EC994"}}),children:n.map((e,n)=>(0,i.jsxs)(u.Z,{direction:"row",justifyContent:"center",alignItems:"center",spacing:.5,sx:{flexGrow:1},children:[(0,i.jsx)(ne,{disabled:!0,"aria-label":"rank",children:(0,i.jsx)(c.Z,{fontWeight:900,fontSize:10,
1color:"#000000",sx:{display:"block"},children:n+1})}),(0,i.jsx)(d.Z,{display:"flex",children:(0,i.jsx)(f(),{alt:P.JH[e].acronym,src:(0,P.Du)(P.JH[e].acronym),unoptimized:!0,width:24,height:16,layout:"fixed"})})]},n))})}),nt=e=>{let{resultOfPrediction:n,selectedTeams:t,currentRank:r}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.Z,{fontWeight:700,fontSize:14,color:"#000000",sx:{px:2},children:"Kết quả"}),(0,i.jsx)(nn,{currentRank:r}),(0,i.jsx)(c.Z,{fontWeight:700,fontSize:14,color:"#000000",sx:{px:2},children:"Dự đo\xe1n của bạn"}),(0,i.jsx)(E.Z,{variant:"middle",sx:{height:"1px",color:"#E8EAEE",my:1}}),(0,i.jsx)(e3,{resultOfPrediction:n,teams:t})]})};var ni=t(60887),nr=t(45587),no=t(24285),ns=t(32610),nl=t(93946);let na=e=>{let{shouldDisableChange:n,groupStage:t,teams:r,onChangeTeamRank:o}=e,s=(0,ni.Dy)((0,ni.VT)(ni.MA),(0,ni.VT)(ni.LO));return(0,i.jsx)(ni.LB,{sensors:s,collisionDetection:ni.pE,onDragEnd:function(e){let{active:n,over:i}=e;if(i&&n.id!==i.id){let e=r.indexOf(n.id),s=r.indexOf(i.id);o(t,(0,nr.Rp)(r,e,s))}},children:(0,i.jsx)(nr.Fo,{disabled:n,items:r,strategy:nr.qw,children:r.map((e,t)=>(0,i.jsx)(nd,{rank:t,nation:e,shouldDisableChange:n},t))})})},nd=e=>{let{rank:n,nation:t,shouldDisableChange:r}=e,{attributes:o,listeners:s,setNodeRef:l,transform:a,transition:x}=(0,nr.nB)({id:t}),h={transform:no.ux.Transform.toString(a),transition:x};return(0,i.jsx)("div",{ref:l,style:h,children:(0,i.jsxs)(u.Z,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{backgroundColor:n<2?"#f0e9df":"#fff",pl:2,pr:1},children:[(0,i.jsx)(c.Z,{fontWeight:700,fontSize:12,color:"#191D2B",children:n+1}),P.DE.includes(t)&&(0,i.jsx)(c.Z,{fontWeight:400,fontSize:12,color:n<2?"#191D2B":"#B6BEC9",children:nc(n)}),!P.DE.includes(t)&&(0,i.jsx)(e9,{team:t,showFullName:!0,isSelected:!1}),(0,i.jsx)(d.Z,{sx:{flexGrow:1}}),!r&&(0,i.jsx)(nl.Z,{edge:"end",...o,...s,children:(0,i.jsx)(ns.Z,{})})]})})},nc=e=>{switch(e){case 0:return"Quốc gia bạn dự đo\xe1n sẽ đứng đầu";case 1:return"Quốc gia bạn dự đo\xe1n sẽ đứng thứ hai";case 2:return"Quốc gia bạn dự đo\xe1n sẽ đứng thứ ba";case 3:return"Quốc gia bạn dự đo\xe1n sẽ đứng thứ tư";default:return""}},nx=(0,j.memo)(function(e){let{group:n,currentList:t,onClickTeam:r}=e;return(0,i.jsx)(u.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,sx:{p:1},children:P.Bi[n].map(e=>(0,i.jsx)(e9,{showFullName:!1,team:e,onClickTeam:r,isSelected:t.indexOf(e)>-1},e))})}),nh=e=>{let{shouldDisableChange:n,groupStage:t,selectedTeams:r,onClickNationOnTheHeader:o,onChangeTeamRank:s}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(nx,{group:t,currentList:r,onClickTeam:o}),(0,i.jsx)(E.Z,{variant:"middle",sx:{height:"1px",color:"#E8EAEE",my:1}}),(0,i.jsx)(na,{shouldDisableChange:n,groupStage:t,teams:r,onChangeTeamRank:s})]})},nu=e=>{let{currentRanks:n,shouldDisableChange:t,groupStage:r,selectedTeams:o,onClickNationOnTheHeader:s,onChangeTeamRank:l}=e,{user:a}=(0,R.a)(),d=[];t&&n&&(d=o.map((e,t)=>e===n[r][t]));let x=d.reduce((e,n)=>e+(n?1:0),0);return(0,i.jsxs)(eY.Z,{sx:{border:"1px solid #B6BEC9",borderRadius:"8px",boxShadow:"none"},children:[(0,i.jsx)(eX.Z,{title:(0,i.jsxs)(u.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,i.jsxs)(c.Z,{fontWeight:600,fontSize:16,color:"#FFFFFF",children:["BẢNG ",r.toUpperCase()]}),d.length>0&&(0,i.jsxs)(c.Z,{fontWeight:700,fontSize:16,color:x>0?"#52BE80":"#D7A52E",children:[x>0?"+":"",x,"đ"]})]}),sx:{backgroundColor:"#143A55",padding:"12px"}}),(0,i.jsx)(e$.Z,{sx:{p:0,pt:1,"&:last-child":{paddingBottom:1}},children:d.length>0&&n&&a?(0,i.jsx)(nt,{resultOfPrediction:d,selectedTeams:o,currentRank:n[r]}):(0,i.jsx)(nh,{shouldDisableChange:t,groupStage:r,selectedTeams:o,onClickNationOnTheHeader:s,onChangeTeamRank:l})})]})},np="WC_PREDICTION_KEY",ng=e=>{let{predictions:n,currentRanks:t}=e,r=(0,T.C)(),{user:o}
1=(0,R.a)(),[s,l]=(0,j.useState)(!1),[d,x]=(0,j.useState)(P.gB),h=()=>l(!1),g=()=>{x(P.gB),l(!0)},[m,f]=(0,j.useState)(!0),C=()=>{let e=e6(Z);if(e.length){r.warning("Vui l\xf2ng dự đo\xe1n hết c\xe1c bảng!");return}if(localStorage.setItem(np,JSON.stringify(Z)),!o){g();return}try{y()}catch(e){z.k.error(e)}},{mutate:y}=(0,I.useMutation)(async()=>{let e=await (null==o?void 0:o.userFS.getIdToken())||"";if(e)return fetch("/api/world-cup/prediction/set",{method:"POST",headers:(0,W.IZ)(e),body:JSON.stringify(Z)}).then(e=>e.json())},{onSuccess:()=>{x(P.MC),l(!0),localStorage.setItem(np,"")},onError:e=>{r.error("Oops! C\xf3 lỗi xảy ra. Vui l\xf2ng gửi lại sau!"),z.k.error(e)}}),b={[P.Iw.A]:P.DE,[P.Iw.B]:P.DE,[P.Iw.C]:P.DE,[P.Iw.D]:P.DE,[P.Iw.E]:P.DE,[P.Iw.F]:P.DE,[P.Iw.G]:P.DE,[P.Iw.H]:P.DE},[Z,v]=(0,j.useState)(b);(0,j.useEffect)(()=>{if(n){v(n),f(!1),localStorage.setItem(np,"");return}let e=localStorage.getItem(np);if(!e){v(b);return}let t=JSON.parse(e);v(t)},[]);let w=(e,n)=>{let t=Z[e],i=t.indexOf(n),r=[];r=-1===i?e2(t,e,n):e5(t,n);let o=Object.assign({},Z);o[e]=r,v(o),f(!0)},k=(e,n)=>{let t=Object.assign({},Z);t[e]=n,v(t),f(!0)},F=()=>{v(b),f(!0)},S=new Date,B=n&&S>=P.uH&&S<P.kt||S>=P.kt;return(0,i.jsxs)(a.ZP,{container:!0,spacing:2,children:[Object.keys(P.Iw).map(e=>(0,i.jsx)(a.ZP,{item:!0,xs:12,sm:6,lg:3,children:(0,i.jsx)(nu,{currentRanks:t,shouldDisableChange:B,groupStage:P.Iw[e],selectedTeams:Z[P.Iw[e]],onClickNationOnTheHeader:w,onChangeTeamRank:k})},e)),!B&&(0,i.jsx)(a.ZP,{item:!0,xs:12,sx:{display:"none"},children:(0,i.jsxs)(u.Z,{direction:"row",justifyContent:"center",alignItems:"center",spacing:2,children:[(0,i.jsx)(p.Z,{variant:"outlined",onClick:F,sx:{padding:"10px 20px",borderRadius:"8px",boxShadow:"none"},children:(0,i.jsx)(c.Z,{fontWeight:700,fontSize:18,sx:{textTransform:"none"},children:"Chọn lại"})}),(0,i.jsx)(p.Z,{variant:"contained",id:"submitPrediction",sx:{padding:"10px 20px",borderRadius:"8px",boxShadow:"none"},disabled:!m,onClick:C,children:(0,i.jsx)(c.Z,{fontWeight:700,fontSize:18,sx:{textTransform:"none"},children:"Gửi kết quả"})})]})}),(0,i.jsx)(H.D,{canOpen:s,handleClose:h,data:d})]})};var nm=t(82729),nf=t(70917),nj=t(85518);function nC(){let e=(0,nm._)(["\n  0% { transform: translateX(0) }\n  25% { transform: translateY(-9px) }\n  35% { transform: translateY(-9px) rotate(17deg) }\n  55% { transform: translateY(-9px) rotate(-17deg) }\n  65% { transform: translateY(-9px) rotate(17deg) }\n  75% { transform: translateY(-9px) rotate(-17deg) }\n  100% { transform: translateY(0) rotate(0) }\n"]);return nC=function(){return e},e}let ny=(0,nf.F4)(nC()),nb=e=>{let[n,t]=(0,j.useState)(!0),r=()=>{t(!1)};return n?(0,i.jsxs)(d.Z,{sx:{position:"fixed",right:0,bottom:"15%",zIndex:1022,width:"128px",height:"106px"},children:[!(null==e?void 0:e.statusMWG)&&(0,i.jsxs)(d.Z,{children:[(0,i.jsx)(G.Z,{onClick:r,sx:{position:"relative",zIndex:1023,cursor:"pointer"}}),(0,i.jsx)(d.Z,{sx:{animation:"".concat(ny," 2.5s infinite")},children:(0,i.jsx)(x.Z,{href:"/du-doan-world-cup-2022/",id:"prediction-WorldCup",children:(0,i.jsx)(f(),{src:"/common/Anfin-WC.png",alt:"World Cup",width:128,height:106})})})]}),(null==e?void 0:e.statusMWG)&&(0,i.jsxs)(d.Z,{children:[(0,i.jsx)(G.Z,{onClick:r,sx:{position:"relative",zIndex:1023,cursor:"pointer"}}),(0,i.jsx)(d.Z,{sx:{animation:"".concat(ny," 2.5s infinite")},children:(0,i.jsx)(x.Z,{href:nj.tq?"https://app.anfin.vn/awc_leaderboard":"https://www.anfin.vn/su-kien/ve-xem-anfin-world-cup",id:"prediction-WorldCup",children:(0,i.jsx)(f(),{src:"/common/mwg.png",alt:"World Cup",width:128,height:115})})})]})]}):(0,i.jsx)(i.Fragment,{})};var nZ=t(69429);let nv=(0,l.ZP)(a.ZP)(e=>{let{theme:n}=e;return{position:"relative","& .desktop":{display:"flex",padding:"0px 160px",height:"calc(100vh - 80px)",alignItems:"center",[n.breakpoints.down("md")]:{display:"none"}},"& .mobile":{display:"none",[n.breakpoints.down("md")]:{display:"block"}}}}),nw=(0,l.ZP)(d.Z)({background:"radial-gradient(50% 50% at 50% 50%,#FD6510 0,#FD651000 100%)",opacity:".4",filter:"blur(166.553px)",position:"absolute",width:"30vw",height:"30vw",top:"-5vw",right:"5vw"}),nk=(0,l.ZP)(d.Z)({background:"radial-gradient(50% 50% at 50% 50%,#FD6510 0,#FD651000 100%)",opacity:".4",filter:"blur(166.553px)",position:"absolute",width:"30vw",height:"30vw",top:"10vw",left:"-5vw"}),nF=(0,l.ZP)(d.Z)({background:"radial-gradient(50% 50% at 50% 50%,#1069FD 0,#1069FD00 100%)",opacity:".4",filter:"blur(166.553px)",position:"absolute",width:"30vw",height:"30vw",bottom:"0vw",right:"0"}
1),nS=(0,l.ZP)(a.ZP)({display:"flex",width:"100%",position:"relative",zIndex:"1"}),nB=(0,l.ZP)(c.Z)(e=>{let{theme:n}=e;return{fontFamily:"Mulish, sans-serif",fontSize:"124px",fontWeight:900,display:"flex",justifyContent:"flex-end",color:"#2491DD",lineHeight:"156px",[n.breakpoints.down("md")]:{fontSize:"53px",lineHeight:"100%",justifyContent:"flex-start"}}}),nE=(0,l.ZP)(c.Z)(e=>{let{theme:n}=e;return{fontFamily:"Mulish, sans-serif",fontSize:"124px",fontWeight:900,display:"flex",justifyContent:"flex-start",lineHeight:"156px",color:"#FF6B00",[n.breakpoints.down("md")]:{fontSize:"53px",lineHeight:"100%"}}}),nA=(0,l.ZP)(c.Z)(e=>{let{theme:n}=e;return{color:"#191D2B",fontWeight:800,fontSize:"24px",lineHeight:"30px",letterSpacing:"0.01em",textTransform:"uppercase",display:"flex",padding:"6px 0px",[n.breakpoints.down("md")]:{fontWeight:"700",fontSize:"16px",lineHeight:"20px",marginTop:"7%"}}}),nD=(0,l.ZP)(c.Z)(e=>{let{theme:n}=e;return{color:"#191D2B",fontWeight:800,fontSize:"42px",lineHeight:"inherit",letterSpacing:"0.01em",display:"flex",fontFamily:"Mulish",[n.breakpoints.down("md")]:{fontSize:"20px",lineHeight:"25px"}}}),nI=(0,l.ZP)(c.Z)(e=>{let{theme:n}=e;return{color:"#191D2B",fontWeight:500,fontSize:"20px",lineHeight:"25px",letterSpacing:"0.01em",display:"flex",[n.breakpoints.down("md")]:{fontWeight:"400",fontSize:"16px",lineHeight:"20px"}}}),nN=(0,l.ZP)(x.Z)(e=>{let{theme:n}=e;return{textDecoration:"none",display:"flex",alignItems:"center",fontWeight:600,margin:n.spacing(2,0,6,0)}}),nP=(0,l.ZP)(a.ZP)(()=>({"&.show":{display:"block"},"&.hide":{display:"none"}}));var nT=!0;function nR(e){var n;let t,l,{matches:m,predictions:y,userPredictionR2:b,currentRanks:Z}=e,{user:v}=(0,R.a)(),w=v?null==v?void 0:v.userFS.uid:"",k=v?v.userFS.email:"",S=[],B=[],E=[],A=[];void 0!==m&&m.map(e=>{16===e.typeMatch?S.push(e):8===e.typeMatch?B.push(e):4===e.typeMatch?E.push(e):2===e.typeMatch&&A.push(e)});let D=(n=null==y?void 0:y.predictions)&&Z?Object.keys(n).reduce((e,i)=>e+(t=n[i]).reduce((e,n)=>void 0===(l=t.indexOf(n))?e:e+(n===Z[i][l]?1:0),0),0):0,[I,N]=(0,j.useState)(!1),[T,W]=(0,j.useState)(!0),[z,H]=(0,j.useState)(!0),[M,G]=(0,j.useState)(!0),[O,J]=(0,j.useState)(!0),L=e=>{switch(e){case"roundOne":N(!I);break;case"sixteenTeam":W(!T);break;case"eightTeam":H(!z);break;case"fourTeam":G(!M);break;case"final":J(!O)}};return(0,i.jsxs)(nv,{children:[(0,i.jsx)(nw,{}),(0,i.jsx)(nk,{}),(0,i.jsx)(nF,{}),(0,i.jsxs)(nS,{children:[(0,i.jsxs)(nZ.Z,{children:[(0,i.jsx)(g.PB,{title:"Anfin - Dự đo\xe1n World Cup 2022",description:"H\xf2a c\xf9ng kh\xf4ng kh\xed s\xf4i động của World Cup 2022, h\xe3y c\xf9ng dự đo\xe1n kết quả c\xe1c trận thi đấu để thỏa niềm đam m\xea b\xf3ng đ\xe1 v\xe0 nhận những phần thưởng hấp dẫn từ Anfin!",openGraph:{url:"https://iboard.anfin.vn/du-doan-world-cup-2022/",title:"Anfin - Dự đo\xe1n World Cup 2022",description:"H\xf2a c\xf9ng kh\xf4ng kh\xed s\xf4i động của World Cup 2022, h\xe3y c\xf9ng dự đo\xe1n kết quả c\xe1c trận thi đấu để thỏa niềm đam m\xea b\xf3ng đ\xe1 v\xe0 nhận những phần thưởng hấp dẫn từ Anfin!",images:[{url:"/common/du-doan-ti-so-world-cup-trong-chung-khoan.jpeg",width:1200,height:600,alt:"Anfin - Dự đo\xe1n World Cup 2022",type:"image/jpeg"}],site_name:"Anfin"}}),(0,i.jsx)(h.Z,{maxWidth:"xl",sx:{marginBottom:"2%"},children:(0,i.jsxs)(a.ZP,{container:!0,spacing:2,sx:e=>({[e.breakpoints.down("md")]:{marginTop:"2%"}}),children:[(0,i.jsx)(a.ZP,{item:!0,xs:12,sm:8,md:8,lg:8,children:(0,i.jsx)(nB,{children:"WORLD CUP"})}),(0,i.jsx)(a.ZP,{item:!0,xs:12,sm:4,md:4,lg:4,children:(0,i.jsx)(nE,{children:"2022"})}),(0,i.jsxs)(a.ZP,{item:!0,xs:12,md:6,children:[(0,i.jsxs)(d.Z,{sx:{borderBottom:"1px solid #D0D5DC",borderTop:"1px solid #D0D5DC"},children:[(0,i.jsx)(nA,{variant:"h3",children:"DỰ ĐO\xc1N WORLD CUP 2022 C\xd9NG ANFIN"}),(0,i.jsx)(nA,{sx:{color:"#FF6B00"},children:"V\xf2ng 2"})]}),(0,i.jsx)(nI,{sx:{marginTop:"12px"},children:"Sau 16 trận của V\xf2ng Đấu bảng, kh\xf4ng kh\xed của đại hội b\xf3ng đ\xe1 lớn nhất h\xe0nh tinh World Cup 2022 đang n\xf3ng hơn bao g
1iờ hết. H\xe3y c\xf9ng Anfin tiếp tục dự đo\xe1n kết quả c\xe1c trận từ V\xf2ng 16 đội đến Trận Chung kết để gi\xe0nh cơ hội nhận những phần thưởng gi\xe1 trị v\xe0 v\xf4 c\xf9ng hấp dẫn từ Anfin!"}),(0,i.jsxs)(nN,{href:"https://www.anfin.vn/su-kien/chuong-trinh-du-doan-ti-so-world-cup-2022/",target:"_blank",rel:"noopener",children:["Xem chi tiết ",(0,i.jsx)(r.Z,{})]}),(0,i.jsx)(F,{untilDate:P.kt})]}),(0,i.jsx)(a.ZP,{item:!0,xs:12,md:6,children:(0,i.jsx)(f(),{src:"/common/banner-round2.png",alt:"World Cup Anfin",width:552,height:377,layout:"responsive"})}),(0,i.jsx)(a.ZP,{item:!0,xs:12,md:6,sx:{display:"flex",alignItems:"center"},children:v&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(C.Z,{uid:w,email:k,width:50,height:50}),(0,i.jsxs)(u.Z,{direction:"row",sx:{display:"flex",flexDirection:"column",marginLeft:"12px"},children:[(0,i.jsx)(c.Z,{sx:{fontWeight:700},children:(null==v?void 0:v.userFS.displayName)?v.userFS.displayName:null==v?void 0:v.userFS.email}),(0,i.jsxs)(d.Z,{children:[(0,i.jsxs)(d.Z,{children:[(0,i.jsx)("strong",{children:"V\xf2ng Đấu bảng:"}),(0,i.jsxs)(c.Z,{fontWeight:700,color:D>0?"#52BE80":"#D7A52E",marginLeft:1,children:[D,"đ"]})]}),(0,i.jsxs)(d.Z,{children:[(0,i.jsx)("strong",{children:"V\xf2ng 2:"}),(0,i.jsxs)(c.Z,{fontWeight:700,color:D>0?"#52BE80":"#D7A52E",marginLeft:1,children:[null==b?void 0:b.totalPoint,"đ"]})]})]})]})]})}),(0,i.jsxs)(a.ZP,{item:!0,xs:12,sx:{marginTop:"20px"},children:[(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,i.jsx)(nD,{children:"V\xd2NG 16 ĐỘI"}),(0,i.jsxs)(p.Z,{onClick:()=>L("sixteenTeam"),sx:{border:"1px solid #019BFD",fontSize:"16px",textTransform:"inherit",display:"flex"},children:[T?"Thu gọn":"Mở rộng",T?(0,i.jsx)(s.Z,{}):(0,i.jsx)(o.Z,{})]})]}),(0,i.jsx)(c.Z,{sx:{color:"#FF6B00"},children:"Chia sẻ chương tr\xecnh về Facebook của bạn ở chế độ c\xf4ng khai để mở kh\xf3a quyền dự đo\xe1n đặc biệt!"}),(0,i.jsx)("br",{}),(0,i.jsx)(c.Z,{children:"Nhấp v\xe0o quốc kỳ của đội bạn dự đo\xe1n sẽ thắng v\xe0 nhấn Gửi kết quả."}),(0,i.jsx)(nP,{className:T?"show":"hide",children:(0,i.jsx)(eH,{match:S,predictions:b})})]}),(0,i.jsxs)(a.ZP,{item:!0,xs:12,sx:{marginTop:"5%"},children:[(0,i.jsx)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:(0,i.jsx)(nD,{children:"V\xd2NG TỨ KẾT"})}),(0,i.jsx)(nP,{className:z?"show":"hide",children:(0,i.jsx)(eS,{match:B,predictions:b})})]}),(0,i.jsxs)(a.ZP,{item:!0,xs:12,sx:{marginTop:"5%"},children:[(0,i.jsx)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:(0,i.jsx)(nD,{children:"V\xd2NG B\xc1N KẾT"})}),(0,i.jsx)(nP,{className:M?"show":"hide",children:(0,i.jsx)(eV,{match:E,predictions:b})})]}),(0,i.jsxs)(a.ZP,{item:!0,xs:12,sx:{marginTop:"5%"},children:[(0,i.jsx)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:(0,i.jsx)(nD,{children:"V\xd2NG CHUNG KẾT"})}),(0,i.jsx)(nP,{className:O?"show":"hide",children:(0,i.jsx)(eg,{match:A,predictions:b})})]}),(0,i.jsxs)(a.ZP,{item:!0,xs:12,sx:{marginTop:"30px"},children:[(0,i.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,i.jsx)(nD,{children:"V\xd2NG ĐẤU BẢNG"}),(0,i.jsxs)(p.Z,{onClick:()=>L("roundOne"),sx:{border:"1px solid #019BFD",fontSize:"16px",textTransform:"inherit",display:"flex"},children:[I?"Thu gọn":"Xem th\xeam",I?(0,i.jsx)(s.Z,{}):(0,i.jsx)(o.Z,{})]})]}),(0,i.jsx)(u.Z,{direction:{md:"column",lg:"row"},justifyContent:{md:"center",lg:"space-between"},alignItems:"flex-start",spacing:1,sx:{borderBottom:"1px solid #E8EAEE",paddingBottom:"10px"},children:(0,i.jsx)(d.Z,{children:(0,i.jsx)(c.Z,{children:"Chương tr\xecnh dự đo\xe1n v\xf2ng Đấu bảng đ\xe3 kết th\xfac, Anfin đang tổng hợp điểm v\xe0 sẽ sớm th\xf4ng b\xe1o trao thưởng cho những người chiến thắng."})})})]}),(0,i.jsxs)(nP,{item:!0,xs:12,className:I?"show":"hide",children:[!v&&(0,i.jsx)(x.Z,{href:"/login/",rel:"noopener",sx:{textDecoration:"none"},children:(0,i.jsx)(p.Z,{disableElevation:!0,variant:"contained",children:"Xem kết quả của bạn"})}),v&&y?(0,i.jsx)(ng,{predictions:null==y?void 0:y.predictions,currentRanks:Z}):(0,i.jsx)(i.Fragment,{})]})]})})]}),(0,i.jsx)(nb,{statusMWG:!0})]})]})}},11351:function(e,n,t){"use strict";t.d(n,{L:function(){return i},a:function(){return r}});let i=e=>!e||e<0?{days:0,hours:0,mins:0,secs:0}:{days:Math.floor(e/1e3/60/60/24),hours:Math.floor(e/1e3/60/60)%24,mins:Math.floor(e/1e3/60)%60,secs:Math.floor(e/1e3)%60};function r(e){return Math.floor((new Date(e).getTime()-Date.now())/864e5)}}},function(e){e.O(0,[3601,9043,6951,321,277,5675,2962,8816,4769,1816,9774,2888,179],function(){return e(e.s=50463)}),_N_E=e.O()}]);

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.