PageSourceSearch

https://distribuidoraeficaz.com.br/assets/Blog-7FIg6M96.js

js distribuidoraeficaz.com.br collected 2026-09-30 06:36:47 UTC 5,770 bytes, 1 lines download raw bytes

1import{r as a,Y as v,j as e,H as y,N as w,C as d,e as m,L as C,A as x,P as h,F as k,V as S}from"./index-DD08oKkH.js";import{B as A}from"./BlogCard-B5YBBU5V.js";import{I as L}from"./input-B84uDMhG.js";import{S as t}from"./skeleton-DAquBJh-.js";import{S as P}from"./search-Ba6CVHm-.js";import{C as p}from"./calculator-DCzmCxRV.js";import"./calendar-U9bsgcO-.js";const D=()=>{const[u,g]=a.useState([]),[j,f]=a.useState(!0),[r,N]=a.useState(""),[i,l]=a.useState(null),c=[{id:"1",title:"Webinar - Os impactos da reforma tributária",url:"https://www.youtube.com/watch?v=gnkLkjV7HGk"}];a.useEffect(()=>{b()},[]);const b=async()=>{try{const{data:s,error:o}=await v.from("blog_posts").select("*").eq("published",!0).order("published_at",{ascending:!1});if(o)throw o;s&&g(s)}catch(s){console.error("Error fetching posts:",s)}finally{f(!1)}},n=u.filter(s=>r===""||s.title.toLowerCase().includes(r.toLowerCase())||s.excerpt.toLowerCase().includes(r.toLowerCase()));return e.jsxs(e.Fragment,{children:[e.jsxs(y,{children:[e.jsx("title",{children:"Blog - Portal de C
1onteúdos | Distribuidora Eficaz"}),e.jsx("meta",{name:"description",content:"Insights, dicas e estratégias para transformar sua distribuidora. Aprenda sobre gestão, vendas, estoque e muito mais."}),e.jsx("meta",{property:"og:title",content:"Blog - Portal de Conteúdos | Distribuidora Eficaz"}),e.jsx("meta",{property:"og:description",content:"Insights, dicas e estratégias para transformar sua distribuidora."}),e.jsx("meta",{property:"og:type",content:"website"})]}),e.jsxs("div",{className:"min-h-screen",children:[e.jsx(w,{}),e.jsx("main",{children:e.jsx("section",{className:"pt-24 pb-12 bg-gradient-to-b from-primary/5 to-background",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_320px] gap-8",children:[e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold",children:"Portal de Conteúdos"}),e.jsx("p",{className:"text-lg text-muted-foreground",children:"Insights, dicas e estratégias para transformar sua distribuidora"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(P,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground w-5 h-5"}),e.jsx(L,{type:"text",placeholder:"Buscar artigos...",value:r,onChange:s=>N(s.target.value),className:"pl-10"})]}),e.jsx("div",{children:j?e.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:[1,2,3,4].map(s=>e.jsxs("div",{className:"space-y-4",children:[e.jsx(t,{className:"aspect-video w-full"}),e.jsx(t,{className:"h-4 w-3/4"}),e.jsx(t,{className:"h-4 w-full"}),e.jsx(t,{className:"h-4 w-2/3"})]},s))}):n.length>0?e.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:n.map(s=>e.jsx(A,{slug:s.slug,title:s.title,excerpt:s.excerpt,content:s.content,coverImage:s.cover_image||void 0,category:s.category,publishedAt:s.published_at,author:s.author},s.id))}):e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-xl text-muted-foreground",children:"Nenhum artigo encontrado."})})})]}),e.jsx("aside",{className:"hidden lg:block",children:e.jsxs("div",{className:"sticky top-4 space-y-6",children:[e.jsx(d,{className:"bg-gradient-to-br from-primary/5 to-primary/10 border-primary/20",children:e.jsxs(m,{className:"p-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(p,{className:"w-5 h-5 text-primary"}),e.jsx("h2",{className:"text-lg font-bold",children:"Ferramentas"})]}),e.jsx(C,{to:"/analise-abc-produtos-distribuidora",className:"block group",children:e.jsxs("div",{className:"space-y-3 p-4 rounded-lg bg-background/50 hover:bg-background transition-colors",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(p,{className:"w-5 h-5 text-primary flex-shrink-0 mt-1"}),e.jsxs("div",{className:"space-y-1 flex-1",children:[e.jsx("h3",{className:"font-semibold group-hover:text-primary transition-colors text-sm",children:"Análise ABC"}),e.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Descubra quais produtos geram 80% do seu faturamento"})]})]}),e.jsxs("div",{className:"flex items-center justify-center gap-1 text-primary font-medium text-xs",children:[e.jsx("span",{children:"Acessar ferramenta"}),e.jsx(x,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})]})})]})}),e.jsx(d,{className:"bg-gradient-to-br from-primary/5 to-primary/10 border-primary/20",children:e.jsxs(m,{className:"p-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(h,{className:"w-5 h-5 text-primary"}),e.jsx("h2",{className:"text-lg font-bold",children:"Vídeos"})]}),c.length>0?e.jsx("div",{className:"space-y-3",children:c.map(s=>e.jsx("button",{onClick:()=>l(s.url),className:"w-full text-left group",children:e.jsxs("div",{className:"space-y-2 p-4 rounded-lg bg-background/50 hover:bg-background transition-colors",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(h,{className:"w-5 h-5 text-primary flex-shrink-0 mt-1"}),e.jsx("div",{className:"flex-1",children:e.jsx("h3",{className:"font-semibold group-hover:text-primary transition-colors text-sm",children:s.title})})]}),e.jsxs("div",{className:"flex items-center justify-center gap-1 text-primary font-medium text-xs",children:[e.jsx("span",{children:"Assistir vídeo"}),e.jsx(x,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})]})},s.id))}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"Em breve, vídeos educativos sobre gestão de distribuidoras."})]})})]})})]})})})}),e.jsx(k,{})]}),i&&e.jsx(S,{isOpen:!!i,onClose:()=>l(null),videoUrl:i})]})};export{D 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.