!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e54f5dfa-18c3-46a8-acae-61e7f419a84a",e._sentryDebugIdIdentifier="sentry-dbid-e54f5dfa-18c3-46a8-acae-61e7f419a84a")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[201],{201:(e,n,t)=>{t.r(n),t.d(n,{default:()=>z});var s=t(6029),i=t(10174),r=t(76356),o=t(81278),a=t(55729),l=t(494),d=t(52466),c=t(90438),p=t(72753),u=t(15341),x=t(33144),h=t(90510),g=t(90248);let m=e=>{let{hours:n,minutes:t}=e,i=new Date;return i.setHours(n,t,0,0),(0,s.jsx)(h.ib,{value:i,hour:"numeric",minute:"numeric"})},b=e=>{let{titleId:n,bodyId:t,time:o,children:a}=e;return(0,s.jsxs)(r.so,{align:"center",gap:"md",bg:"surface.s1",py:"md",px:"lg",br:"lg",children:[(0,s.jsx)(r.az,{w:"3xl",h:"3xl",bg:"primary.default",p:"[6px]",br:"sm",_rtl:{transform:"scaleX(-1)"},children:(0,s.jsx)(d.cwj,{fillOpacity:1,fill:"onColor.primary",w:"28px",h:"28px"})}),(0,s.jsxs)(r.so,{justify:"space-between",align:"center",grow:1,gap:"sm",minW:"[0px]",children:[(0,s.jsxs)(r.so,{direction:"column",gap:"xs",overflow:"hidden",children:[(0,s.jsxs)(r.so,{align:"center",gap:"xs",children:[(0,s.jsx)(i.EY,{truncate:!0,children:(0,s.jsx)(g.A,{id:n})}),(0,s.jsx)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",textWrap:"nowrap",children:o})]}),(0,s.jsx)(i.EY,{textStyle:"body.small",color:"neutrals.nLv3",truncate:!0,children:(0,s.jsx)(g.A,{id:t})})]}),a]})]})};function j(e){let{onClose:n}=e;return(0,s.jsxs)(r.so,{direction:"column",align:"center",gap:"lg",w:"[328px]",p:"lg",br:"lg",backgroundImage:"url(/static/images/banner/install-app-banner-background.svg)",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",className:"light",children:[(0,s.jsx)(i.EY,{textStyle:"display.large",color:"onColor.primary",textAlign:"center",pb:"sm",children:(0,s.jsx)(g.A,{id:"download_the_app_header"})}),(0,s.jsx)(i.EY,{textStyle:"body.mediumParagraph",color:"onColor.primary",textAlign:"center",children:(0,s.jsx)(g.A,{id:"download_the_app_body"})}),(0,s.jsxs)(r.so,{direction:"column",align:"center",gap:"sm",pt:"4xl",backgroundImage:"url(/static/images/banner/install-app-banner-phone.svg)",backgroundRepeat:"no-repeat",backgroundPosition:"center",w:"[296px]",h:"[296px]",children:[(0,s.jsx)(r.az,{w:"[296px]",children:(0,s.jsx)(b,{titleId:"download_the_app_push_header_1",bodyId:"download_the_app_push_body_1",time:(0,s.jsx)(m,{hours:18,minutes:3}),children:(0,s.jsx)(r.az,{w:"2xl",h:"2xl",p:"xs",children:(0,s.jsx)(x.p,{id:1644,w:"24px",h:"24px"})})})}),(0,s.jsx)(r.az,{w:"[288px]",children:(0,s.jsx)(b,{titleId:"download_the_app_push_header_2",bodyId:"download_the_app_push_body_2",time:(0,s.jsx)(m,{hours:17,minutes:45}),children:(0,s.jsxs)(r.az,{minW:"2xl",h:"2xl",position:"relative",children:[(0,s.jsx)(x.p,{id:3418,w:"20px",h:"20px",style:{position:"absolute",top:0,insetInlineStart:0}}),(0,s.jsx)(x.p,{id:3419,w:"20px",h:"20px",style:{position:"absolute",bottom:0,insetInlineEnd:0}})]})})}),(0,s.jsx)(r.az,{w:"[280px]",children:(0,s.jsx)(b,{titleId:"download_the_app_push_header_3",bodyId:"download_the_app_push_body_3",time:(0,s.jsx)(m,{hours:17,minutes:35}),children:(0,s.jsxs)(r.az,{minW:"2xl",h:"2xl",position:"relative",children:[(0,s.jsx)(x.p,{id:206570,w:"20px",h:"20px",style:{position:"absolute",top:0,insetInlineStart:0}}),(0,s.jsx)(x.p,{id:275923,w:"20px",h:"20px",style:{position:"absolute",bottom:0,insetInlineEnd:0}})]})})})]}),(0,s.jsxs)(r.so,{direction:"column",align:"center",w:"[144px]",bg:"surface.s1",p:"xs",br:"sm",children:[(0,s.jsx)(i._V,{src:"/static/images/banner/install-app-banner-qr-code.svg",w:"[136px]",h:"[136px]",alt:"Install Sofascore app QR code"}),(0,s.jsx)(i.EY,{textStyle:"action.button.primary",textAlign:"center",pb:"sm",px:"sm",children:(0,s.jsx)(g.A,{id:"scan_to_download"})})]}),(0,s.jsx)(i.$n,{negative:!0,w:"100%",onClick:n,children:(0,s.jsx)(g.A,{id:"button_not_now"})})]})}function w(e){let{onClose:n}=e;return(0,s.jsxs)(r.az,{position:"relative",children:[(0,s.jsx)(r.so,{justify:"center",align:"center",w:{base:"[270px]",md:"[360px]"},h:{base:"[480px]",md:"[640px]"},bg:"[#d7c1c1]",children:(0,s.jsx)("a",{href:"https://pickem.sofascore.com/tournament/285?host=mozzart-eurobasket",target:"_blank",rel:"noreferrer",style:{height:"100%",width:"100%"},children:(0,s.jsx)("img",{src:"/static/images/slidein-banner/mozzart/mozzart_pickem_reward_eurobasket_2025.jpg",height:"100%",alt:""})})}),(0,s.jsx)(r.az,{br:"50%",bg:"surface.s1",elevation:"2",position:"absolute",top:"0",right:"0",translate:"auto",translateX:{base:"1/2",_rtl:"-1/2"},translateY:"-1/2",children:(0,s.jsx)(i.$n,{"aria-label":"Close slide-in banner",variant:"clear",size:"tertiary",p:"0",onClick:n,children:(0,s.jsx)(d.zQC,{icon:"close",fillOpacity:"0.45",width:"24",height:"24",fill:"onSurface.nLv1"})})})]})}var f=function(e){return e.InstallApp="install-app",e.Pickem="pickem",e}({});let _=[{type:f.Pickem,localStorageKey:"mozzart_pickem_reward_eurobasket_2025",toggleIcon:(0,s.jsx)(i._V,{src:"/static/images/slidein-banner/mozzart/slidein-mobile-icon.svg",w:"4xl",h:"4xl",br:"sm",overflow:"hidden",alt:"Reward icon"}),toggleMessage:"Igraj i osvoji",includedCountries:["RS"],shownFrom:1755675e6,shownUntil:17564634e5},{type:f.InstallApp,localStorageKey:"install-app-banner",toggleIcon:(0,s.jsx)(d.i8u,{w:"48px",h:"48px",fill:"surface.s1"}),toggleMessage:(0,s.jsx)(g.A,{id:"download_the_app"}),hideOnMobile:!0}];function y(e){return new Date("string"==typeof e?Date.parse(e):e).getTime()}let v=e=>{let{bannerType:n,onClose:t}=e;switch(n){case f.Pickem:return(0,s.jsx)(w,{onClose:t});case f.InstallApp:return(0,s.jsx)(j,{onClose:t});default:return null}},k=e=>{let{config:n}=e,[t,l,p]=(0,u.A)(n.localStorageKey,!0),[x,h]=(0,a.useState)(!1),[g,m]=(0,a.useState)(!1),{isMobile:b,textDirection:j}=(0,i.$c)(),w="rtl"===j,f=(0,o.useRouter)();return(!b||f.pathname!==c.xW.WeeklyChallenge)&&t&&p?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r.so,{direction:{base:"row-reverse",md:"row"},align:"center",gap:"md",bg:"primary.default",p:"sm",zIndex:"sticky",position:"fixed",cursor:"pointer",left:{md:"0"},right:{mdDown:"0"},roundedStart:{mdDown:"lg"},roundedEnd:{md:"lg"},bottom:{base:"[160px]",md:"[92px]"},transitionProperty:"transform",transitionDuration:"normal",transitionTimingFunction:"ease-in-out",style:{transform:"translateX(".concat(g?"0%":"calc(".concat(b?w?"-1":"1":w?"1":"-1","*(100% - ").concat("64px","))"),")")},onClick:()=>h(e=>!e),onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[(0,s.jsx)(r.az,{bg:"surface.s1",br:"50%",elevation:"2",position:"absolute",top:"-md",left:{mdDown:"-sm"},right:{md:"-sm"},children:(0,s.jsx)(i.$n,{"aria-label":"Close slide-in banner",variant:"clear",size:"tertiary",p:"0",onClick:e=>{e.stopPropagation(),x&&h(!1),l(!1)},children:(0,s.jsx)(d.zQC,{icon:"close",width:"16",height:"16",fill:"onSurface.nLv3"})})}),(0,s.jsx)(i.EY,{textStyle:"display.medium",color:"surface.s1",whiteSpace:"nowrap",children:n.toggleMessage}),n.toggleIcon]}),(0,s.jsx)(i.aF,{isOpen:x,onClose:()=>{h(!1)},children:(0,s.jsx)(v,{bannerType:n.type,onClose:()=>{h(!1)}})})]}):null};function z(){let e=(0,l.d4)(p.LQ),{isMobile:n}=(0,i.$c)();if(!e)return null;let t=_.find(n=>void 0===n.includedCountries&&void 0===n.excludedCountries&&void 0===n.shownFrom&&void 0===n.shownUntil||function(e,n){if(void 0!==e.includedCountries){var t;return null==(t=e.includedCountries)?void 0:t.includes(n)}return void 0===e.excludedCountries||!e.excludedCountries.includes(n)}(n,e)&&function(e){let n=new Date().getTime();return(void 0===e.shownFrom||y(e.shownFrom)n)}(n));return!t||n&&t.hideOnMobile?null:(0,s.jsx)(k,{config:t})}}}]);