1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7976],{6834:(e,a,t)=>{t.d(a,{A:()=>n});var r=t(73365),s=t(56702),d=t.n(s);let n=({name:e,className:a,svgClassName:t,...s})=>{if(!e)return null;let n=e;return e.startsWith("aafp-web")||(n=`aafp-web-${e}`),(0,r.jsx)("span",{"data-testid":`icon-${e}`,className:d()("aafp-icon",`aafp-icon--${e}`,a),...s,children:(0,r.jsx)("svg",{className:d()("aafp-icon__svg",t),"aria-hidden":"true",focusable:!1,children:(0,r.jsx)("use",{xlinkHref:`#${n}`})})})}},7805:(e,a,t)=>{t.d(a,{A:()=>r.default});var r=t(15723)},9316:(e,a,t)=>{t.d(a,{A:()=>n});var r=t(73365),s=t(56702),d=t.n(s);let n=({name:e,size:a=32,fill:t=!1,color:s,className:n,...i})=>{if(!e)return null;let l="inherit";return"number"==typeof a&&(l=a/16+"rem"),(0,r.jsx)("span",{className:d()("aafp-material-icon",`aafp-material-icon--${e}`,{"aafp-material-icon--fill":t,[`aafp-material-icon--color-${s}`]:!!s,"aafp-material-icon--font-size-inherit":"inherit"===l},n),style:{"--aafp-icon-font-size":l},...i,children:(0,r.jsx)("span",{className:"aafp-material-icon__icon",children:e})})}},15723:(e,a,t)=>{t.r(a),t.d(a,{default:()=>c});var r=t(73365),s=t(1521),d=t(56702),n=t.n(d),i=t(5269),l=t(10862);let c=(0,s.forwardRef)(function({children:e,className:a,variant:t="primary",size:d="default","aria-disabled":c=!1,type:o="button",disabled:p=!1,loading:m=!1,iconBefore:_,iconAfter:h,as:b,...f},x){let u=n()("btn","secondary"===t&&"btn--secondary","tertiary"===t&&"btn--tertiary","page-action"===t&&"btn--page-action","small"===d&&"btn--sm",m&&"btn--loading",a),j="href"in f,v=p||c||m,g=(0,s.useRef)(null),y=f?.onClick?e=>{if(v){e.preventDefault(),e.stopPropagation();return}"function"==typeof f.onClick&&f.onClick(e)}:void 0,N=(0,s.useCallback)(function(e){g.current?.addEventListener("transitionend",function a(t){t.target===g.current&&(g.current?.removeEventListener("transitionend",a,!1),e())},!1)},[]),{label:k,external:A,action:w,...L}=f;return(0,r.jsxs)(b||(j?"a":"button"),{ref:x,className:u,...L,onClick:y,type:j?void 0:o,disabled:j?void 0:p,"aria-disabled":v,children:[_,(0,r.jsx)("span",{className:"btn__label",children:e||k}),h,(0,r.jsx)(i.A,{nodeRef:g,in:m,classNames:"btn__loading-spinner-",mountOnEnter:!0,unmountOnExit:!0,addEndListener:N,children:(0,r.jsx)(l.k,{ref:g})})]})})},19469:(e,a,t)=>{t.d(a,{A:()=>r.default});var r=t(82605)},37418:(e,a,t)=>{t.d(a,{A:()=>o});var r=t(73365);t(1521);var s=t(56702),d=t.n(s),n=t(52844),i=t(9316),l=t(19469),c=t(73319);let o=({className:e,layout:a="stacked",aspectRatio:t="1-1",gated:s=!1,hasVideo:o=!1,kicker:p,title:m,href:_,byline:h,dateline:b,provider:f,description:x,image:u,sponsor:j,tags:v,labels:g,items:y,children:N,linksAs:k="a",headingTag:A="h3",onResultClick:w})=>{let L="stacked"===a,C=d()("pcard ",e),E=m&&"object"==typeof m&&"label"in m?m:void 0,$=E?.label??(m&&"object"!=typeof m?m:void 0),z=_??E?.href,R=E?.target,S="_blank"===R?"noopener noreferrer":void 0,M=E?.showExitArrow,T=d()({"pcard--16-9":"16-9"===t,"pcard--1-1":"1-1"===t,"pcard--stacked":"stacked"===a,"pcard--inline":"inline"===a,"pcard--noimage":!u,"pcard--image":u}),D=()=>{w?.()},H=p&&"object"==typeof p&&"label"in p?p:void 0,O=null;H?O=H.href?(0,r.jsx)(k,{href:H.href,children:H.label}):H.label:p&&(O=p);let P=null;return x&&(P="string"==typeof x?(0,r.jsx)("div",{"data-testid":"pcard-description",className:"pcard__desc type-body-sm has-rich-text mb-2",dangerouslySetInnerHTML:{__html:x}}):(0,r.jsx)("div",{"data-testid":"pcard-description",className:"pcard__desc type-body-sm has-rich-text mb-2",children:x})),(0,r.jsx)("div",{"data-testid":"pcard",className:d()(C),children:(0,r.jsxs)("div",{className:d()("pcard__wrapper",T),children:[j&&L&&(0,r.jsx)("div",{className:"pcard__sponsored pcard__sponsored--stacked type-body-bold",children:"Sponsored content"}),u?.src&&(0,r.jsx)("div",{"data-testid":"pcard-media",className:d()("pcard__media"),children:(0,r.jsxs)("div",{className:"pcard__media-wrapper",children:[z&&(0,r.jsx)(k,{href:z,target:R,rel:S,onClick:D,children:(0,r.jsx)(n.A,{...u,aspectRatio:t})}),!z&&(0,r.jsx)(n.A,{...u,aspectRatio:t}),o&&(0,r.jsx)(i.A,{name:"play_circle",fill:!0,size:42,color:"quaternary","data-testid":"pcard-has-video",className:"pcard__has-video"}),g&&g.length>0&&(0,r.jsx)("div",{"data-testid":"pcard-labels",className:"pcard__labels mb-2 mt-0",children:(0,r.jsx)("div",{className:"pcard__labels-content",children:g?.map((e,a)=>(0,r.jsx)(l.A,{...e},`tags-item-${a}`))})})]})}),(0,r.jsxs)("div",{"data-testid":"pcard-content",className:d()("pcard__content"),children:[j&&!L&&(0,r.jsx)("div",{className:"pcard__sponsored pcard__sponsored--inline type-body-bold mb-3",children:"Sponsored content"}),v&&v.length>0&&v?.[0]?.label&&(0,r.jsx)("div",{"data-testid":"pcard-tags",className:"pcard__tags mt-0",children:(0,r.jsx)("div",{className:"pcard__tags-content",children:v?.map((e,a)=>(0,r.jsx)(l.A,{...e},`tags-item-${a}`))})}),O&&(0,r.jsx)("p",{"data-testid":"pcard-kicker",className:"pcard__kicker mb-1",children:O}),m&&(0,r.jsx)(A,{"data-testid":"pcard-title",className:`pcard__title mb-1 type-h3 ${s?"pcard__title--gated":""}`,children:z?(0,r.jsxs)(k,{href:z,target:R,rel:S,onClick:D,children:[$,M&&(0,r.jsx)(c.A,{}),s&&(0,r.jsx)(i.A,{name:"lock",size:"inherit","data-testid":"pcard-gated",className:"pcard__gated"})]}):(0,r.jsxs)(r.Fragment,{children:[$,s&&(0,r.jsx)(i.A,{name:"lock",size:"inherit","data-testid":"pcard-gated",className:"pcard__gated"})]})}),h&&(0,r.jsx)("div",{"data-testid":"pcard-byline",className:"pcard__byline type-body-sm-bold mb-1",children:h}),b&&(0,r.jsx)("div",{"data-testid":"pcard-dateline",className:"pcard__dateline type-body-sm-bold mb-0",children:b}),f&&(0,r.jsxs)("div",{"data-testid":"pcard-provider",className:"pcard__provider type-body-sm-bold mb-1",children:["by ",f]}),P,y&&y.length>0&&(0,r.jsx)("ul",{"data-testid":"pcard-items",className:"pcard__items list-unstyled mb-3",children:y.map((e,a)=>(0,r.jsxs)("li",{className:"pcard__item",children:[e.icon&&(0,r.jsx)(i.A,{name:e.icon,size:24,color:"tertiary",className:"pcard__item-icon"}),(0,r.jsx)("span",{className:"pcard__item-title type-body-xs-bold",children:e.title})]},a))}),j&&(0,r.jsxs)("div",{"data-testid":"pcard-sponsor",className:"pcard__sponsor mb-2",children:[(0,r.jsx)("div",{className:" type-body-sm-bold mb-1",children:j.name}),"logo"===j.sponsorAttributionType&&(j.href?(0,r.jsx)(k,{href:j.href,target:j.target||"_self",rel:"_blank"===j.target?"noopener noreferrer":void 0,children:j.logo&&(0,r.jsx)(n.A,{src:j.logo.src,alt:j.logo.alt,className:"pcard__sponsor-logo"})}):(0,r.jsx)(n.A,{src:j.logo?.src,alt:j.logo?.alt,className:"pcard__sponsor-logo"})),"textLink"===j.sponsorAttributionType&&(j.href&&j.textLinkLabel?(0,r.jsx)(k,{href:j.href,target:j.target||"_self",rel:"_blank"===j.target?"noopener noreferrer":void 0,children:j.textLinkLabel}):j.textLinkLabel)]}),N]})]})})}},52844:(e,a,t)=>{t.d(a,{A:()=>r.default});var r=t(77845)},73319:(e,a,t)=>{t.d(a,{A:()=>d});var r=t(73365),s=t(6834);let d=()=>(0,r.jsx)(s.A,{name:"external-link"})},76843:(e,a,t)=>{t.d(a,{U:()=>s});var r=t(1521);let s=e=>{let[a,t]=(0,r.useState)(!!window.matchMedia(e).matches);return(0,r.useEffect)(()=>{let a=window.matchMedia(e),r=()=>t(!!a.matches);return a.addEventListener("change",r),r(),()=>{a.removeEventListener("change",r)}},[e]),a}},82605:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var r=t(73365),s=t(1521),d=t(56702),n=t.n(d);let i=(0,s.forwardRef)(function({children:e,className:a,color:t="primary","aria-disabled":s=!1,as:d,...i},l){let c=n()("tag",`tag--${t}`,a),o="href"in i,p="disabled"in i&&!0===i.disabled||s,{label:m,external:_,action:h,...b}=i;return(0,r.jsx)(d||(o?"a":"span"),{ref:l,className:c,...b,onClick:e=>{if(p){e.preventDefault(),e.stopPropagation();return}"function"==typeof i.onClick&&i.onClick(e)},"aria-disabled":p,children:(0,r.jsx)("span",{className:"tag__label",children:e||m})})})}}]);
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.