!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]="2a9bfa74-752d-4678-aa20-ea97cd7cf438",e._sentryDebugIdIdentifier="sentry-dbid-2a9bfa74-752d-4678-aa20-ea97cd7cf438")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1904],{23685:(e,n,r)=>{r.d(n,{Y:()=>u});var t=r(6029),a=r(21377),l=r(947),o=r(494),i=r(82578),s=r(28588),c=r(49254),d=r(10794);let u=e=>{let{utId:n,location:r,bgImageUrl:u,isInverseDesktop:p}=e,g=(0,o.d4)(d.LQ),x=(0,l.A)();return g&&c.p.includes(g)&&n===a.G6l.NBA?(0,t.jsx)(s.Q,{banner:{copy:{action:x.formatMessage({id:"link_visit_nba"}),description:x.formatMessage({id:"banner_nba_league_pass_description"}),sectionTitle:x.formatMessage({id:"banner_nba_league_pass_title"})},type:i.x.LogoBanner,background:i.j.EntityBackground,detailImageUrl:{ltr:"/static/images/nba-league-pass/league-pass-logo.svg",rtl:"/static/images/nba-league-pass/league-pass-logo.svg"},campaignName:"nba_league_pass",url:"https://nba.sjv.io/c/5441787/2176796/16284"},isInverseDesktop:p,bgImageUrl:u,location:r}):null}},28588:(e,n,r)=>{r.d(n,{Q:()=>k});var t=r(6029),a=r(95083),l=r(76356),o=r(78383),i=r.n(o),s=r(54409),c=r(1815);let d=(e,n)=>"string"==typeof e?{backgroundImage:"url(".concat(e,")"),backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat",filter:"blur(50px)",transform:"scale(1.5)"}:{backgroundImage:n?"url(".concat(e[1],"), url(").concat(e[0],")"):"url(".concat(e[0],"), url(").concat(e[1],")"),backgroundSize:"50% 100%, 50% 100%",backgroundPosition:"center left, center right",backgroundRepeat:"no-repeat, no-repeat",filter:"blur(50px)",transform:"scale(1.5)"},u=e=>{let{url:n,isInverseDesktop:r}=e;if(!n)return null;let a="undefined"!=typeof document&&"rtl"===document.dir;return(0,t.jsx)(l.az,{position:"absolute",inset:"0",bg:"overlay.darken2",br:{base:"lg",md:r?"lg":"xl"},overflow:"hidden",children:(0,t.jsx)(l.az,{height:"100%",width:"100%",br:{base:"lg",md:r?"lg":"xl"},overflow:"hidden",style:d(n,a)})})};var p=r(82578);let g=e=>{let{banner:n}=e;return n.url?(0,t.jsx)(s.HW5,{h:16,w:16,fill:n.background===p.j.Surface?"primary.default":"onColor.primary"}):(0,t.jsx)(s.CCT,{h:16,w:16,fill:n.background===p.j.Surface?"primary.default":"onColor.primary"})},x=e=>{let{banner:n}=e;return(0,t.jsxs)(a.$n,{size:"tertiary",px:"sm",title:n.copy.action,variant:"clear",color:n.background===p.j.Surface?"primary.default":"onColor.primary",children:[(0,t.jsx)("span",{children:n.copy.action}),(0,t.jsx)(g,{banner:n})]})},f=e=>{let{banner:n}=e,r="undefined"!=typeof document&&"rtl"===document.dir,o=r&&n.detailImageUrl.rtl?n.detailImageUrl.rtl:n.detailImageUrl.ltr;return(0,t.jsxs)(l.so,{position:"relative",children:[(0,t.jsxs)(l.az,{w:"2xl",py:"lg",flexGrow:1,children:[(0,t.jsxs)(l.az,{ps:"lg",children:[(0,t.jsx)(a.EY,{display:"block",textStyle:"display.small",color:n.background===p.j.Surface?"neutrals.nLv1":"onColor.primary",children:n.copy.sectionTitle}),(0,t.jsx)(a.EY,{display:"block",textStyle:"assistive.default",color:n.background===p.j.Surface?"neutrals.nLv3":"onColor.secondary",mt:"xs",children:n.copy.description})]}),(0,t.jsx)(l.az,{pt:"md",px:"sm",children:(0,t.jsx)(x,{banner:n})})]}),(0,t.jsx)(l.az,{w:"2xl",flexGrow:1,style:{backgroundImage:"url(".concat(o,")"),backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPositionX:r?"left":"right",backgroundPositionY:"bottom"}})]})},b=e=>{let{banner:n}=e;return(0,t.jsxs)(l.so,{py:"lg",justify:"space-between",align:"center",overflow:"hidden",position:"relative",children:[(0,t.jsxs)(l.az,{flexGrow:2,w:"10xl",children:[(0,t.jsxs)(l.az,{ps:"lg",children:[(0,t.jsx)(a.EY,{display:"block",textStyle:"display.small",color:n.background===p.j.Surface?"neutrals.nLv1":"onColor.primary",children:n.copy.sectionTitle}),(0,t.jsx)(a.EY,{display:"block",textStyle:"assistive.default",color:n.background===p.j.Surface?"neutrals.nLv3":"onColor.secondary",mt:"xs",children:n.copy.description})]}),(0,t.jsx)(l.az,{pt:"md",px:"sm",children:(0,t.jsx)(x,{banner:n})})]}),(0,t.jsx)(l.so,{justify:"center",flexGrow:1,w:"4xl",children:(0,t.jsx)(l.I4.img,{src:n.detailImageUrl.ltr,height:"4xl",width:"4xl"})})]})};var m=r(76410),y=r(62827),h=r(13030);let j=e=>{let{banner:n}=e;switch(e.banner.type){case p.x.CreativeBanner:return(0,t.jsx)(f,{banner:n});case p.x.LogoBanner:default:return(0,t.jsx)(b,{banner:n})}},v=e=>{let{children:n,...r}=e,{banner:a,location:l}=r;return a.url&&l?(0,t.jsx)("a",{href:a.url,target:"_blank",rel:"noopener",onClick:()=>(0,m.AW)({type:"banner",name:a.campaignName,location:l}),children:n}):(0,t.jsx)(t.Fragment,{children:n})},k=e=>{let{banner:n,bgImageUrl:r,isInverseDesktop:o,children:d,location:g,onClick:x}=e,[f,b]=(0,y.bL)("promotion.banner.".concat(n.campaignName),!1),k=(0,c.e)(n.url&&g?()=>(0,m.Z1)({type:"banner",name:n.campaignName,location:g}):i(),n.url?{delay:500,sendInterval:3e4}:{});return f?null:(0,t.jsx)(l.az,{ref:k,overflow:"hidden",position:"relative",br:{base:"lg",md:o?"lg":"xl"},onClick:x,children:(0,t.jsx)(v,{...e,children:(0,t.jsxs)(h.A,{isInverseDesktop:o,children:[r?(0,t.jsx)(u,{url:r,isInverseDesktop:o}):d,(0,t.jsx)(j,{...e}),(0,t.jsx)(a.K0,{variant:"clear",onClick:e=>{b(!0),e.preventDefault(),e.stopPropagation()},position:"absolute",top:"xs",insetEnd:"xs",children:(0,t.jsx)(s.zQC,{icon:"close",h:16,w:16,fill:n.background===p.j.Surface?"onSurface.nLv1":"onColor.primary"})})]})})})}},64073:(e,n,r)=>{r.d(n,{K:()=>j});var t=r(6029),a=r(95083),l=r(76356),o=r(9127),i=r(90112),s=r(12364),c=r.n(s),d=r(55729),u=r(90248),p=r(494),g=r(91729),x=r(54409),f=r(8973),b=r(62827),m=r(12759),y=r(46009);let h=(0,o.m)(l.az);function j(e){let{id:n,name:r,entity:o,children:s,threshold:j=144,type:v}=e,[k,w]=(0,d.useState)(0),[_,C]=(0,b.yR)("sticky_follow_header_closed_".concat(o),!1),z=(0,m.Pz)(o),I=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,[r,t]=(0,d.useState)(e);return(0,d.useEffect)(()=>{let r=setTimeout(()=>{t(e)},n);return()=>clearTimeout(r)},[e]),r}((0,p.d4)(e=>e.favorites.lists[z[0]].includes(n)||2===z.length&&e.favorites.lists[z[1]].includes(n)));return(0,d.useEffect)(()=>{if(_)return;let e=c()(()=>{window.requestAnimationFrame(()=>{w(window.scrollY)})},300);return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[k,_]),(0,t.jsx)(i.N,{children:k>j&&!I&&(0,t.jsx)(h,{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,t.jsx)(l.az,{position:"absolute",bottom:"0",left:"0",right:"0",children:(0,t.jsx)(g.m,{h:"5xl",py:"sm",children:(0,t.jsxs)(l.so,{h:"[40px]",children:[(0,t.jsx)(l.so,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},justify:"flex-end",align:"center",flex:"[1 1 50%]",children:(0,t.jsxs)(l.so,{backgroundColor:"surface.s2",align:"center",px:"sm",py:"xs",br:"lg",cursor:"pointer",children:[s,(0,t.jsx)(y.e,{id:n,entity:o,type:v,location:f.y.FloatingHeader})]})}),(0,t.jsx)(l.so,{align:"center",flex:"[1 1 50%]",children:(0,t.jsx)(a.EY,{textStyle:"assistive.default",color:"neutrals.nLv1",ml:"lg",children:(0,t.jsx)(u.A,{id:"add_to_favorites_text",values:{name:r}})})}),(0,t.jsx)(l.so,{align:"center",children:(0,t.jsx)(a.$n,{variant:"clear",p:"0",onClick:()=>{C(!0),w(0)},children:(0,t.jsx)(x.zQC,{icon:"close"})})})]})})})})})}},82578:(e,n,r)=>{r.d(n,{j:()=>a,x:()=>t});var t=function(e){return e.CleanBanner="clean",e.LogoBanner="logo",e.CreativeBanner="creative",e}({}),a=function(e){return e.EntityBackground="entity-background",e.Surface="surface",e}({})}}]);