1"use strict";(self.webpackChunknpf_website=self.webpackChunknpf_website||[]).push([[3682],{1398:function(e,t,n){n.r(t),n.d(t,{Head:function(){return A},default:function(){return M}});var i=n(6540),r=n(8007),o=n(9367),l=n(1701),a=n(5374),d=n(4885),s=n(4702),c=n(4166),u=n(6164),g=n(2616),m=n(8711),p=n(396),f=n(3894);const h=(0,m.default)(f.eY).withConfig({displayName:"ResourceLibrarystyles__GridHeaderContainer",componentId:"sc-1hjmrad-0"})(["margin-top:unset;padding-bottom:3.2rem;h2{grid-column:2 / 12;font-size:2rem;font-weight:600;line-height:1.35;color:var(--content-background-dark-blue);margin-bottom:14px;@media ","{font-size:2.4rem;line-height:1.375;margin-bottom:12px;}}"],p.db.laptopS),w=(0,m.default)(f.eY).withConfig({displayName:"ResourceLibrarystyles__PaginationContainer",componentId:"sc-1hjmrad-1"})(["padding-bottom:4.8rem;"]),y=m.default.div.withConfig({displayName:"ResourceLibrarystyles__FilterRowContainer",componentId:"sc-1hjmrad-2"})(["margin-top:-2.4rem;margin-bottom:2.4rem;"]),_=(0,m.default)(f.eY).withConfig({displayName:"ResourceLibrarystyles__FilterIndicatorBarContainer",componentId:"sc-1hjmrad-3"})(["margin-top:-2.4rem;margin-bottom:2.4rem;"]);var v=n(5141),b=n(4388),x=n(6809),I=n(3128),R=n(6838),E=n(7787),S=n(9750),C=n(1164),L=n(8538),D=n(8100);const A=e=>{let{pageContext:t}=e;return i.createElement(D.A,{adsData:t.adsData,targets:t.pageTargets})},T=[{value:"A->Z",label:"AâZ"},{value:"Z->A",label:"ZâA"}],k=e=>{const t=[];return e.map((e=>{t.push({value:e.node.data.topic,label:e.node.data.topic})})),t.sort(((e,t)=>e.label.localeCompare(t.label)))},F=e=>{let{filter:t,clearFilter:n,isSearch:r=!1}=e;return i.createElement(i.Fragment,null,t&&i.createElement(v.m,null,i.createElement(v.d5,null,r?`${String.fromCharCode(8220)}${t}${String.fromCharCode(8220)}`:t),i.createElement(v.YF,{onClick:e=>n(t,e)},i.createElement(b.P2,null))))},N=e=>{let{topicFilter:t,searchInput:n,clearFilter:r}=e;return i.createElement(v.rt,{isEnabled:t||n},i.createElement(v.PF,null,"Showing results for: "),i.createElement(F,{filter:t,clearFilter:r}),i.createElement(F,{filter:n,clearFilter:r,isSearch:!0}))},P=e=>{let{gridItems:t,title:n,topics:l=[],showFilters:a=!1,firstItemForPage:s=null,lastItemForPage:c=null,paginationChangeAction:u=null,setFilteredItemsCount:m,search:f={},location:w}=e;const{0:v,1:b}=(0,i.useState)(null),{0:R,1:E}=(0,i.useState)(""),{0:C,1:L}=(0,i.useState)(!1),{0:D,1:A}=(0,i.useState)(T[0]),{0:F,1:P}=(0,i.useState)([]),M=(0,i.useRef)(!0),z=(0,i.useRef)(null==w?void 0:w.pathname),H=t.filter((e=>{var t,n,i;const r=null===(t=e.topics)||void 0===t?void 0:t.map((e=>{var t,n,i,r;return null===(t=e.topic)||void 0===t||null===(n=t.document)||void 0===n||null===(i=n.data)||void 0===i||null===(r=i.topic)||void 0===r?void 0:r.toUpperCase()})),o=!v||r&&r.includes(v.toUpperCase()),l=!R||e.title.text.toUpperCase().includes(R.toUpperCase())||(null===(n=e.summary)||void 0===n||null===(i=n.text)||void 0===i?void 0:i.toUpperCase().includes(R.toUpperCase()))||e.body_copy.text.toUpperCase().includes(R.toUpperCase());return o&&l})),B=H.sort(((e,t)=>"A->Z"===D.value?e.title.text.localeCompare(t.title.text):"Z->A"===D.value?t.title.text.localeCompare(e.title.text):void 0)),O=a?B.slice(s,c):B,G=(0,i.useMemo)((()=>({primary:{layout_type:"3 Column"},items:O})),[O]);return(0,i.useEffect)((()=>{f.topic&&b(f.topic),f.search&&E(f.search)}),[f]),(0,i.useEffect)((()=>{const e=null==w?void 0:w.pathname,t=Object.keys(f).length>0;z.current===e||t||(b(null),E(""),z.current=e)}),[null==w?void 0:w.pathname,f]),(0,i.useEffect)((()=>{f.topic||f.search||!v&&!R||(b(null),E(""))}),[f,v,R]),(0,i.useEffect)((()=>{M.current?M.current=!1:((e,t)=>{const n=new URLSearchParams(window.location.search);let i=!1;if(e?n.get("topic")!==e&&(n.set("topic",e),i=!0):n.has("topic")&&(n.delete("topic"),i=!0),t?n.get("search")!==t&&(n.set("search",t),i=!0):n.has("search")&&(n.delete("search"),i=!0),i){const e=n.toString(),t=e?`?${e}`:"";(0,r.oo)(t)}})(v,R)}),[v,R]),(0,i.useEffect)((()=>{L(v||""!==R)})),(0,i.useEffect)((()=>{a&&m(H.length)}),[H,a]),i.createElement(i.Fragment,null,i.createElement(h,{id:a?d.yK.RESOURCE_LIBRARY:void 0},i.createElement("h2",null,n)),a&&i.createElement(y,null,i.createElement(x.A,null,i.createElement(S.DO,null,i.createElement(S.f8,null,"Topic"),i.createElement(o.Ay,{options:k(l),value:v?{value:v,label:v}:null,styles:p.FT,width:"240px",marginRight:"10px",onChange:e=>null!=e&&e.value?b(e.value):b(null)})),i.createElement(S.DO,null,i.createElement(S.f8,null,"Sort"),i.createElement(o.Ay,{options:T,value:D,defaultValue:T[0],styles:p.FT,width:"180px",marginRight:"10px",onChange:e=>A({value:e.value,label:e.label})})),i.createElement(S.DO,null,i.createElement(S.f8,null,"Search"),i.createElement("form",null,i.createElement(I.gq,{placeholder:"Search",onChange:e=>E(e.target.value),value:R,name:"search"}))))),a&&C&&i.createElement(_,null,i.createElement(N,{topicFilter:v,searchInput:R,clearFilter:(e,t)=>{t.preventDefault(),e===v?b(null):e===R&&E("")}})),i.createElement(g.A,{data:G}))};var M=(0,c.A)((e=>{var t,n,r,o,c,g,m,p,f,h,y,_;let{data:v,search:b={},location:x}=e;const{0:I,1:S}=(0,i.useState)(null),{0:D,1:A}=(0,i.useState)(0),{0:T,1:k}=(0,i.useState)(15),F=v.prismicResourceLibraryPage.data,N=v.allPrismicResourceLibraryTopic.edges;if(!F)return null;const M=null!==(t=F.twitter_image)&&void 0!==t&&t.url?F.twitter_image:null,z=null!==(n=F.facebook_image)&&void 0!==n&&n.url?F.facebook_image:null,H=null!==(r=F.meta_title)&&void 0!==r&&r.text?F.meta_title.text:"Resource Library",B=null!==(o=null===(c=F.seo_embed_code)||void 0===c?void 0:c.text)&&void 0!==o?o:null,O=F.meta_description,G=F.meta_keywords,U=null===(g=v.prismicGeneralSiteSettings.data.subpages_google_ad_tag)||void 0===g||null===(m=g.document)||void 0===m?void 0:m.data.ad_slot_name,V=v.allPrismicResourceLibraryItem.edges,$=null!==(p=null===(f=F.title)||void 0===f?void 0:f.text)&&void 0!==p?p:"Resource Library",j=F.hero_text,Y=F.body_copy&&F.body_copy.richText,q=((0,i.useMemo)((()=>{var e,t;return{body_copy:{richText:null!==(e=null===(t=F.highlight_resource_items_caption)||void 0===t?void 0:t.richText)&&void 0!==e?e:null}}}),[F.highlight_resource_items_caption]),(0,i.useMemo)((()=>F.highlight_resource_items.map((e=>{var t,n,i,r,o,l,a,d,s,c,u,g,m,p,f,h;const w=e.highlight_resource_library_item.document.data,y=null!==(t=e.highlight_resource_library_item.document.data.image)&&void 0!==t?t:{};return{title:{text:null!==(n=null===(i=w.page_title)||void 0===i?void 0:i.text)&&void 0!==n?n:""},summary:{richText:null!==(r=null===(o=w.summary)||void 0===o?void 0:o.richText)&&void 0!==r?r:null,text:null!==(l=null===(a=w.summary)||void 0===a?void 0:a.text)&&void 0!==l?l:null},body_copy:{text:null!==(d=null===(s=w.body_copy)||void 0===s?void 0:s.text)&&void 0!==d?d:""},image:y?{alt:y.alt,url:null!==(c=null===(u=y.thumbnails)||void 0===u||null===(g=u.resource_library)||void 0===g?void 0:g.url)&&void 0!==c?c:null,thumbnails:{mobile:{url:null!==(m=null===(p=y.thumbnails)||void 0===p||null===(f=p.resource_library_mobile)||void 0===f?void 0:f.url)&&void 0!==m?m:null}}}:null,cta_link_text:null!==(h=w.resource_library_cta_text)&&void 0!==h&&h.text&&""!==w.resource_library_cta_text.text.trim()?w.resource_library_cta_text.text:"Get your guide",cta_link:{link_type:"Document",type:"resource_library_item",uid:e.highlight_resource_library_item.uid,target:"_blank"}}}))),[F.highlight_resource_items])),K=(0,i.useMemo)((()=>V.map((e=>{var t,n,i,r,o,l,a,d,s,c,u,g,m,p,f;let{node:h}=e;const w=h.data,y=h.data.image;return{title:{text:null!==(t=null===(n=w.page_title)||void 0===n?void 0:n.text)&&void 0!==t?t:""},summary:{richText:null!==(i=null===(r=w.summary)||void 0===r?void 0:r.richText)&&void 0!==i?i:null,text:null!==(o=null===(l=w.summary)||void 0===l?void 0:l.text)&&void 0!==o?o:null},body_copy:{text:null!==(a=null===(d=w.body_copy)||void 0===d?void 0:d.text)&&void 0!==a?a:""},topics:w.topics,image:y?{alt:y.alt,url:null!==(s=null===(c=y.thumbnails)||void 0===c||null===(u=c.resource_library)||void 0===u?void 0:u.url)&&void 0!==s?s:null,thumbnails:{mobile:{url:null!==(g=null===(m=y.thumbnails)||void 0===m||null===(p=m.resource_library_mobile)||void 0===p?void 0:p.url)&&void 0!==g?g:null}}}:null,cta_link_text:null!==(f=w.resource_library_cta_text)&&void 0!==f&&f.text&&""!==w.resource_library_cta_text.text.trim()?w.resource_library_cta_text.text:"Get your guide",cta_link:{link_type:"Document",type:"resource_library_item",uid:h.uid,target:"_blank"}}}))),[V]),Z=F.highlight_resource_items.length>0,W=V.length>0,J=null!==(h=F.resource_list_heading)&&void 0!==h&&h.text&&""!==F.resource_list_heading.text.trim()?F.resource_list_heading.text:"Discover All of Our Psoriatic Disease Resources",Q=null!==(y=F.highlight_resource_items_caption)&&void 0!==y&&y.text&&""!==(null===(_=F.highlight_resource_items_caption)||void 0===_?void 0:_.text.trim())?F.highlight_resource_items_caption.text:"Download One of These Popular Resources",X=F.body;return i.createElement(i.Fragment,null,i.createElement(l.A,{seo:{description:O,keywords:G,title:H,twitter_image:M,facebook_image:z,seo_embed_code:B}}),i.createElement(a.A,null,i.createElement(u.A,{pageTitle:$,heroText:j,heroImage:F.hero_image,heroGraphic:"Disease / Treatment",halfHeight:!0}),Y&&i.createElement(E.A,{data:F}),Z&&i.createElement(P,{gridItems:q,title:Q}),W&&i.createElement(i.Fragment,null,i.createElement(P,{gridItems:K,title:J,topics:N,showFilters:!0,firstItemForPage:D,lastItemForPage:T,paginationChangeAction:(0,d.r7)(d.yK.RESOURCE_LIBRARY),setFilteredItemsCount:S,search:b,location:x}),i.createElement(w,null,i.createElement(s.A,{itemCount:I||K.length,itemsPerPage:15,setFirstItemForPage:A,setLastItemForPage:k,paginationChangeAction:(0,d.r7)(d.yK.RESOURCE_LIBRARY),scrollToAnchorId:d.yK.RESOURCE_LIBRARY}))),X&&X.map((e=>i.createElement(R.A,{key:e.id,block:e}))),U&&i.createElement(C.z3,null,i.createElement(L.A,{divId:`div-${U}`}))))}))},5141:function(e,t,n){n.d(t,{PF:function(){return g},YF:function(){return p},bx:function(){return a},d5:function(){return f},f3:function(){return l},he:function(){return s},k6:function(){return d},m:function(){return m},os:function(){return c},rt:function(){return u}});var i=n(8711),r=n(396),o=n(3894);const l=(0,i.default)(o.Kv).withConfig({displayName:"MediaLibrarystyles__HeroTitle",componentId:"sc-104dv65-0"})(["grid-column:2 / 3;padding:40px 0 14px;@media ","{padding:50px 0 20px;}@media ","{width:calc(100% - 378px);}"],r.db.tabletL,r.db.laptopG),a=(0,i.default)(o.NN).withConfig({displayName:"MediaLibrarystyles__HeroBody",componentId:"sc-104dv65-1"})(["grid-column:2 / 3;@media ","{grid-column:span 3;}> a{margin-top:24px;margin-bottom:24px;display:inline-flex;width:100%;max-width:100%;> span:first-child{word-break:break-word;overflow-wrap:break-word;flex-shrink:1;min-width:0;}@media ","{width:max-content;}}"],r.db.laptopG,r.db.tabletL),d=i.default.h2.withConfig({displayName:"MediaLibrarystyles__MediaLibraryFeaturedTitle",componentId:"sc-104dv65-2"})(["grid-column:2 / 3;font-family:'Open Sans',sans-serif;font-style:normal;font-weight:300;font-size:28px;line-height:1.35;color:var(--highlight-blue);@media ","{font-size:35px;}[data-layout='two-column'] &{@media ","{grid-column:span 3;}}"],r.db.tabletL,r.db.laptopG),s=i.default.h2.withConfig({displayName:"MediaLibrarystyles__MediaLibrarySectionTitle",componentId:"sc-104dv65-3"})(["grid-column:2 / 3;font-family:'Open Sans',sans-serif;font-style:normal;font-weight:300;font-size:28px;line-height:1.35;color:var(--highlight-blue);padding-top:38px;@media ","{font-size:48px;padding-top:50px;}@media ","{padding-top:75px;}[data-layout='two-column'] &{@media ","{grid-column:span 3;}}"],r.db.tabletL,r.db.laptopG,r.db.laptopG),c=i.default.div.withConfig({displayName:"MediaLibrarystyles__ItemsGridContainer",componentId:"sc-104dv65-4"})(["grid-column:2 / 3;display:flex;flex-flow:row wrap;justify-content:flex-start;"]),u=i.default.div.withConfig({displayName:"MediaLibrarystyles__FilterIndicatorBar",componentId:"sc-104dv65-5"})(["grid-column:2 / 3;height:max-content;background:var(--content-background-dark-blue);display:",";flex-direction:column;margin-top:25px;align-items:center;@media ","{height:70px;flex-direction:row;}"],(e=>{let{isEnabled:t}=e;return t?"flex":"none"}),r.db.tabletL),g=i.default.span.withConfig({displayName:"MediaLibrarystyles__ShowingResultsFor",componentId:"sc-104dv65-6"})(["font-size:2rem;line-height:1.65;color:var(--graphic-accent-blue-2);padding:0 15px 0 18px;@media ","{font-size:2.4rem;}"],r.db.tabletL),m=i.default.div.withConfig({displayName:"MediaLibrarystyles__FilterIndicator",componentId:"sc-104dv65-7"})(["display:flex;flex-direction:row;align-items:center;margin-right:24px;"]),p=i.default.div.withConfig({displayName:"MediaLibrarystyles__CloseXContainer",componentId:"sc-104dv65-8"})([":hover{cursor:pointer;}"]),f=i.default.span.withConfig({displayName:"MediaLibrarystyles__FilterIndicatorText",componentId:"sc-104dv65-9"})(["font-size:2rem;line-height:33px;display:flex;align-items:center;color:white;margin-right:10px;@media ","{font-size:2.4rem;}"],r.db.tabletL);i.default.button.withConfig({displayName:"MediaLibrarystyles__FilterIndicatorCloseButton",componentId:"sc-104dv65-10"})([""])},6164:function(e,t,n){n.d(t,{A:function(){return h}});var i=n(6540),r=n(8711),o=n(396),l=n(3894);const a=r.default.div.withConfig({displayName:"LandingPageHerostyles__LandingPageHero",componentId:"sc-151qnco-0"})(["display:grid;grid-template-columns:32px repeat(7,1fr) 0.5fr 0.5fr repeat(2,1fr) 32px;grid-template-rows:0px max-content "," 0px;padding:",";@media ","{padding-top:",";grid-template-columns:1fr repeat(6,1fr) 0.75fr 0.25fr repeat(4,1fr);grid-template-rows:0px max-content "," auto;max-width:1317px;}@media ","{grid-template-columns:1fr repeat(8,1fr) 0.75fr 0.25fr 1fr 1fr;grid-template-rows:93px max-content ",";}"],(e=>{let{halfHeight:t}=e;return t?"26px":"52px"}),(e=>{let{$hasBreadcrumb:t}=e;return t?"0 0 31px 0":"31px 0"}),o.db.mobileL,(e=>{let{$hasBreadcrumb:t}=e;return t?"0":"56px"}),(e=>{let{halfHeight:t}=e;return t?"16.5px":"33px"}),o.db.tabletG,(e=>{let{halfHeight:t}=e;return t?"64px":"128px"})),d=r.default.div.withConfig({displayName:"LandingPageHerostyles__TextRegion",componentId:"sc-151qnco-1"})(["grid-column:2 / 13;grid-row:2;@media ","{grid-column:2 / 7;grid-row:2;}> a{display:inline-flex;width:100%;max-width:100%;> span:first-child{word-break:break-word;overflow-wrap:break-word;flex-shrink:1;min-width:0;}@media ","{width:max-content;margin-top:16px;}}"],o.db.tabletG,o.db.tabletG),s=(0,r.default)(l.Kv).withConfig({displayName:"LandingPageHerostyles__PageTitle",componentId:"sc-151qnco-2"})(["font-style:normal;padding-top:24px;@media ","{padding-top:unset;padding-right:24px;font-size:3.6em;}@media ","{font-size:4.8rem;}@media ","{font-size:6rem;}"],o.db.tabletG,o.db.laptopS,o.db.laptopL),c=(0,r.default)(l.NN).withConfig({displayName:"LandingPageHerostyles__HeroText",componentId:"sc-151qnco-3"})(["margin-top:14px;padding-bottom:24px;@media ","{padding-right:24px;margin-top:16px;}@media ","{padding-bottom:unset;}"],o.db.tabletG,o.db.desktop),u=r.default.div.withConfig({displayName:"LandingPageHerostyles__HeroGraphicContainer",componentId:"sc-151qnco-4"})(["grid-column:5 / 13;grid-row:3 / 5;@media ","{grid-row:3;grid-column:6 / 11;}@media ","{grid-row:1;grid-column:8 / 13;}"],o.db.mobileL,o.db.tabletG),g=r.default.img.withConfig({displayName:"LandingPageHerostyles__HeroImage",componentId:"sc-151qnco-5"})(["grid-column:2 / 10;grid-row:4 / 6;border-radius:5px;"," @media ","{grid-column:4 / 9;}@media ","{grid-column:7 / 11;grid-row:2 / 4;}"],(e=>{let{$isBrandPage:t}=e;return t?"border: 1px solid #000;":""}),o.db.mobileL,o.db.tabletG);var m=n(4388),p=n(5481),f=n(3119);var h=e=>{let{pageTitle:t,heroText:n,heroImage:r,heroGraphic:o,halfHeight:l=!1,includeCta:h=!1,ctaLink:w=null,ctaText:y=null,isBrandPage:_=!1,hasBreadcrumb:v=!1}=e;return i.createElement(a,{halfHeight:l,$hasBreadcrumb:v},i.createElement(u,null,{"Disease / Treatment":i.createElement(m.RH,null),"Community / Support":i.createElement(m.AT,null),"Foundation / About Us":i.createElement(m.QE,null),"Research / Medical":i.createElement(m.e9,null),"Advance Online":i.createElement(m.DO,null)}[o]),(null==r?void 0:r.url)&&i.createElement(g,{src:r.url,alt:r.alt,$isBrandPage:_}),i.createElement(d,null,i.createElement(s,null,t),i
1.createElement(c,null,i.createElement(f.A,{field:n.richText})),h&&w&&y&&i.createElement(p.A,{text:y,link:w})))}},8100:function(e,t,n){n.d(t,{A:function(){return a}});var i=n(6540),r=n(396);const o=["MiddleBanner","BottomoBanner","BottomBanner","ATFBanner","Sidekick","DesktopOnly"];var l=e=>{let{adsData:t=[],targets:n={},suppressAds:l=!1}=e;if(l){const e="\n if (typeof window !== 'undefined' && window.googletag && typeof window.googletag.destroySlots === 'function') {\n window.googletag.destroySlots();\n }\n // ...any other clean up...\n ";return"undefined"!=typeof window?i.createElement("script",{dangerouslySetInnerHTML:{__html:e}}):null}const a=JSON.stringify((t||[]).map((e=>e.divId)).filter(Boolean)),d=JSON.stringify(t||[]),s=JSON.stringify(o),c=`\n if (typeof window !== 'undefined') {\n window.googletag = window.googletag || { cmd: [] };\n window.gptRefreshTimer = window.gptRefreshTimer || null;\n window.lastRefreshTime = window.lastRefreshTime || 0;\n window.__RIGHT_RAIL_FULL_VISIBILITY_MIN_VW = ${r._Z};\n window.__gptAdsData = ${d};\n\n window.googletag.cmd.push(() => {\n const adsDataDivIds = ${a};\n const deferredSubstrings = ${s};\n\n const isRightRailDivId = divId =>\n typeof divId === 'string' && divId.indexOf('div-right-rail-') === 0;\n\n const isRightRailViewportEligible = () => {\n if (typeof window.isRightRailViewportEligible === 'function') {\n return window.isRightRailViewportEligible();\n }\n const minVw =\n window.__RIGHT_RAIL_FULL_VISIBILITY_MIN_VW != null\n ? window.__RIGHT_RAIL_FULL_VISIBILITY_MIN_VW\n : 1783;\n return window.innerWidth >= minVw;\n };\n\n const slotIdMatchesDeferredName = slotId => {\n if (!slotId) return false;\n for (let i = 0; i < deferredSubstrings.length; i++) {\n if (String(slotId).indexOf(deferredSubstrings[i]) !== -1) {\n return true;\n }\n }\n return false;\n };\n\n const shouldSetLazyloadTargeting = (divId, slotId, deferredFlag) => {\n if (isRightRailDivId(divId)) return false;\n if (deferredFlag === true) return true;\n return slotIdMatchesDeferredName(slotId);\n };\n\n // Query-param navigations (e.g. Advance ?page=2) remount Head/DfpSlotsScript\n // but intentionally do NOT destroySlots (gatsby-browser onRouteUpdate).\n // Skip redefine/reset so we don't hit "Div element is already associated\n // with another slot" or reset the display barrier mid-page.\n window.gptSlots = window.gptSlots || {};\n const requiredDivIds = (adsDataDivIds || []).filter(id => {\n if (!isRightRailDivId(id)) return true;\n return isRightRailViewportEligible();\n });\n const alreadyDefined =\n window.gptInitialized === true &&\n !!window.gptSlots['anchor'] &&\n requiredDivIds.every(id => !!window.gptSlots[id]);\n if (alreadyDefined) {\n if (typeof window.npfAdsLog === 'function') {\n window.npfAdsLog('skip', { reason: 'alreadyDefined' });\n }\n return;\n }\n\n // Fresh page setup (initial load or pathname change after destroySlots).\n window.gptInitialized = false;\n\n // setConfig targeting merges keys; clear first so prior-page KVPs\n // (e.g. Homepage) do not stick across SPA navigations.\n window.googletag.setConfig({\n targeting: null,\n });\n window.googletag.setConfig({\n singleRequest: true,\n lazyLoad: {\n fetchMarginPercent: 100,\n renderMarginPercent: 50,\n mobileScaling: 2.0,\n },\n targeting: ${JSON.stringify(n)},\n });\n if (typeof window.npfAdsLog === 'function') {\n window.npfAdsLog('config', {\n singleRequest: true,\n lazyLoad: {\n fetchMarginPercent: 100,\n renderMarginPercent: 50,\n mobileScaling: 2.0,\n },\n });\n }\n\n const REFRESH_INTERVAL = 45000;\n const MIN_REFRESH_DELAY = 1000;\n\n if (window.gptRefreshTimer) {\n clearInterval(window.gptRefreshTimer);\n window.gptRefreshTimer = null;\n }\n\n const refreshAds = () => {\n if (document.hasFocus()) {\n const now = Date.now();\n if (now - window.lastRefreshTime >= MIN_REFRESH_DELAY) {\n if (typeof window.refreshPageSlotsNow === 'function') {\n window.refreshPageSlotsNow();\n }\n }\n }\n };\n\n const startRefreshTimer = () => {\n if (!window.gptRefreshTimer) {\n window.gptRefreshTimer = setInterval(refreshAds, REFRESH_INTERVAL);\n }\n };\n\n const stopRefreshTimer = () => {\n if (window.gptRefreshTimer) {\n clearInterval(window.gptRefreshTimer);\n window.gptRefreshTimer = null;\n }\n };\n\n document.addEventListener('visibilitychange', () => {\n if (document.hidden) {\n stopRefreshTimer();\n } else {\n startRefreshTimer();\n }\n });\n\n startRefreshTimer();\n\n const defineAdFromConfig = (ad, options) =>
1 {\n if (!ad || !ad.divId) return null;\n const divId = ad.divId;\n if (window.gptSlots[divId]) {\n return window.gptSlots[divId];\n }\n\n const isRightRail = isRightRailDivId(divId);\n // Sidebar is never defined in the initial loop (no AdSlot DIV yet).\n // RightRail late-defines via __gptDefineAdFromConfig after mount.\n if (isRightRail) {\n if (!options || !options.allowRightRail) {\n return null;\n }\n if (!isRightRailViewportEligible()) {\n return null;\n }\n if (!document.getElementById(divId)) {\n return null;\n }\n }\n\n const sizeMappingBuilder = window.googletag.sizeMapping();\n (ad.sizeMapping || []).forEach(pair => {\n const viewportWidth = pair[0];\n const size = pair[1];\n sizeMappingBuilder.addSize([viewportWidth, 0], [size]);\n });\n const sizeMapping = sizeMappingBuilder.build();\n\n const slot = window.googletag\n .defineSlot(ad.slotId, ad.sizes, divId)\n .defineSizeMapping(sizeMapping);\n\n if (isRightRail) {\n slot.setConfig({\n safeFrame: {\n forceSafeFrame: true,\n },\n });\n slot._divId = divId;\n } else if (shouldSetLazyloadTargeting(divId, ad.slotId, ad.deferred === true)) {\n slot.setConfig({\n targeting: {\n lazyload: 'true',\n },\n });\n slot._divId = divId;\n }\n\n slot.addService(window.googletag.pubads());\n window.gptSlots[divId] = slot;\n return slot;\n };\n\n window.__gptDefineAdFromConfig = ad =>\n defineAdFromConfig(ad, { allowRightRail: true });\n\n ${(t||[]).map((e=>`\n try {\n defineAdFromConfig(${JSON.stringify(e)});\n } catch (error) {\n console.error('Error defining slot for ${e.divId}:', error);\n }\n `)).join("")}\n\n if (!window.gptSlots['anchor']) {\n try {\n const anchorMapping = window.googletag.sizeMapping()\n .addSize([768, 0], [728, 90])\n .addSize([0, 0], [320, 50])\n .build();\n\n const anchorSlot = window.googletag\n .defineSlot('/13970653/anchor', [[728, 90], [320, 50]], 'anchor')\n .defineSizeMapping(anchorMapping)\n .setConfig({\n targeting: {\n anchor_position: 'bottom',\n },\n })\n .addService(window.googletag.pubads());\n window.gptSlots['anchor'] = anchorSlot;\n } catch (error) {\n console.error('Error defining anchor slot:', error);\n }\n }\n\n window.googletag.enableServices();\n try {\n if (!window.__adSlotsDisplayed) {\n window.__adSlotsDisplayed = new Set();\n }\n\n const rightRailDivIds = Object.keys(window.gptSlots).filter(\n id => id.indexOf('div-right-rail-') === 0\n );\n const configuredRightRailDivIds = (adsDataDivIds || []).filter(\n id => id.indexOf('div-right-rail-') === 0\n );\n const rightRailDivId =\n rightRailDivIds[0] || configuredRightRailDivIds[0] || null;\n const pageDivIds = Array.from(\n new Set([\n ...(adsDataDivIds || []),\n 'anchor',\n ...rightRailDivIds,\n ...configuredRightRailDivIds,\n ])\n );\n\n if (typeof window.registerPageAdSlots === 'function') {\n window.registerPageAdSlots(pageDivIds, {\n rightRailDivId,\n });\n }\n } catch (e) {\n console.error('Error registering page ad slots:', e);\n }\n\n window.gptInitialized = true;\n });\n }\n `;return"undefined"!=typeof window?i.createElement("script",{dangerouslySetInnerHTML:{__html:c}}):null};var a=e=>{let{adsData:t,targets:n,suppressAds:r=!1}=e;return i.createElement(i.Fragment,null,i.createElement("script",{src:"https://securepubads.g.doubleclick.net/tag/js/gpt.js",async:!0}),i.createElement(l,{adsData:t,targets:n,suppressAds:r}))}},9750:function(e,t,n){n.d(t,{Av:function(){return s},Cv:function(){return a},DO:function(){return g},K8:function(){return d},b:function(){return f},bx:function(){return u},f3:function(){return c},f8:function(){return m},nX:function(){return l},os:function(){return p}});var i=n(8711),r=n(396),o=n(3894);n(4388);const l=i.default.div.withConfig({displayName:"ProductDirectorystyles__HeroRegion",componentId:"sc-1r4kgcl-0"})(["grid-column:2 / 3;display:flex;flex-direction:column;justify-content:center;@media ","{flex-direction:row;justify-content:space-between;}"],r.db.tabletL),a=i.default.img.withConfig({displayName:"ProductDirectorystyles__HeroImage",componentId:"sc-1r4kgcl-1"})(["@media ","{margin-top:50px;width:317px;}"],r.db.tabletL),d=i.default.div.withConfig({displayName:"ProductDirectorystyles__TextColumn",componentId:"sc-1r4kgcl-2"})(["@media ","{flex:0 1 70%;padding-right:20px;}"],r.db.tabletL),s=i.default.div.withConfig({displayName:"ProductDirectorystyles__ImageColumn",componentId:"sc-1r4kgcl-3"})(["display:flex;flex-direction:row;justify-content:center;@media ","{flex-direction:column;justify-content:flex-start;flex:0 0 30%;}"],r.db.tabletL),c=(0,i.default)(o.Kv).withConfig({displayName:"ProductDirectorystyles__HeroTitle",componentId:"sc-1r4kgcl-4"})(["padding:40px 0 14px;@media ","{padding:50px 0 20px;}"],r.db.tabletL),u=(0,i.default)(o.NN).withConfig({displayName:"ProductDirectorystyles__HeroBody",componentId:"sc-1r4kgcl-5"})(["p{margin-bottom:2rem;padding-right:32px;}"]),g=i.default.div.withConfig({displayName:"ProductDirectorystyles__FilterLabelSelectPair",componentId:"sc-1r4kgcl-6"})(["display:flex;flex-direction:column;"]),m=i.default.span.withConfig({displayName:"ProductDirectorystyles__FilterLabel",componentId:"sc-1r4kgcl-7"})(["font-style:normal;font-weight:bold;font-size:1.4rem;line-height:1.71;letter-spacing:0.02em;color:var(--content-background-dark-blue);"]),p=(i.default.h2.withConfig({displayName:"ProductDirectorystyles__ProductDirectorySectionTitle",componentId:"sc-1r4kgcl-8"})(["grid-column:2 / 3;font-family:'Open Sans',sans-serif;font-style:normal;font-weight:300;font-size:2.8rem;line-height:1.35;color:var(--highlight-blue);padding-top:38px;@media ","{font-size:4.8rem;}"],r.db.tabletL),i.default.div.withConfig({displayName:"ProductDirectorystyles__ItemsGridContainer",componentId:"sc-1r4kgcl-9"})(["grid-column:2 / 3;display:grid;grid-template-columns:1fr;justify-content:space-between;column-gap:32px;@media screen and (min-width:870px){grid-template-columns:repeat(auto-fill,400px);}@media screen and (min-width:1350px){grid-template-columns:repeat(auto-fill,311px);}> a:nth-last-child(-n+4){a{margin-bottom:0;}}"])),f=i.default.div.withConfig({displayName:"ProductDirectorystyles__GreyFill",componentId:"sc-1r4kgcl-10"})(["margin-top:32px;padding-top:51px;width:100%;height:max-content;background-color:var(--content-background-light);"])}}]); 2//# sourceMappingURL=component---src-templates-resource-library-landing-page-jsx-3528b5570e0da84ec369.js.map
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.