(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,268056,e=>{"use strict";var t=e.i(458201),l=e.i(538167),i=e.i(282446),a=e.i(26752),n=e.i(457492),r=e.i(632137),s=e.i(497162),d=e.i(463032);let o=(0,d.f)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),c=(0,d.f)("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);var m=e.i(469295),u=e.i(697380),h=e.i(777430),p=e.i(484758),f=e.i(617843),x=e.i(531166),g=e.i(528600),b=e.i(877957),y=e.i(809058),v=e.i(368847),j=e.i(550385),w=e.i(674822),k=l;let N=new Set(["h1","h2","h3","h4","h5","h6"]),S={horizontalrule:(0,t.jsx)("hr",{})},T={linebreak:(0,t.jsx)("br",{})};var _=e.i(990033);let C=new Set(["ol","ul"]),I="֑-߿יִ-﷽ﹰ-ﻼ",B="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-";RegExp("^[^"+B+"]*["+I+"]"),RegExp("^[^"+I+"]*["+B+"]");let $={paragraph:({node:e,nodesToJSX:l})=>{let i=l({nodes:e.children});return i?.length?(0,t.jsx)("p",{children:i}):(0,t.jsx)("p",{children:(0,t.jsx)("br",{})})},text:({node:e})=>{let l=e.text;return 1&e.format&&(l=(0,t.jsx)("strong",{children:l})),2&e.format&&(l=(0,t.jsx)("em",{children:l})),4&e.format&&(l=(0,t.jsx)("span",{style:{textDecoration:"line-through"},children:l})),8&e.format&&(l=(0,t.jsx)("span",{style:{textDecoration:"underline"},children:l})),16&e.format&&(l=(0,t.jsx)("code",{children:l})),32&e.format&&(l=(0,t.jsx)("sub",{children:l})),64&e.format&&(l=(0,t.jsx)("sup",{children:l})),l},...T,quote:({node:e,nodesToJSX:l})=>{let i=l({nodes:e.children});return(0,t.jsx)("blockquote",{children:i})},table:({node:e,nodesToJSX:l})=>{let i=l({nodes:e.children});return(0,t.jsx)("div",{className:"lexical-table-container",children:(0,t.jsx)("table",{className:"lexical-table",style:{borderCollapse:"collapse"},children:(0,t.jsx)("tbody",{children:i})})})},tablecell:({node:e,nodesToJSX:l})=>{let i=l({nodes:e.children}),a="number"==typeof e.headerState?e.headerState:0,n=`lexical-table-cell-header-${a}`,r={backgroundColor:e.backgroundColor||void 0,border:"1px solid #ccc",padding:"8px"},s=e.colSpan&&e.colSpan>1?e.colSpan:void 0,d=e.rowSpan&&e.rowSpan>1?e.rowSpan:void 0;return(0,t.jsx)(a>0?"th":"td",{className:`lexical-table-cell ${n}`,colSpan:s,rowSpan:d,style:r,children:i})},tablerow:({node:e,nodesToJSX:l})=>{let i=l({nodes:e.children});return(0,t.jsx)("tr",{className:"lexical-table-row",children:i})},heading:({node:e,nodesToJSX:l})=>{let i=l({nodes:e.children}),a=N.has(e.tag)?e.tag:"h1";return(0,t.jsx)(a,{children:i})},...S,list:({node:e,nodesToJSX:l})=>{let i=l({nodes:e.children}),a=C.has(e.tag)?e.tag:"ul";return(0,t.jsx)(a,{className:`list-${e?.listType}`,children:i})},listitem:({node:e,nodesToJSX:l,parent:i})=>{let a=e.children.some(e=>"list"===e.type),n=l({nodes:e.children});if(!("listType"in i)||i?.listType!=="check")return(0,t.jsx)("li",{className:`${a?"nestedListItem":""}`,style:a?{listStyleType:"none"}:void 0,value:e?.value,children:n});{let l=(0,_.f)();return(0,t.jsx)("li",{"aria-checked":e.checked?"true":"false",className:`list-item-checkbox${e.checked?" list-item-checkbox-checked":" list-item-checkbox-unchecked"}${a?" nestedListItem":""}`,role:"checkbox",style:{listStyleType:"none"},tabIndex:-1,value:e?.value,children:a?n:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("input",{checked:e.checked,id:l,readOnly:!0,type:"checkbox"}),(0,t.jsx)("label",{htmlFor:l,children:n}),(0,t.jsx)("br",{})]})})}},...(({internalDocToHref:e})=>({autolink:({node:e,nodesToJSX:l})=>{let i=l({nodes:e.children}),a=e.fields.newTab?"noopener noreferrer":void 0,n=e.fields.newTab?"_blank":void 0;return(0,t.jsx)("a",{href:e.fields.url,rel:a,target:n,children:i})},link:({node:l,nodesToJSX:i})=>{let a=i({nodes:l.children}),n=l.fields.newTab?"noopener noreferrer":void 0,r=l.fields.newTab?"_blank":void 0,s=l.fields.url??"";return"internal"===l.fields.linkType&&(e?s=e({linkNode:l}):(console.error("Lexical => JSX converter: Link converter: found internal link, but internalDocToHref is not provided"),s="#")),(0,t.jsx)("a",{href:s,rel:n,target:r,children:a})}}))({}),upload:({node:e})=>{if("object"!=typeof e.value)return null;let l=e.value,i=e.fields?.alt||l?.alt||"",a=l.url;if(!l.mimeType.startsWith("image"))return(0,t.jsx)("a",{href:a,rel:"noopener noreferrer",children:l.filename});if(!l.sizes||!Object.keys(l.sizes).length)return(0,t.jsx)("img",{alt:i,height:l.height,src:a,width:l.width});let n=[];for(let e in l.sizes){let i=l.sizes[e];if(!i||!i.width||!i.height||!i.mimeType||!i.filesize||!i.filename||!i.url)continue;let a=i?.url;n.push((0,t.jsx)("source",{media:`(max-width: ${i.width}px)`,srcSet:a,type:i.mimeType},e))}return n.push((0,t.jsx)("img",{alt:i,height:l?.height,src:a,width:l?.width},"image")),(0,t.jsx)("picture",{children:n})},tab:" "};function A(e){return i=>{if(e.Component){let t={...i,isEditor:!1,isJSXConverter:!0};return e.Component(t)}if(e.Block){let t=i.node,a={childIndex:i.childIndex,converters:i.converters,formData:t.fields??{},isEditor:!1,isJSXConverter:!0,node:t,nodesToJSX:i.nodesToJSX,parent:i.parent};return l.default.createElement(e.Block,a)}if(e.html){let l={...i,isEditor:!1,isJSXConverter:!0},a="function"==typeof e.html?e.html(l):e.html;return(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:a}})}return null}}function U({className:e,converters:i,data:a,disableContainer:n,disableIndent:r,disableTextAlign:s,nodeMap:d}){if(!a)return null;let o={};o=i?"function"==typeof i?i({defaultConverters:$}):i:$;let c=a&&!Array.isArray(a)&&"object"==typeof a&&"root"in a&&function({converters:e,data:i,disableIndent:a,disableTextAlign:n,nodeMap:r}){if(function(e){if(!e?.root?.children?.length)return!1;let t=!1;if(e?.root?.children?.length===1&&e?.root?.children[0]?.type==="paragraph"){let l=e?.root?.children[0];if(l?.children&&l?.children?.length!==0){if(l?.children?.length===1){let e=l?.children[0];e?.type!=="text"||e?.text?.length||(t=!0)}}else t=!0}return!t}(i)){let s=r?function(e){let l={};for(let[i,a]of Object.entries(e))if(a&&"object"==typeof a){if("blocks"===i){for(let[e,t]of(l.blocks={},Object.entries(a)))(t.Component||t.Block||t.html)&&(l.blocks[e]=A(t));continue}if("inlineBlocks"===i){for(let[e,t]of(l.inlineBlocks={},Object.entries(a)))(t.Component||t.Block||t.html)&&(l.inlineBlocks[e]=A(t));continue}(a.Component||a.html)&&(l[i]=function(e){return l=>{let i={...l,isEditor:!1,isJSXConverter:!0};if(e.Component)return e.Component(i);if(e.html){let l="function"==typeof e.html?e.html(i):e.html;return(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:l}})}return null}}(a))}return l}(r):void 0;return function e({converters:i,disableIndent:a,disableTextAlign:n,nodes:r,parent:s}){let d=i.unknown;return r.map((r,o)=>{let c;"block"===r.type?(c=i?.blocks?.[r?.fields?.blockType])||d||console.error(`Lexical => JSX converter: Blocks converter: found ${r?.fields?.blockType} block, but no converter is provided`):"inlineBlock"===r.type?(c=i?.inlineBlocks?.[r?.fields?.blockType])||d||console.error(`Lexical => JSX converter: Inline Blocks converter: found ${r?.fields?.blockType} inline block, but no converter is provided`):c=i[r.type];try{let m;!c&&d&&(c=d),m=c?"function"==typeof c?c({childIndex:o,converters:i,node:r,nodesToJSX:t=>e({converters:t.converters??i,disableIndent:t.disableIndent??a,disableTextAlign:t.disableTextAlign??n,nodes:t.nodes,parent:t.parent??{...r,parent:s}}),parent:s}):c:(0,t.jsx)("span",{children:"unknown node"},o);let u={};if(!n&&(!Array.isArray(n)||!n?.includes(r.type))&&"format"in r&&r.format)switch(r.format){case"center":u.textAlign="center";break;case"end":case"right":u.textAlign="right";break;case"justify":u.textAlign="justify";break;case"left":break;case"start":u.textAlign="left"}if(!a&&(!Array.isArray(a)||!a?.includes(r.type))&&"indent"in r&&r.indent&&"listitem"!==r.type&&(u.paddingInlineStart=`${40*Number(r.indent)}px`),l.default.isValidElement(m)){if(u.textAlign||u.paddingInlineStart){let e={...u,...m?.props?.style??{}};return l.default.cloneElement(m,{key:o,style:e})}return l.default.cloneElement(m,{key:o})}return m}catch(e){return console.error("Error converting lexical node to JSX:",e,"node:",r),null}}).filter(Boolean)}({converters:s?{...e,...s,blocks:{...e.blocks,...s.blocks},inlineBlocks:{...e.inlineBlocks,...s.inlineBlocks}}:e,disableIndent:a,disableTextAlign:n,nodes:i.root.children,parent:i.root})}return(0,t.jsx)(t.Fragment,{})}({converters:o,data:a,disableIndent:r,disableTextAlign:s,nodeMap:d});return n?(0,t.jsx)(t.Fragment,{children:c}):(0,t.jsx)("div",{className:e??"payload-richtext",children:c})}var D=e.i(695881);let L=["weather.com"];function F(e){if(!function(e){try{let{protocol:t}=new URL(e);return"https:"===t||"http:"===t}catch{return!1}}(e))return!1;let t=new URL(e);return!L.some(e=>t.hostname===e||t.hostname.endsWith(`.${e}`))}let P=({linkNode:e})=>(e=>{if("object"!=typeof e||null===e)return"/";let{assetName:t,slug:l}=e;return"string"==typeof t&&t.length>0?t:"string"==typeof l&&l.length>0?`/${l}`:"/"})(e.fields.doc?.value),M=(0,D.createLogger)("VideosWithPlaylists:HeroDescription"),H=({defaultConverters:e})=>({...e,...function({internalDocToHref:e,isMobileApp:l}){return{link:({node:i,nodesToJSX:a})=>{let n=i.fields,r="";if("internal"===n.linkType&&n.doc?.value){let t=l&&"videos"===n.doc.relationTo?n.doc.value:null,a=t&&"object"==typeof t?t:null;if(a?.id&&a.assetName){let e;e=new URLSearchParams({videoId:a.id,"video-url":a.assetName}),r=`twcthor://show?pageKey=Video%20Page&${e.toString()}`}else r=e({linkNode:i})}else n.url&&(r=n.url);let s=new Set(n.rel&&Array.isArray(n.rel)?n.rel:[]),d=r&&F(r);d&&(s.add("external"),s.add("nofollow"));let o=s.size>0?[...s].join(" "):void 0,c=n.newTab||d?"_blank":void 0;return(0,t.jsx)("a",{href:r,...o&&{rel:o},...c&&{target:c},children:a({nodes:i.children})})},autolink:({node:e,nodesToJSX:l})=>{let i=e.fields.url||"";return F(i)?(0,t.jsx)("a",{href:i,rel:"noopener noreferrer external nofollow",target:"_blank",children:l({nodes:e.children})}):(0,t.jsx)("a",{href:i,rel:"noopener noreferrer",children:l({nodes:e.children})})}}}({internalDocToHref:P})});class E extends k.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e,t){M.error("Hero description failed to render",e,{componentStack:t.componentStack})}render(){return this.state.failed?null:this.props.children}}function R({data:e}){return(0,t.jsx)(E,{children:(0,t.jsx)("div",{className:"[&_h1]:text-2xl [&_h2]:text-xl [&_h3]:text-lg [&_h4]:text-base [&_h1]:font-bold [&_h2]:font-bold [&_h3]:font-semibold [&_h4]:font-semibold [&_h1]:my-2 [&_h2]:my-2 [&_h3]:my-2 [&_h4]:my-2 [&_ol]:list-decimal [&_ul]:list-disc [&_ol]:pl-6 [&_ul]:pl-6 [&_ol]:my-2 [&_ul]:my-2 [&_li]:my-1 [&_a]:text-blue-600 [&_a]:underline",children:(0,t.jsx)(U,{converters:H,data:e})})})}var z=e.i(909232),X=e.i(44677),J=e.i(240058),V=e.i(155879),q=e.i(436028),O=e.i(37429),W=e.i(873598);let K={timeAgo:!0,daysFromNow:5,showFullTime:!1,locale:"en-US",timeZone:"America/New_York"},Z=(e,t=K)=>{if(!e)return null;let{timeAgo:l,daysFromNow:i,showFullTime:a,locale:n,timeZone:r}={...K,...t},s=new Date(e),d=new Date;if(l){let e=d.getTime()-s.getTime(),t=Math.ceil(e/36e5),l=Math.ceil(e/864e5);if(t{if(!(0,q.f)(e)&&!i&&!a&&!n)return null;let o=Z(a),c=Z(a,{timeAgo:!1,showFullTime:!0}),m=Z(n,{timeAgo:!1,showFullTime:!0}),u=(0,q.f)(e)?e.filter(e=>"object"==typeof e&&null!==e&&`${e.firstName||""} ${e.lastName||""}`.trim().length>0):[],h=u.length>0,p=u.flatMap(e=>(0,V.f)(e.profilePicture)?[{author:e,profilePicture:e.profilePicture}]:[]),f=d/2,x=d+(p.length-1)*f,g=p.length>0&&"noAuthorImages"!==s,b=48===d?"h-12 w-12":"h-8 w-8",y=48===d?"-space-x-6":"-space-x-4";return(0,t.jsxs)("div",{className:"flex items-center pt-2 pb-4","data-testid":"authors-container",children:[g&&(0,t.jsx)("div",{className:(0,r.f)("mr-2 flex",y),style:{minWidth:`${x}px`},"data-testid":"author-images-container",children:p.map(({author:e,profilePicture:l},i)=>l?.url?(0,t.jsx)(O.U,{width:d,height:d,src:l.url,alt:`${e.firstName||""} ${e.lastName||""}`.trim(),className:(0,r.f)("flatplan_authorImage my-0 rounded-full border-2 border-white object-cover",b),style:{zIndex:p.length-i},"data-flatplan-id":"flatplan_authorImage","data-testid":`author-image-${i}`,objectFit:"cover"},e.id):null)}),(0,t.jsxs)("div",{className:"inline","data-testid":"author-text-container",children:[(h||i)&&(0,t.jsx)(v.U,{variant:"Body.S",className:"mr-1 inline leading-[1rem]","data-testid":"by-text",elementType:"span",children:"By"}),u.map((e,i)=>{let a=`${e.firstName||""} ${e.lastName||""}`.trim(),n=e?e.bioUrl?e.bioUrl:e.slug?`/bios/${e.slug}`:null:null,r=i===u.length-1,s=i===u.length-2;return(0,t.jsxs)(l.default.Fragment,{children:[n?(0,t.jsx)(J.default,{href:n,"data-testid":`author-link-${i}`,children:(0,t.jsx)(v.U,{className:"flatplan_authorName inline leading-[1rem] underline",variant:"Body.S",elementType:"span","data-flatplan-id":"flatplan_authorName","data-testid":`author-name-linked-${i}`,children:a})}):(0,t.jsx)(v.U,{className:"flatplan_authorName inline leading-[1rem]",variant:"Body.S",elementType:"span","data-flatplan-id":"flatplan_authorName","data-testid":`author-name-${i}`,children:a}),!r&&(0,t.jsx)(v.U,{variant:"Body.S",elementType:"span",className:`inline leading-[1rem] ${s?"mx-1":"mr-1"}`,"data-testid":`author-separator-${i}`,children:s?"and":","})]},e.id)}),i&&(0,t.jsx)(v.U,{variant:"Body.S",elementType:"span",className:`inline leading-[1rem] ${h?"ml-1":""}`,"data-testid":"external-authors",children:h?`, ${i}`:i}),o&&(0,t.jsxs)(t.Fragment,{children:[(h||i)&&(0,t.jsx)(v.U,{variant:"Body.S",elementType:"span",color:"secondary",className:"mx-1 inline leading-[1rem]","data-testid":"date-separator",children:"•"}),(0,t.jsxs)("details",{className:"inline","data-testid":"update-date-details",children:[(0,t.jsx)("summary",{className:"inline cursor-pointer list-none","data-testid":"update-date-toggle",children:(0,t.jsx)(v.U,{variant:"Body.S",elementType:"span",color:"secondary",className:"inline leading-[1rem] whitespace-nowrap","data-testid":"update-date",children:o})}),(0,t.jsxs)("span",{className:"block","data-testid":"date-expanded",children:[c&&(0,t.jsxs)(v.U,{variant:"Body.S",elementType:"span",color:"secondary",className:"block leading-[1rem]","data-testid":"update-date-full",children:["Updated: ",c]}),m&&(0,t.jsxs)(v.U,{variant:"Body.S",elementType:"span",color:"secondary",className:"block leading-[1rem]","data-testid":"publish-date-full",children:["Published: ",m]})]})]})]})]})]})};var Y=e.i(143911),G=e.i(190228);let ee=({videos:e,className:a,autoplay:n=!0,showControls:d=!0,showTitle:k=!0,showDescription:N=!0,aspectRatio:S="16:9",playerId:T="QidSYgAw",placeHolder:_,posterPriority:C,isSamsung:I,limitedAccess:B=!1,shareCloseLabel:$})=>{let[A,U]=(0,i.q)(w.y),D=(0,i.y)(w.H),L=(0,z.f)(),F=`video-player-${(0,l.useId)()}`,P=(0,l.useRef)(!0),M=(0,g.f)()?.user||{},H=(0,i.y)(X.f),E=(0,i.y)(u.f),J=M.isUserPremium||H,V=(0,x.f)(),[q,O]=(0,l.useState)(!1),[W,K]=(0,l.useState)(!1),Z=(0,l.useRef)(A?.mediaid);(0,l.useEffect)(()=>{Z.current=A?.mediaid},[A]);let ee=(0,l.useCallback)(({event:e,player:t})=>{let l=e.item;Z.current!==l?.mediaid&&(U(l),window.history.pushState({playlistId:D,videoId:l.mediaid},"",l.link||""))},[D,U]),et=(0,l.useCallback)(({player:e})=>{let t=window?.ns_?.StreamingAnalytics?.JWPlayer;t&&t(e,{publisherId:"9576127"})},[]);if(!A)return null;let el=[...p.f,...f.i,{eventName:"playlistItem",callback:ee},{eventName:"ready",callback:et}].map(({eventName:e,callback:t})=>({eventName:e,callback:({event:e,player:l})=>t({event:e,player:l,isFirstPlayRef:P,user:M,trackVideoEvent:V,isMobile:L})}));return(0,t.jsxs)("div",{className:a,children:[(0,t.jsxs)("div",{className:(0,r.f)("flatplan_mainMedia mb-4 overflow-hidden md:rounded-2xl",B&&"premium-gated relative"),"data-flatplan-id":"flatplan_mainMedia",children:[(0,t.jsx)(h.f,{playlist:e,events:el,options:{aspectratio:S,autostart:!B&&n,controls:!B&&d,displaytitle:!1,displaydescription:!1,width:"100%"},setupParams:{playerId:T,ads:!J},placeHolder:_,placeHolderImage:A?.image,posterPriority:C,floatingBottomOffset:E},F),B&&(0,t.jsx)(j.n,{variant:"cover"})]}),(0,t.jsxs)("div",{className:"flatplan_body @container mx-4 my-4 md:mx-0","data-flatplan-id":"flatplan_body",children:[A?.custom?.category&&(0,t.jsx)(v.U,{variant:"Body.S",elementType:"span",className:"flatplan_category mb-1 inline-block font-bold","data-flatplan-id":"flatplan_category","data-testid":"video-category",children:A.custom.category}),k&&A?.title&&(I?(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)(v.U,{variant:"Title.XL",elementType:"h1",className:"flatplan_header mb-2","data-flatplan-id":"flatplan_header","data-testid":"video-headline",children:A?.title}),(0,t.jsx)("span",{"aria-hidden":"true",className:"flatplan_mediaTitle sr-only","data-flatplan-id":"flatplan_mediaTitle",children:A?.title})]}),(L||A?.custom?.transcript)&&(0,t.jsxs)(y.V,{children:[(0,t.jsx)(y.J,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-label":"Video options",className:"shrink-0 p-1 text-gray-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-blue-500",children:(0,t.jsx)(c,{className:"h-5 w-5","aria-hidden":"true"})})}),(0,t.jsxs)(y.T,{align:"end",className:"w-40 p-1",children:[L&&(0,t.jsx)("button",{type:"button",onClick:()=>K(e=>!e),className:"block w-full rounded px-3 py-2 text-left text-sm hover:bg-gray-100",children:"Details"}),A?.custom?.transcript&&(0,t.jsx)("button",{type:"button",onClick:()=>O(e=>!e),className:"block w-full rounded px-3 py-2 text-left text-sm hover:bg-gray-100",children:"Transcript"})]})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.U,{variant:"Title.XL",elementType:"h1",className:"flatplan_header mb-2","data-flatplan-id":"flatplan_header","data-testid":"video-headline",children:A?.title}),(0,t.jsx)("span",{"aria-hidden":"true",className:"flatplan_mediaTitle sr-only","data-flatplan-id":"flatplan_mediaTitle",children:A?.title})]})),A?.custom?.publishDate&&(0,t.jsx)(Q,{authors:A?.custom?.authors,externalAuthors:A?.custom?.externalAuthors,updateDate:A?.custom?.updateDate,publishedDate:A?.custom?.publishDate}),(I?!L||W:N)&&(A?.descriptionRichText||A?.description)&&(A?.descriptionRichText?(0,t.jsx)(v.U,{variant:"Body.M",elementType:"div",className:"flatplan_intro mb-4","data-flatplan-id":"flatplan_intro","data-testid":"video-description",children:(0,t.jsx)(R,{data:A.descriptionRichText})}):(0,t.jsx)(v.U,{variant:"Body.M",className:"flatplan_intro mb-4","data-flatplan-id":"flatplan_intro","data-testid":"video-description",children:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:A?.description??""}})})),!I&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 @md:flex-row",children:[A?.custom?.transcript&&(0,t.jsxs)(b.f,{className:"flex items-center text-sm font-medium",variant:"outline",onClick:()=>O(!q),children:["Transcript"," ",q?(0,t.jsx)(o,{className:"ml-1 h-4 w-4"}):(0,t.jsx)(s.f,{className:"ml-1 h-4 w-4"})]}),(0,t.jsx)(Y.ViewCommentsButton,{articleId:A?.mediaid||"",isMobile:L}),(0,t.jsx)(G.Share,{type:"video",title:A.title||"",closeLabel:$,imageUrl:A.image})]}),q&&A?.custom?.transcript&&(0,t.jsxs)("div",{className:"mt-4 rounded-lg bg-[#F4F4F4] p-4",children:[I&&(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-base font-bold text-gray-900",children:"Video Transcript"}),(0,t.jsx)("button",{type:"button","aria-label":"Close transcript",onClick:()=>O(!1),className:"text-gray-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-blue-500",children:(0,t.jsx)(m.X,{className:"h-5 w-5","aria-hidden":"true"})})]}),(0,t.jsx)("p",{className:"text-sm text-gray-700",children:A?.custom.transcript})]})]})]})};var et=e.i(864943),el=e.i(77859);let ei=({id:e,title:l,thumbnail:i,duration:a,onClick:n,className:s,isCurrent:d,isNext:o,isFetchPriority:c,isSamsung:m,publishDate:u,locale:h})=>{let p=()=>{n&&!d&&n(e)};if(m){let e=function(e,t="en-US"){if(!e)return"";let l=new Date(e);return Number.isNaN(l.getTime())?"":l.toLocaleDateString(t,{month:"2-digit",day:"2-digit",year:"numeric"})}(u,h);return(0,t.jsxs)("button",{type:"button",onClick:p,className:(0,r.f)("flex w-full cursor-pointer gap-3 text-left",s),children:[(0,t.jsxs)("div",{className:"relative w-2/5 max-w-40 shrink-0 self-start overflow-hidden rounded-lg",children:[(0,t.jsx)(O.U,{src:i,alt:l,aspectRatio:"3/2",isFetchPriority:c}),a&&(0,t.jsx)("span",{className:"absolute bottom-1 left-1 rounded bg-black/75 px-1.5 py-0.5 text-[11px] font-semibold text-white",children:(0,el.f)(a)})]}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col",children:[d&&(0,t.jsx)("span",{"data-state":"now-playing",className:"text-xs font-bold tracking-wide text-blue-600 uppercase",children:"Now Playing"}),o&&(0,t.jsx)("span",{"data-state":"next-up",className:"text-xs font-bold tracking-wide text-gray-900 uppercase",children:"Next Up"}),(0,t.jsx)("span",{className:"line-clamp-3 text-sm font-normal text-gray-900",children:l}),e&&(0,t.jsx)("span",{className:"mt-auto text-xs text-gray-500 md:mt-1",children:e})]})]})}return(0,t.jsxs)(et.f,{layout:"column",onClick:p,className:(0,r.f)("w-full gap-2 md:flex-row md:items-center",s),children:[(0,t.jsx)(et.f.Image,{src:i,alt:l,aspectRatio:"3/2",layout:"column",className:"md:w-[50%] md:max-w-[320px] md:min-w-30",isFetchPriority:c}),(0,t.jsxs)(et.f.Content,{className:"flex-1",children:[d&&(0,t.jsx)(v.U,{variant:"Body.S.Bold",color:"brandLight","data-state":"now-playing",children:"Now Playing"}),o&&(0,t.jsx)(v.U,{variant:"Body.S.Bold",color:"brandLight","data-state":"next-up",children:"Next Up"}),(0,t.jsx)(et.f.Title,{className:"mb-0",textSize:"sm",title:l,lineClamp:4,responsive:!0,titleHeadingLevel:"h2"}),(0,t.jsx)(et.f.Duration,{textSize:"sm",duration:a,responsive:!0})]})]})};e.i(349882);var ea=e.i(495406),en=e.i(997793);let er=({videos:e,className:a,isSamsung:n,locale:s})=>{let[d,o]=(0,i.q)(w.H),c=(0,i.y)(w.y),m=(0,i.y)(w.m),u=(()=>{let[e,t]=(0,i.q)(w.m),a=(0,i.F)(w.y);return(0,l.useCallback)((l,i,n,r=!0)=>{if(e){let s=window?.jwplayer?.();i!==e&&l&&(t(i),s.load(l));let d=l.findIndex(e=>e.mediaid===n);if(d>=0){let e=l[d];r&&e?.link&&window.history.pushState({playlistId:i,videoId:n},"",e.link),a(e),s.playlistItem(d)}}},[e,t,a])})(),[h,p]=(0,l.useState)(),[f,x]=(0,l.useState)(e?.[0]?.mediaid||null),[g,b]=(0,l.useState)(e?.[1]?.mediaid||null);(0,l.useEffect)(()=>{if(!e.length)return;h&&d&&(u(e,d,h,!1),p(null));let t=t=>{let{playlistId:l,videoId:i}=t.state??{};d!==l?(o(l),p(i)):u(e,l,i,!1)};return window.addEventListener("popstate",t),()=>window.removeEventListener("popstate",t)},[e,u,h,d,o]),(0,l.useEffect)(()=>{if(!e.length||!c){x(null),b(null);return}let t=c.mediaid||"";if(x(t),m===d){let l=e.findIndex(e=>(e.mediaid||e.file||"")===t);if(-1!==l&&l+1{e.length&&d&&u(e,d,t)},v=(0,r.f)("grid gap-2 w-full","grid-cols-1","max-sm:pb-6 max-h-full",a);return e.length?(0,t.jsx)("div",{className:v,children:e.map((e,l)=>{let i=e.mediaid||e.file||"",a=i===f,r=i===g,d=(e=>{switch(e){case 1:return"MW_Position_ContentFeedAd1";case 2:return"WX_ContentFeed1";case 3:return"MW_Position_ContentFeedAd11";default:return}})(l);return(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(en.f,{contentId:i,assetMediaType:"video",title:e.title||"",position:l+1,children:(0,t.jsx)(ei,{id:i,title:e.title||"",thumbnail:e.image||"",duration:e.custom?.duration||"",publishDate:e.custom?.publishDate,onClick:y,isCurrent:a,isNext:r,isFetchPriority:0===l,isSamsung:n,locale:s})}),d&&(0,t.jsx)(ea.AdBlock,{adId:d})]},i)})}):(0,t.jsx)("div",{className:"flex items-center justify-center p-8 text-gray-500",children:"No videos available"})};var es=e.i(341669);let ed=({className:e,rows:l=4})=>(0,t.jsx)("div",{className:(0,r.f)("grid w-full grid-cols-1 gap-2",e),children:Array.from({length:l},(e,l)=>(0,t.jsxs)("div",{className:"flex flex-row gap-3",children:[(0,t.jsx)(es.f,{skeletonClassName:"h-16 w-28 shrink-0"}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-2 py-1",children:[(0,t.jsx)(es.f,{skeletonClassName:"h-3 w-full"}),(0,t.jsx)(es.f,{skeletonClassName:"h-3 w-2/3"})]})]},l))});var eo=e.i(626923),ec=e.i(747961);let em=(0,l.forwardRef)(({title:e,titleId:l,desc:i,descId:a,...n},r)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:r,"aria-labelledby":l,"aria-describedby":a,...n,children:[i?(0,t.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Settings Adjust"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("g",{fill:"currentColor",children:(0,t.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"})})]})),eu=l.default.forwardRef((e,l)=>(0,t.jsx)(ec.f,{ref:l,icon:em,...e}));eu.displayName="SettingsAdjust";let eh=({tabs:e,defaultActiveTab:i,onTabChange:a,size:n="small",showFilterIcon:s,className:d,innerTabsClass:o})=>{let[c,m]=(0,l.useState)(i||e?.[0]?.id||""),u=e=>{m(e),a&&a(e)},h={"h-10":"small"===n,"h-12":"large"===n};return(0,t.jsxs)(eo.i,{value:c,onValueChange:u,className:(0,r.f)("w-full",d),children:[(0,t.jsxs)("div",{className:(0,r.f)("flex items-center gap-2","small"===n?"h-10":"h-14"),children:[s&&(0,t.jsx)("div",{className:(0,r.f)("flex aspect-square shrink-0 items-center justify-center rounded-lg bg-gray-100",h),children:(0,t.jsx)(eu,{className:(0,r.f)("text-gray-600",{"h-4 w-4":"small"===n,"h-5 w-5":"large"===n})})}),(0,t.jsx)("div",{className:"scrollbar-hide overflow-x-scroll",children:(0,t.jsx)(eo.U,{className:(0,r.f)("flex w-fit gap-2 bg-transparent p-0",h,o),children:e.map(e=>(0,t.jsx)(eo.k,{value:e.id,tabIndex:0,onFocus:e=>e.preventDefault(),onKeyDown:t=>{var l;return l=e.id,void(("Enter"===t.key||" "===t.key)&&(t.preventDefault(),u(l)))},className:(0,r.f)("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"===n,"px-4 text-base":"large"===n}),children:e.label},e.id))})})]}),(0,t.jsx)("div",{children:e.map(e=>(0,t.jsx)(eo.S,{value:e.id,children:e.content},e.id))})]})},ep=({tabs:e,className:l,innerTabsClass:a})=>{let[n,r]=(0,i.q)(w.H),s=e.map(e=>({id:e.id,label:e.title}));return(0,t.jsx)(eh,{tabs:s,defaultActiveTab:n,onTabChange:r,className:l,innerTabsClass:a})};var ef=e.i(794120),ex=e.i(97506);e.i(304158);var eg=e.i(485737);let eb=(0,D.createLogger)("useVideosPlaylistTab");e.s(["VideosWithPlaylistsClient",0,({tabs:e,playerId:s,isSamsung:d,locale:o,limitedAccess:c,channel:m,deviceClass:u,shareCloseLabel:h})=>{let p=e[0];(0,a.f)([[w.y,p?.videos[0]],[w.H,p?.id],[w.m,p?.id]]);let[f,x]=(0,i.q)(w.H),g=(0,l.useMemo)(()=>e.find(e=>e.id===f)??p,[e,f,p]),b=g?.videosResolved===!1,{videos:y}=function({contentQueryId:e,enabled:t,channel:a,language:n="en-US",deviceClass:r="desktop"}){let s=(0,i.y)(eg.i)||void 0,d=t&&e&&a?["videos-playlist-tab",e,a,s,n]:null,{data:o,isLoading:c,error:m}=(0,ef.U)(d,()=>(0,ex.getContentQueryMedia)({queryId:e,channel:a,territory:s,language:n}),{dedupingInterval:3e5,revalidateOnFocus:!1,keepPreviousData:!0});return(0,l.useEffect)(()=>{m&&eb.error("videos playlist tab fetch failed",{id:e,error:m})},[m,e]),{videos:t&&e&&a&&!m?o?o.filter(e=>"video"===e.type).map(e=>(function(e,t="desktop"){let l,i=String(e.id??""),a=String(e.headline??e.title??""),n=e.overrideTitle||"",r=e.description||e.caption||"",s=e.overrideDescription||"",d=String(e.assetName??""),o=String(e.url??d),c=String(e.jwpmediaid??""),m=String(e.duration??""),u=e.adsmetrics?.adzone,h=e.webVideoData??{},p=h.web??"",f=h.mweb??p;return{file:"desktop"===t?p:f,sources:[{file:p},{file:f}],image:(l=e.overrideThumbnail||e.thumbnail||e.image||"")?`${l}?crop=16:9&format=pjpg&auto=webp&quality=60&width=640`:"",title:n||a,description:s||r,mediaid:c||i,link:d,custom:{url:o,duration:function(e){if(!e)return"00:00";let t=e.split(":");if(3===t.length){let[l,i,a]=t;return l&&+l?e:`${i}:${a}`}return e}(m),publishDate:e.publishdate||e.lastmodifieddate||void 0,ctx:{pcollid:String(e.pcollid??""),adzone:u??"",assetName:d,premium:!1,tagsGeo:[],tagsStorm:[],providername:String(e.providername??"no-provider-data"),publishdate:String(e.publishdate??""),createddate:String(e.createddate??"").slice(0,10),lastmodifieddate:String(e.lastmodifieddate??""),duration:m,id:i,cmsUrl:d,videoIndex:-1,videoId:i,aspectRatio:e.aspectRatio}}}})(e,r)):null:[],isLoading:c,error:m}}({contentQueryId:b?g.id:null,enabled:b,channel:m,deviceClass:u,language:o}),v=b?y??[]:g?.videos??[],j=b&&null===y,k=(0,l.useMemo)(()=>e.map(e=>({label:e.title,slug:e.id})),[e]),N=(0,l.useMemo)(()=>{let t=e.findIndex(e=>e.id===f);return -1!==t?t:0},[e,f]),S=(0,l.useCallback)(t=>{let l=e[t];l&&x(l.id)},[e,x]);return e.length?(0,t.jsxs)("div",{className:(0,r.f)("-mt-1 bg-white"),children:[!d&&(0,t.jsx)("div",{className:"hidden md:block",children:(0,t.jsx)(n.f,{links:k,activeIndex:N,onSelect:S,constrained:!1,className:"mb-4 inline-block"})}),(0,t.jsxs)("div",{className:"flex flex-col md:grid md:grid-cols-[1fr_300px] md:gap-4",children:[(0,t.jsx)("div",{className:(0,r.f)("md:border-b-0",!d&&"border-b border-gray-200"),children:(0,t.jsx)(ee,{videos:v,className:"md:pr-4",showTitle:!0,showDescription:!0,playerId:s,placeHolder:!0,posterPriority:!0,isSamsung:d,limitedAccess:c,shareCloseLabel:h})}),(0,t.jsx)("div",{className:"md:hidden",children:(0,t.jsx)(ep,{tabs:e,className:"my-4",innerTabsClass:"mx-4"})}),(0,t.jsx)("div",{className:"w-full md:relative md:overflow-hidden md:border-l md:border-gray-100",children:d?(0,t.jsxs)("div",{className:"md:absolute md:inset-0 md:flex md:flex-col md:pl-[18px]",children:[(0,t.jsx)("div",{className:"mb-4 hidden md:block",children:(0,t.jsx)(ep,{tabs:e})}),j?(0,t.jsx)(ed,{className:"px-4 md:px-0"}):(0,t.jsx)(er,{videos:v,isSamsung:!0,locale:o,className:"px-4 md:min-h-0 md:flex-1 md:content-start md:overflow-auto md:px-0"})]}):j?(0,t.jsx)(ed,{className:"px-4 md:px-0"}):(0,t.jsx)(er,{videos:v,className:"px-4 md:absolute md:overflow-auto md:px-0"})})]})]}):null}],268056)},822342,function(e){e.n(e.i(268056))}]);