!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]="b6eb4710-6955-4243-902a-feb8ad4c3b68",e._sentryDebugIdIdentifier="sentry-dbid-b6eb4710-6955-4243-902a-feb8ad4c3b68")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64489],{13731:(e,t,o)=>{var r=o(53325),n=o(25725),i=Object.prototype.hasOwnProperty;e.exports=n(function(e,t,o){i.call(e,o)?e[o].push(t):r(e,o,[t])})},25725:(e,t,o)=>{var r=o(81648),n=o(78492),i=o(68988),l=o(91544);e.exports=function(e,t){return function(o,s){var a=l(o)?r:n,d=t?t():{};return a(o,e,i(s,2),d)}}},54075:(e,t,o)=>{"use strict";o.d(t,{M:()=>r.MR});var r=o(19991)},64073:(e,t,o)=>{"use strict";o.d(t,{K:()=>w});var r=o(6029),n=o(28349),i=o(76356),l=o(9127),s=o(90112),a=o(12364),d=o.n(a),c=o(55729),u=o(90248),p=o(494),x=o(83201),f=o(54409),m=o(8973),h=o(83260),g=o(12759),b=o(46009);let y=(0,l.m)(i.az);function w(e){let{id:t,name:o,entity:l,children:a,threshold:w=144,type:j}=e,[v,_]=(0,c.useState)(0),[k,C]=(0,h.A)("sticky_follow_header_closed_".concat(l),!1),I=(0,g.Pz)(l),E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,[o,r]=(0,c.useState)(e);return(0,c.useEffect)(()=>{let o=setTimeout(()=>{r(e)},t);return()=>clearTimeout(o)},[e]),o}((0,p.d4)(e=>e.favorites.lists[I[0]].includes(t)||2===I.length&&e.favorites.lists[I[1]].includes(t)));return(0,c.useEffect)(()=>{if(k)return;let e=d()(()=>{window.requestAnimationFrame(()=>{_(window.scrollY)})},300);return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[v,k]),(0,r.jsx)(s.N,{children:v>w&&!E&&(0,r.jsx)(y,{position:"fixed",left:"0",right:"0",mt:"0 !important",h:"[168px]",bg:"surface.sp",textAlign:"center",initial:{top:-160,opacity:0},animate:{top:0,opacity:1},exit:{top:-160,opacity:0},transition:{type:"spring",bounce:.3,restDelta:.5},zIndex:"subheader",elevation:"3",children:(0,r.jsx)(i.az,{position:"absolute",bottom:"0",left:"0",right:"0",children:(0,r.jsx)(x.m,{h:"5xl",py:"sm",children:(0,r.jsxs)(i.so,{h:"[40px]",children:[(0,r.jsx)(i.so,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},justify:"flex-end",align:"center",flex:"[1 1 50%]",children:(0,r.jsxs)(i.so,{backgroundColor:"surface.s2",align:"center",px:"sm",py:"xs",br:"lg",cursor:"pointer",children:[a,(0,r.jsx)(b.e,{id:t,entity:l,type:j,location:m.y.FloatingHeader})]})}),(0,r.jsx)(i.so,{align:"center",flex:"[1 1 50%]",children:(0,r.jsx)(n.EY,{textStyle:"assistive.default",ml:"lg",children:(0,r.jsx)(u.A,{id:"add_to_favorites_text",values:{name:o}})})}),(0,r.jsx)(i.so,{align:"center",children:(0,r.jsx)(n.$n,{variant:"clear",p:"0",onClick:()=>{C(!0),_(0)},children:(0,r.jsx)(f.zQC,{icon:"close"})})})]})})})})})}},78492:(e,t,o)=>{var r=o(50956);e.exports=function(e,t,o,n){return r(e,function(e,r,i){t(n,e,o(e),i)}),n}},81648:e=>{e.exports=function(e,t,o,r){for(var n=-1,i=null==e?0:e.length;++n{"use strict";o.d(t,{N:()=>E});var r=o(6029),n=o(947),i=o(28349),l=o(76356),s=o(55729),a=o(90248),d=o(54053),c=o(61836);let u=e=>{let{url:t,onClick:o}=e;return(0,r.jsx)(i.$n,{children:(0,r.jsx)(l.I4.a,{color:"onColor.primary",h:"100%",w:"100%",display:"flex",justifyContent:"center",alignItems:"center",href:t,target:"_blank",rel:"noopener",onClick:o,children:(0,r.jsx)(a.A,{id:"claim_offer"})})})},p=e=>{let{logoUrl:t,promotionName:o,bgImageUrl:n,title:p,description:x,isOpen:f,setIsOpen:m,url:h,location:g}=e,{isDesktop:b}=(0,i.$c)(),y={backgroundImage:"url(".concat(n,")"),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"};if((0,s.useEffect)(()=>{f&&(0,c.Z1)({type:"bottom_sheet",name:o,location:g})},[f]),!f)return null;let w=()=>m(!1);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(d.A,{isOpen:f,setIsOpen:m,footer:null,renderAdPlaceholder:!1,sheetStyles:y,modalContentStyles:y,width:360,bottomSheetSize:"large",isBottomSheetLocked:!0,children:(0,r.jsxs)(l.so,{direction:"column",justifyContent:"space-between",h:"100%",style:b?y:void 0,br:"lg",children:[(0,r.jsx)(l.so,{h:"8xl",px:"xl",pt:{md:"xl"},children:(0,r.jsx)(l.az,{w:"4xl",h:"4xl",children:(0,r.jsx)(i._V,{src:t,h:"4xl",w:"4xl",alt:o})})}),(0,r.jsxs)(l.so,{direction:"column",justify:"flex-end",minH:"[400px]",px:"lg",pb:"lg",gap:"2xl",children:[(0,r.jsxs)(l.so,{direction:"column",gap:"lg",children:[(0,r.jsx)(l.az,{textStyle:"display.extraLarge",color:"onColor.primary",children:p}),(0,r.jsx)(l.az,{textStyle:"body.mediumParagraph",color:"onColor.primary",children:x})]}),(0,r.jsxs)(l.so,{direction:"column",gap:"sm",pt:"xs",children:[(0,r.jsx)(u,{url:h,onClick:()=>{(0,c.AW)({type:"bottom_sheet",name:o,location:g}),w()}}),(0,r.jsx)(i.$n,{variant:"clear",color:"onColor.primary",onClick:w,children:(0,r.jsx)(a.A,{id:"maybe_later"})})]})]})]})})})};var x=o(66062);let f=e=>{let{isOpen:t,setIsOpen:o,location:i}=e,l=(0,n.A)();return(0,r.jsx)(p,{logoUrl:"/static/images/courtside-1891/logo.png",bgImageUrl:"/static/images/courtside-1891/modal-bg.png",promotionName:x.d.promotionName,title:l.formatMessage({id:"euro_basket_promo_drawer_header"}),description:l.formatMessage({id:"euro_basket_promo_drawer_body"}),url:x.d.url,isOpen:t,setIsOpen:o,location:i})};var m=o(83151),h=o(21501),g=o(494),b=o(41888),y=o(70116),w=o(10794),j=o(62827),v=o(83260),_=o(89606),k=o(32097);let C=(e,t)=>{let o=new Date().getTime();if(!e.hasModal||!e.modalCooldown||e.maxTotalViews&&(null==t?void 0:t.totalViews)&&e.maxTotalViews>t.totalViews)return!1;let r=null==t?void 0:t.lastView;return!r||o-r>e.modalCooldown},I=e=>{let t=(0,h.hX)(),{priorityModal:o,setModalAvailable:r,dismiss:n,isDismissed:i}=(0,y.Z)(),l=(0,g.d4)(w.LQ),[a,d]=(0,j.bL)("promotion-in-session",void 0),[c,u]=(0,s.useState)(!1),[p,f]=(0,s.useState)(!1),[m,I,E]=(0,v.A)("last-view-per-promotion",{}),S=t||!E?void 0:x.jI.find(o=>(0,_.y)(o,t,l)&&(0,k.H)(e,o)&&C(o,m[o.id]));return(0,s.useEffect)(()=>{S?r(b.w.PromotionModal,!0):o||i||r(b.w.PromotionModal,!1)},[S]),(0,s.useEffect)(()=>{if(o===b.w.PromotionModal&&S){let e=new Date().getTime();d(S.id),u(!0),f(!0),I(t=>{var o,r;let n=Object.keys(t).filter(e=>!!x.jI.find(t=>t.id===e)),i={};return n.forEach(e=>{i[e]=t[e]}),i[S.id]={lastView:e,totalViews:(null!=(r=null==(o=t[S.id])?void 0:o.totalViews)?r:0)+1},i})}},[o]),(0,s.useEffect)(()=>{!c&&p&&n()},[c]),{promotion:a,isOpen:c,setIsOpen:u}},E=e=>{let{page:t}=e,{promotion:o,isOpen:n,setIsOpen:i}=I(t);return o&&n&&o===m.v.Courtside1891?(0,r.jsx)(f,{isOpen:n,setIsOpen:i,location:t.location}):null}}}]);