(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6054],{458:(e,t,l)=>{"use strict";l.d(t,{Cf:()=>c,L3:()=>u,LC:()=>d,ZJ:()=>s,lG:()=>o});var a=l(16852);l(77976);var n=l(22739),r=l(50036),i=l(71232);function o(e){let{...t}=e;return(0,a.jsx)(n.bL,{"data-slot":"dialog",...t})}function s(e){let{...t}=e;return(0,a.jsx)(n.ZL,{"data-slot":"dialog-portal",...t})}function d(e){let{className:t,...l}=e;return(0,a.jsx)(n.hJ,{"data-slot":"dialog-overlay",className:(0,i.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...l})}function c(e){let{className:t,children:l,...o}=e;return(0,a.jsxs)(s,{"data-slot":"dialog-portal",children:[(0,a.jsx)(d,{}),(0,a.jsxs)(n.UC,{"data-slot":"dialog-content",className:(0,i.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...o,children:[l,(0,a.jsxs)(n.bm,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[(0,a.jsx)(r.A,{}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function u(e){let{className:t,...l}=e;return(0,a.jsx)(n.hE,{"data-slot":"dialog-title",className:(0,i.cn)("text-lg font-semibold leading-none",t),...l})}},630:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ContentMediaBlock:()=>d,default:()=>c});var a=l(16852),n=l(52528),r=l(38850),i=l(71232),o=l(25505),s=l(19282);let d=e=>{let{contentQuery:t,limit:l="4",title:d="Trending",ctaText:c="More Stories",ctaLink:u="/",showCategory:m}=e,p=(null==t?void 0:t.mergedContent)||[];if(!(0,n.J)(p))return null;let f="not-prose mx-auto w-full max-w-5xl",v=p.slice(0,Number(l));if(v.every(e=>"image"===e.contentType)){let e=v.map(e=>({id:e.id,url:e.overrideThumbnail||e.thumbnail||"",filename:e.overrideTitle||"",seo:{altText:e.overrideTitle||e.title,caption:e.overrideDescription||e.description||""}}));return(0,a.jsx)("section",{className:f,children:(0,a.jsx)(s.A,{id:"content-media-slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:e,allSlides:e,slides:[],totalAssets:e.length,rounded:!0,sendTrackString:()=>{},blockType:"Slideshow"})})}return(0,a.jsxs)("section",{className:(0,i.cn)("@container rounded-xl bg-white p-5",f),children:[(0,a.jsx)("h2",{className:"not-prose mb-4 text-2xl font-bold",children:d}),(0,a.jsx)("div",{className:"@md:grid-cols-2 @lg:grid-cols-4 grid grid-cols-1 gap-4",children:v.map(e=>{var t;let l=e.overrideTitle||e.title,n=e.overrideThumbnail||e.thumbnail||"/placeholder.svg",r=(null==(t=e.url)?void 0:t.includes("video"))||!1,i=e.category||"Weather News";return(0,a.jsx)(o.S,{heading:m?i:void 0,description:l,href:e.url,imageUrl:n,showIcon:r,imageWrapClassName:"mb-2",dir:"col"},e.id)})}),(0,a.jsx)("div",{className:"mt-4 text-right",children:(0,a.jsx)(r.default,{href:null!=u?u:"/",className:"inline-flex h-10 items-center rounded bg-gray-900 px-4 py-2 align-top text-sm font-medium text-white hover:bg-gray-800",children:c})})]})},c=d},2050:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ImageBlock:()=>d,default:()=>c});var a=l(16852),n=l(77976),r=l(38850),i=l(71232),o=l(61391);let s=n.forwardRef((e,t)=>{let{src:l,alt:n,caption:r,credit:s,width:d=320,height:c=180,shadow:u=!0,rounded:m=!0,className:p,sizes:f,priority:v,imageAttributes:h}=e,x=!!(r||s);return(0,a.jsxs)("figure",{ref:t,className:(0,i.cn)(p),children:[(0,a.jsx)(o._,{src:l,alt:n,width:d,height:c,shadow:u,rounded:m,sizes:f,priority:v,...h}),x&&(0,a.jsxs)("figcaption",{className:"mt-2 text-sm leading-tight",children:[r&&(0,a.jsx)("p",{children:r}),s&&(0,a.jsxs)("p",{className:"m-0 text-gray-500",children:["(",s,")"]})]})]})});s.displayName="Figure";let d=e=>{var t,l,n;let{imageType:o,internalImageId:d,externalImageUrl:c,controls:u,altText:m,isPriorityImage:p,imageAttributes:f,linkUrl:v}=e;if(!o||!d&&!c)return(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Missing data for the image block."});let h="internal"===o&&(e=>"object"==typeof e&&null!==e&&"url"in e)(d),x=h?(null==d?void 0:d.url)||"":c||"",g=h?(null==d||null==(t=d.seo)?void 0:t.altText)||"":m||"",b="",w="";(null==u?void 0:u.showCaption)&&((!h||(null==u?void 0:u.useImageCaption))&&"external"!==o?h&&(b=(null==d||null==(l=d.seo)?void 0:l.caption)||"",w=(null==d||null==(n=d.seo)?void 0:n.credit)||""):(b=(null==u?void 0:u.caption)||"",w=(null==u?void 0:u.credit)||""));let y=(0,a.jsx)(s,{src:x,alt:g,caption:b,credit:w,priority:!!p,className:(0,i.cn)("my-4 flex flex-col",{"max-w-[480px]":(null==u?void 0:u.width)==="half"}),sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px",imageAttributes:f});return v?(0,a.jsx)(r.default,{href:v,target:"_blank",rel:"noopener noreferrer nofollow",children:y}):y},c=d},2406:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TaboolaBlock:()=>x,default:()=>g});var a=l(16852),n=l(77976),r=l(11182),i=l(17038),o=l(18046),s=l(71232);function d(e){let{className:t,...l}=e;return(0,a.jsx)("div",{"data-slot":"card",className:(0,s.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl py-6",t),...l})}function c(e){let{className:t,...l}=e;return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,s.cn)("@container/card-header has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6",t),...l})}function u(e){let{className:t,...l}=e;return(0,a.jsx)("div",{"data-slot":"card-content",className:(0,s.cn)("px-6",t),...l})}var m=l(38038),p=l(65659),f=l(11808);let v=function(){let{DISCONNECTED_user:e}=(0,p.J)(),[t,l]=(0,n.useState)(!1),a=(0,m.md)(f.W);return(0,n.useEffect)(()=>{a&&l((()=>{try{var e,t,l,a;if(void 0!==(null==(e=window)?void 0:e.DprSdk)){let e=null==(l=window)||null==(t=l.DprSdk)?void 0:t.getFeatureFlags();return null==(a=null==e?void 0:e.taboola)||a}return!0}catch(e){return!0}})())},[a]),t&&!(null==e?void 0:e.isUserPremium)},h=(()=>{let e="",t=!1;return()=>({pushTaboolaCommand:(0,n.useCallback)((l,a,n)=>{window._taboola=window._taboola||[],a!==e&&(""===e||t||(window._taboola.push({notify:"newPageLoad"}),t=!0),e=a,t=!1),window._taboola.push({[n]:"auto",url:a}),window._taboola.push(l),window._taboola.push({flush:!0})},[])})})(),x=e=>{let{taboolaId:t,taboolaUiMode:l,placementName:m,targetType:p,title:f="",pageType:x,taboolaType:g,showTaboola:b=!0}=e,w=(0,n.useRef)(null),y=v(),[j,N]=(0,n.useState)("pending"),C=(0,r.usePathname)(),{isTaboolaLoaded:_}=(()=>{let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(e)return;if(document.getElementById("tb_loader_script"))return void t(!0);window._taboola=window._taboola||[],window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("tbl_ic");let l=document.createElement("script");l.src="//cdn.taboola.com/libtrc/theweatherchannel/loader.js",l.id="tb_loader_script",l.async=!0,l.onload=()=>{t(!0)},l.onerror=()=>{console.error("Failed to load Taboola script.")},document.body.appendChild(l)},[e]),{isTaboolaLoaded:e}})(),A=y&&b,{pushTaboolaCommand:k}=h(),E=(0,n.useMemo)(()=>{let e=(0,i.yw)();return"".concat(e).concat(C||"")},[C]),T="empty"!==j,S=(0,n.useMemo)(()=>{let e="taboola-below-content-thumbnails---video"===t||"taboola-below-content-thumbnails-video"===t;return{container:T?"generic"!==g?"wx-media-object gradient-overlay thirdparty-feed border":e?"gap-2 py-0 md:rounded-md max-sm:rounded-none":"gap-2 py-5":"hidden",headerContainer:e?"mx-4 px-0 pt-6 max-sm:border-t max-sm:border-gray-200":"px-4",header:e?"text-[20px] font-semibold":"text-xl font-semibold",contentContainer:"z-40 px-4"}},[t,g,T]);return((0,n.useEffect)(()=>{A&&_&&"pending"===j&&k({mode:l,container:t,placement:m,target_type:p},E,x)},[A,_,j,k,t,l,m,p,E,x]),(0,n.useEffect)(()=>{let e=w.current;if(!e||!A||!_)return;let t=new MutationObserver((t,l)=>{try{e.hasChildNodes()?(N("populated"),l.disconnect()):"pending"!==j&&(N("empty"),l.disconnect())}catch(e){console.warn("Error in TaboolaBlock content observer",e)}});return t.observe(e,{childList:!0}),e.hasChildNodes()&&(N("populated"),t.disconnect()),()=>t.disconnect()},[A,_,j]),A&&_)?"invisible"===g?(0,a.jsx)("div",{id:t,ref:w}):(0,a.jsxs)("section",{className:"@container",children:[(0,a.jsx)(o.DebugCollector,{componentName:"TaboolaBlock",data:{props:{taboolaId:t,taboolaUiMode:l,placementName:m,targetType:p,pageUrl:E,pageType:x,taboolaContentState:j,shouldShow:T}}}),"generic"===g?(0,a.jsxs)(d,{className:S.container,children:[f&&T&&(0,a.jsx)(c,{className:S.headerContainer,children:(0,a.jsx)("h2",{className:S.header,children:f})}),(0,a.jsx)(u,{className:(0,s.cn)(S.contentContainer),children:(0,a.jsx)("div",{id:t,className:"bg-none",ref:w})})]}):(0,a.jsxs)("div",{className:S.container,children:[f&&T&&(0,a.jsx)("header",{"aria-label":"Taboola",className:"panel-heading mb-2",children:(0,a.jsx)("h2",{"data-testid":"taboolaHeading",className:"text-lg font-medium",children:f})}),(0,a.jsx)("div",{id:t,className:"flex min-h-[300px] w-full items-center justify-center",ref:w})]})]}):null},g=x},13654:(e,t,l)=>{"use strict";function a(e){return"string"!=typeof e}function n(e){return"object"==typeof e&&null!==e&&"url"in e&&("mimeType"in e||"seo"in e&&"altText"in e.seo)}l.d(t,{QY:()=>a,bt:()=>n})},13782:(e,t,l)=>{"use strict";t.Sn=o;let a=l(27327),n=l(41661),r=l(86078),i=l(83659);async function o(e){let{geocode:t,language:l="en-US"}=e,o=(0,n.urlFrom)((0,a.getSunWeatherAlertHeadlinesUrlConfig)({geocode:t,language:l})),s=await fetch(o,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),d=await (0,r.handleFetchResponse)(s);return{...d,alerts:(0,i.getSortedAlerts)(d.alerts)}}},15641:(e,t,l)=>{"use strict";t.p_=i;let a=l(41661),n=l(86078),r=l(91955);async function i(e){let t=(0,r.getEmailPreferencesSetUrlConfig)(),l=(0,a.urlFrom)(t),i=JSON.stringify(function(e){let{subscriptions:t,email:l,mParticleId:a}=e,n={};return t&&(n.subscriptions=t),l&&(n.email=l),a&&(n.mParticleId=a),n}(e)),o=await fetch(l,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:i});if(200===o.status||400===o.status){let e=await o.json();return console.log({json:e}),e}return(0,n.handleFetchResponse)(o)}},17038:(e,t,l)=>{"use strict";l.d(t,{yw:()=>r});var a=l(16559),n=l(37811);let r=()=>{if(a.A){let e=window.location.protocol,t=window.location.hostname,l=window.location.port;return"".concat(e,"//").concat(t).concat(l?":".concat(l):"")}return(()=>{let e=n.env.NEXT_PUBLIC_SERVER_URL;return!e&&n.env.VERCEL_PROJECT_PRODUCTION_URL?"production"===n.env.VERCEL_ENV?"https://weather.com":"https://".concat(n.env.VERCEL_PROJECT_PRODUCTION_URL):(e||(e="https://local.weather.com"),e)})()}},18046:(e,t,l)=>{"use strict";l.r(t),l.d(t,{DebugCollector:()=>i});var a=l(77976),n=l(84065);let r=(0,l(26839).h)("DebugCollector");function i(e){let{componentName:t,data:l,page:i,onUpdateData:o,onSetPageData:s}=e,{updateComponentData:d,setPageData:c}=(0,n.K)(),u=(0,a.useRef)(!1),m=o||d,p=s||c;return(0,a.useEffect)(()=>{if(l)return r.lifecycle("Collecting component data for ".concat(t),{dataKeys:Object.keys(l),hasPerformance:!!l.performance,hasContext:!!l.context}),m(t,{...l,_collectedAt:new Date().toISOString()}),()=>{r.lifecycle("Cleaning up data for ".concat(t)),m(t,null)}},[t,l,m]),(0,a.useEffect)(()=>{i&&!u.current&&(r.lifecycle("Setting page metadata",{title:i.title,assetName:i.assetName,collection:i.collection}),p({...i,_updatedAt:new Date().toISOString()}),u.current=!0)},[i,p]),null}},19282:(e,t,l)=>{"use strict";l.d(t,{A:()=>m});var a=l(16852),n=l(77976);let r={src:"/_next/static/media/SlideshowIcon.2da11b0d.png"};var i=l(61391),o=l(38747),s=l(71559),d=l(23688);let c=e=>!!e&&""!==e.trim()&&(/\.(jpg|jpeg|png|gif|webp|bmp|tiff|svg)$/i.test(e)||/^[A-Z0-9_]+\d*\.[a-zA-Z]+$/i.test(e)||/^[a-zA-Z0-9_-]+\d+$/i.test(e)||/[._][0-9]+/i.test(e)||/^[A-Z0-9_]+$/i.test(e)),u=e=>{var t,l;let{id:n,assets:u,currentSlideIndex:m,totalAssets:p,previous:f,next:v,sendTrackString:h,rounded:x=!1}=e;if(!u.length||m=u.length)return null;let g=u[m],b="".concat(m+1,"/").concat(p),w=0===m,y=m===p-1;return(0,a.jsxs)("figure",{id:n,className:"relative mb-4 mt-4 w-full max-w-full",children:[(0,a.jsx)("div",{className:x?"overflow-hidden rounded-[16px]":"",children:(0,a.jsx)("div",{className:"relative w-full ".concat(x?"rounded-[16px]":""),children:(0,a.jsx)("div",{className:"relative w-full ".concat(x?"rounded-[16px]":""),style:{paddingTop:"56.25%"},children:(0,a.jsx)(i.A,{className:"absolute left-0 top-0 h-full w-full object-cover",src:g.url||"",alt:(null==(t=g.seo)?void 0:t.altText)||"",rounded:x,width:800,height:450,sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px"})})})}),(0,a.jsx)("figcaption",{children:(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("div",{className:"flex items-center pt-2",children:(0,a.jsxs)("div",{className:"relative flex w-full items-center",children:[(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)(i.A,{src:r.src,alt:"Slideshow",width:20,height:20,className:"h-5 w-5",rounded:!1})}),(0,a.jsx)("div",{className:"ml-2 mr-2",children:(0,a.jsx)(o.EY,{variant:"Body.S",color:"primary",children:b})}),(0,a.jsx)("div",{className:"flex-grow"}),(0,a.jsx)("button",{type:"button","aria-label":"Previous",className:"mr-[10px] flex cursor-pointer items-center justify-center border-none bg-transparent p-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:w,onClick:()=>{h("wxnode_slideshow_link-previous"),f()},children:(0,a.jsx)("span",{className:"flex items-center justify-center",children:(0,a.jsx)("span",{className:"flex items-center justify-center","aria-label":"chevron left",children:(0,a.jsx)(s.A,{className:"h-5 w-5 ".concat(w?"text-gray-200":"text-blue-500")})})})}),(0,a.jsx)("button",{type:"button","aria-label":"Next",className:"ml-auto flex cursor-pointer items-center justify-center border-none bg-transparent p-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:y,onClick:()=>{h("wxnode_slideshow_link-next"),v()},children:(0,a.jsx)("span",{className:"flex items-center justify-center",children:(0,a.jsx)("span",{className:"flex items-center justify-center","aria-label":"chevron right",children:(0,a.jsx)(d.A,{className:"h-5 w-5 ".concat(y?"text-gray-200":"text-blue-500")})})})})]})}),g.filename&&!c(g.filename)&&(0,a.jsx)(o.EY,{variant:"Title.S",color:"primary",elementType:"h3",className:"mb-1 mt-0",children:g.filename}),(null==(l=g.seo)?void 0:l.caption)&&(0,a.jsx)(o.EY,{variant:"Body.S",color:"primary",className:"py-1 pb-0 ".concat(g.filename&&!c(g.filename)?"":"mt-0 pt-0"),children:g.seo.caption}),(0,a.jsx)("div",{className:"border-b border-gray-200 py-2"})]})})]})},m=e=>{let{id:t,assets:l=[],allSlides:r=[],totalAssets:i=r.length||0,loadNextSlideshowPage:o,sendTrackString:s=()=>{},rounded:d=!1}=e,c=(0,n.useId)(),m=t||"slideshow-".concat(c),p=r.length>0,[f,v]=(0,n.useState)(0),[h,x]=(0,n.useState)(1),[g,b]=(0,n.useState)(1),[w,y]=(0,n.useState)(p?r.slice(0,20):l),j=(0,n.useCallback)(e=>{if(!e)return!1;let{top:t}=e.getBoundingClientRect();return t>=-100&&t{if(f-1>=0){let e=f-1?Math.ceil((f-1)/20):1;v(f-1),x(e)}},[f]),C=(0,n.useCallback)(()=>{if(f+1=g){let e=20*h;if(e-3l.length&&h>=g){let e=20*h;e-3{if(j(document.querySelector("#".concat(m))))switch(e.key){case"ArrowLeft":N();break;case"ArrowRight":C()}},[m,j,N,C]);return(0,n.useEffect)(()=>(document.body.addEventListener("keydown",_),()=>{document.body.removeEventListener("keydown",_)}),[_]),(0,n.useEffect)(()=>{p&&0===w.length&&y(r.slice(0,20))},[p,r,w.length]),(0,a.jsx)(u,{id:m,assets:p?w:l,currentSlideIndex:f,totalAssets:i,previous:N,next:C,sendTrackString:s,rounded:d})}},19808:e=>{e.exports={jwplayerContainer:"JWPlayer_jwplayerContainer__u4Psj"}},20022:(e,t,l)=>{"use strict";l.r(t),l.d(t,{SlideshowBlock:()=>i,default:()=>o});var a=l(16852);l(77976);var n=l(19282),r=l(52528);let i=e=>{let{slides:t=[],settings:l={},id:i}=e;if(!(0,r.J)(t))return null;let o=[];for(let e of t){var s,d;if(!e.imageAsset){console.error("Slide missing imageAsset:",e);continue}let t=null==e?void 0:e.imageAsset;if("string"==typeof t){console.error("imageAsset is a string ID, expected Image object:",t);continue}if(!t.url){console.error("Image object missing URL:",t);continue}let l={...t,seo:{...t.seo,caption:e.imageCaption||(null==(s=t.seo)?void 0:s.caption)||"",altText:e.imageTitle&&""!==e.imageTitle.trim()?e.imageTitle:(null==(d=t.seo)?void 0:d.altText)||""},...!e.imageTitle||""===e.imageTitle.trim()||/\.(jpg|jpeg|png|gif|webp|bmp|tiff|svg)$/i.test(e.imageTitle)||/^[A-Z0-9_]+\d*\.[a-zA-Z]+$/i.test(e.imageTitle)||/^[a-zA-Z0-9_-]+\d+$/i.test(e.imageTitle)||/[._][0-9]+/i.test(e.imageTitle)||/^[A-Z0-9_]+$/i.test(e.imageTitle)?{}:{filename:e.imageTitle}};o.push(l)}return 0===o.length?(console.error("SlideshowBlock - No valid assets after transformation"),(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Could not load images for the slideshow."})):(0,a.jsx)(n.A,{id:i||"slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:o.slice(0,20),allSlides:o,totalAssets:o.length,rounded:(null==l?void 0:l.rounded)||!1,blockType:"Slideshow",slides:t,settings:l,sendTrackString:()=>{}})},o=i},24566:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CTABlock:()=>r,default:()=>i});var a=l(16852);l(77976);var n=l(61391);let r=e=>{let{title:t,subTitle:l,subText:r,ctaStyle:i,media:o,buttonText:s,linkUrl:d,openInNewTab:c,backgroundColor:u}=e,m=void 0!=o.url?o.url:"string"==typeof o?o:null;return(0,a.jsx)("section",{className:"@container not-prose mx-auto w-full max-w-4xl rounded-md ".concat({white:"bg-white","light-gray":"bg-gray-100","brand-blue":"bg-blue-500",accent:"bg-accent"}[u||"white"]," p-5 shadow-2xl"),children:(0,a.jsx)("div",{className:"cta-block ".concat(i),children:(0,a.jsxs)("div",{className:"cta-content text-black",children:[(0,a.jsx)("h2",{className:"mb-6 text-2xl font-bold",children:t}),m&&(0,a.jsx)("a",{href:d,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,className:"mb-4 block overflow-hidden rounded-lg",children:(0,a.jsx)("div",{className:"relative w-full",children:(0,a.jsx)(n.A,{src:m,alt:t})})}),l&&(0,a.jsx)("h2",{className:"mb-2 text-lg font-bold",children:l}),r&&(0,a.jsx)("p",{className:"mb-4",children:r}),"standard"===i&&(0,a.jsx)("div",{className:"mt-4 flex justify-end",children:(0,a.jsx)("a",{href:d,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,className:"inline-block rounded-lg bg-black px-6 py-3 text-white transition-colors hover:bg-gray-800",children:s||"Learn More"})})]})})})},i=r},25505:(e,t,l)=>{"use strict";l.d(t,{S:()=>h});var a=l(16852),n=l(61391),r=l(77976),i=l(1990);let o=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...o,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Play"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M5.5 11.5A.5.5 0 0 1 5 11V5a.5.5 0 0 1 .724-.447l6 3a.5.5 0 0 1 0 .894l-6 3a.5.5 0 0 1-.224.053M6 5.809v4.382L10.382 8z"}),(0,a.jsx)("path",{d:"M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2m0-1a7 7 0 1 0 0 14A7 7 0 0 0 8 1"})]})]})}),s=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:o,...e}));s.displayName="PlayOutline";let d=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...o,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Book"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M13 5H9.5v1H13zM13 7.5H9.5v1H13zM13 10H9.5v1H13zM6.5 5H3v1h3.5zM6.5 7.5H3v1h3.5zM6.5 10H3v1h3.5z"}),(0,a.jsx)("path",{d:"M14 2.5H2a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1m-12 1h5.5v9H2zm6.5 9v-9H14v9z"})]})]})}),c=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:d,...e}));c.displayName="Book";var u=l(38850),m=l(71232),p=l(38747);let f={video:s,article:c},v={col:"flex-col",row:"flex-row","col-reverse":"flex-col-reverse","row-reverse":"flex-row-reverse"},h=e=>{let{heading:t,description:l,content:r,href:i,target:o,imageUrl:s,altText:d,onClick:c,className:h,imageWrapClassName:x,imageClassName:g,contentClassName:b,badge:w,icon:y="video",showIcon:j,iconClassName:N,overlayClassName:C,dir:_="row"}=e,A=f[y],k=!!(t||l||r),E=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:(0,m.cn)("relative aspect-video w-full overflow-hidden rounded-md",x),children:[(0,a.jsx)(n.A,{src:s,alt:d||l||"",fill:!0,className:(0,m.cn)("absolute left-0 top-0 h-full w-full object-cover",g),sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 25vw"}),(0,a.jsx)("div",{className:(0,m.cn)("absolute inset-0 flex items-center justify-center",C),children:j&&A&&(0,a.jsx)(A,{className:(0,m.cn)("size-10 text-white",N)})}),w&&(0,a.jsx)("div",{className:"absolute bottom-2 right-2 rounded-full bg-black/70 px-[10px] py-2 text-[14px] leading-none text-white md:bottom-1 md:right-1 md:p-1 md:text-[10px]",children:w})]}),k&&(0,a.jsx)("div",{className:b,children:r||(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsx)(p.Ay,{elementType:"span",variant:"Title.S",className:"mb-1 text-xs",color:"placeholder",children:t}),l&&(0,a.jsx)(p.Ay,{elementType:"h2",className:"mb-1 font-normal leading-tight",children:l})]})})]}),T=(0,m.cn)("not-prose font-normal text-gray-900 no-underline hover:no-underline flex",v[_],h);return!c&&i?(0,a.jsx)(u.default,{className:T,href:i,target:o,children:E}):(0,a.jsx)("div",{className:T,onClick:c,children:E})}},25956:(e,t,l)=>{"use strict";l.d(t,{yW:()=>p});var a=l(65437),n=l(32189);let r="",i="",o=1,s=0,d=0,c={adImpression:!1,videoAttempt:!1,videoPlayed:!1,videoStarted:!1,videoCompleted:!1,videoEnd:!1};function u(){Object.keys(c).map(e=>{c[e]=!1}),s=0,d=0,i=""}function m(e,t){var l,r,i,o,s,d,c,u,m,p,f,v,h,x,g,b,w,y,j,N,C,_,A,k,E,T,S,P,I,M,F,R,L,D,W,O,U;let B=t||e.getPlaylistItem();return{adBlock:e.getAdBlock(),adsMetricsUnitAndZone:null==B||null==(r=B.custom)||null==(l=r.ctx)?void 0:l.adzone,aspectRatio:null==e||null==(i=e.getConfig())?void 0:i.aspectratio,assetName:(0,a.EY)(null!=(O=null==B||null==(s=B.custom)||null==(o=s.ctx)?void 0:o.assetName)?O:""),collection:null==B||null==(c=B.custom)||null==(d=c.ctx)?void 0:d.pcollid,collectionId:null==B||null==(m=B.custom)||null==(u=m.ctx)?void 0:u.pcollid,contentId:null==B||null==(f=B.custom)||null==(p=f.ctx)?void 0:p.id,entitlements:(0,n.X)(null!=(U=null==B||null==(h=B.custom)||null==(v=h.ctx)?void 0:v.entitlements)?U:[]),iabContent:(0,a.IA)((null==B||null==(g=B.custom)||null==(x=g.ctx)?void 0:x.iab)||{}),id:null==B||null==(w=B.custom)||null==(b=w.ctx)?void 0:b.id,duration:null==B||null==(j=B.custom)||null==(y=j.ctx)?void 0:y.duration,lastmodifieddate:null==B||null==(_=B.custom)||null==(C=_.ctx)||null==(N=C.lastmodifieddate)?void 0:N.toString(),muted:e.getMute(),premiumContent:null==B||null==(k=B.custom)||null==(A=k.ctx)?void 0:A.premium,publishdate:null==B||null==(S=B.custom)||null==(T=S.ctx)||null==(E=T.publishdate)?void 0:E.toString(),providerName:null==B||null==(I=B.custom)||null==(P=I.ctx)?void 0:P.providername,tagsGeo:(0,n.X)(null==B||null==(F=B.custom)||null==(M=F.ctx)?void 0:M.tagsGeo),tagsKeyword:(0,n.X)(null==B||null==(L=B.custom)||null==(R=L.ctx)?void 0:R.tagsKeyword),tagsStorm:(0,n.X)(null==B||null==(W=B.custom)||null==(D=W.ctx)?void 0:D.tagsStorm)}}let p=[{eventName:"ready",callback:e=>{let{player:t,trackVideoEvent:l}=e;window.addEventListener("beforeunload",()=>{c.videoStarted&&!c.videoEnd&&(t.getPlaylistItem()&&!c.videoAttempt&&l&&l({eventName:"video-end",eventAttributes:{errorMessage:i,contentWatchedSeconds:s,playReason:r,videoView:o,...m(t)}}),c.videoEnd=!0)})}},{eventName:"adImpression",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();i="",u(),console.debug("JW Player callback - adImpression eventSentFlags:",c),c.adImpression=!0,a&&!c.videoAttempt&&l&&(l({eventName:"video-attempt",eventAttributes:{errorMessage:i,playReason:r,videoView:o,...m(t)}}),c.videoAttempt=!0),a&&!c.videoPlayed&&l&&(l({eventName:"video-played",eventAttributes:{errorMessage:i,playReason:r,videoView:o,...m(t)}}),c.videoPlayed=!0)}},{eventName:"viewable",callback:async e=>{let{event:t}=e;o=null==t?void 0:t.viewable}},{eventName:"playlistItem",callback:async e=>{let{player:t,trackVideoEvent:l}=e;if(c.videoStarted&&!c.videoCompleted&&!c.videoEnd){let e=t.getPlaylistIndex(),a=t.getPlaylistItem(e-1);l({eventName:"video-end",eventAttributes:{errorMessage:i,contentWatchedSeconds:s,playReason:r,videoView:o,...m(t,a)}}),c.videoEnd=!0}}},{eventName:"playAttempt",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();c.adImpression||(i="",u()),console.debug("JW Player callback - playAttempt eventSentFlags:",c),a&&!c.videoAttempt&&l&&(c.videoAttempt=!0,l({eventName:"video-attempt",eventAttributes:{errorMessage:i,playReason:r,videoView:o,...m(t)}}))}},{eventName:"firstFrame",callback:async e=>{let{player:t,trackVideoEvent:l}=e;console.debug("JW Player callback - firstFrame eventSentFlags:",c);let a=t.getPlaylistItem();a&&!c.videoPlayed&&l&&(l({eventName:"video-played",eventAttributes:{errorMessage:i,playReason:r,videoView:o,...m(t)}}),c.videoPlayed=!0),a&&!c.videoStarted&&l&&(l({eventName:"video-started",eventAttributes:{errorMessage:i,playReason:r,videoView:o,...m(t)}}),c.videoStarted=!0)}},{eventName:"complete",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();console.debug("JW Player callback - complete eventSentFlags:",c),a&&!c.videoCompleted&&l&&(l({eventName:"video-completed",eventAttributes:{errorMessage:i,playReason:r,videoView:o,...m(t)}}),c.videoCompleted=!0),c.videoStarted&&!c.videoEnd&&(l({eventName:"video-end",eventAttributes:{errorMessage:i,contentWatchedSeconds:s,playReason:r,videoView:o,...m(t)}}),c.videoEnd=!0)}},{eventName:"adStarted",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();console.debug("JW Player callback - adStarted eventSentFlags:",c),a&&l&&l({eventName:"ad-started",eventAttributes:{errorMessage:i,playReason:r,videoView:o,...m(t)}})}},{eventName:"adSkipped",callback:async e=>{let{player:t,trackVideoEvent:l}=e;t.getPlaylistItem()&&l&&l({eventName:"ad-skipped",eventAttributes:{errorMessage:i,playReason:r,videoView:o,...m(t)}})}},{eventName:"adComplete",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();console.debug("JW Player callback - adComplete eventSentFlags:",c),a&&l&&l({eventName:"ad-complete",eventAttributes:{errorMessage:i,playReason:r,videoView:o,...m(t)}})}},{eventName:"beforePlay",callback:async e=>{let{event:t}=e;r=null==t?void 0:t.playReason}},{eventName:"adError",callback:async e=>{let{event:t}=e;console.error("Video ad error:",t)}},{eventName:"error",callback:async e=>{let{event:t}=e;i=null==t?void 0:t.message,console.error("Video Player error:",t)}},{eventName:"time",callback:e=>{let{event:t}=e;if("number"==typeof(null==t?void 0:t.position)){let e=t.position-d;s+=e,d=t.position}}},{eventName:"seek",callback:e=>{let{event:t}=e;"number"==typeof(null==t?void 0:t.offset)&&(d=t.offset)}}]},27327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSunWeatherAlertHeadlinesUrlConfig=function(e){let{geocode:t,countryCode:l,areaId:a,adminDistrictCode:n,language:r}=e,i={format:"json",language:r,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return t&&(i.geocode=t),l&&(i.countryCode=l),a&&(i.areaId=a),n&&(i.adminDistrictCode=n),{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/headlines",query:i}},t.getSunWeatherAlertDetailUrlConfig=function(e){let{detailKey:t,language:l}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/detail",query:{alertId:t,format:"json",language:l,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},27972:(e,t)=>{"use strict";t.J3=t.Ny=t.rn=void 0,t.rn="daily-newsletters-1",t.Ny="marketing-emails-1",t.J3=[{subscriptionGroupName:t.rn,subscriptionGroupId:"",isSubscribed:!1,attributes:{location:""}},{subscriptionGroupName:t.Ny,subscriptionGroupId:"",isSubscribed:!1}]},34540:(e,t)=>{"use strict";var l,a,n,r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.PrecipIntensityCode=t.PrecipTypeCode=t.ThunderCategory=t.PrecipType=t.MoonPhaseCode=void 0,function(e){e.WANING_GIBBOUS="WNG",e.WAXING_CRESCENT="WXC",e.FIRST_QUARTER="FQ",e.WANING_CRESCENT="WNC",e.LAST_QUARTER="LQ",e.FULL="F",e.WAXING_GIBBOUS="WXG",e.NEW="N"}(l||(t.MoonPhaseCode=l={})),function(e){e.RAIN="rain",e.SNOW="snow",e.PRECIP="precip"}(a||(t.PrecipType=a={})),function(e){e.NO_THUNDER="0",e.THUNDER_POSSIBLE="1",e.THUNDER_EXPECTED="2",e.SEVERE_THUNDERSTORMS_POSSIBLE="3",e.SEVERE_THUNDERSTORMS_LIKELY="4",e.HIGH_RISK_OF_SEVERE_THUNDERSTORMS="5"}(n||(t.ThunderCategory=n={})),function(e){e[e.NONE=0]="NONE",e[e.RAIN=1]="RAIN",e[e.SNOW=2]="SNOW",e[e.FREEZING_RAIN=3]="FREEZING_RAIN",e[e.THUNDER=4]="THUNDER",e[e.SLEET=5]="SLEET",e[e.HAIL=6]="HAIL"}(r||(t.PrecipTypeCode=r={})),function(e){e[e.NONE=0]="NONE",e[e.VERY_LIGHT=1]="VERY_LIGHT",e[e.LIGHT=2]="LIGHT",e[e.MODERATE=3]="MODERATE",e[e.HEAVY=4]="HEAVY"}(i||(t.PrecipIntensityCode=i={}))},35854:(e,t,l)=>{"use strict";l.d(t,{v:()=>w});var a=l(26839);let n=(0,a.h)("AdUtils"),r=async e=>{let{player:t,user:l,ctx:a={},isMobile:n=!1}=e;if(!t)return;if(null==l?void 0:l.isUserPremium)return void t.play();let r=await i(a,n);r?t.playAd(r):t.play()},i=async function(e){let t,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!c())return null;let a=s(e,l),r=o({},e.iab);window.__Helios.emit("UPDATE_AD_UNIT_PATH",a);try{var i,u,m;null==(m=window.__Helios.modules)||null==(u=m.iabc)||null==(i=u.update)||i.call(u,{page:r,site:{v1:["IAB15-10_Weather"],v3:["390_Weather"]}})}catch(e){n.error("Error updating IABC parameters",e)}try{t=await d()}catch(e){t=null,n.error("Error getting ad tag",e)}return window.__Helios.emit("UPDATE_AD_UNIT_PATH",a),t},o=(e,t)=>{let l={...e};for(let e in t)Array.isArray(t[e])?(l[e]=[...l[e]||[],...t[e]],l[e]=[...new Set(l[e])]):"object"==typeof t[e]&&null!==t[e]?l[e]=o(l[e]||{},t[e]):l[e]=t[e];return l},s=(e,t)=>{let l=e.collectionAdZone||e.adzone||"video";return"".concat("/7646","/").concat("").concat(t?"mobile_smart_us":"web_weather_us","/").concat(l)},d=async()=>{let e=[];try{var t;e=await (null==(t=window)?void 0:t.__Helios.video.requestVideoBids())}catch(e){n.error("Error getting video bids",e)}return await window.__Helios.modules.videoTag.createAdTag(e)},c=()=>{try{var e,t,l,a,n;return"function"==typeof(null==(t=window.__Helios)||null==(e=t.video)?void 0:e.requestVideoBids)&&"function"==typeof(null==(n=window.__Helios)||null==(a=n.modules)||null==(l=a.videoTag)?void 0:l.createAdTag)}catch(e){return!1}},u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https";return e.replace(/^\/\//,"".concat(t,"://"))},m=e=>{let{collectionId:t,videoIndex:l,videoId:a}=e||{};return{videoCount:l,videoId:a,collectionId:t}},p=e=>"GDFP"===e||"AdSense/AdX"===e;l(16852),l(86139);var f=l(37811);let v=(0,a.h)("NewRelic");function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var l,a,n;null==(n=window)||null==(a=n.NREUM)||null==(l=a.addPageAction)||l.call(a,e,{...x(t,"meta.")})}catch(e){v.error("New Relic: sendReumEvent error",e instanceof Error?e.message:String(e))}}f.env.NEW_RELIC_RUM_ACCOUNT_ID,f.env.NEW_RELIC_RUM_APP_ID,f.env.NEW_RELIC_RUM_LICENSE_KEY;let x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.fromEntries(Object.entries(e).map(e=>{let[l,a]=e;return["".concat(t).concat(l),a]}))},g=(0,a.h)("AdEvents"),b=new Set(["amznbid","crt_pb","hb_pb"]),w=[{eventName:"ready",callback:e=>{let{event:t}=e;h("videoReady",{isViewable:!!t.viewable,setupTime:t.setupTime})}},{eventName:"beforePlay",callback:async e=>{var t;let{event:l,player:a,isFirstPlayRef:n,user:i,isMobile:o}=e;if(!(null==n?void 0:n.current))return;let s=a.getPlaylistItem(),d=null==s||null==(t=s.custom)?void 0:t.ctx;d&&(d.videoIndex=a.getPlaylistIndex()),h("videoBeforePlay",{...m(d),isViewable:!!l.viewable,playReason:l.playReason}),a.stop(),await r({player:a,user:i,ctx:d,isMobile:o}),n.current=!1}},{eventName:"adRequest",callback:e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem(),r=null==n||null==(t=n.custom)?void 0:t.ctx,i={},o=m(r);try{let e=u(l.tag||""),t=new URL(e).searchParams.get("cust_params"),a=(e=>e?e.split("&").reduce((e,t)=>{let[l,a]=t.split("=");return l&&a&&(e[l]||(e[l]=[]),e[l].push(a)),e},{}):{})(t);for(let e of Object.keys(a))b.has(e)&&(i["".concat("kv_").concat(e)]="".concat(a[e]))}catch(e){g.error("Error parsing cust_params",e)}h("videoAdRequest",{...o,isViewable:!!l.viewable,roll:l.adposition,...i})}},{eventName:"adStarted",callback:e=>{var t,l,a,n,r,i;let{event:o,player:s}=e,d=s.getPlaylistItem(),c=null==d||null==(t=d.custom)?void 0:t.ctx,{duration:u,adposition:f}=o,v=m(c),x="";try{let e=null==(i=o.ima)||null==(r=i.ad)?void 0:r.data;e&&(x=(e=>{let{adSystem:t,adId:l,adWrapperSystems:a,adWrapperIds:n}={adSystem:"",adId:"",adWrapperSystems:[],adWrapperIds:[],...e};if(p(t))return l;let r=a.findIndex(p);return r>=0&&r{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();h("videoStart",{...m(null==n||null==(t=n.custom)?void 0:t.ctx),isViewable:!!l.viewable,loadTime:l.loadTime})}},{eventName:"complete",callback:e=>{var t;let{player:l}=e,a=l.getPlaylistItem();h("videoComplete",{...m(null==a||null==(t=a.custom)?void 0:t.ctx)})}},{eventName:"adSkipped",callback:e=>{var t;let{player:l}=e,a=l.getPlaylistItem();h("videoAdSkip",{...m(null==a||null==(t=a.custom)?void 0:t.ctx)})}},{eventName:"playlistItem",callback:async e=>{var t;let{event:l,player:a,isFirstPlayRef:n,user:i,isMobile:o}=e;if(null==n?void 0:n.current)return;let{item:s}=l,d=null==s||null==(t=s.custom)?void 0:t.ctx;d.videoIndex=a.getPlaylistIndex(),a.stop(),await r({player:a,user:i,ctx:d,isMobile:o})}},{eventName:"adComplete",callback:async e=>{let{player:t}=e;t.play()}},{eventName:"adError",callback:async e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();h("videoAdError",{...m(null==n||null==(t=n.custom)?void 0:t.ctx),message:l.message,code:l.code,vastCode:l.vastCode,roll:l.adposition}),g.error("Ad error occurred",l),a.play()}},{eventName:"error",callback:async e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();h("videoError",{...m(null==n||null==(t=n.custom)?void 0:t.ctx),message:l.message,code:l.code}),g.error("Video Player error",l)}},{eventName:"setupError",callback:e=>{let{event:t}=e;h("videoSetupError",{message:t.message,code:t.code})}}]},39822:(e,t)=>{"use strict";t.C=void 0,t.C=(e,t,l)=>e&&Array.isArray(e)?e.find(e=>e.subscriptionGroupName===t)||l||null:l||null},45342:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TwitterBlock:()=>i,default:()=>o});var a=l(16852),n=l(77976);let r="twitter-script-loaded",i=e=>{let{entryMethod:t,tweetURL:l,tweetId:i,showThread:o}=e,s=(0,n.useRef)(null),d=(0,n.useCallback)(()=>"id"===t&&i?"https://twitter.com/i/status/".concat(i):"url"===t&&l?l.replace("x.com","twitter.com"):null,[t,i,l]),{isLoaded:c}=function(){let[e,t]=(0,n.useState)(()=>!!(window.twttr&&window.twttr.widgets)),[l,a]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(e)return;if(!l){if(window.twttr&&window.twttr.widgets)return void t(!0);a(new Promise(e=>{if(window.twttr&&window.twttr.widgets){t(!0),e();return}let l=document.createElement("script");l.src="https://platform.twitter.com/widgets.js",l.async=!0,l.onload=()=>{t(!0);let l=new CustomEvent(r);window.dispatchEvent(l),e()},document.body.appendChild(l)}))}l&&l.then(()=>t(!0));let n=()=>t(!0);return window.addEventListener(r,n),()=>{window.removeEventListener(r,n)}},[e,l]),{isLoaded:e}}();return(0,n.useEffect)(()=>{let e=d();e&&(s.current&&(s.current.innerHTML='\n

\n \n
\n ')),c&&window.twttr&&window.twttr.widgets&&window.twttr.widgets.load(s.current))},[d,i,l,t,o,c]),(0,a.jsx)("div",{className:"flex items-center",ref:s})},o=i},45731:(e,t,l)=>{"use strict";t.j=i;let a=l(41661),n=l(86078),r=l(91955);async function i(){let e=(0,r.getEmailPreferencesStatusUrlConfig)(),t=(0,a.urlFrom)(e),l=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"},next:{revalidate:60}});return(0,n.handleFetchResponse)(l)}},47924:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromCompactResponse=function(e){if(!e)return null;let t=Object.keys(e);return t.length&&t[0]&&void 0!==e[t[0]]&&Array.isArray(e[t[0]])?Array.from({length:e[t[0]].length},(l,a)=>{let n={};return t.forEach(t=>{let l=e[t];void 0!==l&&Array.isArray(l)&&a{"use strict";l.r(t),l.d(t,{CurrentConditionsBlock:()=>P,default:()=>I});var a=l(16852);l(77976);var n=l(62468),r=l(68779),i=l(69770),o=l(69592),s=l(628),d=l(13782),c=l(58085),u=l(95031),m=l(72094),p=l(66544),f=l(11182);let v=e=>{let{location:t}=e,l=(0,f.useParams)(),r=null==l?void 0:l.locale,{data:i,error:o,isLoading:s}=(0,n.Ay)((null==t?void 0:t.geocode)?["alerts",t.geocode]:null,e=>{let[t,l]=e;return(0,d.Sn)({geocode:l,language:r})},{revalidateOnFocus:!1,dedupingInterval:6e4}),v=(null==i?void 0:i.alerts)&&i.alerts.length>0?i.alerts[0]:null,h=v?(()=>{if(!v)return null;let{productIdentifier:e,phenomena:t,significance:l}=v;if(!e||!t||!l)return null;let a=(0,c.F)({productIdentifier:e,phenomena:t,significance:l}),n=(0,u.t)({productIdentifier:e||"",phenomena:t,significance:l}),r={1:{icon:"#fff",fill:"#ba0d00",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#ba0d00",buttonBackgroundColor:"#ba0d00"},2:{icon:"#000",fill:"#e6731f",border:"#f0f0f0",textColor:"#ffffff",backgroundColor:"#252422cc",buttonBackgroundColor:"#ffffff1a"},3:{icon:"#000",fill:"#ebbb02",border:"#f0f0f0",textColor:"#ffffff",backgroundColor:"#252422cc",buttonBackgroundColor:"#ffffff1a"},4:{icon:"#fff",fill:"#a51ccb",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#252422cc",buttonBackgroundColor:"#ffffff1a"},severe:{icon:"#fff",fill:"#ba0d00",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#ba0d00",buttonBackgroundColor:"#ba0d00"}};return r[n?"severe":a]||r[4]})():null,x=v?(0,c.F)({productIdentifier:v.productIdentifier,phenomena:v.phenomena,significance:v.significance}):null,g=v?(0,u.t)({productIdentifier:v.productIdentifier,phenomena:v.phenomena,significance:v.significance}):null;return s||o||!v?null:(0,a.jsxs)("div",{className:"flex items-center gap-4 rounded-sm px-2 py-2 text-sm",style:{backgroundColor:null==h?void 0:h.backgroundColor,color:null==h?void 0:h.textColor},role:"alert","aria-live":"polite",children:[(0,a.jsxs)("div",{className:"flex flex-1 gap-2",children:[v&&(0,a.jsx)(m.AlertIcon,{productIdentifier:v.productIdentifier,phenomena:v.phenomena,significance:v.significance,className:"h-4 w-4 items-start","aria-hidden":"true"}),(0,a.jsx)("span",{className:"uppercase",children:v.eventDescription})]}),i&&i.alerts.length>1&&(0,a.jsxs)(p.$n,{variant:"outline",size:"sm",style:{backgroundColor:null==h?void 0:h.buttonBackgroundColor,...1===x||g?{outline:"solid 1px #ffffff"}:{}},className:"rounded-xs flex h-6 items-center justify-center border-0 px-2 py-2 text-xs text-white hover:bg-transparent hover:text-white","aria-label":"View ".concat(i.alerts.length-1," more alerts"),children:["+",i.alerts.length-1," MORE"]})]})};var h=l(38747),x=l(66864),g=l(25392);let b=e=>{let{location:t,weatherData:l,forecastData:n,isLoading:r,error:i,formattedTime:o,video:s}=e,d=(0,g.c3)("CurrentConditions");return t?r?(0,a.jsx)(j,{location:t}):!i&&l&&n?(0,a.jsx)(w,{location:t,weatherData:l,forecastData:n,formattedTime:o,video:s}):(0,a.jsx)(y,{location:t,error:i}):(0,a.jsx)(j,{message:d("loadingLocation")})},w=e=>{let{location:t,weatherData:l,forecastData:n,formattedTime:r,video:i}=e,o=(0,g.c3)("CurrentConditions");return(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between bg-teal-800 p-4 text-white",children:[(0,a.jsx)(h.Ay,{variant:"Title.S",color:"inverse",elementType:"h2",children:t.presentationName}),(0,a.jsx)(h.Ay,{color:"inverse",children:o("asOf",{formattedTime:r})})]}),(0,a.jsxs)("div",{className:"flex min-h-[100px] flex-col bg-teal-600 p-4 text-white",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsxs)(h.Ay,{variant:"Display.XL",color:"inverse",elementType:"h2",children:[Math.round(l.temperature),"\xb0"]}),(0,a.jsx)("div",{className:"ml-4",children:(0,a.jsx)(x.WxIcon,{iconCode:l.iconCode,className:"lightBG h-20 w-20","aria-label":l.wxPhraseLong,iconTheme:"lightBG"})})]}),(0,a.jsxs)("div",{className:"mt-auto flex items-end justify-between",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)(h.Ay,{variant:"Title.M",color:"inverse",elementType:"p",children:l.wxPhraseLong}),(0,a.jsxs)(h.Ay,{className:"mt-2",variant:"Title.M",color:"inverse",elementType:"p",children:[o("dayTempLabel"),"\xa0",Math.round(n.temperatureMax),"\xb0\xa0•\xa0",o("nightTempLabel"),"\xa0",Math.round(n.temperatureMin),"\xb0"]})]}),(0,a.jsx)("div",{className:"max-w-[50%]",children:(0,a.jsx)(v,{location:t})})]})]}),i&&(0,a.jsx)(N,{title:i.title,url:i.url})]})},y=e=>{let{location:t,error:l}=e;return(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg",children:[(0,a.jsx)("div",{className:"flex items-center justify-between bg-slate-800 p-4 text-white",children:(0,a.jsx)("h2",{className:"text-xl font-medium",children:t.presentationName})}),(0,a.jsxs)("div",{className:"flex min-h-[100px] flex-col bg-teal-600 p-8 text-white",children:[(0,a.jsx)("div",{className:"flex flex-grow items-center justify-center",children:(0,a.jsx)("div",{className:"text-xl text-red-300",children:(null==l?void 0:l.message)||"Unable to load weather data"})}),(0,a.jsx)("div",{className:"mt-auto flex items-end justify-end",children:(0,a.jsx)("div",{className:"max-w-[50%]",children:(0,a.jsx)(v,{location:t})})})]})]})},j=e=>{let{location:t,message:l="Loading weather data..."}=e,n=(0,g.c3)("CurrentConditions");return(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg",children:[(0,a.jsx)("div",{className:"flex items-center justify-between bg-slate-800 p-4 text-white",children:(0,a.jsx)("h2",{className:"text-xl font-medium",children:t?t.presentationName:n("loadingLocation")})}),(0,a.jsxs)("div",{className:"flex min-h-[100px] flex-col bg-teal-600 p-8 text-white",children:[(0,a.jsx)("div",{className:"flex flex-grow items-center justify-center",children:(0,a.jsx)("div",{className:"animate-pulse text-xl",children:l})}),t&&(0,a.jsx)("div",{className:"mt-auto flex items-end justify-end",children:(0,a.jsx)("div",{className:"max-w-[50%]",children:(0,a.jsx)(v,{location:t})})})]})]})},N=e=>{let{title:t}=e;return(0,a.jsxs)("div",{className:"flex cursor-pointer items-center gap-3 bg-teal-800 p-4 text-white transition-colors hover:bg-teal-700",children:[(0,a.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-white text-teal-800",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M4.5 5.653c0-1.426 1.529-2.33 2.779-1.643l11.54 6.348c1.295.712 1.295 2.573 0 3.285L7.28 19.991c-1.25.687-2.779-.217-2.779-1.643V5.653z",clipRule:"evenodd"})})}),(0,a.jsxs)(h.Ay,{color:"inverse",children:["Watch: ",t]})]})};var C=l(18046),_=l(38038),A=l(47887),k=l(29590);let E=e=>{let{location:t,video:l}=e,{effectiveLocation:d,isLocationLoading:c,locationError:u}=(0,r.s)({location:t}),{weatherData:m,forecastData:p,isLoading:v,error:h,formattedTime:x}=function(e){var t,l,a,r,d;let c=(0,f.useParams)(),u=null==c?void 0:c.locale,m=(0,_.md)(A.Yt),p=null==(t=(0,k.xP)(m))?void 0:t.code,{data:v,error:h,isLoading:x}=(0,n.Ay)(e?["weather",e.geocode,p]:null,e=>{let[t,l,a]=e;return(0,i.z)({geocode:l,units:a,language:u})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:g,error:b,isLoading:w}=(0,n.Ay)(e?["daily-forecast",e.geocode,p]:null,t=>{let[l,a,n]=t;return e?(0,o.v1)({geocode:a,units:n,language:u}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),y=v?{temperature:v.temperature,wxPhraseLong:v.wxPhraseLong,iconName:s.ICON_CODE_MAP[v.iconCode]||"na",iconCode:v.iconCode,validTimeLocal:v.validTimeLocal}:void 0,j=g&&g.length>0?{temperatureMax:null!=(r=null==(l=g[0])?void 0:l.calendarDayTemperatureMax)?r:0,temperatureMin:null!=(d=null==(a=g[0])?void 0:a.calendarDayTemperatureMin)?d:0}:void 0,N=y?((e,t)=>{if(!e)return"";try{let l=new Date(e),a={hour:"numeric",minute:"2-digit",hour12:!0,timeZoneName:"short"};if(!t)return l.toLocaleTimeString("en-US",a);return l.toLocaleTimeString(t,a)}catch(e){return console.error("Error formatting time:",e),""}})(y.validTimeLocal):"";return{weatherData:y,forecastData:j,isLoading:x||w,error:h||b,formattedTime:N}}(d),g=v||c,w=h||u;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(C.DebugCollector,{componentName:"CurrentConditions",data:{props:{location:t,video:l},state:{effectiveLocation:d,isLocationLoading:c,isLoading:g,weatherData:m,forecastData:p,formattedTime:x,error:w,componentState:w&&"error"||g&&"loading"||"ready"},performance:{renderCount:void 0}}}),(0,a.jsx)(b,{location:d,weatherData:m,forecastData:p,isLoading:g,error:w,formattedTime:x,video:l})]})};var T=l(34891),S=l(60305);let P=e=>{let{locationProvider:t,locationEntry:l}=e,r=(0,f.useParams)(),i=null==r?void 0:r.locale,{data:o,error:s,isLoading:d}=(0,n.Ay)("specified"===t&&l?["specified-location-data",l]:null,()=>l?(0,T.PT)(l,i):null,{revalidateOnFocus:!1,dedupingInterval:3e5});return"specified"===t&&d?(0,a.jsx)("div",{children:"Loading location data..."}):"specified"===t&&s?(0,a.jsxs)("div",{children:["Error loading location data: ",s.message]}):"specified"===t&&o&&l?(0,a.jsx)(E,{location:(0,S.I)(o)}):"specified"!==t?(0,a.jsx)(E,{}):null},I=P},52528:(e,t,l)=>{"use strict";l.d(t,{J:()=>a});let a=e=>Array.isArray(e)&&e.length>0},58729:(e,t,l)=>{"use strict";l.r(t),l.d(t,{MorningBriefBlock:()=>G,default:()=>V});var a=l(16852),n=l(77976),r=l(98392),i=l(44430),o=l(30856),s=l(66544),d=l(55843),c=l(62468),u=l(98830),m=l(72603),p=l(27768),f=l(3768),v=l(71232);function h(e){let{className:t,...l}=e;return(0,a.jsx)(p.uB,{"data-slot":"command",className:(0,v.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...l})}function x(e){let{className:t,...l}=e;return(0,a.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,a.jsx)(f.A,{className:"size-4 shrink-0 opacity-50"}),(0,a.jsx)(p.uB.Input,{"data-slot":"command-input",className:(0,v.cn)("placeholder:text-muted-foreground outline-hidden flex h-10 w-full rounded-md bg-transparent py-3 text-sm disabled:cursor-not-allowed disabled:opacity-50",t),...l})]})}function g(e){let{className:t,...l}=e;return(0,a.jsx)(p.uB.List,{"data-slot":"command-list",className:(0,v.cn)("max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden",t),...l})}function b(e){let{className:t,...l}=e;return(0,a.jsx)(p.uB.Group,{"data-slot":"command-group",className:(0,v.cn)("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...l})}function w(e){let{className:t,...l}=e;return(0,a.jsx)(p.uB.Item,{"data-slot":"command-item",className:(0,v.cn)("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",t),...l})}l(458);var y=l(89680),j=l(11182);function N(e){var t;let{label:l,placeholder:r,className:o,location:p,onChangeLocation:f}=e,N=(0,j.useParams)(),C=null==N?void 0:N.locale,[_,A]=(0,n.useState)(!1),[k,E]=(0,n.useState)(""),{isLoading:T,data:S}=function(e,t){let l=e.trim().length>0,{isLoading:a,data:n,error:r}=(0,c.Ay)(l?["search/locations",encodeURIComponent(e)]:null,async()=>await (0,d.SK)(e,t));return{isLoading:a,data:n,error:r}}((0,u.A)(k,300),C);return(0,a.jsxs)(m.AM,{open:_,onOpenChange:A,children:[(0,a.jsx)(m.Wv,{asChild:!0,children:(0,a.jsxs)(s.$n,{variant:"outline",role:"combobox",className:(0,v.cn)("text-muted-foreground flex w-full text-nowrap bg-white px-2",o),children:[(0,a.jsx)("div",{children:T?(0,a.jsx)(i.A,{className:"animate-spin"}):(0,a.jsx)(y.A,{})}),(0,a.jsx)("div",{className:"flex flex-1 px-2 text-start",children:null!=(t=null==p?void 0:p.displayName)?t:l})]})}),(0,a.jsx)(m.hl,{className:"w-[var(--radix-popover-trigger-width)]",showArrow:!1,children:(0,a.jsxs)(h,{shouldFilter:!1,children:[(0,a.jsx)(x,{placeholder:r,value:k,onValueChange:E}),(0,a.jsx)(g,{children:(0,a.jsx)(b,{children:null==S?void 0:S.map(e=>(0,a.jsx)(w,{value:e.locId,onSelect:()=>{null==f||f(e),A(!1)},children:e.address},e.locId))})})]})})]})}var C=l(48774);function _(e){let{label:t,error:l,className:n,...r}=e;return(0,a.jsxs)("div",{className:"w-full",children:[t&&(0,a.jsx)("label",{className:"text-sm",children:t}),(0,a.jsx)(C.p,{...r,className:l?"".concat(n," border-red-500"):n})]})}var A=l(38850);let k={"{{terms}}":{text:"Terms",url:"https://".concat("weather.com","/legal")},"{{privacy}}":{text:"Privacy Policy",url:"https://".concat("weather.com","/en-US/twc/privacy-policy")}},E=/\{\{(.*?)\}\}/g;function T(){return(0,a.jsx)("div",{className:"mt-4 text-xs",children:"By signing up you agree to the {{terms}} & {{privacy}}. Unsubscribe at any time.".split(E).map((e,t)=>{let l=k["{{".concat(e,"}}")];return l?(0,a.jsx)(A.default,{href:l.url,className:"underline",children:l.text},t):(0,a.jsx)("span",{children:e},t)})})}let S={src:"/_next/static/media/morning-brief-logo.73126316.svg"},P={src:"/_next/static/media/ellipse.b0c8befa.png"};var I=l(62885),M=l(15641),F=l(34891),R=l(38038),L=l(45731);let D=(0,l(87564).tG)("emailPreferences",null,void 0,{getOnInit:!0});var W=l(65659),O=l(27972);let U=()=>{let[e,t]=(0,R.fp)(D),{user:l}=(0,W.J)(),a=(null==l?void 0:l.userID)||null,r=(null==l?void 0:l.isUserLoggedIn)||!1,i=(0,n.useCallback)(l=>{a&&t({userId:a,expiry:Date.now()+9e5,subscriptions:function(e,t){let l=(null==t?void 0:t.length)?t:O.J3,a={};return e?(null==l||l.forEach(e=>{a[e.subscriptionGroupName]=e}),e.forEach(e=>{a[e.subscriptionGroupName]=e}),Object.values(a)):l}(l,null==e?void 0:e.subscriptions)})},[a,t,null==e?void 0:e.subscriptions]),o=e&&e.userId===a&&e.expiry&&e.expiry>Date.now();return(0,c.Ay)(a&&r&&!o?"getEmailPreferencesStatus/".concat(a):void 0,()=>(0,L.j)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,errorRetryCount:2,onSuccess:e=>{a&&e&&i(e.subscriptions)}}),{subscriptions:a&&e?e.subscriptions:null,updateSubscriptions:i}};async function B(e,t){let{arg:l}=t,{email:a,location:n,locale:r,isAnonymous:i}=l,{location:o}=await (0,F.$M)(n.placeId,r).catch(()=>({location:null})),s={subscriptions:[{subscriptionGroupName:e,isSubscribed:!0,attributes:{location:n.placeId,latitude:n.latitude,longitude:n.longitude,dmaCode:(null==o?void 0:o.dmaCd)||null,adminDistrict:n.adminDistrict,adminDistrictCode:n.adminDistrictCode||null,postalCode:n.postalCode}}]};return i&&(s.email=a),await (0,M.p_)(s).then(e=>({...e,sentSubscriptions:s.subscriptions}))}var z=l(61391),H=l(39822);let G=()=>{var e,t;let l=(0,j.useParams)(),d=(0,j.useSearchParams)(),c=null==l?void 0:l.locale,{userProfile:u}=(0,W.J)(),[m,p]=(0,n.useState)(null!=(e=null==u?void 0:u.email)?e:""),[f,v]=(0,n.useState)(null),[h,x]=(0,n.useState)(!1),{data:g,loading:b,onSubmit:w,error:y}=function(){let{updateSubscriptions:e}=U(),{isMutating:t,trigger:l,data:a,error:r,reset:i}=(0,I.A)("newsletter/signup/daily-newsletters-1",(e,t)=>B("daily-newsletters-1",t));return{loading:t,error:r,data:a,onSubmit:(0,n.useCallback)(async t=>{let a=await l(t);return a.sentSubscriptions&&e(a.sentSubscriptions),a},[l,e]),onReset:i}}(),C=d.get("cm_ven"),A=null==C?void 0:C.startsWith("dnt_newsletter"),{subscriptions:k}=U(),E=(0,n.useMemo)(()=>(0,H.C)(k,O.rn),[k]),M=(0,n.useCallback)(async e=>{e.preventDefault(),!b&&m.trim()&&f&&(x(!0),await w({email:m,location:f,locale:c,isAnonymous:!(null==u?void 0:u.email)}))},[w,m,f,c,b,null==u?void 0:u.email]);return!h&&(null==E?void 0:E.isSubscribed)||A?null:(0,a.jsxs)("div",{style:{backgroundImage:'url("'.concat(P.src,'")'),backgroundPosition:"right top",backgroundRepeat:"no-repeat",backgroundSize:"70px"},className:"my-4 space-y-2 rounded-xl bg-white py-5 pl-5 pr-[30px] shadow-[0_3px_20px_0_rgba(181,171,162,0.5)]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:gap-3",children:[(0,a.jsx)(z.A,{src:S.src,alt:"",className:"w-37.5 m-0",rounded:!1}),(0,a.jsx)("div",{className:"mb-1.5 hidden min-h-[24px] min-w-[2px] bg-black sm:block"}),(0,a.jsx)("div",{className:"text-lg font-semibold",children:"Weather in your inbox"})]}),(null==g?void 0:g.status)==="success"?(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(r.A,{className:"h-6 w-6 text-green-500"}),(0,a.jsx)("div",{className:"text-sm text-gray-700",children:(0,a.jsx)("p",{children:"You are subscribed to the Morning Brief newsletter."})})]}):(0,a.jsxs)("form",{onSubmit:M,className:"flex flex-1 flex-col items-end gap-4 pt-4 lg:flex-row",children:[(0,a.jsx)(_,{id:"email",required:!0,type:"email",placeholder:"Email",className:"h-12",value:m,onChange:e=>p(e.target.value),error:!!(null==g?void 0:g.emailError),disabled:!!(null==u?void 0:u.email)}),(0,a.jsx)(N,{label:"Forecast Location",placeholder:"Search City or Zip Code",className:"h-12 items-center text-sm",location:f,onChangeLocation:v}),(0,a.jsx)("div",{children:(0,a.jsxs)(s.$n,{type:"submit",className:"flex h-12 items-center gap-1 text-nowrap",disabled:b||!(m&&f),children:[(0,a.jsx)("span",{children:"Sign Up"}),b&&(0,a.jsx)(i.A,{className:"animate-spin"})]})})]}),y&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(o.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:"Failed to subscribe, please try again."})]}),(null==g?void 0:g.status)==="error"&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(o.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:null!=(t=g.emailError)?t:g.error})]}),(0,a.jsx)(T,{})]})};G.displayName="MorningBriefBlock";let V=G},60014:(e,t,l)=>{"use strict";l.r(t),l.d(t,{LiveblogEntriesBlock:()=>n,default:()=>r});var a=l(16852);l(77976);let n=()=>(0,a.jsx)("div",{children:"Live Blog Entries"}),r=n},65365:(e,t,l)=>{"use strict";l.d(t,{h:()=>m});var a=l(16852),n=l(77976),r=l(71232),i=l(86139);let o={autoplayadsmuted:!1,client:"googima",vpaidcontrols:!0};var s=l(26839),d=l(19808),c=l.n(d);let u=(0,s.h)("JWPlayer"),m=e=>{var t;let{playlist:l,options:s={},setupParams:d={},events:m=[],className:p=""}=e,f="player-".concat((0,n.useId)()),{playerId:v="IdNDrRWQ"}=d,h=(0,n.useMemo)(()=>({playlist:l,...(e=>{let{ads:t=!0,showDescriptions:l=!0}=e;return{aspectratio:"16:9",autostart:!0,backgroundLoading:!0,width:"100%",mute:!1,autoPause:{pauseAds:!0,viewability:!0},captions:{backgroundOpacity:50,fontSize:14},...t?{advertising:o}:{},...l?{displaytitle:!0,displaydescription:!0}:{displaytitle:!1,displaydescription:!1}}})(d),...s}),[l,d,s]),x=(0,n.useRef)(null),g=(0,n.useRef)(!1),b=null==l||null==(t=l[0])?void 0:t.file,[w,y]=(0,n.useState)(b?"loading":"error");return(0,n.useEffect)(()=>{if(g.current||!("jwplayer"in window)||"ready"!==w||!b)return;let e=window.jwplayer(f);x.current=e,g.current=!0,u.info("initialized player"),e.setup(h),m.forEach(t=>{let{eventName:l,callback:a}=t;e.on(l,t=>{a({event:t,player:e})}),u.lifecycle("Registered event handler for ".concat(l))})},[h,m,b,f,w]),(0,n.useEffect)(()=>()=>{if(x.current)try{x.current.remove(),x.current=null,g.current=!1}catch(e){u.error("Error removing JW Player",e)}},[]),(0,a.jsxs)("div",{children:[b&&(0,a.jsx)(i.default,{src:"https://cdn.jwplayer.com/libraries/".concat(v,".js"),strategy:"afterInteractive",onLoad:()=>y("ready"),onReady:()=>y("ready"),onError:()=>y("error")}),(0,a.jsx)("div",{className:(0,r.cn)("overflow-hidden",c().jwplayerContainer,p),children:"loading"===w&&b?(0,a.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-black",children:(0,a.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-b-2 border-t-2 border-white"})}):"error"===w?(0,a.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-black text-white",children:"Failed to initialize video player"}):(0,a.jsx)("div",{id:f,className:"aspect-video w-full bg-black"})})]})}},66029:(e,t,l)=>{"use strict";l.r(t),l.d(t,{AdBlock:()=>d,default:()=>c});var a=l(16852),n=l(77976),r=l(18046),i=l(71232),o=l(24566),s=l(65659);let d=e=>{let{adId:t,variant:l="banner",title:d=null,titleAlignment:c="right",height:u="120px",className:m="",sticky:p=!1}=e,{user:f}=(0,s.J)(),{isUserPremium:v}=f,[h,x]=(0,n.useState)({loaded:!1,height:u,displayAd:!1}),g=(0,n.useRef)(null),b=(0,n.useRef)(!1),w=(0,n.useRef)({resize:null,adFrameMutation:null,adCreativeMutation:null}),y=(0,n.useMemo)(()=>{if("WX_ContentFeed1"===t||"MW_Position_ContentFeedAd1"===t||"MW_Position_ContentFeedAd11"===t)return h.displayAd?"mt-3 flex-1 -mb-3":"";if("WX_Hidden"===t||!h.displayAd)return"hidden";if("WX_WindowShade"===t||"WX_Leaderboard"===t)return"region-contentTop overflow-hidden mb-4";if("WX_BottomLeader"===t||"WX_Bot300"===t||"WX_PromoDriver1"===t||"WX_MidLeader"===t)return"bg-white rounded-md overflow-hidden px-4 pb-4 mt-4";if("WX_Top300Small"===t);else if("WX_SpotLight"===t||"WX_DriverUnit"===t)return"overflow-hidden bg-white mb-4";else if("WX_Top300Variable"===t)return p?"sticky top-[82px] z-45 bg-white rounded-md overflow-hidden px-4 pb-4":"bg-white rounded-md overflow-hidden px-4 pb-4";else if("MW_Position1"===t)return"bottom-[61px] sm:bottom-0 block fixed w-full z-[98] bg-[#dee0e3] p-2";else if("MW_Position1_Samsung"===t)return"bottom-[61px] sm:bottom-0 block fixed w-full z-[98] bg-[#dee0e3] p-2";else if("MW_Position3"===t)return"overflow-hidden mb-5";else if("MW_Position4"===t||"MW_Position5"===t||"MW_Position2"===t)return"rounded-lg overflow-hidden bg-white pt-0 px-4 pb-4";else if("banner"===l)return"rounded-lg overflow-hidden bg-white shadow-md mb-4";return"bg-white rounded-md overflow-hidden px-4 pb-4"},[t,l,h.displayAd,p]),j=(0,n.useMemo)(()=>{let e=h.loaded?"visible":"invisible";return"".concat("text-center w-full h-full flex text-gray-600 text-base leading-none"," ").concat("WX_SpotLight"!==t?"justify-center":""," ").concat(e)},[t,h.loaded]),N=(0,n.useCallback)(e=>{for(let t of e){let e=t.contentRect.height;e>0&&x(t=>({...t,height:"".concat(e+10,"px"),loaded:!0}))}},[]),C=(0,n.useCallback)(e=>{let t=e.some(e=>"childList"===e.type&&e.addedNodes.length>0);x(e=>({...e,displayAd:t}))},[]);return((0,n.useEffect)(()=>{x(e=>({...e,loaded:!1,height:u,displayAd:!1})),w.current.resize&&w.current.resize.disconnect(),w.current.adFrameMutation&&w.current.adFrameMutation.disconnect(),w.current.adCreativeMutation&&w.current.adCreativeMutation.disconnect();let e=new ResizeObserver(N);w.current.resize=e;let t=new MutationObserver(C);w.current.adCreativeMutation=t;let l=new MutationObserver(l=>{l.some(e=>{var t;return"childList"===e.type&&e.addedNodes.length>0&&((null==(t=e.addedNodes[0])?void 0:t.textContent)!=="Advertisement"||e.addedNodes.length>1)})&&g.current&&e&&t&&(e.observe(g.current),x(e=>({...e,loaded:!0})),t.observe(g.current,{childList:!0,subtree:!0}))});w.current.adFrameMutation=l;let a=g.current;return a&&l&&l.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect(),l.disconnect(),t.disconnect()}},[C,t,u,N]),(0,n.useEffect)(()=>{["MW_Position_ContentFeedAd","MW_Position_ContentFeedAd1","MW_Position_ContentFeedAd11","WX_ContentFeed","WX_ContentFeed1","WX_ContentFeedRadar"].includes(t)&&!b.current&&((e=>{try{let t=(e=>{if("MW_Position_ContentFeedAd11"===e)return{currContentFeedIndex:"21",baseNativeAdPosition:"MW_Position_ContentFeedAd1"};if("MW_Position_ContentFeedAd1"===e||"WX_ContentFeed1"===e){let t=e.match(/(\d+)$/);if(t)return{currContentFeedIndex:t[1],baseNativeAdPosition:e.substring(0,t.index)}}return console.error("Could not parse index from ContentFeed adId: ".concat(e)),null})(e);if(t){let{currContentFeedIndex:l,baseNativeAdPosition:a}=t,n=window.__HeliosConfig.slotsConfig[a];if(n){let t="".concat(n.adUnitPath,"/contentfeed").concat(l);window.__HeliosQ=window.__HeliosQ||[],window.__HeliosQ.push(()=>{window.__Helios.waitForEvent("AD_SLOTS_CONNECTED").then(()=>{window.__Helios.emit("AD_RENDER_CONTENT_FEED",{elementId:e,adUnitPath:t,baseNativeAdPosition:a})})})}else console.error("No config found for ".concat(e," at Helios.slotConfig.").concat(a))}}catch(e){console.error("Error rendering native ad",e)}})(t),b.current=!0)},[t]),!t||v)?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.DebugCollector,{componentName:"AdBlock",data:{props:{adId:t,variant:l,title:d,titleAlignment:c,height:u,className:m},state:{loaded:h.loaded,height:h.height,displayAd:h.displayAd},performance:{renderTime:Date.now()}}}),(0,a.jsxs)("div",{className:(0,i.cn)(y,m),children:[d&&h.loaded&&(0,a.jsx)("div",{className:"py-0.75 text-xxs w-full px-4 text-gray-400 text-".concat(c),children:d}),"WX_PromoDriver1"===t&&!d&&h.loaded&&h.displayAd&&(0,a.jsx)("h2",{className:"my-6 px-2 text-2xl font-bold",children:"Stay Safe"}),(0,a.jsx)("div",{id:t,className:j,style:{height:h.loaded?"100%":"0px"},ref:g})]}),"WX_PromoDriver1"===t&&(!h.loaded||!h.displayAd)&&(0,a.jsx)(o.default,{title:"Stay Safe",ctaStyle:"featured",linkUrl:"/",backgroundColor:"white",media:"https://s-dev.w-x.co/wxnext/img/Screenshot2025-04-17at44929PMpng"})]})},c=d},69347:(e,t,l)=>{"use strict";l.d(t,{c:()=>d});var a=l(77976),n=l(86356),r=l(96208),i=l(11182),o=l(65437),s=l(6333);let d=()=>{let e=(0,r.N)(),t=(0,s.A)(),l=(0,i.usePathname)();return(0,a.useCallback)(a=>{let{eventName:r,eventAttributes:i={}}=a;if(!n.A.isInitialized())return void console.warn("MParticle is not initialized");let s={...i,author:(null==t?void 0:t.author)||"",contentId:(null==t?void 0:t.contentId)||i.contentId,...e,url:l?(0,o.EY)(l):""};try{n.A.logEvent(r,n.A.EventType.Other,s),console.debug('MParticle: Video Event tracked - "'.concat(r,'"'),s)}catch(e){console.error('MParticle: Failed to track Video Event - "'.concat(r,'"'),e)}},[null==t?void 0:t.author,null==t?void 0:t.contentId,e,l])}},69592:(e,t,l)=>{"use strict";t.vt=void 0,t.v1=s;let a=l(98853),n=l(41661),r=l(86078),i=l(78601),o=l(34540);async function s(e){let l=(0,a.getDailyForecastUrlConfig)(e),i=(0,n.urlFrom)(l),o=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}}),s=await (0,r.handleFetchResponse)(o);return(0,t.vt)(s)}t.vt=(0,i.createTransformer)((e,t,l)=>{var a,n,r,i,s,d,c,u,m,p,f,v,h,x,g,b,w,y,j,N,C,_,A,k;return{calendarDayTemperatureMax:null!=(n=e.calendarDayTemperatureMax)?n:0,calendarDayTemperatureMin:null!=(r=e.calendarDayTemperatureMin)?r:0,dayOfWeek:null!=(i=e.dayOfWeek)?i:"",expirationTimeUtc:null!=(s=e.expirationTimeUtc)?s:0,moonPhase:null!=(d=e.moonPhase)?d:"",moonPhaseCode:null!=(c=e.moonPhaseCode)?c:o.MoonPhaseCode.NEW,moonPhaseDay:null!=(u=e.moonPhaseDay)?u:0,moonriseTimeLocal:null!=(m=e.moonriseTimeLocal)?m:"",moonriseTimeUtc:null!=(p=e.moonriseTimeUtc)?p:0,moonsetTimeLocal:null!=(f=e.moonsetTimeLocal)?f:"",moonsetTimeUtc:null!=(v=e.moonsetTimeUtc)?v:0,narrative:null!=(h=e.narrative)?h:"",qpf:null!=(x=e.qpf)?x:0,qpfSnow:null!=(g=e.qpfSnow)?g:0,sunriseTimeLocal:null!=(b=e.sunriseTimeLocal)?b:"",sunriseTimeUtc:null!=(w=e.sunriseTimeUtc)?w:0,sunsetTimeLocal:null!=(y=e.sunsetTimeLocal)?y:"",sunsetTimeUtc:null!=(j=e.sunsetTimeUtc)?j:0,temperatureMax:null!=(N=e.temperatureMax)?N:0,temperatureMin:null!=(C=e.temperatureMin)?C:0,validTimeLocal:null!=(_=e.validTimeLocal)?_:"",validTimeUtc:null!=(A=e.validTimeUtc)?A:0,daypart:null!=(k=null==l||null==(a=l.daypart)?void 0:a[t])?k:{cloudCover:[],dayOrNight:[],daypartName:[],iconCode:[],iconCodeExtend:[],narrative:[],precipChance:[],precipType:[],qpf:[],qpfSnow:[],qualifierCode:[],qualifierPhrase:[],relativeHumidity:[],snowRange:[],temperature:[],temperatureHeatIndex:[],temperatureWindChill:[],thunderCategory:[],thunderIndex:[],uvDescription:[],uvIndex:[],windDirection:[],windDirectionCardinal:[],windPhrase:[],windSpeed:[],wxPhraseLong:[],wxPhraseShort:[]}}})},73146:(e,t,l)=>{"use strict";l.r(t),l.d(t,{DailyForecastBlock:()=>N,default:()=>C});var a=l(16852);l(77976);var n=l(66544),r=l(69592),i=l(628),o=l(62468),s=l(68779),d=l(66864),c=l(17690),u=l(71232),m=l(65415);let p=function(e,t){let l=(0,m.G)();return l?l.variant(e,t):t};var f=l(38038),v=l(47887),h=l(25392),x=l(29590),g=l(11182);let b=e=>{let{iconCode:t,wxPhraseLong:l}=e,n=l||"Weather condition ".concat(t);return"na"!==(i.ICON_CODE_MAP[t]||"na")?(0,a.jsx)(d.WxIcon,{iconCode:t,className:"lightBG",size:"xl","aria-label":n,iconTheme:"lightBG"}):(0,a.jsx)(c.Y,{size:"xl",className:"lightBG","aria-label":"Weather icon not available"})},w=e=>{var t;let{location:l}=e,d=(0,h.c3)("DailyForecast"),c=(0,g.useParams)(),m=null==c?void 0:c.locale,{value:w}=p("reorder-current-conditions-and-forecast","control"),{effectiveLocation:y,isLocationLoading:j}=(0,s.s)({location:l}),N=(0,f.md)(v.Yt),C=null==(t=(0,x.xP)(N))?void 0:t.code,{data:_,error:A,isLoading:k}=(0,o.Ay)(y?["daily-forecast",y.geocode,C]:null,e=>{let[t,l,a]=e;return y?(0,r.v1)({geocode:l,units:a,language:m,duration:i.ForecastDuration.THREE_DAY}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),E=[];if(_&&_[0]&&_[0].daypart){let e=_[0].daypart;if(e&&e.daypartName)for(let t=0;t{let l="Afternoon"===e.name||"Evening"===e.name?"text-blue-600":"text-slate-700";return(0,a.jsxs)("div",{className:"flex items-center justify-between px-6 py-5","data-testid":"forecast-period-".concat(t),children:[(0,a.jsx)("div",{className:"w-1/3 text-xl font-medium text-gray-700","data-testid":"period-name",children:e.name}),(0,a.jsxs)("div",{className:"text-5xl font-bold ".concat(l," w-1/3 text-center"),"data-testid":"temperature",children:[e.temperature,"\xb0"]}),(0,a.jsxs)("div",{className:"flex w-1/3 items-center justify-end",children:[(0,a.jsx)("div",{className:"flex w-12 justify-center","data-testid":"weather-icon",children:(0,a.jsx)(b,{iconCode:e.iconCode,wxPhraseLong:i.ICON_CODE_MAP[e.iconCode]})}),(0,a.jsx)("div",{className:"ml-6 w-16 text-xl font-medium text-gray-700","data-testid":"precipitation",children:e.precipitation})]})]},e.name)})}),(0,a.jsx)("div",{className:"flex justify-start p-4",children:(0,a.jsx)(n.$n,{variant:"default",className:"rounded-md bg-slate-900 text-white hover:bg-slate-800","data-testid":"next-48-hours",children:d("bottomCtaButton")})})]}):(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg bg-white shadow-md",children:[(0,a.jsx)("div",{className:"bg-slate-800 p-4 text-white",children:(0,a.jsx)("h2",{className:"text-2xl font-bold",children:d("loadingLocation")})}),(0,a.jsx)("div",{className:"flex h-64 items-center justify-center p-6",children:(0,a.jsx)("div",{className:"animate-pulse text-xl",children:"Determining location..."})})]})};var y=l(34891),j=l(60305);let N=e=>{let{locationProvider:t,locationEntry:l}=e,n=(0,g.useParams)(),r=null==n?void 0:n.locale,{data:i,error:s,isLoading:d}=(0,o.Ay)("specified"===t&&l?["specified-location-data",l]:null,()=>l?(0,y.PT)(l,r):null,{revalidateOnFocus:!1,dedupingInterval:3e5});return"specified"===t&&d?(0,a.jsx)("div",{children:"Loading location data..."}):"specified"===t&&s?(0,a.jsxs)("div",{children:["Error loading location data: ",s.message]}):"specified"===t&&i&&l?(0,a.jsx)(w,{location:(0,j.I)(i)}):"specified"!==t?(0,a.jsx)(w,{}):null},C=N},77177:(e,t,l)=>{"use strict";l.r(t),l.d(t,{VideoBlock:()=>b,default:()=>w});var a=l(16852),n=l(77976),r=l(62468),i=l(65365);let o="/placeholder-video-thumbnail.jpg";var s=l(35854),d=l(25956),c=l(69347),u=l(18046),m=l(52528),p=l(71232),f=l(65659),v=l(86392);let h={src:"/_next/static/media/placeholder.6858ca75.jpg"},x=(0,l(26839).h)("video:events"),g=async e=>{let t=await fetch(e);if(!t.ok)throw Error("Failed to fetch video data from ".concat(e));return t.json()},b=e=>{var t;let{file:l,image:b,title:w,description:y,tracks:j=[],playlist:N,custom:C={},playerSettings:_,descriptionAttributes:A,videoReference:k,playlistsReference:E=[]}=e,T="video-player-".concat((0,n.useId)()),S=(0,n.useRef)(!0),P=(0,n.useRef)(null),I=(null==(t=(0,f.J)())?void 0:t.user)||{},M=(0,v.z)(),F=null;k&&("string"==typeof k?F="/api/payload/videos/".concat(k):"object"==typeof k&&(F=(null==k?void 0:k.id)?"/api/payload/videos/".concat(k.id):null));let{data:R,error:L}=(0,r.Ay)(F,g,{revalidateOnFocus:!1,dedupingInterval:3e5}),D=(0,c.c)(),W=(0,n.useMemo)(()=>{let e=[];return!Array.isArray(j)&&(null==j?void 0:j.file)?e.push(j):Array.isArray(j)&&e.push(...j),e},[j]),O=(0,n.useMemo)(()=>R&&Object.keys(R).length>0||k&&"string"!=typeof k,[R,k]),U=(0,n.useMemo)(()=>R&&Object.keys(R).length>0?R:k&&"string"!=typeof k?k:null,[R,k]),B=(0,n.useMemo)(()=>{var e,t,a,n,r,i,o,s,d;return O&&(null==U||null==(t=U.content)||null==(e=t.videoFormatUrls)?void 0:e.length)>0?(null==U||null==(n=U.content)||null==(a=n.defaultFormat)?void 0:a.url)?null==U||null==(d=U.content)||null==(s=d.defaultFormat)?void 0:s.url:null==U||null==(o=U.content)||null==(i=o.videoFormatUrls)||null==(r=i[0])?void 0:r.url:l},[O,U,l]),z=(0,n.useMemo)(()=>{if(O){var e,t,l;return(null==U||null==(e=U.content)?void 0:e.keyFrameImage)||(null==U||null==(l=U.seo)||null==(t=l.image)?void 0:t.url)||b}return b},[O,U,b]),H=(0,n.useMemo)(()=>O&&(null==U?void 0:U.title)||w,[O,U,w]),G=(0,n.useMemo)(()=>{if(O&&(null==U?void 0:U.description)){var e,t,l;return(null==(l=U.description.root)||null==(t=l.children[0])||null==(e=t.children[0])?void 0:e.text)||y}return y},[O,U,y]),V=(0,n.useMemo)(()=>{if(P.current&&JSON.stringify({file:B,image:z,title:H,description:G,tracks:W,playlist:N,custom:C})===JSON.stringify(P.current))return P.current;let e=z||(B?(e=>{if(!e)return o;for(let t of[/(?:cdn\.jwplayer\.com\/(?:videos|manifests|previews)\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/,/(?:content\.jwplatform\.com\/(?:videos|manifests)\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/,/(?:players\.jwplayer\.com\/preview\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/]){let l=e.match(t);if(l&&l[1])return"https://cdn.jwplayer.com/v2/media/".concat(l[1],"/poster.jpg")}return o})(B):null)||h.src,t={file:B,image:e,title:H,description:G,tracks:W,custom:C};return P.current=t,t},[B,z,H,G,W,N,C]),X=(0,n.useMemo)(()=>{var e,t,l,a;let n=[];return N&&(n=((e,t)=>{var l;if(!(null==t?void 0:t.file))return[];if("string"==typeof e)return(null==t?void 0:t.file)?[t]:[];let a=Array.isArray(e)?e:[];return(null==t?void 0:t.file)&&(!(a.length>0)||(null==(l=a[0])?void 0:l.file)!==(null==t?void 0:t.file))?[t,...a.filter(e=>e.file!==t.file)]:a})(N,V)||[]),E&&E.length,O&&(null==U||null==(e=U.content)?void 0:e.playlists)&&Array.isArray(null==U||null==(t=U.content)?void 0:t.playlists)&&(null==U||null==(a=U.content)||null==(l=a.playlists)||l.length),n.length>0?n:[V]},[N,V,E,U,O]);if((0,n.useEffect)(()=>{S.current=!0},[X]),k&&"string"==typeof k&&!R&&!L)return(0,a.jsx)("div",{className:"flex h-32 items-center justify-center bg-gray-100",children:(0,a.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-b-2 border-t-2 border-gray-900"})});if(L)return(0,a.jsx)("div",{className:"flex h-32 items-center justify-center bg-red-100 text-red-800",children:(0,a.jsx)("span",{children:"Failed to load video data"})});if(!B)return null;let J=[...s.v,...d.yW].map(e=>{let{eventName:t,callback:l}=e;return{eventName:t,callback:e=>{let{event:a,player:n}=e;"time"!==t&&x.info("[".concat(t,"]:"),a),l({event:a,player:n,isFirstPlayRef:S,user:I,trackVideoEvent:D,isMobile:M})}}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.DebugCollector,{componentName:"VideoBlock",data:{props:{file:l,image:b,title:w,description:y,tracksCount:(0,m.J)(W),hasPlaylist:!!N&&N.length>0,custom:C},state:{videoObject:V,playlistItems:X.length,isFirstPlay:S.current,events:J.map(e=>e.eventName)},performance:{}}}),(0,a.jsx)("div",{className:"overflow-hidden rounded-lg",children:(0,a.jsx)(i.h,{playlist:X,events:J},T)}),(null==_?void 0:_.showDescriptions)&&(0,a.jsx)("p",{...A,className:(0,p.cn)("my-2 text-sm",null==A?void 0:A.className),children:V.title})]})},w=b},78601:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTransformer=function(e){return t=>((0,a.fromCompactResponse)(t)||[]).map((l,a)=>e(l,a,t))};let a=l(47924)},81405:(e,t,l)=>{"use strict";l.r(t),l.d(t,{BuyButtonBlock:()=>u,default:()=>m});var a=l(16852),n=l(77976),r=l(97963),i=l(90877),o=l(71232);let s=(0,i.F)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 my-1 mx-1 py-2 px-4",{variants:{variant:{"bg-brand-200":"bg-brand-200 text-black hover:bg-brand-200/90","bg-brand-300":"bg-brand-300 text-white hover:bg-brand-300/90","bg-yellow-400":"bg-yellow-400 text-black hover:bg-yellow-400/90","bg-green-600":"bg-green-600 text-white hover:bg-green-500/90","bg-violet-500":"bg-violet-500 text-white hover:bg-violet-500/90","bg-gray-900":"bg-gray-900 text-white hover:bg-gray-900/90"},display:{block:"block",inline:"inline-block"}},defaultVariants:{variant:"bg-gray-900",display:"block"}}),d=n.forwardRef((e,t)=>{let{className:l,variant:n,display:i,inline:d=!1,asChild:c=!1,...u}=e,m=c?r.DX:"button";return(0,a.jsx)(m,{className:(0,o.cn)(s({variant:n,display:d?"inline":i,className:l})),ref:t,...u})});d.displayName="Button";var c=l(38850);let u=e=>{let{label:t,url:l,variant:n="bg-gray-900",inline:r=!1,isAffiliate:i=!0}=e;return(0,a.jsx)("div",{className:r?"inline-block":"block",children:(0,a.jsx)(c.default,{href:l,target:"_blank",rel:i?"nofollow noopener noreferrer":"noopener",children:(0,a.jsx)(d,{variant:n,inline:!1,className:"cursor-pointer whitespace-nowrap",children:t})})})},m=u},83659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSortedAlerts=void 0,t.getSortedAlerts=e=>[...e].sort((e,t)=>e.displayRank>t.displayRank?1:e.displayRankt.eventTrackingNumber?1:(e.eventTrackingNumber{"use strict";l.r(t),l.d(t,{PromoDriverBlock:()=>o,default:()=>s});var a=l(16852);l(77976);var n=l(44893),r=l(38850),i=l(13654);let o=e=>{let{title:t,image:l,subtitle:o,bodyText:s,ctaButton:d}=e,c=(null==d?void 0:d.url)&&/^https?:\/\//i.test(d.url),u=(0,i.bt)(l)?l:null;return t||u&&(null==u?void 0:u.url)||o||s||d?(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg bg-white",children:[t&&(0,a.jsx)("div",{className:"p-4",children:(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-900",children:t})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(null==u?void 0:u.url)?(0,a.jsx)("div",{className:"relative aspect-[42/13] w-full overflow-hidden bg-white px-4 pt-4",children:(0,a.jsx)("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)(n.default,{src:u.url,alt:t||"Promo image",fill:!0,className:"object-cover"})})})}):null,(o||s||d)&&(0,a.jsxs)("div",{className:"p-4",children:[o&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("h4",{className:"mb-2 text-base font-bold",children:o})}),s&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("p",{className:"mb-4 text-base",children:s})}),d&&(0,a.jsx)("div",{className:"flex justify-end",children:c?(0,a.jsx)("a",{href:d.url||"#",target:d.openInNewTab?"_blank":"_self",rel:d.openInNewTab?"noopener noreferrer":"",className:"inline-block max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap rounded-lg bg-black px-4 py-2 text-base font-normal text-white",children:d.text}):(0,a.jsx)(r.default,{href:d.url||"#",target:d.openInNewTab?"_blank":"_self",className:"inline-block max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap rounded-lg bg-black px-4 py-2 text-base font-normal text-white",children:d.text})})]})]})]}):null},s=o},91955:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEmailPreferencesStatusUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/status"}},t.getEmailPreferencesSetUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/set"}},t.getEmailPreferencesChangeEmailUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/change-email"}}},98853:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDailyForecastUrlConfig=function(e){let{geocode:t,units:l,language:n,duration:r=a.ForecastDuration.FIVE_DAY}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/daily/".concat(r),query:{geocode:t,units:l,language:n,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getHourlyForecastUrlConfig=function(e){let{geocode:t,units:l,language:n,duration:r=a.HourlyForecastDuration.TWO_DAY}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/hourly/".concat(r),query:{geocode:t,units:l,language:n,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getFifteenMinuteForecastUrlConfig=function(e){let{geocode:t,units:l,language:a}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/15minute",query:{geocode:t,units:l,language:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getMinutelyPrecipitationForecastUrlConfig=function(e){let{geocode:t,units:l,language:a,duration:n="60minute"}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/minutely/precipitation/".concat(n),query:{geocode:t,units:l,language:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}};let a=l(628)}}]);