!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]="78564e8e-8e46-4655-b307-233f69e97b28",e._sentryDebugIdIdentifier="sentry-dbid-78564e8e-8e46-4655-b307-233f69e97b28")}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(37071),r=i(99064),s=i(47687),a=i.n(s),l=i(81278),d=i(55729),c=i(494),u=i(19451),m=i(10794),f=i(83260);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),z=(0,h.m)(C),k=(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)},L=e=>new Date("string"==typeof e?Date.parse(e):e).getTime(),v=e=>{let t=new Date().getTime();return(void 0===e.shownFrom||L(e.shownFrom)t)},y=e=>p.find(t=>k(t,e)&&v(t));var M=i(54409);let j=e=>{let{config:t}=e,[i,s,c]=(0,f.A)(t.localStorageKey,!0),[m,p]=(0,d.useState)(!1),{isMobile:h}=(0,o.$c)(),[b,C]=(0,d.useState)(),k=(0,d.useRef)(),L=(0,d.useRef)(),v=(0,l.useRouter)(),y=(0,d.useMemo)(()=>h?t.isLeftOnMobile?"-".concat("60%"):"60%":"0%",[h]),j=(0,d.useMemo)(()=>h?t.isLeftOnMobile?"-".concat(g):g:"60%",[h]),O=(0,d.useMemo)(()=>h&&t.isLeftOnMobile?"-".concat(g):g,[h]),I=(0,d.useCallback)(()=>{k.current||(k.current=!0,C(j),L.current=window.setTimeout(()=>{C(y),k.current=!1},1e3))},[h]),E=(0,d.useRef)(I),S=(0,d.useMemo)(()=>a()(()=>{var e;null==(e=E.current)||e.call(E)},200),[]);return((0,d.useEffect)(()=>{clearTimeout(L.current),C(y),E.current=I},[h]),(0,d.useEffect)(()=>(window.addEventListener("scroll",S,!1),()=>{window.removeEventListener("scroll",S)}),[]),(!h||v.pathname!==u.xW.WeeklyChallenge)&&i&&c)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(r.aF,{isOpen:m,onClose:()=>{C(y),p(!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:h?t.mobileLink:t.desktopLink,target:"_blank",rel:"noreferrer",style:{height:"100%",width:"100%"},children:(0,n.jsx)("img",{src:h?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:()=>{C(y),p(!1)},children:(0,n.jsx)(M.zQC,{icon:"close",fillOpacity:"0.45",width:"24",height:"24",fill:"onSurface.nLv1"})})})]}),(0,n.jsxs)(z,{animate:{x:b},transition:{ease:"easeInOut",duration:.2},onClick:()=>{clearTimeout(L.current),k.current=!1,C(O),p(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(),m&&p(!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})]})]}):null},O=()=>{let e=(0,c.d4)(m.LQ);if(!e)return null;let t=y(e);return t?(0,n.jsx)(j,{config:t}):null}}}]);