1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3026],{15057:e=>{e.exports={alphanumericwrapper:"AlphaNumericWrapper_alphanumericwrapper__7Oe1V","alphanumericwrapper-title":"AlphaNumericWrapper_alphanumericwrapper-title__HL_NU"}},24333:(e,a,r)=>{"use strict";r.d(a,{A:()=>d});var t=r(80263),i=r(36497),s=r(53239),l=r(52677),n=r(62657),c=r.n(n);let o=({data:e,filterFunction:a,selectedValue:r,slug:n})=>{let[o,d]=(0,s.useState)("A"),p=r||o;return(0,t.jsx)("div",{className:c().wrapper,role:"navigation","aria-label":"A-Z Pagination Filter",children:Object.keys(e).map(s=>{let o=e[s],h=o?.url?o.url:"";return(0,t.jsx)(i.A,{className:c().card,children:(0,t.jsx)("a",{href:(0,l.L)(`${n}${h}`),className:`${p===o?.label?c().selected:""} ${o?.isDisabled?c().disabled:""}`,"data-testid":`a-z-${o?.label}`,onClick:e=>{!r&&d(o?.label),a(e)},tabIndex:o?.isDisabled?-1:0,children:o?.label},o?.label)},o?.label)})})};o.defaultProps={selectedValue:void 0,slug:void 0};let d=o},29635:e=>{e.exports={container:"SearchHeader_container___pA9H",wrapper:"SearchHeader_wrapper__r3wfH","search-wrapper":"SearchHeader_search-wrapper__izYYn",search:"SearchHeader_search__MTlWc","professional-hub":"SearchHeader_professional-hub__71L7z","crimson-pro-headings":"SearchHeader_crimson-pro-headings__gm9n3"}},55855:(e,a,r)=>{"use strict";r.r(a),r.d(a,{__N_SSG:()=>g,default:()=>x});var t=r(80263),i=r(53239),s=r(61453),l=r(17809),n=r(94590),c=r(50899),o=r(70215),d=r(99768),p=r(24333),h=r(60317),u=r(99329),m=r(93113),f=r(1554),g=!0;let x=({data:e,categoryCollectionData:a,customizedFilter:r,combinedData:g})=>{let x=e.items[0],[_,j]=(0,i.useState)("a-z-A"),w=x?(0,n.wY)(x,c.Z.featuredPages,c.Z.healthSlug):"",A=x?(0,o.f)(x.title,c.Z.healthSlug):{};return null!=e&&null!=e.items&&null!=e.items[0]&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.A,{data:x?.seo,schemaData:w,ogData:A}),(0,t.jsx)(d.A,{title:"Patient information leaflets",placeholderText:"Search conditions, symptoms or medicines",healthinfo:!0,filterTypes:[m.yF.medicineArticle,m.yF.patientInformationLeaflet]}),(0,t.jsx)(s.JH,{data:x}),(0,t.jsxs)(f.Rp,{type:"block",children:[(0,t.jsx)(h.A,{children:(0,t.jsx)(p.A,{filterFunction:e=>{e.preventDefault(),j(`a-z-${e.currentTarget.innerText}`)},data:r,slug:x?.slug||""})}),(0,t.jsx)(u.A,{linkItems:{[_]:a[_]},showTitle:!0,shouldHighlightColumn:!0,disableDeduplication:!0})]})]})}},58725:e=>{e.exports={wrapper:"SearchSeriesBar_wrapper__PO1pR"}},60317:(e,a,r)=>{"use strict";r.d(a,{A:()=>l});var t=r(80263);r(53239);var i=r(15057),s=r.n(i);let l=e=>(0,t.jsxs)("div",{className:s().alphanumericwrapper,children:[e.title&&(0,t.jsx)("h3",{className:s()["alphanumericwrapper-title"],children:e.title}),e.children]})},62657:e=>{e.exports={wrapper:"AlphaNumericLinksCollection_wrapper__ECvbn",card:"AlphaNumericLinksCollection_card__80_FP",selected:"AlphaNumericLinksCollection_selected__WZa2V",disabled:"AlphaNumericLinksCollection_disabled__dhlCy"}},81454:(e,a,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/health",function(){return r(55855)}])},93113:(e,a,r)=>{"use strict";r.d(a,{i1:()=>i,u2:()=>s,yF:()=>t});let t={featureArticle:"FeatureArticle",medicineArticle:"pageMedicineLeaflet",professionalArticle:"ProfessionalArticle",topicCategoryLandingPage:"TopicCategoryLandingPage",sponsoredArticle:"Sponsored",suggestedArticle:"Suggested",RecipeArticle:"RecipeArticle",patientInformationLeaflet:"PatientInformationLeaflet"},i={FeatureArticle:"Feature",pageMedicineLeaflet:"Medicine",TopicCategoryLandingPage:"Category",PatientInformationLeaflet:"Info leaflet",Sponsored:"Sponsored",ProfessionalArticle:"Professional",Suggested:"Suggested",RecipeArticle:"Recipe"},s={"Info leaflets":"PatientInformationLeaflet",Professional:"ProfessionalArticle",Medicines:"pageMedicineLeaflet",Features:"FeatureArticle",Categories:"TopicCategoryLandingPage",Recipes:"RecipeArticle"}},99768:(e,a,r)=>{"use strict";r.d(a,{A:()=>f});var t=r(80263),i=r(53239),s=r(1554),l=r(29849),n=r(96370),c=r(614),o=r(5812),d=r(58725),p=r.n(d);let h=({items:e})=>e&&0!==e.length?(0,t.jsx)("div",{className:p().wrapper,children:(0,t.jsxs)("p",{className:p().label,children:[(0,t.jsx)("span",{children:"Currently trending"}),e.map(e=>(0,t.jsx)("span",{className:p().item,children:(0,t.jsx)(c.N,{href:e.slug,size:"small",variant:"patient",children:e.title})},e.slug))]})}):null;var u=r(29635),m=r.n(u);let f=({title:e,placeholderText:a,filterTypes:r,nhsinfo:d,healthinfo:p,featinfo:u,recepieinfo:f,useCrimsonProHeadings:g=!1,isProfessionalHub:x=!1,initialSeriesItems:_=[]})=>{let[j,w]=(0,i.useState)(_),A=_.length>0,v=(0,i.useMemo)(()=>"https://top.patient.info/top-searches",[]);return(0,i.useEffect)(()=>{let e=!1;async function a(){if(!d){e||w([]);return}try{let a=new URL(v,window.location.origin);a.searchParams.has("days")||a.searchParams.set("days",String(7)),a.searchParams.has("limit")||a.searchParams.set("limit",String(8));let r=await fetch(a.toString(),{method:"GET"});if(!r.ok)throw Error(`HTTP ${r.status}`);let t=await r.json(),i=function(e,a=8){return Array.from(new Map((e?.rows||[]).map(e=>e.searchTerm?.trim()).filter(e=>!!(e&&e.length>0)).map(e=>[e.toLowerCase(),e])).values()).slice(0,a).map(e=>({title:e,slug:`/search?searchterm=${encodeURIComponent(e)}`}))}(t,8);e||w(i)}catch{e||0!==j.length||w([])}}A||a();let r=setInterval(a,3e5);return()=>{e=!0,clearInterval(r)}},[v,d,A]),(0,t.jsxs)("div",{className:`${m().container} ${x?m()["professional-hub"]:""}`,"data-testid":"search-header",children:[(0,t.jsx)(s.s3,{children:(0,t.jsx)(s.Rp,{type:"block",children:(0,t.jsx)(s.mO,{type:"homepage",children:(0,t.jsxs)("div",{className:`${m().wrapper} ${g?m()["crimson-pro-headings"]:""}`,children:[(0,t.jsx)("h1",{children:e}),d?(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"nhssub",children:"Explore clear, trusted advice from UK doctors and experts."}),(0,t.jsxs)("div",{className:"nhslink",children:[(0,t.jsx)(c.N,{href:"/editorial-policy",variant:"patient",size:"small",startIcon:(0,t.jsx)(n.IB,{}),children:"Doctor approved"})," ",(0,t.jsx)(c.N,{href:"https://library.hee.nhs.uk/patient-information/health-information-online/health-information-online/websites-you-can-trust",variant:"patient",size:"small",startIcon:(0,t.jsx)(n.IB,{}),children:"NHS recommended"})," ",(0,t.jsx)(c.N,{href:"/news-and-features",variant:"patient",size:"small",startIcon:(0,t.jsx)(n.IB,{}),children:"Regularly updated"})]})]}):null,u?(0,t.jsx)("div",{children:(0,t.jsx)("p",{className:"nhssub",children:"Expert features, lifestyle guidance and real-life stories designed to support your everyday health and wellbeing."})}):null,p?(0,t.jsx)("div",{children:(0,t.jsx)("p",{className:"nhssub",children:"Trusted patient information leaflets with clear, clinically reviewed advice on conditions, symptoms and treatments."})}):null,f?(0,t.jsx)("div",{children:(0,t.jsx)("p",{className:"nhssub",children:"Find nourishing recipes created with health in mind, including options suitable for different dietary needs and long-term conditions. Simple, practical food for everyday living."})}):null,(0,t.jsx)("div",{className:m()["search-wrapper"],children:(0,t.jsx)(l.A,{placeHolder:a,getAutoSuggestion:o.c,suggestionCount:10,dropdownAsCard:!0,filterTypes:r})}),d&&j.length>0?(0,t.jsx)(h,{items:j}):null]})})})}),d?(0,t.jsxs)("div",{role:"alert",className:"nhsalert information","data-testid":"ui-alert",children:[(0,t.jsx)("div",{className:"icon","data-testid":"ui-alert-icon",children:(0,t.jsx)(n.dA,{})}),(0,t.jsx)("div",{className:"content","data-testid":"ui-alert-content",children:(0,t.jsxs)("p",{children:["Our clinical information meets NHS
1England's Information Standard."," ",(0,t.jsx)(c.N,{href:"/editorial-policy",children:"Read our editorial policy."})]})})]}):null]})}}},e=>{e.O(0,[1512,9329,636,6593,8792],()=>e(e.s=81454)),_N_E=e.O()}]);
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.