!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]="258385a8-8f75-4c84-858f-cd4598edb8ef",e._sentryDebugIdIdentifier="sentry-dbid-258385a8-8f75-4c84-858f-cd4598edb8ef")}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),r=i(28349),s=i(99064),o=i(47687),a=i.n(o),l=i(81278),d=i(55729),c=i(494),u=i(19451),m=i(10794),f=i(83260);let g="105%",h=[{includedCountries:["RS"],localStorageKey:"mozzart_pickem_reward_eurobasket_2025",desktopLink:"https://pickem.sofascore.com/tournament/285?host=mozzart-eurobasket",mobileLink:"https://pickem.sofascore.com/tournament/285?host=mozzart-eurobasket",desktopImage:"/static/images/slidein-banner/mozzart/mozzart_pickem_reward_eurobasket_2025.jpg",mobileImage:"/static/images/slidein-banner/mozzart/mozzart_pickem_reward_eurobasket_2025.jpg",rewardIcon:"/static/images/slidein-banner/mozzart/slidein-mobile-icon.svg",CTACopy:"Igraj i osvoji",shownFrom:1755675e6,shownUntil:17564634e5}];var p=i(9127),b=i(41735);let w=b.default.img.withConfig({componentId:"sc-b69dadc0-0"})(["display:block;width:48px;height:48px;border-radius:8px;overflow:hidden;"]),x=(0,b.default)(s.EY).withConfig({componentId:"sc-b69dadc0-1"})(["white-space:nowrap;"]),L=(0,b.default)(s.az).withConfig({componentId:"sc-b69dadc0-2"})([""]),k=(0,b.default)(s.az).withConfig({componentId:"sc-b69dadc0-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:",";right:",";bottom:128px;flex-direction:row-reverse;border-top-right-radius:",";border-bottom-right-radius:",";border-top-left-radius:",";border-bottom-left-radius:",";","{top:-",";right:",";left:",";}","{margin-left:",";margin-right:",";}}"],e=>e.isLeftOnMobile?0:"unset",e=>e.isLeftOnMobile?"unset":0,e=>e.isLeftOnMobile||e.isRTL?"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,s.Py.Sticky,e=>e.theme.colors.primary.default,L,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.isRTL?"unset":0,e=>e.isRTL?0:"unset",e=>e.isRTL?0:e.theme.spacing.lg,e=>e.isRTL?0:e.theme.spacing.lg,e=>e.isRTL?e.theme.spacing.lg:0,e=>e.isRTL?e.theme.spacing.lg:0,L,e=>e.theme.spacing.sm,e=>e.isRTL?"unset":"-".concat(e.theme.spacing.sm),e=>e.isRTL?"-".concat(e.theme.spacing.sm):"unset",x,e=>e.isRTL?e.theme.spacing.md:0,e=>e.isRTL?0:e.theme.spacing.md),C=(0,p.m)(k),v=(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)},y=e=>new Date("string"==typeof e?Date.parse(e):e).getTime(),z=e=>{let t=new Date().getTime();return(void 0===e.shownFrom||y(e.shownFrom)t)},_=e=>h.find(t=>v(t,e)&&z(t));var j=i(54409);let M=e=>{let{config:t}=e,[i,o,c]=(0,f.A)(t.localStorageKey,!0),[m,h]=(0,d.useState)(!1),{isMobile:p,textDirection:b}=(0,r.$c)(),k="rtl"===b,[v,y]=(0,d.useState)(),z=(0,d.useRef)(),_=(0,d.useRef)(),M=(0,l.useRouter)(),O=(0,d.useMemo)(()=>p?t.isLeftOnMobile?"-".concat("60%"):"60%":"0%",[p]),R=(0,d.useMemo)(()=>p?t.isLeftOnMobile?"-".concat(g):g:"60%",[p]),T=(0,d.useMemo)(()=>p&&t.isLeftOnMobile?"-".concat(g):g,[p]),I=(0,d.useCallback)(()=>{z.current||(z.current=!0,y(R),_.current=window.setTimeout(()=>{y(O),z.current=!1},1e3))},[p]),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(_.current),y(O),E.current=I},[p]),(0,d.useEffect)(()=>(window.addEventListener("scroll",S,!1),()=>{window.removeEventListener("scroll",S)}),[]),(!p||M.pathname!==u.xW.WeeklyChallenge)&&i&&c)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.aF,{isOpen:m,onClose:()=>{y(O),h(!1)},w:["270px","360px"],h:["480px","640px"],position:"relative",children:[(0,n.jsx)(s.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)(s.az,{position:"absolute",top:0,right:0,style:{transform:"translate(50%, -50%)"},borderRadius:"50%",backgroundColor:"surface.s1",elevation:2,children:(0,n.jsx)(s.$n,{"aria-label":"Close slide-in banner",variant:"unshielded",p:"0",onClick:()=>{y(O),h(!1)},children:(0,n.jsx)(j.zQC,{icon:"close",fillOpacity:"0.45",width:"24",height:"24",fill:"onSurface.nLv1"})})})]}),(0,n.jsxs)(C,{animate:{x:p||k?v:"-"+v},transition:{ease:"easeInOut",duration:.2},onClick:()=>{clearTimeout(_.current),z.current=!1,y(T),h(e=>!e)},isLeftOnMobile:t.isLeftOnMobile,bottom:["160px","56px"],isRTL:k,children:[(0,n.jsx)(L,{position:"absolute",borderRadius:"50%",backgroundColor:"surface.s1",elevation:2,children:(0,n.jsx)(s.$n,{"aria-label":"Close slide-in banner",variant:"unshielded",p:"0",onClick:e=>{e.stopPropagation(),m&&h(!1),o(!1)},children:(0,n.jsx)(j.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=_(e);return t?(0,n.jsx)(M,{config:t}):null}}}]);