"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6738],{12663:(e,t,l)=>{l.d(t,{default:()=>o});var a=l(74444);l(9600);var n=l(34162),r=l(45153),i=l(52394);let o=e=>{let{slides:t=[],settings:l={},id:o}=e;if(!(0,i.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:o||"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:()=>{}})}},23862:(e,t,l)=>{l.d(t,{Cf:()=>c,L3:()=>u,LC:()=>d,ZJ:()=>s,lG:()=>o});var a=l(74444);l(9600);var n=l(95981),r=l(47728),i=l(3612);function o(e){let{...t}=e;return(0,a.jsx)(n.bL,{"data-slot":"dialog",...t})}function s(e){let{...t}=e;return(0,a.jsx)(n.ZL,{"data-slot":"dialog-portal",...t})}function d(e){let{className:t,...l}=e;return(0,a.jsx)(n.hJ,{"data-slot":"dialog-overlay",className:(0,i.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...l})}function c(e){let{className:t,children:l,...o}=e;return(0,a.jsxs)(s,{"data-slot":"dialog-portal",children:[(0,a.jsx)(d,{}),(0,a.jsxs)(n.UC,{"data-slot":"dialog-content",className:(0,i.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...o,children:[l,(0,a.jsxs)(n.bm,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[(0,a.jsx)(r.A,{}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function u(e){let{className:t,...l}=e;return(0,a.jsx)(n.hE,{"data-slot":"dialog-title",className:(0,i.cn)("text-lg font-semibold leading-none",t),...l})}},37485:(e,t,l)=>{t.p_=i;let a=l(31353),n=l(77042),r=l(78839);async function i(e){let t=(0,r.getEmailPreferencesSetUrlConfig)(),l=(0,a.urlFrom)(t),i=JSON.stringify(function(e){let{subscriptions:t,email:l,mParticleId:a}=e,n={};return t&&(n.subscriptions=t),l&&(n.email=l),a&&(n.mParticleId=a),n}(e)),o=await fetch(l,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:i});if(200===o.status||400===o.status){let e=await o.json();return console.log({json:e}),e}return(0,n.handleFetchResponse)(o)}},40971:(e,t,l)=>{l.d(t,{default:()=>r});var a=l(74444);l(9600);var n=l(26602);let r=()=>(0,a.jsx)(n.A,{})},44975:(e,t,l)=>{l.d(t,{default:()=>o});var a=l(74444);l(9600);var n=l(48485),r=l(8781),i=l(45153);let o=e=>{let{title:t,image:l,subtitle:o,bodyText:s,ctaButton:d}=e,c=(null==d?void 0:d.url)&&/^https?:\/\//i.test(d.url),u=(0,i.bt)(l)?l:null;return t||u&&(null==u?void 0:u.url)||o||s||d?(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg bg-white",children:[t&&(0,a.jsx)("div",{className:"p-4",children:(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-900",children:t})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(null==u?void 0:u.url)?(0,a.jsx)("div",{className:"relative aspect-[42/13] w-full overflow-hidden bg-white px-4 pt-4",children:(0,a.jsx)("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)(n.default,{src:u.url,alt:t||"Promo image",fill:!0,className:"object-cover"})})})}):null,(o||s||d)&&(0,a.jsxs)("div",{className:"p-4",children:[o&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("h4",{className:"mb-2 text-base font-bold",children:o})}),s&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("p",{className:"mb-4 text-base",children:s})}),d&&(0,a.jsx)("div",{className:"flex justify-end",children:c?(0,a.jsx)("a",{href:d.url||"#",target:d.openInNewTab?"_blank":"_self",rel:d.openInNewTab?"noopener noreferrer":"",className:"inline-block max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap rounded-lg bg-black px-4 py-2 text-base font-normal text-white",children:d.text}):(0,a.jsx)(r.default,{href:d.url||"#",target:d.openInNewTab?"_blank":"_self",className:"inline-block max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap rounded-lg bg-black px-4 py-2 text-base font-normal text-white",children:d.text})})]})]})]}):null}},45153:(e,t,l)=>{l.d(t,{bt:()=>a});function a(e){return"object"==typeof e&&null!==e&&"url"in e}},45483:(e,t,l)=>{l.d(t,{A:()=>o});var a=l(9600),n=l(79585),r=l(48935),i=l(59066);let 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((()=>{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]),t&&!(null==e?void 0:e.isUserPremium)}},45607:(e,t,l)=>{l.d(t,{default:()=>i});var a=l(74444);l(9600);var n=l(79490),r=l(8781);let i=e=>{let{label:t,url:l,variant:i="bg-gray-900",inline:o=!1,isAffiliate:s=!0}=e;return(0,a.jsx)("div",{className:o?"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:i,inline:!1,className:"cursor-pointer whitespace-nowrap",children:t})})})}},46692:(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)}},56142:(e,t,l)=>{l.r(t),l.d(t,{TaboolaBlock:()=>p,default:()=>f});var a=l(74444),n=l(9600),r=l(75766),i=l(90907),o=l(11845),s=l(45483),d=l(31907);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(3612),v=l(46692);let p=e=>{let{placements:t,pageType:l,className:d="",article:p}=e,f=(0,s.A)(),g=(0,r.usePathname)(),h=(0,v.A)(p),x="//cdn.taboola.com/libtrc/theweatherchannel/loader.js";(0,n.useEffect)(()=>{if(!h&&f&&x)return()=>{window._taboola&&window._taboola.push({notify:"newPageLoad"})}},[f,x,h]);let y=(0,n.useMemo)(()=>{let e=(0,i.yw)();return"".concat(e).concat(g||"")},[g]);return!h&&f&&x?(0,a.jsxs)("section",{className:(0,m.cn)("@container",d),children:[f&&x&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c,{url:x,scriptId:"tb_loader_script"}),(0,a.jsx)(u,{pageType:l,placements:t,pageUrl:y})]}),(0,a.jsx)(o.DebugCollector,{componentName:"TaboolaBlock",data:{props:{placements:t,loaderUrl:x,pageType:l,className:d}}})]}):null},f=p},63363:(e,t,l)=>{l.d(t,{e:()=>n});let a="/placeholder.jpg",n=e=>{if(!e)return a;for(let t of[/(?:cdn\.jwplayer\.com\/(?:videos|manifests|previews)\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/,/(?:content\.jwplatform\.com\/(?:videos|manifests)\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/,/(?:players\.jwplayer\.com\/preview\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/]){let l=e.match(t);if(l&&l[1])return"https://cdn.jwplayer.com/v2/media/".concat(l[1],"/poster.jpg")}return a}},76955:(e,t,l)=>{l.d(t,{default:()=>d});var a=l(74444),n=l(9600),r=l(8781),i=l(3612),o=l(5483);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:v,sizes:p,priority:f,imageAttributes:g}=e,h=!!(r||s);return(0,a.jsxs)("figure",{ref:t,className:(0,i.cn)(v),children:[(0,a.jsx)(o._,{src:l,alt:n,width:d,height:c,shadow:u,rounded:m,sizes:p,priority:f,...g}),h&&(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:o,internalImageId:d,externalImageUrl:c,controls:u,altText:m,isPriorityImage:v,imageAttributes:p,linkUrl:f}=e;if(!o||!d&&!c)return(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Missing data for the image block."});let g="internal"===o&&(e=>"object"==typeof e&&null!==e&&"url"in e)(d),h=g?(null==d?void 0:d.url)||"":c||"",x=g?(null==d||null==(t=d.seo)?void 0:t.altText)||"":m||"",y="",b="";(null==u?void 0:u.showCaption)&&((!g||(null==u?void 0:u.useImageCaption))&&"external"!==o?g&&(y=(null==d||null==(l=d.seo)?void 0:l.caption)||"",b=(null==d||null==(n=d.seo)?void 0:n.credit)||""):(y=(null==u?void 0:u.caption)||"",b=(null==u?void 0:u.credit)||""));let w=(0,a.jsx)(s,{src:h,alt:x,caption:y,credit:b,priority:!!v,className:(0,i.cn)("my-4 flex flex-col",{"max-w-[480px]":(null==u?void 0:u.width)==="half"}),sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px",imageAttributes:p});return f?(0,a.jsx)(r.default,{href:f,target:"_blank",rel:"noopener noreferrer nofollow",children:w}):w}},78839:(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"}}},79490:(e,t,l)=>{l.d(t,{$n:()=>d});var a=l(74444),n=l(9600),r=l(66599),i=l(32041),o=l(3612);let s=(0,i.F)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 my-1 mx-1 py-2 px-4",{variants:{variant:{"bg-brand-200":"bg-brand-200 text-black hover:bg-brand-200/90","bg-brand-300":"bg-brand-300 text-white hover:bg-brand-300/90","bg-yellow-400":"bg-yellow-400 text-black hover:bg-yellow-400/90","bg-green-600":"bg-green-600 text-white hover:bg-green-500/90","bg-violet-500":"bg-violet-500 text-white hover:bg-violet-500/90","bg-gray-900":"bg-gray-900 text-white hover:bg-gray-900/90"},display:{block:"block",inline:"inline-block"}},defaultVariants:{variant:"bg-gray-900",display:"block"}}),d=n.forwardRef((e,t)=>{let{className:l,variant:n,display:i,inline:d=!1,asChild:c=!1,...u}=e,m=c?r.DX:"button";return(0,a.jsx)(m,{className:(0,o.cn)(s({variant:n,display:d?"inline":i,className:l})),ref:t,...u})});d.displayName="Button"},80719:(e,t,l)=>{l.d(t,{default:()=>n});var a=l(74444);l(9600);let n=()=>(0,a.jsx)("div",{children:"Live Blog Entries"})},84214:(e,t,l)=>{l.d(t,{h:()=>s});var a=l(74444),n=l(9600),r=l(31907);let i={autoplayadsmuted:!1,client:"googima",vpaidcontrols:!0},o=(0,l(51507).h)("JWPlayer"),s=e=>{var t;let{playlist:l,options:s={},setupParams:d={},events:c=[]}=e,u="player-".concat((0,n.useId)()),{playerId:m="IdNDrRWQ"}=d,v=(0,n.useMemo)(()=>({playlist:l,...(e=>{let{ads:t=!0,showDescriptions:l=!0}=e;return{aspectratio:"16:9",autostart:!0,backgroundLoading:!0,width:"100%",mute:!1,autoPause:{pauseAds:!0,viewability:!0},captions:{backgroundOpacity:50,fontSize:14},...t?{advertising:i}:{},...l?{displaytitle:!0,displaydescription:!0}:{displaytitle:!1,displaydescription:!1}}})(d),...s}),[l,d,s]),p=(0,n.useRef)(null),f=(0,n.useRef)(!1),g=null==l||null==(t=l[0])?void 0:t.file,[h,x]=(0,n.useState)(g?"loading":"error");return(0,n.useEffect)(()=>{if(f.current||!("jwplayer"in window)||"ready"!==h||!g)return;let e=window.jwplayer(u);p.current=e,f.current=!0,o.info("initialized player"),e.setup(v),c.forEach(t=>{let{eventName:l,callback:a}=t;e.on(l,t=>{a({event:t,player:e})}),o.lifecycle("Registered event handler for ".concat(l))})},[v,c,g,u,h]),(0,n.useEffect)(()=>()=>{if(p.current)try{p.current.remove(),p.current=null,f.current=!1}catch(e){o.error("Error removing JW Player",e)}},[]),(0,a.jsxs)("div",{children:[g&&(0,a.jsx)(r.default,{src:"https://cdn.jwplayer.com/libraries/".concat(m,".js"),strategy:"afterInteractive",onLoad:()=>x("ready"),onReady:()=>x("ready"),onError:()=>x("error")}),(0,a.jsx)("div",{className:"overflow-hidden rounded-lg",children:"loading"===h&&g?(0,a.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-black",children:(0,a.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-b-2 border-t-2 border-white"})}):"error"===h?(0,a.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-black text-white",children:"Failed to initialize video player"}):(0,a.jsx)("div",{id:u,className:"aspect-video w-full bg-black"})})]})}},85543:(e,t,l)=>{l.d(t,{default:()=>s});var a=l(74444);l(9600);var n=l(67331),r=l(33687),i=l(96808),o=l(25030);let s=e=>{let{locationProvider:t,locationEntry:l}=e,{data:s,error:d,isLoading:c}=(0,o.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,i.I)(s)}):"specified"!==t?(0,a.jsx)(n.default,{}):null}},90907:(e,t,l)=>{l.d(t,{yw:()=>r});var a=l(72237),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)})()}},94515:(e,t,l)=>{l.d(t,{default:()=>M});var a=l(74444),n=l(9600),r=l(10348),i=l(17810),o=l(60676),s=l(36505),d=l(9959),c=l(25030),u=l(56531),m=l(67399),v=l(61698),p=l(90516),f=l(3612);function g(e){let{className:t,...l}=e;return(0,a.jsx)(v.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 h(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)(p.A,{className:"size-4 shrink-0 opacity-50"}),(0,a.jsx)(v.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 x(e){let{className:t,...l}=e;return(0,a.jsx)(v.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 y(e){let{className:t,...l}=e;return(0,a.jsx)(v.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 b(e){let{className:t,...l}=e;return(0,a.jsx)(v.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(23862);var w=l(62884);function j(e){var t;let{label:l,placeholder:r,className:o,location:v,onChangeLocation:p}=e,[j,N]=(0,n.useState)(!1),[k,A]=(0,n.useState)(""),{isLoading:_,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)(s.$n,{variant:"outline",role:"combobox",className:(0,f.cn)("text-muted-foreground flex w-full text-nowrap bg-white px-2",o),children:[(0,a.jsx)("div",{children:_?(0,a.jsx)(i.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==v?void 0:v.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)(h,{placeholder:r,value:k,onValueChange:A}),(0,a.jsx)(x,{children:(0,a.jsx)(y,{children:null==P?void 0:P.map(e=>(0,a.jsx)(b,{value:e.locId,onSelect:()=>{null==p||p(e),N(!1)},children:e.address},e.locId))})})]})})]})}var N=l(45538);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 A=l(8781);let _={"{{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=_["{{".concat(e,"}}")];return l?(0,a.jsx)(A.default,{href:l.url,className:"underline",children:l.text},t):(0,a.jsx)("span",{children:e},t)})})}let I={src:"/_next/static/media/morning-brief-logo.73126316.svg"},C={src:"/_next/static/media/ellipse.b0c8befa.png"};var S=l(71975),R=l(37485),T=l(33687);async function U(e,t){let{arg:l}=t,{email:a,location:n,isAnonymous:r}=l,{location:i}=await (0,T.$M)(n.placeId).catch(()=>({location:null})),o={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&&(o.email=a),(0,R.p_)(o)}var F=l(48935),z=l(5483);let L=()=>{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:v,loading:p,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}}(),h=(0,n.useCallback)(async e=>{e.preventDefault(),!p&&d.trim()&&u&&await f({email:d,location:u,isAnonymous:!(null==l?void 0:l.email)})},[f,d,u,p,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)(z.A,{src:I.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==v?void 0:v.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:h,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==v?void 0:v.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)(s.$n,{type:"submit",variant:"primary",className:"flex h-12 items-center gap-1 text-nowrap",disabled:p||!(d&&u),children:[(0,a.jsx)("span",{children:"Sign Up"}),p&&(0,a.jsx)(i.A,{className:"animate-spin"})]})})]}),g&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(o.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:g.message})]}),(null==v?void 0:v.status)==="error"&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(o.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:null!=(t=v.emailError)?t:v.error})]}),(0,a.jsx)(E,{})]})};L.displayName="MorningBriefBlock";let M=L},98209:(e,t,l)=>{l.d(t,{default:()=>H});var a=l(74444),n=l(9600),r=l(25030),i=l(84214),o=l(63363),s=l(99907),d=l(51507);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=p(e,l),n=v({},e.iab);window.__Helios.emit("UPDATE_AD_UNIT_PATH",a);try{var r,i,o;null==(o=window.__Helios.modules)||null==(i=o.iabc)||null==(r=i.update)||r.call(i,{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},v=(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]=v(l[e]||{},t[e]):l[e]=t[e];return l},p=(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}},h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https";return e.replace(/^\/\//,"".concat(t,"://"))},x=e=>{let{collectionId:t,videoIndex:l,videoId:a}=e||{};return{videoCount:l,videoId:a,collectionId:t}},y=e=>"GDFP"===e||"AdSense/AdX"===e;l(31907);var b=l(37811);let w=(0,d.h)("NewRelic");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){w.error("New Relic: sendReumEvent error",e instanceof Error?e.message:String(e))}}b.env.NEW_RELIC_RUM_ACCOUNT_ID,b.env.NEW_RELIC_RUM_APP_ID,b.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=(0,d.h)("AdEvents"),A=new Set(["amznbid","crt_pb","hb_pb"]),_=[{eventName:"ready",callback:e=>{let{event:t}=e;j("videoReady",{isViewable:!!t.viewable,setupTime:t.setupTime})}},{eventName:"beforePlay",callback:async e=>{var t;let{event:l,player:a,isFirstPlayRef:n,user:r,isMobile:i}=e;if(!(null==n?void 0:n.current))return;let o=a.getPlaylistItem(),s=null==o||null==(t=o.custom)?void 0:t.ctx;s.videoIndex=a.getPlaylistIndex(),j("videoBeforePlay",{...x(s),isViewable:!!l.viewable,playReason:l.playReason}),a.stop(),await u({player:a,user:r,ctx:s,isMobile:i}),n.current=!1}},{eventName:"adRequest",callback:e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem(),r=null==n||null==(t=n.custom)?void 0:t.ctx,i={},o=x(r);try{let e=h(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))A.has(e)&&(i["".concat("kv_").concat(e)]="".concat(a[e]))}catch(e){k.error("Error parsing cust_params",e)}j("videoAdRequest",{...o,isViewable:!!l.viewable,roll:l.adposition,...i})}},{eventName:"adStarted",callback:e=>{var t,l,a,n,r,i;let{event:o,player:s}=e,d=s.getPlaylistItem(),c=null==d||null==(t=d.custom)?void 0:t.ctx,{duration:u,adposition:m}=o,v=x(c),p="";try{let e=null==(i=o.ima)||null==(r=i.ad)?void 0:r.data;e&&(p=(e=>{let{adSystem:t,adId:l,adWrapperSystems:a,adWrapperIds:n}={adSystem:"",adId:"",adWrapperSystems:[],adWrapperIds:[],...e};if(y(t))return l;let r=a.findIndex(y);return r>=0&&r{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:!!l.viewable,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,isMobile:i}=e;if(null==n?void 0:n.current)return;let{item:o}=l,s=null==o||null==(t=o.custom)?void 0:t.ctx;s.videoIndex=a.getPlaylistIndex(),a.stop(),await u({player:a,user:r,ctx:s,isMobile:i})}},{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}),k.error("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}),k.error("Video Player error",l)}},{eventName:"setupError",callback:e=>{let{event:t}=e;j("videoSetupError",{message:t.message,code:t.code})}}],P="",E="",I=1,C=0,S=0,R={adImpression:!1,videoAttempt:!1,videoPlayed:!1,videoStarted:!1,videoCompleted:!1,videoEnd:!1};function T(){Object.keys(R).map(e=>{R[e]=!1}),C=0,S=0}let U=[{eventName:"ready",callback:e=>{let{player:t,trackVideoEvent:l}=e;window.addEventListener("beforeunload",()=>{R.videoStarted&&!R.videoEnd&&(l({eventName:"video-end",currentVideo:t.getPlaylistItem(),jwPlayer:t,eventAttributes:{adtitle:P,errorMessage:E,contentWatchedSeconds:C,playReason:"",videoView:I}}),R.videoEnd=!0)})}},{eventName:"adImpression",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();T(),console.debug("JW Player callback - adImpression eventSentFlags:",R),P=null==t?void 0:t.adtitle,R.adImpression=!0,n&&!R.videoAttempt&&a&&(a({eventName:"video-attempt",currentVideo:n,jwPlayer:l,eventAttributes:{adtitle:P,errorMessage:E,playReason:"",videoView:I}}),R.videoAttempt=!0),n&&!R.videoPlayed&&a&&(a({eventName:"video-played",currentVideo:n,jwPlayer:l,eventAttributes:{adtitle:P,errorMessage:E,playReason:"",videoView:I}}),R.videoPlayed=!0)}},{eventName:"viewable",callback:async e=>{let{event:t}=e;I=null==t?void 0:t.viewable}},{eventName:"playlistItem",callback:async e=>{let{player:t,trackVideoEvent:l}=e;if(R.videoStarted&&!R.videoCompleted&&!R.videoEnd){let e=t.getPlaylistIndex();l({eventName:"video-end",currentVideo:t.getPlaylistItem(e-1),jwPlayer:t,eventAttributes:{adtitle:P,errorMessage:E,contentWatchedSeconds:C,playReason:"",videoView:I}}),R.videoEnd=!0}}},{eventName:"playAttempt",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();R.adImpression||T(),E="",console.debug("JW Player callback - playAttempt eventSentFlags:",R),a&&!R.videoAttempt&&l&&(R.videoAttempt=!0,l({eventName:"video-attempt",currentVideo:a,jwPlayer:t,eventAttributes:{adtitle:P,errorMessage:E,playReason:"",videoView:I}}))}},{eventName:"firstFrame",callback:async e=>{let{player:t,trackVideoEvent:l}=e;console.debug("JW Player callback - firstFrame eventSentFlags:",R);let a=t.getPlaylistItem();a&&!R.videoPlayed&&l&&(l({eventName:"video-played",currentVideo:a,jwPlayer:t,eventAttributes:{adtitle:P,errorMessage:E,playReason:"",videoView:I}}),R.videoPlayed=!0),a&&!R.videoStarted&&l&&(l({eventName:"video-started",currentVideo:a,jwPlayer:t,eventAttributes:{adtitle:P,errorMessage:E,playReason:"",videoView:I}}),R.videoStarted=!0)}},{eventName:"complete",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();console.debug("JW Player callback - complete eventSentFlags:",R),a&&!R.videoCompleted&&l&&(l({eventName:"video-completed",currentVideo:a,jwPlayer:t,eventAttributes:{adtitle:P,errorMessage:E,playReason:"",videoView:I}}),R.videoCompleted=!0),R.videoStarted&&!R.videoEnd&&(l({eventName:"video-end",currentVideo:a,jwPlayer:t,eventAttributes:{adtitle:P,errorMessage:E,contentWatchedSeconds:C,playReason:"",videoView:I}}),R.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:",R),P=null==t?void 0:t.adtitle,n&&a&&a({eventName:"ad-started",currentVideo:n,jwPlayer:l,eventAttributes:{adtitle:P,errorMessage:E,playReason:"",videoView:I}})}},{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:P,errorMessage:E,playReason:"",videoView:I}})}},{eventName:"adComplete",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();console.debug("JW Player callback - adComplete eventSentFlags:",R),P=null==t?void 0:t.adtitle,n&&a&&a({eventName:"ad-complete",currentVideo:n,jwPlayer:l,eventAttributes:{adtitle:P,errorMessage:E,playReason:"",videoView:I}})}},{eventName:"adError",callback:async e=>{let{event:t}=e;console.error("Video ad error:",t)}},{eventName:"error",callback:async e=>{let{event:t}=e;E=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-S;C+=e,S=t.position}}},{eventName:"seek",callback:e=>{let{event:t}=e;"number"==typeof(null==t?void 0:t.offset)&&(S=t.offset)}}];var F=l(31627),z=l(18778),L=l(75766),M=l(55767),O=l(25239),B=l(2729),D=l(11845),V=l(52394),J=l(3612),W=l(48935),Z=l(6618);let $=async e=>{let t=await fetch(e);if(!t.ok)throw Error("Failed to fetch video data from ".concat(e));return t.json()},H=e=>{var t;let{file:l,image:d,title:c,description:u,tracks:m=[],playlist:v,custom:p={},playerSettings:f,descriptionAttributes:g,videoReference:h,playlistsReference:x=[]}=e,y="video-player-".concat((0,n.useId)()),b=(0,n.useRef)(!0),w=(0,n.useRef)(null),j=(null==(t=(0,W.J)())?void 0:t.user)||{},N=(0,Z.i)(),k=null;h&&("string"==typeof h?k="/api/payload/videos/".concat(h):"object"==typeof h&&(k=(null==h?void 0:h.id)?"/api/payload/videos/".concat(h.id):null));let{data:A,error:P}=(0,r.Ay)(k,$,{revalidateOnFocus:!1,dedupingInterval:3e5}),E=(()=>{let e=(0,B.q)(),t=(0,z.N)({effectiveLocation:e}),l=(0,O.A)(),a=(0,L.usePathname)();return(0,n.useCallback)(e=>{var n,r,i,o,s,d,c,u,m,v,p,f,g,h,x,y,b,w,j,N,k,A,_,P,E,I,C,S,R,T,U,z,L,O,B;let{eventName:D,currentVideo:V,jwPlayer:J,eventAttributes:W={}}=e;if(!F.A.isInitialized())return void console.warn("MParticle is not initialized");let Z={adBlock:J.getAdBlock(),adsMetricsUnitAndZone:null==V||null==(r=V.custom)||null==(n=r.ctx)?void 0:n.adzone,aspectRatio:null==J||null==(i=J.getConfig())?void 0:i.aspectratio,assetName:(0,M.EY)(null!=(O=null==V||null==(s=V.custom)||null==(o=s.ctx)?void 0:o.assetName)?O:""),author:(null==l?void 0:l.author)||"",collection:null==V||null==(c=V.custom)||null==(d=c.ctx)?void 0:d.pcollid,collectionId:null==V||null==(m=V.custom)||null==(u=m.ctx)?void 0:u.pcollid,contentId:(null==l?void 0:l.contentId)||(null==V||null==(p=V.custom)||null==(v=p.ctx)?void 0:v.id),entitlements:(0,M.X$)(null!=(B=null==V||null==(g=V.custom)||null==(f=g.ctx)?void 0:f.entitlements)?B:[]),iabContent:(0,M.IA)((null==V||null==(x=V.custom)||null==(h=x.ctx)?void 0:h.iab)||{}),id:null==V||null==(b=V.custom)||null==(y=b.ctx)?void 0:y.id,duration:null==V||null==(j=V.custom)||null==(w=j.ctx)?void 0:w.duration,lastmodifieddate:null==V||null==(k=V.custom)||null==(N=k.ctx)?void 0:N.lastmodifieddate,muted:J.getMute(),premiumContent:null==V||null==(_=V.custom)||null==(A=_.ctx)?void 0:A.premium,publishdate:null==V||null==(E=V.custom)||null==(P=E.ctx)?void 0:P.publishdate,providerName:null==V||null==(C=V.custom)||null==(I=C.ctx)?void 0:I.providername,tagsGeo:(0,M.X$)(null==V||null==(R=V.custom)||null==(S=R.ctx)?void 0:S.tagsGeo),tagsKeyword:(0,M.X$)(null==V||null==(U=V.custom)||null==(T=U.ctx)?void 0:T.tagsKeyword),tagsStorm:(0,M.X$)(null==V||null==(L=V.custom)||null==(z=L.ctx)?void 0:z.tagsStorm),teaserTitle:"",title:"",...t,...W,url:a?(0,M.EY)(a):""};try{F.A.logEvent(D,F.A.EventType.Other,Z),console.debug('MParticle: Video Event tracked - "'.concat(D,'"'),Z)}catch(e){console.error('MParticle: Failed to track Video Event - "'.concat(D,'"'),e)}},[null==l?void 0:l.author,null==l?void 0:l.contentId,t,a])})(),I=(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]),C=(0,n.useMemo)(()=>A&&Object.keys(A).length>0||h&&"string"!=typeof h,[A,h]),S=(0,n.useMemo)(()=>A&&Object.keys(A).length>0?A:h&&"string"!=typeof h?h:null,[A,h]),R=(0,n.useMemo)(()=>{var e,t,a,n,r,i,o,s,d;return C&&(null==S||null==(t=S.content)||null==(e=t.videoFormatUrls)?void 0:e.length)>0?(null==S||null==(n=S.content)||null==(a=n.defaultFormat)?void 0:a.url)?null==S||null==(d=S.content)||null==(s=d.defaultFormat)?void 0:s.url:null==S||null==(o=S.content)||null==(i=o.videoFormatUrls)||null==(r=i[0])?void 0:r.url:l},[C,S,l]),T=(0,n.useMemo)(()=>{if(C){var e;return(null==S||null==(e=S.content)?void 0:e.keyFrameImage)||d}return d},[C,S,d]),H=(0,n.useMemo)(()=>C&&(null==S?void 0:S.title)||c,[C,S,c]),q=(0,n.useMemo)(()=>(C&&(null==S||S.description),u),[C,S,u]),X=(0,n.useMemo)(()=>{if(w.current&&JSON.stringify({file:R,image:T,title:H,description:q,tracks:I,playlist:v,custom:p})===JSON.stringify(w.current))return w.current;let e=T||(R?(0,o.e)(R):null)||"/placeholder.jpg",t={file:R,image:e,title:H,description:q,tracks:I,custom:p};return w.current=t,t},[R,T,H,q,I,v,p]),K=(0,n.useMemo)(()=>{var e,t,l,a;let n=[];return v&&(n=(0,s.K)(v,X)||[]),x&&x.length,C&&(null==S||null==(e=S.content)?void 0:e.playlists)&&Array.isArray(null==S||null==(t=S.content)?void 0:t.playlists)&&(null==S||null==(a=S.content)||null==(l=a.playlists)||l.length),n.length>0?n:[X]},[v,X,x,S,C]);if((0,n.useEffect)(()=>{b.current=!0},[K]),h&&"string"==typeof h&&!A&&!P)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(P)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(!R)return null;let G=[..._,...U].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:b,user:j,trackVideoEvent:E,isMobile:N})}}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(D.DebugCollector,{componentName:"VideoBlock",data:{props:{file:l,image:d,title:c,description:u,tracksCount:(0,V.J)(I),hasPlaylist:!!v&&v.length>0,custom:p},state:{videoObject:X,playlistItems:K.length,isFirstPlay:b.current,events:G.map(e=>e.eventName)},performance:{}}}),(0,a.jsx)(i.h,{playlist:K,events:G},y),(null==f?void 0:f.showDescriptions)&&(0,a.jsx)("p",{...g,className:(0,J.cn)("my-2 text-sm",null==g?void 0:g.className),children:X.title})]})}},98519:(e,t,l)=>{l.d(t,{default:()=>r});var a=l(74444),n=l(9600);let r=e=>{let{entryMethod:t,tweetURL:l,tweetId:r,showThread:i}=e,o=(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(o.current&&(o.current.innerHTML='\n

\n \n
\n ')),window.twttr&&window.twttr.widgets)window.twttr.widgets.load(o.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(o.current)}},[s,r,l,t,i]),(0,a.jsx)("div",{className:"flex items-center",ref:o})}},99907:(e,t,l)=>{l.d(t,{K:()=>a});let a=(e,t)=>{var l;if(!(null==t?void 0:t.file))return[];if("string"==typeof e)return(null==t?void 0:t.file)?[t]:[];let a=Array.isArray(e)?e:[];return(null==t?void 0:t.file)&&(!(a.length>0)||(null==(l=a[0])?void 0:l.file)!==(null==t?void 0:t.file))?[t,...a.filter(e=>e.file!==t.file)]:a}}}]);