"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8159],{4173:(e,t,l)=>{l.d(t,{default:()=>i});var a=l(7629);l(15545);var n=l(24252),r=l(84870);let i=e=>{let{label:t,url:l,variant:i="bg-gray-900",inline:s=!1,isAffiliate:o=!0}=e;return(0,a.jsx)("div",{className:s?"inline-block":"block",children:(0,a.jsx)(r.default,{href:l,target:"_blank",rel:o?"nofollow noopener noreferrer":"noopener",children:(0,a.jsx)(n.$n,{variant:i,inline:!1,className:"cursor-pointer whitespace-nowrap",children:t})})})}},11113:(e,t,l)=>{l.d(t,{A:()=>s});var a=l(36183),n=l(1465),r=l(22501),i=l(15545);let s=()=>{var e,t;let l=(0,a.md)(r.$);return(0,i.useMemo)(()=>{var e,t,a,r,i,s,o;return{author:(0,n.FU)(null==l?void 0:l.authors),createdDate:null==l||null==(t=l.createdAt)||null==(e=t.substr)?void 0:e.call(t,0,10),contentId:null==l?void 0:l.id,collection:null==l||null==(a=l.category)?void 0:a.value,teaserTitle:"",publishDate:null==l||null==(i=l.publishDate)||null==(r=i.substr)?void 0:r.call(i,0,10),entitlements:(0,n.X$)(null!=(o=null==l||null==(s=l.coreMetadata)?void 0:s.entitlements)?o:[]),title:"",seoTitle:""}},[null==l?void 0:l.authors,null==l||null==(e=l.category)?void 0:e.value,null==l||null==(t=l.coreMetadata)?void 0:t.entitlements,null==l?void 0:l.createdAt,null==l?void 0:l.id,null==l?void 0:l.publishDate])}},11429:(e,t,l)=>{l.d(t,{default:()=>o});var a=l(7629);l(15545);var n=l(84407),r=l(713),i=l(85301),s=l(96361);let o=e=>{let{locationProvider:t,locationEntry:l}=e,o=e=>(0,r.PT)(e),{data:d,error:c,isLoading:u}=(0,s.Ay)("specified"===t&&l?["specified-location-data",l]:null,()=>l?o(l):null,{revalidateOnFocus:!1,dedupingInterval:3e5});return"specified"===t&&u?(0,a.jsx)("div",{children:"Loading location data..."}):"specified"===t&&c?(0,a.jsxs)("div",{children:["Error loading location data: ",c.message]}):"specified"===t&&d&&l?(0,a.jsx)(n.default,{location:(0,i.I)(d)}):"specified"!==t?(0,a.jsx)(n.default,{}):null}},16980:(e,t,l)=>{l.d(t,{W:()=>s,default:()=>d});var a=l(7629),n=l(25928),r=l(10005),i=l(83251);let s=(0,i.eU)(!1);function o(){if(window.top===window.self)window.DprSdk.init({getApplicationInfo:()=>({id:"weather.com",version:"2.0.0"}),getUserRegime:()=>(0,r.getCookie)("twc-privacy")}),(0,i.zp)().set(s,!0);else try{var e;window.DprSdk=null==(e=window.top)?void 0:e.DprSdk}catch(e){}}function d(){return(0,a.jsx)(n.default,{async:!0,src:"https://weather.com/api/v1/script/dprSdkScript.js",onLoad:o})}},21377:(e,t,l)=>{l.d(t,{A:()=>i,d:()=>r});var a=l(15545),n=l(6967);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 i=r},27221:(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"}}},28160:(e,t,l)=>{l.d(t,{default:()=>M});var a=l(7629),n=l(15545),r=l(18875),i=l(19905),s=l(44689),o=l(94279),d=l(78249),c=l(96361),u=l(21377),m=l(20979),p=l(97814),v=l(73949),g=l(35238);function f(e){let{className:t,...l}=e;return(0,a.jsx)(p.uB,{"data-slot":"command",className:(0,g.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,g.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,g.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,g.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,g.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(85492);var y=l(75439);function j(e){var t;let{label:l,placeholder:r,className:s,location:p,onChangeLocation:v}=e,[j,N]=(0,n.useState)(!1),[k,_]=(0,n.useState)(""),{isLoading:A,data:P}=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:j,onOpenChange:N,children:[(0,a.jsx)(m.Wv,{asChild:!0,children:(0,a.jsxs)(o.$n,{variant:"outline",role:"combobox",className:(0,g.cn)("text-muted-foreground flex w-full text-nowrap bg-white px-2",s),children:[(0,a.jsx)("div",{children:A?(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)(f,{shouldFilter:!1,children:[(0,a.jsx)(x,{placeholder:r,value:k,onValueChange:_}),(0,a.jsx)(h,{children:(0,a.jsx)(b,{children:null==P?void 0:P.map(e=>(0,a.jsx)(w,{value:e.locId,onSelect:()=>{null==v||v(e),N(!1)},children:e.address},e.locId))})})]})})]})}var N=l(56320);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)(N.p,{...r,className:l?"".concat(n," border-red-500"):n})]})}var _=l(84870);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")}},P=/\{\{(.*?)\}\}/g;function E(){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(P).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 S={src:"/_next/static/media/morning-brief-logo.73126316.svg"},C={src:"/_next/static/media/ellipse.b0c8befa.png"};var I=l(70370),T=l(74907),R=l(713);async function L(e,t){let{arg:l}=t,{email:a,location:n,isAnonymous:r}=l,{location:i}=await (0,R.$M)(n.placeId).catch(()=>({location:null})),s={subscriptions:[{subscriptionGroupName:e,isSubscribed:!0,attributes:{location:n.placeId,latitude:n.latitude,longitude:n.longitude,dmaCode:(null==i?void 0:i.dmaCd)||null,adminDistrict:n.adminDistrict,adminDistrictCode:n.adminDistrictCode||null,postalCode:n.postalCode}}]};return r&&(s.email=a),(0,T.p_)(s)}var U=l(50533),B=l(19129);let D=()=>{var e,t;let{userProfile:l}=(0,U.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:g,error:f}=function(){let{isMutating:e,trigger:t,data:l,error:a,reset:r}=(0,I.A)("daily-newsletters-1",L);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 g({email:d,location:u,isAnonymous:!(null==l?void 0:l.email)})},[g,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)(B.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==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)(j,{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)(o.$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)(i.A,{className:"animate-spin"})]})})]}),f&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(s.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:f.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)(s.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)(E,{})]})};D.displayName="MorningBriefBlock";let M=D},36605:(e,t,l)=>{l.d(t,{default:()=>r});var a=l(7629),n=l(15545);let r=e=>{let{entryMethod:t,tweetURL:l,tweetId:r,showThread:i}=e,s=(0,n.useRef)(null),o=()=>"id"===t&&r?"https://twitter.com/i/status/".concat(r):"url"===t&&l?l.replace("x.com","twitter.com"):null;return(0,n.useEffect)(()=>{let e=o();if(e)if(s.current&&(s.current.innerHTML='\n

\n \n
\n ')),window.twttr&&window.twttr.widgets)window.twttr.widgets.load(s.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(s.current)}},[r,l,t,i]),(0,a.jsx)("div",{className:"flex items-center",ref:s})}},56320:(e,t,l)=>{l.d(t,{p:()=>r});var a=l(7629);l(15545);var n=l(35238);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})}},60731:(e,t,l)=>{l.d(t,{default:()=>J});var a=l(7629),n=l(15545),r=l(79365),i=l(88321),s=l(22425),o=l(90681);let d=async e=>{let{player:t,user:l,ctx:a={}}=e;if(!t)return;if(null==l?void 0:l.isUserPremium)return void t.play();let n=await c(a);n?t.playAd(n):t.play()},c=async e=>{let t;if(!v())return null;let l=m(e),a=u({},e.iab);window.__Helios.emit("UPDATE_AD_UNIT_PATH",l);try{var n,r,i;null==(i=window.__Helios.modules)||null==(r=i.iabc)||null==(n=r.update)||n.call(r,{page:a,site:{v1:["IAB15-10_Weather"],v3:["390_Weather"]}})}catch(e){o.debugLogger.error("Ad Utils","Error updating IABC parameters",e)}try{t=await p()}catch(e){t=null,o.debugLogger.error("Video Block","Error getting ad tag",e)}return window.__Helios.emit("UPDATE_AD_UNIT_PATH",l),t},u=(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]=u(l[e]||{},t[e]):l[e]=t[e];return l},m=e=>{let t=e.collectionAdZone||e.adzone||"video";return"".concat("/7646","/").concat("").concat("web_weather_us","/").concat(t)},p=async()=>{let e=[];try{var t;e=await (null==(t=window)?void 0:t.__Helios.video.requestVideoBids())}catch(e){o.debugLogger.error("Ad Utils","Error getting video bids",e)}return await window.__Helios.modules.videoTag.createAdTag(e)},v=()=>{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}},g=e=>!!e.viewable,f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https";return e.replace(/^\/\//,"".concat(t,"://"))},x=e=>e?e.split("&").reduce((e,t)=>{let[l,a]=t.split("=");return l&&a&&(e[l]||(e[l]=[]),e[l].push(a)),e},{}):{},h=e=>{let{collectionId:t,videoIndex:l,videoId:a}=e||{};return{videoCount:l,videoId:a,collectionId:t}},b=e=>{let{adSystem:t,adId:l,adWrapperSystems:a,adWrapperIds:n}={adSystem:"",adId:"",adWrapperSystems:[],adWrapperIds:[],...e};if(w(t))return l;let r=a.findIndex(w);return r>=0&&r"GDFP"===e||"AdSense/AdX"===e;l(25928);var y=l(37811);function j(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,{...N(t,"meta.")})}catch(e){o.debugLogger.error(e instanceof Error?e.message:String(e),"New Relic: sendReumEvent error")}}y.env.NEW_RELIC_RUM_ACCOUNT_ID,y.env.NEW_RELIC_RUM_APP_ID,y.env.NEW_RELIC_RUM_LICENSE_KEY;let N=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=new Set(["amznbid","crt_pb","hb_pb"]),_=[{eventName:"ready",callback:e=>{let{event:t}=e;j("videoReady",{isViewable:g(t),setupTime:t.setupTime})}},{eventName:"beforePlay",callback:async e=>{var t;let{event:l,player:a,isFirstPlayRef:n,user:r}=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(),j("videoBeforePlay",{...h(s),isViewable:g(l),playReason:l.playReason}),a.stop(),await d({player:a,user:r,ctx:s}),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={},s=h(r);try{let e=f(l.tag||""),t=new URL(e).searchParams.get("cust_params"),a=x(t);for(let e of Object.keys(a))k.has(e)&&(i["".concat("kv_").concat(e)]="".concat(a[e]))}catch(e){o.debugLogger.error("VideoBlock","Error parsing cust_params",e)}j("videoAdRequest",{...s,isViewable:g(l),roll:l.adposition,...i})}},{eventName:"adStarted",callback:e=>{var t,l,a,n,r,i;let{event:s,player:d}=e,c=d.getPlaylistItem(),u=null==c||null==(t=c.custom)?void 0:t.ctx,{duration:m,adposition:p}=s,v=h(u),f="";try{let e=null==(i=s.ima)||null==(r=i.ad)?void 0:r.data;e&&(f=b(e))}catch(e){o.debugLogger.error("VideoBlock","Error parsing ima ad data",e)}let x=!!(null==(n=s.ima)||null==(a=n.ad)||null==(l=a.data)?void 0:l.skippable);j("videoAdStart",{...v,isViewable:g(s),duration:m,roll:p,lineItemId:f,isSkippable:x})}},{eventName:"firstFrame",callback:e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();j("videoStart",{...h(null==n||null==(t=n.custom)?void 0:t.ctx),isViewable:g(l),loadTime:l.loadTime})}},{eventName:"complete",callback:e=>{var t;let{player:l}=e,a=l.getPlaylistItem();j("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();j("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}=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 d({player:a,user:r,ctx:s})}},{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();j("videoAdError",{...h(null==n||null==(t=n.custom)?void 0:t.ctx),message:l.message,code:l.code,vastCode:l.vastCode,roll:l.adposition}),o.debugLogger.error("VideoBlock","Ad error occurred",l),a.play()}},{eventName:"error",callback:async e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();j("videoError",{...h(null==n||null==(t=n.custom)?void 0:t.ctx),message:l.message,code:l.code}),o.debugLogger.error("VideoBlock","Video Player error",l)}},{eventName:"setupError",callback:e=>{let{event:t}=e;j("videoSetupError",{message:t.message,code:t.code})}}],A="",P="",E=1,S={adImpression:!1,videoAttempt:!1,videoPlayed:!1,videoStarted:!1,videoCompleted:!1};function C(){Object.keys(S).map(e=>{S[e]=!1})}let I=[{eventName:"adImpression",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e;C();let n=l.getPlaylistItem();console.debug("JW Player callback - adImpression eventSentFlags:",S),A=null==t?void 0:t.adtitle,S.adImpression=!0,n&&!S.videoAttempt&&a&&(S.videoAttempt=!0,a({eventName:"video-attempt",currentVideo:n,jwPlayer:l,eventAttributes:{adtitle:A,errorMessage:P,playReason:"",videoView:E}})),n&&!S.videoPlayed&&a&&(S.videoPlayed=!0,a({eventName:"video-played",currentVideo:n,jwPlayer:l,eventAttributes:{adtitle:A,errorMessage:P,playReason:"",videoView:E}}))}},{eventName:"viewable",callback:async e=>{let{event:t}=e;E=null==t?void 0:t.viewable}},{eventName:"playAttempt",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();S.adImpression||C(),P="",console.debug("JW Player callback - playAttempt eventSentFlags:",S),a&&!S.videoAttempt&&l&&(S.videoAttempt=!0,l({eventName:"video-attempt",currentVideo:a,jwPlayer:t,eventAttributes:{adtitle:A,errorMessage:P,playReason:"",videoView:E}}))}},{eventName:"firstFrame",callback:async e=>{let{player:t,trackVideoEvent:l}=e;console.debug("JW Player callback - firstFrame eventSentFlags:",S);let a=t.getPlaylistItem();a&&!S.videoPlayed&&l&&(S.videoPlayed=!0,l({eventName:"video-played",currentVideo:a,jwPlayer:t,eventAttributes:{adtitle:A,errorMessage:P,playReason:"",videoView:E}})),a&&l&&!S.videoStarted&&(S.videoStarted=!0,l({eventName:"video-started",currentVideo:a,jwPlayer:t,eventAttributes:{adtitle:A,errorMessage:P,playReason:"",videoView:E}}))}},{eventName:"complete",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();console.debug("JW Player callback - complete eventSentFlags:",S),a&&!S.videoCompleted&&l&&(S.videoCompleted=!0,l({eventName:"video-completed",currentVideo:a,jwPlayer:t,eventAttributes:{adtitle:A,errorMessage:P,playReason:"",videoView:E}}))}},{eventName:"adStarted",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();console.debug("JW Player callback - adStarted eventSentFlags:",S),A=null==t?void 0:t.adtitle,n&&a&&a({eventName:"ad-started",currentVideo:n,jwPlayer:l,eventAttributes:{adtitle:A,errorMessage:P,playReason:"",videoView:E}})}},{eventName:"adSkipped",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();a&&l&&l({eventName:"ad-skipped",currentVideo:a,jwPlayer:t,eventAttributes:{adtitle:A,errorMessage:P,playReason:"",videoView:E}})}},{eventName:"adComplete",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();console.debug("JW Player callback - adComplete eventSentFlags:",S),A=null==t?void 0:t.adtitle,n&&a&&a({eventName:"ad-complete",currentVideo:n,jwPlayer:l,eventAttributes:{adtitle:A,errorMessage:P,playReason:"",videoView:E}})}},{eventName:"adError",callback:async e=>{let{event:t}=e;console.error("Video ad error:",t)}},{eventName:"error",callback:async e=>{let{event:t}=e;P=null==t?void 0:t.message,console.error("Video Player error:",t)}}];var T=l(80743),R=l(65836),L=l(28525),U=l(1465),B=l(11113),D=l(583);let M=()=>{let e=(0,D.q)(),t=(0,R.N)({effectiveLocation:e}),l=(0,B.A)(),a=(0,L.usePathname)();return(0,n.useCallback)(e=>{var n,r,i,s,o,d,c,u,m,p,v,g,f,x,h,b,w,y,j,N,k,_,A,P,E,S,C,I,R,L,B,D,M,V,z;let{eventName:F,currentVideo:O,jwPlayer:J,eventAttributes:$={}}=e;if(!T.A.isInitialized())return void console.warn("MParticle is not initialized");let W={adBlock:J.getAdBlock(),adsMetricsUnitAndZone:null==O||null==(r=O.custom)||null==(n=r.ctx)?void 0:n.adzone,aspectRatio:null==J||null==(i=J.getConfig())?void 0:i.aspectratio,assetName:(0,U.EY)(null!=(V=null==O||null==(o=O.custom)||null==(s=o.ctx)?void 0:s.assetName)?V:""),author:(null==l?void 0:l.author)||"",collection:null==O||null==(c=O.custom)||null==(d=c.ctx)?void 0:d.pcollid,collectionId:null==O||null==(m=O.custom)||null==(u=m.ctx)?void 0:u.pcollid,contentId:(null==l?void 0:l.contentId)||(null==O||null==(v=O.custom)||null==(p=v.ctx)?void 0:p.id),entitlements:(0,U.X$)(null!=(z=null==O||null==(f=O.custom)||null==(g=f.ctx)?void 0:g.entitlements)?z:[]),iabContent:(0,U.IA)((null==O||null==(h=O.custom)||null==(x=h.ctx)?void 0:x.iab)||{}),id:null==O||null==(w=O.custom)||null==(b=w.ctx)?void 0:b.id,duration:null==O||null==(j=O.custom)||null==(y=j.ctx)?void 0:y.duration,lastmodifieddate:null==O||null==(k=O.custom)||null==(N=k.ctx)?void 0:N.lastmodifieddate,muted:J.getMute(),premiumContent:null==O||null==(A=O.custom)||null==(_=A.ctx)?void 0:_.premium,publishdate:null==O||null==(E=O.custom)||null==(P=E.ctx)?void 0:P.publishdate,providerName:null==O||null==(C=O.custom)||null==(S=C.ctx)?void 0:S.providername,tagsGeo:(0,U.X$)(null==O||null==(R=O.custom)||null==(I=R.ctx)?void 0:I.tagsGeo),tagsKeyword:(0,U.X$)(null==O||null==(B=O.custom)||null==(L=B.ctx)?void 0:L.tagsKeyword),tagsStorm:(0,U.X$)(null==O||null==(M=O.custom)||null==(D=M.ctx)?void 0:D.tagsStorm),teaserTitle:"",title:"",...t,...$,url:a?(0,U.EY)(a):""};try{T.A.logEvent(F,T.A.EventType.Other,W),console.debug('MParticle: Video Event tracked - "'.concat(F,'"'),W)}catch(e){console.error('MParticle: Failed to track Video Event - "'.concat(F,'"'),e)}},[null==l?void 0:l.author,null==l?void 0:l.contentId,t,a])};var V=l(15863),z=l(29548),F=l(35238),O=l(50533);let J=e=>{var t;let{file:l,image:o,title:d,description:c,tracks:u=[],playlist:m,custom:p={},playerSettings:v,descriptionAttributes:g}=e,f="video-player-".concat((0,n.useId)()),x=(0,n.useRef)(!0),h=(0,n.useRef)(null),b=(null==(t=(0,O.J)())?void 0:t.user)||{},w=M(),y=(0,n.useMemo)(()=>{let e=[];return!Array.isArray(u)&&(null==u?void 0:u.file)?e.push(u):Array.isArray(u)&&e.push(...u),e},[u]),j=(0,n.useMemo)(()=>{if(h.current&&JSON.stringify({file:l,image:o,title:d,description:c,tracks:y,playlist:m,custom:p})===JSON.stringify(h.current))return h.current;let e=o||(0,i.e)(l)||"/placeholder.jpg",t={file:l,image:e,title:d,description:c,tracks:y,custom:p};return h.current=t,t},[l,o,d,c,y,m,p]),N=(0,n.useMemo)(()=>(0,s.K)(m||[],j)||[],[m,j]);if((0,n.useEffect)(()=>{x.current=!0},[N]),!l)return null;let k=[..._,...I].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:x,user:b,trackVideoEvent:w})}}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(V.DebugCollector,{componentName:"VideoBlock",data:{props:{file:l,image:o,title:d,description:c,tracksCount:(0,z.J)(y),hasPlaylist:!!m&&m.length>0,custom:p},state:{videoObject:j,playlistItems:N.length,isFirstPlay:x.current,events:k.map(e=>e.eventName)},performance:{}}}),(0,a.jsx)(r.h,{playlist:N,events:k},f),(null==v?void 0:v.showDescriptions)&&(0,a.jsx)("p",{...g,className:(0,F.cn)("my-2 text-sm",null==g?void 0:g.className),children:j.title})]})}},64213:(e,t,l)=>{l.d(t,{default:()=>n});var a=l(7629);l(15545);let n=()=>(0,a.jsx)("div",{children:"Live Blog Entries"})},67821:(e,t,l)=>{l.d(t,{default:()=>s});var a=l(7629);l(15545);var n=l(50352),r=l(84870),i=l(90619);let s=e=>{let{title:t,image:l,subtitle:s,bodyText:o,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)||s||o||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,(s||o||d)&&(0,a.jsxs)("div",{className:"p-4",children:[s&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("h4",{className:"mb-2 text-base font-bold",children:s})}),o&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("p",{className:"mb-4 text-base",children:o})}),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}},74907:(e,t,l)=>{t.p_=i;let a=l(75587),n=l(90048),r=l(27221);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)),s=await fetch(l,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:i});if(200===s.status||400===s.status){let e=await s.json();return console.log({json:e}),e}return(0,n.handleFetchResponse)(s)}},82061:(e,t,l)=>{l.d(t,{A:()=>o});var a=l(15545),n=l(36183),r=l(50533),i=l(16980);let s=()=>{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}},o=function(){let{DISCONNECTED_user:e}=(0,r.J)(),[t,l]=(0,a.useState)(!1),o=(0,n.md)(i.W);return(0,a.useEffect)(()=>{o&&l(s())},[o]),t&&!(null==e?void 0:e.isUserPremium)}},82203:(e,t,l)=>{l.d(t,{default:()=>g});var a=l(7629),n=l(15545);let r={src:"/_next/static/media/SlideshowIcon.2da11b0d.png"};var i=l(19129),s=l(95445),o=l(39030),d=l(40511);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:v,next:g,sendTrackString:f,rounded:x=!1}=e;if(!u.length||m=u.length)return null;let h=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:h.url||"",alt:(null==(t=h.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)(s.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:()=>{f("wxnode_slideshow_link-previous"),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 left",children:(0,a.jsx)(o.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:()=>{f("wxnode_slideshow_link-next"),g()},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")})})})})]})}),h.filename&&!c(h.filename)&&(0,a.jsx)(s.EY,{variant:"Title.S",color:"primary",elementType:"h3",className:"mb-1 mt-0",children:h.filename}),(null==(l=h.seo)?void 0:l.caption)&&(0,a.jsx)(s.EY,{variant:"Body.S",color:"primary",className:"py-1 pb-0 ".concat(h.filename&&!c(h.filename)?"":"mt-0 pt-0"),children:h.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:s,sendTrackString:o=()=>{},rounded:d=!1}=e,c=(0,n.useId)(),m=t||"slideshow-".concat(c),p=r.length>0,[v,g]=(0,n.useState)(0),[f,x]=(0,n.useState)(1),[h,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(v-1>=0){let e=v-1?Math.ceil((v-1)/20):1;g(v-1),x(e)}},[v]),k=(0,n.useCallback)(()=>{if(v+1=h){let e=20*f;if(e-3l.length&&f>=h){let e=20*f;e-3{if(j(document.querySelector("#".concat(m))))switch(e.key){case"ArrowLeft":N();break;case"ArrowRight":k()}},[m,j,N,k]);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:v,totalAssets:i,previous:N,next:k,sendTrackString:o,rounded:d})};var p=l(90619),v=l(29548);let g=e=>{let{slides:t=[],settings:l={},id:n}=e;if(!(0,v.J)(t))return null;let r=[];for(let e of t){var i,s;if(!e.imageAsset){console.error("Slide missing imageAsset:",e);continue}let t=(0,p.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==(i=t.seo)?void 0:i.caption)||"",altText:e.imageTitle&&""!==e.imageTitle.trim()?e.imageTitle:(null==(s=t.seo)?void 0:s.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}};r.push(l)}return 0===r.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)(m,{id:n||"slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:r.slice(0,20),allSlides:r,totalAssets:r.length,rounded:(null==l?void 0:l.rounded)||!1,blockType:"Slideshow",slides:t,settings:l,sendTrackString:()=>{}})}},84002:(e,t,l)=>{l.d(t,{default:()=>c});var a=l(7629),n=l(15545),r=l(84870),i=l(35238),s=l(19129);let o=n.forwardRef((e,t)=>{let{src:l,alt:n,caption:r,credit:o,width:d=320,height:c=180,shadow:u=!0,rounded:m=!0,className:p,sizes:v,priority:g,imageAttributes:f}=e,x=!!(r||o);return(0,a.jsxs)("figure",{ref:t,className:(0,i.cn)(p),children:[(0,a.jsx)(s._,{src:l,alt:n,width:d,height:c,shadow:u,rounded:m,sizes:v,priority:g,...f}),x&&(0,a.jsxs)("figcaption",{className:"mt-2 text-sm leading-tight",children:[r&&(0,a.jsx)("p",{className:"",children:r}),o&&(0,a.jsxs)("p",{className:"text-gray-500",children:["(",o,")"]})]})]})});o.displayName="Figure";let d=e=>"object"==typeof e&&null!==e&&"url"in e,c=e=>{var t,l,n;let{imageType:s,internalImageId:c,externalImageUrl:u,controls:m,altText:p,isPriorityImage:v,imageAttributes:g,linkUrl:f}=e;if(!s||!c&&!u)return(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Missing data for the image block."});let x="internal"===s&&d(c),h=x?(null==c?void 0:c.url)||"":u||"",b=x?(null==c||null==(t=c.seo)?void 0:t.altText)||"":p||"",w="",y="";(null==m?void 0:m.showCaption)&&((!x||(null==m?void 0:m.useImageCaption))&&"external"!==s?x&&(w=(null==c||null==(l=c.seo)?void 0:l.caption)||"",y=(null==c||null==(n=c.seo)?void 0:n.credit)||""):(w=(null==m?void 0:m.caption)||"",y=(null==m?void 0:m.credit)||""));let j=(0,a.jsx)(o,{src:h,alt:b,caption:w,credit:y,priority:!!v,className:(0,i.cn)("my-4 flex flex-col",{"max-w-[480px]":(null==m?void 0:m.width)==="half"}),sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px",imageAttributes:g});return f?(0,a.jsx)(r.default,{href:f,target:"_blank",rel:"noopener noreferrer nofollow",children:j}):j}},84281:(e,t,l)=>{l.d(t,{default:()=>r});var a=l(7629);l(15545);var n=l(42629);let r=e=>{let{locationProvider:t}=e;return(0,a.jsx)(n.A,{})}},85492:(e,t,l)=>{l.d(t,{Cf:()=>c,L3:()=>u,LC:()=>d,ZJ:()=>o,lG:()=>s});var a=l(7629);l(15545);var n=l(90127),r=l(18967),i=l(35238);function s(e){let{...t}=e;return(0,a.jsx)(n.bL,{"data-slot":"dialog",...t})}function o(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,...s}=e;return(0,a.jsxs)(o,{"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),...s,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})}},90619:(e,t,l)=>{l.d(t,{bt:()=>a});function a(e){return"object"==typeof e&&null!==e&&"url"in e}},92429:(e,t,l)=>{l.d(t,{y:()=>r});var a=l(41635),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 n.env.VERCEL_PROJECT_PRODUCTION_URL?"production"===n.env.VERCEL_ENV?"https://weather.com":"https://".concat(n.env.VERCEL_PROJECT_PRODUCTION_URL):n.env.NEXT_PUBLIC_SERVER_URL||""}},92947:(e,t,l)=>{l.d(t,{default:()=>v});var a=l(7629),n=l(15545),r=l(28525),i=l(92429),s=l(15863),o=l(82061),d=l(25928);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}let m=()=>{window._taboola&&window._taboola.push({notify:"newPageLoad"})};var p=l(35238);let v=e=>{let{placements:t,pageType:l,className:d=""}=e,v=(0,o.A)(),g=(0,r.usePathname)(),[f,x]=(0,n.useState)(!1),h="//cdn.taboola.com/libtrc/theweatherchannel/loader.js";(0,n.useEffect)(()=>{if(v&&h)return x(!1),()=>{m()}},[v,h]);let b=(0,n.useMemo)(()=>{let e=(0,i.y)();return"".concat(e).concat(g||"")},[g]);return v&&h?(0,a.jsxs)("section",{className:(0,p.cn)("@container",d),children:[v&&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)(s.DebugCollector,{componentName:"TaboolaBlock",data:{props:{placements:t,loaderUrl:h,pageType:l,className:d},state:{loaded:f}}})]}):null}}}]);