"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5109],{42602:(e,t,l)=>{t.V=s;let a=l(94770),n=l(17681),i=l(36762);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)}},50242:(e,t,l)=>{l.d(t,{u:()=>a});let a=(0,l(11854).eU)("")},55569:(e,t,l)=>{l.d(t,{GF:()=>n,UE:()=>s,nl:()=>i});var a=l(11854);let n=(0,a.eU)(void 0),i=(0,a.eU)(void 0),s=(0,a.eU)(void 0);(0,a.eU)(void 0)},66163:(e,t,l)=>{t.vd=s;let a=l(94770),n=l(17681),i=l(36762);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)}},75109:(e,t,l)=>{l.d(t,{VideosWithPlaylistsClient:()=>K});var a=l(76792),n=l(42292),i=l(2520),s=l(41813),r=l(75302),o=l(86605),d=l(46859),c=l(95624),u=l(99343),m=l(89170),p=l(27370),h=l(68751),v=l(55569),x=l(55764),f=l(70412),g=l(9198),b=l(98066),y=l(18556),w=l(22627),j=l(48260);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 pt-2 pb-4","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 leading-[1rem] whitespace-nowrap","data-testid":"update-date",children:r})]})]})]})};var _=l(70559),A=l(13942);let k=e=>{var t,l,g,b,y,w,j;let{videos:N,className:S,autoplay:k=!1,showControls:U=!0,showTitle:T=!0,showDescription:I=!0,aspectRatio:F="16:9",playerId:M="QidSYgAw",placeHolder:B}=e,[P,D]=(0,r.fp)(v.UE),E=(0,r.md)(v.GF),L=(0,f.z)(),z="video-player-".concat((0,n.useId)()),H=(0,n.useRef)(!0),J=(null==(t=(0,m.J)())?void 0:t.user)||{},R=(0,r.md)(A.a),O=J.isUserPremium||R,W=(0,u.c)(),[q,G]=(0,n.useState)(!1),V=(0,n.useRef)(null==P?void 0:P.mediaid);(0,n.useEffect)(()=>{V.current=null==P?void 0:P.mediaid},[P]);let $=(0,n.useCallback)(e=>{let{event:t,player:l}=e,a=t.item;V.current!==(null==a?void 0:a.mediaid)&&(D(a),window.history.pushState({playlistId:E,videoId:a.mediaid},"",a.link||""))},[E,D]),Q=(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(!P)return null;let X=[...d.v,...c.yW,{eventName:"playlistItem",callback:$},{eventName:"ready",callback:Q}].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:H,user:J,trackVideoEvent:W,isMobile:L})}}});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:X,options:{aspectratio:F,autostart:k,controls:U,displaytitle:!1,displaydescription:!1,width:"100%"},setupParams:{playerId:M,ads:!O},placeHolder:B},z)}),(0,a.jsxs)("div",{className:"mx-4 my-4 md:mx-0",children:[T&&(null==P?void 0:P.title)&&(0,a.jsx)(h.Ay,{variant:"Title.XL",className:"mb-2",children:null==P?void 0:P.title}),(null==P||null==(l=P.custom)?void 0:l.publishDate)&&(0,a.jsx)(C,{authors:null==P||null==(g=P.custom)?void 0:g.authors,externalAuthors:null==P||null==(b=P.custom)?void 0:b.externalAuthors,updateDate:null==P||null==(y=P.custom)?void 0:y.publishDate}),I&&(null==P?void 0:P.description)&&(0,a.jsx)(h.Ay,{variant:"Body.M",className:"mb-4",children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:null==P?void 0:P.description}})}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(null==P||null==(w=P.custom)?void 0:w.transcript)&&(0,a.jsxs)(p.$n,{className:"flex items-center text-sm font-medium",variant:"outline",onClick:()=>G(!q),children:["Transcript"," ",q?(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)(_.ViewCommentsButton,{articleId:(null==P?void 0:P.mediaid)||"",isMobile:L}),(0,a.jsx)(x.Share,{type:"video",title:P.title||"",imageUrl:P.image})]}),q&&(null==P||null==(j=P.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==P?void 0:P.custom.transcript})})]})]})};var U=l(34884),T=l(44615),I=l(53240);function F(e){let{className:t,...l}=e;return(0,a.jsx)(I.bL,{"data-slot":"tabs",className:(0,j.cn)("flex flex-col gap-x-2",t),...l})}function M(e){let{className:t,...l}=e;return(0,a.jsx)(I.B8,{"data-slot":"tabs-list",className:(0,j.cn)("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",t),...l})}function B(e){let{className:t,...l}=e;return(0,a.jsx)(I.l9,{"data-slot":"tabs-trigger",className:(0,j.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 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...l})}function P(e){let{className:t,...l}=e;return(0,a.jsx)(I.UC,{"data-slot":"tabs-content",className:(0,j.cn)("flex-1 outline-none",t),...l})}var D=l(23233);let E=(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"})})]})}),L=n.forwardRef((e,t)=>(0,a.jsx)(D.h,{ref:t,icon:E,...e}));L.displayName="SettingsAdjust";let z=e=>{var t;let{tabs:l,defaultActiveTab:i,onTabChange:s,size:r="small",showFilterIcon:o,className:d,innerTabsClass:c}=e,[u,m]=(0,n.useState)(i||(null==l||null==(t=l[0])?void 0:t.id)||""),p={"h-10":"small"===r,"h-12":"large"===r};return(0,a.jsxs)(F,{value:u,onValueChange:e=>{m(e),s&&s(e)},className:(0,j.cn)("w-full",d),children:[(0,a.jsxs)("div",{className:(0,j.cn)("flex items-center gap-2","small"===r?"h-10":"h-14"),children:[o&&(0,a.jsx)("div",{className:(0,j.cn)("flex aspect-square shrink-0 items-center justify-center rounded-lg bg-gray-100",p),children:(0,a.jsx)(L,{className:(0,j.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)(M,{className:(0,j.cn)("flex w-fit gap-2 bg-transparent p-0",p,c),children:l.map(e=>(0,a.jsx)(B,{value:e.id,className:(0,j.cn)("flex-shrink-0 cursor-pointer rounded-lg py-3 whitespace-nowrap","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)(P,{value:e.id,children:e.content},e.id))})]})};var H=l(42602),J=l(55198);let R=e=>{let{playlistIds:t,className:l,innerTabsClass:n}=e,i=(0,J.useParams)(),s=null==i?void 0:i.locale,[o,d]=(0,r.fp)(v.GF),{data:c}=(0,T.Ay)(["playlist-titles",s,t.join(",")],async()=>{let e=t.map(async e=>{try{let t=await (0,H.V)(e,s);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)(z,{tabs:c||[],defaultActiveTab:o,onTabChange:d,className:l,innerTabsClass:n})};var O=l(53976),W=l(50242);let q=e=>{let{id:t,title:l,thumbnail:n,duration:i,onClick:s,className:o,isCurrent:d,isNext:c,isFetchPriority:u}=e,m="mobile"===(0,r.md)(W.u);return(0,a.jsx)(O.S,{className:(0,j.cn)("group cursor-pointer gap-2","flex flex-col","md:flex-row",o),onClick:()=>{s&&!d&&s(t)},imageUrl:n,imageWrapClassName:"group-hover:!shadow-none 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:i,overlayClassName:"bg-black/20 opacity-0 transition-opacity duration-300 group-hover:opacity-100",aspectRatio:"video",noPadding:!0,showIcon:!0,content:(0,a.jsxs)(h.Ay,{elementType:"h2",variant:m?"Title.S":"Body.S.Bold",className:"line-clamp-3",children:[d&&(0,a.jsx)(h.Ay,{elementType:"span",variant:"Body.S.Bold",color:"brandLight",className:"mb-2 block md:mb-0",children:"Now Playing"}),c&&(0,a.jsx)(h.Ay,{elementType:"span",variant:"Body.S.Bold",color:"brandLight",className:"mb-2 block md:mb-0",children:"Next Up"}),l]}),isFetchPriority:u})},G=e=>{let{className:t}=e;return(0,a.jsxs)("div",{className:(0,j.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"})]})};var V=l(9645);let $=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(" ")||""}:Q(e)},Q=e=>{let t=e.split(/\s+/);return{firstName:t[0]||"",lastName:t.slice(1).join(" ")||""}};var X=l(66163),Y=l(43635);let Z=e=>{var t,l;let{deviceClass:i,videos:s,initialPlaylistId:o,className:d}=e,c=(0,r.md)(V.X),[u,m]=(0,r.fp)(v.GF),p=(0,r.md)(v.UE),h=(0,r.md)(v.nl),x=(()=>{let[e,t]=(0,r.fp)(v.nl),l=(0,r.Xr)(v.UE);return(0,n.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])})(),[f,g]=(0,n.useState)(),b=u===o,{data:y,isLoading:w}=(0,T.Ay)(u&&!b?["playlist-content",c,u]:null,async e=>{let[t,l,a]=e,n=await (0,X.vd)(a,l);if(n)return n.map(e=>((e,t)=>{var l,a,n,i,s,r,o,d,c,u,m,p,h,v,x,f,g,b,y,w,j;let N,S,C=null!=(v=null==e||null==(l=e.variants)?void 0:l[0])?v:"",_=null!=(x=(null==e?void 0:e.teaserTitle)||(null==e?void 0:e.title))?x:"",A={jwplayer:"",pcollid:(null==e?void 0:e.pcollid)||"",adzone:(null==e||null==(a=e.adsmetrics)?void 0:a.adzone)||"",assetName:null==e?void 0:e.assetName,description:null!=(f=null==e?void 0:e.description)?f:"",title:_,teaserTitle:_,playlists:null!=(g=null==e?void 0:e.playlists)?g:[],entitlements:null!=(b=null==e||null==(n=e.tags)?void 0:n.entitlements)?b:[],premium:null!=(y=null==e?void 0:e.premium)&&y,iab:(null==e||null==(i=e.tags)?void 0:i.iab)||{},tagsGeo:(null==e||null==(s=e.tags)?void 0:s.geo)||[],tagsKeyword:null==e||null==(r=e.tags)?void 0:r.keyword,tagsStorm:null==e||null==(o=e.tags)?void 0:o.storm,providername:(null==e?void 0:e.providername)||"no-provider-data",publishdate:null!=(w=null==e?void 0:e.publishdate)?w:"",lastmodifieddate:null!=(j=null==e?void 0:e.lastmodifieddate)?j:"",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==(d=e.adsmetrics)?void 0:d.adzone)||""};(null==(c=e.author_data)?void 0:c.length)?N=e.author_data.map(e=>{var t,l,a;let n=null==e||null==(t=e.authorImage)?void 0:t[0],{firstName:i,lastName:s}=(e=>{var t,l,a;let n=null==(t=e.name)?void 0:t.trim(),i=null==(l=e.byline)?void 0:l.trim(),s=null==(a=e.fullName)?void 0:a.trim();return n?Q(n):i?$(i):s?Q(s):{firstName:"",lastName:""}})(e);return{id:"__wxnext_".concat(i,"_").concat(s),role:["authenticated"],isAuthor:!0,username:e.email,updatedAt:"",createdAt:"",authorData:{firstName:i,lastName:s,bio:e.byline,bioUrl:e.bioUrl,profilePicture:{id:"__wxnext_".concat(e.fullName),createdAt:"",updatedAt:"",url:null==n||null==(l=n.variants)?void 0:l[0],caption:"",seo:{altText:null!=(a=null==n?void 0:n.alt_text)?a:""},coreMetadata:{providerData:{provider:"default-provider"}}}}}}):e.author&&(N=[],S=e.author.join(", "));let k={mweb:null==e||null==(u=e.variants)?void 0:u.mweb,mwebFallback:null==e||null==(m=e.variants)?void 0:m.fallback_mweb,web:null==e||null==(p=e.variants)?void 0:p.web,webFallback:null==e||null==(h=e.variants)?void 0:h.fallback_web};return{file:"desktop"===t?k.web:k.mweb,sources:[{file:"desktop"===t?k.web:k.mweb},{file:"desktop"===t?k.webFallback:k.mwebFallback}],image:C?"".concat(C,"?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:N,externalAuthors:S||"",publishDate:e.lastmodifieddate,ctx:A}}})(e,i));return null},{revalidateOnFocus:!1,dedupingInterval:6e4}),N=b?s:y;(0,n.useEffect)(()=>{if(null!=N){f&&u&&(x(N,u,f,!1),g(null));let e=e=>{let{playlistId:t,videoId:l}=e.state;u!==t?(m(t),g(l)):x(N,t,l,!1)};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}}},[N,x,f,u,m]);let[S,C]=(0,n.useState)((null==s||null==(t=s[0])?void 0:t.mediaid)||null),[_,A]=(0,n.useState)((null==s||null==(l=s[1])?void 0:l.mediaid)||null);(0,n.useEffect)(()=>{if(!N||!p){C(null),A(null);return}let e=p.mediaid||"";if(C(e),h===u){let t=N.findIndex(t=>(t.mediaid||t.file||"")===e);if(-1!==t&&t+1{N&&u&&x(N,u,e)},U=(0,j.cn)("grid gap-4","grid-cols-1","max-sm:pb-6 max-h-full",d);return w?(0,a.jsx)("div",{className:U,children:[,,,,].fill(0).map((e,t)=>(0,a.jsx)(G,{},t))}):N?(0,a.jsx)("div",{className:U,children:N.map((e,t)=>{var l;let n=e.mediaid||e.file||"",i=n===S,s=n===_,r=(e=>{switch(e){case 1:return"MW_Position_ContentFeedAd1";case 2:return"WX_ContentFeed1";case 3:return"MW_Position_ContentFeedAd11";default:return}})(t);return(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(q,{id:n,title:e.title||"",thumbnail:e.image||"",duration:(null==(l=e.custom)?void 0:l.duration)||"",onClick:k,isCurrent:i,isNext:s,className:"md:pl-4",isFetchPriority:0===t}),r&&(0,a.jsx)(Y.AdBlock,{adId:r})]},n)})}):(0,a.jsx)("div",{className:"flex items-center justify-center p-8 text-gray-500",children:"No videos available"})},K=e=>{let{videos:t,playlistIds:l,className:n,playerId:i,deviceClass:s,showOpenWebComments:r=!1}=e;return(0,U.RH)([[v.UE,t[0]],[v.GF,l[0]],[v.nl,l[0]]]),(0,a.jsxs)("div",{className:(0,j.cn)("bg-white md:p-4",r?"md:rounded-t-xl":"md:rounded-xl",n),children:[(0,a.jsx)("div",{className:"hidden md:block",children:(0,a.jsx)(R,{playlistIds:l,className:"mb-4"})}),(0,a.jsxs)("div",{className:"flex flex-col md:grid md:grid-cols-4 md:gap-4 md:divide-x md:divide-gray-200",children:[(0,a.jsx)("div",{className:"border-b border-gray-200 md:col-span-3 md:border-b-0",children:(0,a.jsx)(k,{videos:t,className:"md:pr-4",showTitle:!0,showDescription:!0,playerId:i,placeHolder:!0})}),(0,a.jsx)("div",{className:"md:hidden",children:(0,a.jsx)(R,{playlistIds:l,className:"my-4",innerTabsClass:"mx-4"})}),(0,a.jsx)("div",{className:"w-full md:relative md:overflow-hidden",children:(0,a.jsx)(Z,{deviceClass:s,videos:t,initialPlaylistId:l[0]||"",className:"mx-4 md:absolute md:mx-0 md:-ml-4 md:overflow-auto"})})]})]})}},94770:(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(17681);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,")")}}}]);