1import{aW as b,k as N,d as L,aX as _,aY as T,a_ as y,aZ as H,aw as f,b0 as v,b1 as I,j as e,aG as R,aE as P,aH as $}from"./index-DuYcMUNu.js";import{s as w,a as D,b as C}from"./ProduceColorsAside-Bj181SOK.js";import{H as B,a as W}from"./InSeasonBlurbAside-CdKoLMe0.js";import{L as k}from"./LetterIndexColumns-BeRfoPOZ.js";import{F as A}from"./FoodsSidebar-DcJWeu7C.js";import"./ArticlesAside-DPlRSpoO.js";import"./GlossaryTermsAside-B6Euv8Z6.js";const E=[t=>t<"D",t=>t>="D"&&t<"P",t=>t>="P"&&t<"S",t=>t>="S"];function Y(){b();const{name:t}=N(),a=L(),{getRandomArticles:c}=_(),{getDistinctFoodColors:d}=T(),{getInSeasonByName:m}=y(),{getRandomNutritionGlossaries:h}=H(),{getSeasonalRecipes:g}=f(),{getFoodSections:p,getFoodsByName:u,getFoodsThatStartWith:F}=v(),{getFoodsTipByName:S}=I(),x=new Date().toLocaleDateString("en-US",{month:"long"}),n=w(t),s=u(n),i=S(n),l=t===void 0,j=!l,r=()=>a("/health_wellness/foods");return e.jsxs(D,{sidebar:e.jsx(A,{inSeasonBlurb:m(x)?.blurb,articles:c(5),recipes:g(),colors:d(),glossaryTerms:h(10),navigate:a}),children:[l&&e.jsx(k,{title:"Foods",columnFilters:E,sections:p(),getItemsForSection:F,getItemKey:o=>`foods-item-${o.id}`,renderSectionHeading:o=>e.jsx("h3",{className:"glossary-list-section-subheading text-theme-header",children:o}),renderItem:o=>e.jsx("a",{onClick:()=>a(C(o.title)),title:o.content,className:"page-color-link text-decoration-none",children:R(o.title)})}),j&&e.jsxs("div",{className:"col-12 text-start",children:[e.jsx(B,{parentLabel:"Foods",onParentClick:r,currentLabel:s?.title}),e.jsx("img",{className:"article-title-image pb-3",src:`https://files.mschost.net/health_wellness/images/produce/${s?.id}.jpg`,alt:"","aria-hidden":!0,role:"presentation"}),e.jsxs("article",{className:`health-wellness-article ${s?.id}`,role:"contentinfo","aria-labelledby":`article_${s?.id}_title`,children:[e.jsx(P,{title:s?.title??null,id:`article_${s?.id}_title`}),e.jsx("p",{dangerouslySetInnerHTML:{__html:`${s?.content}`}}),i!=null&&i?.trivia!=""&&e.jsxs("div",{children:[e.jsx($,{title:"Trivia"}),e.jsx("p",{dangerouslySetInnerHTML:{__html:`${i?.trivia.replaceAll("|","</p><p>")}`}})]})]}),e.jsx(W,{label:"Return To Foods",onReturn:r})]})]})}export{Y as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.