PageSourceSearch

https://www.bk8ao.com/assets/10.10.9/home.60f05bff.1791468131499.js

js bk8ao.com collected 2026-10-09 22:20:03 UTC 13,455 bytes, 1 lines download raw bytes

1import{r as c,A as e,l as W,eu as U,gX as ie,Z as le}from"./index.40d342e9.1791468131499.js";import{S as me}from"./index.1a303ea2.1791468131499.js";import{r as V,a as ue}from"./agentation.5bb278ab.1791468131499.js";import{n as de,c as ge}from"./staticContentModules.e3a4452c.1791468131499.js";import{_ as pe,z as he}from"./index.eb637b05.1791468131499.js";import{h as fe,i as ye,g as _e,a as we,l as Ce,k as Se,r as xe,m as be,b as ve,c as je}from"./ceremony-util.be1fa23f.1791468131499.js";import{u as Be,G as Ne}from"./game-tab.82defb98.1791468131499.js";import"./index.cbdc45e1.1791468131499.js";import"./index.578a46aa.1791468131499.js";import"./index.a2748de0.1791468131499.js";import"./oddsFeedModules.090fa001.1791468131499.js";import"./dayjs.min.d5a1da16.1791468131499.js";import"./index.56f327d8.1791468131499.js";import"./user-slice.957d110e.1791468131499.js";import"./usePreloadTheme.cf8603d9.1791468131499.js";import"./drag.0a2684de.1791468131499.js";import"./index-layout-lite.8cf00893.1791468131499.js";import"./luckyWheelModules.279f6fd1.1791468131499.js";import"./ms-hook.d0662f9b.1791468131499.js";import"./no-records.28f5a25c.1791468131499.js";const Ae="_bannerSliderContainer_1i9fi_9",Le="_bannerImage_1i9fi_36",De="_bannerSliderDotsContainer_1i9fi_48",k={bannerSliderContainer:Ae,"skeleton-loading-effect":"_skeleton-loading-effect_1i9fi_1",bannerImage:Le,bannerSliderDotsContainer:De},Te=()=>{const[n,t]=c.useState(""),r=V.useHistory(),o=c.useRef({x:0,y:0}),s=c.useRef(!1),u=new Date().setHours(0,0,0,0);c.useEffect(()=>{(async()=>{const i=await de(),S=Array.isArray(i)&&i.length>0&&i.filter(m=>{const d=m.startDate?new Date(m.startDate).setHours(0,0,0,0):-1/0,x=m.endDate?new Date(m.endDate).setHours(0,0,0,0):1/0;return d<=u&&u<=x});t(S)})()},[]);const g=Array.isArray(n)&&n.length>0,f=n.length<=1,h=i=>{s.current=!1,o.current={x:i.clientX||i.touches?.[0]?.clientX||0,y:i.clientY||i.touches?.[0]?.clientY||0}},y=i=>{const S=i.clientX||i.touches?.[0]?.clientX||0,m=i.clientY||i.touches?.[0]?.clientY||0,d=Math.abs(S-o.current.x),x=Math.abs(m-o.current.y);(d>5||x>5)&&(s.current=!0)};return e.jsx(c.Fragment,{children:g?e.jsx(me,{lazyLoad:"ondemand",autoplay:!0,infinite:!f,className:k.bannerSliderContainer,dotsClass:k.bannerSliderDotsContainer,dots:!0,autoplaySpeed:5e3,speed:1200,arrows:!1,slidesToShow:1,children:n.map((i,S)=>{const{url:m,webPUrl:d,alt:x,href:b}=i||{};return e.jsx("div",{className:k.bannerSliderWrapper,children:e.jsx("div",{className:k.bannerItem,role:"button",onMouseDown:h,onTouchStart:h,onMouseMove:y,onTouchMove:y,onClick:()=>q(b,r,!s.current),onKeyDown:A=>{(A.key==="Enter"||A.key===" ")&&q(b,r,!s.current)},children:e.jsxs("picture",{children:[e.jsx("source",{srcSet:d,type:"image/webp"}),e.jsx("img",{src:m,alt:x||"banner",className:k.bannerImage})]})})},`banner-${S}`)})}):null})},q=(n,t,r)=>{r&&n&&n!==""&&(n.indexOf("http")!==-1?n.endsWith("#N")?window.open(n,"_blank"):n.endsWith("#C")?window.open(n,"_self"):window.open(n,"_blank"):t.push(n))},Re="_ceremonyContainer_3v47w_9",ke="_loaded_3v47w_36",Ee="_ceremonyVideo_3v47w_39",Ie="_wrapper_3v47w_56",Me="_logo_3v47w_64",$e="_leftElement_3v47w_67",He="_rightElement_3v47w_68",Ve="_countdownCompleteContainer_3v47w_75",We="_countdownContainer_3v47w_81",Pe="_contentWrapper_3v47w_87",Oe="_number_3v47w_95",Xe="_text_3v47w_99",Ue="_ceremonyBtnContainer_3v47w_102",ze="_button_3v47w_110",l={ceremonyContainer:Re,"skeleton-loading-effect":"_skeleton-loading-effect_3v47w_1",loaded:ke,ceremonyVideo:Ee,wrapper:Ie,logo:Me,leftElement:$e,rightElement:He,countdownCompleteContainer:Ve,countdownContainer:We,contentWrapper:Pe,number:Oe,text:Xe,ceremonyBtnContainer:Ue,button:ze},X=n=>String(he(n)).split("").map((t,r)=>e.jsx("span",{children:t},`${r}${t}`)),Ye=(n,t)=>!n||typeof n!="object"||Array.isArray(n)?n:n?.[t]??n,Fe=(n,t="afterCountdown")=>n?typeof n=="string"?n:n?.[t]||"":"",Ke=(n="")=>/^https?:\/\//i.test(n||""),qe={"/slots/nextspin":{gameTab:"Slots",providerCode:"NS"}},Ge="sp2lite:ceremony-redirect",Je=n=>{const t=n?.ceremory?.startDate?.ALL;if(!t)return null;const o=new Date().getTimezoneOffset()/60,s=new Date(t);return s.setHours(s.getHours()+o),new Date(s.toISOString())},Ze=()=>{const n=W.useSelector(a=>a.language.currentLanguage),t=V.useHistory(),r=V.useLocation(),[o,s]=c.useState(null),[u,g]=c.useState(!1),[f,h]=c.useState(null),[y,i]=c.useState(!1),[S]=c.useState(()=>U()),m=S==="Mobile",d=m?"mobile":"web",x=!0,{showBanner:b,hideLogo:A}=window.defaultSettings?.ceremoryBanner||{},L=fe({defaultSettings:window.defaultSettings}),_=ye({defaultSettings:window.defaultSettings});c.useEffect(()=>{if(!b||!L||!_)return;let a=!1;return(async()=>{try{const p=await ge();a||s(p||null)}catch(p){a||(console.error("[Ceremony] failed to load settings:",p),s(null))}})(),()=>{a=!0}},[b,L,_]);const v=Je(o),j=c.useRef(!1);c.useEffect(()=>{if(!v)return;const a=Date.now(),p=v.getTime();a>
1=p?j.current||(j.current=!0,g(!0)):(j.current=!1,g(!1))},[v]);const D=_e({ceremonyContent:o,language:n,isMobile:m,isTemplate8:x,isComplete:u}),w=we({backgroundSrc:D?.backgroundSrc}),E=ve(w);c.useEffect(()=>{let a=!1;return i(!1),w.videoSrc||!w.imageSrc?(h(null),()=>{a=!0}):(Ce(w.imageSrc).then(p=>{a||h(p)}),()=>{a=!0})},[E,w.videoSrc,w.imageSrc]);const z=a=>{h(je(a?.currentTarget)),i(!0)},G=({days:a,hours:p,minutes:P,completed:te})=>{const I=o?.ceremory?.translation,K=n?.key,T=n?.currency,M=d,oe=(C,B)=>{if(!C)return null;if(B){const $=C?.[M];return $&&$?.[T]?T:"ALL"}else return C?.[M]?.[T]?T:"ALL"},re=()=>{const C=I?.countdownComplete,B=oe(C,!0);return B?C?.[M]?.[B]?.[K]??"":""},O=C=>{const B=I?.[C];if(!B)return"";const $=B?.[M]?.[T]?T:"ALL";return B?.[$]?.[K]??""};if(te){const C=re();return I?.countdownComplete&&e.jsx("div",{className:l.countdownCompleteContainer,children:e.jsx("span",{children:C})})}const se=O("days"),ae=O("hours"),ce=O("mins");return I&&e.jsxs("div",{className:l.countdownContainer,children:[e.jsxs("div",{className:l.contentWrapper,children:[e.jsx("div",{className:l.number,children:X(a)}),e.jsx("div",{className:l.text,children:se})]}),e.jsx("img",{src:D?.dividerSrc,alt:""}),e.jsxs("div",{className:l.contentWrapper,children:[e.jsx("div",{className:l.number,children:X(p)}),e.jsx("div",{className:l.text,children:ae})]}),e.jsx("img",{src:D?.dividerSrc,alt:""}),e.jsxs("div",{className:l.contentWrapper,children:[e.jsx("div",{className:l.number,children:X(P)}),e.jsx("div",{className:l.text,children:ce})]})]})},J=!!b&&!!_&&!!o?.ceremory&&!!v,Z=o?.ceremory?.showCeremonyPlayButton!==!1,Q=Se({buttonNavigation:Ye(o?.ceremory?.buttonNavigation||window.defaultSettings?.ceremoryBanner?.buttonNavigation,d),customUrl:o?.ceremory?.customUrl,merchantCode:window.merchantCode,currentViewType:d}),ee=xe({hideLogo:A,currentViewType:d}),Y=Fe(Q,u?"afterCountdown":"beforeCountdown"),ne=be({logoSrc:D?.logoSrc}),F=(a="")=>{if(!a)return;const p=qe[a];if(p){if(r.pathname.includes("/home")){window.dispatchEvent(new CustomEvent(Ge,{detail:p}));return}const P=r.pathname.match(/^\/[a-z]{2}-[a-z]{2}/i)?.[0]||`/${String(window.countryLanguageKey||"en-th").replace(/_/g,"-").toLowerCase()}`;t.push(`${P}/home`,{ceremonyRedirect:p});return}if(Ke(a)){window.open(a,"_blank");return}t.push(a)};return e.jsx("div",{className:`${l.ceremonyContainer} ${y?l.loaded:""}`,style:f?{aspectRatio:f}:void 0,onClick:()=>F(Y),children:J&&e.jsxs(e.Fragment,{children:[w.videoSrc?e.jsx("video",{className:l.ceremonyVideo,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,onLoadedMetadata:z,children:e.jsx("source",{src:w.videoSrc,type:`video/${m?"mp4":"webm"}`})}):e.jsx("img",{className:l.ceremonyVideo,src:w.imageSrc,onLoad:z,alt:""}),e.jsxs("div",{className:l.wrapper,children:[e.jsx("div",{className:l.logo,children:!ee&&e.jsx("img",{src:ne,alt:""})}),e.jsx("div",{className:l.leftElement,children:e.jsx("img",{src:"/public/html/default_whitelabel/shared-image/home_img/left-element.png",alt:""})}),!u&&e.jsx(pe,{date:v,renderer:G,onComplete:()=>{j.current||(j.current=!0,g(!0))}}),e.jsx("div",{className:l.rightElement,children:e.jsx("img",{src:"/public/html/default_whitelabel/shared-image/home_img/right-element.png",alt:""})}),e.jsx("div",{className:l.ceremonyBtnContainer,children:Z&&u&&e.jsx("button",{className:l.button,onClick:a=>{a.stopPropagation(),F(Y)},children:e.jsx("span",{children:o?.ceremory?.translation?.playBtn?.[o?.ceremory?.translation?.playBtn?.[d]?.[n?.currency]?n?.currency:"ALL"]?.[n?.key]})})})]})]})})},Qe="_loginBarContainer_1cwju_2",en="_buttonContainer_1cwju_19",nn="_loginBarButton_1cwju_34",tn="_left_1cwju_44",on="_right_1cwju_48",rn="_depositDescContainer_1cwju_52",sn="_content_1cwju_72",an="_title_1cwju_82",cn="_value_1cwju_98",H={loginBarContainer:Qe,buttonContainer:en,loginBarButton:nn,left:tn,right:on,depositDescContainer:rn,content:sn,title:an,value:cn},ln=()=>{const{isLogin:n}=W.useSelector(s=>s.user),t=ue.useHistory(),r=Be("liteLoginBar"),{t:o}=r;return e.jsx("div",{className:H.loginBarContainer,children:e.jsx(mn,{isLogin:n,history:t,t:o})})},mn=({isLogin:n,history:t,t:r})=>e.jsx("div",{className:H.buttonContainer,children:un.map(({id:o,title:s,href:u,requireLogin:g,translation:f},h)=>{const y=h%2==0;return n===!!g&&e.jsx("button",{onClick:()=>dn(u,t),className:`${H.loginBarButton} ${H?.[y?"left":"right"]}`,children:r(f,s)},o)})}),un=[{id:"deposit-btn",title:"Top Up",href:"/myaccount/deposit",requireLogin:!0,translation:"liteLoginBar:liteLoginBar.depositButton"},{id:"withdraw-btn",title:"Withdrawal",href:"/myaccount/withdraw",requireLogin:!0,translation:"liteLoginBar:liteLoginBar.withdrawButton"}],dn=(n,t)=>{t.push(n)},gn="_announcementContainer_1sbvv_1",pn="_announcementIcon_1sbvv_7",hn="_announcementBarContainer_1sbvv_12",fn="_announcementContent_1sbvv_21",yn="_textContent_1sbvv_25",_n="_announcementRightIcon_1sbvv_29",R={announcementContainer:gn,announcementIcon:pn,announcementBarContainer:hn,announcementContent:fn,textContent:yn,announcementRightIcon:_n},wn=({customAnnouncementRedirectLink:n,showMobilePopup:t,customAnnouncementStyling:r})=>{const o=V.useHistory(),s=U(),{textAnnouncement:u}=W.useSelector(y=>y.announcement),g=ie(u),f=s==="Mobile",h=()=>{Array.isArray(g)&&g.length===0||o.push("/announcement")};return e.jsxs("div",{className:`announcementContainer ${R.announcementContainer}`,role:"button",onClick:h,children:[e.jsxs("picture",{children:[e.jsx("source",{srcSet:"/public/html/images/sp2lite/announcement/announcement-notice.webp",type:"image/webp"}),e.jsx("img",{src:"/public/html/images/sp2lite/announcement/announcement-notice.png",alt:"announcement-icon",className:R.announcementIcon})]}),e.jsxs("div",{className:`announcementBarContainer ${R.announcementBarContainer}`,children:[e.jsx(Cn,{customAnnouncementRedirectLink:n,showMobilePopup:t,isMobile:f,customAnnouncementStyling:r,announcementTextList:g}),f&&e.jsxs("picture",{children:[e.jsx("source",{srcSet:"/public/html/images/sp2lite/announcement/announcement-right.webp",type:"image/webp"}),e.jsx("img",{src:"/public/html/images/sp2lite/announcement/announcement-right.png",alt:"announcement-right-icon",className:R.announcementRightIcon})]})]})]})},Cn=({isMobile:n,customAnnouncementStyling:t,announcementTextList:r})=>{const[o,s]=c.useState(0),[u,g]=c.useState(""),[f,h]=c.useState(0),[y,i]=c.useState(!0),[S,m]=c.useState(!1),[d,x]=c.useState({}),b=c.useRef(null),A=c.useRef(null);return c.useEffect(()=>{(async()=>{let L={};if(t){const _=await le("/public/html/scripts/announcement-style.json");if(_){const v=n?_.mColor:_?.color;L.customSpeed=n?_.mSpeed:_?.speed,x({customTextColor:v})}}if(y){i(!1);const _=A.current.offsetWidth,v=b.current.offsetWidth,j=_+v,D=L?.customSpeed||30,w=j/D,E=`scrollAnim-scrolling-text-${Date.now()}`;g(E),h(w),Sn("scrolling-text",j,E),m(!0)}})()},[y]),e.jsx("div",{className:`announcementContent ${R.announcementContent}`,id:"msg-content",ref:A,children:e.jsx("span",{id:"msgAnimate",style:{animation:u?`${u} ${f}s linear 1`:"none",display:"inline-block",...d?.customTextColor&&{color:d?.customTextColor}},ref:b,onAnimationEnd:()=>{Array.isArray(r)&&r.length>0&&(m(!1),i(!0),s(L=>(L+1)%r.length))},className:R.textContent,dangerouslySetInnerHTML:{__html:S?r?.[o]:""}})})},Sn=(n,t,r)=>{const o=document.getElementById(n);o&&o.remove();const s=document.createElement("style");s.id=n,s.innerText=`@keyframes ${r} {0% { transform: translateX(${t}px); } 100% { transform: translateX(-100%); }}`,document.head.appendChild(s)},xn="_homeContainer_yji9k_1",bn="_announcementBarSection_yji9k_8",vn="_homeBannerSection_yji9k_16",jn="_loginBarSection_yji9k_24",Bn="_ceremonySection_yji9k_37",Nn="_gameTabSection_yji9k_40",N={homeContainer:xn,announcementBarSection:bn,homeBannerSection:vn,loginBarSection:jn,ceremonySection:Bn,gameTabSection:Nn},Gn=()=>{const t=U()==="Mobile",{isLogin:r}=W.useSelector(o=>o.user);return e.jsxs("div",{className:N.homeContainer,children:[e.jsx("div",{className:N.announcementBarSection,children:e.jsx(wn,{})}),e.jsx("div",{className:N.ceremonySection,children:e.jsx(Ze,{})}),e.jsx("div",{className:N.homeBannerSection,children:e.jsx(Te,{sliderSettings:An,classNames:Ln})}),t&&r&&e.jsx("div",{className:N.loginBarSection,children:e.jsx(ln,{})}),e.jsx("div",{className:N.gameTabSection,children:e.jsx(Ne,{})})]})},An={showArrow:!1,showDots:!0,autoplay:!0,delaySlide:!0,intervalTime:0},Ln={"home-banner-slider-container-cover":N?.["home-banner-slider-container-cover"],"home-banner-slider-container":N?.["home-banner-slider-container"]};export{Gn as default};

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.