1import{A as e,S as I,l as g,r as f,f_ as R,eL as q}from"./index.d5ed491e.1790691266856.js";import{r as P}from"./user-slice.9308c135.1790691266856.js";import{M as v}from"./index.05e25ec2.1790691266856.js";import"./usePreloadTheme.75050896.1790691266856.js";import"./agentation.5cf31a33.1790691266856.js";import"./staticContentModules.2872032d.1790691266856.js";import"./warning.883c7a3c.1790691266856.js";const S="_rewardPopup_1jwqq_1",N="_RewardPopupContainer_1jwqq_4",O="_closeIcon_1jwqq_21",k="_contentContainer_1jwqq_28",E="_amount_1jwqq_34",M="_image_1jwqq_37",V="_overlay_1jwqq_41",o={rewardPopup:S,RewardPopupContainer:N,closeIcon:O,contentContainer:k,amount:E,image:M,overlay:V},Y=({handleToggleReward:r,reward:d,isOpen:p,isMobile:a,getImage:m})=>{const{visual:c,name:u,amount:n,currency:w,description:y}=d,{mpopup:h,popup:_,descColor:C,titleColor:l,amountColor:b}=c,i=a?h:_;return e.jsx(v,{isOpen:p,overlayClassName:o.overlay,className:o.rewardPopup,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0,appElement:document.getElementById("root"),onAfterOpen:()=>{const t=window.scrollY;document.body.style.position="fixed",document.body.style.top=`-${t}px`,document.body.style.width="100%",document.body.dataset.scrollY=String(t)},onAfterClose:()=>{const t=document.body.dataset.scrollY||"0";document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,parseInt(t,10))},onRequestClose:()=>r(!1),children:e.jsxs("div",{className:o.RewardPopupContainer,children:[window.portalSettings?.rewardPopup?.isSVGCloseIcon?e.jsx(I,{category:"SVGTransfer",name:"D-closebtn"}):e.jsxs("picture",{children:[e.jsx("source",{src:"/public/html/images/sp2lite/shared/cross.webp",type:"image/webp"}),e.jsx("img",{className:o.closeIcon,src:"/public/html/images/sp2lite/shared/cross.png",alt:"modal-close",role:"button",onClick:()=>r(!1)})]}),e.jsxs("div",{className:o.contentContainer,children:[e.jsx("p",{className:o.name,style:{color:l},children:u}),e.jsxs("div",{children:[e.jsxs("p",{className:o.amount,style:{color:b},children:[n," ",w]}),e.jsx("p",{style:{color:C},children:y})]})]}),e.jsx("img",{className:o.image,src:m(i)})]})})}
1,D="_rewardPopupContainer_1cst2_1",F="_rewardImage_1cst2_17",$="_closeIcon_1cst2_34",j={rewardPopupContainer:D,rewardImage:F,closeIcon:$},H=()=>{const{rewardData:r}=g.useSelector(s=>s.ui),{hasFakeSeamless:d}=g.useSelector(s=>s.wallet),[p,a]=f.useState(!0),m=g.useDispatch(),[c,u]=f.useState(!1),n=r?.[0],{disablePopup:w,id:y}=n||{},{banner:h,mbanner:_}=n?.visual||{},l=q()==="Mobile";if(!r?.length>0||!p)return;const b=()=>{a(!1)},i=s=>{!w&&u(s),!s&&a(!1),R(y),m(P(d))},t=l?_:h,x=s=>s.includes("/public/html/rewards/visual/default")?s:`/public/html/rewards/${s}`;return e.jsxs("div",{className:j.rewardPopupContainer,children:[e.jsx(Y,{reward:n,handleToggleReward:i,isOpen:c,isMobile:l,getImage:x}),e.jsxs("picture",{children:[e.jsx("source",{src:"/public/html/images/sp2lite/shared/cross.webp",type:"image/webp"}),e.jsx("img",{className:j.closeIcon,src:"/public/html/images/sp2lite/shared/cross.png",alt:"modal-close",role:"button",onClick:()=>b()})]}),e.jsx("img",{style:{display:c?"none":"block"},className:j.rewardImage,src:x(t),onClick:()=>i(!0)})]})};export{H 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.