(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(902875),n=e.i(64412),t=e.i(181462),i=e.i(546446),o=e.i(16838),l=e.i(5397),r=e.i(389379),d=e.i(725287),s=e.i(581014),c=e.i(924707),u=e.i(380993),m=e.i(368847);let g=["fluRisk","locationMarker"],x=()=>(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"})]}),p=(0,r.default)(()=>e.A(460988).then(e=>e.FeatureMap),{loadableGenerated:{modules:[636705]},ssr:!1,loading:()=>(0,a.jsx)(x,{})}),h=({location:e,serverLocationDisplayName:n,locationHeading:t,data:i,isLoading:o})=>{let l=(0,s.useTranslations)("ExtendedFluForecast"),r=(0,d.useParams)()?.locale||"en-US",h=e?.displayName||e?.name||e?.city||e?.presentationName||n||"",F=h?l("locationDisplayName",{displayName:h}):l("heading");return(0,a.jsx)(u.Card,{"data-testid":"ExtendedFluForecastModule","aria-label":F,children:(0,a.jsxs)(u.CardContent,{children:[(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsx)(c.LocationTimeHeadingClient,{title:F,location:e,headingLevel:t?.level,presentationName:t?.presentationName,promotePresentationName:t?.ownsHeading,hideLocationMeta:!t?.ownsHeading,hideAffordance:!0}),(0,a.jsx)(m.Text,{variant:"Body.S",color:"secondary",elementType:"p",className:"mt-1",children:l("subHeading")})]}),e&&!o?(0,a.jsx)(p,{location:e,locale:r,layers:g,frameCount:15,className:"h-[250px] rounded-md md:h-[400px]",timeZone:e.ianaTimeZone,frameValues:i}):(0,a.jsx)(x,{})]})})};var F=e.i(247865),v=e.i(381477),j=e.i(738634),y=e.i(349262);let N=({location:e,serverLocationDisplayName:n,locationHeading:t,initializing:r,initialError:s})=>{let{data:c,isLoading:u,error:m}=(e=>{let a=(0,d.useParams)(),n=a?.locale||"en-US",{data:t,error:i,isLoading:o}=(0,v.default)(e?["coldFluForecast",e.geocode,n]:null,([,e,a])=>(0,j.getDailyCognitiveHealthForecast)({geocode:e,language:a,conditionType:"coldAndFlu",duration:y.ForecastDuration.FIFTEEN_DAY}),{revalidateOnFocus:!1,dedupingInterval:6e4});return{data:(0,F.useMemo)(()=>t?.coldAndFlu?.riskLevel??[],[t]),isLoading:o,error:i}})(e),g=r||u,x=s||m,p=(0,i.useAtomValue)(l.showAdminHeaderAtom);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.DebugCollector,{componentName:"ExtendedFluForecast",data:{props:{location:e},state:{initializing:r,isLoading:g,data:c,error:x,componentState:x&&"error"||g&&"loading"||"ready"},performance:{renderCount:void 0}},enabled:p}),(0,a.jsx)(h,{location:e,serverLocationDisplayName:n,locationHeading:t,data:c,isLoading:g})]})},b=({globalPageProps:e,headingLevel:i})=>{let{location:o,isLoading:l,error:r}=(0,n.useLocation)(),d=(0,t.getServerLocationDisplayName)(e),s=(0,t.resolveLocationHeadingContext)(e,i);return(0,a.jsx)(N,{location:o,serverLocationDisplayName:d,locationHeading:s,initializing:l,initialError:r})};e.s(["ExtendedFluForecastBlockClient",0,b,"default",0,b],528188)},507521,function(e){e.n(e.i(528188))}]);