1import{j as e,H as d,M as S,N as C,g as u,q as P,G as f,i as R,O as k}from"./index-BzhlEb2N.js";import{r as a,L as j}from"./vendor-react-CpRvMXaC.js";import{userService as L}from"./userService-CabPoV1y.js";import{S as E}from"./SubpageHero-BiCXn71M.js";import"./vendor-pdf-De61ZhIs.js";import"./vendor-ui-5rZvml82.js";import"./vendor-editor-DoAMYjM7.js";const N=[{id:"curitiba",nome:"Sede Curitiba",tipo:"sede",endereco:"Avenida São José, 699, Cristo Rei, Curitiba, Paraná",cep:"80050-350",horario:"das 09h à s 12h e das 13h à s 16h"},{id:"maringa",nome:"Subsede Maringá",tipo:"subsede",endereco:"Avenida Carneiro Leão, 294, Sala 706, Zona 01, Maringá, Paraná",cep:"87014-010",horario:"das 09h à s 12h e das 13h à s 16h"},{id:"londrina",nome:"Subsede Londrina",tipo:"subsede",endereco:"Rua Senador Souza Naves, 626, Sala 07, Térreo, Centro, Londrina, Paraná",cep:"86010-160",horario:"das 09h à s 12h e das 13h à s 16h"},{id:"cascavel",nome:"Subsede Cascavel",tipo:"subsede",endereco:"Rua Minas Gerais, 2705, Sala 01 - Centro, Cascavel, Paraná",cep:"85812-035",horario:"das 09h à s 12h e das 13h à s 16h"},{id:"foz-do-iguacu",nome:"Subsede Foz do Iguaçu",tipo:"subsede",endereco:"Avenida Pedro Basso, 472, Sala 103, Jardim Polo Centro, EdifÃcio Caes
1ar Tower, Foz do Iguaçu, Paraná",cep:"85863-756",horario:"das 09h à s 12h e das 13h à s 16h"}],A={descricao_crp:{content_html:"<p>O Conselho Regional de Psicologia do Paraná (CRP-PR), 8ª Região, é uma entidade autônoma de administração pública, sujeita ao controle do Tribunal de Contas do Estado.</p><p>Tem como função <strong>orientar, disciplinar e fiscalizar o exercÃcio da profissão de Psicologia</strong>, conforme a Lei Federal nº 5.766, de 20 de dezembro de 1971.</p><p>Essas funções contribuem para o crescimento da Psicologia como ciência e profissão, e o Conselho fortalece a relação entre o Conselho, profissionais e sociedade, promovendo cidadania, solidariedade, justiça e saúde mental.</p>"},composicao:{content_html:"<p>O Plenário é composto por <strong>15 conselheiros efetivos e 15 conselheiros suplentes</strong>, eleitos para um mandato de três anos por voto direto dos profissionais de Psicologia registrados.</p><p>A Diretoria (Presidente, Vice-Presidente, Secretário e Tesoureiro) é eleita anualmente pelo Plenário através de votação secreta, sendo elegÃveis apenas os conselheiros efetivos.</p>"},regimento_interno:{link_url:"https://atosoficiais.com.br/cfp/resolucao-administrativa-financeira-n-6-2022-aprova-o-regimento-interno-do-conselho-regional-de-psicologia-da-8a-regiao?origin=instituicao&q=006/2022",link_label:"Atos Oficiais - Resolução 006/2022"},bloco_comissoes:{content_html:"<p>As comissões auxiliam o Plenário em suas funções, debatendo temas relacionados à Psicologia e fornecendo subsÃdios para o posicionamento do CRP-PR.</p>",link_url:"/o-conselho/comissoes",link_label:"Saiba mais sobre as comissões"}};function D(){const[l,c]=a.useState([]),[m,x]=a.useState([]),[p,h]=a.useState(!0),[y,v]=a.useState({}),[w,n]=a.useState([]),[_,b]=a.useState(!0);a.useEffect(()=>{(async()=>{try{h(!0);const r=await L.diretoriaEConselheiros();c(r.diretoria||[]),x(r.conselheiros||[])}catch(r){console.error("Erro ao carregar diretoria e conselheiros:",r),c([]),x([])}finally{h(!1)}})()},[]),a.useEffect(()=>{(async()=>{try{const i=(await R.listarPublicoPorPagina("o-conselho/sobre")||[]).reduce((t,g)=>(t[g.block_key]=g,t),{});v(i)}catch(r){console.warn("Falha ao carregar blocos de conteúdo de /o-conselho/sobre:",r)}})()},[]),a.useEffect(()=>{(async()=>{try{b(!0);const r=await k.buscarPublicas(),i=Array.isArray(r)?r:(r==null?void 0:r.data)||[];i.length>0?n(i):n(N.map(t=>({id:t.id,nome:t.nome,endereco:t.endereco,horario_atendimento:t.horario,eh_sede_principal:t.tipo==="sede"})))}catch{n(N.map(r=>({id:r.id,nome:r.nome,endereco:r.endereco,horario_atendimento:r.horario,eh_sede_principal:r.tipo==="sede"})))}finally{b(!1)}})()},[]);const o=s=>y[s]||A[s]||{};return e.jsxs("div",{className:"min-h-screen bg-gray-50",children:[e.jsx(E,{paddingClass:"py-12 md:py-16",breadcrumbs:[{label:"Home",to:"/"},{label:"O Conselho",to:"/o-conselho"},{label:"Sobre o CRP-PR"}],title:"Sobre o CRP-PR"}),e.jsx("div",{className:"container mx-auto px-6 py-12",children:e.jsx("div",{className:"max-w-7xl mx-auto",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-8",children:[e.jsx("section",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-8 md:p-10",children:e.jsx("div",{className:"prose prose-lg max-w-none",children:e.jsx("div",{className:"text-texto leading-relaxed",dangerouslySetInnerHTML:{__html:d(o("descricao_crp").content_html||"")}})})}),e.jsxs("section",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-8 md:p-10",children:[e.jsx("h2",{className:"text-3xl font-bold text-titulos mb-6 pb-3 border-b-2 border-primary",children:"Composição"}),e.jsx("div",{className:"prose prose-lg max-w-none",children:e.jsx("div",{className:"text-texto leading-relaxed",dangerouslySetInnerHTML:{__html:d(o("composicao").content_html||"")}})})]}),e.jsxs("section",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-8 md:p-10",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6 pb-3 border-b-2 border-primary",children:[e.jsx(S,{className:"h-8 w-8 text-primary"}),e.jsx("h2",{className:"text-3xl font-bold text-titulos",children:"Diretoria"})]}),p?e.jsxs("div",{className:"text-center py-8",children:[e.jsx("div",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-primary"}),e.jsx("p",{className:"mt-4 text-texto",children:"Carregando..."})]}):l.length>0?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:l.map((s,r)=>e.jsxs("div",{className:"p-6 bg-gradient-to-br from-gray-50 to-white rounded-lg border border-gray-200 hover:border-primary hover:shadow-lg transition-all duration-300",children:[e.jsx("h3",{className:"text-lg font-semibold text-titulos mb-2 leading-tight",children:s.nome}),s.crp&&e.jsx("p",{className:"text-primary font-semibold mb-2 text-sm",children:s.crp}),s.data_renuncia&&e.jsxs("span",{className:"mb-2 inline-flex items-center rounded-full bg-red-100 px-2.5 py-0.5 text-xs font-medium text-red-700",children:["Renunciou dia ",s.data_renuncia]}),e.jsx("p",{className:"text-texto text-sm font-medium",children:s.cargo})]},r))}):e.jsx("p",{className:"text-texto text-center py-8",children:"Nenhum membro da diretoria encontrado."})]}),e.jsxs("section",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-8 md:p-10",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6 pb-3 border-b-2 border-primary",children:[e.jsx(C,{className:"h-8 w-8 text-primary"}),e.jsx("h2",{className:"text-3xl font-bold text-titulos",children:"Conselheiras(os)"})]}),p?e.jsxs("div",{className:"text-center py-8",children:[e.jsx("div",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-primary"}),e.jsx("p",{className:"mt-4 text-texto",children:"Carregando..."})]}):m.length>0?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:m.map((s,r)=>e.jsxs("div",{className:"p-4 bg-gray-50 rounded-lg border border-gray-200 hover:border-primary hover:bg-primary-50 transition-all duration-200",children:[e.jsx("p",{className:"text-texto text-sm font-medium leading-relaxed",children:s.nome}),s.crp&&e.jsx("p",{className:"text-texto text-xs mt-1 leading-relaxed",children:s.crp}),s.data_renuncia&&e.jsxs("span",{className:"mt-2 inline-flex items-center rounded-full bg-red-100 px-2.5 py-0.5 text-xs font-medium text-red-700",children:["Renunciou dia ",s.data_renuncia]})]},r))}):e.jsx("p",{className:"text-texto text-center py-8",children:"Nenhum conselheiro encontrado."})]})]}),e.jsxs("aside",{className:"lg:col-span-1 space-y-8",children:[e.jsxs("section",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-6 md:p-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-titulos mb-6 pb-3 border-b-2 border-primary",children:"Regimento Interno"}),e.jsxs("a",{href:o("regimento_interno").file_url||o("regimento_interno").link_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-3 w-full justify-center px-6 py-3 bg-primary text-white font-semibold rounded-lg hover:bg-realce transition-colors shadow-md hover:shadow-lg",children:[e.jsx(u,{className:"h-6 w-6"}),e.jsx("span",{className:"text-sm",children:o("regimento_interno").link_label||"Atos Oficiais - Resolução 006/2022"})]})]}),e.jsxs("section",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-6 md:p-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-titulos mb-6 pb-3 border-b-2 border-primary",children:"Organograma"}),e.jsxs("a",{href:"https://transparencia.cfp.org.br/crp08/gestao-de-pessoas/organograma/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-3 w-full justify-center px-6 py-3 bg-primary text-white font-semibold rounded-lg hover:bg-realce transition-colors shadow-md hover:shadow-lg",children:[e.jsx(u,{className:"h-6 w-6"}),e.jsx("span",{className:"text-sm",children:"Organograma"})]})]}),e.jsxs("section",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-6 md:p-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6 pb-3 border-b-2 border-primary",children:[e.jsx(P,{className:"h-6 w-6 text-primary"}),e.jsx("h2",{className:"text-2xl font-bold text-titulos",children:"Comissões"})]}),e.jsxs("div",{className:"prose prose-sm max-w-none",children:[e.jsx("div",{className:"text-texto leading-relaxed text-sm",dangerouslySetInnerHTML:{__html:d(o("bloco_comissoes").content_html||"")}}),e.jsxs("p",{className:"text-texto leading-relaxed text-sm mt-2",children:[e.jsx(j,{to:o("bloco_comissoes").link_url||"/o-conselho/comissoes",className:"text-primary font-semibold hover:text-realce transition-colors underline",children:o("bloco_comissoes").link_label||"Saiba mais sobre as comissões"}),"."]})]})]}),e.jsxs("section",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-6 md:p-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6 pb-3 border-b-2 border-primary",children:[e.jsx(f,{className:"h-6 w-6 text-primary"}),e.jsx("h2",{className:"text-2xl font-bold text-titulos",children:"Sede, Subsedes e Comissões Setoriais"})]}),_?e.jsxs("div",{className:"flex items-center gap-2 py-4",children:[e.jsx("div",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-primary"}),e.jsx("span",{className:"text-sm text-texto",children:"Carregando..."})]}):e.jsx("div",{className:"space-y-3",children:w.map(s=>e.jsxs("div",{className:"p-3 rounded-lg border border-gray-200 bg-gray-50 hover:border-primary hover:bg-primary-50 transition-all duration-200",children:[e.jsxs("div",{className:"flex items-start gap-2 mb-1",children:[e.jsx("span",{className:`inline-block px-2 py-0.5 rounded text-xs font-semibold flex-shrink-0 ${s.eh_
1sede_principal?"bg-primary text-white":"bg-gray-200 text-gray-700"}`,children:s.eh_sede_principal?"Sede":"Subsede"}),e.jsx("span",{className:"text-sm font-semibold text-titulos leading-tight",children:s.nome})]}),e.jsxs("div",{className:"flex items-start gap-1.5 mt-1",children:[e.jsx(f,{className:"h-3.5 w-3.5 text-gray-400 flex-shrink-0 mt-0.5"}),e.jsx("p",{className:"text-xs text-texto leading-snug",children:s.endereco})]}),s.horario_atendimento&&e.jsx("p",{className:"text-xs text-gray-500 mt-1 pl-5",children:s.horario_atendimento})]},s.id))}),e.jsx("div",{className:"mt-4",children:e.jsx(j,{to:"/o-conselho/comissoes",className:"text-primary text-sm font-semibold hover:text-realce transition-colors underline",children:"Saiba mais sobre sedes, subsedes e comissões setoriais"})})]})]})]})})})]})}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.