(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,550008,(e,a,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPollenDaypart=i;let l=e.r(65755),A=e.r(678651),r=e.r(414655);async function i(e){let a=(0,l.getPollenDaypartUrlConfig)(e),t=(0,A.urlFrom)(a),i=await fetch(t,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return await (0,r.handleFetchResponse)(i)}},65755,(e,a,t)=>{"use strict";e.i(288906),Object.defineProperty(t,"__esModule",{value:!0}),t.getPollenDaypartUrlConfig=function({geocode:e,language:a,duration:t="3day"}){return{host:"api.weather.com",protocol:"https",pathname:`/v2/indices/pollen/daypart/${t}`,query:{geocode:e,format:"json",language:a,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},749097,e=>{"use strict";var a=e.i(902875),t=e.i(64412),l=e.i(181462),A=e.i(546446),r=e.i(16838),i=e.i(5397),n=e.i(581014),s=e.i(380993),o=e.i(37429),d=e.i(924707);let c={0:"categoryNone",1:"categoryLow",2:"categoryModerate",3:"categoryHigh",4:"categoryVeryHigh"},g={0:"#cecece",1:"#a5eb02",2:"#ebbb02",3:"#f27200",4:"#ff0000"},h=["tree","grass","ragweed"],m={src:e.i(32223).default,width:75,height:68,blurWidth:8,blurHeight:7,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAYAAAA1WQxeAAAA8klEQVR42gHnABj/AAAAAAAAAAAAAQEBASYlJhhcXFw8bWxtUVxbXEkMDAwGACUlJhpMS008REREL8DAwbzg3+Hu393h9cXDyuJGRUk7AC8uMS1tanNwnZ2fjt/d4f7Jxs3/xcLM/8vG0/1+eoWSAAYGBgMhISMKW1lcSL+8xeeXk5//nZin/52Yqf+Ef4/QAICAgWu+vcCymZedknJveH2Uj5/zmZOl/Xt1ht5DQEllALi2vL2yr7n+p6Ow4zQyNzI/PUVcS0hRbCQjJy8DAwQDAENBSUWLhZbWa2Z0phMSFBYAAAAAAQEBAAAAAAAAAAAA2ChfHF6aYPMAAAAASUVORK5CYII="},u={src:e.i(777507).default,width:69,height:75,blurWidth:7,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAA80lEQVR42gHoABf/AAAAAAACAgIAAQEBABYWFgyurbGjdXF7kAYGBwYAJycnGn18fm9qaWxpLCstIZmWnqllYWyHBgUGBQCtra6c3dvh+8G9yflwbXaHXFtdUi8vMSoCAgMCALe2u7vAvcj/p6Gy/7m2wPni4eT0vLu/0EZER0oAQ0FFPY+Kl8CppLL8zcrS/9jW3v/Sz9n/nJeizQACAgIBNzY5O7m1v+7Bvcn/urXD/7Wvv/+alaXtAAAAAAAVFRYUkY6Zw6ynt/+moLH/l5Gj/Ghjca0AAAAAAAECAQE0NDhFgHqKzYV/kOdZVWKgGBYaJEOMaMLv91pEAAAAAElFTkSuQmCC"},p={src:e.i(26411).default,width:85,height:81,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAABE0lEQVR42gEIAff+ABEREQx3d3dn09PUz9TS1tN9e392ExITDQAAAAAAAAAAAHl5eW7Z2NrwwcDE/8C9xP+1srvzXFpgYAQEBAIAAAAAAMrJzNHFw8n/t7S8/7Swu/+qpbL/k46byBcWGBMAAAAAANPR2OC4tb7/wLzI/7OuvP+1sb7/qaWy72hlb3YaGRwTAKOgqKyzr7z8tbDA/7ezwf/OzNL/sq65/6Sfr/h6doOSACopKyKUkJyosKq787+7x/rGxcr/uLS//6mktP+blabWAAEBAQAXFhgRPz5DQnV0eG/My8/subXA/7Cru/2LhpSkAAAAAAAAAAAAAAAAAA8PDwiLio1vvbrEz5KMm50xMDQn7uqHQIyx9boAAAAASUVORK5CYII="},b={tree:{src:m.src,width:105,height:95},grass:{src:u.src,width:97,height:105},ragweed:{src:p.src,width:112,height:106}},x=({data:e,location:t,serverLocationDisplayName:l,locationHeading:A,isLoading:r=!1,hasError:i=!1})=>{let m=(0,n.useTranslations)("PollenBreakdown"),u=t?.displayName||t?.name||t?.city||t?.presentationName||l||"",p=u?m("locationDisplayName",{displayName:u}):m("breakdownTitle"),x=!r&&!i&&e.length>0;return(0,a.jsxs)(s.Card,{"data-testid":"PollenBreakdownModule","aria-label":p,"aria-busy":r||void 0,children:[(0,a.jsx)(s.CardHeader,{children:(0,a.jsx)(d.LocationTimeHeadingClient,{title:p,location:t,headingLevel:A?.level,presentationName:A?.presentationName,promotePresentationName:A?.ownsHeading,hideLocationMeta:!A?.ownsHeading,hideAffordance:!0,className:"pb-4"})}),(0,a.jsxs)(s.CardContent,{children:[r&&(0,a.jsx)(w,{}),x&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"mb-4 text-base text-gray-600",children:m("breakdownExplanation")}),(0,a.jsx)("div",{className:"grid grid-cols-1 gap-8 md:grid-cols-3 md:gap-y-0",children:h.map(t=>(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(o.default,{src:b[t].src,alt:"",width:b[t].width,height:b[t].height,style:{width:b[t].width,height:b[t].height},className:"mb-3 self-start object-contain","aria-hidden":!0,rounded:!1}),(0,a.jsx)("h3",{className:"mb-3 text-lg font-semibold",children:m(`${t}Pollen`)}),(0,a.jsx)("ul",{className:"space-y-3 text-base",children:e.map(e=>{let l=e[t],A=c[l],r=g[l]??"#cecece",i=A?m(A):"";return(0,a.jsxs)("li",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"inline-block h-3 w-3 shrink-0 rounded-full",style:{backgroundColor:r},"aria-hidden":"true"}),(0,a.jsxs)("span",{children:[e.label,": ",(0,a.jsx)("strong",{children:i})]})]},`${t}-${e.label}`)})})]},t))})]})]})]})},w=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mb-4 h-5 w-3/4 animate-pulse rounded bg-gray-200"}),(0,a.jsx)("div",{className:"grid grid-cols-1 gap-8 md:grid-cols-3 md:gap-y-0",children:h.map(e=>(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("div",{className:"mb-3 h-24 w-24 animate-pulse rounded-full bg-gray-200"}),(0,a.jsx)("div",{className:"mb-3 h-5 w-24 animate-pulse rounded bg-gray-200"}),(0,a.jsx)("ul",{className:"space-y-3 text-left text-base",children:Array.from({length:3}).map((e,t)=>(0,a.jsxs)("li",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"inline-block h-3 w-3 shrink-0 rounded-full bg-gray-200"}),(0,a.jsx)("span",{className:"inline-block h-5 w-32 animate-pulse rounded bg-gray-200"})]},t))})]},e))})]});var y=e.i(381477),f=e.i(725287),j=e.i(550008);let v=({location:e,serverLocationDisplayName:t,locationHeading:l})=>{let{data:n,isLoading:s,error:o}=(e=>{let a=(0,f.useParams)(),t=a?.locale,{data:l,error:A,isLoading:r}=(0,y.default)(e?["pollenBreakdown",e.geocode,t]:null,([e,a,t])=>(0,j.getPollenDaypart)({geocode:a,language:t}),{revalidateOnFocus:!1,dedupingInterval:6e4});return{data:l?function(e){let a,t=e?.pollenForecast12hour;if(!t)return[];let{dayInd:l,daypartName:A,grassPollenIndex:r,treePollenIndex:i,ragweedPollenIndex:n}=t;if(!l||!A)return[];let s=[0,a="D"===(Array.isArray(l)?l[0]:l)?2:1,a+2],o=[];for(let e of s){let a=A?.[e];a&&o.push({label:a,tree:i?.[e]??0,grass:r?.[e]??0,ragweed:n?.[e]??0})}return o}(l):[],isLoading:r,error:A}})(e),d=(0,A.useAtomValue)(i.showAdminHeaderAtom);return l?.ownsHeading||!o&&n.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.DebugCollector,{componentName:"PollenBreakdown",data:{props:{location:e},state:{effectiveLocation:e,isLoading:s,data:n,error:o,componentState:o&&"error"||s&&"loading"||"ready"}},enabled:d}),(0,a.jsx)(x,{data:n,location:e,serverLocationDisplayName:t,locationHeading:l,isLoading:s,hasError:!!o})]}):null},N=({globalPageProps:e,headingLevel:A})=>{let{location:r}=(0,t.useLocation)(),i=(0,l.getServerLocationDisplayName)(e),n=(0,l.resolveLocationHeadingContext)(e,A);return(0,a.jsx)(v,{location:r,serverLocationDisplayName:i,locationHeading:n})};e.s(["PollenBreakdownBlockClient",0,N,"default",0,N],749097)},69917,function(e){e.n(e.i(749097))},777507,e=>{e.q("/_next/static/immutable/media/grass_particles.2kk4omw1mdumm.png")},26411,e=>{e.q("/_next/static/immutable/media/ragweed_particles.0ktv08xx0h-1z.png")},32223,e=>{e.q("/_next/static/immutable/media/tree_particles.42kzt8icwp5p9.png")}]);