1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6110],{86110:function(e,s,a){a.r(s),a.d(s,{default:function(){return information}});var i=a(52322),n=a(83444),l=a(78287),r=a(50591),o=a(14482),t=a(93364),c=a(72779),d=a.n(c),m=a(82981),h=a(2784),information_VideoArea=()=>{var e;let{t:s}=(0,m.$G)(),{userInfo:{langId:a}}=(0,l.aC)(),{getBannerUrl:c,getVideoUrl:u}=(0,l.U5)(),{sponsorshipsVideoList:p}=(0,r._uG)(),[v,b]=(0,h.useState)(null===(e=p[0])||void 0===e?void 0:e.id),[j,x]=(0,h.useState)(!1),_=null==p?void 0:p.find(e=>e.id===v),N=!!_&&_.typeId!==o.ZSX.S3,videoThumbnailUrl=e=>e.typeId===o.ZSX.S3?u(e.desktopThumbUrl):e.desktopThumbUrl,handleImageError=e=>{let s=e.target;s.src=c("/h5/img/video-img-coming-soon.jpg")};return(0,h.useEffect)(()=>{var e;b(null===(e=p[0])||void 0===e?void 0:e.id),x(!1)},[a]),(0,i.jsxs)("div",{className:"home-video-area",children:[(0,i.jsx)("div",{className:"header",children:s("Label_Video_VideoArea_Desktop")}),p.length>0?(0,i.jsxs)("div",{className:"content",children:[(0,i.jsx)("div",{className:"sidebar",children:p.map(e=>(0,i.jsxs)("div",{className:d()("thumbnail",{active:v===e.id}),onClick:()=>{b(e.id),x(!1)},children:[(0,i.jsx)("img",{src:videoThumbnailUrl(e),alt:e.title,loading:"lazy",onError:handleImageError}),(0,i.jsx)("div",{className:"thumbnail-video-title",children:(0,i.jsx)("span",{children:e.title})})]},e.id))}),(0,i.jsxs)("div",{className:"main-video",children:[(null==_?void 0:_.typeId)===o.ZSX.S3&&(0,i.jsx)("video",{src:u(null==_?void 0:_.desktopLink),controls:!0,muted:!0,loop:!0,playsInline:!0,preload:"none",poster:_?videoThumbnailUrl(_):void 0,title:null==_?void 0:_.title,style:{width:"100%",height:"100%",objectFit:"cover"}}),N&&j&&(0,i.jsx)("iframe",{src:(0,t.MB)(_.desktopLink),allow:t.W4,allowFullScreen:!0,title:null==_?void 0:_.title,style:{width:"100%",height:"100%",objectFit:"cover"}}),N&&!j&&(0,i.jsxs)("button",{type:"button",className:"video-facade",onClick:()=>x(!0),"aria-label":_.title||s("Label_General_PlayNow"),children:[(0,i.jsx)("img",{src:(0,t.iO)(_.desktopThumbUrl),alt:_.title,onError:e=>{var s;let a=e.target;a.src=null!==(s=(0,t.Dq)(a.src))&&void 0!==s?s:c("/h5/img/video-img-coming-soon.jpg")}}),(0,i.jsx)(n.fx,{})]})]})]}):(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"content",children:[(0,i.jsx)("div",{className:"sidebar",children:(0,i.jsxs)("div",{className:d()("thumbnail active",{empty:0===p.length}),children:[(0,i.jsx)("img",{src:c("/desktop/img/video-bn-coming-soon.jpg"),alt:"no-video-thumbnail",onError:handleImageError}),(0,i.jsx)("div",{className:"thumbnail-video-title",children:(0,i.jsx)("span",{className:"coming-soon",children:s("Label_Event_ComingSoon")})})]})}),(0,i.jsx)("div",{className:"empty-main-video",children:(0,i.jsx)("img",{src:c("/desktop/img/video-img-coming-soon.jpg"),alt:"no-video",onError:handleImageError})})]})})]})},u=a(14048),p=a(88213),v=a(38201),b=a(25237),j=a.n(b),x=a(39097),_=a.n(x),N=a(5632);let g=j()(()=>Promise.resolve().then(a.bind(a,61427)),{loadableGenerated:{webpack:()=>[61427]},ssr:!1});var Jackpot=()=>{let{t:e}=(0,m.$G)(),{push:s}=(0,N.useRouter)(),{modal:a}=(0,p.JT)(),{userInfo:{currencyId:n},auth:{isLogin:o}}=(0,l.aC)(),t=e("Label_General_Currency_".concat(n)),{isJackPotLoaded:c}=(0,r.ZUE)(t);return(0,i.jsxs)("div",{className:"home-jackpots",children:[(0,i.jsx)("div",{className:"title",children:e("Label_Event_All_Jackpots").toUpperCase()}),(0,i.jsx)("div",{className:"content",children:(0,i.jsxs)("div",{className:"jackpots-amount",children:[c&&(0,i.jsx)("span",{className:"currency",children:t}),(0,i.jsx)("span",{className:"number",id:"jpot-id"}),!c&&(0,i.jsx)("span",{className:"number",children:e("Label_Event_ComingSoon")})]})}),(0,i.jsxs)("div",{className:"btnGroup",children:[(0,i.jsx)(_(),{legacyBehavior:!0,href:v.Hb.promotion.root,passHref:!0,children:(0,i.jsx)("button",{className:"primary",children:e("Label_Promotions").toUpperCase()})}),(0,i.jsx)("button",{className:"primary",onClick:()=>{if(!o){a.open((0,i.jsx)(g,{}));return}s(v.Hb.deposit.root)},children:e("Label_Deposit_Now").toUpperCase()})]})]})},f=a(34180);let k=j()(()=>Promise.resolve().then(a.bind(a,61427)),{loadableGenerated:{webpack:()=>[61427]},ssr:!1}),y={align:"center",loop:!0};var information_MonthlyPicks=()=>{let{t:e}=(0,m.$G)(),{monthlyData:s=[],monthlyBannerList:a}=(0,r._uG)(),{auth:{isLogin:n}}=(0,l.aC)(),{modal:o}=(0,p.JT)(),[t,c]=(0,h.useState)(!1),{bannerDataList:d,handleBannerClick:u}=(0,r.SKk)(a),b=(0,h.useMemo)(()=>
1[(0,f.Z)({delay:5e3,stopOnInteraction:!1})],[]),{emblaRef:j,selectedIndex:x,scrollPrev:N,scrollNext:g}=(0,r.xPb)(y,b),C=(0,h.useMemo)(()=>{if(0===d.length)return[];let e=Math.ceil(3/d.length),s=[...d];for(let a=1;a<e;a+=1)s=[...s,...d];return s.map((e,s)=>({...e,itemKey:"".concat(e.itemKey,"-").concat(s)}))},[d]);return(0,i.jsxs)("div",{className:"home-picks",onMouseOver:()=>c(!0),onMouseOut:()=>c(!1),onFocus:()=>0,onBlur:()=>0,children:[(0,i.jsx)("div",{className:"title",children:e("Label_General_Monthly_Picks").toUpperCase()}),(s.length>0||C.length>0)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"content",children:(0,i.jsx)("div",{className:"picks-carousel",children:(0,i.jsxs)("div",{className:"embla",ref:j,children:[(0,i.jsx)("div",{className:"embla__container",children:C.map(e=>{let{bannerPCUrl:s,bannerName:a,title:n,description:l,itemKey:r}=e;return(0,i.jsxs)("div",{className:"embla__slide",children:[(0,i.jsx)("div",{className:"picks-item",children:(0,i.jsx)("img",{src:s,alt:a})}),(0,i.jsxs)("div",{className:"picks-info",children:[(0,i.jsx)("span",{className:"title",children:n}),(0,i.jsx)("p",{children:l})]})]},r)})}),(0,i.jsx)("button",{type:"button",className:"embla__button embla__button--prev ".concat(t?"embla__button--visible":""),onClick:N}),(0,i.jsx)("button",{type:"button",className:"embla__button embla__button--next ".concat(t?"embla__button--visible":""),onClick:g})]})})}),(0,i.jsxs)("div",{className:"btnGroup",children:[(0,i.jsx)(_(),{legacyBehavior:!0,href:n?v.Hb.deposit.root:v.Hb.join.root,passHref:!0,children:(0,i.jsx)("button",{className:"primary",children:n?e("Label_Deposit_Now").toUpperCase():e("Label_General_Register").toUpperCase()})}),(0,i.jsx)("button",{className:"primary",onClick:()=>{if(0===d.length)return;let e=d[x%d.length];e&&u(e,{loginCallback:()=>o.open((0,i.jsx)(k,{}))})},children:e("Label_General_MoreInfo").toUpperCase()})]})]})]})},information_NewsFeed=()=>{let{t:e}=(0,m.$G)(),{userInfo:{currencyId:s}}=(0,l.aC)(),{newsData:a=[]}=(0,r._uG)(),n=(0,h.useMemo)(()=>({axis:"y",loop:a.length>3,watchDrag:!1}),[a.length]),o=(0,h.useMemo)(()=>[(0,f.Z)({delay:4e3,stopOnInteraction:!1})],[]),{emblaRef:t}=(0,r.xPb)(n,o);return(0,i.jsxs)("div",{className:d()("home-news",{"home-news-video":s!==u.CurrenciesEnum.PHP}),children:[(0,i.jsxs)("div",{className:"title",children:[e("Label_General_News_Feed").toUpperCase(),(0,i.jsx)(_(),{legacyBehavior:!0,href:v.Hb.news.root,passHref:!0,children:(0,i.jsxs)("a",{className:"see-all",children:[(0,i.jsx)("i",{className:"icon icon-keyboard_arrow_right1"}),e("Label_General_SeeMore").toUpperCase()]})})]}),a.length>0&&(0,i.jsx)("div",{className:"content",children:(0,i.jsx)("div",{className:"news-swiper",children:(0,i.jsx)("div",{className:"embla",ref:t,children:(0,i.jsx)("div",{className:"embla__container",children:a.map(s=>{let{newsId:a,title:n,content:l}=s;return(0,i.jsx)("div",{className:"embla__slide",children:(0,i.jsxs)("div",{className:"news-list",children:[(0,i.jsx)(_(),{legacyBehavior:!0,href:"".concat(v.Hb.newsInfo.root,"/").concat(a),passHref:!0,children:(0,i.jsxs)("a",{className:"news-title",children:[(0,i.jsxs)("span",{className:"news-tag",children:[e("Label_General_New"),"\xa0"]}),n]})}),(0,i.jsx)("div",{className:"news-blurb",children:l})]})},a)})})})})})]})},information=()=>{let{userInfo:{currencyId:e}}=(0,l.aC)();return(0,i.jsxs)("div",{className:d()("home-information",{"home-information-video":e!==u.CurrenciesEnum.PHP}),children:[e===u.CurrenciesEnum.PHP?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Jackpot,{}),(0,i.jsx)(information_MonthlyPicks,{})]}):(0,i.jsx)(information_VideoArea,{}),(0,i.jsx)(information_NewsFeed,{})]})}}}]);
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.