1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[758],{313:(e,t,i)=>{i.d(t,{e:()=>n});let n="data-sxm-mobile-menu-open"},2758:(e,t,i)=>{i.r(t),i.d(t,{default:()=>x});var n=i(5155),r=i(9768),s=i(8530),a=i(2115),l=i(2299),o=i.n(l);let c="sticky_subscribe_banner_dismissed",d="sticky-subscribe-banner-mobile-dismissed",u={headline:"Subscribe early to lock in your offer - 3 months for $2 once your trial ends",ctaLabel:"Subscribe today",ctaUrl:"https://www.siriusxm.com/plans"},m=()=>{var e;return"undefined"!=typeof document&&(null==(e=document.cookie.split("; ").find(e=>e.startsWith("".concat(c,"="))))?void 0:e.split("=")[1])==="1"},h=e=>{let{iconSize:t,onDismiss:i}=e;return(0,n.jsx)("button",{type:"button",onClick:i,"aria-label":"Close sticky banner",className:"absolute top-2 right-2 p-1 text-white transition-opacity hover:opacity-80 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",width:t,height:t,"aria-hidden":"true",children:(0,n.jsx)("path",{d:"M6 6L18 18M18 6L6 18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})};function x(e){let{headline:t=u.headline,subcopy:i,ctaLabel:l=u.ctaLabel,ctaUrl:x=u.ctaUrl}=e,[f,p]=(0,a.useState)(!1),[w,b]=(0,a.useState)(m),v=(0,a.useRef)(null),{hasScrolledPastHeader:g,isHeaderStickyVisible:k}=(0,s.A)(),{hasSportsWidget:y,hasScrolledPastSportsWidget:S}=function(e){let[t,i]=(0,a.useState)({hasSportsWidget:!1,hasScrolledPastSportsWidget:!1});return(0,a.useEffect)(()=>{let t=document.querySelector(".sports-widget");if(!t)return;let n=()=>{var n;let r=(null==e||null==(n=e.current)?void 0:n.offsetHeight)||0,s=t.getBoundingClientRect().bottom+window.scrollY-r,a=window.scrollY>=s;i(e=>e.hasScrolledPastSportsWidget===a&&e.hasSportsWidget?e:{hasSportsWidget:!0,hasScrolledPastSportsWidget:a})};n();let r=0,s=()=>{r||(r=window.requestAnimationFrame(()=>{n(),r=0}))};return window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",s),()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",s),r&&window.cancelAnimationFrame(r)}},[e]),t}(v),j=f&&!w&&(y?S:g)&&!k,N=()=>{document.body.classList.add(d),b(!0);let e="https:"===window.location.protocol?"; Secure":"";document.cookie="".concat(c,"=1; Max-Age=").concat(2592e3,"; Path=/; SameSite=Lax").concat(e)};return(0,a.useEffect)(()=>{p(!0)},[]),(0,a.useEffect)(()=>(w?document.body.classList.add(d):document.body.classList.remove(d),()=>{document.body.classList.remove(d)}),[w]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{ref:v,className:o()("hidden md:block sticky top-0 z-[22] w-full bg-link-hover text-white overflow-hidden transition-[max-height,opacity,transform] duration-300 ease-out relative",j?"max-h-[220px] opacity-100 translate-y-0":"max-h-0 opacity-0 -translate-y-2 pointer-events-none"),children:[(0,n.jsx)("div",{className:"container md:max-w-[1560px] px-5 py-3 xl:px-6 xl:py-4",children:(0,n.jsxs)("div",{className:"flex items-center justify-between gap-6 pr-8",children:[(0,n.jsxs)("div",{className:"min-w-0 max-w-[66rem] xxl:max-w-[80rem]",children:[(0,n.jsx)("h2",{className:"m-0 font-geist-black text-[1.4rem] xl:text-[1.6rem] leading-115",children:t}),i?(0,n.jsx)("p",{className:"m-0 font-geist-regular text-[0.95rem] leading-115 mt-1",children:i}):null]}),(0,n.jsx)("div",{className:"flex shrink-0 items-center gap-3",children:(0,n.jsx)(r.default,{href:x,target:"_blank",rel:"noopener noreferrer",trackingPosition:"Sticky Banner","aria-label":"".concat(l," - Sticky Banner"),className:"inline-flex items-center justify-center gap-x-2.5 rounded-full bg-white px-4 py-2 font-geist-black tracking-[0.0175rem] uppercase text-black text-[0.875rem] whitespace-nowrap !no-underline transition-colors duration-500 hover:bg-black hover:!text-white hover:!no-underline focus-visible:!no-underline",children:l})})]})}),(0,n.jsx)(h,{iconSize:16,onDismiss:N})]}),w?null:(0,n.jsx)("div",{className:"md:hidden fixed inset-x-0 bottom-0 z-[25] bg-link-hover text-white pb-[calc(env(safe-area-inset-bottom)+0.5rem)]",children:(0,n.jsxs)("div",{className:"relative px-6 md:px-3 pt-3 pb-2",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,n.jsx)("div",{className:"flex items-start gap-3",children:(0,n.jsxs)("div",{className:"min-w-0 mx-auto text-center",children:[(0,n.jsx)("h2",{className:"m-0 font-geist-bold text-[1.3rem] leading-115",children:t}),i?(0,n.jsx)("p",{className:"m-0 font-geist-regular text-[0.85rem] leading-115 mt-1",children:i}):null]})}),(0,n.jsx)(r.default,{href:x,target:"_blank",rel:"noopener noreferrer",trackingPosition:"Sticky Banner","aria-label":"".concat(l," - Sticky Banner"),className:"inline-flex items-center justify-center w-auto min-w-[220px] mx-auto gap-x-2.5 rounded-full bg-white px-4 py-2 font-geist-black tracking-[0.0175rem] uppercase text-black text-[0.875rem] whitespace-nowrap !no-underline transition-colors duration-500 hover:bg-black hover:!text-white hover:!no-underline focus-visible:!no-underline",children:l})]}),(0,n.jsx)(h,{iconSize:14,onDismiss:N})]})})]})}},8530:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(2115),r=i(313);
1function s(){let[e,t]=(0,n.useState)({hasScrolledPastHeader:!1,isHeaderStickyVisible:!1}),i=(0,n.useRef)(0),s=(0,n.useRef)(0);return(0,n.useEffect)(()=>{let e=()=>{let e=document.querySelector('[data-sxm-main-navbar="true"]');s.current=(null==e?void 0:e.offsetHeight)||0},n=()=>{if("true"===document.body.getAttribute(r.e))return;let e=window.scrollY,n=e>s.current,a=e-i.current,l=Math.abs(a)>=2;t(e=>{let t=e.isHeaderStickyVisible;return(n?l&&(t=a<0):t=!1,e.hasScrolledPastHeader===n&&e.isHeaderStickyVisible===t)?e:{hasScrolledPastHeader:n,isHeaderStickyVisible:t}}),i.current=e};e(),i.current=window.scrollY,n();let a=0,l=()=>{a||(a=window.requestAnimationFrame(()=>{n(),a=0}))},o=()=>{e(),n()};return window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",o),()=>{window.removeEventListener("scroll",l),window.removeEventListener("resize",o),a&&window.cancelAnimationFrame(a)}},[]),e}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.