"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3816],{1179:(e,t,l)=>{t.p_=o;let a=l(45923),n=l(12096),r=l(49269);async function o(e){let t=(0,r.getEmailPreferencesSetUrlConfig)(),l=(0,a.urlFrom)(t),o=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)),i=await fetch(l,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:o});if(200===i.status||400===i.status){let e=await i.json();return console.log({json:e}),e}return(0,n.handleFetchResponse)(i)}},13972:(e,t,l)=>{l.d(t,{default:()=>d});var a=l(80939),n=l(39355),r=l(33459),o=l(24550),i=l(89465);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:v,priority:f,imageAttributes:g}=e,x=!!(r||s);return(0,a.jsxs)("figure",{ref:t,className:(0,o.cn)(p),children:[(0,a.jsx)(i._,{src:l,alt:n,width:d,height:c,shadow:u,rounded:m,sizes:v,priority:f,...g}),x&&(0,a.jsxs)("figcaption",{className:"mt-2 text-sm leading-tight",children:[r&&(0,a.jsx)("p",{className:"",children:r}),s&&(0,a.jsxs)("p",{className:"text-gray-500",children:["(",s,")"]})]})]})});s.displayName="Figure";let d=e=>{var t,l,n;let{imageType:i,internalImageId:d,externalImageUrl:c,controls:u,altText:m,isPriorityImage:p,imageAttributes:v,linkUrl:f}=e;if(!i||!d&&!c)return(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Missing data for the image block."});let g="internal"===i&&(e=>"object"==typeof e&&null!==e&&"url"in e)(d),x=g?(null==d?void 0:d.url)||"":c||"",h=g?(null==d||null==(t=d.seo)?void 0:t.altText)||"":m||"",b="",y="";(null==u?void 0:u.showCaption)&&((!g||(null==u?void 0:u.useImageCaption))&&"external"!==i?g&&(b=(null==d||null==(l=d.seo)?void 0:l.caption)||"",y=(null==d||null==(n=d.seo)?void 0:n.credit)||""):(b=(null==u?void 0:u.caption)||"",y=(null==u?void 0:u.credit)||""));let w=(0,a.jsx)(s,{src:x,alt:h,caption:b,credit:y,priority:!!p,className:(0,o.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:v});return f?(0,a.jsx)(r.default,{href:f,target:"_blank",rel:"noopener noreferrer nofollow",children:w}):w}},16818:(e,t,l)=>{l.d(t,{W:()=>i,default:()=>d});var a=l(80939),n=l(13682),r=l(51114),o=l(72243);let i=(0,o.eU)(!1);function s(){if(window.top===window.self)window.DprSdk&&(window.DprSdk.init({getApplicationInfo:()=>({id:"weather.com",version:"2.0.0"}),getUserRegime:()=>(0,r.getCookie)("twc-privacy")}),(0,o.zp)().set(i,!0));else try{var e;(null==(e=window.top)?void 0:e.DprSdk)&&(window.DprSdk=window.top.DprSdk)}catch(e){}}function d(){return(0,a.jsx)(n.default,{async:!0,src:"https://weather.com/api/v1/script/dprSdkScript.js",onLoad:s})}},25275:(e,t,l)=>{l.d(t,{i:()=>n});var a=l(13815);let n=()=>!(0,a.Ub)({query:"(min-width: 768px)"})},28653:(e,t,l)=>{l.d(t,{default:()=>o});var a=l(80939);l(39355);var n=l(79228),r=l(33459);let o=e=>{let{label:t,url:l,variant:o="bg-gray-900",inline:i=!1,isAffiliate:s=!0}=e;return(0,a.jsx)("div",{className:i?"inline-block":"block",children:(0,a.jsx)(r.default,{href:l,target:"_blank",rel:s?"nofollow noopener noreferrer":"noopener",children:(0,a.jsx)(n.$n,{variant:o,inline:!1,className:"cursor-pointer whitespace-nowrap",children:t})})})}},31637:(e,t,l)=>{l.d(t,{default:()=>n});var a=l(80939);l(39355);let n=()=>(0,a.jsx)("div",{children:"Live Blog Entries"})},31948:(e,t,l)=>{l.d(t,{default:()=>X});var a=l(80939),n=l(39355),r=l(54032),o=l(74543),i=l(47041),s=l(45337),d=l(20501);let c=(0,d.h)("AdUtils"),u=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 m(a,n);r?t.playAd(r):t.play()},m=async function(e){let t,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!g())return null;let a=v(e,l),n=p({},e.iab);window.__Helios.emit("UPDATE_AD_UNIT_PATH",a);try{var r,o,i;null==(i=window.__Helios.modules)||null==(o=i.iabc)||null==(r=o.update)||r.call(o,{page:n,site:{v1:["IAB15-10_Weather"],v3:["390_Weather"]}})}catch(e){c.error("Error updating IABC parameters",e)}try{t=await f()}catch(e){t=null,c.error("Error getting ad tag",e)}return window.__Helios.emit("UPDATE_AD_UNIT_PATH",a),t},p=(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]=p(l[e]||{},t[e]):l[e]=t[e];return l},v=(e,t)=>{let l=e.collectionAdZone||e.adzone||"video";return"".concat("/7646","/").concat("").concat(t?"mobile_smart_us":"web_weather_us","/").concat(l)},f=async()=>{let e=[];try{var t;e=await (null==(t=window)?void 0:t.__Helios.video.requestVideoBids())}catch(e){c.error("Error getting video bids",e)}return await window.__Helios.modules.videoTag.createAdTag(e)},g=()=>{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}},x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https";return e.replace(/^\/\//,"".concat(t,"://"))},h=e=>{let{collectionId:t,videoIndex:l,videoId:a}=e||{};return{videoCount:l,videoId:a,collectionId:t}},b=e=>"GDFP"===e||"AdSense/AdX"===e;l(13682);var y=l(37811);let w=(0,d.h)("NewRelic");function N(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,{...j(t,"meta.")})}catch(e){w.error("New Relic: sendReumEvent error",e instanceof Error?e.message:String(e))}}y.env.NEW_RELIC_RUM_ACCOUNT_ID,y.env.NEW_RELIC_RUM_APP_ID,y.env.NEW_RELIC_RUM_LICENSE_KEY;let j=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]}))},k=(0,d.h)("AdEvents"),_=new Set(["amznbid","crt_pb","hb_pb"]),A=[{eventName:"ready",callback:e=>{let{event:t}=e;N("videoReady",{isViewable:!!t.viewable,setupTime:t.setupTime})}},{eventName:"beforePlay",callback:async e=>{var t;let{event:l,player:a,isFirstPlayRef:n,user:r,isMobile:o}=e;if(!(null==n?void 0:n.current))return;let i=a.getPlaylistItem(),s=null==i||null==(t=i.custom)?void 0:t.ctx;s.videoIndex=a.getPlaylistIndex(),N("videoBeforePlay",{...h(s),isViewable:!!l.viewable,playReason:l.playReason}),a.stop(),await u({player:a,user:r,ctx:s,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,o={},i=h(r);try{let e=x(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))_.has(e)&&(o["".concat("kv_").concat(e)]="".concat(a[e]))}catch(e){k.error("Error parsing cust_params",e)}N("videoAdRequest",{...i,isViewable:!!l.viewable,roll:l.adposition,...o})}},{eventName:"adStarted",callback:e=>{var t,l,a,n,r,o;let{event:i,player:s}=e,d=s.getPlaylistItem(),c=null==d||null==(t=d.custom)?void 0:t.ctx,{duration:u,adposition:m}=i,p=h(c),v="";try{let e=null==(o=i.ima)||null==(r=o.ad)?void 0:r.data;e&&(v=(e=>{let{adSystem:t,adId:l,adWrapperSystems:a,adWrapperIds:n}={adSystem:"",adId:"",adWrapperSystems:[],adWrapperIds:[],...e};if(b(t))return l;let r=a.findIndex(b);return r>=0&&r{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();N("videoStart",{...h(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();N("videoComplete",{...h(null==a||null==(t=a.custom)?void 0:t.ctx)})}},{eventName:"adSkipped",callback:e=>{var t;let{player:l}=e,a=l.getPlaylistItem();N("videoAdSkip",{...h(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:r,isMobile:o}=e;if(null==n?void 0:n.current)return;let{item:i}=l,s=null==i||null==(t=i.custom)?void 0:t.ctx;s.videoIndex=a.getPlaylistIndex(),a.stop(),await u({player:a,user:r,ctx:s,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();N("videoAdError",{...h(null==n||null==(t=n.custom)?void 0:t.ctx),message:l.message,code:l.code,vastCode:l.vastCode,roll:l.adposition}),k.error("Ad error occurred",l),a.play()}},{eventName:"error",callback:async e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();N("videoError",{...h(null==n||null==(t=n.custom)?void 0:t.ctx),message:l.message,code:l.code}),k.error("Video Player error",l)}},{eventName:"setupError",callback:e=>{let{event:t}=e;N("videoSetupError",{message:t.message,code:t.code})}}];var E=l(17011),I=l(37815);let P="",C="",S=1,R=0,T=0,U={adImpression:!1,videoAttempt:!1,videoPlayed:!1,videoStarted:!1,videoCompleted:!1,videoEnd:!1};function F(){Object.keys(U).map(e=>{U[e]=!1}),R=0,T=0}function L(e,t){var l,a,n,r,o,i,s,d,c,u,m,p,v,f,g,x,h,b,y,w,N,j,k,_,A,P,C,S,R,T,U,F,L,M,D,O,B;let z=t||e.getPlaylistItem();return{adBlock:e.getAdBlock(),adsMetricsUnitAndZone:null==z||null==(a=z.custom)||null==(l=a.ctx)?void 0:l.adzone,aspectRatio:null==e||null==(n=e.getConfig())?void 0:n.aspectratio,assetName:(0,E.EY)(null!=(O=null==z||null==(o=z.custom)||null==(r=o.ctx)?void 0:r.assetName)?O:""),collection:null==z||null==(s=z.custom)||null==(i=s.ctx)?void 0:i.pcollid,collectionId:null==z||null==(c=z.custom)||null==(d=c.ctx)?void 0:d.pcollid,contentId:null==z||null==(m=z.custom)||null==(u=m.ctx)?void 0:u.id,entitlements:(0,I.X)(null!=(B=null==z||null==(v=z.custom)||null==(p=v.ctx)?void 0:p.entitlements)?B:[]),iabContent:(0,E.IA)((null==z||null==(g=z.custom)||null==(f=g.ctx)?void 0:f.iab)||{}),id:null==z||null==(h=z.custom)||null==(x=h.ctx)?void 0:x.id,duration:null==z||null==(y=z.custom)||null==(b=y.ctx)?void 0:b.duration,lastmodifieddate:null==z||null==(j=z.custom)||null==(N=j.ctx)||null==(w=N.lastmodifieddate)?void 0:w.toString(),muted:e.getMute(),premiumContent:null==z||null==(_=z.custom)||null==(k=_.ctx)?void 0:k.premium,publishdate:null==z||null==(C=z.custom)||null==(P=C.ctx)||null==(A=P.publishdate)?void 0:A.toString(),providerName:null==z||null==(R=z.custom)||null==(S=R.ctx)?void 0:S.providername,tagsGeo:(0,I.X)(null==z||null==(U=z.custom)||null==(T=U.ctx)?void 0:T.tagsGeo),tagsKeyword:(0,I.X)(null==z||null==(L=z.custom)||null==(F=L.ctx)?void 0:F.tagsKeyword),tagsStorm:(0,I.X)(null==z||null==(D=z.custom)||null==(M=D.ctx)?void 0:M.tagsStorm)}}let M=[{eventName:"ready",callback:e=>{let{player:t,trackVideoEvent:l}=e;window.addEventListener("beforeunload",()=>{U.videoStarted&&!U.videoEnd&&(t.getPlaylistItem()&&!U.videoAttempt&&l&&l({eventName:"video-end",eventAttributes:{adtitle:P,errorMessage:C,contentWatchedSeconds:R,playReason:"",videoView:S,...L(t)}}),U.videoEnd=!0)})}},{eventName:"adImpression",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();F(),console.debug("JW Player callback - adImpression eventSentFlags:",U),P=null==t?void 0:t.adtitle,U.adImpression=!0,n&&!U.videoAttempt&&a&&(a({eventName:"video-attempt",eventAttributes:{adtitle:P,errorMessage:C,playReason:"",videoView:S,...L(l)}}),U.videoAttempt=!0),n&&!U.videoPlayed&&a&&(a({eventName:"video-played",eventAttributes:{adtitle:P,errorMessage:C,playReason:"",videoView:S,...L(l)}}),U.videoPlayed=!0)}},{eventName:"viewable",callback:async e=>{let{event:t}=e;S=null==t?void 0:t.viewable}},{eventName:"playlistItem",callback:async e=>{let{player:t,trackVideoEvent:l}=e;if(U.videoStarted&&!U.videoCompleted&&!U.videoEnd){let e=t.getPlaylistIndex(),a=t.getPlaylistItem(e-1);l({eventName:"video-end",eventAttributes:{adtitle:P,errorMessage:C,contentWatchedSeconds:R,playReason:"",videoView:S,...L(t,a)}}),U.videoEnd=!0}}},{eventName:"playAttempt",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();U.adImpression||F(),C="",console.debug("JW Player callback - playAttempt eventSentFlags:",U),a&&!U.videoAttempt&&l&&(U.videoAttempt=!0,l({eventName:"video-attempt",eventAttributes:{adtitle:P,errorMessage:C,playReason:"",videoView:S,...L(t)}}))}},{eventName:"firstFrame",callback:async e=>{let{player:t,trackVideoEvent:l}=e;console.debug("JW Player callback - firstFrame eventSentFlags:",U);let a=t.getPlaylistItem();a&&!U.videoPlayed&&l&&(l({eventName:"video-played",eventAttributes:{adtitle:P,errorMessage:C,playReason:"",videoView:S,...L(t)}}),U.videoPlayed=!0),a&&!U.videoStarted&&l&&(l({eventName:"video-started",eventAttributes:{adtitle:P,errorMessage:C,playReason:"",videoView:S,...L(t)}}),U.videoStarted=!0)}},{eventName:"complete",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();console.debug("JW Player callback - complete eventSentFlags:",U),a&&!U.videoCompleted&&l&&(l({eventName:"video-completed",eventAttributes:{adtitle:P,errorMessage:C,playReason:"",videoView:S,...L(t)}}),U.videoCompleted=!0),U.videoStarted&&!U.videoEnd&&(l({eventName:"video-end",eventAttributes:{adtitle:P,errorMessage:C,contentWatchedSeconds:R,playReason:"",videoView:S,...L(t)}}),U.videoEnd=!0)}},{eventName:"adStarted",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();console.debug("JW Player callback - adStarted eventSentFlags:",U),P=null==t?void 0:t.adtitle,n&&a&&a({eventName:"ad-started",eventAttributes:{adtitle:P,errorMessage:C,playReason:"",videoView:S,...L(l)}})}},{eventName:"adSkipped",callback:async e=>{let{player:t,trackVideoEvent:l}=e;t.getPlaylistItem()&&l&&l({eventName:"ad-skipped",eventAttributes:{adtitle:P,errorMessage:C,playReason:"",videoView:S,...L(t)}})}},{eventName:"adComplete",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();console.debug("JW Player callback - adComplete eventSentFlags:",U),P=null==t?void 0:t.adtitle,n&&a&&a({eventName:"ad-complete",eventAttributes:{adtitle:P,errorMessage:C,playReason:"",videoView:S,...L(l)}})}},{eventName:"adError",callback:async e=>{let{event:t}=e;console.error("Video ad error:",t)}},{eventName:"error",callback:async e=>{let{event:t}=e;C=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-T;R+=e,T=t.position}}},{eventName:"seek",callback:e=>{let{event:t}=e;"number"==typeof(null==t?void 0:t.offset)&&(T=t.offset)}}];var D=l(82988),O=l(18198),B=l(93983),z=l(73651),V=l(54165),J=l(37879),W=l(45068),H=l(24550),q=l(87205),Z=l(25275);let $=async e=>{let t=await fetch(e);if(!t.ok)throw Error("Failed to fetch video data from ".concat(e));return t.json()},X=e=>{var t;let{file:l,image:d,title:c,description:u,tracks:m=[],playlist:p,custom:v={},playerSettings:f,descriptionAttributes:g,videoReference:x,playlistsReference:h=[]}=e,b="video-player-".concat((0,n.useId)()),y=(0,n.useRef)(!0),w=(0,n.useRef)(null),N=(null==(t=(0,q.J)())?void 0:t.user)||{},j=(0,Z.i)(),k=null;x&&("string"==typeof x?k="/api/payload/videos/".concat(x):"object"==typeof x&&(k=(null==x?void 0:x.id)?"/api/payload/videos/".concat(x.id):null));let{data:_,error:I}=(0,r.Ay)(k,$,{revalidateOnFocus:!1,dedupingInterval:3e5}),P=(()=>{let e=(0,V.q)(),t=(0,O.N)({effectiveLocation:e}),l=(0,z.A)(),a=(0,B.usePathname)();return(0,n.useCallback)(e=>{let{eventName:n,eventAttributes:r={}}=e;if(!D.A.isInitialized())return void console.warn("MParticle is not initialized");let o={...r,author:(null==l?void 0:l.author)||"",contentId:(null==l?void 0:l.contentId)||r.contentId,teaserTitle:"",title:"",...t,url:a?(0,E.EY)(a):""};try{D.A.logEvent(n,D.A.EventType.Other,o),console.debug('MParticle: Video Event tracked - "'.concat(n,'"'),o)}catch(e){console.error('MParticle: Failed to track Video Event - "'.concat(n,'"'),e)}},[null==l?void 0:l.author,null==l?void 0:l.contentId,t,a])})(),C=(0,n.useMemo)(()=>{let e=[];return!Array.isArray(m)&&(null==m?void 0:m.file)?e.push(m):Array.isArray(m)&&e.push(...m),e},[m]),S=(0,n.useMemo)(()=>_&&Object.keys(_).length>0||x&&"string"!=typeof x,[_,x]),R=(0,n.useMemo)(()=>_&&Object.keys(_).length>0?_:x&&"string"!=typeof x?x:null,[_,x]),T=(0,n.useMemo)(()=>{var e,t,a,n,r,o,i,s,d;return S&&(null==R||null==(t=R.content)||null==(e=t.videoFormatUrls)?void 0:e.length)>0?(null==R||null==(n=R.content)||null==(a=n.defaultFormat)?void 0:a.url)?null==R||null==(d=R.content)||null==(s=d.defaultFormat)?void 0:s.url:null==R||null==(i=R.content)||null==(o=i.videoFormatUrls)||null==(r=o[0])?void 0:r.url:l},[S,R,l]),U=(0,n.useMemo)(()=>{if(S){var e;return(null==R||null==(e=R.content)?void 0:e.keyFrameImage)||d}return d},[S,R,d]),F=(0,n.useMemo)(()=>S&&(null==R?void 0:R.title)||c,[S,R,c]),L=(0,n.useMemo)(()=>(S&&(null==R||R.description),u),[S,R,u]),X=(0,n.useMemo)(()=>{if(w.current&&JSON.stringify({file:T,image:U,title:F,description:L,tracks:C,playlist:p,custom:v})===JSON.stringify(w.current))return w.current;let e=U||(T?(0,i.e)(T):null)||"/placeholder.jpg",t={file:T,image:e,title:F,description:L,tracks:C,custom:v};return w.current=t,t},[T,U,F,L,C,p,v]),G=(0,n.useMemo)(()=>{var e,t,l,a;let n=[];return p&&(n=(0,s.K)(p,X)||[]),h&&h.length,S&&(null==R||null==(e=R.content)?void 0:e.playlists)&&Array.isArray(null==R||null==(t=R.content)?void 0:t.playlists)&&(null==R||null==(a=R.content)||null==(l=a.playlists)||l.length),n.length>0?n:[X]},[p,X,h,R,S]);if((0,n.useEffect)(()=>{y.current=!0},[G]),x&&"string"==typeof x&&!_&&!I)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(I)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(!T)return null;let K=[...A,...M].map(e=>{let{eventName:t,callback:l}=e;return{eventName:t,callback:e=>{let{event:t,player:a}=e;return l({event:t,player:a,isFirstPlayRef:y,user:N,trackVideoEvent:P,isMobile:j})}}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(J.DebugCollector,{componentName:"VideoBlock",data:{props:{file:l,image:d,title:c,description:u,tracksCount:(0,W.J)(C),hasPlaylist:!!p&&p.length>0,custom:v},state:{videoObject:X,playlistItems:G.length,isFirstPlay:y.current,events:K.map(e=>e.eventName)},performance:{}}}),(0,a.jsx)(o.h,{playlist:G,events:K},b),(null==f?void 0:f.showDescriptions)&&(0,a.jsx)("p",{...g,className:(0,H.cn)("my-2 text-sm",null==g?void 0:g.className),children:X.title})]})}},33477:(e,t,l)=>{l.d(t,{default:()=>s});var a=l(80939);l(39355);var n=l(77369),r=l(18729),o=l(36425),i=l(54032);let s=e=>{let{locationProvider:t,locationEntry:l}=e,{data:s,error:d,isLoading:c}=(0,i.Ay)("specified"===t&&l?["specified-location-data",l]:null,()=>l?(0,r.PT)(l):null,{revalidateOnFocus:!1,dedupingInterval:3e5});return"specified"===t&&c?(0,a.jsx)("div",{children:"Loading location data..."}):"specified"===t&&d?(0,a.jsxs)("div",{children:["Error loading location data: ",d.message]}):"specified"===t&&s&&l?(0,a.jsx)(n.default,{location:(0,o.I)(s)}):"specified"!==t?(0,a.jsx)(n.default,{}):null}},37762:(e,t,l)=>{l.d(t,{default:()=>D});var a=l(80939),n=l(39355),r=l(6498),o=l(22440),i=l(42438),s=l(40999),d=l(34249),c=l(54032),u=l(89624),m=l(66581),p=l(50848),v=l(65574),f=l(24550);function g(e){let{className:t,...l}=e;return(0,a.jsx)(p.uB,{"data-slot":"command",className:(0,f.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)(v.A,{className:"size-4 shrink-0 opacity-50"}),(0,a.jsx)(p.uB.Input,{"data-slot":"command-input",className:(0,f.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 h(e){let{className:t,...l}=e;return(0,a.jsx)(p.uB.List,{"data-slot":"command-list",className:(0,f.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,f.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 y(e){let{className:t,...l}=e;return(0,a.jsx)(p.uB.Item,{"data-slot":"command-item",className:(0,f.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(41492);var w=l(75114);function N(e){var t;let{label:l,placeholder:r,className:i,location:p,onChangeLocation:v}=e,[N,j]=(0,n.useState)(!1),[k,_]=(0,n.useState)(""),{isLoading:A,data:E}=function(e){let t=e.trim().length>0,{isLoading:l,data:a,error:n}=(0,c.Ay)(t?["search/locations",encodeURIComponent(e)]:null,async()=>await (0,d.SK)(e));return{isLoading:l,data:a,error:n}}((0,u.A)(k,300));return(0,a.jsxs)(m.AM,{open:N,onOpenChange:j,children:[(0,a.jsx)(m.Wv,{asChild:!0,children:(0,a.jsxs)(s.$n,{variant:"outline",role:"combobox",className:(0,f.cn)("text-muted-foreground flex w-full text-nowrap bg-white px-2",i),children:[(0,a.jsx)("div",{children:A?(0,a.jsx)(o.A,{className:"animate-spin"}):(0,a.jsx)(w.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)(g,{shouldFilter:!1,children:[(0,a.jsx)(x,{placeholder:r,value:k,onValueChange:_}),(0,a.jsx)(h,{children:(0,a.jsx)(b,{children:null==E?void 0:E.map(e=>(0,a.jsx)(y,{value:e.locId,onSelect:()=>{null==v||v(e),j(!1)},children:e.address},e.locId))})})]})})]})}var j=l(99360);function k(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)(j.p,{...r,className:l?"".concat(n," border-red-500"):n})]})}var _=l(33459);let A={"{{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 I(){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=A["{{".concat(e,"}}")];return l?(0,a.jsx)(_.default,{href:l.url,className:"underline",children:l.text},t):(0,a.jsx)("span",{children:e},t)})})}let P={src:"/_next/static/media/morning-brief-logo.73126316.svg"},C={src:"/_next/static/media/ellipse.b0c8befa.png"};var S=l(61809),R=l(1179),T=l(18729);async function U(e,t){let{arg:l}=t,{email:a,location:n,isAnonymous:r}=l,{location:o}=await (0,T.$M)(n.placeId).catch(()=>({location:null})),i={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 r&&(i.email=a),(0,R.p_)(i)}var F=l(87205),L=l(89465);let M=()=>{var e,t;let{userProfile:l}=(0,F.J)(),[d,c]=(0,n.useState)(null!=(e=null==l?void 0:l.email)?e:""),[u,m]=(0,n.useState)(null),{data:p,loading:v,onSubmit:f,error:g}=function(){let{isMutating:e,trigger:t,data:l,error:a,reset:r}=(0,S.A)("daily-newsletters-1",U);return{loading:e,error:a,data:l,onSubmit:(0,n.useCallback)(async e=>{await t(e)},[t]),onReset:r}}(),x=(0,n.useCallback)(async e=>{e.preventDefault(),!v&&d.trim()&&u&&await f({email:d,location:u,isAnonymous:!(null==l?void 0:l.email)})},[f,d,u,v,null==l?void 0:l.email]);return(0,a.jsxs)("div",{style:{backgroundImage:'url("'.concat(C.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)(L.A,{src:P.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==p?void 0:p.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:x,className:"flex flex-1 flex-col items-end gap-4 pt-4 lg:flex-row",children:[(0,a.jsx)(k,{id:"email",required:!0,type:"email",placeholder:"Email",className:"h-12",value:d,onChange:e=>c(e.target.value),error:!!(null==p?void 0:p.emailError),disabled:!!(null==l?void 0:l.email)}),(0,a.jsx)(N,{label:"Forecast Location",placeholder:"Search City or Zip Code",className:"h-12 items-center text-sm",location:u,onChangeLocation:m}),(0,a.jsx)("div",{children:(0,a.jsxs)(s.$n,{type:"submit",variant:"primary",className:"flex h-12 items-center gap-1 text-nowrap",disabled:v||!(d&&u),children:[(0,a.jsx)("span",{children:"Sign Up"}),v&&(0,a.jsx)(o.A,{className:"animate-spin"})]})})]}),g&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(i.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:g.message})]}),(null==p?void 0:p.status)==="error"&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(i.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:null!=(t=p.emailError)?t:p.error})]}),(0,a.jsx)(I,{})]})};M.displayName="MorningBriefBlock";let D=M},41492:(e,t,l)=>{l.d(t,{Cf:()=>c,L3:()=>u,LC:()=>d,ZJ:()=>s,lG:()=>i});var a=l(80939);l(39355);var n=l(91023),r=l(60778),o=l(24550);function i(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,o.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,...i}=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,o.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),...i,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,o.cn)("text-lg font-semibold leading-none",t),...l})}},45435:(e,t,l)=>{l.d(t,{bt:()=>a});function a(e){return"object"==typeof e&&null!==e&&"url"in e}},49269:(e,t)=>{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"}}},54317:(e,t,l)=>{l.d(t,{A:()=>i});var a=l(39355),n=l(4151),r=l(87205),o=l(16818);let i=function(){let{DISCONNECTED_user:e}=(0,r.J)(),[t,l]=(0,a.useState)(!1),i=(0,n.md)(o.W);return(0,a.useEffect)(()=>{i&&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}})())},[i]),t&&!(null==e?void 0:e.isUserPremium)}},55362:(e,t,l)=>{l.d(t,{A:()=>n});let a="atmosphere/reviews";function n(e){var t;return!!(null==e||null==(t=e.category)?void 0:t.value)&&("string"==typeof e.category.value?e.category.value===a:e.category.value.id===a)}},56537:(e,t,l)=>{l.d(t,{default:()=>r});var a=l(80939);l(39355);var n=l(14058);let r=()=>(0,a.jsx)(n.A,{})},69997:(e,t,l)=>{l.d(t,{yw:()=>r});var a=l(39641),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://localhost:3001"),e)})()}},73651:(e,t,l)=>{l.d(t,{A:()=>r});var a=l(4151),n=l(25059);let r=()=>(0,a.md)(n.$)},83301:(e,t,l)=>{l.d(t,{default:()=>i});var a=l(80939);l(39355);var n=l(59550),r=l(45435),o=l(45068);let i=e=>{let{slides:t=[],settings:l={},id:i}=e;if(!(0,o.J)(t))return null;let s=[];for(let e of t){var d,c;if(!e.imageAsset){console.error("Slide missing imageAsset:",e);continue}let t=(0,r.bt)(e.imageAsset)?e.imageAsset:null;if(!t||!t.url){console.error("Invalid imageAsset or missing URL:",t);continue}let l={...t,seo:{...t.seo,caption:e.imageCaption||(null==(d=t.seo)?void 0:d.caption)||"",altText:e.imageTitle&&""!==e.imageTitle.trim()?e.imageTitle:(null==(c=t.seo)?void 0:c.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}};s.push(l)}return 0===s.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:s.slice(0,20),allSlides:s,totalAssets:s.length,rounded:(null==l?void 0:l.rounded)||!1,blockType:"Slideshow",slides:t,settings:l,sendTrackString:()=>{}})}},89293:(e,t,l)=>{l.d(t,{default:()=>i});var a=l(80939);l(39355);var n=l(22910),r=l(33459),o=l(45435);let i=e=>{let{title:t,image:l,subtitle:i,bodyText:s,ctaButton:d}=e,c=(null==d?void 0:d.url)&&/^https?:\/\//i.test(d.url),u=(0,o.bt)(l)?l:null;return t||u&&(null==u?void 0:u.url)||i||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,(i||s||d)&&(0,a.jsxs)("div",{className:"p-4",children:[i&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("h4",{className:"mb-2 text-base font-bold",children:i})}),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}},89624:(e,t,l)=>{l.d(t,{A:()=>o,d:()=>r});var a=l(39355),n=l(7505);function r(e,t){let[l,r]=(0,a.useState)(e);return(0,a.useEffect)(()=>{let l=(0,n.s)(e=>{r(e)},t);return l(e),()=>{l.cancel()}},[e,t]),l}let o=r},95325:(e,t,l)=>{l.d(t,{default:()=>r});var a=l(80939),n=l(39355);let r=e=>{let{entryMethod:t,tweetURL:l,tweetId:r,showThread:o}=e,i=(0,n.useRef)(null),s=(0,n.useCallback)(()=>"id"===t&&r?"https://twitter.com/i/status/".concat(r):"url"===t&&l?l.replace("x.com","twitter.com"):null,[t,r,l]);return(0,n.useEffect)(()=>{let e=s();if(e)if(i.current&&(i.current.innerHTML='\n

\n \n
\n ')),window.twttr&&window.twttr.widgets)window.twttr.widgets.load(i.current);else{let e=document.createElement("script");e.src="https://platform.twitter.com/widgets.js",e.async=!0,document.body.appendChild(e),e.onload=()=>window.twttr.widgets.load(i.current)}},[s,r,l,t,o]),(0,a.jsx)("div",{className:"flex items-center",ref:i})}},95797:(e,t,l)=>{l.r(t),l.d(t,{TaboolaBlock:()=>v,default:()=>f});var a=l(80939),n=l(39355),r=l(93983),o=l(69997),i=l(37879),s=l(54317),d=l(13682);function c(e){let{url:t,scriptId:l}=e;return window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("tbl_ic"),(0,a.jsx)(d.default,{async:!0,id:l,src:t})}function u(e){let{pageType:t,placements:l,pageUrl:a}=e;return(0,n.useEffect)(()=>{window._taboola=window._taboola||[],window._taboola.push({[t]:"auto",url:a}),l.forEach(e=>{window._taboola.push({...e})}),window._taboola.push({flush:!0})},[t,a,l]),null}var m=l(24550),p=l(55362);let v=e=>{let{placements:t,pageType:l,className:d="",article:v}=e,f=(0,s.A)(),g=(0,r.usePathname)(),x=(0,p.A)(v),h="//cdn.taboola.com/libtrc/theweatherchannel/loader.js";(0,n.useEffect)(()=>{if(!x&&f&&h)return()=>{window._taboola&&window._taboola.push({notify:"newPageLoad"})}},[f,h,x]);let b=(0,n.useMemo)(()=>{let e=(0,o.yw)();return"".concat(e).concat(g||"")},[g]);return!x&&f&&h?(0,a.jsxs)("section",{className:(0,m.cn)("@container",d),children:[f&&h&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c,{url:h,scriptId:"tb_loader_script"}),(0,a.jsx)(u,{pageType:l,placements:t,pageUrl:b})]}),(0,a.jsx)(i.DebugCollector,{componentName:"TaboolaBlock",data:{props:{placements:t,loaderUrl:h,pageType:l,className:d}}})]}):null},f=v},99360:(e,t,l)=>{l.d(t,{p:()=>r});var a=l(80939);l(39355);var n=l(24550);function r(e){let{className:t,type:l,...r}=e;return(0,a.jsx)("input",{type:l,"data-slot":"input",className:(0,n.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input shadow-xs flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base outline-none transition-[color,box-shadow] file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...r})}}}]);