PageSourceSearch

https://www.silverandfit.com/react/assets/index.esm-BblDNzdE.js

js silverandfit.com collected 2026-09-25 20:07:28 UTC 2,703 bytes, 1 lines download raw bytes

1import{r as i,j as e,J as x,T as l,p as m,Q as n,aw as h,ax as p,B as u}from"./index-BctgDwP4.js";import{F as f}from"./FormControl-fCK_nXY9.js";import{I as j}from"./InputLabel-CDwc4GYC.js";import{S as y}from"./Select-BJg7T-tY.js";import{C as w}from"./CardActions-wU1Jdoat.js";import"./utils-iop7lDec.js";import"./useFormControl-CEQJi25V.js";import"./InputBase-CFe7Uu-k.js";import"./useControlled-Cn2jxh4o.js";const g=({years:t,selectedYear:r,onChange:o})=>{const a=i.useCallback(s=>{o(Number(s.target.value))},[o]);return e.jsxs(f,{sx:{minWidth:160,mb:4},children:[e.jsx(j,{id:"newsletter-year-label",children:"Year"}),e.jsx(y,{labelId:"newsletter-year-label",id:"newsletter-year-select",value:r,label:"Year",onChange:a,children:t.map(s=>e.jsx(m,{value:s,children:s},s))})]})},b=({newsletter:t})=>{const{title:r,summary:o,imageSource:a,link:s}=t;return e.jsxs(h,{component:"article",sx:{display:"flex",flexDirection:{xs:"column",md:"row"},height:"100%",overflow:"hidden",alignItems:"stretch"},variant:"outlined",children:[e.jsx(n,{sx:{width:{xs:"100%",md:240},flexShrink:0},children:e.jsx(n,{component:"img",src:a,alt:`Cover image for ${r}`,sx:{display:"block",width:{xs:"82%",sm:"86%",md:"100%"},maxWidth:{xs:320,sm:360,md:"100%"},mx:"auto"}})}),e.jsxs(n,{sx:{display:"flex",flexDirection:"column",flexGrow:1},children:[e.jsxs(p,{sx:{flexGrow:1},children:[e.jsx(l,{variant:"h6",component:"h2",gutterBottom:!0,children:r}),e.jsx(l,{variant:"body2",color:"text.secondary",children:o})]}),e.jsx(w,{sx:{pt:0},children:e.jsx(u,{component:"a",href:s,target:"_blank",rel:"noopener noreferrer",size:"small",variant:"text",children:"View PDF"})})]})]})},v=({newsletters:t})=>t.length===0?e.jsx(l,{color:"text.secondary",children:"No newsletters found for this year."}):e.jsx(n,{component:"ul",sx:{display:"flex",flexWrap:"wrap",gap:3,listStyle:"none",m:0,p:0},children:t.map(r=>e.jsx(n,{component:"li",sx:{width:{xs:"100%",sm:"100%",md:"calc(50% - 12px)"}},children:e.jsx(b,{newsletter:r})},r.title))}),C=t=>Array.from(new Set(t.map(r=>r.year))).sort((r,o)=>o-r),W=({newsletters:t})=>{const r=i.useMemo(()=>C(t),[t]),[o,a]=i.useState(r[0]??0),s=r.includes(o)?o:r[0]??0,c=t.filter(d=>d.year===s);return e.jsxs(x,{maxWidth:"lg",sx:{py:4},children:[e.jsx(l,{variant:"h4",component:"h1",gutterBottom:!0,children:"Newsletters"}),r.length>0&&e.jsx(g,{years:r,selectedYear:s,onChange:a}),e.jsx(v,{newsletters:c}),e.jsxs(l,{variant:"body2",sx:{mt:4,color:"text.secondary"},children:["To view PDF files you may need Adobe Reader or a compatible PDF viewer."," ",e.jsx("a",{href:"https://get.adobe.com/reader/",target:"_blank",rel:"noopener noreferrer",children:"Download Adobe Reader"}),"."]})]})};export{W 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.