PageSourceSearch

https://santaritadoeste.sp.gov.br/assets/index-DspNmXsc.js

js santaritadoeste.sp.gov.br collected 2026-10-02 18:37:57 UTC 5,853 bytes, 1 lines download raw bytes

1import{j as e,L as h}from"./react-core-SJCqmpBs.js";import{m as f,U as j,r as z,a1 as b}from"./index-Bafhn_VG.js";import{P as N}from"./PageHero-xjDJB_m3.js";import{S as u}from"./skeleton-DLTN8CiI.js";import{u as k}from"./useSchools-CwiVY1ac.js";import{u as y}from"./usePublicEducationPlans-C-LjEHka.js";import{s as v}from"./substituicaoDePlano-D3QNC5_9.js";import{u as w}from"./useCouncilsByArea-vUGmmw2o.js";import{aV as E,c3 as C,F as P,U as L,a4 as S,a5 as q,k as $,l as F,p as _}from"./icons-C_OAd-F2.js";import"./radix-D7sbV9Zm.js";import"./supabase-Dr7v01qy.js";import"./dates-CW3_KQM6.js";import"./animation-9S7D5_Pu.js";import"./dnd-C8Pn-FyI.js";import"./mappers-DB6IsUD0.js";import"./mappers-R95bDD1D.js";function H(a){if(typeof a!="object"||a===null)return null;const s=a.educacao;if(typeof s!="object"||s===null)return null;const i=s.secretaria_id;return typeof i=="string"&&i.trim()!==""?i:null}function I(){const{client:a,companyId:s,company:i}=f(),r=H(i?.settings),{data:o=null,isLoading:n}=j({queryKey:["education-secretaria",s,r],enabled:!!(s&&r),queryFn:async()=>{const{data:d,error:c}=await a.from("secretarias").select("nome, telefone, email, endereco, horario_funcionamento").eq("id",r).eq("active",!0).limit(1).maybeSingle();if(c)throw c;return d??null}});return{secretaria:o,isLoading:n}}function l(a,s,i){return`${a} ${a===1?s:i}`}function x({to:a,icon:s,title:i,count:r,description:o,children:n}){return e.jsxs("div",{className:"flex flex-col rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-card",children:[e.jsxs(h,{to:a,className:"group flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"flex size-11 shrink-0 items-center justify-center rounded-xl bg-primary/10 text-primary",children:e.jsx(s,{className:"size-5","aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-semibold text-zinc-900 dark:text-white",children:i}),e.jsx("p",{className:"text-xs font-bold uppercase tracking-wider text-primary",children:r})]})]}),e.jsx(_,{className:"mt-3 size-4 shrink-0 text-zinc-300 transition-transform group-hover:translate-x-0.5 group-hover:text-primary dark:text-zinc-600","aria-hidden":"true"})]}),e.jsx("p",{className:"mt-3 text-sm text-zinc-500 dark:text-zinc-400",children:o}),n]})}function Z(){const{company:a}=z(),{schools:s,isLoading:i}=k(),{plans:r,isLoading:o}=y(),{vigentes:n,anteriores:d}=v(r),{councils:c,isLoading:p}=w("educacao"),{secretaria:t}=I(),g=i||o||p;return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsxs(b,{children:[e.jsxs("title",{children:["Educação | ",a?.name??"Portal Oficial"]}),e.jsx("meta",{name:"description",content:"Escolas e creches da rede municipal, planos municipais de educação e conselhos da área."})]}),e.jsx(N,{title:"Educação",description:"Escolas e creches da rede municipal, planos municipais e os conselhos da área.",icon:E,breadcrumbs:[{label:"Educação"}]}),e.jsxs("div",{className:"container mx-auto max-w-5xl space-y-8 px-4 py-12",children:[g?e.jsxs("div",{className:"grid gap-6 md:grid-cols-3",children:[e.jsx(u,{className:"h-44 w-full rounded-2xl"}),e.jsx(u,{className:"h-44 w-full rounded-2xl"}),e.jsx(u,{className:"h-44 w-full rounded-2xl"})]}):e.jsxs("div",{className:"grid gap-6 md:grid-cols-3",children:[s.length>0&&e.jsx(x,{to:"/educacao/escolas",icon:C,title:"Escolas e Creches",count:l(s.length,"unidade","unidades"),description:"Etapas atendidas, endereço, telefone e horário de atendimento de cada unidade."}),r.length>0&&e.jsx(x,{to:"/educacao/planos",icon:P,title:"Planos",count:n.length>0?l(n.length,"documento","documentos"):l(d.length,"documento anterior","documentos anteriores"),description:"Planos municipais da educação, com o instrumento normativo que os aprovou.",children:n.length>0?e.jsx("ul",{className:"mt-3 space-y-1.5 border-t border-zinc-100 pt-3 dark:border-zinc-800",children:n.map(m=>e.jsx("li",{children:e.jsx(h,{to:`/educacao/planos/${m.slug}`,className:"text-sm text-primary underline underline-offset-2",children:m.title})},m.id))}):e.jsx("p",{className:"mt-3 border-t border-zinc-100 pt-3 text-sm text-zinc-500 dark:border-zinc-800 dark:text-zinc-400",children:"Somente planos anteriores."})}),c.length>0&&e.jsx(x,{to:"/educacao/conselhos",icon:L,title:"Conselhos",count:l(c.length,"colegiado","colegiados"),description:"Composição, atos normativos, atas e pareceres dos conselhos da Educação."})]}),t&&e.jsxs("section",{className:"rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-card",children:[e.jsxs("h2",{className:"text-lg font-semibold text-zinc-900 dark:text-white",children:["Fale com a ",t.nome]}),e.jsxs("dl",{className:"mt-4 grid gap-3 sm:grid-cols-2",children:[t.telefone&&e.jsxs("div",{className:"flex items-start gap-2 text-sm text-zinc-700 dark:text-zinc-300",children:[e.jsx(S,{className:"mt-0.5 size-4 shrink-0 text-zinc-400","aria-hidden":"true"}),e.jsx("a",{href:`tel:${t.telefone.replace(/\D/g,"")}`,className:"underline",children:t.telefone})]}),t.email&&e.jsxs("div",{className:"flex items-start gap-2 text-sm text-zinc-700 dark:text-zinc-300",children:[e.jsx(q,{className:"mt-0.5 size-4 shrink-0 text-zinc-400","aria-hidden":"true"}),e.jsx("a",{href:`mailto:${t.email}`,className:"underline",children:t.email})]}),t.endereco&&e.jsxs("div",{className:"flex items-start gap-2 text-sm text-zinc-700 dark:text-zinc-300",children:[e.jsx($,{className:"mt-0.5 size-4 shrink-0 text-zinc-400","aria-hidden":"true"}),t.endereco]}),t.horario_funcionamento&&e.jsxs("div",{className:"flex items-start gap-2 text-sm text-zinc-700 dark:text-zinc-300",children:[e.jsx(F,{className:"mt-0.5 size-4 shrink-0 text-zinc-400","aria-hidden":"true"}),t.horario_funcionamento]})]})]})]})]})}export{Z as Educacao};

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.