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