(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,528188,e=>{"use strict";var a=e.i(458201),i=e.i(64412),n=e.i(181462),t=e.i(282446),o=e.i(16838),l=e.i(5397),r=e.i(289818),d=e.i(935251),s=e.i(789422),c=e.i(924707),u=e.i(380993),m=e.i(368847);let p=["fluRisk","locationMarker"],g=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{"aria-hidden":"true",className:"h-[250px] w-full animate-pulse rounded-md bg-gray-100 md:h-[400px]"}),(0,a.jsx)("div",{"aria-hidden":"true",className:"mt-4 h-[70px] w-full animate-pulse rounded-md bg-gray-100"})]}),x=(0,r.default)(()=>e.A(460988).then(e=>e.FeatureMap),{loadableGenerated:{modules:[636705]},ssr:!1,loading:()=>(0,a.jsx)(g,{})}),h=({location:e,serverLocationDisplayName:i,locationHeading:n,data:t,isLoading:o})=>{let l=(0,s.r)("ExtendedFluForecast"),r=(0,d.useParams)()?.locale||"en-US",h=e?.displayName||e?.name||e?.city||e?.presentationName||i||"",F=h?l("locationDisplayName",{displayName:h}):l("heading");return(0,a.jsx)(u.N,{"data-testid":"ExtendedFluForecastModule","aria-label":F,children:(0,a.jsxs)(u.O,{children:[(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsx)(c.f,{title:F,location:e,headingLevel:n?.level,presentationName:n?.presentationName,promotePresentationName:n?.ownsHeading,hideLocationMeta:!n?.ownsHeading,hideAffordance:!0}),(0,a.jsx)(m.p,{variant:"Body.S",color:"secondary",elementType:"p",className:"mt-1",children:l("subHeading")})]}),e&&!o?(0,a.jsx)(x,{location:e,locale:r,layers:p,frameCount:15,className:"h-[250px] rounded-md md:h-[400px]",timeZone:e.ianaTimeZone,frameValues:t}):(0,a.jsx)(g,{})]})})};var F=e.i(538167),f=e.i(794120),j=e.i(738634),v=e.i(349262);let y=({location:e,serverLocationDisplayName:i,locationHeading:n,initializing:r,initialError:s})=>{let{data:c,isLoading:u,error:m}=(e=>{let a=(0,d.useParams)(),i=a?.locale||"en-US",{data:n,error:t,isLoading:o}=(0,f.U)(e?["coldFluForecast",e.geocode,i]:null,([,e,a])=>(0,j.getDailyCognitiveHealthForecast)({geocode:e,language:a,conditionType:"coldAndFlu",duration:v.ForecastDuration.FIFTEEN_DAY}),{revalidateOnFocus:!1,dedupingInterval:6e4});return{data:(0,F.useMemo)(()=>n?.coldAndFlu?.riskLevel??[],[n]),isLoading:o,error:t}})(e),p=r||u,g=s||m,x=(0,t.y)(l.f);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.f,{componentName:"ExtendedFluForecast",data:{props:{location:e},state:{initializing:r,isLoading:p,data:c,error:g,componentState:g&&"error"||p&&"loading"||"ready"},performance:{renderCount:void 0}},enabled:x}),(0,a.jsx)(h,{location:e,serverLocationDisplayName:i,locationHeading:n,data:c,isLoading:p})]})},N=({globalPageProps:e,headingLevel:t})=>{let{location:o,isLoading:l,error:r}=(0,i.f)(),d=(0,n.K)(e),s=(0,n.Z)(e,t);return(0,a.jsx)(y,{location:o,serverLocationDisplayName:d,locationHeading:s,initializing:l,initialError:r})};e.s(["ExtendedFluForecastBlockClient",0,N,"default",0,N],528188)},507521,function(e){e.n(e.i(528188))}]);