"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3995],{4791:(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"}}},12655:(e,t,l)=>{l.d(t,{default:()=>n});var a=l(59716);l(77704);let n=()=>(0,a.jsx)("div",{children:"Live Blog Entries"})},12907:(e,t,l)=>{l.d(t,{default:()=>d});var a=l(59716),n=l(77704),r=l(67352),i=l(13820),s=l(40843);let o=n.forwardRef((e,t)=>{let{src:l,alt:n,caption:r,credit:o,width:c=320,height:d=180,shadow:u=!0,rounded:v=!0,className:m,sizes:h,priority:p,imageAttributes:f}=e,g=!!(r||o);return(0,a.jsxs)("figure",{ref:t,className:(0,i.cn)(m),children:[(0,a.jsx)(s._,{src:l,alt:n,width:c,height:d,shadow:u,rounded:v,sizes:h,priority:p,...f}),g&&(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 c=e=>"object"==typeof e&&null!==e&&"url"in e,d=e=>{var t,l,n;let{imageType:s,internalImageId:d,externalImageUrl:u,controls:v,altText:m,isPriorityImage:h,imageAttributes:p,linkUrl:f}=e;if(!s||!d&&!u)return(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Missing data for the image block."});let g="internal"===s&&c(d),x=g?(null==d?void 0:d.url)||"":u||"",b=g?(null==d||null==(t=d.seo)?void 0:t.altText)||"":m||"",w="",y="";(null==v?void 0:v.showCaption)&&((!g||(null==v?void 0:v.useImageCaption))&&"external"!==s?g&&(w=(null==d||null==(l=d.seo)?void 0:l.caption)||"",y=(null==d||null==(n=d.seo)?void 0:n.credit)||""):(w=(null==v?void 0:v.caption)||"",y=(null==v?void 0:v.credit)||""));let j=(0,a.jsx)(o,{src:x,alt:b,caption:w,credit:y,priority:!!h,className:(0,i.cn)("my-4 flex flex-col",{"max-w-[480px]":(null==v?void 0:v.width)==="half"}),sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px",imageAttributes:p});return f?(0,a.jsx)(r.default,{href:f,children:j}):j}},12934:(e,t,l)=>{l.d(t,{default:()=>p});var a=l(59716),n=l(77704);let r={src:"/_next/static/media/SlideshowIcon.2da11b0d.png"};var i=l(40843),s=l(14039),o=l(71886),c=l(95095);let d=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:v,totalAssets:m,previous:h,next:p,sendTrackString:f,rounded:g=!1}=e;if(!u.length||v=u.length)return null;let x=u[v],b="".concat(v+1,"/").concat(m),w=0===v,y=v===m-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:g?"overflow-hidden rounded-[16px]":"",children:(0,a.jsx)("div",{className:"relative w-full ".concat(g?"rounded-[16px]":""),children:(0,a.jsx)("div",{className:"relative w-full ".concat(g?"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:x.url||"",alt:(null==(t=x.seo)?void 0:t.altText)||"",rounded:g,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"),h()},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"),p()},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)(c.A,{className:"h-5 w-5 ".concat(y?"text-gray-200":"text-blue-500")})})})})]})}),x.filename&&!d(x.filename)&&(0,a.jsx)(s.EY,{variant:"Title.S",color:"primary",elementType:"h3",className:"mb-1 mt-0",children:x.filename}),(null==(l=x.seo)?void 0:l.caption)&&(0,a.jsx)(s.EY,{variant:"Body.S",color:"primary",className:"py-1 pb-0 ".concat(x.filename&&!d(x.filename)?"":"mt-0 pt-0"),children:x.seo.caption}),(0,a.jsx)("div",{className:"border-b border-gray-200 py-2"})]})})]})},v=e=>{let{id:t,assets:l=[],allSlides:r=[],totalAssets:i=r.length||0,loadNextSlideshowPage:s,sendTrackString:o=()=>{},rounded:c=!1}=e,d=(0,n.useId)(),v=t||"slideshow-".concat(d),m=r.length>0,[h,p]=(0,n.useState)(0),[f,g]=(0,n.useState)(1),[x,b]=(0,n.useState)(1),[w,y]=(0,n.useState)(m?r.slice(0,20):l),j=(0,n.useCallback)(e=>{if(!e)return!1;let{top:t}=e.getBoundingClientRect();return t>=-100&&t{if(h-1>=0){let e=h-1?Math.ceil((h-1)/20):1;p(h-1),g(e)}},[h]),k=(0,n.useCallback)(()=>{if(h+1=x){let e=20*f;if(e-3l.length&&f>=x){let e=20*f;e-3{if(j(document.querySelector("#".concat(v))))switch(e.key){case"ArrowLeft":N();break;case"ArrowRight":k()}},[v,j,N,k]);return(0,n.useEffect)(()=>(document.body.addEventListener("keydown",_),()=>{document.body.removeEventListener("keydown",_)}),[_]),(0,n.useEffect)(()=>{m&&0===w.length&&y(r.slice(0,20))},[m,r,w.length]),(0,a.jsx)(u,{id:v,assets:m?w:l,currentSlideIndex:h,totalAssets:i,previous:N,next:k,sendTrackString:o,rounded:c})};var m=l(61185),h=l(92458);let p=e=>{let{slides:t=[],settings:l={},id:n}=e;if(!(0,h.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,m.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)(v,{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:()=>{}})}},14407:(e,t,l)=>{l.d(t,{default:()=>i});var a=l(59716);l(77704);var n=l(47938),r=l(67352);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})})})}},16047:(e,t,l)=>{l.d(t,{default:()=>h});var a=l(59716),n=l(77704),r=l(56694),i=l(74171),s=l(51045),o=l(70283),c=l(52131);function d(e){let{url:t,scriptId:l}=e;return window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("tbl_ic"),(0,a.jsx)(c.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 v=()=>{window._taboola&&window._taboola.push({notify:"newPageLoad"})};var m=l(13820);let h=e=>{let{placements:t,pageType:l,className:c=""}=e,h=(0,o.A)(),p=(0,r.usePathname)(),[f,g]=(0,n.useState)(!1),x="//cdn.taboola.com/libtrc/theweatherchannel/loader.js";(0,n.useEffect)(()=>{if(h&&x)return g(!1),()=>{v()}},[h,x]);let b=(0,n.useMemo)(()=>{let e=(0,i.y)();return"".concat(e).concat(p||"")},[p]);return h&&x?(0,a.jsxs)("section",{className:(0,m.cn)("@container",c),children:[h&&x&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d,{url:x,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:x,pageType:l,className:c},state:{loaded:f}}})]}):null}},20755:(e,t,l)=>{l.d(t,{A:()=>i,d:()=>r});var a=l(77704),n=l(71017);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},26022:(e,t,l)=>{l.d(t,{default:()=>D});var a=l(59716),n=l(77704),r=l(67291),i=l(57059),s=l(5027),o=l(74243);let c=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 d(a);n?t.playAd(n):t.play()},d=async e=>{let t;if(!h())return null;let l=v(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 m()}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},v=e=>{let t=e.collectionAdZone||e.adzone||"video";return"".concat("/7646","/").concat("").concat("web_weather_us","/").concat(t)},m=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)},h=()=>{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}},p=e=>!!e.viewable,f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https";return e.replace(/^\/\//,"".concat(t,"://"))},g=e=>e?e.split("&").reduce((e,t)=>{let[l,a]=t.split("=");return l&&a&&(e[l]||(e[l]=[]),e[l].push(a)),e},{}):{},x=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(52131);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:p(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",{...x(s),isViewable:p(l),playReason:l.playReason}),a.stop(),await c({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=x(r);try{let e=f(l.tag||""),t=new URL(e).searchParams.get("cust_params"),a=g(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:p(l),roll:l.adposition,...i})}},{eventName:"adStarted",callback:e=>{var t,l,a,n,r,i;let{event:s,player:c}=e,d=c.getPlaylistItem(),u=null==d||null==(t=d.custom)?void 0:t.ctx,{duration:v,adposition:m}=s,h=x(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 g=!!(null==(n=s.ima)||null==(a=n.ad)||null==(l=a.data)?void 0:l.skippable);j("videoAdStart",{...h,isViewable:p(s),duration:v,roll:m,lineItemId:f,isSkippable:g})}},{eventName:"firstFrame",callback:e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();j("videoStart",{...x(null==n||null==(t=n.custom)?void 0:t.ctx),isViewable:p(l),loadTime:l.loadTime})}},{eventName:"complete",callback:e=>{var t;let{player:l}=e,a=l.getPlaylistItem();j("videoComplete",{...x(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",{...x(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 c({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",{...x(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",{...x(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})}}],E="",A="",P="",S=1,I={videoAttempt:!1,videoPlayed:!1,videoStarted:!1,videoCompleted:!1,sevenSecondEvent:!1,twentyFivePercentEvent:!1,fiftyPercentEvent:!1,seventyFivePercentEvent:!1},C=[{eventName:"viewable",callback:async e=>{let{event:t}=e;S=null==t?void 0:t.viewable}},{eventName:"beforePlay",callback:async()=>{console.debug("JW Player callback - beforePlay eventSentFlags:",I)}},{eventName:"playAttempt",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();Object.keys(I).map(e=>{I[e]=!1}),P="",console.debug("JW Player callback - playAttempt eventSentFlags:",I),a&&!I.videoAttempt&&l&&(I.videoAttempt=!0,l({eventName:"video-attempt",currentVideo:a,jwPlayer:t,eventAttributes:{adtitle:E,errorMessage:P,playReason:A,videoView:S}}))}},{eventName:"play",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e;A=null==t?void 0:t.playReason;let n=l.getPlaylistItem();console.debug("JW Player callback - play eventSentFlags:",I),n&&!I.videoPlayed&&a&&(I.videoPlayed=!0,a({eventName:"video-played",currentVideo:n,jwPlayer:l,eventAttributes:{adtitle:E,errorMessage:P,playReason:A,videoView:S}}))}},{eventName:"firstFrame",callback:async e=>{let{player:t,trackVideoEvent:l}=e;console.debug("JW Player callback - firstFrame eventSentFlags:",I);let a=t.getPlaylistItem();a&&l&&(I.videoStarted=!0,l({eventName:"video-started",currentVideo:a,jwPlayer:t,eventAttributes:{adtitle:E,errorMessage:P,playReason:A,videoView:S}}))}},{eventName:"complete",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();console.debug("JW Player callback - complete eventSentFlags:",I),a&&l&&l({eventName:"video-completed",currentVideo:a,jwPlayer:t,eventAttributes:{adtitle:E,errorMessage:P,playReason:A,videoView:S}})}},{eventName:"adStarted",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();console.debug("JW Player callback - adStarted eventSentFlags:",I),E=null==t?void 0:t.adtitle,n&&a&&(I.videoCompleted=!0,a({eventName:"ad-started",currentVideo:n,jwPlayer:l,eventAttributes:{adtitle:E,errorMessage:P,playReason:A,videoView:S}}))}},{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:E,errorMessage:P,playReason:A,videoView:S}})}},{eventName:"adComplete",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();console.debug("JW Player callback - adComplete eventSentFlags:",I),E=null==t?void 0:t.adtitle,n&&a&&a({eventName:"ad-complete",currentVideo:n,jwPlayer:l,eventAttributes:{adtitle:E,errorMessage:P,playReason:A,videoView:S}})}},{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)}},{eventName:"time",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem(),r=null==t?void 0:t.currentTime,i=null==t?void 0:t.duration,s=Math.floor(r),o=s===Math.floor(i/4),c=s===Math.floor(i/2),d=s===Math.floor(i/4*3),u=7===s&&!I.sevenSecondEvent,v=o&&!I.twentyFivePercentEvent,m=c&&!I.fiftyPercentEvent,h=d&&!I.seventyFivePercentEvent,p="";switch(!0){case u:p="video7second",I.sevenSecondEvent=!0;break;case v:p="video25",I.twentyFivePercentEvent=!0;break;case m:p="video50",I.fiftyPercentEvent=!0;break;case h:p="video75",I.seventyFivePercentEvent=!0}p&&a&&a({eventName:p,currentVideo:n,jwPlayer:l,eventAttributes:{adtitle:E,errorMessage:P,playReason:A,videoView:S}})}}];var M=l(95077),z=l(64058),T=l(56694),V=l(23383),R=l(85527),q=l(7849);let L=()=>{let e=(0,q.q)(),t=(0,z.N)({effectiveLocation:e}),l=(0,R.A)(),a=(0,T.usePathname)();return(0,n.useCallback)(e=>{var n,r,i,s,o,c,d,u,v,m,h,p,f,g,x,b,w,y,j,N,k,_,E,A,P,S,I,C,z,T,R,q,L,U,B;let{eventName:F,currentVideo:O,jwPlayer:D,eventAttributes:H={}}=e;if(!M.A.isInitialized())return void console.warn("MParticle is not initialized");let J={adBlock:D.getAdBlock(),adsMetricsUnitAndZone:null==O||null==(r=O.custom)||null==(n=r.ctx)?void 0:n.adzone,aspectRatio:null==D||null==(i=D.getConfig())?void 0:i.aspectratio,assetName:(0,V.EY)(null!=(U=null==O||null==(o=O.custom)||null==(s=o.ctx)?void 0:s.assetName)?U:""),author:(null==l?void 0:l.author)||"",collection:null==O||null==(d=O.custom)||null==(c=d.ctx)?void 0:c.pcollid,collectionId:null==O||null==(v=O.custom)||null==(u=v.ctx)?void 0:u.pcollid,contentId:(null==l?void 0:l.contentId)||(null==O||null==(h=O.custom)||null==(m=h.ctx)?void 0:m.id),entitlements:(0,V.X$)(null!=(B=null==O||null==(f=O.custom)||null==(p=f.ctx)?void 0:p.entitlements)?B:[]),iabContent:(0,V.IA)((null==O||null==(x=O.custom)||null==(g=x.ctx)?void 0:g.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:D.getMute(),premiumContent:null==O||null==(E=O.custom)||null==(_=E.ctx)?void 0:_.premium,publishdate:null==O||null==(P=O.custom)||null==(A=P.ctx)?void 0:A.publishdate,providerName:null==O||null==(I=O.custom)||null==(S=I.ctx)?void 0:S.providername,tagsGeo:(0,V.X$)(null==O||null==(z=O.custom)||null==(C=z.ctx)?void 0:C.tagsGeo),tagsKeyword:(0,V.X$)(null==O||null==(R=O.custom)||null==(T=R.ctx)?void 0:T.tagsKeyword),tagsStorm:(0,V.X$)(null==O||null==(L=O.custom)||null==(q=L.ctx)?void 0:q.tagsStorm),teaserTitle:"",title:"",...t,...H,url:a?(0,V.EY)(a):""};try{M.A.logEvent(F,M.A.EventType.Other,J),console.debug('MParticle: Video Event tracked - "'.concat(F,'"'),J)}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 U=l(51045),B=l(92458),F=l(13820),O=l(88423);let D=e=>{var t;let{file:l,image:o,title:c,description:d,tracks:u=[],playlist:v,custom:m={},playerSettings:h,descriptionAttributes:p}=e,f="video-player-".concat((0,n.useId)()),g=(0,n.useRef)(!0),x=(0,n.useRef)(null),b=(null==(t=(0,O.J)())?void 0:t.user)||{},w=L(),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(x.current&&JSON.stringify({file:l,image:o,title:c,description:d,tracks:y,playlist:v,custom:m})===JSON.stringify(x.current))return x.current;let e=o||(0,i.e)(l)||"/placeholder.jpg",t={file:l,image:e,title:c,description:d,tracks:y,custom:m};return x.current=t,t},[l,o,c,d,y,v,m]),N=(0,n.useMemo)(()=>(0,s.K)(v||[],j)||[],[v,j]);if((0,n.useEffect)(()=>{g.current=!0},[N]),!l)return null;let k=[..._,...C].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:g,user:b,trackVideoEvent:w})}}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(U.DebugCollector,{componentName:"VideoBlock",data:{props:{file:l,image:o,title:c,description:d,tracksCount:(0,B.J)(y),hasPlaylist:!!v&&v.length>0,custom:m},state:{videoObject:j,playlistItems:N.length,isFirstPlay:g.current,events:k.map(e=>e.eventName)},performance:{}}}),(0,a.jsx)(r.h,{playlist:N,events:k},f),(null==h?void 0:h.showDescriptions)&&(0,a.jsx)("p",{...p,className:(0,F.cn)("my-2 text-sm",null==p?void 0:p.className),children:j.title})]})}},38033:(e,t,l)=>{l.d(t,{default:()=>U});var a,n,r=l(59716),i=l(77704),s=l(98291),o=l(38121),c=l(38089),d=l(45337),u=l(39111),v=l(68899),m=l(20755),h=l(97729),p=l(4164),f=l(91477),g=l(13820);function x(e){let{className:t,...l}=e;return(0,r.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 b(e){let{className:t,...l}=e;return(0,r.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,r.jsx)(f.A,{className:"size-4 shrink-0 opacity-50"}),(0,r.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 w(e){let{className:t,...l}=e;return(0,r.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 y(e){let{className:t,...l}=e;return(0,r.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 j(e){let{className:t,...l}=e;return(0,r.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(58582);var N=l(31783);function k(e){var t;let{label:l,placeholder:a,className:n,location:s,onChangeLocation:c}=e,[p,f]=(0,i.useState)(!1),[k,_]=(0,i.useState)(""),{isLoading:E,data:A}=function(e){let t=e.trim().length>0,{isLoading:l,data:a,error:n}=(0,v.Ay)(t?["search/locations",encodeURIComponent(e)]:null,async()=>await (0,u.SK)(e));return{isLoading:l,data:a,error:n}}((0,m.A)(k,300));return(0,r.jsxs)(h.AM,{open:p,onOpenChange:f,children:[(0,r.jsx)(h.Wv,{asChild:!0,children:(0,r.jsxs)(d.$n,{variant:"outline",role:"combobox",className:(0,g.cn)("text-muted-foreground flex w-full text-nowrap bg-white px-2",n),children:[(0,r.jsx)("div",{children:E?(0,r.jsx)(o.A,{className:"animate-spin"}):(0,r.jsx)(N.A,{})}),(0,r.jsx)("div",{className:"flex flex-1 px-2 text-start",children:null!=(t=null==s?void 0:s.displayName)?t:l})]})}),(0,r.jsx)(h.hl,{className:"w-full",children:(0,r.jsxs)(x,{shouldFilter:!1,children:[(0,r.jsx)(b,{placeholder:a,value:k,onValueChange:_}),(0,r.jsx)(w,{children:(0,r.jsx)(y,{children:null==A?void 0:A.map(e=>(0,r.jsx)(j,{value:e.locId,onSelect:()=>{null==c||c(e),f(!1)},children:e.address},e.locId))})})]})})]})}var _=l(40306);function E(e){let{label:t,error:l,className:a,...n}=e;return(0,r.jsxs)("div",{className:"w-full",children:[t&&(0,r.jsx)("label",{className:"text-sm",children:t}),(0,r.jsx)(_.p,{...n,className:l?"".concat(a," border-red-500"):a})]})}var A=l(67352);let P={"{{terms}}":{text:"Terms",url:"https://".concat("weather.com","/legal")},"{{privacy}}":{text:"Privacy Policy",url:"https://".concat("weather.com","/en-US/twc/privacy-policy")}},S=/\{\{(.*?)\}\}/g;function I(){return(0,r.jsx)("div",{className:"mt-4 text-xs",children:"By signing up you agree to the {{terms}} & {{privacy}}. Unsubscribe at any time.".split(S).map((e,t)=>{let l=P["{{".concat(e,"}}")];return l?(0,r.jsx)(A.default,{href:l.url,className:"underline",children:l.text},t):(0,r.jsx)("span",{children:e},t)})})}var C=["title","titleId","desc","descId"];function M(){return(M=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var e;let[t,l]=(0,i.useState)(""),[a,n]=(0,i.useState)(null),{data:u,loading:v,onSubmit:m,error:h}=function(){let{isMutating:e,trigger:t,data:l,error:a,reset:n}=(0,V.A)("daily-newsletters-1",q);return{loading:e,error:a,data:l,onSubmit:(0,i.useCallback)(async e=>{await t(e)},[t]),onReset:n}}(),p=(0,i.useCallback)(async e=>{e.preventDefault(),!v&&t.trim()&&a&&await m({email:t,location:a})},[m,t,a,v]);return(0,r.jsxs)("div",{style:{backgroundImage:'url("'.concat(T.src,'")'),backgroundPosition:"right top",backgroundRepeat:"no-repeat",backgroundSize:"70px"},className:"my-4 space-y-2 rounded-xl bg-white p-5 shadow-[0_3px_20px_0_rgba(181,171,162,0.5)]",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:gap-3",children:[(0,r.jsx)(z,{}),(0,r.jsx)("div",{className:"mb-1.5 hidden min-h-[24px] min-w-[2px] bg-black sm:block"}),(0,r.jsx)("div",{className:"text-lg font-semibold",children:"Weather in your inbox"})]}),(null==u?void 0:u.status)==="success"?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(s.A,{className:"h-6 w-6 text-green-500"}),(0,r.jsx)("div",{className:"text-sm text-gray-700",children:(0,r.jsx)("p",{children:"You are subscribed to the Morning Brief newsletter."})})]}):(0,r.jsxs)("form",{onSubmit:p,className:"flex flex-1 flex-col items-end gap-4 lg:flex-row",children:[(0,r.jsx)(E,{id:"email",required:!0,type:"email",placeholder:"Email",className:"h-12",value:t,onChange:e=>l(e.target.value),error:!!(null==u?void 0:u.emailError)}),(0,r.jsx)(k,{label:"Forecast Location",placeholder:"Search City or Zip Code",className:"h-12",location:a,onChangeLocation:n}),(0,r.jsx)("div",{children:(0,r.jsxs)(d.$n,{type:"submit",variant:"primary",className:"h-12 text-nowrap",disabled:v||!(t&&a),children:["Sign Up",v&&(0,r.jsx)(o.A,{className:"animate-spin"})]})})]}),h&&(0,r.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,r.jsx)(c.A,{className:"h-6 w-6 text-red-500"}),(0,r.jsx)("div",{className:"text-sm",children:h.message})]}),(null==u?void 0:u.status)==="error"&&(0,r.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,r.jsx)(c.A,{className:"h-6 w-6 text-red-500"}),(0,r.jsx)("div",{className:"text-sm",children:null!=(e=u.emailError)?e:u.error})]}),(0,r.jsx)(I,{})]})};L.displayName="MorningBriefBlock";let U=L},40306:(e,t,l)=>{l.d(t,{p:()=>r});var a=l(59716);l(77704);var n=l(13820);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})}},41495:(e,t,l)=>{l.d(t,{default:()=>r});var a=l(59716),n=l(77704);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})}},58582:(e,t,l)=>{l.d(t,{Cf:()=>d,L3:()=>u,LC:()=>c,ZJ:()=>o,lG:()=>s});var a=l(59716);l(77704);var n=l(93840),r=l(37279),i=l(13820);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 c(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 d(e){let{className:t,children:l,...s}=e;return(0,a.jsxs)(o,{"data-slot":"dialog-portal",children:[(0,a.jsx)(c,{}),(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})}},61185:(e,t,l)=>{l.d(t,{bt:()=>a});function a(e){return"object"==typeof e&&null!==e&&"url"in e}},70283:(e,t,l)=>{l.d(t,{A:()=>o});var a=l(77704),n=l(78610),r=l(88423),i=l(72698);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)}},72698:(e,t,l)=>{l.d(t,{W:()=>s,default:()=>c});var a=l(59716),n=l(52131),r=l(16182),i=l(13578);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 c(){return(0,a.jsx)(n.default,{async:!0,src:"https://weather.com/api/v1/script/dprSdkScript.js",onLoad:o})}},73805:(e,t,l)=>{t.p_=i;let a=l(25753),n=l(95474),r=l(4791);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)}},74171:(e,t,l)=>{l.d(t,{y:()=>r});var a=l(9005),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?"https://".concat(n.env.VERCEL_PROJECT_PRODUCTION_URL):n.env.NEXT_PUBLIC_SERVER_URL||""}},77515:(e,t,l)=>{l.d(t,{default:()=>r});var a=l(59716);l(77704);var n=l(62289);let r=e=>{let{locationProvider:t}=e;return(0,a.jsx)(n.A,{})}},84271:(e,t,l)=>{l.d(t,{default:()=>s});var a=l(59716);l(77704);var n=l(72517),r=l(67352),i=l(61185);let s=e=>{let{title:t,image:l,subtitle:s,bodyText:o,ctaButton:c}=e,d=(null==c?void 0:c.url)&&/^https?:\/\//i.test(c.url),u=(0,i.bt)(l)?l:null;return t||u&&(null==u?void 0:u.url)||s||o||c?(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:c&&c.url||"#",children:(0,a.jsx)(n.default,{src:u.url,alt:t||"Promo image",fill:!0,className:"object-cover"})})})}):null,(s||o||c)&&(0,a.jsxs)("div",{className:"p-4",children:[s&&(0,a.jsx)("a",{href:c&&c.url||"#",children:(0,a.jsx)("h4",{className:"mb-2 text-base font-bold",children:s})}),o&&(0,a.jsx)("a",{href:c&&c.url||"#",children:(0,a.jsx)("p",{className:"mb-4 text-base",children:o})}),c&&(0,a.jsx)("div",{className:"flex justify-end",children:d?(0,a.jsx)("a",{href:c.url||"#",target:c.openInNewTab?"_blank":"_self",rel:c.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:c.text}):(0,a.jsx)(r.default,{href:c.url||"#",target:c.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:c.text})})]})]})]}):null}},85527:(e,t,l)=>{l.d(t,{A:()=>s});var a=l(78610),n=l(23383),r=l(32887),i=l(77704);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])}},89063:(e,t,l)=>{l.d(t,{default:()=>o});var a=l(59716);l(77704);var n=l(30260),r=l(99863),i=l(79801),s=l(68899);let o=e=>{let{locationProvider:t,locationEntry:l}=e,o=e=>(0,r.PT)(e),{data:c,error:d,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&&d?(0,a.jsxs)("div",{children:["Error loading location data: ",d.message]}):"specified"===t&&c&&l?(0,a.jsx)(n.default,{location:(0,i.I)(c)}):"specified"!==t?(0,a.jsx)(n.default,{}):null}}}]);