(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(902875),l=e.i(247865),n=e.i(546446),a=e.i(806262),i=e.i(457492),r=e.i(632137),s=e.i(973855),o=e.i(514514);let d=(0,o.default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),c=(0,o.default)("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 u=e.i(482317),m=e.i(777430),f=e.i(484758),p=e.i(617843),h=e.i(33078),x=e.i(528600),b=e.i(877957),g=e.i(809058),v=e.i(368847),y=e.i(550385),j=e.i(186624),w=l;let k={horizontalrule:(0,t.jsx)("hr",{})},N={linebreak:(0,t.jsx)("br",{})};var S=e.i(990033);let T="֑-߿יִ-﷽ﹰ-ﻼ",A="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-";RegExp("^[^"+A+"]*["+T+"]"),RegExp("^[^"+T+"]*["+A+"]");let C={paragraph:({node:e,nodesToJSX:l})=>{let n=l({nodes:e.children});return n?.length?(0,t.jsx)("p",{children:n}):(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},...N,quote:({node:e,nodesToJSX:l})=>{let n=l({nodes:e.children});return(0,t.jsx)("blockquote",{children:n})},table:({node:e,nodesToJSX:l})=>{let n=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:n})})})},tablecell:({node:e,nodesToJSX:l})=>{let n=l({nodes:e.children}),a=e.headerState>0?"th":"td",i=`lexical-table-cell-header-${e.headerState}`,r={backgroundColor:e.backgroundColor||void 0,border:"1px solid #ccc",padding:"8px"},s=e.colSpan&&e.colSpan>1?e.colSpan:void 0,o=e.rowSpan&&e.rowSpan>1?e.rowSpan:void 0;return(0,t.jsx)(a,{className:`lexical-table-cell ${i}`,colSpan:s,rowSpan:o,style:r,children:n})},tablerow:({node:e,nodesToJSX:l})=>{let n=l({nodes:e.children});return(0,t.jsx)("tr",{className:"lexical-table-row",children:n})},heading:({node:e,nodesToJSX:l})=>{let n=l({nodes:e.children}),a=e.tag;return(0,t.jsx)(a,{children:n})},...k,list:({node:e,nodesToJSX:l})=>{let n=l({nodes:e.children}),a=e.tag;return(0,t.jsx)(a,{className:`list-${e?.listType}`,children:n})},listitem:({node:e,nodesToJSX:l,parent:n})=>{let a=e.children.some(e=>"list"===e.type),i=l({nodes:e.children});if(!("listType"in n)||n?.listType!=="check")return(0,t.jsx)("li",{className:`${a?"nestedListItem":""}`,style:a?{listStyleType:"none"}:void 0,value:e?.value,children:i});{let l=(0,S.v4)();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?i:(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:i}),(0,t.jsx)("br",{})]})})}},...(({internalDocToHref:e})=>({autolink:({node:e,nodesToJSX:l})=>{let n=l({nodes:e.children}),a=e.fields.newTab?"noopener noreferrer":void 0,i=e.fields.newTab?"_blank":void 0;return(0,t.jsx)("a",{href:e.fields.url,rel:a,target:i,children:n})},link:({node:l,nodesToJSX:n})=>{let a=n({nodes:l.children}),i=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:i,target:r,children:a})}}))({}),upload:({node:e})=>{if("object"!=typeof e.value)return null;let l=e.value,n=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:n,height:l.height,src:a,width:l.width});let i=[];for(let e in l.sizes){let n=l.sizes[e];if(!n||!n.width||!n.height||!n.mimeType||!n.filesize||!n.filename||!n.url)continue;let a=n?.url;i.push((0,t.jsx)("source",{media:`(max-width: ${n.width}px)`,srcSet:a,type:n.mimeType},e))}return i.push((0,t.jsx)("img",{alt:n,height:l?.height,src:a,width:l?.width},"image")),(0,t.jsx)("picture",{children:i})},tab:" "};function I(e){return n=>{if(e.Component){let t={...n,isEditor:!1,isJSXConverter:!0};return e.Component(t)}if(e.Block){let t=n.node,a={childIndex:n.childIndex,converters:n.converters,formData:t.fields??{},isEditor:!1,isJSXConverter:!0,node:t,nodesToJSX:n.nodesToJSX,parent:n.parent};return l.default.createElement(e.Block,a)}if(e.html){let l={...n,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 _({className:e,converters:n,data:a,disableContainer:i,disableIndent:r,disableTextAlign:s,nodeMap:o}){if(!a)return null;let d={};d=n?"function"==typeof n?n({defaultConverters:C}):n:C;let c=a&&!Array.isArray(a)&&"object"==typeof a&&"root"in a&&function({converters:e,data:n,disableIndent:a,disableTextAlign:i,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}(n)){let s=r?function(e){let l={};for(let[n,a]of Object.entries(e))if(a&&"object"==typeof a){if("blocks"===n){for(let[e,t]of(l.blocks={},Object.entries(a)))(t.Component||t.Block||t.html)&&(l.blocks[e]=I(t));continue}if("inlineBlocks"===n){for(let[e,t]of(l.inlineBlocks={},Object.entries(a)))(t.Component||t.Block||t.html)&&(l.inlineBlocks[e]=I(t));continue}(a.Component||a.html)&&(l[n]=function(e){return l=>{let n={...l,isEditor:!1,isJSXConverter:!0};if(e.Component)return e.Component(n);if(e.html){let l="function"==typeof e.html?e.html(n):e.html;return(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:l}})}return null}}(a))}return l}(r):void 0;return function e({converters:n,disableIndent:a,disableTextAlign:i,nodes:r,parent:s}){let o=n.unknown;return r.map((r,d)=>{let c;"block"===r.type?(c=n?.blocks?.[r?.fields?.blockType])||o||console.error(`Lexical => JSX converter: Blocks converter: found ${r?.fields?.blockType} block, but no converter is provided`):"inlineBlock"===r.type?(c=n?.inlineBlocks?.[r?.fields?.blockType])||o||console.error(`Lexical => JSX converter: Inline Blocks converter: found ${r?.fields?.blockType} inline block, but no converter is provided`):c=n[r.type];try{let u;!c&&o&&(c=o),u=c?"function"==typeof c?c({childIndex:d,converters:n,node:r,nodesToJSX:t=>e({converters:t.converters??n,disableIndent:t.disableIndent??a,disableTextAlign:t.disableTextAlign??i,nodes:t.nodes,parent:t.parent??{...r,parent:s}}),parent:s}):c:(0,t.jsx)("span",{children:"unknown node"},d);let m={};if(!i&&(!Array.isArray(i)||!i?.includes(r.type))&&"format"in r&&r.format)switch(r.format){case"center":m.textAlign="center";break;case"end":case"right":m.textAlign="right";break;case"justify":m.textAlign="justify";break;case"left":break;case"start":m.textAlign="left"}if(!a&&(!Array.isArray(a)||!a?.includes(r.type))&&"indent"in r&&r.indent&&"listitem"!==r.type&&(m.paddingInlineStart=`${40*Number(r.indent)}px`),l.default.isValidElement(u)){if(m.textAlign||m.paddingInlineStart){let e={...m,...u?.props?.style??{}};return l.default.cloneElement(u,{key:d,style:e})}return l.default.cloneElement(u,{key:d})}return u}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:i,nodes:n.root.children,parent:n.root})}return(0,t.jsx)(t.Fragment,{})}({converters:d,data:a,disableIndent:r,disableTextAlign:s,nodeMap:o});return i?(0,t.jsx)(t.Fragment,{children:c}):(0,t.jsx)("div",{className:e??"payload-richtext",children:c})}var P=e.i(695881);let D=["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!D.some(e=>t.hostname===e||t.hostname.endsWith(`.${e}`))}let E=({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),R=(0,P.createLogger)("VideosWithPlaylists:HeroDescription"),B=({defaultConverters:e})=>({...e,...function({internalDocToHref:e,isMobileApp:l}){return{link:({node:n,nodesToJSX:a})=>{let i=n.fields,r="";if("internal"===i.linkType&&i.doc?.value){let t=l&&"videos"===i.doc.relationTo?i.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:n})}else i.url&&(r=i.url);let s=new Set(i.rel&&Array.isArray(i.rel)?i.rel:[]),o=r&&F(r);o&&(s.add("external"),s.add("nofollow"));let d=s.size>0?[...s].join(" "):void 0,c=i.newTab||o?"_blank":void 0;return(0,t.jsx)("a",{href:r,...d&&{rel:d},...c&&{target:c},children:a({nodes:n.children})})},autolink:({node:e,nodesToJSX:l})=>{let n=e.fields.url||"";return F(n)?(0,t.jsx)("a",{href:n,rel:"noopener noreferrer external nofollow",target:"_blank",children:l({nodes:e.children})}):(0,t.jsx)("a",{href:n,rel:"noopener noreferrer",children:l({nodes:e.children})})}}}({internalDocToHref:E})});class $ extends w.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e,t){R.error("Hero description failed to render",e,{componentStack:t.componentStack})}render(){return this.state.failed?null:this.props.children}}function M({data:e}){return(0,t.jsx)($,{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)(_,{converters:B,data:e})})})}var L=e.i(909232),H=e.i(849177),V=e.i(240058),z=e.i(155879),U=e.i(436028),O=e.i(37429),K=e.i(873598);let X={timeAgo:!0,daysFromNow:5,showFullTime:!1,locale:"en-US",timeZone:"America/New_York"},J=(e,t=X)=>{if(!e)return null;let{timeAgo:l,daysFromNow:n,showFullTime:a,locale:i,timeZone:r}={...X,...t},s=new Date(e),o=new Date;if(l){let e=o.getTime()-s.getTime(),t=Math.ceil(e/36e5),l=Math.ceil(e/864e5);if(t{if(!(0,U.hasLength)(e)&&!n&&!a&&!i)return null;let d=J(a),c=J(a,{timeAgo:!1,showFullTime:!0}),u=J(i,{timeAgo:!1,showFullTime:!0}),m=(0,U.hasLength)(e)?e.filter(e=>"object"==typeof e&&null!==e&&`${e.firstName||""} ${e.lastName||""}`.trim().length>0):[],f=m.length>0,p=m.flatMap(e=>(0,z.isImageObject)(e.profilePicture)?[{author:e,profilePicture:e.profilePicture}]:[]),h=o/2,x=o+(p.length-1)*h,b=p.length>0&&"noAuthorImages"!==s,g=48===o?"h-12 w-12":"h-8 w-8",y=48===o?"-space-x-6":"-space-x-4";return(0,t.jsxs)("div",{className:"flex items-center pt-2 pb-4","data-testid":"authors-container",children:[b&&(0,t.jsx)("div",{className:(0,r.cn)("mr-2 flex",y),style:{minWidth:`${x}px`},"data-testid":"author-images-container",children:p.map(({author:e,profilePicture:l},n)=>l?.url?(0,t.jsx)(O.default,{width:o,height:o,src:l.url,alt:`${e.firstName||""} ${e.lastName||""}`.trim(),className:(0,r.cn)("flatplan_authorImage my-0 rounded-full border-2 border-white object-cover",g),style:{zIndex:p.length-n},"data-flatplan-id":"flatplan_authorImage","data-testid":`author-image-${n}`,objectFit:"cover"},e.id):null)}),(0,t.jsxs)("div",{className:"inline","data-testid":"author-text-container",children:[(f||n)&&(0,t.jsx)(v.default,{variant:"Body.S",className:"mr-1 inline leading-[1rem]","data-testid":"by-text",elementType:"span",children:"By"}),m.map((e,n)=>{let a=`${e.firstName||""} ${e.lastName||""}`.trim(),i=e?e.bioUrl?e.bioUrl:e.slug?`/bios/${e.slug}`:null:null,r=n===m.length-1,s=n===m.length-2;return(0,t.jsxs)(l.default.Fragment,{children:[i?(0,t.jsx)(V.default,{href:i,"data-testid":`author-link-${n}`,children:(0,t.jsx)(v.default,{className:"flatplan_authorName inline leading-[1rem] underline",variant:"Body.S",elementType:"span","data-flatplan-id":"flatplan_authorName","data-testid":`author-name-linked-${n}`,children:a})}):(0,t.jsx)(v.default,{className:"flatplan_authorName inline leading-[1rem]",variant:"Body.S",elementType:"span","data-flatplan-id":"flatplan_authorName","data-testid":`author-name-${n}`,children:a}),!r&&(0,t.jsx)(v.default,{variant:"Body.S",elementType:"span",className:`inline leading-[1rem] ${s?"mx-1":"mr-1"}`,"data-testid":`author-separator-${n}`,children:s?"and":","})]},e.id)}),n&&(0,t.jsx)(v.default,{variant:"Body.S",elementType:"span",className:`inline leading-[1rem] ${f?"ml-1":""}`,"data-testid":"external-authors",children:f?`, ${n}`:n}),d&&(0,t.jsxs)(t.Fragment,{children:[(f||n)&&(0,t.jsx)(v.default,{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.default,{variant:"Body.S",elementType:"span",color:"secondary",className:"inline leading-[1rem] whitespace-nowrap","data-testid":"update-date",children:d})}),(0,t.jsxs)("span",{className:"block","data-testid":"date-expanded",children:[c&&(0,t.jsxs)(v.default,{variant:"Body.S",elementType:"span",color:"secondary",className:"block leading-[1rem]","data-testid":"update-date-full",children:["Updated: ",c]}),u&&(0,t.jsxs)(v.default,{variant:"Body.S",elementType:"span",color:"secondary",className:"block leading-[1rem]","data-testid":"publish-date-full",children:["Published: ",u]})]})]})]})]})]})};var G=e.i(143911),q=e.i(190228);let Z=({videos:e,className:a,autoplay:i=!0,showControls:o=!0,showTitle:w=!0,showDescription:k=!0,aspectRatio:N="16:9",playerId:S="QidSYgAw",placeHolder:T,isSamsung:A,limitedAccess:C=!1})=>{let[I,_]=(0,n.useAtom)(j.selectedVideoAtom),P=(0,n.useAtomValue)(j.selectedPlaylistIdAtom),D=(0,L.useClientMobileMedia)(),F=`video-player-${(0,l.useId)()}`,E=(0,l.useRef)(!0),R=(0,x.useUser)()?.user||{},B=(0,n.useAtomValue)(H.adsDisabledAtom),$=R.isUserPremium||B,V=(0,h.useTrackVideoEvent)(),[z,U]=(0,l.useState)(!1),[O,K]=(0,l.useState)(!1),X=(0,l.useRef)(I?.mediaid);(0,l.useEffect)(()=>{X.current=I?.mediaid},[I]);let J=(0,l.useCallback)(({event:e,player:t})=>{let l=e.item;X.current!==l?.mediaid&&(_(l),window.history.pushState({playlistId:P,videoId:l.mediaid},"",l.link||""))},[P,_]),Z=(0,l.useCallback)(({player:e})=>{let t=window?.ns_?.StreamingAnalytics?.JWPlayer;t&&t(e,{publisherId:"9576127"})},[]);if(!I)return null;let Q=[...f.adEvents,...p.metricEvents,{eventName:"playlistItem",callback:J},{eventName:"ready",callback:Z}].map(({eventName:e,callback:t})=>({eventName:e,callback:({event:e,player:l})=>t({event:e,player:l,isFirstPlayRef:E,user:R,trackVideoEvent:V,isMobile:D})}));return(0,t.jsxs)("div",{className:a,children:[(0,t.jsxs)("div",{className:(0,r.cn)("flatplan_mainMedia mb-4 overflow-hidden md:rounded-2xl",C&&"premium-gated relative"),"data-flatplan-id":"flatplan_mainMedia",children:[(0,t.jsx)(m.JWPlayer,{playlist:e,events:Q,options:{aspectratio:N,autostart:!C&&i,controls:!C&&o,displaytitle:!1,displaydescription:!1,width:"100%"},setupParams:{playerId:S,ads:!$},placeHolder:T,placeHolderImage:I?.image},F),C&&(0,t.jsx)(y.LimitedAccessOverlay,{variant:"cover"})]}),(0,t.jsxs)("div",{className:"flatplan_body @container mx-4 my-4 md:mx-0","data-flatplan-id":"flatplan_body",children:[I?.custom?.category&&(0,t.jsx)(v.default,{variant:"Body.S",elementType:"span",className:"flatplan_category mb-1 inline-block font-bold","data-flatplan-id":"flatplan_category","data-testid":"video-category",children:I.custom.category}),w&&I?.title&&(A?(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.default,{variant:"Title.XL",elementType:"h1",className:"flatplan_header mb-2","data-flatplan-id":"flatplan_header","data-testid":"video-headline",children:I?.title}),(0,t.jsx)("span",{"aria-hidden":"true",className:"flatplan_mediaTitle sr-only","data-flatplan-id":"flatplan_mediaTitle",children:I?.title})]}),(D||I?.custom?.transcript)&&(0,t.jsxs)(g.Popover,{children:[(0,t.jsx)(g.PopoverTrigger,{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)(g.PopoverContent,{align:"end",className:"w-40 p-1",children:[D&&(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"}),I?.custom?.transcript&&(0,t.jsx)("button",{type:"button",onClick:()=>U(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.default,{variant:"Title.XL",elementType:"h1",className:"flatplan_header mb-2","data-flatplan-id":"flatplan_header","data-testid":"video-headline",children:I?.title}),(0,t.jsx)("span",{"aria-hidden":"true",className:"flatplan_mediaTitle sr-only","data-flatplan-id":"flatplan_mediaTitle",children:I?.title})]})),I?.custom?.publishDate&&(0,t.jsx)(W,{authors:I?.custom?.authors,externalAuthors:I?.custom?.externalAuthors,updateDate:I?.custom?.updateDate,publishedDate:I?.custom?.publishDate}),(A?!D||O:k)&&(I?.descriptionRichText||I?.description)&&(I?.descriptionRichText?(0,t.jsx)(v.default,{variant:"Body.M",elementType:"div",className:"flatplan_intro mb-4","data-flatplan-id":"flatplan_intro","data-testid":"video-description",children:(0,t.jsx)(M,{data:I.descriptionRichText})}):(0,t.jsx)(v.default,{variant:"Body.M",className:"flatplan_intro mb-4","data-flatplan-id":"flatplan_intro","data-testid":"video-description",children:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:I?.description??""}})})),!A&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 @md:flex-row",children:[I?.custom?.transcript&&(0,t.jsxs)(b.Button,{className:"flex items-center text-sm font-medium",variant:"outline",onClick:()=>U(!z),children:["Transcript"," ",z?(0,t.jsx)(d,{className:"ml-1 h-4 w-4"}):(0,t.jsx)(s.ChevronDown,{className:"ml-1 h-4 w-4"})]}),(0,t.jsx)(G.ViewCommentsButton,{articleId:I?.mediaid||"",isMobile:D}),(0,t.jsx)(q.Share,{type:"video",title:I.title||"",imageUrl:I.image})]}),z&&I?.custom?.transcript&&(0,t.jsxs)("div",{className:"mt-4 rounded-lg bg-[#F4F4F4] p-4",children:[A&&(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:()=>U(!1),className:"text-gray-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-blue-500",children:(0,t.jsx)(u.X,{className:"h-5 w-5","aria-hidden":"true"})})]}),(0,t.jsx)("p",{className:"text-sm text-gray-700",children:I?.custom.transcript})]})]})]})};var Q=e.i(864943),Y=e.i(77859);let ee=({id:e,title:l,thumbnail:n,duration:a,onClick:i,className:s,isCurrent:o,isNext:d,isFetchPriority:c,isSamsung:u,publishDate:m,locale:f})=>{let p=(0,L.useClientMobileMedia)()?"column":"row",h=()=>{i&&!o&&i(e)};if(u){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"})}(m,f);return(0,t.jsxs)("button",{type:"button",onClick:h,className:(0,r.cn)("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.default,{src:n,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,Y.truncateDuration)(a)})]}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col",children:[o&&(0,t.jsx)("span",{"data-state":"now-playing",className:"text-xs font-bold tracking-wide text-blue-600 uppercase",children:"Now Playing"}),d&&(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)(Q.MediaObject,{layout:p,onClick:h,className:(0,r.cn)("w-full gap-2",s),children:[(0,t.jsx)(Q.MediaObject.Image,{src:n,alt:l,aspectRatio:"3/2",layout:p,isFetchPriority:c}),(0,t.jsxs)(Q.MediaObject.Content,{className:"flex-1",children:[o&&(0,t.jsx)(v.default,{variant:"Body.S.Bold",color:"brandLight","data-state":"now-playing",children:"Now Playing"}),d&&(0,t.jsx)(v.default,{variant:"Body.S.Bold",color:"brandLight","data-state":"next-up",children:"Next Up"}),(0,t.jsx)(Q.MediaObject.Title,{className:"mb-0",textSize:"sm",title:l,lineClamp:4,responsive:!0}),(0,t.jsx)(Q.MediaObject.Duration,{textSize:"sm",duration:a,responsive:!0})]})]})};e.i(349882);var et=e.i(495406),el=e.i(997793);let en=({videos:e,className:a,isSamsung:i,locale:s})=>{let[o,d]=(0,n.useAtom)(j.selectedPlaylistIdAtom),c=(0,n.useAtomValue)(j.selectedVideoAtom),u=(0,n.useAtomValue)(j.jwPlayerPlaylistIdAtom),m=(()=>{let[e,t]=(0,n.useAtom)(j.jwPlayerPlaylistIdAtom),a=(0,n.useSetAtom)(j.selectedVideoAtom);return(0,l.useCallback)((l,n,i,r=!0)=>{if(e){let s=window?.jwplayer?.();n!==e&&l&&(t(n),s.load(l));let o=l.findIndex(e=>e.mediaid===i);if(o>=0){let e=l[o];r&&e?.link&&window.history.pushState({playlistId:n,videoId:i},"",e.link),a(e),s.playlistItem(o)}}},[e,t,a])})(),[f,p]=(0,l.useState)(),[h,x]=(0,l.useState)(e?.[0]?.mediaid||null),[b,g]=(0,l.useState)(e?.[1]?.mediaid||null);(0,l.useEffect)(()=>{if(!e.length)return;f&&o&&(m(e,o,f,!1),p(null));let t=t=>{let{playlistId:l,videoId:n}=t.state??{};o!==l?(d(l),p(n)):m(e,l,n,!1)};return window.addEventListener("popstate",t),()=>window.removeEventListener("popstate",t)},[e,m,f,o,d]),(0,l.useEffect)(()=>{if(!e.length||!c){x(null),g(null);return}let t=c.mediaid||"";if(x(t),u===o){let l=e.findIndex(e=>(e.mediaid||e.file||"")===t);if(-1!==l&&l+1{e.length&&o&&m(e,o,t)},y=(0,r.cn)("grid gap-2 w-full","grid-cols-1","max-sm:pb-6 max-h-full",a);return e.length?(0,t.jsx)("div",{className:y,children:e.map((e,l)=>{let n=e.mediaid||e.file||"",a=n===h,r=n===b,o=(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)(el.AssetAnalytics,{contentId:n,assetMediaType:"video",title:e.title||"",position:l+1,children:(0,t.jsx)(ee,{id:n,title:e.title||"",thumbnail:e.image||"",duration:e.custom?.duration||"",publishDate:e.custom?.publishDate,onClick:v,isCurrent:a,isNext:r,isFetchPriority:0===l,isSamsung:i,locale:s})}),o&&(0,t.jsx)(et.AdBlock,{adId:o})]},n)})}):(0,t.jsx)("div",{className:"flex items-center justify-center p-8 text-gray-500",children:"No videos available"})};var ea=e.i(341669);let ei=({className:e,rows:l=4})=>(0,t.jsx)("div",{className:(0,r.cn)("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)(ea.default,{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)(ea.default,{skeletonClassName:"h-3 w-full"}),(0,t.jsx)(ea.default,{skeletonClassName:"h-3 w-2/3"})]})]},l))});var er=e.i(543836),es=e.i(855128),eo=e.i(251590),ed=e.i(271359),ec=e.i(296994),eu=e.i(942928),em=e.i(843265),ef=e.i(803976),ep=e.i(986044),eh=e.i(714035),ex=Object.defineProperty,eb=(e,t)=>ex(e,"name",{value:t,configurable:!0}),eg=!1;function ev(){let[e,t]=l.useState(eg);return l.useEffect(()=>{eg||(eg=!0,t(!0))},[]),e}eb(ev,"useIsHydrated");var ey=l[" useSyncExternalStore ".trim().toString()];function ej(){return()=>{}}function ew(){return ey(ej,()=>!0,()=>!1)}eb(ej,"subscribe"),eb(ew,"useIsHydratedModern");var ek="function"==typeof ey?ew:ev,eN=Object.defineProperty,eS=(e,t)=>eN(e,"name",{value:t,configurable:!0}),eT="rovingFocusGroup.onEntryFocus",eA={bubbles:!1,cancelable:!0},eC="RovingFocusGroup",[eI,e_,eP]=(0,eo.createCollection)(eC),[eD,eF]=(0,es.createContextScope)(eC,[eP]),[eE,eR]=eD(eC),eB=l.forwardRef(eS(function(e,l){return(0,t.jsx)(eI.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(eI.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(e$,{...e,ref:l})})})},"RovingFocusGroup")),e$=l.forwardRef(eS(function(e,n){let{__scopeRovingFocusGroup:a,orientation:i,loop:r=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:m=!1,...f}=e,p=l.useRef(null),h=(0,ed.useComposedRefs)(n,p),x=(0,ep.useDirection)(s),[b,g]=(0,ef.useControllableState)({prop:o,defaultProp:d??null,onChange:c,caller:eC}),[v,y]=l.useState(!1),j=(0,em.useCallbackRef)(u),w=e_(a),k=l.useRef(!1),[N,S]=l.useState(0);return l.useEffect(()=>{let e=p.current;if(e)return e.addEventListener(eT,j),()=>e.removeEventListener(eT,j)},[j]),(0,t.jsx)(eE,{scope:a,orientation:i,dir:x,loop:r,currentTabStopId:b,onItemFocus:l.useCallback(e=>g(e),[g]),onItemShiftTab:l.useCallback(()=>y(!0),[]),onFocusableItemAdd:l.useCallback(()=>S(e=>e+1),[]),onFocusableItemRemove:l.useCallback(()=>S(e=>e-1),[]),children:(0,t.jsx)(eu.Primitive.div,{tabIndex:v||0===N?-1:0,"data-orientation":i,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:(0,er.composeEventHandlers)(e.onMouseDown,()=>{k.current=!0}),onFocus:(0,er.composeEventHandlers)(e.onFocus,e=>{let t=!k.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(eT,eA);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=w().filter(e=>e.focusable);ez([e.find(e=>e.active),e.find(e=>e.id===b),...e].filter(Boolean).map(e=>e.ref.current),m)}}k.current=!1}),onBlur:(0,er.composeEventHandlers)(e.onBlur,()=>y(!1))})})},"RovingFocusGroupImpl")),eM=l.forwardRef(eS(function(e,n){let{__scopeRovingFocusGroup:a,focusable:i=!0,active:r=!1,tabStopId:s,children:o,...d}=e,c=(0,ec.useId)(),u=s||c,m=eR("RovingFocusGroupItem",a),f=m.currentTabStopId===u,p=e_(a),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:b}=m,g=ek();return(0,eh.useLayoutEffect)(()=>{if(g&&i)return h(),()=>x()},[g,i,h,x]),l.useEffect(()=>{if(!g&&i)return h(),()=>x()},[g,i,h,x]),(0,t.jsx)(eI.ItemSlot,{scope:a,id:u,focusable:i,active:r,children:(0,t.jsx)(eu.Primitive.span,{tabIndex:f?0:-1,"data-orientation":m.orientation,...d,ref:n,onMouseDown:(0,er.composeEventHandlers)(e.onMouseDown,e=>{i?m.onItemFocus(u):e.preventDefault()}),onFocus:(0,er.composeEventHandlers)(e.onFocus,()=>m.onItemFocus(u)),onKeyDown:(0,er.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=eV(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let l=p().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)l.reverse();else if("prev"===t||"next"===t){"prev"===t&&l.reverse();let n=l.indexOf(e.currentTarget);l=m.loop?eU(l,n+1):l.slice(n+1)}setTimeout(()=>ez(l))}}),children:"function"==typeof o?o({isCurrentTabStop:f,hasTabStop:null!=b}):o})})},"RovingFocusGroupItem")),eL={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function eH(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function eV(e,t,l){let n=eH(e.key,l);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return eL[n]}function ez(e,t=!1){let l=document.activeElement;for(let n of e)if(n===l||(n.focus({preventScroll:t}),document.activeElement!==l))return}function eU(e,t){return e.map((l,n)=>e[(t+n)%e.length])}eS(eH,"getDirectionAwareKey"),eS(eV,"getFocusIntent"),eS(ez,"focusFirst"),eS(eU,"wrapArray");var eO=e.i(312610),eK=Object.defineProperty,eX=(e,t)=>eK(e,"name",{value:t,configurable:!0}),eJ="Tabs",[eW,eG]=(0,es.createContextScope)(eJ,[eF]),eq=eF(),[eZ,eQ]=eW(eJ),eY=l.forwardRef(eX(function(e,l){let{__scopeTabs:n,value:a,onValueChange:i,defaultValue:r,orientation:s="horizontal",dir:o,activationMode:d="automatic",...c}=e,u=(0,ep.useDirection)(o),[m,f]=(0,ef.useControllableState)({prop:a,onChange:i,defaultProp:r??"",caller:eJ});return(0,t.jsx)(eZ,{scope:n,baseId:(0,ec.useId)(),value:m,onValueChange:f,orientation:s,dir:u,activationMode:d,children:(0,t.jsx)(eu.Primitive.div,{dir:u,"data-orientation":s,...c,ref:l})})},"Tabs")),e0=l.forwardRef(eX(function(e,l){let{__scopeTabs:n,loop:a=!0,...i}=e,r=eQ("TabsList",n),s=eq(n);return(0,t.jsx)(eB,{asChild:!0,...s,orientation:r.orientation,dir:r.dir,loop:a,children:(0,t.jsx)(eu.Primitive.div,{role:"tablist","aria-orientation":r.orientation,...i,ref:l})})},"TabsList")),e1=l.forwardRef(eX(function(e,l){let{__scopeTabs:n,value:a,disabled:i=!1,...r}=e,s=eQ("TabsTrigger",n),o=eq(n),d=e5(s.baseId,a),c=e4(s.baseId,a),u=a===s.value;return(0,t.jsx)(eM,{asChild:!0,...o,focusable:!i,active:u,children:(0,t.jsx)(eu.Primitive.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:d,...r,ref:l,onMouseDown:(0,er.composeEventHandlers)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(a)}),onKeyDown:(0,er.composeEventHandlers)(e.onKeyDown,e=>{!i&&e.target===e.currentTarget&&[" ","Enter"].includes(e.key)&&s.onValueChange(a)}),onFocus:(0,er.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==s.activationMode;u||i||!e||s.onValueChange(a)})})})},"TabsTrigger")),e2=l.forwardRef(eX(function(e,n){let{__scopeTabs:a,value:i,forceMount:r,children:s,...o}=e,d=eQ("TabsContent",a),c=e5(d.baseId,i),u=e4(d.baseId,i),m=i===d.value,f=l.useRef(m);return l.useEffect(()=>{let e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(eO.Presence,{present:r||m,children:({present:l})=>(0,t.jsx)(eu.Primitive.div,{"data-state":m?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":c,hidden:!l,id:u,tabIndex:0,...o,ref:n,style:{...e.style,animationDuration:f.current?"0s":void 0},children:l&&s})})},"TabsContent"));function e5(e,t){return`${e}-trigger-${t}`}function e4(e,t){return`${e}-content-${t}`}function e3({className:e,...l}){return(0,t.jsx)(eY,{"data-slot":"tabs",className:(0,r.cn)("flex flex-col gap-x-2",e),...l})}function e6({className:e,...l}){return(0,t.jsx)(e0,{"data-slot":"tabs-list",className:(0,r.cn)("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...l})}function e8({className:e,...l}){return(0,t.jsx)(e1,{"data-slot":"tabs-trigger",className:(0,r.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",e),...l})}function e9({className:e,...l}){return(0,t.jsx)(e2,{"data-slot":"tabs-content",className:(0,r.cn)("flex-1 outline-none",e),...l})}eX(e5,"makeTriggerId"),eX(e4,"makeContentId");var e7=e.i(747961);let te=(0,l.forwardRef)(({title:e,titleId:l,desc:n,descId:a,...i},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,...i,children:[n?(0,t.jsx)("desc",{id:a,children:n}):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"})})]})),tt=l.default.forwardRef((e,l)=>(0,t.jsx)(e7.BaseIcon,{ref:l,icon:te,...e}));tt.displayName="SettingsAdjust";let tl=({tabs:e,defaultActiveTab:n,onTabChange:a,size:i="small",showFilterIcon:s,className:o,innerTabsClass:d})=>{let[c,u]=(0,l.useState)(n||e?.[0]?.id||""),m=e=>{u(e),a&&a(e)},f={"h-10":"small"===i,"h-12":"large"===i};return(0,t.jsxs)(e3,{value:c,onValueChange:m,className:(0,r.cn)("w-full",o),children:[(0,t.jsxs)("div",{className:(0,r.cn)("flex items-center gap-2","small"===i?"h-10":"h-14"),children:[s&&(0,t.jsx)("div",{className:(0,r.cn)("flex aspect-square shrink-0 items-center justify-center rounded-lg bg-gray-100",f),children:(0,t.jsx)(tt,{className:(0,r.cn)("text-gray-600",{"h-4 w-4":"small"===i,"h-5 w-5":"large"===i})})}),(0,t.jsx)("div",{className:"scrollbar-hide overflow-x-scroll",children:(0,t.jsx)(e6,{className:(0,r.cn)("flex w-fit gap-2 bg-transparent p-0",f,d),children:e.map(e=>(0,t.jsx)(e8,{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(),m(l)))},className:(0,r.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"===i,"px-4 text-base":"large"===i}),children:e.label},e.id))})})]}),(0,t.jsx)("div",{children:e.map(e=>(0,t.jsx)(e9,{value:e.id,children:e.content},e.id))})]})},tn=({tabs:e,className:l,innerTabsClass:a})=>{let[i,r]=(0,n.useAtom)(j.selectedPlaylistIdAtom),s=e.map(e=>({id:e.id,label:e.title}));return(0,t.jsx)(tl,{tabs:s,defaultActiveTab:i,onTabChange:r,className:l,innerTabsClass:a})};var ta=e.i(381477),ti=e.i(97506);e.i(304158);var tr=e.i(485737);let ts=(0,P.createLogger)("useVideosPlaylistTab");e.s(["VideosWithPlaylistsClient",0,({tabs:e,playerId:s,isSamsung:o,locale:d,limitedAccess:c,channel:u,deviceClass:m})=>{let f=e[0];(0,a.useHydrateAtoms)([[j.selectedVideoAtom,f?.videos[0]],[j.selectedPlaylistIdAtom,f?.id],[j.jwPlayerPlaylistIdAtom,f?.id]]);let[p,h]=(0,n.useAtom)(j.selectedPlaylistIdAtom),x=(0,l.useMemo)(()=>e.find(e=>e.id===p)??f,[e,p,f]),b=x?.videosResolved===!1,{videos:g}=function({contentQueryId:e,enabled:t,channel:a,language:i="en-US",deviceClass:r="desktop"}){let s=(0,n.useAtomValue)(tr.geoipCountry)||void 0,o=t&&e&&a?["videos-playlist-tab",e,a,s,i]:null,{data:d,isLoading:c,error:u}=(0,ta.default)(o,()=>(0,ti.getContentQueryMedia)({queryId:e,channel:a,territory:s,language:i}),{dedupingInterval:3e5,revalidateOnFocus:!1,keepPreviousData:!0});return(0,l.useEffect)(()=>{u&&ts.error("videos playlist tab fetch failed",{id:e,error:u})},[u,e]),{videos:t&&e&&a&&!u?d?d.filter(e=>"video"===e.type).map(e=>(function(e,t="desktop"){let l,n=String(e.id??""),a=String(e.headline??e.title??""),i=e.overrideTitle||"",r=e.description||e.caption||"",s=e.overrideDescription||"",o=String(e.assetName??""),d=String(e.url??o),c=String(e.jwpmediaid??""),u=String(e.duration??""),m=e.adsmetrics?.adzone,f=e.webVideoData??{},p=f.web??"",h=f.mweb??p;return{file:"desktop"===t?p:h,sources:[{file:p},{file:h}],image:(l=e.overrideThumbnail||e.thumbnail||e.image||"")?`${l}?crop=16:9&format=pjpg&auto=webp&quality=60&width=640`:"",title:i||a,description:s||r,mediaid:c||n,link:o,custom:{url:d,duration:function(e){if(!e)return"00:00";let t=e.split(":");if(3===t.length){let[l,n,a]=t;return l&&+l?e:`${n}:${a}`}return e}(u),publishDate:e.publishdate||e.lastmodifieddate||void 0,ctx:{pcollid:String(e.pcollid??""),adzone:m??"",assetName:o,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:u,id:n,cmsUrl:o,videoIndex:-1,videoId:n,aspectRatio:e.aspectRatio}}}})(e,r)):null:[],isLoading:c,error:u}}({contentQueryId:b?x.id:null,enabled:b,channel:u,deviceClass:m,language:d}),v=b?g??[]:x?.videos??[],y=b&&null===g,w=(0,l.useMemo)(()=>e.map(e=>({label:e.title,slug:e.id})),[e]),k=(0,l.useMemo)(()=>{let t=e.findIndex(e=>e.id===p);return -1!==t?t:0},[e,p]),N=(0,l.useCallback)(t=>{let l=e[t];l&&h(l.id)},[e,h]);return e.length?(0,t.jsxs)("div",{className:(0,r.cn)("-mt-1 bg-white"),children:[!o&&(0,t.jsx)("div",{className:"hidden md:block",children:(0,t.jsx)(i.SubnavigationUI,{links:w,activeIndex:k,onSelect:N,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.cn)("md:border-b-0",!o&&"border-b border-gray-200"),children:(0,t.jsx)(Z,{videos:v,className:"md:pr-4",showTitle:!0,showDescription:!0,playerId:s,placeHolder:!0,isSamsung:o,limitedAccess:c})}),(0,t.jsx)("div",{className:"md:hidden",children:(0,t.jsx)(tn,{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:o?(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)(tn,{tabs:e})}),y?(0,t.jsx)(ei,{className:"px-4 md:px-0"}):(0,t.jsx)(en,{videos:v,isSamsung:!0,locale:d,className:"px-4 md:min-h-0 md:flex-1 md:content-start md:overflow-auto md:px-0"})]}):y?(0,t.jsx)(ei,{className:"px-4 md:px-0"}):(0,t.jsx)(en,{videos:v,className:"px-4 md:absolute md:overflow-auto md:px-0"})})]})]}):null}],268056)},822342,function(e){e.n(e.i(268056))}]);