PageSourceSearch

https://www.aw8big.com/assets/10.9.25/floating-icons-slider.7f2ebb6c.1790259279201.js

js aw8big.com collected 2026-09-28 18:02:08 UTC 5,608 bytes, 1 lines download raw bytes

1import{l as r,r as g,m as y,A as l,aE as z,q as $,o as N,n as J,bA as A}from"./index.02f3d9ef.1790259279201.js";import{S as Q}from"./index.5fdc31f4.1790259279201.js";import{r as P}from"./agentation.c08165d4.1790259279201.js";import{D as X}from"./draggable-floating-icon.76db1c4c.1790259279201.js";import{AngpowContentIcon as Y}from"./floating-angpow-icon.c38e91ac.1790259279201.js";import{LuckyWheelIconImageTemplate3 as Z,LuckyWheelIconImage as ee}from"./lucky-wheel.c6aaf75f.1790259279201.js";import{u as ne}from"./store.b125d41d.1790259279201.js";import{u as oe}from"./useLuckyWheel.34e6418d.1790259279201.js";import"./index.87112539.1790259279201.js";import"./index.fd9500d7.1790259279201.js";import"./index.c6e7139e.1790259279201.js";import"./emotion-react.browser.esm.223c4a49.1790259279201.js";import"./emotion-memoize.esm.f5713a00.1790259279201.js";import"./countdown-timer.8167e99d.1790259279201.js";import"./index.72ff4508.1790259279201.js";import"./text.eec82939.1790259279201.js";import"./floatingNotification.constant.27687fe7.1790259279201.js";import"./dayjs.min.a261b5dd.1790259279201.js";import"./matchPredictionModules.b9fb72d7.1790259279201.js";import"./oddsFeedModules.b26a1629.1790259279201.js";import"./promotionModules.476c28b7.1790259279201.js";import"./index.81f1c94a.1790259279201.js";import"./modal.action.3c3c0147.1790259279201.js";import"./ms-hook.1fa89411.1790259279201.js";import"./general-hook.97720da2.1790259279201.js";import"./currency-util.966edf9c.1790259279201.js";const R=["leftBanner","rightBanner","justReleasegames","hotgames"],se=["luckyWheel","angpowRain",...R];function te({show:d}){const _=P.useHistory(),x=P.useLocation(),w=r.useSelector(e=>e.language?.countryLanguageKey),p=r.useSelector(e=>e.seamless),i=r.useSelector(e=>e.language),c=r.useSelector(e=>e.screen),C=r.useSelector(e=>e.user),E=r.useSelector(e=>e?.user?.isLogin),u=r.useSelector(e=>e.portal),T=r.useSelector(e=>e?.luckyWheel?.isEnabled),D=r.useSelector(e=>e?.angpowRainReducer?.settingApi),S=r.useSelector(e=>e?.angpowRainReducer?.theme),B=r.useSelector(e=>e?.routeProps),L=r.useDispatch(),{luckyWheelTemplateData:F}=oe(),[b,j]=g.useState([]),[v,M]=g.useState(!0),k=ne(u?.settings?.features?.floatingIconSettings?.slidingFloatingIconsOrder),m=g.useMemo(()=>[...new Set([...k??[],...se])].reduce((n,s,o)=>({...n,[s]:o}),{}),[k]),h=x.pathname;function O(){const n=window.location.pathname.split("/");let s="",o=!1;n.length>1&&n[1].length===5&&n[1].indexOf("-")===2&&(o=!0,n.splice(1,1));for(let t=0;t<n.length;t++)o===!0&&t===0||(s+="/"+n[t]);const a=$(B,"settings.baseRoute.Home.path");return Array.isArray(a)?a.some(t=>s===t):s==="/"||s==="/home"||s===a}const W=(()=>D?.isEnableAngpowRain?c.isMobile?O()||u.isHomePage:h!=="/angpow-rain":!1)(),I=(()=>{const e=y(u?.settings?.features,"enableLuckyWheel.onlyShowOnPage"),n=y(u?.settings?.features,"enableLuckyWheel.disableLuckyWheelPage"),s=h.split("/")[1],o=!(n&&n.some(f=>f===s)),a=!e||e.some(f=>f.includes(s));let t=n?o:a;return T&&h.indexOf("/lucky-wheel-landing")<=-1&&t})(),H=e=>{if(!E&&e.showLoginAlert){L(N.showLoginAlert(!0));return}if(J.isValidUrl(e?.href)){window.open(e?.href,"_blank","noopener,noreferrer");return}if(e.href){_.push(e.href);return}V(e,!1)},V=(e,n)=>{e&&!e.category&&(e.category="SL");let s={domain:window.location.hostname,isMobile:c.isMobile,isFun:n,isMenuMode:!0,isMiniGame:!1,languageKey:i.key,provider:e?.provider,gameCode:e?.gamecode,isSeamless:p&&p.isSeamless,languageCurrency:i.currencyLang},o={isSeamless:p&&p.isSeamless,languageCurrency:i.currencyLang},a=!1;c.viewType==="mobile"&&(a=!0),window.SPL_Provider.startProviderGameV2(s.provider,e.category,i.key,a,n,C.isLogin,t,s,null,o);function t(){L(N.showLoginAlert(!0))}},U=()=>{M(!1)};g.useEffect(()=>{if(!d)return;async function e(){try{const s=(await Promise.all(R.map(o=>window.SPL_Content.getFloatingBannerSideBanner(w,o).then(a=>o==="leftBanner"?a.map(t=>({config:t,type:o})):{config:a,type:o})))).flat().filter(o=>o.config).map(o=>({...o.config,img:A(o.config?.banner?.img||"",[c?.viewType,i?.currencyLang,i?.countryLanguageKey]),href:A(o.config?.href||"",[c?.viewType,i?.currencyLang,i?.countryLanguageKey]),className:"side-banner-icon",order:m[o.type]}));j(s)}catch(n){console.error(n)}}e()},[d,w,m]);const G=g.useMemo(()=>[I&&{href:"/lucky-wheel-landing",className:"lucky-wheel",order:m.luckyWheel},W&&{href:"/angpow-rain",className:"angpow-rain",order:m.angpowRain}
1,...b].filter(Boolean).sort((e,n)=>e.order-n.order),[I,W,b]);if(!d||!v)return null;const K=(e="")=>{const n=e==="angpow-rain"&&S?`theme-${S}`:"";return["wrapper",e,n].filter(Boolean).join(" ")},q=c?.isMobile?window.m_luckyWheelLandingTemplate==="m_LuckyWheel_03":window.luckyWheelLandingTemplate==="luckyWheel_03";return l.jsx(X,{customClass:"floating-icon-slider",disableDragFeature:y(u,"settings.features.floatingIconSettings.disableDrag"),showFullSizeOpt:!0,children:l.jsx(Q,{className:"floating-icon-slider_carousel",autoplay:!0,dots:!0,draggable:!1,swipe:!1,arrows:!1,children:G.map(e=>l.jsxs("div",{className:K(e.className),children:[l.jsx("button",{className:"btn-close",style:e.style,onClick:()=>U(),children:l.jsx("img",{className:"close-img",src:"/public/html/default_whitelabel/shared-image/angpow-rain/angpow-floating-close-btn.png",alt:"close"})}),e.className==="angpow-rain"?l.jsx(Y,{}):l.jsx("button",{className:"btn-wrapper",onClick:()=>{H(e)},children:e.className==="lucky-wheel"?q?l.jsx(Z,{hideCloseBtn:!0,luckyWheelTemplateData:F}):l.jsx(ee,{}):l.jsx("img",{className:"content-img",src:e.img,alt:""})})]},e.href))})})}te.propTypes={show:z.bool};export{te 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.