(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,75876,793827,e=>{"use strict";var l=e.i(902875),s=e.i(341669),a=e.i(37429),i=e.i(380993),r=e.i(632137),t=e.i(107072),o=e.i(400493),c=e.i(468965),x=e.i(88133);let n=({className:e})=>(0,l.jsx)(s.default,{skeletonClassName:e,elementType:"div"}),m=()=>(0,l.jsx)(n,{className:"mb-4 block h-7.5 w-80 max-w-full"}),d=({title:e,boldTitle:s,ssrTitle:a})=>e?a?(0,l.jsx)(i.CardHeader,{text:e,headingLevel:"h2",className:s??!0?void 0:"font-normal"}):(0,l.jsx)(m,{}):null,h=({className:e})=>(0,l.jsxs)("div",{className:(0,r.cn)("flex flex-col gap-3",e),children:[(0,l.jsx)(n,{className:"h-3 w-24"}),(0,l.jsx)(n,{className:"h-7 w-4/5"}),(0,l.jsx)(n,{className:"h-4 w-3/5"})]}),u=({count:e,columns:s,density:a,aspect:i,isVertical:o,leadDetailed:c,leadFeatured:x,showItemDividers:m,scrollOnMobile:d})=>{let h=!!d&&s>1;return(0,l.jsx)("div",{className:"@container/grid",children:(0,l.jsx)("div",{className:(0,r.cn)(x&&!o&&t.LEAD_SPANS_ROW,o?(0,r.cn)((0,t.verticalGridVariants)(s),h&&t.VERTICAL_GRID_SCROLLER):(0,r.cn)(h?(0,t.gridScrollerVariants)({columns:s,items:(0,t.clampItemCount)(e),density:a}):"grid",!h&&"gap-x-6 gap-y-4",(0,t.gridVariants)({columns:s,items:(0,t.clampItemCount)(e),density:a})),m&&(o||!h)&&(0,t.gridItemDividerVariants)({columns:s,items:(0,t.clampItemCount)(e),density:a,isVertical:o,isScrolling:h})),children:Array.from({length:e}).map((e,s)=>(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[!(c&&s>0)&&(0,l.jsx)(n,{className:(0,r.cn)(i,"w-full")}),(0,l.jsx)(n,{className:"h-4 w-3/4"}),!(c&&s>0)&&(0,l.jsx)(n,{className:"h-3 w-1/2"})]},s))})})},j=({count:e,isHorizontal:s,aspect:a,hideThumbnails:i,leadDetailed:o,leadFeatured:c,showItemDividers:x,scrollOnMobile:m})=>{let d=!!m&&s;return(0,l.jsx)("div",{className:"@container/grid",children:(0,l.jsx)("div",{className:(0,r.cn)(s?d?t.HORIZONTAL_LIST_SCROLLER:t.HORIZONTAL_LIST_GRID:"flex flex-col gap-4",s&&c&&t.LEAD_SPANS_ROW,!s&&x&&t.STACKED_ITEM_DIVIDER),children:Array.from({length:e}).map((e,c)=>(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[!i&&!(o&&c>0)&&(0,l.jsx)(n,{className:(0,r.cn)(a,"min-w-30",s?t.HORIZONTAL_LIST_THUMB:"w-[50%] max-w-[320px]")}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,l.jsx)(n,{className:"h-4 w-full"}),!(o&&c>0)&&(0,l.jsx)(n,{className:"h-4 w-3/5"})]})]},c))})})},p=({hasSecondary:e})=>(0,l.jsx)("div",{className:(0,r.cn)("@container/hero-item",e&&"mb-6"),children:(0,l.jsxs)("div",{className:"flex flex-col @xl/hero-item:relative",children:[(0,l.jsx)(h,{className:"mb-4 @xl/hero-item:absolute @xl/hero-item:bottom-8 @xl/hero-item:left-8 @xl/hero-item:z-1 @xl/hero-item:mb-0 @xl/hero-item:w-1/2"}),(0,l.jsx)(n,{className:"aspect-[8/5] max-h-[400px] w-full rounded-3xl"})]})}),f=({hasSecondary:e})=>(0,l.jsx)("div",{className:(0,r.cn)("@container/hero-item",e&&"mb-4"),children:(0,l.jsxs)("div",{className:"flex flex-col gap-4 @xl/hero-item:grid @xl/hero-item:grid-cols-3 @xl/hero-item:gap-6",children:[(0,l.jsx)(h,{className:"@xl/hero-item:order-1 @xl/hero-item:col-span-1 @xl/hero-item:justify-center"}),(0,l.jsx)("div",{className:"@xl/hero-item:order-0 @xl/hero-item:col-span-2",children:(0,l.jsx)(n,{className:"aspect-[8/5] w-full rounded-3xl"})})]})}),N=({hasSecondary:e})=>(0,l.jsx)("div",{className:"@container/hero-split",children:(0,l.jsxs)("div",{className:"grid gap-x-6 gap-y-4 @xl/hero-split:grid-cols-[minmax(0,9fr)_minmax(0,16fr)] @xl/hero-split:grid-rows-[1fr_auto]",children:[(0,l.jsxs)("div",{className:"order-1 flex min-w-0 flex-col gap-4 @xl/hero-split:col-start-1 @xl/hero-split:row-start-1",children:[(0,l.jsx)(n,{className:"h-6 w-16 rounded"}),(0,l.jsx)(n,{className:"h-7 w-full"}),(0,l.jsx)(n,{className:"h-7 w-4/5"}),(0,l.jsx)(n,{className:"h-4 w-full"}),(0,l.jsx)(n,{className:"h-4 w-3/5"})]}),e&&(0,l.jsxs)("div",{className:"border-border order-3 flex min-w-0 flex-col gap-2 border-t py-3 @xl/hero-split:col-start-1 @xl/hero-split:row-start-2",children:[(0,l.jsx)(n,{className:"h-5 w-3/4"}),(0,l.jsx)(n,{className:"h-4 w-24"})]}),(0,l.jsx)("div",{className:"order-2 @xl/hero-split:col-start-2 @xl/hero-split:row-span-2 @xl/hero-split:row-start-1 @xl/hero-split:h-full",children:(0,l.jsx)(n,{className:"aspect-[16/9] w-full rounded-2xl @xl/hero-split:h-full"})})]})}),g=()=>(0,l.jsx)("div",{className:"@container/liveblog",children:(0,l.jsxs)("div",{className:"flex flex-col gap-6 @[800px]/liveblog:flex-row @[800px]/liveblog:items-stretch",children:[(0,l.jsx)("div",{className:"@[800px]/liveblog:w-1/2 @[1280px]/liveblog:flex-1",children:(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("div",{className:"mb-4 flex items-center gap-3",children:[(0,l.jsx)(n,{className:"h-4 w-8"}),(0,l.jsx)(n,{className:"h-4 w-32"})]}),(0,l.jsx)(n,{className:"mb-2 block h-6 w-full"}),(0,l.jsx)(n,{className:"mb-6 block h-6 w-3/4"}),(0,l.jsx)(n,{className:"mb-6 block h-4 w-5/6"}),(0,l.jsx)(c.LiveblogEntriesSkeleton,{})]})}),(0,l.jsx)("div",{className:"hidden @[800px]/liveblog:block @[800px]/liveblog:w-1/2 @[1280px]/liveblog:max-w-[640px] @[1280px]/liveblog:shrink-0",children:(0,l.jsx)(n,{className:"aspect-[8/5] w-full rounded-2xl"})})]})}),w=()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n,{className:"size-10 shrink-0 rounded-full bg-white/25"}),(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(n,{className:"h-4 w-32 bg-white/25"}),(0,l.jsx)(n,{className:"h-3 w-20 bg-white/20"})]})]}),v=()=>(0,l.jsx)("div",{className:"@container/hero-item",children:(0,l.jsxs)("div",{className:(0,r.cn)("flex flex-col gap-4 rounded-2xl bg-black @xl/hero-item:relative @xl/hero-item:block @xl/hero-item:min-h-[520px] @xl/hero-item:rounded-none","@max-xl/hero-item:-m-4 @max-xl/hero-item:rounded-none @max-xl/hero-item:px-4 @max-xl/hero-item:pt-6 @max-xl/hero-item:pb-9"),children:[(0,l.jsxs)("div",{className:"flex w-full flex-col gap-6 @xl/hero-item:absolute @xl/hero-item:inset-0 @xl/hero-item:z-1 @xl/hero-item:justify-between @xl/hero-item:py-12 @xl/hero-item:pr-8",children:[(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[(0,l.jsx)(n,{className:"h-5 w-24 bg-white/25 @xl/hero-item:h-6"}),(0,l.jsx)("div",{className:"hidden shrink-0 items-center gap-4 border-l border-[#679CED] pl-4 @xl/hero-item:flex",children:(0,l.jsx)(w,{})})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2 @xl/hero-item:w-1/2",children:[(0,l.jsx)(n,{className:"h-7 w-4/5 bg-white/25 @xl/hero-item:h-12"}),(0,l.jsx)(n,{className:"h-4 w-full bg-white/20 @xl/hero-item:h-5"}),(0,l.jsx)(n,{className:"h-4 w-2/3 bg-white/20 @xl/hero-item:h-5"}),(0,l.jsx)("div",{className:"mt-4 hidden @xl/hero-item:block",children:(0,l.jsx)(n,{className:"h-11 w-32 rounded-lg bg-white/30"})})]})]}),(0,l.jsx)("div",{className:"relative w-full overflow-hidden rounded-2xl @xl/hero-item:absolute @xl/hero-item:inset-y-0 @xl/hero-item:left-0 @xl/hero-item:w-[calc(100%+1rem)] @xl/hero-item:rounded-none",children:(0,l.jsx)(n,{className:"aspect-[8/5] w-full rounded-none bg-white/10 @xl/hero-item:aspect-auto @xl/hero-item:h-full"})}),(0,l.jsx)("div",{className:"flex items-center gap-4 border-l border-[#679CED] pl-4 @xl/hero-item:hidden",children:(0,l.jsx)(w,{})})]})}),b=e=>{var s;let{count:i,columns:r,density:t,template:c,title:n,hideTitle:m,hideThumbnails:h,ssrTitle:w,boldTitle:b}=e,S=m?null:(0,l.jsx)(d,{title:n,boldTitle:b,ssrTitle:w}),_=t??"comfortable",{orientation:C,leadVariant:y,showItemDividers:I,scrollOnMobile:T}=(0,x.resolveLayoutConfig)(e),k="detailed"===y,A="featured"===y,L=(s=e.aspectRatio)&&"auto"!==s?a.ASPECT_RATIO_CLASSES[s]??"aspect-square":"aspect-square";if("full-bleed"===c)return(0,l.jsx)(v,{});if("hero-split"===c)return(0,l.jsx)(N,{hasSecondary:i>1});if("hero-live-blog"===c)return(0,l.jsx)(g,{});if((0,o.isHeroFamilyShape)(c)||(0,o.isSingleItemShape)(c)){let e=Math.max(i-1,0),s=e>0;return(0,l.jsxs)("div",{children:[S,"hero-sidebar"===c?(0,l.jsx)(f,{hasSecondary:s}):(0,l.jsx)(p,{hasSecondary:s}),s&&(0,l.jsx)(u,{count:e,columns:r,density:_,aspect:L})]})}return(0,l.jsxs)("div",{children:[S,"list"===c?(0,l.jsx)(j,{count:i,isHorizontal:"horizontal"===C,aspect:L,hideThumbnails:h,leadDetailed:k,leadFeatured:A,showItemDividers:I,scrollOnMobile:T}):(0,l.jsx)(u,{count:i,columns:r,density:_,aspect:L,isVertical:"vertical"===C,leadDetailed:k,leadFeatured:A,showItemDividers:I,scrollOnMobile:T})]})};e.s(["ContentMediaSkeleton",0,e=>"filled"===e.cardVariant&&"full-bleed"!==e.template?(0,l.jsx)("div",{className:(0,i.cardVariants)({variant:"filled"}),children:(0,l.jsx)(b,{...e})}):(0,l.jsx)(b,{...e})],75876);var S=e.i(381477),_=e.i(546446),C=e.i(97506);e.i(304158);var y=e.i(485737),I=e.i(695881),T=e.i(186994);let k=(0,I.createLogger)("useContentQueryMedia");e.s(["useContentQueryMedia",0,function({contentQueryId:e,channel:l,page:s,startIndex:a=0,limit:i,language:r="en-US",transformOptions:t,relatedSeed:o}){let c=(0,_.useAtomValue)(y.geoipCountry)||void 0,x=o?.id,n=o?.collection,{data:m,isLoading:d,error:h}=(0,S.default)(e?["content-query-media",e,l,c,r,a,i,x,n]:null,([,e,l,s,a,i,r,t,o])=>(0,C.getContentQueryMedia)({queryId:e,channel:l||"weather-com-web",territory:s,language:a,startIndex:i,limit:r,relatedSeed:t&&o?{id:t,collection:o}:void 0}),{revalidateOnFocus:!1,keepPreviousData:!0,onError:l=>k.error("content query media fetch failed",{id:e,error:l})});return{items:!e||h?[]:m?(0,T.transformContentItems)(m,{...t,channel:l,page:s}):null,isLoading:d,error:h}}],793827)},101486,e=>{"use strict";var l=e.i(902875),s=e.i(30917),a=e.i(75876),i=e.i(793827);let r=({contentQueryId:e,channel:r,page:t,startIndex:o,fetchLimit:c,language:x,showDescription:n,displayPartnerLogo:m,hideDuration:d,gridColumns:h,template:u,relatedSeed:j,ssrTitle:p,...f})=>{let{items:N,isLoading:g}=(0,i.useContentQueryMedia)({contentQueryId:e,channel:r,page:t,startIndex:o,limit:c,language:x,transformOptions:{showDescription:n,displayPartnerLogo:m,hideDuration:d,includeAuthor:"full-bleed"===u},relatedSeed:j}),w=+(h||3);return g||!N?(0,l.jsx)(a.ContentMediaSkeleton,{...f,count:c,columns:w,template:u,ssrTitle:p}):(0,l.jsx)(s.ContentMedia,{...f,showDescription:n,gridColumns:h,template:u,channel:r,language:x,items:N})};e.s(["StaticContentMedia",0,r,"default",0,r])},312120,function(e){e.n(e.i(101486))}]);