1/*! For license information please see 6215.ca4ae237.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkstudent_management_app=self.webpackChunkstudent_management_app||[]).push([[6215],{268:(e,t,s)=>{s.d(t,{A:()=>a});const a=(0,s(7101).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},6215:(e,t,s)=>{s.r(t),s.d(t,{default:()=>u});var a=s(9950),r=s(73814),l=s(23849),i=s(56600),n=s(14994),c=s(38284),o=s(12434),x=s(32630),d=s(39360),m=s(55551),h=s(268),p=s(43654),g=s(44414);const u=()=>{const e=(0,r.Zp)(),[t,s]=(0,a.useState)([]),[u,b]=(0,a.useState)(!0),[N,y]=(0,a.useState)(""),[j,f]=(0,a.useState)("all");(0,a.useEffect)(()=>{const e=(0,l.P)((0,l.rJ)(i.db,"blogPosts"),(0,l._M)("status","==","published"),(0,l.My)("publishedAt","desc")),t=(0,l.aQ)(e,e=>{const t=e.docs.map(e=>{var t,s;return{id:e.id,...e.data(),publishedAt:(null===(t=e.data().publishedAt)||void 0===t||null===(s=t.toDate)||void 0===s?void 0:s.call(t))||new Date}});s(t),b(!1)},e=>{console.error("Error fetching blog posts:",e),b(!1)});return()=>t()},[]),(0,a.useEffect)(()=>{document.title="Blog | CNA Training - Nursing Assistant Insights & Tips";const e=(e,t,s)=>{let a=document.querySelector(`meta[${e}="${t}"]`);a||(a=document.createElement("meta"),a.setAttribute(e,t),document.head.appendChild(a)),a.setAttribute("content",s)},t="Exam preparation, skills guidance, industry updates, and career tips for nursing assistant students and CNAs in Washington State.",s=`${window.location.origin}/blog`;e("name","description",t),e("property","og:type","website"),e("property","og:url",s),e("property","og:title","Blog | CNA Training"),e("property","og:description",t),e("name","twitter:card","summary_large_image"),e("name","twitter:title","Blog | CNA Training"),e("name","twitter:description",t);let a=document.querySelector('link[rel="canonical"]');return a||(a=document.createElement("link"),a.setAttribute("rel","canonical"),document.head.appendChild(a)),a.setAttribute("href",s),()=>{document.title="CNA Training";const e=document.querySelector('link[rel="canonical"]');e&&e.remove()}},[]);const v=["all",...new Set(t.map(e=>e.category).filter(Boolean))],w=t.filter(e=>{var t;const s=!N||e.title.toLowerCase().includes(N.toLowerCase())||(null===(t=e.excerpt)||void 0===t?void 0:t.toLowerCase().includes(N.toLowerCase())),a="all"===j||e.category===j;return s&&a}),A=w[0],k=w.slice(1),C=e=>e?new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):"",S=e=>{if(!e)return"1 min read";const t=e.replace(/<[^>]*>/g,"").split(/\s+/).length;return`${Math.max(1,Math.ceil(t/200))} min read`};return(0,g.jsxs)("div",{className:"min-h-screen bg-white",children:[(0,g.jsx)("nav",{className:"bg-white border-b border-slate-200 sticky top-0 z-50",children:(0,g.jsx)("div",{className:"max-w-6xl mx-auto px-4 sm:px-6",children:(0,g.jsxs)("div",{className:"flex justify-between h-16 items-center gap-4",children:[(0,g.jsx)(r.N_,{to:"/",className:"text-lg sm:text-xl font-extrabold tracking-tight text-slate-950 whitespace-nowrap",children:"Huduma CNA"}),(0,g.jsxs)("div",{className:"flex items-center gap-3 sm:gap-6",children:[(0,g.jsx)(r.N_,{to:"/",className:"hidden sm:block text-slate-600 hover:text-slate-950 text-sm font-semibold transition-colors",children:"Home"}),(0,g.jsx)(r.N_,{to:"/blog",className:"hidden sm:block text-slate-950 font-bold text-sm",children:"Blog"}),(0,g.jsx)(r.N_,{to:"/register",className:"text-slate-600 hover:text-slate-950 text-sm font-semibold transition-colors",children:"Register"}),(0,g.jsxs)(r.N_,{to:"/login",className:"flex items-center px-4 py-2 text-sm font-semibold text-white bg-slate-950 hover:bg-slate-800 transition-colors",children:[(0,g.jsx)(n.A,{className:"h-4 w-4 mr-1.5"}),"Login"]})]})]})})}),(0,g.jsx)("header",{className:"bg-white border-b border-slate-200",children:(0,g.jsx)("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 py-12 sm:py-16",children:(0,g.jsxs)("div",{className:"max-w-3xl",children:[(0,g.jsx)("p",{className:"text-xs font-bold uppercase tracking-[0.18em] text-cyan-700 mb-4",children:"CNA learning center"}),(0,g.jsx)("h1",{className:"text-4xl sm:text-5xl font-extrabold tracking-tight text-slate-950 leading-tight",children:"Practical guidance for your CNA journey"}),(0,g.jsx)("p",{className:"mt-5 text-base sm:text-lg leading-7 text-slate-600 max-w-2xl",children:"Exam preparation, skills guidance, industry updates, and career tips for nursing assistant students and CNAs in Washington State."}),(0,g.jsxs)("div",{className:"mt-8 max-w-xl relative",children:[(0,g.jsx)(c.A,{className:"absolute left-4 top-1/2 -translate-y-1/2 h-5 w-5 text-slate-400"}),(0,g.jsx)("input",{type:"text",placeholder:"Search articles...",value:N,onChange:e=>y(e.target.value),className:"w-full pl-12 pr-4 py-3.5 border border-slate-300 bg-white text-slate-950 placeholder-slate-400 focus:outline-none focus:border-slate-950 focus:ring-1 focus:ring-slate-950 text-base"})]})]})})}),v.length>1&&(0,g.jsx)("div",{className:"border-b border-slate-200 bg-white",children:(0,g.jsx)("div",{className:"max-w-6xl mx-auto px-4 sm:px-6",children:(0,g.jsx)("div",{className:"flex items-center gap-1 py-3 overflow-x-auto scrollbar-hide","aria-label":"Article categories",children:v.map(e=>(0,g.jsx)("button",{onClick:()=>f(e),className:"px-3 py-2 text-sm font-semibold whitespace-nowrap transition-colors "+(j===e?"bg-slate-950 text-white":"text-slate-600 hover:bg-slate-100 hover:text-slate-950"),children:"all"===e?"All Posts":e},e))})})}),(0,g.jsx)("main",{className:"max-w-6xl mx-auto px-4 sm:px-6 py-10 sm:py-14",children:u?(0,g.jsxs)("div",{className:"flex flex-col items-center justify-center py-20",children:[(0,g.jsx)("div",{className:"w-10 h-10 border-3 border-blue-600 border-t-transparent roun
2ded-full animate-spin mb-4"}),(0,g.jsx)("p",{className:"text-gray-500",children:"Loading articles..."})]}):0===w.length?(0,g.jsxs)("div",{className:"text-center py-20",children:[(0,g.jsx)(o.A,{className:"h-16 w-16 text-gray-300 mx-auto mb-4"}),(0,g.jsx)("h2",{className:"text-2xl font-semibold text-gray-700 mb-2",children:"No articles yet"}),(0,g.jsx)("p",{className:"text-gray-500 max-w-md mx-auto",children:N?"No articles match your search. Try different keywords.":"Check back soon for helpful articles about caregiving and CNA training."})]}):(0,g.jsxs)(g.Fragment,{children:[A&&!N&&"all"===j&&(0,g.jsx)("div",{className:"mb-12",children:(0,g.jsx)("article",{onClick:()=>e(`/blog/${A.slug||A.id}`),className:"group cursor-pointer bg-white border border-slate-200 overflow-hidden hover:border-slate-400 transition-colors",children:(0,g.jsxs)("div",{className:"grid md:grid-cols-2 gap-0",children:[A.coverImage?(0,g.jsx)("div",{className:"aspect-[16/10] md:aspect-auto overflow-hidden",children:(0,g.jsx)("img",{src:A.coverImage,alt:A.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}):(0,g.jsx)("div",{className:"aspect-[16/10] md:aspect-auto bg-slate-100 flex items-center justify-center",children:(0,g.jsx)(o.A,{className:"h-16 w-16 text-slate-300"})}),(0,g.jsxs)("div",{className:"p-8 sm:p-10 flex flex-col justify-center",children:[(0,g.jsxs)("div",{className:"flex items-center space-x-3 mb-4",children:[(0,g.jsx)("span",{className:"text-cyan-700 text-xs font-bold uppercase tracking-wider",children:"Featured"}),A.category&&(0,g.jsx)("span",{className:"text-slate-500 text-xs font-semibold",children:A.category})]}),(0,g.jsx)("h2",{className:"text-2xl sm:text-3xl font-bold text-gray-900 mb-3 group-hover:text-blue-600 transition-colors leading-tight",children:A.title}),A.excerpt&&(0,g.jsx)("p",{className:"text-gray-600 mb-5 line-clamp-3 leading-relaxed",children:A.excerpt}),(0,g.jsxs)("div",{className:"flex items-center justify-between",children:[(0,g.jsxs)("div",{className:"flex items-center space-x-4 text-sm text-gray-500",children:[(0,g.jsxs)("span",{className:"flex items-center",children:[(0,g.jsx)(x.A,{className:"h-4 w-4 mr-1.5"}),C(A.publishedAt)]}),(0,g.jsxs)("span",{className:"flex items-center",children:[(0,g.jsx)(d.A,{className:"h-4 w-4 mr-1.5"}),S(A.content)]}),(0,g.jsxs)("span",{className:"flex items-center",children:[(0,g.jsx)(m.A,{className:"h-4 w-4 mr-1.5"}),(Number(A.views)||0).toLocaleString()]})]}),(0,g.jsxs)("span",{className:"flex items-center text-blue-600 font-medium text-sm group-hover:translate-x-1 transition-transform",children:["Read more ",(0,g.jsx)(h.A,{className:"h-4 w-4 ml-1"})]})]})]})]})})}),(0,g.jsx)("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-x-6 gap-y-9",children:(N||"all"!==j?w:k).map(t=>(0,g.jsxs)("article",{onClick:()=>e(`/blog/${t.slug||t.id}`),className:"group cursor-pointer bg-white border border-slate-200 overflow-hidden hover:border-slate-400 transition-colors",children:[t.coverImage?(0,g.jsx)("div",{className:"aspect-[16/10] overflow-hidden",children:(0,g.jsx)("img",{src:t.coverImage,alt:t.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}):(0,g.jsx)("div",{className:"aspect-[16/10] bg-slate-100 flex items-center justify-center",children:(0,g.jsx)(o.A,{className:"h-11 w-11 text-slate-300"})}),(0,g.jsxs)("div",{className:"p-6",children:[(0,g.jsxs)("div",{className:"flex items-center space-x-2 mb-3",children:[t.category&&(0,g.jsx)("span",{className:"text-cyan-700 text-xs font-bold uppercase tracking-wide",children:t.category}),(0,g.jsxs)("span",{className:"text-xs text-gray-400 flex items-center",children:[(0,g.jsx)(d.A,{className:"h-3 w-3 mr-1"}),S(t.content)]}),(0,g.jsxs)("span",{className:"text-xs text-gray-400 flex items-center",children:[(0,g.jsx)(m.A,{className:"h-3 w-3 mr-1"}),(Number(t.views)||0).toLocaleString()]})]}),(0,g.jsx)("h3",{className:"text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors line-clamp-2 leading-snug",children:t.title}),t.excerpt&&(0,g.jsx)("p",{className:"text-gray-500 text-sm mb-4 line-clamp-2 leading-relaxed",children:t.excerpt}),(0,g.jsxs)("div",{className:"flex items-center justify-between pt-4 border-t border-gray-50",children:[(0,g.jsxs)("div",{className:"flex items-center text-sm text-gray-400",children:[(0,g.jsx)(x.A,{className:"h-3.5 w-3.5 mr-1.5"}),C(t.publishedAt)]}),(0,g.jsxs)("span",{className:"text-blue-600 text-sm font-medium flex items-center group-hover:translate-x-0.5 transition-transform",children:["Read ",(0,g.jsx)(p.A,{className:"h-4 w-4 ml-0.5"})]})]})]})]},t.id))})]})}),(0,g.jsx)("section",{className:"border-y border-slate-200 bg-slate-50",children:(0,g.jsxs)("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 py-14 sm:py-16 text-center",children:[(0,g.jsx)("h2",{className:"text-2xl sm:text-3xl font-extrabold tracking-tight text-slate-950 mb-4",children:"Ready to start your CNA career?"}),(0,g.jsx)("p",{className:"text-slate-600 mb-8 text-base sm:text-lg max-w-2xl mx-auto",children:"Join our Washington-approved CNA training program and prepare for a rewarding nursing assistant career."}),(0,g.jsxs)("div",{className:"flex flex-col sm:flex-row items-center justify-center space-y-3 sm:space-y-0 sm:space-x-4",children:[(0,g.jsx)(r.N_,{to:"/register",className:"px-8 py-3.5 bg-slate-950 text-white font-semibold hover:bg-slate-800 transition-colors w-full sm:w-auto",children:"Register Now"}),(0,g.jsx)(r.N_,{to:"/",className:"px-8 py-3.5 bg-white text-slate-800 font-semibold hover:bg-slate-100 transition-colors border border-slate-300 w-full sm:w-auto",children:"Learn More"})]})]})}),(0,g.jsx)("footer",{className:"bg-white text-slate-500 py-10",children:(0,g.jsxs)("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 text-center border-t border-slate-200 pt-10",children:[(0,g.jsx)("p",{className:"text-lg font-semibold text-slate-950 mb-2",children:"Caregiver Training & Huduma Center LLC"}),(0,g.jsx)("p",{className:"text-sm mb-1",children:"DSHS-Approved Caregiver Training Provider"}),(0,g.jsx)("p",{className:"text-sm",children:"Federal Way, WA"}),(0,g.jsxs)("div",{className:"mt-6 flex items-center justify-center space-x-6 text-sm",children:[(0,g.jsx)(r.N_,{to:"/",className:"hover:text-slate-950 transition-colors",children:"Home"}),(0,g.jsx)(r.N_,{to:"/blog",className:"hover:text-slate-950 transition-colors",children:"Blog"}),(0,g.jsx)(r.N_,{to:"/register",className:"hover:text-slate-950 transition-colors",children:"Register"}),(0,g.jsx)(r.N_,{to:"/verify",className:"hover:text-slate-950 transition-colors",children:"Verify Enrollment"})]})]})})]})}}
2,14994:(e,t,s)=>{s.d(t,{A:()=>a});const a=(0,s(7101).A)("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]])},32630:(e,t,s)=>{s.d(t,{A:()=>a});const a=(0,s(7101).A)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},38284:(e,t,s)=>{s.d(t,{A:()=>a});const a=(0,s(7101).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},39360:(e,t,s)=>{s.d(t,{A:()=>a});const a=(0,s(7101).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},43654:(e,t,s)=>{s.d(t,{A:()=>a});const a=(0,s(7101).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},55551:(e,t,s)=>{s.d(t,{A:()=>a});const a=(0,s(7101).A)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])}}]);
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.