PageSourceSearch

https://www.pxj888.com/assets/10.10.9b/exclusive-mission-popup.328a6082.1791542347209.js

js pxj888.com collected 2026-10-10 00:29:40 UTC 2,653 bytes, 1 lines download raw bytes

1import{l as b,r as o,A as n,L as O,ex as N}from"./index.b550b481.1791542347209.js";import{M as R}from"./index.8fddeea7.1791542347209.js";import{r as M}from"./agentation.9a673853.1791542347209.js";import"./warning.883c7a3c.1791542347209.js";const A="_exclusiveMissionAction_18rfe_1",I="_closeButton_18rfe_2",v={exclusiveMissionAction:A,closeButton:I},f="hideExclusiveMissionPopupStorage",j="ONE_OFF",D="/myaccount/deposit",P="/public/html/default_whitelabel/shared-image/icons/close-btn.png",K=()=>{const e=M.useHistory(),l=M.useLocation(),{countryLanguageKey:u,isMissionDiaryEnabled:t,popupSettings:s,screen:r}=b.useSelector(U,b.shallowEqual),[i,p]=o.useState(()=>window.localStorage.getItem(f)),[C,d]=o.useState(!1),g=s?.content?.[u]||{},h=g?.img||"",y=o.useMemo(()=>B({location:l,popupSettings:s,screen:r}),[l,s,r]);o.useEffect(()=>{if(!s?.enableFeature||!y||i||!t)return;let a=!0;return(async()=>{try{const c=await N(),E=c?.data??c??[],_=Array.isArray(E)&&E.some(w=>w?.recurrence===j);a&&d(!!_)}catch{a&&d(!1)}})(),()=>{a=!1}},[i,t,y,s?.enableFeature]);const m=o.useCallback(()=>{window.localStorage.setItem(f,"true"),p(!0),d(!1)},[]),S=o.useCallback(()=>{const{navigateUrl:a,selectedCategory:x}=g||{},c={pathname:a||D};x&&(c.state={selectedCategory:x}),m(),e.push(c)},[m,e,g]),L=!!(s?.enableFeature&&h&&y&&!i&&t&&C);return h?n.jsx(R,{overlayClassName:"standard-popup-overlay announcement-v2",className:"standard-popup-modal-container announcement-image-modal-container",isOpen:L,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0,onRequestClose:m,children:n.jsx("div",{className:"announcement-image-modal-body",children:n.jsxs("div",{className:"announcement-image-container announcement-image-exclusive-mission",children:[n.jsx("button",{className:`announcement-image-exclusive-mission-button ${v.exclusiveMissionAction}`,type:"button",onClick:S,children:n.jsx(O,{notLazyLoad:!0,src:h,alt:"",className:"image-exlusive-mission redirectable"})}),n.jsx("button",{className:`image-announcement-close ${v.closeButton}`,type:"button",onClick:m,"aria-label":"Close exclusive mission popup",children:n.jsx("img",{src:P,alt:""})})]})})}):null},U=e=>({countryLanguageKey:e.language?.countryLanguageKey,isMissionDiaryEnabled:e.missionDiary?.isMissionDiaryEnabled,popupSettings:e.portalSettingsReducer?.portalSettings?.features?.useExclusiveMissionPopup||window.portalSettings?.features?.useExclusiveMissionPopup,screen:e.screen}),B=({location:e,popupSettings:l,screen:u})=>{const t=u?.viewType==="web",s=u?.viewType==="mobile",r=e?.pathname==="/"||e?.pathname==="/home",i=l?.customUrlOnWeb||"",p=e?.pathname?.includes(i);return t&&p||s&&r};export{K 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.