!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ed0ef09b-938c-4e0c-aa35-713bb5352840",e._sentryDebugIdIdentifier="sentry-dbid-ed0ef09b-938c-4e0c-aa35-713bb5352840")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3257],{3257:(e,t,i)=>{i.r(t),i.d(t,{default:()=>O});var n=i(6029),o=i(95083),r=i(41249),s=i(47687),a=i.n(s),l=i(81278),d=i(55729),c=i(494),u=i(19451),m=i(10794),f=i(19168);let g="105%",p=[{includedCountries:["RS"],localStorageKey:"mozzart-toto-banner-rs-07-04-2025",desktopLink:"https://www.mozzartbet.com/sr/promocije/mozzart-toto-/67d7d7f08ba71d3bf2e3e5f5?utm_source=sofascore&utm_medium=cpm&utm_campaign=sofa_toto",desktopImage:"/static/images/slidein-banner/mozzart/mozzart_toto_reward_07_04_2025.png",mobileLink:"https://landing.sofascore.com/influencers/?af_xp=custom&pid=sales&c=toto_mozzart",mobileImage:"/static/images/slidein-banner/mozzart/mozzart_toto_reward_07_04_2025.png",rewardIcon:"/static/images/slidein-banner/mozzart/mozzart_toto_slide_in_icon_ps5.png",CTACopy:"Igraj i osvoji",shownFrom:17440236e5,shownUntil:17456724e5}];var h=i(9127),b=i(41735);let w=b.default.img.withConfig({componentId:"sc-d9ec0791-0"})(["display:block;width:48px;height:48px;border-radius:8px;overflow:hidden;"]),x=(0,b.default)(r.EY).withConfig({componentId:"sc-d9ec0791-1"})(["white-space:nowrap;"]),_=(0,b.default)(r.az).withConfig({componentId:"sc-d9ec0791-2"})([""]),C=(0,b.default)(r.az).withConfig({componentId:"sc-d9ec0791-3"})(["position:fixed;left:",";right:",";width:160px;display:flex;flex-direction:",";align-items:center;cursor:pointer;border-top-left-radius:",";border-bottom-left-radius:",";border-top-right-radius:",";border-bottom-right-radius:",";padding:",";z-index:",";background:",";","{top:-",";left:",";right:",";}","{margin-right:",";margin-left:",";}@media (min-width:991px){left:unset;right:0;bottom:128px;flex-direction:row;border-top-left-radius:",";border-bottom-left-radius:",";border-top-right-radius:0;border-bottom-right-radius:0;","{top:-",";left:-",";right:unset;}","{margin-right:0;margin-left:",";}}"],e=>e.isLeftOnMobile?0:"unset",e=>e.isLeftOnMobile?"unset":0,e=>e.isLeftOnMobile?"row-reverse":"row",e=>e.isLeftOnMobile?0:e.theme.spacing.lg,e=>e.isLeftOnMobile?0:e.theme.spacing.lg,e=>e.isLeftOnMobile?e.theme.spacing.lg:0,e=>e.isLeftOnMobile?e.theme.spacing.lg:0,e=>e.theme.spacing.sm,r.Py.Sticky,e=>e.theme.colors.primary.default,_,e=>e.theme.spacing.sm,e=>e.isLeftOnMobile?"unset":"-8px",e=>e.isLeftOnMobile?"-8px":"unset",x,e=>e.isLeftOnMobile?e.theme.spacing.md:0,e=>e.isLeftOnMobile?0:e.theme.spacing.md,e=>e.theme.spacing.lg,e=>e.theme.spacing.lg,_,e=>e.theme.spacing.sm,e=>e.theme.spacing.sm,x,e=>e.theme.spacing.md),v=(0,h.m)(C),z=(e,t)=>{if(void 0!==e.includedCountries){var i;return null==(i=e.includedCountries)?void 0:i.includes(t)}return void 0===e.excludedCountries||!e.excludedCountries.includes(t)},k=e=>new Date("string"==typeof e?Date.parse(e):e).getTime(),y=e=>{let t=new Date().getTime();return(void 0===e.shownFrom||k(e.shownFrom)t)},L=e=>p.find(t=>z(t,e)&&y(t));var M=i(54409);let j=e=>{let{config:t}=e,[i,s]=(0,f.yR)(t.localStorageKey,void 0),[c,m]=(0,d.useState)(!1),{isMobile:p}=(0,o.$c)(),[h,b]=(0,d.useState)(),C=(0,d.useRef)(),z=(0,d.useRef)(),k=(0,l.useRouter)(),y=(0,d.useMemo)(()=>p?t.isLeftOnMobile?"-".concat("60%"):"60%":"0%",[p]),L=(0,d.useMemo)(()=>p?t.isLeftOnMobile?"-".concat(g):g:"60%",[p]),j=(0,d.useMemo)(()=>p&&t.isLeftOnMobile?"-".concat(g):g,[p]),O=(0,d.useCallback)(()=>{C.current||(C.current=!0,b(L),z.current=window.setTimeout(()=>{b(y),C.current=!1},1e3))},[p]),I=(0,d.useRef)(O),E=(0,d.useMemo)(()=>a()(()=>{var e;null==(e=I.current)||e.call(I)},200),[]);return((0,d.useEffect)(()=>{clearTimeout(z.current),b(y),I.current=O},[p]),(0,d.useEffect)(()=>(window.addEventListener("scroll",E,!1),()=>{window.removeEventListener("scroll",E)}),[]),(0,d.useEffect)(()=>{void 0===i&&s(!0)},[i]),p&&k.pathname===u.xW.WeeklyChallenge||!i)?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(r.aF,{isOpen:c,onClose:()=>{b(y),m(!1)},w:["270px","360px"],h:["480px","640px"],position:"relative",children:[(0,n.jsx)(r.so,{align:"center",justify:"center",h:"100%",backgroundColor:"#d7c1c1",children:(0,n.jsx)("a",{href:p?t.mobileLink:t.desktopLink,target:"_blank",rel:"noreferrer",style:{height:"100%",width:"100%"},children:(0,n.jsx)("img",{src:p?t.mobileImage:t.desktopImage,height:"100%",alt:""})})}),(0,n.jsx)(r.az,{position:"absolute",top:0,right:0,style:{transform:"translate(50%, -50%)"},borderRadius:"50%",backgroundColor:"surface.s1",elevation:2,children:(0,n.jsx)(r.$n,{"aria-label":"Close slide-in banner",variant:"unshielded",p:"0",onClick:()=>{b(y),m(!1)},children:(0,n.jsx)(M.zQC,{icon:"close",fillOpacity:"0.45",width:"24",height:"24",fill:"onSurface.nLv1"})})})]}),(0,n.jsxs)(v,{animate:{x:h},transition:{ease:"easeInOut",duration:.2},onClick:()=>{clearTimeout(z.current),C.current=!1,b(j),m(e=>!e)},isLeftOnMobile:t.isLeftOnMobile,bottom:["160px","56px"],children:[(0,n.jsx)(_,{position:"absolute",borderRadius:"50%",backgroundColor:"surface.s1",elevation:2,children:(0,n.jsx)(r.$n,{"aria-label":"Close slide-in banner",variant:"unshielded",p:"0",onClick:e=>{e.stopPropagation(),c&&m(!1),s(!1)},children:(0,n.jsx)(M.zQC,{icon:"close",width:"16",height:"16",fill:"onSurface.nLv3"})})}),(0,n.jsx)(w,{src:t.rewardIcon,alt:""}),(0,n.jsx)(x,{color:"surface.s1",fontWeight:"bold",children:t.CTACopy})]})]})},O=()=>{let e=(0,c.d4)(m.LQ);if(!e)return null;let t=L(e);return t?(0,n.jsx)(j,{config:t}):null}}}]);