PageSourceSearch

https://www.bt8mya.com/assets/10.10.7/FloatingSingleMenu.1a01e21d.1791295314721.js

js bt8mya.com collected 2026-10-07 16:57:28 UTC 14,141 bytes, 1 lines download raw bytes

1var ge=Object.defineProperty,_e=Object.defineProperties;var Le=Object.getOwnPropertyDescriptors;var oe=Object.getOwnPropertySymbols;var be=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable;var re=(e,o,i)=>o in e?ge(e,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[o]=i,g=(e,o)=>{for(var i in o||(o={}))be.call(o,i)&&re(e,i,o[i]);if(oe)for(var i of oe(o))Pe.call(o,i)&&re(e,i,o[i]);return e},j=(e,o)=>_e(e,Le(o));import{l as _,r as b,M as Ie,A as n,_ as me,o as le}from"./index.5036f488.1791295314721.js";import{r as ie}from"./agentation.8cf2c154.1791295314721.js";import{a as Ee}from"./game-hook.c3256379.1791295314721.js";import{ct_getContactList as ve}from"./contact-util.619af795.1791295314721.js";import{a as ke}from"./general-hook.1d3050ab.1791295314721.js";import ne from"./Picture.4334ee7e.1791295314721.js";import{l as Ae}from"./loadable.897437bf.1791295314721.js";import{F as N}from"./FloatingContainer.164292f0.1791295314721.js";import{a as Ne}from"./luckyWheelModules.fef33147.1791295314721.js";import{g as Me}from"./useLuckyWheel.419bea71.1791295314721.js";import{u as Re}from"./ms-hook.dd8a1dba.1791295314721.js";import"./oddsFeedModules.2db0cfa1.1791295314721.js";import"./dayjs.min.79cbf170.1791295314721.js";import"./staticContentModules.1e6f8d24.1791295314721.js";import"./store.3a4fb1fb.1791295314721.js";import"./floatingNotification.constant.27687fe7.1791295314721.js";import"./matchPredictionModules.e0d433fe.1791295314721.js";import"./promotionModules.c90ebc4c.1791295314721.js";import"./index.e58e51d5.1791295314721.js";import"./modal.action.50edd8d0.1791295314721.js";import"./currency-util.600a6fa9.1791295314721.js";const je=e=>e!=="en"&&e!=="zh-CN"?"-".concat(e):e==="zh-CN"?"-cn":"",Te=()=>{var o;const e=(o=window.defaultSettings)==null?void 0:o.luckywheel;return Array.isArray(e)?(e==null?void 0:e[0])||{}:e&&typeof e=="object"?e:{}},W=(e,{key:o,countryLanguageKey:i,viewType:p,currentView:t})=>{if(!e)return null;if(typeof e=="string")return e;const f=(e==null?void 0:e[t])||(e==null?void 0:e[p])||null;return(f==null?void 0:f[i])||(f==null?void 0:f[o])||(f==null?void 0:f.default)||(e==null?void 0:e[i])||(e==null?void 0:e[o])||(e==null?void 0:e.default)||null},xe=()=>{var P,L;const{key:e,countryLanguageKey:o}=_.useSelector(c=>(c==null?void 0:c.language)||{}),{isMobile:i,viewType:p}=_.useSelector(c=>(c==null?void 0:c.screen)||{}),t=i?"mobile":"web",[f,C]=b.useState(null),u=Te(),h=Re(Ie.LUCKY_WHEEL)?(L=(P=window.portalSettings)==null?void 0:P.features)==null?void 0:L.enableLuckyWheel:null;return b.useEffect(()=>{let c=!0;return(async()=>{var m;try{const{floatingLuckyWheelImg:I}=await Me(),w=await Ne((u==null?void 0:u.set)||"s1");c&&C(((m=w==null?void 0:w.floatingLuckyWheelImg)==null?void 0:m[t])||I)}catch(I){console.error(I)}})(),()=>{c=!1}},[t,u==null?void 0:u.set]),b.useMemo(()=>{const c={key:e,countryLanguageKey:o,viewType:p,currentView:t};return W(h==null?void 0:h.customFloatingLuckyWheelImg,c)||W(u==null?void 0:u.floatingIconImage,c)||W(f,c)||"/public/html/default_whitelabel/shared-image/lucky_wheel/s1/floating-lucky-wheel".concat(je(e),".gif")},[o,t,h==null?void 0:h.customFloatingLuckyWheelImg,e,u==null?void 0:u.floatingIconImage,f,p])},Oe="_floatingSingle_pimoh_1",We="_floatingContact_pimoh_7",$e="_singleWrapper_pimoh_36",Ve="_imgContainer_pimoh_36",He="_floatingPrediction_pimoh_39",qe="_floatingImage_pimoh_73",a={floatingSingle:Oe,floatingContact:We,"floatingContact--telegram":"_floatingContact--telegram_pimoh_17","floatingContact--whatsapp":"_floatingContact--whatsapp_pimoh_22","floatingContact--rtp":"_floatingContact--rtp_pimoh_27","floatingContact--line":"_floatingContact--line_pimoh_32",singleWrapper:$e,imgContainer:Ve,floatingPrediction:He,floatingImage:qe},Ue=Ae(()=>me(()=>import("./angpow-rain-floating.f1e0e447.1791295314721.js"),["assets/10.10.7/angpow-rain-floating.f1e0e447.1791295314721.js","assets/10.10.7/index.5036f488.1791295314721.js","assets/10.10.7/agentation.8cf2c154.1791295314721.js","assets/10.10.7/agentation.06ce37f5.1791295314721.css","assets/10.10.7/angpowRainModules.76c4847a.1791295314721.js","assets/10.10.7/isNumber.c23730e1.1791295314721.js","assets/10.10.7/angpow-rain-floating.4b02255d.1791295314721.css"])),$={LUCKY_WHEEL:{id:"luckyWheel",type:"luckyWheel",img:"/public/html/default_whitelabel/shared-image/lucky_wheel/s1/floating-lucky-w
1heel.gif",href:"/lucky-wheel-landing",hideInCurrentPage:!0},ANGPOW_RAIN:{id:"angpowRain",type:"angpowRain",href:"/angpow-rain",hideInCurrentPage:!0},DAILY_MISSION:{id:"diaryMission",type:"diaryMission",img:"/public/html/images/home_img/daily-mission-floating.gif",href:"/myaccount/mission-diary"},INSTANT_REBATE:{id:"instantRebate",type:"link",img:"/public/html/images/home_img/instant-rebate-floating.gif",href:"/myaccount/rebate"},GAME_SLOT:{id:"sMahPheb",type:"game",img:"/public/html/images/home_img/sMahPheb.gif",gameParams:{provider:"NS",gameCode:"sMahPheb",category:"SL"}},REFERRAL:{id:"referral",type:"referral",img:"/public/html/images/home_img/referral-floating.gif",href:"/myaccount/referral"},LOTTO_ONLINE:{id:"lottoOnline",type:"link",img:"/public/html/images/eday-en-th.gif",href:"/lottery/ed"},PREDICTION:{id:"prediction",type:"prediction",img:"/public/html/default_whitelabel/template/images/prediction/predict-floating-icon.png",href:"/match-prediction"}},Ge=768,Ye=300,ze=100,v=new Set;let te=!1,A=null,q=0,V=!1,H,T=!1,U=!1,G;const Be=e=>typeof e=="string"?e.trim():typeof(e==null?void 0:e.href)=="string"?e.href.trim():typeof(e==null?void 0:e.url)=="str
1ing"?e.url.trim():"",se=e=>{v.forEach(({onVisibilityChange:o})=>o(e))},Y=()=>{if(!window.__ssc)return;const e=typeof window.__ssc.setting=="object"&&window.__ssc.setting!==null?window.__ssc.setting:{};T||(U=Object.prototype.hasOwnProperty.call(e,"hideIcon"),G=e.hideIcon,T=!0),window.__ssc.setting=j(g({},e),{hideIcon:!0})},Ke=()=>{if(!T||!window.__ssc)return;const e=typeof window.__ssc.setting=="object"&&window.__ssc.setting!==null?g({},window.__ssc.setting):{};U?e.hideIcon=G:delete e.hideIcon,window.__ssc.setting=e,T=!1,U=!1,G=void 0},z=()=>{var e;return te?!0:typeof((e=window.ssq)==null?void 0:e.push)!="function"?!1:(window.ssq.push("onOpenChat",()=>se(!0)),window.ssq.push("onCloseChat",()=>se(!1)),window.ssq.push("onReady",()=>{v.size&&Y()}),te=!0,Y(),!0)},B=()=>{A!==null&&(window.clearInterval(A),A=null,q=0)},De=()=>{if(z()){B();return}A===null&&(A=window.setInterval(()=>{q+=1,(z()||q>=ze)&&B()},Ye))},ae=()=>{var e;return window.innerWidth<=Ge&&typeof((e=window.ssq)==null?void 0:e.push)=="function"?(z(),window.ssq.push("chatOpen"),!0):typeof window.openLiveChatPublicDefault=="function"?(window.openLiveChatPublicDefault(),!0):!1},Xe=e=>{const o={onVisibilityChange:e},i=v.size===0;return v.add(o),i&&(V=Object.prototype.hasOwnProperty.call(window,"openLiveChatPublicCustom"),H=window.openLiveChatPublicCustom,window.openLiveChatPublicCustom=ae),Y(),De(),()=>{v.delete(o),!v.size&&(B(),Ke(),window.openLiveChatPublicCustom===ae&&(V?window.openLiveChatPublicCustom=H:delete window.openLiveChatPublicCustom),V=!1,H=void 0)}},Je=(e,o)=>{if(e==="CUSTOM_LIVECHAT")return{id:e.toLowerCase(),type:e.toLowerCase(),img:(o==null?void 0:o.image)||(o==null?void 0:o.img)||null,href:(o==null?void 0:o.customContactList)||(o==null?void 0:o.link)||null,requireLogin:o==null?void 0:o.requireLogin,disableCloseIconVisual:o==null?void 0:o.hideCloseVisual};if(["TELEGRAM","LINE","WHATSAPP"].includes(e)||o!=null&&o.isRenderAsContact)return{id:e.toLowerCase(),type:e.toLowerCase(),img:(o==null?void 0:o.image)||null,href:(o==null?void 0:o.link)||null};const i=e.startsWith("GAME_SLOT")?"GAME_SLOT":e,p=$==null?void 0:$[i];if(!p&&!(o!=null&&o.isAdditionalItem))return null;const t=g(g({},p),o!=null&&o.isAdditionalItem?o:{});return o!=null&&o.image&&(t.img=o.image),o!=null&&o.link&&(t.href=o.link),o!=null&&o.gameParams&&(t.gameParams=o.gameParams),(o==null?void 0:o.requireLogin)!==void 0&&(t.requireLogin=o.requireLogin),(o==null?void 0:o.hideCloseVisual)!==void 0&&(t.disableCloseIconVisual=o.hideCloseVisual),e==="LUCKY_WHEEL"&&(o!=null&&o.luckyWheelFloatingImage)&&!(o!=null&&o.image)&&(t.img=o.luckyWheelFloatingImage),t},Po=({menuType:e,angpowRainSettings:o,angpowVisible:i,customDefaultPosition:p,style:t})=>{var J,Q,Z,F,y,S;const f=_.useDispatch(),C=ie.useHistory(),u=Ee(),{pathname:h}=ie.useLocation(),P=_.useSelector(s=>{var d;return(d=s==null?void 0:s.user)==null?void 0:d.isLogin}),L=_.useSelector(s=>{var d;return(d=s.screen)==null?void 0:d.isMobile}),{key:c,currencyLang:m,countryLanguageKey:I}=_.useSelector(s=>(s==null?void 0:s.language)||{}),w=ke(),E=_.useSelector(s=>{var d;return(d=s.predictionReducer)==null?void 0:d.floatingIcon}),fe=b.useMemo(()=>{var s;return((s=E==null?void 0:E.settingStatus)==null?void 0:s.toUpperCase())==="ACTIVE"},[E==null?void 0:E.settingStatus]),r=((J=window==null?void 0:window.customFloatingIconSettings)==null?void 0:J[e])||{},[ue,x]=b.useState("");b.useEffect(()=>{if(!L||e!=="CUSTOM_LIVECHAT"||!I)return;let s=!0;const d=I.toLowerCase().replace(/_/g,"-");return x(""),ve({countryLanguageKey:d}).then(k=>{s&&x(Be(k==null?void 0:k.LiveChat))}).catch(()=>{s&&x("")}),()=>{s=!1}},[I,L,e]);let M=null;r!=null&&r.img&&(typeof r.img=="object"&&r.img[m]&&(M=((Q=r.img[m])==null?void 0:Q[c])||((Z=r.img[m])==null?void 0:Z.en)),M||(M=w(r.img)));const ce=w(r==null?void 0:r.link)||null,pe=(r==null?void 0:r.gameParams)||null,K=w(r==null?void 0:r.isRenderAsContact),he=r==null?void 0:r.hideCloseVisual,de=xe(),l=Je(e,j(g({},r!=null&&r.isAdditionalItem?r:{}),{luckyWheelFloatingImage:de,image:M,link:ce,gameParams:pe,isRenderAsContact:K,hideCloseVisual:he,requireLogin:(F=r==null?void 0:r.requireLogin)!=null?F:!1,customContactList:ue})),Ce=window.location.pathname;if(!l||l.hideInCurrentPage&&Ce.includes(l.href))return null;const R=()=>
1{if(l){if(l.requireLogin&&!P){f(le.showLoginAlert(!0));return}switch(l.type){case"game":u(l.gameParams);break;case"diaryMission":case"referral":P?C.push(l.href):f(le.showLoginAlert(!0));break;case"luckyWheel":l!=null&&l.href&&C.push(l.href);break;case"telegram":case"line":case"whatsapp":l!=null&&l.href&&window.open(l.href,"_blank","noopener,noreferrer");break;case"custom_livechat":{!(typeof window.openLiveChatPublicCustom=="function"&&window.openLiveChatPublicCustom())&&(l!=null&&l.href)&&window.open(l.href,"_blank","noopener,noreferrer");break}default:l.href&&(l.href.startsWith("http")?window.open(l.href,"_blank","noopener,noreferrer"):C.push(l.href))}}},O=w(r==null?void 0:r.closeBtnStyle)||{},we=w(r==null?void 0:r.style)||{},D=g(g({},t),we),X=r==null?void 0:r.edgeMargin;if(l.type==="angpowRain")return i?n.jsx(N,{id:"floating-".concat(l.id),className:a.floatingSingle,disableUseLocalStorageLocated:!0,defaultPosition:p,style:t,children:n.jsx(Ue,{angpowRainSettings:o,angpowVisible:i,showCloseButton:!1,customCssVar:{y:"auto",edge:"auto",w:"6.3%"},posDetection:!1})}):null;if(["telegram","line","whatsapp"].includes(l.type)||K)return n.jsx(Qe,{menu:l,onClick:R,customDefaultPosition:p,closeBtnStyle:O});if(l.type==="prediction"){const s=w((S=(y=window.portalSettings)==null?void 0:y.features)==null?void 0:S.hideFloatingPredictionIconOnPaths),d=s==null?void 0:s.some(k=>{var ee;return(ee=h==null?void 0:h.startsWith)==null?void 0:ee.call(h,k)});return!fe||d?void 0:n.jsx(Ze,{menu:l,onClick:R})}else if(l.type==="custom_livechat")return L?n.jsx(Fe,{menu:l,onClick:R,customDefaultPosition:p,closeBtnStyle:O,style:D,edgeMargin:X}):null;return n.jsx(N,{id:"floating-".concat(l.id),className:a.floatingSingle,disableUseLocalStorageLocated:!0,defaultPosition:p,style:D,disableCloseIconVisual:l.disableCloseIconVisual,closeBtnStyle:O,edgeMargin:X,children:n.jsx("div",{className:"singleWrapper ".concat(a.singleWrapper),children:n.jsx("div",{className:"imgContainer ".concat(a.imgContainer),onClick:R,children:n.jsx("img",{src:l.img,alt:l.id,className:a.floatingImage,draggable:!1})})})})},Qe=({menu:e,onClick:o,customDefaultPosition:i,closeBtnStyle:p})=>{if(!(typeof(e==null?void 0:e.img)!="string"&&typeof(e==null?void 0:e.link)!="str
1ing"))return n.jsx(N,{id:"floating-".concat(e.id),className:"".concat(a.floatingSingle," ").concat(a.floatingContact,"  ").concat(a==null?void 0:a["floatingContact--".concat(e.type)]),disableUseLocalStorageLocated:!0,disableDragFeature:!0,defaultPosition:i,closeBtnStyle:p,children:n.jsx("div",{className:"singleWrapper ".concat(a.singleWrapper),children:n.jsx("div",{className:a.imgContainer,onClick:o,children:n.jsx(ne,{src:e.img,alt:e.id,className:a.floatingImage,draggable:!1})})})})},Ze=({menu:e,onClick:o})=>{const i=_.useSelector(C=>{var u;return(u=C.predictionReducer)==null?void 0:u.floatingIcon}),p={right:"auto",left:20,bottom:10},t="/public/html/default_whitelabel/template/images/prediction/predict-floating-icon.png",f=screen.isMobile?(i==null?void 0:i.mobileIconPath)||t:(i==null?void 0:i.webIconPath)||t;return n.jsx(N,{id:"floating-".concat(e.id),className:"".concat(a.floatingSingle," ").concat(a.floatingPrediction),disableUseLocalStorageLocated:!0,defaultPosition:p,disableCloseIconVisual:e.disableCloseIconVisual,children:n.jsx("div",{className:"singleWrapper ".concat(a.singleWrapper),children:n.jsx("div",{className:"imgContainer ".concat(a.imgContainer),onClick:o,children:n.jsx("img",{src:f,alt:e.id,className:a.floatingImage,draggable:!1})})})})},Fe=({menu:e,onClick:o,customDefaultPosition:i,closeBtnStyle:p,style:t,edgeMargin:f})=>{const C=_.useSelector(L=>{var c;return(c=L.screen)==null?void 0:c.isMobile}),[u,h]=b.useState(!1);if(b.useEffect(()=>{if(!C){h(!1);return}return Xe(h)},[C]),!C||typeof(e==null?void 0:e.img)!="string")return null;const P=u?j(g({},t),{display:"none"}):t;return n.jsx(N,{id:"floating-".concat(e.id),className:"".concat(a.floatingSingle),disableUseLocalStorageLocated:!0,defaultPosition:i,style:P,closeBtnStyle:p,edgeMargin:f,children:n.jsx("div",{className:"singleWrapper ".concat(a.singleWrapper),children:n.jsx("div",{className:"imgContainer ".concat(a.imgContainer),onClick:o,children:n.jsx(ne,{src:e.img,alt:e.id,className:a.floatingImage,draggable:!1})})})})};export{Fe as FloatingCustomLiveChat,Po 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.