1import{l as g,r as p,_ as L,A as s,S as B,O,be as P,o as F}from"./index.cb24fa47.1790666596239.js";import{u as D,r as H}from"./agentation.3e8ef65e.1790666596239.js";import{_ as K}from"./styled-components.browser.cjs.e17006da.1790666596239.js";import{c as I}from"./index.9bdd72e5.1790666596239.js";import{a7 as y,ae as U}from"./store.b019d147.1790666596239.js";import z from"./Picture.b08308fd.1790666596239.js";import{a as q}from"./game-hook.4c9c3278.1790666596239.js";import{a as J}from"./general-hook.cc6630c8.1790666596239.js";import{l as j}from"./loadable.14b24b1f.1790666596239.js";import"./emotion-memoize.esm.f5713a00.1790666596239.js";import"./floatingNotification.constant.27687fe7.1790666596239.js";import"./dayjs.min.2527fb14.1790666596239.js";import"./matchPredictionModules.5077a1fd.1790666596239.js";import"./oddsFeedModules.feb27095.1790666596239.js";import"./promotionModules.b56c876e.1790666596239.js";import"./index.bcdbaaf5.1790666596239.js";const Q=[{id:"home",content:"global:global.menu.home2",link:"/"},{id:"register",content:"global:global.menu.account.join",link:"/register",customImageName:"join",customSVGName:"join"},{id:"login",content:"global:global.menu.account.login",link:"/login",customImageName:"logo",customSVGName:"logo"},{id:"promotion",content:"global:global.menu.promotions",link:"/promotion",customSVGName:"promo"},{id:"promo",content:"global:global.menu.promo",link:"/promotion",customSVGName:"promo"},{id:"funds",content:"global:global.sidebar.funds.heading2",link:"/myaccount/funds"},{id:"account",content:"global:global.sidebar.account.heading2",link:"/myaccount",diffKey:"myaccount"},{id:"withdraw",content:"global:global.menu.account.withdraw",link:"/myaccount/withdraw"},{id:"referral",content:"global:menuItem.referral",link:"/myaccount/referral"},{id:"deposit",content:"global:global.menu.deposit",link:"/myaccount/deposit"},{id:"rebate",content:"rebate:rebate.rebate",link:"/myaccount/rebate"},{id:"livechat",content:"global:global.menu.livechat"},{id:"mission",content:"global:global.menu.mission",link:"/myaccount/mission-diary"},{id:"menu",content:"global:global.menu.menu",customSVGName:"menu"},{id:"sports",content:"global:global.menu.sportsbook3"},{id:"download",content:"global:global.menu.mobile",link:"/download"},{id:"vip",content:"global:global.menu.vip",link:"/vip"},{id:"myvip",content:"global:global.breadcums.myvip",link:"/myaccount/myvip"},{id:"transfer",content:"global:global.breadcums.transfer",link:"/myaccount/transfer"}],W=Q.reduce((n,t)=>(n[t.id.toLowerCase()]=t,n),{}),k=(n,t={})=>n.map(c=>{const l=c.toLowerCase(),r=W[l];if(!r)return null;const m=t[r.id]||t[r.id.toLowerCase()];return m?{...r,...m}:r}).filter(Boolean),X=()=>{const n=g.useSelector(u=>u?.user),t=J(),{isLogin:c}=n,l=t(window.portalSettings?.bottomNavbarSettings?.beforeLoginList)||["home","register","login","promotion","referral"],r=t(window.portalSettings?.bottomNavbarSettings?.afterLoginList)||["home","funds","account","withdraw","referral"],m=t(window.portalSettings?.bottomNavbarSettings?.afterLoginListConfig),d=t(window.portalSettings?.bottomNavbarSettings?.beforeLoginListConfig),f=k(l,d),v=k(r,m);return{btmMenuList:p.useMemo(()=>c?v:f,[c])}},Y="_bottomNavbarContainer_15u3j_1",Z="_btmNav_15u3j_63",oo="_navIcon_15u3j_80",to="_svgMaskIcon_15u3j_91",no="_navText_15u3j_109",eo="_svgRendererIcon_15u3j_124",ao="_middleLine_15u3j_147",a={bottomNavbarContainer:Y,btmNav:Z,navIcon:oo,svgMaskIcon:to,"btmNav--login":"_btmNav--login_15u3j_98",navText:no,"btmNav--active":"_btmNav--active_15u3j_112",svgRendererIcon:eo,middleLine:ao},so=j(()=>L(()=>import("./deferred-navbar-background-video.2b0b0b5d.1790666596239.js"),["assets/10.9.29/deferred-navbar-background-video.2b0b0b5d.1790666596239.js","assets/10.9.29/index.cb24fa47.1790666596239.js","assets/10.9.29/loadable.14b24b1f.1790666596239.js"])),ro=j(()=>L(()=>import("./hot-new-label.688d2705.1790666596239.js"),["assets/10.9.29/hot-new-label.688d2705.1790666596239.js","assets/10.9.29/index.cb24fa47.1790666596239.js","assets/10.9.29/Picture.b08308fd.1790666596239.js","assets/10.9.29/hot-new-label.36e850e5.1790666596239.css"])),_=window.portalSettings?.bottomNavbarSettings,C=_?.isSVGMenu,ko=()=>{const{t:n}=D(),t=g.useDispatch(),c=H.useHistory(),l=g.useSelector(o=>o?.user),r=g.useSelector(o=>o?.portal),m=g.useSelector(o=>o?.language),d=g.useSelector(o=>o?.menuProps),f=m?.countryLanguageKey.toLowerCase().replace(/_/g,"-"),[v,w]=p.useState(null),{btmMenuList:u}=X(),x=q();if(p.useEffect(()=>{u.some(e=>e.id==="livechat")&&(async()=>{const{ct_getContactList:e}=await L(()=>import("./contact-util.08fa97db.1790666596239.js"),["assets/10.9.29/contact-util.08fa97db.1790666596239.js","assets/10.9.29/index.cb24fa47.1790666596239.js","assets/10.9.29/staticContentModules.96d36cc3.1790666596239.js"]),b=await e({countryLanguageKey:f});w(b)})()},[u]),Array.isArray(u)&&u.length===0)return;const S=o=>{o.includes("/myaccount")&&!l?.isLogin?t(F.showLoginAlert(!0)):c.push(o)},i=(()=>{let o=(location?.pathname||"").replace(/\/+$/,"")||"/";return/^\/[a-z]{2}-[a-z]{2}$/i.test(o)?"/":o})(),E=(()=>
1!i||i==="/"||i==="/home"?"home":(i.split("/").filter(Boolean).pop()||"home").toLowerCase())(),G=o=>{const e=o?.diffKey||o.id;return d.showSideNavBar&&e==="menu"?!0:d.showSideNavBar?!1:e==="deposit"?i.includes(o?.link)||i.includes("/myaccount/deposit"):e==="withdraw"?i.includes("/myaccount/withdraw"):e==="mission"?i.includes("/myaccount/mission-diary"):e==="promo"?i.includes("/promotion"):(e||"").toLowerCase()===E},$=()=>{v?.LiveChat&&window.open(v?.LiveChat,"_blank","width=500,height=700,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no")},M=o=>{const e={props:{user:l,portal:r}};if(o?.launchGame){x(o?.launchGame);return}if(o.id!=="menu"&&d.showSideNavBar&&t(y.toggleSideNavBar(!1)),!P(e,o)){t(U(!0));return}switch(o.id){case"livechat":if(o.link)if(V(o.link)){window.open(o.link);return}else{S(o.link);return}return $();case"menu":return t(y.toggleSideNavBar(!d.showSideNavBar));default:if(V(o.link)){window.open(o.link);return}else{S(o.link);return}}};return s.jsxs("div",{className:a.bottomNavbarContainer,"data-is-login":l?.isLogin,children:[s.jsx(so,{}),(u||[]).map((o,e)=>{const b=G(o),N=C?o?.customSVGName:o?.customImageName,R=_?.useActiveImageSuffix&&b?"-active":"",h=`/public/html/images/home_img/ftrmenu-${N||o.id}${R}`,A=o?.isNewProvider||o?.isHotProvider||o?.isVpnProvider,T=co(o,b,`${h}.webp`);return s.jsxs(p.Fragment,{children:[s.jsxs(io,{className:I("btmNav",a.btmNav,`btmNav--${o.id}`,a[`btmNav--${o.id}`],{[`btmNav--active ${a["btmNav--active"]}`]:b}),onClick:()=>M(o),$style:o?.style,children:[o?.customSVGRenderer?s.jsx(B,{className:a.svgRendererIcon,category:o?.customSVGRenderer?.category,name:`${o?.customSVGRenderer?.name||""}${o?.customSVGRenderer?.customName??o?.id}`,alt:o?.name}):o?.customSVGMask?s.jsx("span",{className:`navIcon ${a.navIcon} ${a.svgMaskIcon}`,style:{"--bottom-navbar-svg-mask":`url("${o.customSVGMask}")`},role:"img","aria-label":o?.name||o?.id}):C&&o.id!=="login"&&!o?.customImage?s.jsx(O,{src:`${h}.svg`,className:`navIcon ${a.navIcon}`}):s.jsx(z,{src:T,onErrorFallbackSrc:o?.customImage??`${h}.png`,alt:`btm-nav- + ${o.id}`,className:I("navIcon",a.navIcon,N||o.id,a?.[N||o.id]),style:o?.customStyle}),s.jsx("div",{className:a.navText,children:(o?.translate&&n(o?.translate))??o?.contentString??n(o.content,o.id)}),A&&s.jsx(ro,{showHotNewLabel:!0,showHotNewFlag:"text",t:n,menu:o})]}),_?.showMiddleLine&&e+1<u.length&&s.jsx("div",{className:a.middleLine})]},`bottom-navbar-${o.id}`)})]})},io=K.div` 2 &.btmNav { 3 ${n=>({...n.$style})} 4 } 5`;function V(n){try{const t=new URL(n);return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}}function co(n,t,c){return(t?n?.customImageOv:null)??n?.customImage??c}export{ko 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.