(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),o=e.i(5397),l=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"})]}),b=(0,l.default)(()=>e.A(460988).then(e=>e.FeatureMap),{loadableGenerated:{modules:[636705]},ssr:!1,loading:()=>(0,a.jsx)(g,{})}),p=({location:e,serverLocationDisplayName:t,locationHeading:i,data:n,isLoading:s})=>{let o=(0,d.useTranslations)("ExtendedFluForecast"),l=(0,r.useParams)()?.locale||"en-US",p=e?.displayName||e?.name||e?.city||e?.presentationName||t||"",x=p?o("locationDisplayName",{displayName:p}):o("heading");return(0,a.jsx)(m.Card,{"data-testid":"ExtendedFluForecastModule","aria-label":x,children:(0,a.jsxs)(m.CardContent,{children:[(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsx)(c.LocationTimeHeadingClient,{title:x,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:o("subHeading")})]}),e&&!s?(0,a.jsx)(b,{location:e,locale:l,layers:h,frameCount:15,className:"h-[250px] rounded-md md:h-[400px]",timeZone:e.ianaTimeZone,frameValues:n}):(0,a.jsx)(g,{})]})})};var x=e.i(247865),j=e.i(381477),v=e.i(738634),k=e.i(349262);let y=({location:e,serverLocationDisplayName:t,locationHeading:i,initializing:l,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:k.ForecastDuration.FIFTEEN_DAY}),{revalidateOnFocus:!1,dedupingInterval:6e4});return{data:(0,x.useMemo)(()=>i?.coldAndFlu?.riskLevel??[],[i]),isLoading:s,error:n}})(e),h=l||m,g=d||u,b=(0,n.useAtomValue)(o.showAdminHeaderAtom);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.DebugCollector,{componentName:"ExtendedFluForecast",data:{props:{location:e},state:{initializing:l,isLoading:h,data:c,error:g,componentState:g&&"error"||h&&"loading"||"ready"},performance:{renderCount:void 0}},enabled:b}),(0,a.jsx)(p,{location:e,serverLocationDisplayName:t,locationHeading:i,data:c,isLoading:h})]})},F=({globalPageProps:e,headingLevel:n})=>{let{location:s,isLoading:o,error:l}=(0,t.useLocation)(),r=(0,i.getServerLocationDisplayName)(e),d=(0,i.resolveLocationHeadingContext)(e,n);return(0,a.jsx)(y,{location:s,serverLocationDisplayName:r,locationHeading:d,initializing:o,initialError:l})};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/174b7qb_72k3n.js","static/immutable/chunks/3nl951d1c2p1k.js","static/immutable/chunks/3mdo8ihhn52yv.js"].map(a=>e.l(a))).then(()=>a(636705)))}]);