PageSourceSearch

https://www.aafp.org/_next/static/chunks/8520.0b8e8741f64853b5.js

js aafp.org collected 2026-09-24 07:31:41 UTC 7,247 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8520],{6834:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var l=a(73365),s=a(56702),i=a.n(s);let n=({name:e,className:t,svgClassName:a,...s})=>{if(!e)return null;let n=e;return e.startsWith("aafp-web")||(n=`aafp-web-${e}`),(0,l.jsx)("span",{"data-testid":`icon-${e}`,className:i()("aafp-icon",`aafp-icon--${e}`,t),...s,children:(0,l.jsx)("svg",{className:i()("aafp-icon__svg",a),"aria-hidden":"true",focusable:!1,children:(0,l.jsx)("use",{xlinkHref:`#${n}`})})})}},8520:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>h});var l=a(73365),s=a(1521),i=a(56702),n=a.n(i),r=a(6834),o=a(62637),c=a(99568),d=a.n(c),p=a(73319),u=a(52844),m=a(59715);function h({kicker:e,preTitle:t,title:a,titleHref:i,introLinks:c,subTitle:g,contributors:_,publishDate:f,updatedDate:b,isSponsoredContent:x,sponsorContent:j,sponsorAttributionType:v,sponsorLogo:N,sponsorTextLink:y,journalContributorGroups:k,pageInfo:A,i18n:w}){let $=(0,s.useId)(),C=(0,s.useId)(),[L,E]=(0,s.useState)(!1),[H,M]=(0,s.useState)(!1),T=(k?.reduce((e,t)=>e+(t.contributors?.length??0),0)??0)>6,z=!!A&&A.length>1,I=T||z,P=(0,s.useRef)(null),S=e=>!!e&&e.scrollHeight<e.clientHeight+5;(0,m.s)(()=>{M(S(P?.current))}),(0,s.useEffect)(()=>{M(S(P?.current))},[]);let B=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/([®©])/g,'<span style="font-size: 62.5%; position: relative; top: -0.4em;">$1</span>');return(0,l.jsx)("div",{className:"page-title mt-4 mb-4 md:mt-6 md:mb-6",children:(0,l.jsxs)("div",{className:"container page-title__content grid",children:[(0,l.jsxs)("div",{className:n()("col-span-full",{"md:col-span-8 mb-1":e?.href&&e?.label||t}),children:[e?.href&&e?.label&&(0,l.jsx)(d(),{className:"type-body-bold type-color-secondary",href:e.href,target:e.target,children:e.label}),e?.label&&!e?.href&&(0,l.jsx)("span",{className:"type-body-bold type-color-secondary",children:e.label}),t&&(0,l.jsx)("div",{className:"type-body type-color-secondary has-rich-text",children:t})]}),(0,l.jsxs)("div",{className:"page-title__left-col col-span-full md:col-span-8 col-start-1",children:[a&&(0,l.jsx)("h1",{className:"type-h1",children:i?(0,l.jsx)(d(),{href:i,dangerouslySetInnerHTML:{__html:B(a)}}):(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:B(a)}})}),c&&c?.length>0&&(0,l.jsx)("div",{className:"page-title__links",children:c?.filter(e=>e?.label).map((e,t)=>(0,l.jsx)(o.A,{as:e?.href?d():"span",className:"page-title__link",iconBefore:e?.icon?(0,l.jsx)(r.A,{name:e.icon}):null,iconAfter:e?.external?(0,l.jsx)(p.A,{}):null,...e,children:e?.label},`page-title-link-${t}`))}),g&&(0,l.jsx)("div",{className:"has-rich-text body-copy mt-1 md:mt-2","data-testid":"subtitle",children:g}),_&&_?.length>0&&(0,l.jsx)("div",{className:"page-title__contributors type-body-sm mt-1 md:mt-2",children:_?.map((e,t)=>(0,l.jsx)("div",{className:"page-title__contributor",children:e?.contributorPage?.url?(0,l.jsxs)(d(),{href:e.contributorPage.url,className:"page-title__contributor-link",children:[e.contributorName,", ",e?.contributorPage?.title]}):(0,l.jsx)("span",{className:"page-title__contributor-name",children:e.contributorName})},`page-title-contributor-${t}`))}),f||b?(0,l.jsxs)("div",{className:"page-title__dates type-body-sm",children:[f&&(0,l.jsx)("div",{className:"page-title__publish-date",children:f}),b&&(0,l.jsxs)("div",{className:"page-title__update-date",children:["Updated ",b]})]}):null,x&&(0,l.jsxs)("div",{className:"page-title__sponsor type-body-sm",children:[j&&(0,l.jsx)("div",{className:"page-title__sponsor-content",children:j}),v&&"logo"===v&&N?.image?.src&&(0,l.jsx)("div",{className:"page-title__sponsor-logo",children:(0,l.jsx)(o.A,{as:d(),href:N?.link?.href||"",className:"page-title__sponsor-logo-cta",...N?.link,children:(0,l.jsx)(u.A,{...N.image,alt:N?.image?.alt,fit:"contain"})})}),v&&"textLink"===v&&y&&(0,l.jsx)("div",{className:"page-title__sponsor-text-link",children:(0,l.jsx)(o.A,{as:y?.href?d():"span",...y,className:"page-title__sponsor-text-link-cta",children:y?.label})})]})]}),(k||A)&&(0,l.jsxs)("div",{className:"page-title__right-col col-span-full md:col-span-4 mt-3 md:mt-0",children:[k&&k?.length>0&&(0,l.jsx)("div",{id:C,className:"page-title__journal-contributors",children:k.map(({contributors:e,affiliation:t},a)=>{let s=k.slice(0,a).reduce((e,t)=>
1e+(t.contributors?.length??0),0);return(0,l.jsxs)("div",{className:"page-title__journal-contributor-group",children:[e?.map((e,a)=>(0,l.jsxs)("div",{className:n()("page-title__journal-contributor type-body-sm-bold",{"page-title__journal-contributor--collapsed":T&&!L&&s+a>=6}),children:[e,t?",":null]},`page-title-journal-contributor-${a}`)),t&&(0,l.jsx)("div",{className:n()("page-title__journal-contributor type-body-sm-bold",{"page-title__journal-contributor--collapsed":T&&!L&&s>=6}),children:t})]},`page-title-journal-contributor-group-${a}`)})}),A&&A?.length>0&&(0,l.jsxs)("div",{className:n()("page-title__page-infos",{"page-title__page-infos--hidden":!L}),ref:P,"data-testid":"page-infos",children:[(0,l.jsx)("div",{className:"page-title__page-info type-body-sm","data-testid":"page-info",children:A[0]}),(0,l.jsx)("div",{className:"page-title__page-info type-body-sm","data-testid":"page-info",id:$,children:A?.slice(1,A?.length)?.map((e,t)=>(0,l.jsx)("div",{children:e},`page-title-page-info-${t}`))})]}),I&&(0,l.jsx)(o.A,{as:"button",size:"x-small",smallCaps:!0,"aria-label":L?w?.showLessA11y:w?.showMoreA11y,onClick:()=>E(e=>!e),className:`page-title__right-col-item hide-print ${!T&&H?"page-title__page-infos-btn--hidden":""}`,"aria-expanded":L,"aria-controls":[T?C:null,z?$:null].filter(Boolean).join(" "),children:L?w?.showLess:w?.showMore})]})]})})}},52844:(e,t,a)=>{"use strict";a.d(t,{A:()=>l.default});var l=a(77845)},59715:(e,t,a)=>{"use strict";a.d(t,{s:()=>n});var l=a(1521),s=a(77106),i=a.n(s);let n=(e,t=250)=>{let a=(0,l.useMemo)(()=>i()(e,t),[e,t]);(0,l.useEffect)(()=>(window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}),[a])}},62637:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var l=a(73365),s=a(1521),i=a(56702),n=a.n(i);let r=(0,s.forwardRef)(function({children:e,className:t,size:a="default",smallCaps:s=!1,"aria-disabled":i=!1,type:r="button",disabled:o=!1,iconBefore:c,iconAfter:d,as:p,...u},m){let h=n()("standalone-link","small"===a&&"standalone-link--sm","x-small"===a&&"standalone-link--xs",s&&"standalone-link--small-caps",t),g="href"in u,_=p||(g?"a":"span"),f="button"===_,b=o||i,x=u?.onClick?e=>{if(b){e.preventDefault(),e.stopPropagation();return}"function"==typeof u.onClick&&u.onClick(e)}:void 0,{label:j,external:v,action:N,...y}=u;return(0,l.jsx)(_,{ref:m,className:h,...y,onClick:x,type:f?r||"button":void 0,disabled:f?o:void 0,"aria-disabled":b,children:(0,l.jsxs)("span",{className:"standalone-link__content",children:[c,e||j,d]})})})},73319:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var l=a(73365),s=a(6834);let i=()=>(0,l.jsx)(s.A,{name:"external-link"})},77106:e=>{e.exports=function(e,t,a,l){var s,i,n;return function(){if(n=this,i=Array.prototype.slice.call(arguments),!s||!a&&!l){if(!a)return r(),s=setTimeout(function(){r(),e.apply(n,i)},t);s=setTimeout(r,t),e.apply(n,i)}function r(){clearTimeout(s),s=null}}}}}]);

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.