(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9366],{5859:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var l,a,s=r(14232);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";r.d(t,{r:()=>h});var l=r(37876),a=r(48230),s=r.n(a),n=r(19475),i=r.n(n),c=r(52420),d=r(86121),o=r(62867),p=r(94666);let h=e=>{let t,r=[...e.breadcrumbs].sort((e,t)=>e.category_level-t.category_level),a=[...r=r.map(e=>{2===e.category_level&&(t=e.category_url_key);let r=e.category_url_key;return 3===e.category_level&&(r="".concat(t,"/").concat(e.category_url_key)),{...e,link:r}}),{category_id:e.id,category_name:e.name,category_level:r.length+2,category_url_key:e.url}].map(r=>{let l=3===r.category_level?"".concat(t,"/").concat(r.category_url_key):r.category_url_key;return{position:r.category_level-1,name:r.category_name,item:"".concat((0,p.FB)(e.locale,!0),"/").concat(l)}});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.gk,{useAppDir:!0,itemListElements:a}),(0,l.jsx)(d.mc,{children:(0,l.jsxs)("ul",{className:i().list,children:[(0,l.jsx)("li",{className:i().item,children:(0,l.jsx)(s(),{href:"/",locale:!1,prefetch:!1,className:i().link,children:"Home"})}),r.map(e=>(0,l.jsx)("li",{className:i().item,children:(0,l.jsx)(s(),{href:(0,c.u)(e.link),locale:!1,prefetch:!1,className:i().link,children:e.category_name})},e.category_id)),(0,l.jsx)("li",{className:i().item,children:(0,l.jsx)("span",{children:e.name})})]})})]})}},19475:e=>{e.exports={list:"BreadCrumbs_list__WUOzs",item:"BreadCrumbs_item__dpmAR",link:"BreadCrumbs_link__9QZoW"}},25406:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var l,a,s=r(14232);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t{(window.__NEXT_P=window.__NEXT_P||[]).push(["/medical-glossary",function(){return r(69485)}])},53165:e=>{e.exports={fixed:"Glossary_fixed__D1sxr",searchContainer:"Glossary_searchContainer__VJYFp",alphabet:"Glossary_alphabet__oqD7w",search:"Glossary_search__ueQJG",searchBox:"Glossary_searchBox__yOklS",letter:"Glossary_letter___daQ9",disableLetter:"Glossary_disableLetter__Ws7GQ",heading:"Glossary_heading__eZ8gX",capitalLetter:"Glossary_capitalLetter__vmTvw",glossary:"Glossary_glossary__mqSe5",glossaryDefinitions:"Glossary_glossaryDefinitions__TlejS"}},69485:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSG:()=>j,default:()=>f});var l=r(37876),a=r(6731),s=r(68372),n=r(92744),i=r(61013),c=r(53165),d=r.n(c),o=r(26242),p=r(65629),h=r(62867),_=r(91801),u=r(58103),m=r.n(u),x=r(14232),g=r(81882),v=r(19666),y=r(81482),w=r(94666),j=!0;let f=e=>{let{glossaryOverview:t,alphabet:r,locale:c}=e,{t:u}=(0,v.B)(),[j,f]=(0,x.useState)(r),[b,N]=(0,x.useState)();(0,x.useEffect)(()=>{N(t)},[]);let C=(0,g.Y)(e=>{if((null==e?void 0:e.length)>0){let l=t.map(t=>{let r=t.children.filter(t=>t.title.toLowerCase().includes(e.toLowerCase()));return r.length>0?{title:t.title,children:r}:null}).filter(e=>null!==e);f(r.map(e=>({...e,childrenLength:l.find(t=>(null==t?void 0:t.title[0])===e.letter&&(null==t?void 0:t.children.length)>0)?e.childrenLength:0}))),N(l);return}f(r),N(t)},200);return(0,l.jsxs)("div",{"data-test-id":"GlossaryPage",children:[(0,l.jsx)(h.bV,{title:u(y.U.Title),description:u(y.U.Description),canonical:(0,w.$i)(c,u(y.U.Slug))}),(0,l.jsx)(a.r,{id:0,name:u(y.U.Title),breadcrumbs:[],url:u(y.U.Slug),locale:c}),(0,l.jsx)(i.A,{variant:"center",children:(0,l.jsxs)(s.A,{children:[(0,l.jsx)("h1",{children:u(y.U.Title)}),(0,l.jsx)("p",{children:u(y.U.Description)})]})}),(0,l.jsx)(n.A,{variant:"page-inner",children:(0,l.jsxs)(s.A,{width:"consultation-narrow",children:[(0,l.jsx)("div",{className:d().fixed,children:(0,l.jsxs)("div",{className:d().searchContainer,children:[(0,l.jsx)("div",{className:d().alphabet,children:j.map(e=>{let{letter:t,childrenLength:r}=e;return(0,l.jsx)("span",{onClick:()=>{let e=document.getElementById(t);if(e&&r>0){let t=e.getBoundingClientRect();window.scrollTo({top:t.top+window.scrollY-120,behavior:"smooth"})}},className:m()(d().letter,0===r&&d().disableLetter),children:t})})}),(0,l.jsxs)("div",{className:d().search,children:[(0,l.jsx)(_.p,{onChange:C,label:"",placeholder:u(y.U.SearchPlaceholder),field:"text",required:!1,disabled:!1,type:"text",validate:void 0,validateOnBlur:!0,autoComplete:"na",hasError:void 0,id:"medical_glossary_search",maxLength:256,className:d().searchBox},"medical_glossary_search"),(0,l.jsx)(o.A,{})]})]})}),null==b?void 0:b.map(e=>{var t;return(0,l.jsxs)("div",{className:d().glossary,id:null==e?void 0:e.title,children:[(0,l.jsx)("div",{className:d().heading,children:(0,l.jsx)("h1",{className:d().capitalLetter,children:null==e?void 0:e.title})}),(0,l.jsx)("div",{className:d().glossaryDefinitions,children:null==e||null==(t=e.children)?void 0:t.map(e=>(0,l.jsx)("div",{children:(0,l.jsx)(p.A,{href:"/".concat(u(y.U.Slug),"/").concat(e.slug),children:e.title})}))})]})})]})})]})}},76667:e=>{e.exports={field:"Input_field__RUPNS",error:"Input_error__74hw5",hidden:"Input_hidden__hKh9o",textInput:"Input_textInput__pBsB1",textInputImperial:"Input_textInputImperial__zaDWg",imperialField:"Input_imperialField__MGNDu",textInputMetric:"Input_textInputMetric__m7MBm",imperialWrapper:"Input_imperialWrapper__gFAUY",inputError:"Input_inputError__mxP_f",errorText:"Input_errorText___BEmq",icon:"Input_icon__q_mQ_",pwFieldWrapper:"Input_pwFieldWrapper__thgVq",pwFieldSwitch:"Input_pwFieldSwitch__f2GLa",caption:"Input_caption__1oxKd",textArea:"Input_textArea__3OMxR"}},81482:(e,t,r)=>{"use strict";r.d(t,{U:()=>l});var l=function(e){return e.Title="title",e.BreadecrumbName="breadcrumbName",e.Description="description",e.Slug="slug",e.SearchPlaceholder="searchPlaceholder",e}({})},91801:(e,t,r)=>{"use strict";r.d(t,{p:()=>v});var l,a=r(37876),s=r(14232),n=r(17978),i=r(58103),c=r.n(i),d=r(5859);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t{r("text"===t?"password":"text")},"aria-label":"toggle password visibility",children:["text"===t&&(0,a.jsx)(p,{}),"password"===t&&(0,a.jsx)(d.A,{})]})})]})}let v=e=>{let{required:t=!1,disabled:r=!1,helpVisible:l=!0,displayLabel:s=!0,errorIcon:i=!0,placeholder:d,title:o,initialValue:p,helpText:h,hasError:_,autoComplete:v,field:y,...w}=e,{t:j}=(0,x.B)(),f=e=>(0,a.jsx)(n.EY,{className:c()({[u().textInput]:!0,[u().inputError]:_,[w.inputClassName||""]:!0}),initialValue:p,placeholder:d,type:e,disabled:r,required:t,title:o,autoComplete:v||"off",field:y,id:w.id||y,validate:w.validate,validateOnBlur:w.validateOnBlur,validateOnChange:!!_,"aria-label":w.label,min:w.min,max:w.max,step:w.step,inputMode:w.inputmode,pattern:w.pattern,onValueChange:w.onChange,maxLength:w.maxLength,"data-test-id":w["data-test-id"]});return(0,a.jsxs)("div",{className:c()({[w.fieldClass||"".concat(u().field," field")]:!0,[u().error]:_,[u().hidden]:w.hidden,[w.className||""]:!0}),children:[s&&(0,a.jsx)("label",{htmlFor:y,children:w.label}),i&&_&&(0,a.jsx)("span",{className:u().icon,children:(0,a.jsx)(m.A,{})}),"password"===w.type&&(0,a.jsx)("div",{className:u().pwFieldWrapper,children:(0,a.jsx)("div",{className:u().pwFieldWrapper,children:(0,a.jsx)(g,{render:e=>{let{type:t}=e;return f(t)}})})}),"password"!==w.type&&f(w.type),h&&(0,a.jsx)("small",{className:u().caption,children:h}),_&&Array.isArray(_)&&(0,a.jsx)("small",{className:u().errorText,children:j(_[0],_[1])}),_&&!Array.isArray(_)&&(0,a.jsx)("small",{className:u().errorText,children:j(_)})]})}}},e=>{e.O(0,[7978,636,6593,8792],()=>e(e.s=32675)),_N_E=e.O()}]);