"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8773],{11955:(e,t,l)=>{l.d(t,{GF:()=>n,UE:()=>s,nl:()=>i});var a=l(56436);let n=(0,a.eU)(void 0),i=(0,a.eU)(void 0),s=(0,a.eU)(void 0);(0,a.eU)(void 0)},13196:(e,t,l)=>{l.d(t,{a:()=>s});var a=l(20108),n=l(11955),i=l(97839);let s=()=>{let[e,t]=(0,a.fp)(n.nl),l=(0,a.Xr)(n.UE);return(0,i.useCallback)(function(a,n,i){let s=!(arguments.length>3)||void 0===arguments[3]||arguments[3];if(e){var r,o;let d=null==(o=window)||null==(r=o.jwplayer)?void 0:r.call(o);n!==e&&a&&(t(n),d.load(a));let c=a.findIndex(e=>e.mediaid===i);if(c>=0){let e=a[c];s&&(null==e?void 0:e.link)&&window.history.pushState({playlistId:n,videoId:i},"",e.link),l(e),d.playlistItem(c)}}},[e,t,l])}},15471:(e,t,l)=>{l.d(t,{A:()=>_});var a=l(66695),n=l(97839),i=l(81449),s=l(60400),r=l(20108),o=l(87189),d=l(33319),c=l(27274),u=l(11737),m=l(4901),p=l(24765),h=l(73237),v=l(11955),x=l(37238),f=l(42662),g=l(88504),b=l(72460),y=l(42302),w=l(36697),j=l(64070);let N={timeAgo:!0,daysFromNow:5,showFullTime:!1,locale:"en-US",timeZone:"America/New_York"},S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N;if(!e)return null;let{timeAgo:l,daysFromNow:a,showFullTime:n,locale:i,timeZone:s}={...N,...t},r=new Date(e),o=new Date;if(l){let e=o.getTime()-r.getTime(),t=Math.ceil(e/36e5),l=Math.ceil(e/864e5);if(t{let{authors:t,externalAuthors:l,updateDate:i,variant:s}=e;if(!(0,y.J)(t)&&!l&&!i)return null;let r=S(i),o=(0,y.J)(t)?t.map(e=>{var t;let l=null==(t=e.authorData)?void 0:t.profilePicture;if((0,b.bt)(l))return l}).filter(e=>void 0!==e):[],d=32+(o.length-1)*16,c=o.length>0&&"noAuthorImages"!==s;return(0,a.jsxs)("div",{className:"flex items-center pb-4 pt-2","data-testid":"authors-container",children:[c&&(0,a.jsx)("div",{className:(0,j.cn)("mr-2 flex -space-x-4"),style:{minWidth:"".concat(d,"px")},"data-testid":"author-images-container",children:o.map((e,l)=>{var n,i,s,r;return(null==e?void 0:e.url)?(0,a.jsx)(w.A,{width:32,height:32,src:e.url,alt:"".concat((null==t||null==(i=t[l])||null==(n=i.authorData)?void 0:n.firstName)||""," ").concat((null==t||null==(r=t[l])||null==(s=r.authorData)?void 0:s.lastName)||""),className:"flatplan_authorImage my-0 h-8 w-8 rounded-full border-2 border-white object-cover",style:{zIndex:o.length-l},"data-flatplan-id":"flatplan_authorImage","data-testid":"author-image-".concat(l),objectFit:"cover"},l):null})}),(0,a.jsxs)("div",{className:"inline","data-testid":"author-text-container",children:[((0,y.J)(t)||l)&&(0,a.jsx)(h.Ay,{variant:"Body.S",className:"mr-1 inline leading-[1rem]","data-testid":"by-text",elementType:"span",children:"By"}),(0,y.J)(t)&&t.map((e,l)=>{if((0,b.QY)(e)){var i,s,r;let o="".concat(null==(i=e.authorData)?void 0:i.firstName," ").concat(null==(s=e.authorData)?void 0:s.lastName),d=l===t.length-1,c=l===t.length-2;return(0,a.jsxs)(n.Fragment,{children:[(null==e||null==(r=e.authorData)?void 0:r.bioUrl)?(0,a.jsx)(g.default,{href:e.authorData.bioUrl,"data-testid":"author-link-".concat(l),children:(0,a.jsx)(h.Ay,{className:"flatplan_authorName inline leading-[1rem] underline",variant:"Body.S",elementType:"span","data-flatplan-id":"flatplan_authorName","data-testid":"author-name-linked-".concat(l),children:o})}):(0,a.jsx)(h.Ay,{className:"flatplan_authorName inline leading-[1rem]",variant:"Body.S",elementType:"span","data-flatplan-id":"flatplan_authorName","data-testid":"author-name-".concat(l),children:o}),!d&&(0,a.jsx)(h.Ay,{variant:"Body.S",elementType:"span",className:"inline leading-[1rem] ".concat(c?"mx-1":"mr-1"),"data-testid":"author-separator-".concat(l),children:c?"and":","})]},e.id)}return null}),l&&(0,a.jsx)(h.Ay,{variant:"Body.S",elementType:"span",className:"inline leading-[1rem] ".concat((0,y.J)(t)?"ml-1":""),"data-testid":"external-authors",children:(0,y.J)(t)?", ".concat(l):l}),r&&(0,a.jsxs)("span",{className:"whitespace-nowrap",children:[((0,y.J)(t)||l)&&(0,a.jsx)(h.Ay,{variant:"Body.S",elementType:"span",color:"secondary",className:"mx-1 inline leading-[1rem]","data-testid":"date-separator",children:"•"}),(0,a.jsx)(h.Ay,{variant:"Body.S",elementType:"span",color:"secondary",className:"inline whitespace-nowrap leading-[1rem]","data-testid":"update-date",children:r})]})]})]})};var A=l(60061);let _=e=>{var t,l,g,b,y,w,j;let{videos:N,className:S,autoplay:_=!1,showControls:k=!0,showTitle:U=!0,showDescription:T=!0,aspectRatio:I="16:9",playerId:F="QidSYgAw"}=e,[M,B]=(0,r.fp)(v.UE),D=(0,r.md)(v.GF),E=(0,f.z)(),P="video-player-".concat((0,n.useId)()),L=(0,n.useRef)(!0),z=(null==(t=(0,m.J)())?void 0:t.user)||{},O=(0,u.c)(),[W,J]=(0,n.useState)(!1),R=(0,n.useRef)(null==M?void 0:M.mediaid);(0,n.useEffect)(()=>{R.current=null==M?void 0:M.mediaid},[M]);let q=(0,n.useCallback)(e=>{let{event:t,player:l}=e,a=t.item;R.current!==(null==a?void 0:a.mediaid)&&(B(a),window.history.pushState({playlistId:D,videoId:a.mediaid},"",a.link||""))},[D,B]),H=(0,n.useCallback)(e=>{var t,l,a;let{player:n}=e,i=null==(a=window)||null==(l=a.ns_)||null==(t=l.StreamingAnalytics)?void 0:t.JWPlayer;i&&i(n,{publisherId:"9576127"})},[]);if(!M)return null;let G=[...d.v,...c.yW,{eventName:"playlistItem",callback:q},{eventName:"ready",callback:H}].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:L,user:z,trackVideoEvent:O,isMobile:E})}}});return(0,a.jsxs)("div",{className:S,children:[(0,a.jsx)("div",{className:"mb-4 overflow-hidden md:rounded-lg",children:(0,a.jsx)(o.h,{playlist:N,events:G,options:{aspectratio:I,autostart:_,controls:k,displaytitle:!1,displaydescription:!1,width:"100%"},setupParams:{playerId:F}},P)}),(0,a.jsxs)("div",{className:"mx-4 my-4 md:mx-0",children:[U&&(null==M?void 0:M.title)&&(0,a.jsx)(h.Ay,{variant:"Title.XL",className:"mb-2",children:null==M?void 0:M.title}),(null==M||null==(l=M.custom)?void 0:l.publishDate)&&(0,a.jsx)(C,{authors:null==M||null==(g=M.custom)?void 0:g.authors,externalAuthors:null==M||null==(b=M.custom)?void 0:b.externalAuthors,updateDate:null==M||null==(y=M.custom)?void 0:y.publishDate}),T&&(null==M?void 0:M.description)&&(0,a.jsx)(h.Ay,{variant:"Body.M",className:"mb-4",children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:null==M?void 0:M.description}})}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(null==M||null==(w=M.custom)?void 0:w.transcript)&&(0,a.jsxs)(p.$n,{className:"flex items-center text-sm font-medium",variant:"outline",onClick:()=>J(!W),children:["Transcript"," ",W?(0,a.jsx)(i.A,{className:"ml-1 h-4 w-4"}):(0,a.jsx)(s.A,{className:"ml-1 h-4 w-4"})]}),(0,a.jsx)(A.ViewCommentsButton,{articleId:(null==M?void 0:M.mediaid)||"",isMobile:E}),(0,a.jsx)(x.Share,{type:"video",title:M.title||"",imageUrl:M.image})]}),W&&(null==M||null==(j=M.custom)?void 0:j.transcript)&&(0,a.jsx)("div",{className:"mt-4 rounded-lg bg-[#F4F4F4] p-4",children:(0,a.jsx)("p",{className:"text-sm text-gray-700",children:null==M?void 0:M.custom.transcript})})]})]})}},30184:(e,t,l)=>{t.V=s;let a=l(91236),n=l(54435),i=l(71744);async function s(e,t){let l=t?t.split("-").join("_"):"en_US",s=(0,n.urlFrom)((0,a.getCMSCollectionsUrlConfig)({collectionId:e,locale:l})),r=await fetch(s,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300,tags:[e]}});return(0,i.handleFetchResponse)(r)}},30275:(e,t,l)=>{l.d(t,{O:()=>o});var a=l(66695),n=l(64070),i=l(73237),s=l(42662),r=l(86028);let o=e=>{let{id:t,title:l,thumbnail:o,duration:d,onClick:c,className:u,isCurrent:m,isNext:p}=e,h=(0,s.z)();return(0,a.jsx)(r.S,{className:(0,n.cn)("group cursor-pointer gap-2","flex flex-col","md:flex-row",u),onClick:()=>{c&&!m&&c(t)},imageUrl:o,imageWrapClassName:"md:w-[50%] md:max-w-[145px] md:flex-shrink-0",imageClassName:"object-cover transition-transform duration-300 group-hover:scale-105",altText:l,contentClassName:"mt-2 min-w-0 flex-1 md:mt-0",badge:d,overlayClassName:"bg-black/20 opacity-0 transition-opacity duration-300 group-hover:opacity-100",showIcon:!0,content:(0,a.jsxs)(i.Ay,{elementType:"h2",variant:h?"Title.S":"Body.S.Bold",className:"line-clamp-3",children:[m&&(0,a.jsx)(i.Ay,{elementType:"span",variant:"Body.S.Bold",color:"brandLight",className:"mb-2 block md:mb-0",children:"Now Playing"}),p&&(0,a.jsx)(i.Ay,{elementType:"span",variant:"Body.S.Bold",color:"brandLight",className:"mb-2 block md:mb-0",children:"Next Up"}),l]})})}},40298:(e,t,l)=>{l.d(t,{x:()=>i});var a=l(66695);l(97839);var n=l(64070);let i=e=>{let{className:t}=e;return(0,a.jsxs)("div",{className:(0,n.cn)("animate-pulse",t),children:[(0,a.jsx)("div",{className:"mb-2 aspect-video rounded-lg bg-gray-200"}),(0,a.jsx)("div",{className:"mb-2 h-4 w-3/4 rounded bg-gray-200"}),(0,a.jsx)("div",{className:"h-3 w-1/2 rounded bg-gray-200"})]})}},55716:(e,t,l)=>{l.d(t,{L0:()=>i,Wk:()=>s});let a=e=>{var t;let l=e.split(/\s+/);return(null==(t=l[0])?void 0:t.toLowerCase())==="by"?{firstName:l[1]||"",lastName:l.slice(2).join(" ")||""}:n(e)},n=e=>{let t=e.split(/\s+/);return{firstName:t[0]||"",lastName:t.slice(1).join(" ")||""}},i=(e,t)=>e.map(e=>((e,t)=>{var l,i,s,r,o,d,c,u,m,p,h,v,x,f,g,b,y,w,j,N,S;let C,A,_=null!=(f=null==e||null==(l=e.variants)?void 0:l[0])?f:"",k=null!=(g=(null==e?void 0:e.teaserTitle)||(null==e?void 0:e.title))?g:"",U={jwplayer:"",pcollid:(null==e?void 0:e.pcollid)||"",adzone:(null==e||null==(i=e.adsmetrics)?void 0:i.adzone)||"",assetName:null==e?void 0:e.assetName,description:null!=(b=null==e?void 0:e.description)?b:"",title:k,teaserTitle:k,playlists:null!=(y=null==e?void 0:e.playlists)?y:[],entitlements:null!=(w=null==e||null==(s=e.tags)?void 0:s.entitlements)?w:[],premium:null!=(j=null==e?void 0:e.premium)&&j,iab:(null==e||null==(r=e.tags)?void 0:r.iab)||{},tagsGeo:(null==e||null==(o=e.tags)?void 0:o.geo)||[],tagsKeyword:null==e||null==(d=e.tags)?void 0:d.keyword,tagsStorm:null==e||null==(c=e.tags)?void 0:c.storm,providername:(null==e?void 0:e.providername)||"no-provider-data",publishdate:null!=(N=null==e?void 0:e.publishdate)?N:"",lastmodifieddate:null!=(S=null==e?void 0:e.lastmodifieddate)?S:"",duration:(null==e?void 0:e.duration)||"",id:(null==e?void 0:e.id)||"",videoIndex:-1,collectionId:(null==e?void 0:e.pcollid)||"",videoId:(null==e?void 0:e.id)||"",collectionAdZone:(null==e||null==(u=e.adsmetrics)?void 0:u.adzone)||""};(null==(m=e.author_data)?void 0:m.length)?C=e.author_data.map(e=>{var t,l,i;let s=null==e||null==(t=e.authorImage)?void 0:t[0],{firstName:r,lastName:o}=(e=>{var t,l,i;let s=null==(t=e.name)?void 0:t.trim(),r=null==(l=e.byline)?void 0:l.trim(),o=null==(i=e.fullName)?void 0:i.trim();return s?n(s):r?a(r):o?n(o):{firstName:"",lastName:""}})(e);return{id:"__wxnext_".concat(r,"_").concat(o),role:["authenticated"],isAuthor:!0,username:e.email,updatedAt:"",createdAt:"",authorData:{firstName:r,lastName:o,bio:e.byline,bioUrl:e.bioUrl,profilePicture:{id:"__wxnext_".concat(e.fullName),createdAt:"",updatedAt:"",url:null==s||null==(l=s.variants)?void 0:l[0],caption:"",seo:{altText:null!=(i=null==s?void 0:s.alt_text)?i:""},coreMetadata:{providerData:{provider:"default-provider"}}}}}}):e.author&&(C=[],A=e.author.join(", "));let T={mweb:null==e||null==(p=e.variants)?void 0:p.mweb,mwebFallback:null==e||null==(h=e.variants)?void 0:h.fallback_mweb,web:null==e||null==(v=e.variants)?void 0:v.web,webFallback:null==e||null==(x=e.variants)?void 0:x.fallback_web};return{file:"desktop"===t?T.web:T.mweb,sources:[{file:"desktop"===t?T.web:T.mweb},{file:"desktop"===t?T.webFallback:T.mwebFallback}],image:_?"".concat(_,"?crop=16:9&format=pjpg&auto=webp&quality=60&width=640"):"",title:e.title,description:e.description,mediaid:e.id,link:e.assetName,tracks:(null==e?void 0:e.cc_url)?[{file:e.cc_url,label:"On",kind:"captions",default:!1}]:void 0,custom:{url:e.url,transcript:e.transcript,duration:function(e){if(!e)return"00:00";let t=e.split(":");if(t&&3===t.length){let[l,a,n]=t;return l&&+l?e:"".concat(a,":").concat(n)}return"00:00"}(e.duration),authors:C,externalAuthors:A||"",publishDate:e.lastmodifieddate,ctx:U}}})(e,t)),s=e=>{switch(e){case 1:return"MW_Position_ContentFeedAd1";case 2:return"WX_ContentFeed1";case 3:return"MW_Position_ContentFeedAd11";default:return}}},65977:(e,t,l)=>{l.d(t,{r:()=>y});var a=l(66695),n=l(97839),i=l(38051),s=l(20108),r=l(96743),o=l(64070);function d(e){let{className:t,...l}=e;return(0,a.jsx)(r.bL,{"data-slot":"tabs",className:(0,o.cn)("flex flex-col gap-x-2",t),...l})}function c(e){let{className:t,...l}=e;return(0,a.jsx)(r.B8,{"data-slot":"tabs-list",className:(0,o.cn)("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",t),...l})}function u(e){let{className:t,...l}=e;return(0,a.jsx)(r.l9,{"data-slot":"tabs-trigger",className:(0,o.cn)("focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-2 py-1 text-sm font-medium transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",t),...l})}function m(e){let{className:t,...l}=e;return(0,a.jsx)(r.UC,{"data-slot":"tabs-content",className:(0,o.cn)("flex-1 outline-none",t),...l})}var p=l(89010);let h=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:s,...r}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":s,...r,children:[i?(0,a.jsx)("desc",{id:s,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Settings Adjust"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("g",{fill:"currentColor",children:(0,a.jsx)("path",{d:"M15 4h-2.05c-.25-1.15-1.25-2-2.45-2s-2.2.85-2.45 2H1v1h7.05C8.3 6.15 9.3 7 10.5 7s2.2-.85 2.45-2H15zm-4.5 2C9.65 6 9 5.35 9 4.5S9.65 3 10.5 3s1.5.65 1.5 1.5S11.35 6 10.5 6M1 12h2.05c.25 1.15 1.25 2 2.45 2s2.2-.85 2.45-2H15v-1H7.95C7.7 9.85 6.7 9 5.5 9s-2.2.85-2.45 2H1zm4.5-2c.85 0 1.5.65 1.5 1.5S6.35 13 5.5 13 4 12.35 4 11.5 4.65 10 5.5 10"})})]})}),v=n.forwardRef((e,t)=>(0,a.jsx)(p.h,{ref:t,icon:h,...e}));v.displayName="SettingsAdjust";let x=e=>{var t;let{tabs:l,defaultActiveTab:i,onTabChange:s,size:r="small",showFilterIcon:p,className:h,innerTabsClass:x}=e,[f,g]=(0,n.useState)(i||(null==l||null==(t=l[0])?void 0:t.id)||""),b={"h-10":"small"===r,"h-12":"large"===r};return(0,a.jsxs)(d,{value:f,onValueChange:e=>{g(e),s&&s(e)},className:(0,o.cn)("w-full",h),children:[(0,a.jsxs)("div",{className:(0,o.cn)("flex items-center gap-2","small"===r?"h-10":"h-14"),children:[p&&(0,a.jsx)("div",{className:(0,o.cn)("flex aspect-square shrink-0 items-center justify-center rounded-lg bg-gray-100",b),children:(0,a.jsx)(v,{className:(0,o.cn)("text-gray-600",{"h-4 w-4":"small"===r,"h-5 w-5":"large"===r})})}),(0,a.jsx)("div",{className:"scrollbar-hide overflow-x-scroll",children:(0,a.jsx)(c,{className:(0,o.cn)("flex w-fit gap-2 bg-transparent p-0",b,x),children:l.map(e=>(0,a.jsx)(u,{value:e.id,className:(0,o.cn)("flex-shrink-0 cursor-pointer whitespace-nowrap rounded-lg py-3","data-[state=active]:bg-brand-400 data-[state=active]:text-white","data-[state=inactive]:bg-gray-100 data-[state=inactive]:text-gray-600",{"px-3 text-sm":"small"===r,"px-4 text-base":"large"===r}),children:e.label},e.id))})})]}),(0,a.jsx)("div",{children:l.map(e=>(0,a.jsx)(m,{value:e.id,children:e.content},e.id))})]})};var f=l(30184),g=l(11955),b=l(92071);let y=e=>{let{playlistIds:t,className:l,innerTabsClass:n}=e,r=(0,b.useParams)(),o=null==r?void 0:r.locale,[d,c]=(0,s.fp)(g.GF),{data:u}=(0,i.Ay)(["playlist-titles",o,t.join(",")],async()=>{let e=t.map(async e=>{try{let t=await (0,f.V)(e,o);return{id:e,label:(null==t?void 0:t.title)||e}}catch(t){return console.error("Error fetching title for playlist ".concat(e,":"),t),{id:e,label:e}}});return await Promise.all(e)},{revalidateOnFocus:!1});return(0,a.jsx)(x,{tabs:u||[],defaultActiveTab:d,onTabChange:c,className:l,innerTabsClass:n})}},88773:(e,t,l)=>{l.a(e,async(e,a)=>{try{l.d(t,{VideosWithPlaylistsClient:()=>m});var n=l(66695),i=l(15471),s=l(58346),r=l(11955),o=l(65977),d=l(90763),c=l(64070),u=e([d]);d=(u.then?(await u)():u)[0];let m=e=>{let{videos:t,playlistIds:l,className:a,playerId:u,deviceClass:m,showOpenWebComments:p=!1}=e;return(0,s.RH)([[r.UE,t[0]],[r.GF,l[0]],[r.nl,l[0]]]),(0,n.jsxs)("div",{className:(0,c.cn)("bg-white md:p-4",p?"md:rounded-t-xl":"md:rounded-xl",a),children:[(0,n.jsx)("div",{className:"hidden md:block",children:(0,n.jsx)(o.r,{playlistIds:l,className:"mb-4"})}),(0,n.jsxs)("div",{className:"flex flex-col md:grid md:grid-cols-4 md:gap-4 md:divide-x md:divide-gray-200",children:[(0,n.jsx)("div",{className:"border-b border-gray-200 md:col-span-3 md:border-b-0",children:(0,n.jsx)(i.A,{videos:t,className:"md:pr-4",showTitle:!0,showDescription:!0,playerId:u})}),(0,n.jsx)("div",{className:"md:hidden",children:(0,n.jsx)(o.r,{playlistIds:l,className:"my-4",innerTabsClass:"mx-4"})}),(0,n.jsx)("div",{className:"w-full md:relative md:overflow-hidden",children:(0,n.jsx)(d.A,{deviceClass:m,videos:t,initialPlaylistId:l[0]||"",className:"mx-4 md:absolute md:mx-0 md:-ml-4 md:overflow-auto"})})]})]})};a()}catch(e){a(e)}})},90763:(e,t,l)=>{l.a(e,async(e,a)=>{try{l.d(t,{A:()=>e});var n=l(66695),i=l(97839),s=l(38051),r=l(20108),o=l(30275),d=l(40298),c=l(64070),u=l(13196),m=l(72711),p=l(55716),h=l(11955),v=l(99805),x=l(23610);let e=e=>{let{deviceClass:t,videos:l,initialPlaylistId:a,className:f}=e,g=(0,r.md)(m.X),[b,y]=(0,r.fp)(h.GF),w=(0,r.md)(h.UE),j=(0,r.md)(h.nl),N=(0,u.a)(),[S,C]=(0,i.useState)(),{data:A,isLoading:_}=(0,s.Ay)(b?["playlist-content",g,b]:null,async e=>{let[...n]=e;if(n[2]===a)return l;let i=await (0,v.vd)(n[2],g);return i?(0,p.L0)(i,t):null},{revalidateOnFocus:!1,dedupingInterval:6e4});(0,i.useEffect)(()=>{if(null!=A){S&&b&&(N(A,b,S,!1),C(null));let e=e=>{let{playlistId:t,videoId:l}=e.state;b!==t?(y(t),C(l)):N(A,t,l,!1)};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}}},[A,N,S,b,y]);let[k,U]=(0,i.useState)(null),[T,I]=(0,i.useState)(null);(0,i.useEffect)(()=>{if(!A||!w){U(null),I(null);return}let e=w.mediaid||"";if(U(e),j===b){let t=A.findIndex(t=>(t.mediaid||t.file||"")===e);if(-1!==t&&t+1{A&&b&&N(A,b,e)},M=(0,c.cn)("grid gap-4","grid-cols-1","max-sm:pb-6 max-h-full",f);return _?(0,n.jsx)("div",{className:M,children:[,,,,].fill(0).map((e,t)=>(0,n.jsx)(d.x,{},t))}):A?(0,n.jsx)("div",{className:M,children:A.map((e,t)=>{var l;let a=e.mediaid||e.file||"",i=a===k,s=a===T,r=(0,p.Wk)(t);return(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(o.O,{id:a,title:e.title||"",thumbnail:e.image||"",duration:(null==(l=e.custom)?void 0:l.duration)||"",onClick:F,isCurrent:i,isNext:s,className:"md:pl-4"}),r&&(0,n.jsx)(x.AdBlock,{adId:r})]},a)})}):(0,n.jsx)("div",{className:"flex items-center justify-center p-8 text-gray-500",children:"No videos available"})};a()}catch(e){a(e)}})},91236:(e,t,l)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCMSCollectionsUrlConfig=function(e){let{collectionId:t,locale:l="en_US"}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/collections/".concat(l,"/").concat(t)}},t.getCMSAssetByIDUrlConfig=function(e){let{language:t,assetId:l}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/a/".concat(t,"/").concat(l)}},t.getCMSOrderedCollectionsUrlConfig=function(e){let{collectionId:t,language:l="en_US"}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/ordered-collections/".concat(l,"/").concat(t)}},t.getCMSOrderedListUrlConfig=function(e){let{collectionId:t,language:l,collectionType:a}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/orderedlist/".concat(l,"/").concat(a,"/").concat(t)}},t.getCMSAssetsUrlConfig=function(e){let{language:t="en_US",query:l={},skip:i=0,limit:s=10,sort:r="-publishdate"}=e,o={q:Object.keys(l).reduce((e,t)=>{let a=l[t];return a instanceof Array?[...e,...a.map(e=>n(t,e))]:[...e,n(t,a)]},[]).join(";"),pg:"".concat(i,",").concat(s),format:"json",sort:r},d=(0,a.queryStringToSearchParams)(o).toString();return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/assets/".concat(t),search:"?".concat(d)}},t.getCMSAssetsRawQueryUrlConfig=function(e){let{language:t="en_US",query:l="",skip:n=0,limit:i=10,sort:s="-publishdate"}=e,r={q:l,pg:"".concat(n,",").concat(i),format:"json",sort:s},o=(0,a.queryStringToSearchParams)(r).toString();return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/assets/".concat(t),search:"?".concat(o)}},t.getCMSAssetsSlideshowUrlConfig=function(e){let{offset:t=0,assetId:l,limit:a=500}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/assets/slideshow/".concat(l,"/").concat(t,",").concat(a)}},t.getCMSQuickNavUrlConfig=function(){return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/settings/en_US/web/quick_nav"}};let a=l(54435);function n(e,t){let l="'".concat(t.$in,"'");return t.$in instanceof Array&&(l=t.$in.map(e=>"'".concat(e,"'")).join(",")),"".concat(e,":$in(").concat(l,")")}},99805:(e,t,l)=>{t.vd=s;let a=l(91236),n=l(54435),i=l(71744);async function s(e,t){let l=t?t.split("-").join("_"):"en_US",s=(0,n.urlFrom)((0,a.getCMSOrderedListUrlConfig)({language:l,collectionId:e,collectionType:"video"})),r=await fetch(s,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300,tags:[e]}});return(0,i.handleFetchResponse)(r)}}}]);