PageSourceSearch

https://encontreumnerd.com.br/assets/BlogListing-Du_CeihD.js

js encontreumnerd.com.br collected 2026-09-29 08:54:49 UTC 13,654 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MagazineLayoutA-CxPCgyP2.js","assets/vendor-query-Cuv1FQk6.js","assets/vendor-react-qWEbcnl5.js","assets/blog-utils-qQvL95fQ.js","assets/article-placeholder-CvMhgmKN.js","assets/category-labels-B8_gOre0.js","assets/index-zfWpKczA.js","assets/vendor-radix-C88Ak59v.js","assets/vendor-supabase-C_eKbu-8.js","assets/vendor-recharts-D60XYxEx.js","assets/vendor-icons-CQPDGG0w.js","assets/vendor-helmet-OKLD9pxQ.js","assets/index-BjLlfTvh.css","assets/MagazineLayoutB-DpuOz8Wo.js","assets/MagazineLayoutC-DiaH-2vJ.js"])))=>i.map(i=>d[i]);
2import{c as x,s as f,_ as b}from"./index-zfWpKczA.js";import{j as e,a as w,u as E}from"./vendor-query-Cuv1FQk6.js";import{L as _,r as u}from"./vendor-react-qWEbcnl5.js";import{H as L}from"./vendor-helmet-OKLD9pxQ.js";import{I as k}from"./InstitutionalHeader-BRkCmmwU.js";import{I as C}from"./InstitutionalFooter-BM7wowF9.js";import{N as I}from"./NextSteps-DmqOTN4K.js";import{U as T}from"./UnifiedCTA-2gJtmycR.js";import{g as j}from"./blog-utils-qQvL95fQ.js";import{aJ as A,f as q,b9 as z}from"./vendor-icons-CQPDGG0w.js";import"./vendor-radix-C88Ak59v.js";import"./vendor-supabase-C_eKbu-8.js";import"./vendor-recharts-D60XYxEx.js";function y({src:t,alt:g,priority:o=!1,size:c="large",className:d}){if(!t)return e.jsx("div",{className:x("bg-gradient-to-br from-primary/20 via-muted to-primary/10 w-full h-full",d)});const r=c==="large"?{w:800,h:600}:c==="medium"?{w:480,h:320}:{w:320,h:240};return e.jsx("img",{src:`${t}?width=${r.w}&height=${r.h}&resize=cover&quality=75`,alt:g,className:x("w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",d),loading:o?"eager":"lazy",fetchPriority:o?"high":"auto",width:r.w,height:r.h,decoding:"async",onError:l=>{const m=l.currentTarget;m.src.includes("?width=")?m.src=t:m.style.display="none"}})}function v({category:t}){return t?e.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded bg-primary/90 text-primary-foreground text-[11px] font-bold uppercase tracking-wider",children:t.replace(/-/g," ")}):null}function N(t){return t?new Date(t).toLocaleDateString("pt-BR",{day:"numeric",month:"short"}):""}function S({article:t}){return e.jsxs(_,{to:j(t),"data-article-slug":t.slug,className:"group relative block overflow-hidden rounded-ds-md h-full min-h-[320px] lg:min-h-[460px]",children:[e.jsx("div",{className:"absolute inset-0",children:e.jsx(y,{src:t.featured_image_url,alt:t.title,priority:!0,size:"large"})}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/85 via-background/40 to-transparent"}),e.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-5 md:p-8 z-10",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(v,{category:t.category}),e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-card/15 backdrop-blur-sm text-foreground/80 text-[11px] font-semibold",children:[e.jsx(A,{className:"h-3 w-3"})," Destaque"]})]}),e.jsx("h2",{className:"text-foreground text-xl md:text-3xl font-bold leading-tight line-clamp-3 mb-2",children:t.title}),t.excerpt&&e.jsx("p",{className:"text-foreground/70 text-sm line-clamp-2 mb-3 max-w-md hidden md:block",children:t.excerpt}),e.jsxs("div",{className:"flex items-center gap-3 text-muted-foreground text-xs",children:[t.reading_time_minutes&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(q,{className:"h-3 w-3"}),t.reading_time_minutes," min"]}),t.published_at&&e.jsx("span",{children:N(t.published_at)})]})]})]})}function M({article:t}){return e.jsxs(_,{to:j(t),"data-article-slug":t.slug,className:"group relative block overflow-hidden rounded-ds h-full min-h-[140px] lg:min-h-0",children:[e.jsx("div",{className:"absolute inset-0",children:e.jsx(y,{src:t.featured_image_url,alt:t.title,size:"medium"})}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/80 via-background/30 to-transparent"}),e.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-4 z-10",children:[e.jsx(v,{category:t.category}),e.jsx("h3",{className:"text-foreground text-sm md:text-base font-bold leading-snug line-clamp-2 mt-1.5",children:t.title}),e.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-[11px] mt-1",children:[t.reading_time_minutes&&e.jsxs("span",{children:[t.reading_time_minutes," min"]}),t.published_at&&e.jsx("span",{children:N(t.published_at)})]})]})]})}function P({article:t}){return e.jsxs(_,{to:j(t),"data-article-slug":t.slug,className:"group relative block overflow-hidden rounded-lg aspect-[4/3]",children:[e.jsx("div",{className:"absolute inset-0",children:e.jsx(y,{src:t.featured_image_url,alt:t.title,size:"small"})}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/80 via-background/20 to-transparent"}),e.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-3 z-10",children:[t.category&&e.jsx("span",{className:"inline-block px-2 py-0.5 rounded bg-primary/80 text-primary-foreground text-[11px] font-bold uppercase tracking-wider mb-1",children:t.category.replace(/-/g," ")}),e.jsx("h4",{className:"text-foreground text-xs font-semibold leading-snug line-clamp-2",children:t.title})]})]})}function O({articles:t,className:g}){if(!t||t.length<3)return null;const o=t[0],c=t.slice(1,3),d=t.slice(3,9);return e.jsxs("div",{className:x("space-y-3",g),children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1.6fr_1fr] gap-3",children:[e.jsx(S,{article:o}),e.jsx("div",{className:"grid grid-rows-2 gap-3",children:c.map(r=>e.jsx(M,{article:r},r.id))})]}),d.length>0&&e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3",children:d.map(r=>e.jsx(P,{article:r},r.id))})]})}const B="id, slug, title, subtitle, excerpt, featured_image_url, featured_image_alt, category, tags, meta_title, meta_description, og_title, og_description, og_image, author_name, author_avatar_url, reading_time_minutes, published_at, updated_at, content_updated_at, view_count, word_count, schema_markup, canonical_url, status",F="id, slug, title, subtitle, excerpt, content_html, featured_image_url, featured_image_alt, category, tags, meta_title, meta_description, meta_keywords, og_title, og_description, og_image, twitter_title, twitter_description, twitter_image, twitter_card, author_name, author_avatar_url, reading_time_minutes, published_at, updated_at, content_updated_at, view_count, word_count, schema_markup, canonical_url, status";function R(){const t=w();u.useEffect(()=>{const g=new Set,o=new Set,c=i=>{g.has(i)||(g.add(i),t.prefetchQuery({queryKey:["blog-article-meta",i],queryFn:async()=>{const{data:p}=await f.from("articles").select(B).eq("slug",i).eq("status","published").maybeSingle();return p},staleTime:10*60*1e3}))},d=i=>{o.has(i)||(o.add(i),t.prefetchQuery({queryKey:["blog-article",i],queryFn:async()=>{const{data:p}=await f.from("articles").select(F).eq("slug",i).eq("status","published").maybeSingle();return p},staleTime:10*60*1e3}))},r=new IntersectionObserver(i=>
2{i.forEach(p=>{if(p.isIntersecting){const h=p.target.dataset.articleSlug;h&&(c(h),r.unobserve(p.target))}})},{rootMargin:"400px"}),l=i=>{const h=i.target?.closest?.("[data-article-slug]")?.dataset?.articleSlug;h&&d(h)};let m=null,s=!1;const a=()=>{document.querySelectorAll("[data-article-slug]").forEach(i=>r.observe(i)),document.addEventListener("mouseenter",l,{capture:!0,passive:!0}),document.addEventListener("touchstart",l,{capture:!0,passive:!0}),document.addEventListener("focusin",l,{capture:!0,passive:!0}),s=!0},n=window;return typeof n.requestIdleCallback=="function"?n.requestIdleCallback(a,{timeout:1500}):m=setTimeout(a,800),()=>{m&&clearTimeout(m),r.disconnect(),s&&(document.removeEventListener("mouseenter",l,{capture:!0}),document.removeEventListener("touchstart",l,{capture:!0}),document.removeEventListener("focusin",l,{capture:!0}))}},[t])}const D=u.lazy(()=>b(()=>import("./MagazineLayoutA-CxPCgyP2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])).then(t=>({default:t.MagazineLayoutA}))),G=u.lazy(()=>b(()=>import("./MagazineLayoutB-DpuOz8Wo.js"),__vite__mapDeps([13,1,2,3,4,5,10])).then(t=>({default:t.MagazineLayoutB}))),H=u.lazy(()=>b(()=>import("./MagazineLayoutC-DiaH-2vJ.js"),__vite__mapDeps([14,1,2,3,4,5,10])).then(t=>({default:t.MagazineLayoutC}))),U="id, slug, title, excerpt, featured_image_url, category, reading_time_minutes, published_at, view_count";function re(){R(),u.useEffect(()=>{typeof window.gtag=="function"&&(window.gtag("set",{content_group:"blog"}),window.gtag("event","page_view",{page_title:"Blog",content_group:"blog"}))},[]);const{data:t,isLoading:g}=E({queryKey:["blog-portal-recent"],queryFn:async()=>{const{data:s,error:a}=await f.from("articles").select(U).eq("status","published").order("published_at",{ascending:!1}).limit(100);if(a)throw a;return s??[]},staleTime:5*60*1e3,gcTime:30*60*1e3,refetchOnWindowFocus:!1});u.useMemo(()=>t?[...t].sort((s,a)=>a.view_count-s.view_count).slice(0,8):[],[t]);const o=t,c=g,d=u.useMemo(()=>o?o.slice(0,9):[],[o]),r=u.useMemo(()=>{if(!o)return[];const s={};return o.forEach(a=>{const n=a.category||"geral";s[n]||(s[n]=[]),s[n].push(a)}),Object.entries(s).map(([a,n])=>({category:a,articles:n})).sort((a,n)=>n.articles.length-a.articles.length).slice(0,12)},[o]),l={"@context":"https://schema.org","@type":"Blog",name:"Conheça e Aprenda — Portal de Conhecimento | Eunerd",description:"Guias práticos, trilhas de conhecimento e recursos sobre TI, suporte técnico e gestão de infraestrutura para PMEs e profissionais.",url:"https://encontreumnerd.com.br/artigos",publisher:{"@type":"Organization",name:"Eunerd",logo:{"@type":"ImageObject",url:"https://encontreumnerd.com.br/og-image.png"}}},m={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://encontreumnerd.com.br"},{"@type":"ListItem",position:2,name:"Conheça e Aprenda"}]};return e.jsxs(e.Fragment,{children:[e.jsxs(L,{children:[e.jsx("title",{children:"Conheça e Aprenda — Portal de Conhecimento sobre TI | Eunerd"}),e.jsx("meta",{name:"description",content:"Guias práticos, trilhas de conhecimento e recursos sobre TI, suporte técnico e gestão de infraestrutura. Conteúdo para PMEs e profissionais de TI."}),e.jsx("meta",{name:"robots",content:"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1"}),e.jsx("meta",{property:"og:title",content:"Conheça e Aprenda — Portal de Conhecimento | Eunerd"}),e.jsx("meta",{property:"og:description",content:"Guias, trilhas e recursos sobre TI, suporte técnico e gestão de infraestrutura para empresas."}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{property:"og:url",content:"https://encontreumnerd.com.br/artigos"}),e.jsx("meta",{property:"og:image",content:"https://encontreumnerd.com.br/og-image.png"}),e.jsx("meta",{property:"og:site_name",content:"Eunerd"}),e.jsx("meta",{property:"og:locale",content:"pt_BR"}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:image",content:"https://encontreumnerd.com.br/og-image.png"}),e.jsx("link",{rel:"canonical",href:"https://encontreumnerd.com.br/artigos"}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(l)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(m)})]}),e.jsxs("div",{className:"min-h-dvh bg-background relative",children:[e.jsx(k,{}),e.jsx("section",{className:"pt-24 md:pt-28 pb-6",children:e.jsxs("div",{className:"ds-wrap",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(z,{className:"h-5 w-5 text-primary"}),e.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-primary",children:"Portal de C
2onhecimento"})]}),e.jsx("h1",{className:"text-3xl md:text-4xl font-bold tracking-tight",children:"CONHEÇA E APRENDA"})]})}),e.jsx("section",{className:"pb-12",children:e.jsx("div",{className:"ds-wrap",children:c?e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1.6fr_1fr] gap-3",children:[e.jsx("div",{className:"aspect-[16/10] bg-muted rounded-ds-md animate-pulse"}),e.jsxs("div",{className:"grid grid-rows-2 gap-3",children:[e.jsx("div",{className:"bg-muted rounded-ds animate-pulse"}),e.jsx("div",{className:"bg-muted rounded-ds animate-pulse"})]})]}),e.jsx("div",{className:"grid grid-cols-3 lg:grid-cols-6 gap-3",children:[1,2,3,4,5,6].map(s=>e.jsx("div",{className:"aspect-[4/3] bg-muted rounded-lg animate-pulse"},s))})]}):e.jsx(O,{articles:d})})}),!c&&r.length>0&&e.jsx("section",{className:"pb-20",children:e.jsx("div",{className:"ds-wrap space-y-16",children:e.jsx(u.Suspense,{fallback:null,children:r.map((s,a)=>{const n=a%6;return n===0||n===3?e.jsx(D,{category:s.category,articles:s.articles,mirrored:n===3},s.category):n===1||n===4?e.jsx(G,{category:s.category,articles:s.articles},s.category):e.jsx(H,{category:s.category,articles:s.articles},s.category)})})})}),c&&e.jsx("section",{className:"pb-20",children:e.jsx("div",{className:"ds-wrap space-y-16",children:[1,2,3].map(s=>e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("div",{className:"flex-1 bg-muted rounded-ds-md animate-pulse",style:{height:220}}),e.jsx("div",{className:"flex-1 bg-muted rounded-ds-md animate-pulse",style:{height:220}})]}),e.jsx("div",{className:"grid grid-cols-2 gap-4",children:[1,2,3,4].map(a=>e.jsx("div",{className:"aspect-square bg-muted rounded-ds animate-pulse"},a))})]},s))})}),e.jsx(T,{}),e.jsx(I,{}),e.jsx(C,{})]})]})}export{re as default};

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.