PageSourceSearch

https://www.the88top.com/assets/10.10.9/floating-freespin.3a05461f.1791468856214.js

js the88top.com collected 2026-10-09 21:31:13 UTC 5,136 bytes, 1 lines download raw bytes

1import{l,A as e,S as A,L as N,fD as B,r as g,m as _,aD as H}from"./index.a592fd0f.1791468856214.js";import{D as G}from"./draggable-floating-icon.3470a86e.1791468856214.js";import{M as V}from"./index.cda596f5.1791468856214.js";import{u as Y}from"./agentation.68356e44.1791468856214.js";import"./warning.883c7a3c.1791468856214.js";const z={content:{},overlay:{zIndex:9999,backgroundColor:"rgba(0, 0, 0, 0.8)"}},K=({modalIsOpen:c,handleCloseModal:r,popupImage:s,textMessageColor:p,textProviderColor:a,popupClaimDataList:i,claimExpired:u,checkMemberInboxMessage:C,hideCTA:S,showFreeSpinContent:y,provider:h})=>{const{t}=Y(["freespin","providerName"]),M=l.useSelector(o=>o?.language),w=l.useSelector(o=>o?.menuSlice),n=l.useSelector(o=>o?.portal),b=()=>{const o=B({props:{language:M,menuSlice:w,portal:n}},i?.[0]?.provider);r(),window.location.href=o};if(!s)return;const I=t(`providerName:ProviderName.${h?.provider}`,h?.name);return e.jsx(V,{ariaHideApp:!1,overlayClassName:"standard-popup-overlay",className:"standard-popup-modal-container freespin-popup-modal-container",isOpen:c,onRequestClose:r,shouldCloseOnOverlayClick:!0,style:z,children:e.jsxs("div",{className:"freespin-popup-modal-body",children:[e.jsx("div",{className:"freespin-close-btn",onClick:r,children:e.jsx(A,{category:"SVGTransfer",name:"D-closebtn",className:"fillsecond"})}),e.jsx(N,{src:s}),e.jsxs("div",{className:"freespin-message",children:[y?e.jsx("div",{dangerouslySetInnerHTML:{__html:t("freeSpinContent",{claimExpired:u,providerCode:I||i[0]?.provider,freeSpinCount:i[0]?.freeSpinCount,textMessageColor:`"color: ${p}"`,textProviderColor:`"color: ${a}"`})}}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"freespin-title",children:[e.jsx("span",{style:{color:p},children:t("congratulationsText")}),e.jsx("br",{}),e.jsxs("span",{style:{color:a},children:[t("providerText"),":"," ",i?.slice(0,2).map((o,m,f)=>e.jsxs("span",{children:[t("providerWithNumberFreeSpins",{providerCode:t(`providerName:ProviderName.${o.provider}`,o.provider),freeSpinCount:o?.freeSpinCount,gameName:o?.games?.[0]?.name?` (${o.games[0].name})`:""}),`${m!==f.length-1?", ":""}`]},o?.provider))]})]}),u&&e.jsx("div",{style:{color:a},className:"freespin-claim",children:t("claimBefore",{claimExpired:u})}),C&&e.jsx("div",{style:{color:a},className:"freespin-noticed",children:t("kindlyCheck")})]}),!S&&e.jsx("button",{className:"freespin-claim-cta",onClick:b,children:t("claimBtn","Claim Now!")})]})]})})},R=()=>{const c=l.useSelector(n=>n?.screen?.viewType||"web"),r=l.useSelector(n=>n?.portal?.settings?.features),s=l.useSelector(n=>n?.user?.account?.memberId),p=l.useSelector(n=>n?.language),a=l.useSelector(n=>n?.menuSlice),[i,u]=g.useState(!1),[C,S]=g.useState(!1),[y,h]=g.useState({floatIcon:null,popupImage:null,claimExpired:null,popupClaimDataList:null,textMessageColor:null,textProviderColor:null,checkMemberInboxMessage:!1,hideCTA:!1,ctaMenu:"SL",ctaLink:"",provider:null,showFreeSpinContent:!1}),t=_(r,"floatingFreeSpinSettings")||{};return g.useEffect(()=>{Object.keys(localStorage).forEach(n=>n.includes("freespinPopup.")&&!n.includes(`freespinPopup.${s}`)&&localStorage.removeItem(n))},[s]),g.useEffect(()=>{!s||localStorage.getItem(`freespinPopup.${s}`)||window.SPL_Member.getFreespinPopup({memberId:s,merchantCode:window.merchantCode}).then(n=>{if(n){if(!n?.popupClaimDataList?.length)return;const b=window.isMenuV3&&a.menuList,{floatIcon:I,popupImage:o,hideCTA:m,menuCode:f="SL",ctaLink:L,showFreeSpinContent:T,showFloatingIconByClaimTime:D}=t||null,F=(b?a.processedBaseMenuSettings.subCategoryMenus?.[f]:a?.baseMenuSettings?.[c]?.subCategory?.[f]?.submenu)?.find(x=>x.provider===n?.popupClaimDataList?.[0]?.provider),v=n.popupClaimDataList.sort((x,E)=>new Date(x.endTime).getTime()-new Date(E.endTime).getTime()),j=window.SPL_Other.getTimeZoneBycountryLanguageKey(p?.countryLanguageKey),k=parseInt(j.replace("GMT","")),O=`${H.utc(v?.[0]?.endTime).utcOffset(k).format("YYYY-MM-DD HH:mm")} (${j})`,d=v?.[v.length-1],$=D?!v?.[0]?.claimTime:!0,P={floatIcon:(c==="web"?d?.floatingIcon:d?.mFloatingIcon)||I,popupImage:(c==="web"?d?.popup:d?.mPopup)||o,claimExpired:O,popupClaimDataList:n.popupClaimDataList,textMessageColor:d?.messageFont||void 0,textProviderColor:d?.providerFont||void 0,checkMemberInboxMessage:n.checkMemberInboxMessage,hideCTA:Array.isArray(m)?m.includes(p?.currencyLang):m,ctaLink:L||"",ctaMenu:f,provider:F,showFreeSpinContent:T};S($),h(P)}})},[s,window.merchantCode]),{toggleModal:()=>u(!i),showIcon:C&&t,data:y,isOpenModal:i,closeIcon:()=>{S(!1),localStorage.setItem(`freespinPopup.${s}`,"disabled")}}},ne=()=>{const{closeIcon:c,data:r,isOpenModal:s,showIcon:p,toggleModal:a}=R(),i={display:s?"none":void 0};return p?e.jsxs(e.Fragment,{children:[e.jsxs(G,{id:"floating-freespin-icon",containerStyle:i,customClass:"floating-freespin-icon-wrapper",showFullSizeOpt:!0,children:[e.jsx("button",{className:"floating-freespin-icon-close",onClick:c}),e.jsx("button",{onClick:a,children:r?.floatIcon&&e.jsx(N,{className:"floating-freespin-icon-image",src:r?.floatIcon})})]}),e.jsx(K,{modalIsOpen:s,handleCloseModal:a,...r})]}):null};export{ne 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.