PageSourceSearch

https://www.aafp.org/_next/static/chunks/5913.c6e5907a72abc131.js

js aafp.org collected 2026-09-24 07:31:14 UTC 3,287 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5913],{95913:(e,l,i)=>{i.r(l),i.d(l,{default:()=>x});var a=i(73365),s=i(1521),t=i(56702),n=i.n(t),r=i(99568),c=i.n(r),d=i(95561),h=i(1460),u=i(52844),o=i(50509),b=i(8694),p=i(7805);function x({pin:e,heading:l,headingCta:i,displayHorizontalRule:t=!1,layout:r="full-width",journals:j=[]}){let m,y=j.length>0,[f,g]=(0,s.useState)(0),A=(0,s.useMemo)(()=>j[f]??j[0],[j,f]);return(0,a.jsxs)("section",{className:n()("journal-publications-promo",{"journal-publications-promo--inset":"inset"===r}),"aria-label":"Journal Publications",children:[(m=A?.headingCta||i,l||m?(0,a.jsx)(b.A,{heading:l,cta:m,pin:e,displaySettings:{displayHorizontalRule:t}}):null),(0,a.jsx)("div",{className:"full-width"===r?"container":"container_tab_wrapper",children:y&&(0,a.jsxs)(d.Ay,{initialActiveTab:0,onSelectTab:g,children:[(0,a.jsx)(d.Ay.TabList,{className:"tabs__tablist--centered",children:j.map((e,l)=>{let i=`journal-publications-promo-tab-${l}`;return(0,a.jsx)(d.Ay.Tab,{tab:l,id:i,children:(0,a.jsx)(d.Ay.TabLabel,{children:e?.label})},e?.label||l)})}),j.map((e,l)=>{let i,s,t=e?.heroImage,[b,...x]=e?.articles||[],j=x.slice(0,3),m=`journal-publications-promo-tab-${l}`;return(0,a.jsxs)(d.Ay.TabPanel,{tab:l,"aria-labelledby":m,className:"bg-tertiary px-3 md:px-4 lg:px-6 py-5 md:py-6",children:[(i=e?.issueTitle,s=e?.issueCta,i||s?.href?(0,a.jsxs)("div",{className:"journal-publications-promo__issue-info",children:[i&&(0,a.jsx)("h3",{className:"type-h4",children:i}),s?.href&&(0,a.jsx)(p.A,{className:"journal-publications-promo__issue-cta",as:c(),href:s.href,target:s.target,"aria-label":s["aria-label"],children:s.label||"See full issue"})]}):null),(0,a.jsxs)("div",{className:"grid gap-y-4 lg:gap-y-6",children:[b&&(0,a.jsx)("div",{className:"col-span-full",children:((e,l,i="side-by-side")=>{if(!e)return null;let s=e.link?{href:e.link.href,target:e.link.target,"aria-label":e.link["aria-label"]}:null;return(0,a.jsxs)(h.Ay,{layout:i,children:[l&&(0,a.jsx)(h.Ay.Media,{aspectRatio:"auto",size:"thirds",children:s?(0,a.jsx)(c(),{...s,children:(0,a.jsx)(u.A,{src:l.src,alt:l.alt,width:l.width,height:l.height})}):(0,a.jsx)(u.A,{src:l.src,alt:l.alt,width:l.width,height:l.height})}),(0,a.jsxs)(h.Ay.Body,{children:[e.headline&&(0,a.jsx)(h.Ay.Header,{size:"h2",children:s?(0,a.jsx)(c(),{...s,children:e.headline}):e.headline}),e.description&&(0,a.jsx)(h.Ay.Text,{children:e.description})]})]})})(b,t,"side-by-side")}),j?.map((e,l)=>((e,l,i)=>{if(!e)return null;let s=e.link?{href:e.link.href,target:e.link.target,"aria-label":e.link["aria-label"]}:null;return(0,a.jsx)(h.Ay,{className:n()(l),children:(0,a.jsxs)(h.Ay.Body,{children:[e.headline&&(0,a.jsx)(h.Ay.Header,{children:s?(0,a.jsx)(c(),{...s,children:e.headline}):e.headline}),e.description&&(0,a.jsx)(h.Ay.Text,{children:e.description})]})},i)})(e,`col-span-full ${"inset"!==r?"xl:col-span-4":"xl:col-span-full"}`,e?.headline?.toString()||`bottom-${l}`))]}),(0,a.jsx)("div",{className:"mt-4 md:mt-6",children:((e,l)=>{if(!e?.cme)return null;let{issueIdentifier:i,quizSettings:s,initialQuizData:t}=e.cme;return(0,a.jsx)(o.A,{issueIdentifier:i,quizSettings:s,initialQuizData:t,layout:"horizontal",size:l?"inset":"full-width"})})(e,"inset"===r)})]},e?.label||l)})]})})]})}}}]);

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.