1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7153],{1538:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/library",function(){return t(26719)}])},26719:(e,l,t)=>{"use strict";t.r(l),t.d(l,{__N_SSG:()=>j,default:()=>y});var n=t(6029),r=t(95669),s=t.n(r),a=t(8588),i=t.n(a),d=t(82203),c=t.n(d),o=t(55729),u=t(33043),h=t(81278),x=t(22935),m=t(38618),p=t(29796),f=t(71434),v=t.n(f),g=t(69722);function b(e){var l,t;let{article:r,categoriesList:s={}}=e,{id:a,data:d}=r||{},{title:o,hero_image:u,date:h,category:m}=d||{},p=(0,x.A)(r);return null==(l=s[null==m?void 0:m.uid])||l.title,(0,n.jsx)("div",{id:a,children:(0,n.jsx)("div",{children:(0,n.jsxs)(c(),{href:p,className:"relative flex flex-col py-6 md:p-6 rounded-lg md:hover:bg-gray-100 transition-colors duration-300 group",children:[(null==u?void 0:u.url)?(0,n.jsx)("div",{className:"relative w-full h-48 mb-4 bg-gray-200 transform md:group-hover:scale-105 transition-transform duration-500 ease-in-out",children:(0,n.jsx)(i(),{src:u.url,alt:null==u?void 0:u.alt,fill:!0,style:{objectFit:"cover",objectPosition:"center"},sizes:"33vw"})}):null,(0,n.jsx)("div",{className:"flex justify-between",children:h?(0,n.jsx)("time",{className:"text-[14px] text-blue-body mb-2",children:(0,g.pp)(h).toLocaleString("en-US",{month:"long",day:"numeric",year:"numeric",timeZone:"Etc/UTC"})}):null}),(null==o||null==(t=o[0])?void 0:t.text)?(0,n.jsx)("h2",{className:"text-subhead text-[24px] font-semibold",children:o[0].text}):null]})})})}var j=!0;let y=e=>{let{articles:l,categories:t,categoriesList:r}=e,a=(0,h.useRouter)(),{category:i}=a.query,d=(0,o.useRef)(null),c=(0,o.useRef)(null),x=(0,m.Pd)(d),[f,g]=(0,o.useState)(!1),[j,y]=(0,o.useState)(i),[N,w]=(0,o.useState)(null),{articles:k,setSearchQuery:C,setCategory:_=null,isLoading:E}=(0,p.x1)(null,x,null);function B(e){e?(_(e.id),y(e.uid),w(e.title),g(!1)):(y(null),_(null),g(!1),a.push({pathname:"/library"},void 0,{shallow:!0}))}(0,o.useEffect)(()=>{if(i){let e=t.find(e=>{let{uid:l}=e;return(null==l?void 0:l.toLowerCase())===(null==i?void 0:i.toLowerCase())});e&&B(e)}else y(null),_(null)},[i,t,_]);let A=(0,o.useCallback)(()=>{g(e=>!e)},[]);return(0,u.A)(c,()=>{g(!1)}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s(),{children:(0,n.jsx)("title",{children:"Health Library | GoHealth Urgent Care"})}),(0,n.jsxs)("header",{className:"hero compact-hero text-center theme-blue pb-4 md:pb-12",children:[(0,n.jsxs)("h1",{tabIndex:0,className:"title text-5xl my-8",children:[(0,n.jsx)("span",{className:"text-blue-gohealth-contrast",children:"Health"})," Library"]}),(0,n.jsx)("div",{className:"container hidden md:flex",children:(0,n.jsxs)("fieldset",{className:"flex flex-wrap items-center justify-center max-w-[1090px] gap-x-14 gap-y-6 mx-auto ",children:[(0,n.jsx)("legend",{className:"sr-only",children:"Categories"}),(0,n.jsxs)("label",{tabIndex:0,htmlFor:"reset",children:[(0,n.jsx)("input",{name:"category-two",type:"radio",id:"reset",className:"peer hidden",onChange:()=>B(null),checked:null===j}),(0,n.jsx)("span",{className:"peer-checked:underline decoration-2 peer-checked:decoration-orange-gohealth underline-offset-8\n font-medium rounded-lg transition-colors ease-in-out duration-500 decoration-transparent\n sm:text-center hover:cursor-pointer select-none text-[16px]",children:"All"})]}),t.map((e,l)=>(0,n.jsxs)("label",{tabIndex:0,htmlFor:null==e?void 0:e.uid,children:[(0,n.jsx)("input",{name:"category-two",type:"radio",id:null==e?void 0:e.uid,className:"peer hidden",onChange:()=>B(e),checked:j===(null==e?void 0:e.uid)}),(0,n.jsx)("span",{className:"peer-checked:underline decoration-2 peer-checked:decoration-orange-gohealth underline-offset-8\n font-medium rounded-lg transition-colors ease-in-out duration-500 decoration-transparent\n sm:text-center hover:cursor-pointer select-none text-[16px]",children:null==e?void 0:e.title})]},l))]})})]}),(0,n.jsx)("section",{id:"library-list",className:"pt-6 md:pt-4 pb-24",children:(0,n.jsxs)("div",{className:"h-[100%] px-4 m-auto lg:w-[85%] lg:max-w-[1400px]",children:[(0,n.jsxs)("div",{ref:c,className:" relative w-full mb-4 md:hidden",children:[(0,n.jsxs)("div",{onClick:A,className:"py-[14px] px-3 border border-[#B7BBBD] text-base flex justify-between items-center rounded text-black h-12 w-full cursor-pointer",children:[(0,n.jsx)("p",{children:j?N:"Filter by category"}),(0,n.jsx)("i",{className:"fa-solid fa-angle-down font-normal ".concat(f?"rotate-180":""," transition")})]}),f&&(0,n.jsxs)("div",{className:"absolute z-[200] border border-[#B7BBBD] bg-white flex flex-col text-sm w-full mt-2 rounded-lg max-h-56 overflow-y-scroll shadow-md",children:[(0,n.jsxs)("label",{className:"cursor-pointer flex items-center",htmlFor:"reset",children:[(0,n.jsx)("input",{name:"category-two",type:"radio",id:"reset",className:"peer hidden",onChange:()=>B(null),checked:null===j}),(0,n.jsx)("span",{className:"peer-checked:bg-blue-400 peer-checked:text-white px-4 py-2 w-full",children:"All"})]}),t.map((e,l)=>(0,n.jsxs)("label",{htmlFor:null==e?void 0:e.uid,className:"cursor-pointer flex items-center",children:[(0,n.jsx)("input",{name:"category-two",type:"radio",id:null==e?void 0:e.uid,className:"peer hidden",onChange:()=>B(e),checked:j===(null==e?void 0:e.uid)}),(0,n.jsx)("span",{className:"peer-checked:bg-blue-400 peer-checked:text-white px-4 py-2 w-full",children:null==e?void 0:e.title})]},l))]})]}),(0,n.jsx)("label",{htmlFor:"articles-search",className:"sr-only",children:"Search articles"}),(0,n.jsx)("div",{className:"flex items-center justify-center md:justify-end md:px-6 md:mb-4",children:(0,n.jsxs)("div",{className:"relative flex-1 md:max-w-[343px]",children:[(0,n.jsx)("i",{className:"absolute inset-y-0 flex items-center text-xl pointer-events-none fa-light fa-magnifying-glass left-4"}),(0,n.jsx)("input",{id:"articles-search",className:"py-[14px] pl-11 text-base bg-white rounded input border border-[#B7BBBD] h-[48px]",name:"Search Articles",type:"search",placeholder:"Search",autoComplete:"none",onChange:e=>{var l;return C((null==e||null==(l=e.target)?void 0:l.value)?e.target.value:"")}})]})}),E?(0,n.jsx)("div",{className:"flex items-center justify-center pt-24","aria-hidden":"true",children:(0,n.jsx)("i",{className:"fa-regular fa-spinner-third animate-spin text-5xl"})}):(0,n.jsx)("div",{className:"flex flex-col pt-0 pb-24 space-y-10",children:Array.isArray(null==k?void 0:k.results)&&!v().isEmpty(null==k?void 0:k.results)?(0,n.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",children:k.results.map((e,l)=>(null==e?void 0:e.uid)?(0,n.jsx)(b,{article:e,categoriesList:r},l):null)}):null}),(0,n.jsx)("div",{className:"w-full h-0 invisible","aria-hidden":"true",ref:d})]})})]})}},33043:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var n=t(55729),r=t(62189),s=["mousedown","touchstart"];let a=function(e,l,t){void 0===t&&(t=s);var a=(0,n.useRef)(l);(0,n.useEffect)(function(){a.current=l},[l]),(0,n.useEffect)(function(){for(var l=function(l){var t=e.current;t&&!t.contains(l.target)&&a.current(l)},n=0,s=t;n<s.length;n++){var i=s[n];(0,r.on)(document,i,l)}return function(){for(var e=0,n=t;e<n.length;e++){var s=n[e];(0,r.AU)(document,s,l)}}},[t,e])}},62189:(e,l,t)=>{"use strict";t.d(l,{AU:()=>s,Bd:()=>a,lQ:()=>n,on:()=>r});var n=function(){};function r(e){for(var l=[],t=1;t<arguments.length;t++)l[t-1]=arguments[t];e&&e.addEventListener&&e.addEventListener.apply(e,l)}function s(e){for(var l=[],t=1;t<arguments.length;t++)l[t-1]=arguments[t];e&&e.removeEventListener&&e.removeEventListener.apply(e,l)}var a=!0}},e=>{e.O(0,[7139,6095,5578,636,6593,8792],()=>e(e.s=1538)),_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.