PageSourceSearch

https://marathonguide.com/_next/static/chunks/pages/featured-running-articles-9b46fbcbae76e2c3.js

js marathonguide.com collected 2026-09-24 17:57:41 UTC 14,184 bytes, 47 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2716,9029,1367,2930,2948],{70717:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/featured-running-articles",function(){return n(7456)}])},87851:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(85893);n(67294);var a=n(25675),i=n.n(a),s=n(27484),o=n.n(s),l=n(9729),d=n(96788),c=n(41664),p=n.n(c),u=n(16323),x=n(48522);let g={wrapper:e=>({paddingTop:e?"16px":"0",borderTop:e?`1px solid ${u.O.blueGray100}`:"0",display:"flex",flexDirection:"column",gap:"16px"}),title:{...x.T.postTitle},text:{...x.T.smallText},imageWrapper:{display:"flex",alignItems:"center",justifyContent:"center",img:{display:"block",objectFit:"contain",width:"100%"}},tagList:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap","& > *":{fontWeight:700,fontSize:"12px",lineHeight:"16px",padding:"4px 8px",borderRadius:"4px","&.tag-item":{color:u.O.black,background:u.O.backgroundLight}}}};var m=n(12595),f=n(91609),h=e=>{let{postData:t,showTag:n=!1}=e,{title:a,excerpt:s="",slug:c,date:u,featuredImage:x}=t,h=o()(u).format("MMM D, YYYY"),w=(0,m.a)(a),b=(0,f.j)(x?.node?.mediaDetails?.sizes);return(0,r.jsxs)(l.Z,{sx:g.wrapper(!x),children:[b&&(0,r.jsx)(l.Z,{component:p(),href:c,prefetch:!1,sx:g.imageWrapper,"aria-label":w,children:(0,r.jsx)(i(),{src:b.sourceUrl,width:b.width,height:b.height,alt:w})}),(0,r.jsx)(l.Z,{component:p(),href:c,prefetch:!1,sx:g.title,children:w}),(0,r.jsx)(l.Z,{component:p(),href:c,prefetch:!1,sx:g.text,children:function(e,t){if(!e)return"";let n=(0,m.a)(e.replace(/<[^>]+>/g,"").trim());if(n.length<=165)return n;let r=n.slice(0,166),a=r.lastIndexOf(" ");return r.slice(0,a>0?a:165)+"..."}(s,165)}),n?(0,r.jsx)(l.Z,{sx:g.tagList,children:t?.tags?.nodes.map((e,t)=>r.jsx(l.Z,{className:"tag-item",children:m.a(e.name)},t))}):null,(0,r.jsx)(d.Z,{sx:g.text,children:h})]})}},69029:function(e,t,n){"use strict";n.d(t,{o:function(){return a}});var r=n(16323);let a={wrapper:{display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:{xs:"center",md:"flex-start"},alignSelf:"stretch",gap:{xs:"16px",md:"40px"},padding:{xs:"24px",lg:"40px 40px"},background:r.O.backgroundAccent,borderRadius:"16px"},leftContent:{display:"flex",flexDirection:"column",gap:{xs:"16px",md:"24px"},flex:{xs:"1",md:"1.5"},width:"100%"},rightContent:{display:"flex",flexDirection:"column",flex:{xs:"1",md:"1"},width:"100%",alignItems:{xs:"center",md:"flex-end"}},wrapperForFooter:{padding:"20px 0",background:r.O.backgroundAccent},inner:{display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:"center",justifyContent:"center",gap:{xs:"16px",md:"40px"}},title:{color:"#fff",textAlign:{xs:"center",md:"left"}},text:{color:"#fff",textAlign:{xs:"center",md:"left"}}}},51367:function(e,t,n){"use strict";n.r(t);var r=n(85893),a=n(67294),i=n(9729),s=n(96788),o=n(69029),l=n(78722);t.default=()=>{let[e,t]=a.useState(!1);return(0,r.jsx)(i.Z,{sx:o.o.wrapper,children:e?(0,r.jsxs)(i.Z,{sx:o.o.leftContent,children:[(0,r.jsx)(s.Z,{className:"!text-3xl !font-bold",sx:o.o.title,children:"Thanks for subscribing to our newsletter."}),(0,r.jsx)(s.Z,{sx:o.o.text,children:"Get ready for the latest running tips and inspiration!"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.Z,{sx:o.o.leftContent,children:[(0,r.jsx)(s.Z,{className:"!text-3xl !font-bold",sx:o.o.title,children:"Subscribe to MarathonGuide Newsletter!"}),(0,r.jsx)(s.Z,{sx:o.o.text,children:"Get a calendar of upcoming races across the US and Canada, the latest results as they come in, and a roundup of the most interesting stories and events in the marathon world."})]}),(0,r.jsx)(i.Z,{sx:o.o.rightContent,children:(0,r.jsx)(l.Z,{setIsSubmitted:t})})]})})}},77144:function(e,t,n){"use strict";n.d(t,{r:function(){return s}});var r=n(16323),a=n(48522);let i={display:"flex",alignItems:"center",gap:"10px",marginBottom:{xs:"16px",md:"32px"},paddingBottom:"10px",borderBottom:`1px solid ${r.O.strokeLight}`,"&::before":{content:'""',flexShrink:0,width:"3px",height:"16px",borderRadius:"2px",backgroundColor:r.O.backgroundAccent}},s={widgetWrapper:{display:"flex",flexDirection:"column"},widgetHeader:i,widgetContent:{display:"flex",flexDirection:"column",gap:{xs:"32px"},"& a.widget-load-more-button":{...a.T.secondaryButton,justifyContent:{xs:"center",sm:"flex-start"},width:{xs:"100%",sm:"auto"},textTransform:{xs:"uppercase",sm:"none"}}},title:{fontSize:{xs:"13px"},lineHeight:{xs:"24px"},fontWeight:600,letterSpacing:"0.06em",color:r.O.blueGray600,textTransform:"uppercase"},liveDot:{display:"inline-block",flexShrink:0,width:"7px",height:"7px",borderRadius:"50%",backgroundColor:r.O.ember,boxShadow:`0 0 0 0 ${r.O.ember}`,animation:"widget-live-pulse 2s ease-out infinite","@media (prefers-reduced-motion: reduce)":{animation:"none"},"@keyframes widget-live-pulse":{"0%":{boxShadow:"0 0 0 0 rgba(255,90,52,0.55)"},"70%":{boxShadow:"0 0 0 6px rgba(255,90,52,0)"},"100%":{boxShadow:"0 0 0 0 rgba(255,90,52,0)"}}}}},73167:function(e,t,n){"use strict";var r=n(85893);n(67294);var a=n(9729),i=n(96788),s=n(77144);t.Z=e=>{let{title:t,children:n,headingLevel:o="h2",live:l=!1,headerSx:d}=e;return(0,r.jsxs)(a.Z,{sx:s.r.widgetWrapper,children:["string"==typeof t?(0,r.jsxs)(a.Z,{sx:{...s.r.widgetHeader,position:"relative",...d},children:[l&&(0,r.jsx)(a.Z,{component:"span",sx:s.r.liveDot,"aria-hidden":"true"}),(0,r.jsx)(i.Z,{sx:s.r.title,component:o,children:t})]}):t,(0,r.jsx)(a.Z,{sx:s.r.widgetContent,children:n})]})}},92745:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});let r=new Map,a=new Map;async function i(e){let t="https://wp.marathonguide.com";if(!t)throw Error("URL is undefined. Please check your environment variables.");let n=JSON.stringify(e),i=Date.now(),s=r.get(n);if(s&&s.expires>i)return s.data;let o=a.get(n);if(o)return o;let l=(async()=>{let a=await fetch(`${t}/graphql`,{headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":"Mozilla/5.0 (compatible; Next.js/14.0.1; +https://marathonguide.com)"},method:"POST",body:JSON.stringify(e)}),i=a.headers.get("content-type"),s=await a.text();if(!i||!i.includes("application/json"))throw Error(`GraphQL API returned non-JSON response. Status: ${a.status}, Content-Type: ${i}. Response preview: ${s.substring(0,200)}`);if(!a.ok)throw Error(`GraphQL API error: ${a.status} ${a.statusText}. Response: ${s.substring(0,500)}`);try{let e=JSON.parse(s);return r.set(n,{data:e,expires:Date.now()+36e5}),e}catch(t){let e=t instanceof Error?t.message:String(t);throw Error(`Failed to parse JSON response. Status: ${a.status}. Response preview: ${s.substring(0,200)}. Parse error: ${e}`)}})();a.set(n,l);try{return await l}finally{a.delete(n)}}var s=n(46873);let o=async e=>{let{endCursor:t,categoryId:n,tagId:r=null}=e,a={query:`query loadMorePosts {
2      posts(first: ${s.pZ}, after: "${t}"${n?`, where: {categoryId: ${n}}`:""}${r?`, where: {tagId: ${r}}`:""}) {
3        nodes {
4          slug
5          title
6          date
7          excerpt
8          featuredImage {
9            node {
10              mediaDetails {
11                file
12                sizes {
13                  sourceUrl
14                  width
15                  height
16                }
17              }
18            }
19          }
20          tags {
21            nodes {
22              name
23              slug
24            }
25          }
26          categories {
27            nodes {
28              name
29              slug
30              uri
31            }
32          }
33          author {
34            node {
35              name
36            }
37          }
38          isSticky
39        }
40        pageInfo {
41          endCursor
42          hasNextPage
43          hasPreviousPage
44          startCursor
45        }
46      }
47    }`},o=await i(a);return o?.data||{}}},7456:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return w},default:function(){return b}});var r=n(85893),a=n(67294),i=n(82553),s=n(9729),o=n(9008),l=n.n(o),d=n(14960),c=n(87851),p=n(73167),u=n(69470),x=n(51367),g=n(42195),m=n(46873),f=n(92745),h=n(68429),w=!0;function b(e){let{allPosts:t,pageInfoData:n}=e,o=(0,g.Z)(`(max-width: ${m.ST}px)`),[w,b]=(0,a.useState)(t),[j,y]=(0,a.useState)(n),_=async()=>{try{let e=await (0,f.P)({endCursor:j.endCursor,categoryId:void 0});e?.posts&&(b(t=>{let n=new Set(t.map(e=>e.slug)),r=e.posts.nodes.filter(e=>!n.has(e.slug));return[...t,...r]}),y(e.posts.pageInfo))}catch(e){console.error(e)}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l(),{children:[(0,r.jsx)("title",{children:"Featured Running Articles | MarathonGuide"}),(0,r.jsx)("meta",{name:"description",content:"Explore featured running articles on MarathonGuide.com: training tips, race news, Coach Joe advice and marathon guides for runners of all levels."}),(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,r.jsx)("meta",{name:"robots",content:"index, follow"}),(0,r.jsx)("link",{rel:"canonical",href:"https://marathonguide.com/featured-running-articles/"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,r.jsx)("meta",{property:"og:title",content:"Featured Running Articles | MarathonGuide"}),(0,r.jsx)("meta",{property:"og:description",content:"Explore featured running articles on MarathonGuide.com: training tips, race news, Coach Joe advice and marathon guides for runners of all levels."}),(0,r.jsx)("meta",{property:"og:url",content:"https://marathonguide.com/featured-running-articles/"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{property:"og:site_name",content:"MarathonGuide.com"}),(0,r.jsx)("meta",{property:"og:image",content:"https://marathonguide.com/images/og-default.jpg"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:title",content:"Featured Running Articles | MarathonGuide"}),(0,r.jsx)("meta",{name:"twitter:description",content:"Explore featured running articles on MarathonGuide.com: training tips, race news, Coach Joe advice and marathon guides for runners of all levels."}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://marathonguide.com/images/og-default.jpg"}),(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"CollectionPage",name:"Featured Running Articles",description:"Featured running articles on MarathonGuide.com: training tips, race news, Coach Joe advice and marathon guides.",url:"https://marathonguide.com/featured-running-articles/"})}}),(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://marathonguide.com/"},{"@type":"ListItem",position:2,name:"Featured Running Articles",item:"https://marathonguide.com/featured-running-articles/"}]})}})]}),(0,r.jsx)("main",{children:(0,r.jsx)(d.I,{children:(0,r.jsx)(s.Z,{sx:{margin:{xs:"32px 0",md:0}},children:(0,r.jsxs)(p.Z,{title:"Featured Running Articles",headingLevel:"h1",children:[(0,r.jsx)(s.Z,{sx:i.W.articlesWrapper,children:w.flatMap((e,t)=>(6===t?111:19===t?112:28===t?113:34===t&&115)?[(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)(h.Z,{variant:o?"square":"rectangle",stylesObj:{margin:"20px auto",gridColumn:"1 / -1"}}),(0,r.jsx)(c.Z,{postData:{...e,slug:(0,u.Kr)(e.categories?.nodes[0]?.uri,e.slug)},showTag:!0})]},`ad-${t}`)]:12===t?[(0,r.jsx)(s.Z,{sx:{gridColumn:"1 / -1"},children:(0,r.jsx)(x.default,{})},"subscribe-widget")]:[(0,r.jsx)(c.Z,{postData:{...e,slug:(0,u.Kr)(e.categories?.nodes[0]?.uri,e.slug)},showTag:!0},e.slug)])}),j?.hasNextPage&&(0,r.jsx)(s.Z,{onClick:_,sx:i.W.buttonDetails,children:"Load MORE"})]})})})})]})}},82553:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(48522),a=n(16323);let i={buttonDetails:{...r.T.button,padding:{xs:"12px 20px",md:"16px 20px"},maxWidth:{xs:"100%",md:"166px"},width:{xs:"100%",md:"fit-content"},lineHeight:{xs:"14px",md:"24px"},textTransform:"uppercase",textAlign:"center"},headline:{backgroundColor:a.O.backgroundLight,borderRadius:"8px",padding:"4px 16px",marginBottom:"32px",alignItems:"center",fontWeight:700,fontSize:{xs:"14px",md:"20px"},lineHeight:{xs:"20px",md:"30px"},textTransform:"uppercase"},articlesList:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr 1fr"}
47,columnGap:"32px",rowGap:"64px",marginBottom:{xs:"32px"}},calculatorsList:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr 1fr"},gap:{xs:"8px",md:"32px"},marginBottom:{xs:"32px"}},articlesWrapper:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(2, 1fr)",md:"repeat(3, 1fr)"},gap:{xs:"16px",md:"64px 32px"}},subscribeWrapper:{"& > div":{maxWidth:"none !important",width:"100%"}}}},69470:function(e,t,n){"use strict";n.d(t,{Kr:function(){return o},iq:function(){return l},mA:function(){return i}});var r=n(27484),a=n.n(r);let i=e=>a()(e).format("MMM D, YYYY"),s={training:"coach",newsletter:"newsletter"},o=(e,t)=>{let n=(e||"").split("/").filter(e=>e&&"category"!==e),r=s[n[0]||""]??n.join("/");return`/${r}/${t}/`},l=()=>({startDate:a()().format("YYYY-MM-DD"),endDate:a()().add(1,"year").format("YYYY-MM-DD")})},12595:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});let r={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" "};function a(e){return e?e.replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(Number(t))).replace(/&#x([0-9a-f]+);/gi,(e,t)=>String.fromCharCode(parseInt(t,16))).replace(/&(amp|lt|gt|quot|apos|nbsp);/g,(e,t)=>r[t]):e}},91609:function(e,t,n){"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:900;if(!e||0===e.length)return;let n=[...e].sort((e,t)=>Number(e.width??0)-Number(t.width??0));return n.find(e=>Number(e.width??0)>=t)??n[n.length-1]}n.d(t,{j:function(){return r}})},62831:function(e){e.exports={style:{fontFamily:"'__barlowCondensed_4f8a34', '__barlowCondensed_Fallback_4f8a34'"},className:"__className_4f8a34"}},22930:function(e){e.exports={style:{fontFamily:"'__plexMono_002345', '__plexMono_Fallback_002345'"},className:"__className_002345"}}},function(e){e.O(0,[4601,8439,5068,2031,9888,5283,119,3160,9759,2888,9774,179],function(){return e(e.s=70717)}),_N_E=e.O()}]);

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.