PageSourceSearch

https://www.carehope.edu/_next/static/chunks/pages/news-88676213525fc5c4.js

js carehope.edu collected 2026-10-09 21:33:44 UTC 12,996 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6134],{2616:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/news",function(){return s(5931)}])},3821:function(e,t,s){"use strict";var l=s(5893);s(7294),t.Z=()=>(0,l.jsxs)("svg",{width:"33",height:"24",viewBox:"0 0 33 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("circle",{cx:"21",cy:"12",r:"12",transform:"rotate(-90 21 12)",fill:"#E3B547"}),(0,l.jsx)("path",{d:"M24.6364 12.6364C24.9879 12.2849 24.9879 11.7151 24.6364 11.3636L18.9088 5.63604C18.5574 5.28457 17.9875 5.28457 17.636 5.63604C17.2846 5.98751 17.2846 6.55736 17.636 6.90883L22.7272 12L17.636 17.0912C17.2846 17.4426 17.2846 18.0125 17.636 18.364C17.9875 18.7154 18.5574 18.7154 18.9088 18.364L24.6364 12.6364ZM7.86805e-08 12.9L24 12.9L24 11.1L-7.86805e-08 11.1L7.86805e-08 12.9Z",fill:"#152D4E"})]})},2192:function(e,t,s){"use strict";var l=s(5893);t.Z=e=>{let{items:t,pageSize:s,currentPage:a,onPageChange:r}=e,n=Math.ceil(t/s);if(1===n)return null;let i=Array.from({length:n},(e,t)=>t+1);return(0,l.jsx)("div",{className:"flex justify-center mt-8",children:(0,l.jsx)("ul",{className:"flex flex-wrap gap-2",children:i.map(e=>(0,l.jsx)("li",{className:"my-2",children:(0,l.jsx)("a",{className:"".concat(e===a?"text-secondary01 bg-primary02":"text-primary02"," px-4 py-2 cursor-pointer border-primary02 border"),onClick:()=>r(e),children:e})},e))})})}},5931:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return news}});var l=s(5893),a=s(7294),r=s(263),n=s(9209),i=s(5675),c=s.n(i),o=s(1664),d=s.n(o),u=s(3821),blog_blogHeaderSlider=e=>{let{sliderBlogList:t}=e,[s,r]=(0,a.useState)(!1),[n,i]=(0,a.useState)(!1),[o,u]=(0,a.useState)(0),x=t.sort((e,t)=>new Date(t.createdAt)-new Date(e.createdAt)),previousSlider=()=>{u(e=>0===e?0:e-1),r(e=>0===e)},nextSlider=()=>{u(e=>e===t.length-1?t.length-1:e+1),i(e=>e===t.length-1)},m=t[o]||t[0];return(0,l.jsx)("div",{className:"",children:x.map((e,s)=>{if(m.id==e.id){var a,r;return(0,l.jsx)("div",{className:"",children:e&&e.featuredImage?(0,l.jsxs)("div",{className:"relative flex flex-col mx-auto w-full sm:flex-row sm:items-center  max-w-[400px] sm:max-w-none min-h-[400px] sm:h-[400px]",children:[(0,l.jsx)("div",{className:"block sm:hidden w-full sm:w-1/2 slider-up-next",children:(0,l.jsx)(c(),{src:e.featuredImage.formats.small.url,width:400,height:368,alt:e.featuredImage.alternativeText?e.featuredImage.alternativeText:"image",className:"w-[99%] mx-auto h-[300px] object-fit",quality:100})}),(0,l.jsx)("div",{className:" hidden sm:block w-full sm:w-1/2 slide-right-next",children:(0,l.jsx)(c(),{src:null===(r=e.featuredImage.formats)||void 0===r?void 0:null===(a=r.small)||void 0===a?void 0:a.url,width:400,height:368,alt:e.featuredImage.alternativeText?e.featuredImage.alternativeText:"image",className:"w-full h-[398px] object-fit",quality:100})}),(0,l.jsx)("div",{className:"w-full d-flex flex sm:w-1/2 px-4 sm:px-7 py-4 bg-[#152D4E] z-[1] h-auto sm:h-[400px] ",children:(0,l.jsxs)("div",{className:"w-full h-full bg-gray1 p-4 sm:p-6 pb-7 flex flex-col justify-start sm:justify-start",children:[(0,l.jsxs)("div",{className:"flex flex-col justify-start flex-grow",children:[(0,l.jsxs)("h4",{className:"sm:min-h-[60px] mb-4 text-3xl capitalize",children:[" ",e.title]}),(0,l.jsx)("p",{className:"mb-6 text-slider-truncate",children:e.content})]}),(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)(d(),{href:"/news/"+e.slug,children:(0,l.jsx)("button",{className:"bg-primary02 rounded-full text-white text-xs py-2 px-6 font-bold",children:"Keep reading"})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("button",{className:"text-2xl font-bold border bg-[#E8E8E8] rounded-full border-[#D0D0D0] px-2 mr-2 custom-shadow-light ".concat(0===s?"opacity-50 ":"opacity-100"),onClick:()=>{previousSlider(s)},children:"<"}),(0,l.jsx)("button",{className:"text-2xl font-bold border bg-[#E8E8E8] rounded-full border-[#D0D0D0] px-2 custom-shadow-light ".concat(s===t.length-1?"opacity-50":"opacity-100"),onClick:()=>{nextSlider(s)},children:">"})]})]})]})}),(0,l.jsx)("div",{className:"hidden sm:block absolute gradiant-design-container z-[1] sm:w-[50%] w-[100%]"})]},s):""},s)}})})},blog_blogHeader=e=>{let{sliderBlogList:t}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"relative flex justify-center",children:(0,l.jsx)("div",{className:"blogBanner ".concat(t.length>0?"py-4 sm:py-16":""," object-cover sm:h-full w-full"),children:(0,l.jsx)(n.Z,{children:(0,l.jsx)("div",{className:"w-full mx-auto",children:(0,l.jsx)(blog_blogHeaderSlider,{sliderBlogList:t})})})})})})},x=s(4803),m=s.n(x),atoms_blogPostCard=e=>{let{thumbnail:t,title:s,link:r,description:n,readTime:i,releaseDate:o,routepath:x,grayCard:h}=e,g="/".concat(x,"/").concat(r),f=(0,a.useRef)([]);(0,a.useEffect)(()=>{let e=f.current;if(e){e.style.filter="blur(15px)";let handleLoad=()=>{e.style.filter="none"};return e.addEventListener("load",handleLoad),e.complete&&handleLoad(),()=>{e.removeEventListener("load",handleLoad)}}},[t]);let p=function(e){let t=e.trim().split(/\s+/).length;return Math.ceil(t/200)}(i);return(0,l.jsxs)(d(),{href:g,className:"w-full h-full flex flex-col",children:[t?(0,l.jsx)("div",{className:"img-container",children:(0,l.jsx)(c(),{priority:!0,src:t,ref:f,width:400,height:248,alt:s,className:"border-b-8 border-secondary01 w-full item-image transition-filter duration-700 ease-in-out"})}):(0,l.jsx)("div",{className:"max-w-[400px] h-[248px] w-full bg-primary00 border-b-8 border-secondary01"}),(0,l.jsxs)("div",{className:"p-4 sm:p-6 pb-7 h-full flex flex-col ".concat(h?"bg-[#D9D9D9]":"bg-white"," "),children:[(0,l.jsx)("h4",{className:"mb-4 capitalize  ",children:s}),(0,l.jsxs)("div",{className:"text-[#152D4E] text-xs",children:[o&&(0,l.jsxs)("span",{children:[(0,l.jsx)(m(),{format:"ll",children:o})," - "]}),p," min.read"]}),(0,l.jsx)("div",{className:"h-[1px] w-full bg-[#152D4E] my-2 rounded-lg"}),(0,l.jsxs)("div",{className:"flex flex-col justify-between h-full ",children:[(0,l.jsx)("p",{className:"text-custom-truncate ",children:n}),(0,l.jsxs)("button",{className:"pr-2 font-bold text-lg leading-none uppercase text-primary02 hover:text-secondary00 inline-flex items-center gap-2 underline decoration-3 justify-start  underline-offset-8 decoration-secondary00",children:["Read More",(0,l.jsx)(u.Z,{})]})]})]})]})},h=["2024","RN-BSN Bridge","LPN-RN Bridge","ASN/RN Nursing","BSN/RN Nursing","PN","HHA","PCT","HCM","2023","2022"],g=s(1163),blog_blogList=e=>{let{loading:t,blogs:s,pagetitle:r,routepath:i,grayCard:c,onPageChange:o}=e,[u,x]=(0,a.useState)(null),[m,f]=(0,a.useState)(""),[p,w]=(0,a.useState)(!1),j=(0,g.useRouter)();(0,a.useEffect)(()=>{let fetchResults=async()=>
1{if(!m.length){x([]);return}w(!0);try{let e=h.filter(e=>e.toLowerCase().includes(m.toLowerCase()));x(e)}catch(e){console.error("Error fetching search results:",e)}finally{}};fetchResults()},[m]);let handleSearch=async e=>{e.preventDefault(),f(""),w(!1)},handleCloseModal=()=>{f(""),x([]),w(!1)};return(0,l.jsx)(n.Z,{children:(0,l.jsxs)("div",{className:"py-10 md:py-16 xl:py-24",id:"recent-news",children:[(0,l.jsxs)("div",{className:"sm:flex items-center justify-between ",children:[r?(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"font-sans text-3xl font-bold text-[#191919] mb-2",children:r}),(0,l.jsx)("div",{className:"h-2 w-[75px] bg-secondary01 my-2 rounded-lg"})]}):"",(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"relative mr-4",children:[(0,l.jsxs)("form",{className:"py-2 w-full ",onSubmit:handleSearch,children:[(0,l.jsx)("label",{htmlFor:"queryNews",children:" "}),(0,l.jsx)("input",{onChange:e=>f(e.target.value),value:m,className:"w-60 h-8  text-sm rounded-3xl",type:"search",placeholder:"Search by tags..."})]}),p&&m.length>=1&&(0,l.jsx)(function(e){let[t,s]=(0,a.useState)(0),r=(0,a.useRef)(null),handleKeyDown=l=>{switch(l.key){case"ArrowUp":l.preventDefault(),s(t=>t>0?t-1:e.results.length-1);break;case"ArrowDown":l.preventDefault(),s(t=>t<e.results.length-1?t+1:0);break;case"Enter":e.results[t]&&(j.push("/news?tags=".concat(e.results[t])),o(1))}};return(0,a.useEffect)(()=>{let e=r.current;return e&&e.focus(),document.addEventListener("keydown",handleKeyDown),()=>{document.removeEventListener("keydown",handleKeyDown)}},[t]),(0,l.jsxs)("div",{className:"absolute w-60 sm:right-0 z-50 py-1  pt-3  bg-primary02 rounded-sm",children:[(0,l.jsx)("div",{className:"  flex items-center mb-2 px-4 w-full justify-between ",children:(0,l.jsxs)("p",{className:"text-white text-xs ",children:['Tags start with "',m,'"']})}),(0,l.jsx)("div",{className:"flex max-h-[80vh]  w-full overflow-y-auto appearance-none flex-col  ",children:e.results.map((e,s)=>(0,l.jsx)(d(),{href:"/news/?tags="+e,className:"hover:bg-primary01 px-4 py-1 ".concat(t===s?"bg-primary01":""),onClick:handleCloseModal,children:(0,l.jsxs)("li",{className:"text-md text-secondary01 flex gap-2 font-semibold",children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"0.8rem",fill:"#e3b547",className:"my-auto",viewBox:"0 0 620 520",children:(0,l.jsx)("path",{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"})}),e]})},s))})]})},{results:u})]})})]}),(0,l.jsx)("div",{className:"",children:(0,l.jsx)("div",{className:"flex flex-wrap w-full",children:t?Array.from({length:6}).map((e,t)=>(0,l.jsx)("div",{className:"xl:w-1/3 sm:w-1/2 w-full mt-10 px-2 h-[650px]",children:(0,l.jsx)("div",{className:" h-full w-full",children:(0,l.jsx)("div",{className:"animate-pulse h-full bg-gray-200 "})})},t)):null==s?void 0:s.map((e,t)=>{var s,a;return(0,l.jsx)("div",{className:"xl:w-1/3 sm:w-1/2 w-full mt-10 px-2 h-[650px]",children:(0,l.jsx)(atoms_blogPostCard,{title:(null==e?void 0:e.title)?e.title:"",description:(null==e?void 0:e.description)?e.description:"",thumbnail:(null===(a=e.attributes)||void 0===a?void 0:null===(s=a.featuredImage)||void 0===s?void 0:s.url)?e.attributes.featuredImage.url:"",readTime:(null==e?void 0:e.content)?e.content:"",releaseDate:"undefined"!==e.date&&void 0==e.date?"":e.date,link:e.slug?e.slug:"",routepath:i,grayCard:c})},t)})})})]})})},f=s(2192),atoms_pageNotFoundComp=e=>{let{tagName:t}=e;return(0,l.jsx)("div",{className:"max-w-[800px] py-20 mx-auto px-3 lg:px-0 flex justify-center items-center box-sizing",children:(0,l.jsx)(n.Z,{children:(0,l.jsxs)("div",{className:"flex py-20 justify-center items-center bg-primary02 bg-opacity-84 max-w-4xl mx-auto relative text-white rounded-[10px]",children:[(0,l.jsx)(c(),{src:"/vision-and-mission/hero-decoration.svg",width:163,height:240,alt:"decoration",className:"absolute bottom-0 left-0"}),(0,l.jsx)("div",{className:"rich-title",children:(0,l.jsxs)("h1",{children:["Tag ",(0,l.jsx)("span",{className:"text-secondary00",children:t})," Not Found"]})})]})})})},news=()=>{let e=(0,g.useRouter)(),t=e.asPath,s=new URLSearchParams(t.split("?")[1]),n=s.get("page"),i=null==n?void 0:n.split("#")[0],[c,o]=(0,a.useState)(Number(i)||1),[d,u]=(0,a.useState)([]),[x,m]=(0,a.useState)(!0),[h,p]=(0,a.useState)(),[w,j]=(0,a.useState)([]),[b,v]=(0,a.useState)(!1),N={item:h,pageSize:6},onPageChange=e=>{let t=document.getElementById("recent-news");t&&t.scrollIntoView({behavior:"smooth"}),o(e),window.history.replaceState({},"","/news?".concat(y?"tags=".concat(y,"&"):"","page=").concat(e))},y=s.get("tags"),getALLBlog=async e=>{if(e){m(!0);try{let t=await fetch("/api/blogs?page=".concat(e,"&pageSize=").concat(N.pageSize)),s=await t.json();p(s.meta.pagination.total),j(s.featureBlogs),u(s.data)}catch(e){console.error("Error fetching blogs:",e)}finally{m(!1)}}},getTagsBlogs=async e=>{if(e){m(!0);try{let t=await fetch("/api/blogs?tags=".concat(y,"&page=").concat(e,"&pageSize=").concat(N.pageSize)),s=await t.json();p(s.meta.pagination.total),u(s.data),j(s.featureBlogs),v(!s.data.length>0)}catch(e){console.error("Error fetching blogs:",e)}finally{m(!1)}}};return(0,a.useEffect)(()=>{y?getTagsBlogs(c):getALLBlog(c)},[c,y]),(0,a.useEffect)(()=>{(()=>{if(e.isReady){let e=Number(i);!isNaN(e)&&e>0&&o(e)}})()},[e.isReady,i]),(0,l.jsxs)(r.Z,{children:[w?(0,l.jsx)(blog_blogHeader,{sliderBlogList:w}):"",d&&d.length>0?(0,l.jsxs)("div",{className:"bg-[#D9D9D9]",children:[(0,l.jsx)(blog_blogList,{blogs:d,loading:x,currentPage:c,pageSize:N.pageSize,searchBlogFunc:()=>{},pagetitle:y?"".concat(y," Articles"):"Recent News Articles",routepath:"news",onPageChange:onPageChange}),(0,l.jsx)("div",{className:"pb-8",children:(0,l.jsx)(f.Z,{items:N.item,currentPage:c,pageSize:N.pageSize,onPageChange:onPageChange})})]}):"",b?(0,l.jsx)(atoms_pageNotFoundComp,{tagName:y}):""]})}}},function(e){e.O(0,[4885,3061,4879,4803,263,9774,2888,179],function(){return e(e.s=2616)}),_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.