1import{r as o,j as e,L as m}from"./vendor_react-DkiuXrlk.js";import{s as x,v as i,w as p,x as g,y as h}from"./index-C1ByJG38.js";import{L as u}from"./vendor_icons-CIE77zBt.js";import"./vendor_pdf-D9UlI7qi.js";import"./vendor_motion-mPVRFuhH.js";const w=()=>{x("Blog Teledoc | Saúde, telemedicina e bem-estar","Artigos sobre telemedicina, pronto-atendimento online, saúde digital e bem-estar. Conteúdo da Teledoc para você cuidar melhor da saúde.","/blog");const[l,n]=o.useState(()=>i()),[s,d]=o.useState(()=>i().length===0),[r,c]=o.useState("");return o.useEffect(()=>{let t=!1;return p(24).then(({posts:a})=>{t||(n(a),c(""))}).catch(()=>{if(t)return;const a=i();if(a.length){n(a);return}c("Não foi possÃvel carregar os artigos agora.")}).finally(()=>{t||d(!1)}),()=>{t=!0}},[]),e.jsxs("div",{className:"bg-slate-50 min-h-[60vh]",children:[e.jsx("section",{className:"bg-slate-900 text-white pt-28 pb-16 sm:pt-32 sm:pb-20",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[e.jsx("p",{className:"text-teal-300 text-xs font-bold uppercase tracking-widest mb-3",children:"Blog"}),e.jsx("h1",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold tracking-tight max-w-2xl",children:"Saúde digital, na prática"}),e.jsx("p",{className:"mt-4 text-white/75 max-w-xl text-base sm:text-lg leading-relaxed",children:"Guias e conteúdos sobre telemedicina, pronto-atendimento e bem-estar â para você e para sua empresa."})]})}),e.jsxs("section",{className:"max-w-7xl mx-auto px-6 lg:px-8 py-14 sm:py-16",children:[s&&e.jsx("div",{className:"flex justify-center py-20 text-slate-400",children:e.jsx(u,{className:"animate-spin",size:28})}),r&&!s&&e.jsx("p",{className:"text-center text-slate-500 py-16",children:r}),!s&&!r&&l.length===0&&e.jsxs("div",{className:"text-center py-16",children:[e.jsx(g,{children:"Em breve"}),e.jsx("h2",{className:"text-2xl font-bold text-slate-900 mt-2",children:"Novos artigos a caminho"}),e.jsxs("p",{className:"text-slate-500 mt-2 max-w-md mx-auto",children:["Estamos preparando conteúdos úteis sobre telemedicina. Enquanto isso, conheça o"," ",e.jsx(m,{to:"/pronto-atendimento",className:"text-teal-700 font-semibold hover:underline",children:"pronto-atendimento 24h"}),"."]})]}),!s&&l.length>0&&e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:l.map(t=>e.jsx(h,{post:t},t.id))})]})]})};export{w as BlogListPage};
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.