1import{l as n,R as m,A as s,L as j}from"./index.a592fd0f.1791468856214.js";import{M as N}from"./index.cda596f5.1791468856214.js";import"./warning.883c7a3c.1791468856214.js";const D=({history:d,location:p,hideExclusiveMissionPopupStorage:g})=>{const a=n.useSelector(e=>e.language?.countryLanguageKey),h=n.useSelector(e=>e.portal?.settings?.features?.useExclusiveMissionPopup),u=n.useSelector(e=>e?.screen),v=n.useSelector(e=>e?.portal?.isHomePage),y=n.useSelector(e=>e?.missionDiary?.isMissionDiaryEnabled),[b,i]=m.useState(!1),{customUrlOnWeb:x="",content:t={}}=h||{},f=u?.viewType==="web",M=u?.viewType==="mobile",w=p?.pathname?.includes(x),S=f&&w,C=M&&v,c=t[a]?.img||"";m.useEffect(()=>{async function e(){try{const o=(await window?.SPL_Member?.getAllDailyMission())?.some(L=>L?.recurrence==="ONE_OFF");i(o)}catch{i(!1)}}e()},[]);const E=(S||C)&&!g&&y&&b,l=()=>{window.localStorage.setItem("hideExclusiveMissionPopupStorage",!0),i(!1)};function O(){l();const r={pathname:t?.[a]?.navigateUrl||"/myaccount/deposit"},o=t?.[a]?.selectedCategory;o&&(r.state={selectedCategory:o}),d.push(r)}return c?s.jsx(N,{overlayClassName:"standard-popup-overlay announcement-v2",className:"standard-popup-modal-container announcement-image-modal-container",isOpen:E,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0,onRequestClose:l,children:s.jsx("div",{className:"announcement-image-modal-body",children:s.jsxs("div",{className:"announcement-image-container announcement-image-exclusive-mission",children:[s.jsx("div",{onClick:O,children:s.jsx(j,{notLazyLoad:!0,src:c,alt:"",className:`image-exlusive-mission ${c?"redirectable":""}`})}),s.jsx("div",{className:"image-announcement-close",onClick:l,children:s.jsx("img",{src:"/public/html/default_whitelabel/shared-image/icons/close-btn.png",alt:"announcement-close-icon"})})]})})}):null};export{D 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.