1import{w as ae,r as i,_ as b,l as m,m as f,t as zt,q as B,n as X,y as Gt,I as qt,o as W,C as ke,v as $t,x as Kt,A as o,B as Jt,L as Yt,S as Qt,D as Xt,M as Zt,E as eo,F as Z,G as to,H as Ie,d as oo,P as Ne,J as ee}from"./index.a592fd0f.1791468856214.js";import{r as E}from"./agentation.68356e44.1791468856214.js";import{R as no}from"./index.a510e90f.1791468856214.js";import{u as so}from"./pwa-hook.3b6d6081.1791468856214.js";import{R as io,F as ao,S as ro,N as lo,D as co,P as uo}from"./news-letter.selector.86db51d1.1791468856214.js";import{L as go}from"./lazyPrivateRoute.2b4f2da7.1791468856214.js";import{f as De,i as mo,a as po,s as ho,c as fo,u as wo,b as yo,h as So,t as bo,e as Po}from"./store.c551292d.1791468856214.js";import{L as _}from"./lazyComponent.ddf47cc2.1791468856214.js";import Lo from"./bottom-navbar.selector.f5010aab.1791468856214.js";import Ro from"./loading.selector.d4f4d293.1791468856214.js";import _o from"./download_modal.selector.a3a122af.1791468856214.js";import{S as Eo,N as To,F as Ao,L as Co}from"./login-alert-popup.selector.c6ae5b9f.1791468856214.js";import vo from"./scroll-top-trigger.d0a28549.1791468856214.js";import Mo from"./info-popup.selector.80d64503.1791468856214.js";import xo from"./pwa-install-status-popup.65ce9a83.1791468856214.js";import{u as Fo}from"./ms-hook.5efd5957.1791468856214.js";import{d as ko,r as Oe}from"./mainRouteMap.43fbbec5.1791468856214.js";import{D as je}from"./dynamicLazyComponent.af62d5bb.1791468856214.js";import Be from"./pageNotFound.selector.ad9f995d.1791468856214.js";import"./index.cda596f5.1791468856214.js";import"./warning.883c7a3c.1791468856214.js";import"./emotion-react.browser.esm.203ba25b.1791468856214.js";import"./emotion-memoize.esm.f5713a00.1791468856214.js";import"./miniLazyComponent.ccbc3aa5.1791468856214.js";import"./selector.4b536653.1791468856214.js";import"./floatingNotification.constant.27687fe7.1791468856214.js";import"./dayjs.min.4438ae62.1791468856214.js";import"./matchPredictionModules.8463f61a.1791468856214.js";import"./oddsFeedModules.2bed76ce.1791468856214.js";import"./promotionModules.e5ad9f13.1791468856214.js";import"./index.d6d38540.1791468856214.js";import"./LoadingTopBar.9c396eba.1791468856214.js";import"./scrollToLoad.3fee2763.1791468856214.js";import"./index-layout-1.e93c469d.1791468856214.js";import"./useDataTheme.18e09a92.1791468856214.js";import"./pixel-postback-hook.fa442156.1791468856214.js";import"./fingerprint.a52c0bb2.1791468856214.js";import"./tslib.es6.291ae7cf.1791468856214.js";import"./routerChangeHandler.959d4dcf.1791468856214.js";import"./withTranslation.307c35be.1791468856214.js";import"./route.action.a2251a0f.1791468856214.js";import"./dynamic-comp-service.292d3ae1.1791468856214.js";import"./text.3a0e29a2.1791468856214.js";import"./D_Loading01.095896a5.1791468856214.js";import"./Translation.d9727a31.1791468856214.js";const Io=(r=!1,{useAngpowApiResponseOnly:T=!1}={})=>async(g,h)=>{try{const{languageReducer:y}=h();if(!r)return;const c=r?.features;if(!c)throw new Error("Critical portal settings failed to load.");const p=[];if(p.push(g(ae.updateDepositWithdrawDecimalSettings())),y?.currentLanguage?.countryLanguageKey&&y?.currentLanguage?.currency){const M=T?De({useApiResponseOnly:!0}):De();p.push(g(M)),c.matchPredictionFeature&&(p.push(g(mo())),p.push(g(po())))}window.templateLayout==="9"&&g(ho({enableSplitView:!0,splitView1Layer:window.splitView1Layer===!0||window.splitView1Layer==="true"})),await Promise.all(p)}catch(y){console.error("â A critical error occurred during app initialization:",y)}},No=i.lazy(()=>b(()=>import("./user-login-modal.7fcc65cb.1791468856214.js"),["assets/10.10.9/user-login-modal.7fcc65cb.1791468856214.js","assets/10.10.9/index.a592fd0f.1791468856214.js","assets/10.10.9/agentation.68356e44.1791468856214.js","assets/10.10.9/agentation.06ce37f5.1791468856214.css","assets/10.10.9/index.cda596f5.1791468856214.js","assets/10.10.9/warning.883c7a3c.1791468856214.js","assets/10.10.9/selector.4b536653.1791468856214.js","assets/10.10.9/text.3a0e29a2.1791468856214.js","assets/10.10.9/register-login-benefits.2a206326.1791468856214.js","assets/10.10.9/register-login-benefits.edce9a05.1791468856214.css","assets/10.10.9/uer-login-ambassador-section.6697f5e1.1791468856214.js","assets/10.10.9/index.fd246e85.1791468856214.js","assets/10.10.9/index.2815c6b3.1791468856214.js","assets/10.10.9/partner-text-flicker.79113da2.1791468856214.js","assets/10.10.9/login-register-footer.74e3b85d.1791468856214.js","assets/10.10.9/withTranslation.307c35be.1791468856214.js","assets/10.10.9/Translation.d9727a31.1791468856214.js"])),Do=i.lazy(()=>b(()=>import("./user-register-modal.887ec2c4.1791468856214.js"),["assets/10.10.9/user-register-modal.887ec2c4.1791468856214.js","assets/10.10.9/index.a592fd0f.1791468856214.js","assets/10.10.9/agentation.68356e44.1791468856214.js","assets/10.10.9/agentation.06ce37f5.1791468856214.css","assets/10.10.9/index.cda596f5.1791468856214.js","assets/10.10.9/warning.883c7a3c.1791468856214.js","assets/10.10.9/selector.4b536653.1791468856214.js","assets/10.10.9/text.3a0e29a2.1791468856214.js","assets/10.10.9/register-login-benefits.2a206326.1791468856214.js","assets/10.10.9/register-login-benefits.edce9a05.1791468856214.css","assets/10.10.9/uer-login-ambassador-section.6697f5e1.1791468856214.js","assets/10.10.9/index.fd246e85.1791468856214.js","assets/10.10.9/index.2815c6b3.1791468856214.js","assets/10.10.9/partner-text-flicker.79113da2.1791468856214.js","assets/10.10.9/register.controller.d726b483.1791468856214.js","assets/10.10.9/libphonenumber.6dbb4c3d.1791468856214.js","assets/10.10.9/LoadingTopBar.9c396eba.1791468856214.js","assets/10.10.9/store.c551292d.1791468856214.js","assets/10.10.9/floatingNotification.constant.27687fe7.1791468856214.js","assets/10.10.9/dayjs.min.4438ae62.1791468856214.js","assets/10.10.9/matchPredictionModules.8463f61a.1791468856214.js","assets/10.10.9/oddsFeedModules.2bed76ce.1791468856214.js","assets/10.10.9/promotionModules.e5ad9f13.1791468856214.js","assets/10.10.9/index.d6d38540.1791468856214.js","assets/10.10.9/react-datepicker.min.f6a23822.1791468856214.js","assets/10.10.9/index.c060afc9.1791468856214.js","assets/10.10.9/password-strength.2a725ea5.1791468856214.js","assets/10.10.9/password-strength.09763e81.1791468856214.css","assets/10.10.9/bank-icon.a3f00a7b.1791468856214.js","assets/10.10.9/withTranslation.307c35be.1791468856214.js","assets/10.10.9/Translation.d9727a31.1791468856214.js","assets/10.10.9/image-helper.f0b71afe.1791468856214.js","assets/10.10.9/date-time-picker.d8509ed3.1791468856214.js","assets/10.10.9/date-util.f27a97b3.1791468856214.js","assets/10.10.9/translation-helper.56607c80.1791468856214.js","assets/10.10.9/transaction-button.selector.b9d2ccfa.1791468856214.js","assets/10.10.9/miniLazyComponent.ccbc3aa5.1791468856214.js","assets/10.10.9/Turnstile.835cb4a7.1791468856214.js","assets/10.10.9/index.0e2b2c35.1791468856214.js","assets/10.10.9/Turnstile.7c23de4c.1791468856214.css","assets/10.10.9/phone-otp-util.9efa12da.1791468856214.js","assets/10.10.9/index.d45b7018.1791468856214.js","assets/10.10.9/register-util.1e77b03f.1791468856214.js","assets/10.10.9/telegram-util.8e229831.1791468856214.js","assets/10.10.9/text.d89cd52b.1791468856214.js","assets/10.10.9/transaction-util.2fd371ac.1791468856214.js","assets/10.10.9/deposit.action.cb3aabb2.1791468856214.js","assets/10.10.9/phone-based-placeholder-email.e43e970f.1791468856214.js","assets/10.10.9/side-contact-util.5377
1aa93.1791468856214.js","assets/10.10.9/login-register-footer.74e3b85d.1791468856214.js","assets/10.10.9/sliderRecaptcha-popup.selector.d141e603.1791468856214.js"])),Oo=i.lazy(()=>b(()=>import("./contact-for-game-account-popup.0d4366e1.1791468856214.js"),["assets/10.10.9/contact-for-game-account-popup.0d4366e1.1791468856214.js","assets/10.10.9/index.a592fd0f.1791468856214.js","assets/10.10.9/agentation.68356e44.1791468856214.js","assets/10.10.9/agentation.06ce37f5.1791468856214.css","assets/10.10.9/index.cda596f5.1791468856214.js","assets/10.10.9/warning.883c7a3c.1791468856214.js","assets/10.10.9/selector.4b536653.1791468856214.js","assets/10.10.9/transaction-button.selector.b9d2ccfa.1791468856214.js","assets/10.10.9/miniLazyComponent.ccbc3aa5.1791468856214.js","assets/10.10.9/withTranslation.307c35be.1791468856214.js","assets/10.10.9/Translation.d9727a31.1791468856214.js"])),jo=i.lazy(()=>b(()=>import("./mini-game.431d7726.1791468856214.js"),["assets/10.10.9/mini-game.431d7726.1791468856214.js","assets/10.10.9/index.a592fd0f.1791468856214.js","assets/10.10.9/agentation.68356e44.1791468856214.js","assets/10.10.9/agentation.06ce37f5.1791468856214.css","assets/10.10.9/selector.4b536653.1791468856214.js"])),Bo=i.lazy(()=>b(()=>import("./lucky-wheel.ac282e07.1791468856214.js"),["assets/10.10.9/lucky-wheel.ac282e07.1791468856214.js","assets/10.10.9/index.a592fd0f.1791468856214.js","assets/10.10.9/agentation.68356e44.1791468856214.js","assets/10.10.9/agentation.06ce37f5.1791468856214.css","assets/10.10.9/emotion-react.browser.esm.203ba25b.1791468856214.js","assets/10.10.9/emotion-memoize.esm.f5713a00.1791468856214.js","assets/10.10.9/store.c551292d.1791468856214.js","assets/10.10.9/floatingNotification.constant.27687fe7.1791468856214.js","assets/10.10.9/dayjs.min.4438ae62.1791468856214.js","assets/10.10.9/matchPredictionModules.8463f61a.1791468856214.js","assets/10.10.9/oddsFeedModules.2bed76ce.1791468856214.js","assets/10.10.9/promotionModules.e5ad9f13.1791468856214.js","assets/10.10.9/index.d6d38540.1791468856214.js","assets/10.10.9/draggable-floating-icon.3470a86e.1791468856214.js","assets/10.10.9/useLuckyWheel.c92c8648.1791468856214.js","assets/10.10.9/modal.action.7db46723.1791468856214.js","assets/10.10.9/ms-hook.5efd5957.1791468856214.js","assets/10.10.9/general-hook.582f544d.1791468856214.js","assets/10.10.9/currency-util.966edf9c.1791468856214.js"])),Wo=i.lazy(()=>b(()=>import("./floating-notification.88ec09a8.1791468856214.js"),["assets/10.10.9/floating-notification.88ec09a8.1791468856214.js","assets/10.10.9/index.a592fd0f.1791468856214.js","assets/10.10.9/agentation.68356e44.1791468856214.js","assets/10.10.9/agentation.06ce37f5.1791468856214.css","assets/10.10.9/selector.4b536653.1791468856214.js","assets/10.10.9/floatingNotification.action.e8693b1d.1791468856214.js","assets/10.10.9/floatingNotification.constant.27687fe7.1791468856214.js","assets/10.10.9/index.f9422d19.1791468856214.js","assets/10.10.9/index.2815c6b3.1791468856214.js","assets/10.10.9/index.c060afc9.1791468856214.js","assets/10.10.9/index.665864a1.1791468856214.js","assets/10.10.9/withTranslation.307c35be.1791468856214.js"])),Vo=i.lazy(()=>b(()=>import("./floating-angpow-icon.1b8495e5.1791468856214.js"),["assets/10.10.9/floating-angpow-icon.1b8495e5.1791468856214.js","assets/10.10.9/index.a592fd0f.1791468856214.js","assets/10.10.9/agentation.68356e44.1791468856214.js","assets/10.10.9/agentation.06ce37f5.1791468856214.css","assets/10.10.9/emotion-react.browser.esm.203ba25b.1791468856214.js","assets/10.10.9/emotion-memoize.esm.f5713a00.1791468856214.js","assets/10.10.9/draggable-floating-icon.3470a86e.1791468856214.js","assets/10.10.9/countdown-timer.20cd7888.1791468856214.js","assets/10.10.9/index.d45b7018.1791468856214.js","assets/10.10.9/text.3a0e29a2.1791468856214.js","assets/10.10.9/store.c551292d.1791468856214.js","assets/10.10.9/floatingNotification.constant.27687fe7.1791468856214.js","assets/10.10.9/dayjs.min.4438ae62.1791468856214.js","assets/10.10.9/matchPredictionModules.8463f61a.1791468856214.js","assets/10.10.9/oddsFeedModules.2bed76ce.1791468856214.js","assets/10.10.9/promotionModules.e5ad9f13.1791468856214.js","assets/10.10.9/index.d6d38540.1791468856214.js"])),Uo=i.lazy(()=>b(()=>
1import("./floating-prediction-icon.05ff1c05.1791468856214.js"),["assets/10.10.9/floating-prediction-icon.05ff1c05.1791468856214.js","assets/10.10.9/index.a592fd0f.1791468856214.js","assets/10.10.9/agentation.68356e44.1791468856214.js","assets/10.10.9/agentation.06ce37f5.1791468856214.css","assets/10.10.9/draggable-floating-icon.3470a86e.1791468856214.js","assets/10.10.9/store.c551292d.1791468856214.js","assets/10.10.9/floatingNotification.constant.27687fe7.1791468856214.js","assets/10.10.9/dayjs.min.4438ae62.1791468856214.js","assets/10.10.9/matchPredictionModules.8463f61a.1791468856214.js","assets/10.10.9/oddsFeedModules.2bed76ce.1791468856214.js","assets/10.10.9/promotionModules.e5ad9f13.1791468856214.js","assets/10.10.9/index.d6d38540.1791468856214.js"])),Ho=i.lazy(()=>b(()=>import("./floating-icons-slider.5a2bee66.1791468856214.js"),["assets/10.10.9/floating-icons-slider.5a2bee66.1791468856214.js","assets/10.10.9/index.a592fd0f.1791468856214.js","assets/10.10.9/index.f9422d19.1791468856214.js","assets/10.10.9/index.2815c6b3.1791468856214.js","assets/10.10.9/index.c060afc9.1791468856214.js","assets/10.10.9/index.665864a1.1791468856214.js","assets/10.10.9/agentation.68356e44.1791468856214.js","assets/10.10.9/agentation.06ce37f5.1791468856214.css","assets/10.10.9/draggable-floating-icon.3470a86e.1791468856214.js","assets/10.10.9/floating-angpow-icon.1b8495e5.1791468856214.js","assets/10.10.9/emotion-react.browser.esm.203ba25b.1791468856214.js","assets/10.10.9/emotion-memoize.esm.f5713a00.1791468856214.js","assets/10.10.9/countdown-timer.20cd7888.1791468856214.js","assets/10.10.9/index.d45b7018.1791468856214.js","assets/10.10.9/text.3a0e29a2.1791468856214.js","assets/10.10.9/store.c551292d.1791468856214.js","assets/10.10.9/floatingNotification.constant.27687fe7.1791468856214.js","assets/10.10.9/dayjs.min.4438ae62.1791468856214.js","assets/10.10.9/matchPredictionModules.8463f61a.1791468856214.js","assets/10.10.9/oddsFeedModules.2bed76ce.1791468856214.js","assets/10.10.9/promotionModules.e5ad9f13.1791468856214.js","assets/10.10.9/index.d6d38540.1791468856214.js","assets/10.10.9/lucky-wheel.ac282e07.1791468856214.js","assets/10.10.9/useLuckyWheel.c92c8648.1791468856214.js","assets/10.10.9/modal.action.7db46723.1791468856214.js","assets/10.10.9/ms-hook.5efd5957.1791468856214.js","assets/10.10.9/general-hook.582f544d.1791468856214.js","assets/10.10.9/currency-util.966edf9c.1791468856214.js"])),zo=i.lazy(()=>b(()=>import("./floating-freespin.3a05461f.1791468856214.js"),["assets/10.10.9/floating-freespin.3a05461f.1791468856214.js","assets/10.10.9/index.a592fd0f.1791468856214.js","assets/10.10.9/draggable-floating-icon.3470a86e.1791468856214.js","assets/10.10.9/index.cda596f5.1791468856214.js","assets/10.10.9/warning.883c7a3c.1791468856214.js","assets/10.10.9/agentation.68356e44.1791468856214.js","assets/10.10.9/agentation.06ce37f5.1791468856214.css"])),Go=i.lazy(()=>b(()=>import("./transaction-summary-bubble-floating.d53a447a.1791468856214.js"),["assets/10.10.9/transaction-summary-bubble-floating.d53a447a.1791468856214.js","assets/10.10.9/index.a592fd0f.1791468856214.js","assets/10.10.9/store.c551292d.1791468856214.js","assets/10.10.9/agentation.68356e44.1791468856214.js","assets/10.10.9/agentation.06ce37f5.1791468856214.css","assets/10.10.9/floatingNotification.constant.27687fe7.1791468856214.js","assets/10.10.9/dayjs.min.4438ae62.1791468856214.js","assets/10.10.9/matchPredictionModules.8463f61a.1791468856214.js","assets/10.10.9/oddsFeedModules.2bed76ce.1791468856214.js","assets/10.10.9/promotionModules.e5ad9f13.1791468856214.js","assets/10.10.9/index.d6d38540.1791468856214.js"])),qo=i.lazy(()=>b(()=>import("./mission-diary-daily-checkin-popup.c81e70ed.1791468856214.js").then(r=>r.m),["assets/10.10.9/mission-diary-daily-checkin-popup.c81e70ed.1791468856214.js","assets/10.10.9/index.a592fd0f.1791468856214.js","assets/10.10.9/agentation.68356e44.1791468856214.js","assets/10.10.9/agentation.06ce37f5.1791468856214.css","assets/10.10.9/index.cda596f5.1791468856214.js","assets/10.10.9/warning.883c7a3c.1791468856214.js","assets/10.10.9/dayjs.min.4438ae62.1791468856214.js","assets/10.10.9/transaction-button.selector.b9d2ccfa.1791468856214.js","assets/10.10.9/selector.4b536653.1791468856214.js","assets/10.10.9/miniLazyComponent.ccbc3aa5.1791468856214.js","assets/10.10.9/mission-diary-daily-checkin-popup.d0d3a7f3.1791468856214.css"])),We=({path:r,exact:T,componentKey:g,isPrivate:h,isWeb:y,children:c,dispatch:p})=>{const{languageReducer:M,authSettingsReducer:V}=m.useSelector(x=>({languageReducer:x.languageReducer,authSettingsReducer:x.authSettingsReducer}));i.useEffect(()=>{const x={home:ee.LOGIN,register:ee.REGISTRATION,"reset-password":ee.RESET_PASSWORD,login:ee.LOGIN},I=["home","register","reset-password","login"].includes(g)?x[g]:null,H=V?.moduleData?.[I],d=V?.fetchStatus!=="loading"&&V?.fetchStatus!=="failed";if(I&&M?.currentLanguage?.currency&&d&&!H){const A={otpOptions:{otpType:I,isPublic:!0,isNew:!0,currencyCode:M?.currentLanguage?.currency},authSettingsType:I,isReqUpdate:!1,version:"v2",isPublic:!0};p(Xt({splConfig:A}))}},[g]);const L=Oe[g]||Oe.home,k=typeof L=="function"?L(y):L,s=Array.isArray(r)?r:[r];return o.jsx(i.Suspense,{children:h?o.jsx(go,{exact:T,path:s,component:o.jsx(je,{component:k,path:g}),children:c},g):o.jsx(E.Route,{exact:T,path:s,render:()=>o.jsx(je,{component:k,path:g}),children:c},g)})},$o=(r,T)=>Object.entries(r||{}).filter(g=>{const h=g[1],{supportedCurrencies:y,unsupportedCurrencies:c}=h||{},p=!y?.length||y.includes(T),M=c?.includes(T);return p&&!M}).map(([g,h])=>({key:h.name,path:h.path||g,componentKey:"dynamicPage",exact:h.isExact,isPrivateRoute:h.isPrivateRoute})),Ko=r=>{const[T,g]=i.useState(!1),[h,y]=i.useState({downloadPopupIsShow:!1}),c=m.useDispatch(),p=m.useSelector(e=>e.portalSettingsReducer),M=m.useSelector(e=>e?.languageReducer),V=m.useSelector(e=>e.popupModalReducer),L=m.useSelector(e=>e?.language),k=m.useSelector(e=>e?.angpowRainReducer?.settingApi),s=m.useSelector(e=>e?.portal),x=m.useSelector(e=>e?.menuProps),re=m.useSelector(e=>e?.popup),I=m.useSelector(e=>e?.layout),H=m.useSelector(e=>e?.menuSlice),d=m.useSelector(e=>e?.screen),R=m.useSelector(e=>e?.user),A=m.useSelector(e=>e?.routeProps),le=m.useSelector(e=>e?.seamless),ce=m.useSelector(e=>e?.currencyLang),ue=m.useSelector(e=>e?.luckyWheel),Ve=m.useSelector(e=>e.predictionReducer?.floatingIcon),ge=m.useSelector(e=>e?.pixelPostbackSlice),{pwaStatus:de}=so(),{showSidebar:Ue,showSideBarSubMenuMenu:He,handleSideBar:ze,sideBarSubMenuShow:Ge,location:S,ui:qe}=r;let me=i.useRef(!1),C=d.viewType==="web",N=R.isLogin,P=S.pathname,pe=!1;const{features:u={},showMobileFooterHomeOnly:$e=!1,navbarFixed:Ke=!1,enableMerchantMiniGame:Je=!1,showMobileBottomNavbar:Ye=!1}=s?.settings||{};
1let{ignoreScrollToTopPath:Qe=[],bodyBackgroundImg:he=null,mbodyBackgroundImg:fe=null,hideSidebanner:we=!1,enableError404Page:ye=!1,mainRouteSettings:Se={},isSettingsVer2:be=!1,enableRewardPopup:z=!1,enableScrollToTopIcon:Pe=!1,showFooterUrlList:Xe=[],isInjectExternalStyle:Ze,hideFooterSettings:et={},bottomNavbarSettings:tt=null,infoCentreSettings:ot={},isNewsLetterEnabled:nt,enableLogoMorph:st,enableLabelColorMorph:it,hideFooterUrlList:at=[],isFullSeamless:rt,showTransactionSummaryBubbleFloating:lt=!1}=u||{};const ct=i.useMemo(()=>({props:{language:L,user:R,currencyLang:ce}}),[L,R,ce]),ut=i.useMemo(()=>({props:{screen:d}}),[d]),{requiredLogin:gt,appearAfterLogin:Le}=f(u,"isHomeLandingPage")||{},G=!(!u.isHomeLandingPage||gt&&!N||Le&&!N),dt=f(s?.settings?.hideMiniGameFloatingIcon),q=zt({props:r},u)||!1,mt=u.navbarSettings?.mobile?.enableCustomNavTitleContainer||[],Re=u.settingsConfiguration?.settingsLandingPaths||[],_e=!!u.settingsConfiguration?.memberVerificationSettings?.emailVerification,pt=D(Xe,!0)||[],ht=D(at,!0)||[],ft=s?.settings?.features?.toastifyPosition?.[d?.viewType]||(C?"top-center":"bottom-center"),Ee=f(u,"enableLuckyWheel.onlyShowOnPage"),te=f(u,"enableLuckyWheel.disableLuckyWheelPage"),Te=f(u,"enableLuckyWheel.showPathNameIncluded"),wt=P.split("/")[1],yt=!(te&&te.some(e=>e===P)),St=!Ee||Ee.some(e=>e.includes(wt));let $=te?yt:St;const oe=B(u,"enableLuckyWheel.closebtn.action");if(oe?.type==="close"&&oe?.duration&&oe?.unit){const e=qe.isLuckyWheelHidePeriodActive;$=$&&!e}Te&&($=Te?.some(e=>P?.startsWith(e)));const Ae=f(s,"settings.showMainNavAsSideBar"),bt=`${Ae?"have-side-menu":""} ${x?.showSideNavBar?"push-content":""}`.trim(),Pt=fo(e=>e.portal?.settings?.dynamicPageConfig),Lt=$o(Pt,L?.currencyLang),Ce=i.useMemo(()=>ko({showHomeWithoutUrl:q,showHomeLandingPage:G,mainRouteSettings:Se,sendEmailVerification:_e,settingsLandingPaths:Re,isSettingsVer2:be,isWeb:d&&d.viewType==="web",isSS2:window.templateCode==="ss2",enableAngpowRain:k?.isEnableAngpowRain,isUfaq:s?.settings?.features?.faqSetting?.isUfaq||!1,isHideLeaderboardRoute:!!s?.settings?.features?.isHideLeaderboardRoute,isFullSeamless:rt&&le?.isSeamless,dynamicPageRoutes:Lt})||[],[q,G,Se,_e,Re,be,d,window,k,s,le,L]),K=f(B(r,"portal.settings.features.loginSettings.customLoginLayout")),J=f(B(r,"portal.settings.registerConfiguration.customRegisterLayout")),Y=u?.floatingIconSettings?.showSlidingFloatingIcons;let U=!1,ne={parentvm:{state:h,setState:y,props:r},isOpen:h.downloadPopupIsShow,toggleDialog:X.toggleDialog,handleCloseDownloadPopup:()=>X.toggleDialog?.({state:h,setState:y,props:r},"download")},F=G&&C&&Le&&r.history.location.path==="/home-landing";const Rt=et[d.viewType]||!1,se=f(u,"useFloatingMenu.enableFeature")||!1,_t=f(u,"floatingFreeSpinSettings"),ve=f(u?.depositSettings,"enableFloatingFreeSpin"),Et=[].concat(Gt(A,"Deposit2Landing","")||[]).some(e=>window.location.pathname.includes(e)),Tt=_t&&!ve||ve&&Et,At=f(u,"showProviderFloatingBanner")||!1,ie=Fo(Zt.LUCKY_WHEEL);z=(wo(u?.useFloatingMenu?.customExpandItem)||[]).some(e=>e.isGetReward===!0)&&z?!1:z;const{showBeforeLoginBtmNav:Ct,showBtmNavPromoBanner:vt}=D(tt,!1)||{},Mt=D(u?.providerPageSettings?.superSports?.hideBottomNavbarOnMobile)||!1,xt=s.pathname.includes("/slots"),Ft=s.pathname.includes("/sps"),kt=s.pathname.includes("/launch-game"),It=(Ye||Ct||R?.isLogin)&&!(xt&&vt===!0||C)&&!(Ft&&Mt)&&!kt,Nt=f(u,"showSidebannerInMobile");if($e===!1){const e=S.pathname.includes("/info-centre"),t=!C&&(!P.includes("home")||!s.isHomePage),n=pt?.some(l=>l==="/"?P==="/":P.startsWith(l));if(t&&(F=!0,(q&&s.isHomePage||n)&&(F=!1)),e&&!d.isMobile){const{hideNavbar:l,hideFooter:a}=ot;pe=l??!0,F=a??!0,we=!0}}if(F=C&&ht?.includes(P)?!0:F,window.isDesignerLayout&&!document.body.classList.contains("page-root")&&(document.body.className+=" page-root"),k?.isEnableAngpowRain&&!Y)if(d.isMobile){const e=u.enableAngpowRain?.mobile?.displayPath??[];e.length>0?U=e.some(t=>P.includes(t)):U=Me()||s.isHomePage}else{const e=u.enableAngpowRain?.web?.displayPath??[];e.length>0?U=e.some(t=>P.includes(t)):U=P!=="/angpow-rain"}function D(e,t=!1){const n=t?X.getByViewType(e,ut):e;return qt(ct,n)}function Dt(){if(s?.settings?.redirectToChrome&&navigator.userAgent.includes("Line")&&eo){const t=window.location;window.location.href=`intent://${t.host}${t.pathname}${t.search}#Intent;scheme=http;package=com.android.chrome;end`}}function Ot(e,t,n){const l=r.location.pathname,a=["standard-normal-font-size"];return x?.showSideNavBar&&a.push("flexi-content-container"),window.isDesignerLayout?a.push("page--root mobileTopMargin"):a.push("body-content-container"),t?a.push(e?"mobileTopMargin-home-fixed":"mobileTopMargin-fixed"):e||(n.includes(l)?a.push("mobileTopMargin-navTitle"):(l.includes("/myaccount")&&a.push("m-settings-page"),l.includes("home")||l==="/"?a.push("mobileTopMargin-home"):(l.indexOf("deposit-liteapp")===-1&&l.indexOf("transfer-liteapp")===-1&&a.push("mobileTopMargin"),l.includes("download")&&a.push("mobileTopMargin-download"),(l.includes("lucky-wheel-landing-liteapp")||l.includes("angpow-rain-liteapp"))&&a.push("liteappPadding")),window.m_navbarTemplate&&window.m_navbarTemplate==="navbar4"&&I.mobileTitle!==""&&a.push("mobileDoubleTopMargin-home"))),a.join(" ")}function jt(){window.SPL_Content.getPortalContentCache("external-style").then(t=>{if(document.getElementById("external-style")||!t)return;const n=D(t,!0),l=e(n),a=document.head||document.getElementsByTagName("head")[0],w=document.createElement("style");w.id="external-style",w.styleSheet?w.styleSheet.cssText=l:w.appendChild(document.createTextNode(l)),a.appendChild(w)});function e(t){let n=JSON.stringify(t);return n=n.replace("{","").replace(/.$/,""),Z.replaceAll(Z.replaceAll(Z.replaceAll(Z.replaceAll(n,'",',";"),"},","}"),'"',""),":{","{")}}function Bt(){const e=f(r,"portal.settings.percentageToShowScrollTop");window.addEventListener("scroll",()=>{const t=document.body.scrollTop||document.documentElement.scrollTop,n=e?t/document.body.clientHeight>=e:t>0;g(n)})}function Wt(){to({props:{language:L,user:R,luckyWheel:ue,dispatch:c}}).then(e=>{e&&e.luckyWheelSettingId&&c(Ie.setLuckyWheelisEnabled(!0))})}function Vt(){const e=B(r,"portal.settings.features.enableLuckyWheel.closebtn.action");c(Ie.setLuckyWheelisEnabled(!1)),e?.type==="close"&&e?.duration&&e?.unit&&(window.SPL_LiteApp.sendHideLuckyWheel(),window.SPL_Cookie.setCookie("hideLuckyWheel",!0,e.duration))}function Me(){var t=window.location.pathname.split("/"),n="",l=!1;t.length>1&&t[1].length===5&&t[1].indexOf("-")===2&&(l=!0,t.splice(1,1));for(var a=0;a<t.length;a++)l===!0&&a===0||(n+="/"+t[a]);const w=B(A,"settings.baseRoute.Home.path");return Array.isArray(w)?w.some(v=>n===v):n==="/"||n==="/home"||n===w}i.useEffect(()=>{Dt(),s&&s.settings&&s.settings.features&&(s.settings.features.enableScrollToTopIcon&&Bt(),f(s,"settings.features.navbarSettings.disallowedRegistration")&&window.location.pathname.includes("register")&&r.history.push("/"));let e=window.location.search;if(e){let n=new URLSearchParams(e),l=n.get("isDownload"),a=n.get("isTransferPage");l&&(X.toggleDialog({state:h,setState:y,props:r},"download"),window.history.replaceState("","","/home")),a&&(R.isLogin?r.history.push("/myaccount/transfer"):(c(W.showLoginAlert(!0)),window.history.replaceState("","","/home")))}const{isCallApiDepositWithDrawalDecimal:t}=r.flagsmith?.depositCashmarketApi||{};t||c(ae.updateDepositWithdrawDecimalSettings()),Ze&&jt()},[]),i.useEffect(()=>{c(Io(s?.settings))},[c,s?.settings,M]),i.useEffect(()=>{const e=r.location.pathname.includes("/myaccount"),{isCallApiDepositWithDrawalDecimal:t}=r.flagsmith?.depositCashmarketApi||{};
1!me.current&&e&&t&&(me.current=!0,c(ae.updateDepositWithdrawDecimalSettings()))},[r.location]),i.useEffect(()=>{const e=()=>{if(!p?.portalSettings?.telegram?.telegramFrameUrl)return;const n=document.createElement("iframe");n.style.display="none",n.loading="eager",n.title="Preloaded Telegram Iframe",n.id="telegram-iframe",n.src=p?.portalSettings?.telegram?.telegramFrameUrl,document.body.appendChild(n)};f(p?.portalSettings?.features?.externalSocialMedia?.telegram)&&e()},[p?.portalSettings?.features?.externalSocialMedia?.telegram,p?.portalSettings?.telegram,L?.currencyLang]),i.useEffect(()=>{ie&&Wt()},[r.language,ie]),i.useEffect(()=>{(async()=>{const{currentStage:t}=await oo(),l=(await c(So())).payload?.announcementList||[];if(!t)return;const a=S.pathname.split("/").filter(Boolean),v=a.length===0||a.some(Q=>Q in t),j=l[0]?.multiAnnouncements?Ne.MULTI_ANNOUNCEMENT:Ne.ANNOUNCEMENT;v&&!V?.items?.[j]&&l?.length>0&&(c(bo("RESET")),c(Po({item:j,isVisible:!0})))})()},[S.pathname]);const xe=i.useRef(!1);i.useEffect(()=>{H.processedBaseMenuSettings.subCategoryMenus&&s?.settings?.features?.enableAppDownloadV2&&!xe.current&&(c(yo()),xe.current=!0)},[s?.settings?.features?.enableAppDownloadV2,H.processedBaseMenuSettings.subCategoryMenus]),i.useEffect(()=>{K.hybridLogin&&!d.isMobile&&(/^\/login/.test(S.pathname)?c(W.showCustomLoginModal(!0)):c(W.showCustomLoginModal(!1))),J.hybridRegister&&!d.isMobile&&(/^\/registersuccess/.test(S.pathname)?c(W.showCustomRegisterModal("success")):/^\/register/.test(S.pathname)?c(W.showCustomRegisterModal(!0)):c(W.showCustomRegisterModal(!1)))},[K.hybridLogin,J.hybridRegister,d.isMobile,S.pathname]),i.useEffect(()=>{const{portal:e,history:t}=r,n=w=>{const v=d.viewType,O=w?.[v],j=D(O,!1),Q=S.pathname,Fe=j?Q in j:!1,Ht=Fe?j[Q]:"";return{shouldRedirect:Fe,targetLandingPage:Ht}},{shouldRedirect:l,targetLandingPage:a}=n(e?.settings?.redirectConfig);l&&a&&t.push(a)},[S.pathname]),i.useEffect(()=>{if(p?.portalSettings?.registerPostBackInfo){const t=new URLSearchParams(S.search).get("ss_member_id");t&&window.SPL_Cookie.setCookie("ss_member_id",t,3)}},[p?.portalSettings?.registerPostBackInfo,S]),i.useEffect(()=>{const e=window.SPL_Cookie.getCookie("EVENT_POSTBACK_PARAMS_ACTION");!N&&e===ke.LOGOUT&&!r?.portal?.settings?.disablePixelPostback&&c($t({eventNames:e})),performance.getEntriesByType("navigation")[0].type==="navigate"&&N&&Object.keys(ge).length&&c(Kt(ke.OPENBROWSER))},[N,ge]);const Ut=i.useMemo(()=>(Ce||[]).map(e=>{const{key:t,path:n,isExact:l,isPrivateRoute:a,componentKey:w}=e||{};let v=t,O=w;return/^\/login/g.test(n)&&K.hybridLogin===!0&&(v="home",O="home"),/^\/register/g.test(n)&&J.hybridRegister===!0&&(v="home",O="home"),o.jsx(We,{path:n,exact:l,componentKey:O,isPrivate:a,isWeb:d&&d.viewType==="web",dispatch:c},v)}),[Ce]);return o.jsxs(i.Fragment,{children:[o.jsx(Eo,{}),U&&_(Vo,{})(),Ve&&!se&&_(Uo,{})(),Tt&&_(zo,{})(),z&&o.jsx(io,{}),Je&&!dt&&_(jo,{})(),re?.page&&o.jsx(Mo,{}),_(Wo,{})(),!se&&ie&&ue?.isEnabled&&P.indexOf("/lucky-wheel-landing")<=-1&&$&&!Y&&o.jsx(Bo,{closeFloatingLuckyWheel:Vt}),se&&o.jsx(ao,{}),Y&&_(Ho,{show:Y})(),(C&&!we||Nt)&&o.jsx(ro,{showSidebar:Ue,sideBar:ze,sideBarSubMenuShow:Ge,showSideBarSubMenuMenu:He}),nt&&N&&o.jsx(lo,{}),R?.isLogin&&o.jsx(qo,{}),o.jsx(Jt.ToastContainer,{position:ft,autoClose:1e4,hideProgressBar:!0,newestOnTop:!0,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!1,draggable:!1,pauseOnHover:!0}),!pe&&o.jsx(To,{isLogin:R.isLogin}),o.jsxs("div",{className:Ot(C,Ke,mt),style:{background:C?he!=null&&"url("+he+")":fe!=null&&"url("+fe+")"},children:[Ae&&o.jsx(co,{downloadDialogProps:ne,enableLogoMorph:st,enableLabelColorMorph:it}),o.jsxs(vo,{ignoreScrollToTopPath:Qe,children:[A.settings&&A.settings.baseRoute?o.jsx(o.Fragment,{children:o.jsxs(E.Switch,{children:[Object.keys(A.settings.baseRoute).map(e=>{const t=A.settings.baseRoute[e];if(t)return o.jsx(We,{path:t.path,exact:t.massageIsExact,componentKey:t.key,isPrivate:t.isPrivateRoute,isWeb:d&&d.viewType==="web",dispatch:c},t.key)}),Me()||!ye?o.jsx(E.Redirect,{from:"*",to:{pathname:A.settings.defaultRoute,search:window.location.search}}):o.jsx(E.Route,{path:"*",component:Be})]})}):o.jsxs(E.Switch,{children:[Ut,ye&&!s?.isHomePage&&o.jsx(E.Route,{path:"*",component:Be}),G?o.jsx(E.Redirect,{from:"*",to:{pathname:"/home-landing",search:window.location.search}}):q?o.jsx(E.Redirect,{from:"*",to:{pathname:"/",search:window.location.search}}):o.jsx(E.Redirect,{from:"*",to:{pathname:"/home",search:window.location.search}})]}),lt&&!R.isLogin&&_(Go,{})()]})]}),!F&&!Rt&&!window.isDesignerLayout&&o.jsx("footer",{className:bt,children:o.jsx(Ao,{})}),It===!0?o.jsx(Lo,{}):null,h.downloadPopupIsShow&&!de&&o.jsx(_o,{...ne}),de&&o.jsx(xo,{...ne}),s.showLoginAlert&&o.jsx(Co,{}),K?.customLoginTemplate===!0&&s.showCustomLoginModal&&_(No,{visible:s.showCustomLoginModal})(),J?.hybridRegister===!0&&s.showCustomRegisterModal&&_(Do,{visible:s.showCustomRegisterModal})(),s.showContactForGameAccountAlert&&_(Oo,{})(),s.isLoading&&o.jsx(Ro,{className:"vw-100 vh-100"}),Pe&&T&&o.jsx("div",{className:`back-top-box ${C?"":"mobile-back-top-box"}`,onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:B(Pe,"useImg")?o.jsx(Yt,{src:"/public/html/images/home_img/back_top.png",visibleByDefault:!0}):o.jsx(Qt,{category:"SVGMaster",name:"up-arrow"})}),s.isHomePage&&At&&o.jsx(uo,{})]})}
1,Hn=E.withRouter(no(Ko));export{Hn 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.