1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[431],{4697:(e,a,l)=>{"use strict";l.d(a,{Q:()=>d});var n=l(37876),t=l(14232),r=l(93852),o=l.n(r),s=l(47639),i=l(56561);function d(e){var a;let{items:l,showFollowing:r=!0,isFollowing:d=!1,onFollowClick:c,showOnlyCurrent:u=!1,linkCurrent:p=!1,className:b=""}=e;if(!l||0===l.length)return null;let m=r&&c?(0,n.jsx)(i.W,{isFollowing:d,onClick:c,variant:"inverse",className:o().followSlot,iconSize:10,ariaLabel:d?"Unfollow":"Follow"}):null,g=l.length>0&&l[0].isHome,_=g?l.slice(1):l;return(0,n.jsxs)("nav",{className:"".concat(o().breadcrumb," ").concat(b),"aria-label":"Breadcrumb",children:[!u&&(0,n.jsxs)(n.Fragment,{children:[g?(0,n.jsx)("a",{href:null!=(a=l[0].href)?a:"/",className:o()["breadcrumb-home"],"aria-label":"Home",children:(0,n.jsx)(s.A,{name:"home",className:o()["breadcrumb-home-icon"]})}):(0,n.jsx)("a",{href:"/",className:o()["breadcrumb-home"],"aria-label":"Home",children:(0,n.jsx)(s.A,{name:"home",className:o()["breadcrumb-home-icon"]})}),_.length>0&&(0,n.jsx)(s.A,{name:"caret-right",className:o()["breadcrumb-icon"]}),_.map((e,a)=>{var l;let r=a===_.length-1;return(0,n.jsx)(t.Fragment,{children:r?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("span",{className:o()["breadcrumb-current"],"aria-current":"page",children:e.name})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("a",{href:null!=(l=e.href)?l:"/category/".concat(e.slug||""),className:o()["breadcrumb-item"],children:e.name}),(0,n.jsx)(s.A,{name:"caret-right",className:o()["breadcrumb-icon"]})]})},e.slug||a)})]}),u&&(()=>{let e=l[l.length-1];return(0,n.jsxs)(n.Fragment,{children:[p&&e.slug?(0,n.jsx)("a",{href:"/category/".concat(e.slug),className:"".concat(o()["breadcrumb-current"]," ").concat(o()["breadcrumb-item"]),children:e.name}):(0,n.jsx)("span",{className:o()["breadcrumb-current"],"aria-current":"page",children:e.name}),m]})})()]})}},52907:e=>{e.exports={headerSection:"TaxonomyFeed_headerSection__S1SJs",headerCard:"TaxonomyFeed_headerCard__xexAp",headerCardInner:"TaxonomyFeed_headerCardInner__7pPia",nestedPageHeader:"TaxonomyFeed_nestedPageHeader__PEDS5",categoryHeaderTabs:"TaxonomyFeed_categoryHeaderTabs__ol_q9",headerCardComponents:"TaxonomyFeed_headerCardComponents__GkS_w",spinUpTabs:"TaxonomyFeed_spinUpTabs__zYZUl"}},86431:(e,a,l)=>{"use strict";l.d(a,{A:()=>S});var n=l(37876),t=l(14232),r=l(9899),o=l(68401),s=l(65694),i=l(92373),d=l.n(i),c=l(4697),u=l(47551),p=l.n(u),b=l(10085),m=l(38965),g=l(88725),_=l(71077),h=l(18346);let v={label:{post:"Read",article:"Read",podcast:"Listen",podcasts:"Listen",video:"Watch",videos:"Watch",publication:"Publication",publications:"Publication",roundtable:"Roundtables",roundtables:"Roundtables",conference:"Conferences",conferences:"Conferences",slides:"Slides",slideshow:"Slides",slideshows:"Slides"},id:{post:"read",article:"read",podcast:"listen",podcasts:"listen",video:"watch",videos:"watch",publication:"publication",publications:"publication",roundtable:"roundtables",roundtables:"roundtables",conference:"conferences",conferences:"conferences",slides:"slides",slideshow:"slides",slideshows:"slides"}};function f(e,a,l){if("all"===e)return a;let n=function(e){if((null==e?void 0:e.tab_mapping)&&"object"==typeof e.tab_mapping)return e.tab_mapping;if((null==e?void 0:e.tabs)&&Array.isArray(e.tabs)){let a={};if(e.tabs.forEach(e=>{e.id&&e.post_types&&Array.isArray(e.post_types)&&(a[e.id]=e.post_types.map(e=>e.toLowerCase()))}),Object.keys(a).length>0)return a}return{read:["post","article"],listen:["podcast","podcasts"],watch:["video","videos"],publication:["publication","publications"],roundtables:["roundtable","roundtables"],conferences:["conference","conferences"],slides:["slides","slideshow","slideshows"]}}(l||{});return n[e]?n[e]:[e]}function y(e){let a=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!Array.isArray(e))return a?[{id:"all",label:"All"}]:[];let l=(0,h.P$)(e),n=new Map;return a&&n.set("all",{id:"all",label:"All"}),l.forEach(e=>{let a=function(e){let a=e.toLowerCase();return v.id[a]||a}(e),l=function(e){let a=e.toLowerCase();return v.label[a]||e.charAt(0).toUpperCase()+e.slice(1)}(e);n.has(a)||n.set(a,{id:a,label:l})}),Array.from(n.values()).sort((e,a)=>"all"===e.id?-1:"all"===a.id?1:e.label.localeCompare(a.label))}function x(e,a,l,n){if(!Array.isArray(e))return[];if("all"===a)return e;let t=f(a,l,n).map(e=>e.toLowerCase());return e.filter(e=>{let a=(0,h.Zq)(e);return t.includes(a)})}var w=l(52870),j=l(85789),C=l(12710),A=l(21182),N=l(72905),T=l(52907),k=l.n(T),F=l(59098);let S=function(e){var a,l,i,u,v,T,S,W,P,B,H,L,E,M,U;let{taxonomyType:I,taxonomyName:D,taxonomySlug:R,taxonomyDescription:O="",preview:Q}=e,X=(0,j.B)(),$=null==X?void 0:X.sidebar_settings,q=null==$?void 0:$.sidebar_count,z=null!=q?"string"==typeof q?parseInt(q,10):q:null,Z=null==$?void 0:$.sidebar_position,G=null!==z&&z<2||"right"===Z,J=(0,N.f)("".concat(I,":").concat(R),{enabled:!!R,entityDisplayName:
1D}),K=Array.isArray(null==X?void 0:X.breadcrumbs)&&X.breadcrumbs.length>0?X.breadcrumbs:null,Y=(0,C.HP)(null==X||null==(a=X.identity)?void 0:a.homepage),V=K?K.map(e=>{var a,l;return{name:(null==e?void 0:e.label)||(null==e||null==(a=e.link)?void 0:a.title)||"",href:(null==e||null==(l=e.link)?void 0:l.url)||void 0,isHome:(null==e?void 0:e.is_home)===!0||(null==e?void 0:e.is_home)===1}}):[{name:"Home",href:Y,isHome:!0},{name:D,slug:R}],ee=Array.isArray(null==X?void 0:X.posts)?X.posts:[],[ea,el]=(0,t.useState)(ee),[en,et]=(0,t.useState)((null==X||null==(l=X.pagination)?void 0:l.current_page)||1),[er,eo]=(0,t.useState)(!1),[es,ei]=(0,t.useState)(!1),[ed,ec]=(0,t.useState)(!0),[eu,ep]=(0,t.useState)("");(0,t.useEffect)(()=>{var e;el(ee),et((null==X||null==(e=X.pagination)?void 0:e.current_page)||1),(null==X?void 0:X.pagination)?ec((X.pagination.current_page||1)<(X.pagination.total_pages||1)):ec(ee.length>=h.WU)},[R,ee.length,null==X||null==(i=X.pagination)?void 0:i.current_page,null==X||null==(u=X.pagination)?void 0:u.total_pages]);let{tabs:eb,activeTab:em,handleTabChange:eg,allPostTypes:e_,activeTabPostTypes:eh,filteredPosts:ev}=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{initialTab:l="all",includeAllTab:n=!0,pageData:r}=a,[o,s]=(0,t.useState)(l),i=(0,t.useMemo)(()=>{let a=null==r?void 0:r.available_post_types;return Array.isArray(a)&&a.length>0?a:(0,h.P$)(e)},[e,null==r?void 0:r.available_post_types]),d=(0,t.useMemo)(()=>{let a=null==r?void 0:r.available_post_types;return Array.isArray(a)&&a.length>0?y(a.map(e=>({post_type:e})),n):y(e,n)},[e,n,null==r?void 0:r.available_post_types]),c=(0,t.useMemo)(()=>f(o,i,r),[o,i,r]),u=(0,t.useMemo)(()=>x(e,o,i,r),[e,o,i,r]),p=(0,t.useCallback)(e=>{s(e)},[]),b=(0,t.useCallback)((e,a)=>x(e,a||o,i,r),[o,i,r]);return{tabs:d,activeTab:o,handleTabChange:p,allPostTypes:i,activeTabPostTypes:c,filterPostsByTab:b,filteredPosts:u}}(ea,{initialTab:"all",includeAllTab:!0,pageData:X}),ef=(null==X?void 0:X.posts)&&Array.isArray(X.posts)&&X.posts.length>0,ey=(0,t.useMemo)(()=>{var e,a,l;let n=(0,_.aB)(X,{feedType:I,activeTab:em,activeTabPostTypes:eh,enableFeedIfHasPosts:!0,defaultPerPage:h.WU});if(!n)return;let t=n.pagination;if(!t&&ef){let e=h.WU,a=X.posts.length;t=(0,h.k)(a,e)}if(t&&ef){let e=t.per_page||h.WU,a=t.total_posts||0,l=ev.length;"all"!==em?l<=e&&(t={...t,total_pages:1}):a<=e?t={...t,total_pages:1}:1===t.total_pages&&a>e&&(t={...t,total_pages:2})}return{...n,feed_settings:{...n.feed_settings,post_types:eh,auto_load:null!=(l=null==(e=X.feed_settings)?void 0:e.auto_load)&&l,posts_between_components:(null==(a=X.feed_settings)?void 0:a.posts_between_components)||1},posts:ev,pagination:t,slug:R,activeTab:em}},[X,em,eh,ev,R,ef,I]),ex=(0,t.useCallback)(async()=>{if(!er&&ed&&(null==ey?void 0:ey.feed_enabled)){eo(!0);try{var e;let a=(null==(e=ey.pagination)?void 0:e.per_page)||h.WU,l=await (0,w.gf)({slug:R,taxonomy:"category"===I?"category":"tag",currentPage:en,perPage:a,activeTab:em,activeTabPostTypes:eh});el(e=>(0,w.ak)(e,l.posts,ec));let n=en+1;et(n),ec((0,w.ew)(n,l.pagination,l.posts.length,a)),ep("More posts loaded.")}catch(e){console.error("[".concat(I,"] Error fetching more posts:"),e),ec(!1)}finally{eo(!1)}}},[en,er,ed,null==ey?void 0:ey.feed_enabled,null==ey?void 0:ey.pagination,R,em,eh,I]),ew=(0,g.X)({enabled:!!((null==ey?void 0:ey.feed_enabled)&&(null==ey||null==(v=ey.feed_settings)?void 0:v.auto_load)),hasMore:ed,isLoading:er,onLoadMore:ex});(0,t.useEffect)(()=>{if(!eu)return;let e=setTimeout(()=>ep(""),2e3);return()=>clearTimeout(e)},[eu]);let ej=(0,t.useCallback)(async e=>{var a,l,n,t,r;if(eg(e),"all"===e){el(ee),et((null==X||null==(a=X.pagination)?void 0:a.current_page)||1),ec(((null==X||null==(l=X.pagination)?void 0:l.current_page)||1)<((null==X||null==(n=X.pagination)?void 0:n.total_pages)||1));return}let o=f(e,e_,X);if(!ea.some(e=>o.some(a=>a.toLowerCase()===(e.post_type||"").toLowerCase()))){el([]),et(0),ec(!1),eo(!0),ei(!0);try{let a=await (0,w.gf)({slug:R,taxonomy:"category"===I?"category":"tag",currentPage:0,perPage:(null==ey||null==(t=ey.pagination)?void 0:t.per_page)||h.WU,activeTab:e,activeTabPostTypes:o});el(a.posts),et(1),ec((0,w.ew)(1,a.pagination,a.posts.length,(null==ey||null==(r=ey.pagination)?void 0:r.per_page)||h.WU))}catch(a){console.error("[".concat(I,'] Error fetching posts for tab "').concat(e,'":'),a),ec(!1)}finally{eo(!1),ei(!1)}}},[eg,e_,X,ea,R,I,null==ey||null==(T=ey.pagination)?void 0:T.per_page]),eC={...X,tabs:eb,overview_link:null==X?void 0:X.overview_link,activeTab:em,onTabChange:ej},{mainContentBlocks:eA,headerByStyle:eN}=(0,_.us)(eC,{pageLayout:"",feedType:I}),eT={...X,name:D,title:D,description:O},ek=(null==X||null==(P=X.header_design)||null==(W=P.header_style)||null==(S=W.toLowerCase())?void 0:S.replace(/\s+/g,"_"))||"",eF="knowledge_hub"===ek||"knowledgehub"===ek||"branded"===ek||"learning_lab"===ek||"single_learning_lab"===ek||"none"===ek,eS=(0,t.useMemo)(()=>(null==ey?void 0:ey.components)&&Array.isArray(ey.components)&&ey.components.length>0?(0,_.rX)(ey.components):[],[null==ey?void 0:ey.components]),eW=(0,t.useMemo)(()=>ev&&0!==ev.length?(0,_.sI)(ev):[],[ev]),eP=(0,t.useMemo)(()=>{var e,a;return(0,_.R$)(eW,eS,{postsBetweenComponents:(null==ey||null==(e=ey.feed_settings)?void 0:e.posts_between_components)||10,feedEnabled:null==ey?void 0:ey.feed_enabled,componentWrapperClassName:p().feedComponent,isBrandedPodcast:!!(null==ey?void 0:ey.is_branded_podcast),insertAdBetweenPosts:null==ey||null==(a=ey.feed_settings)?void 0:a.posts_between_components,widerCards:G,renderAd:e=>(0,_.Wm)(e,{className:p().adPlaceholderTabletHidden})})},[eW,eS,null==ey?void 0:ey.feed_enabled,null==ey||null==(B=ey.feed_settings)?void 0:B.posts_between_components,null==ey?void 0:ey.is_branded_podcast,G]),eB=null!=(U=null==ey||null==(H=ey.feed_settings)?void 0:H.posts_between_components)?U:0;(0,A.C)({enabled:!!((null==ey?void 0:ey.feed_enabled)&&eB>0&&eP.length>0),runKey:eP.length,delayMs:300});let eH=eW.some(e=>!0===e.is_sponsored);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{style:{width:"100%",maxWidth:G?"100%":"620px",margin:"0 auto"}
1,children:[(0,n.jsx)(c.Q,{items:V,showFollowing:!0,isFollowing:J.isFollowing,onFollowClick:J.handleFollowClick}),!eF&&(0,n.jsxs)("div",{className:k().headerCard,children:[(0,n.jsx)(j.F,{pageData:eT,children:(0,n.jsx)(r.A,{headerDesign:(null==X?void 0:X.header_design)||null,className:k().nestedPageHeader})}),(null==X?void 0:X.overview_link)&&(0,n.jsx)("div",{className:k().headerCardComponents,children:(0,n.jsx)(o.E,{buttons:[{text:"Overview",url:X.overview_link,open_new_tab:!0}],buttonStyle:"primary"})}),"default_no_tabs"!==ek&&eb.length>0&&(0,n.jsx)(s.A,{tabs:eb,activeTab:em,onTabChange:ej,renderBodySeparately:!0,posts:ea,className:"".concat(k().headerCardInner," ").concat(d().headerTabs," ").concat(k().categoryHeaderTabs),mobileTabsClassName:d().categoryHeaderMobileTabs})]})]}),(0,n.jsx)("div",{style:{width:"100%",maxWidth:eH||G?"100%":"620px",margin:"0 auto"},children:(0,n.jsx)("div",{className:p().feedWrapper,style:{maxWidth:eH||G?"100%":"620px"},children:(0,n.jsxs)("main",{className:p().feed,style:{overflow:"visible"},children:[(0,n.jsxs)("div",{style:{width:"100%",maxWidth:G?"100%":"620px"},className:p().feedContntWrap,children:[eN&&(0,n.jsx)("div",{className:k().headerSection,children:(0,n.jsx)("div",{className:p().feedHeader,children:eN})}),eA.map((e,a)=>(0,n.jsx)("div",{children:e},"main-content-".concat(a)))]}),(0,n.jsx)("div",{style:{width:"728px",maxWidth:"100%",margin:"0 auto 20px",textAlign:"center"},className:p().feedInnWrap,children:(0,n.jsx)(F.A,{id:"feed-driver",adunit:"35215761/formedics-general",width:3,height:1})}),(0,n.jsxs)("div",{style:{width:"100%",maxWidth:eB||eH||G?"100%":"620px"},children:[(null==ey?void 0:ey.feed_enabled)&&(0,n.jsx)("div",{className:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:eu}),(null==ey?void 0:ey.feed_enabled)&&eP.length>0&&(0,n.jsx)(n.Fragment,{children:eP}),"tag"===I&&0===ea.length&&!er&&(0,n.jsx)("div",{style:{padding:"2rem",textAlign:"center",color:"#666"},children:(0,n.jsx)("p",{children:"No posts found."})}),es&&(0,n.jsx)(b.A,{message:"Loading posts..."}),er&&!es&&(null==ey||null==(L=ey.feed_settings)?void 0:L.auto_load)&&(0,n.jsx)(b.A,{}),(null==ey?void 0:ey.feed_enabled)&&(null==ey||null==(E=ey.feed_settings)?void 0:E.auto_load)&&ed&&!er&&(0,n.jsx)("div",{ref:ew,style:{height:"20px"}}),(null==ey?void 0:ey.feed_enabled)&&!(null==ey||null==(M=ey.feed_settings)?void 0:M.auto_load)&&ed&&(0,n.jsx)(m.c,{onClick:ex,isLoading:er})]})]})})})]})}},93852:e=>{e.exports={breadcrumb:"Breadcrumb_breadcrumb__p6Wtu","breadcrumb-home":"Breadcrumb_breadcrumb-home__ms9xb","breadcrumb-home-icon":"Breadcrumb_breadcrumb-home-icon__2cb5D","breadcrumb-item":"Breadcrumb_breadcrumb-item__NByQI","breadcrumb-current":"Breadcrumb_breadcrumb-current__81O3P","breadcrumb-icon":"Breadcrumb_breadcrumb-icon__IcdEy","breadcrumb-following":"Breadcrumb_breadcrumb-following__ooWXD","breadcrumb-following-icon":"Breadcrumb_breadcrumb-following-icon__etQgl","breadcrumb-followiing":"Breadcrumb_breadcrumb-followiing__0Ep5o",followSlot:"Breadcrumb_followSlot__3NpOb"}}}]);
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.