PageSourceSearch

https://crppr.org.br/assets/CadernosLayout-Q59M5Wc7.js

js crppr.org.br collected 2026-10-02 15:03:20 UTC 9,716 bytes, 1 lines download raw bytes

1import{j as e,p as j,D as v,Y as w}from"./index-BzhlEb2N.js";import{u as N,r as l,L as c,N as y}from"./vendor-react-CpRvMXaC.js";import{c as b}from"./cadernoPsicologiaService-BCT3oMNd.js";import{r as g}from"./storage-BdTbXhlT.js";import"./vendor-pdf-De61ZhIs.js";import"./vendor-ui-5rZvml82.js";import"./vendor-editor-DoAMYjM7.js";const C=g("biblioteca/LytuAPT7YCwJFzSqHZS93zYoTnQnRVWyWbpphj4U.png"),E=[{label:"Início",to:"/cadernosdepsicologias"},{label:"Sobre nós",to:"/cadernosdepsicologias/sobre"},{label:"Quero Publicar",to:"/cadernosdepsicologias/quero-publicar"}];function P(o){const s=o.numero_edicao!=null?`Edição ${String(o.numero_edicao).padStart(2,"0")}`:o.titulo;return o.ano?{numero:s,ano:String(o.ano)}:{numero:s,ano:null}}function R(){const{pathname:o,hash:s}=N(),x=o+(s||""),[n,m]=l.useState([]),[r,i]=l.useState(!1),h=l.useRef(null);l.useEffect(()=>{let t=!0;return(async()=>{try{const a=await b.edicoesPublicas();t&&Array.isArray(a)&&m(a)}catch{}})(),()=>{t=!1}},[]),l.useEffect(()=>{if(!r)return;const t=d=>{h.current&&!h.current.contains(d.target)&&i(!1)},a=d=>{d.key==="Escape"&&i(!1)};return document.addEventListener("mousedown",t),document.addEventListener("keydown",a),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("keydown",a)}},[r]),l.useEffect(()=>{i(!1)},[o]);const u=o.startsWith("/cadernosdepsicologias/edicoes");return e.jsx("header",{className:"relative z-30 bg-white",children:e.jsxs("nav",{className:"mx-auto flex max-w-6xl items-center justify-between gap-6 px-6 py-4",children:[e.jsx(c,{to:"/cadernosdepsicologias",className:"flex items-center",children:e.jsx("img",{src:C,alt:"Cadernos de Psicologias",className:"h-12 w-auto"})}),e.jsxs("ul",{className:"hidden items-center gap-8 text-sm font-medium text-gray-700 md:flex",children:[E.map(t=>{const a=x===t.to;return e.jsx("li",{children:e.jsx(c,{to:t.to,className:"transition-colors hover:text-blue-600 "+(a?"text-blue-600":"text-gray-700"),children:t.label})},t.to)}),e.jsx("li",{className:"relative",ref:h,children:n.length>0?e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",onClick:()=>i(t=>!t),"aria-expanded":r,"aria-haspopup":"menu",className:"inline-flex items-center gap-1 transition-colors hover:text-blue-600 "+(u?"text-blue-600":"text-gray-700"),children:["Edições",e.jsx(j,{className:"h-3.5 w-3.5 transition-transform "+(r?"rotate-180":"")})]}),r&&e.jsxs("div",{role:"menu",className:"absolute left-1/2 top-full z-40 mt-3 max-h-80 w-48 -translate-x-1/2 overflow-y-auto rounded-xl border border-gray-100 bg-white py-2 shadow-lg",children:[n.map(t=>{const a=`/cadernosdepsicologias/edicoes/${t.id}`,d=o===a,{numero:f,ano:p}=P(t);return e.jsxs(c,{to:a,role:"menuitem",title:t.titulo,className:"mx-2 flex items-center gap-2 rounded-full px-3 py-1.5 text-sm transition-colors "+(d?"bg-blue-50 text-blue-700":"text-gray-800 hover:bg-gray-50 hover:text-blue-600"),children:[e.jsx("span",{className:"truncate",children:f}),p&&e.jsxs(e.Fragment,{children:[e.jsx("span",{"aria-hidden":"true",className:"text-gray-400",children:"•"}),e.jsx("span",{className:"flex-none text-gray-600",children:p})]})]},t.id)}),e.jsx("div",{className:"my-2 border-t border-gray-100"}),e.jsxs(c,{to:"/cadernosdepsicologias/edicoes",role:"menuitem",className:"mx-2 flex items-center gap-2 rounded-full px-3 py-1.5 text-sm font-semibold text-blue-600 transition-colors hover:bg-blue-50 hover:text-blue-700",children:[e.jsx(v,{className:"h-4 w-4 flex-none"}),e.jsx("span",{className:"truncate",children:"Ver todas as edições"})]})]})]}):e.jsx(c,{to:"/cadernosdepsicologias/edicoes",className:"transition-colors hover:text-blue-600 "+(u?"text-blue-600":"text-gray-700"),children:"Edições"})})]}),e.jsx("a",{href:"#comunidade",className:"rounded-full bg-blue-600 px-5 py-2 text-sm font-semibold text-white transition-colors hover:bg-blue-700",children:"Contatos"})]})})}const S=g("biblioteca/iBsTZ9yLB8A7bjKueciKsCkjuheWjR8nthWGt0Cp.png"),A=[{label:"Início",to:"/cadernosdepsicologias"},{label:"Sobre nós",to:"/cadernosdepsicologias/sobre"},{label:"Quero Publicar",to:"/cadernosdepsicologias/quero-publicar"},{label:"Edições",to:"/cadernosdepsicologias/edicoes"}],L=[{label:"Facebook",href:"#",icone:e.jsx("svg",{viewBox:"0 0 24 24",fill:"
1currentColor",className:"h-4 w-4",children:e.jsx("path",{d:"M22 12a10 10 0 1 0-11.56 9.88v-6.99H7.9V12h2.54V9.8c0-2.5 1.49-3.89 3.77-3.89 1.09 0 2.24.2 2.24.2v2.46h-1.26c-1.24 0-1.63.77-1.63 1.56V12h2.78l-.44 2.89h-2.34v6.99A10 10 0 0 0 22 12Z"})})},{label:"X",href:"#",icone:e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"h-4 w-4",children:e.jsx("path",{d:"M18.24 2.25h3.31l-7.23 8.26 8.5 11.24h-6.66l-5.22-6.82-5.97 6.82H1.66l7.73-8.84L1.24 2.25h6.83l4.71 6.23 5.46-6.23Zm-1.16 17.52h1.83L7.01 4.13H5.05l12.03 15.64Z"})})},{label:"Instagram",href:"#",icone:e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"h-4 w-4",children:e.jsx("path",{d:"M12 2.16c3.2 0 3.58.01 4.85.07 1.17.05 1.8.25 2.23.41.56.22.96.48 1.38.9.42.42.68.82.9 1.38.16.42.36 1.06.41 2.23.06 1.27.07 1.65.07 4.85s-.01 3.58-.07 4.85c-.05 1.17-.25 1.8-.41 2.23-.22.56-.48.96-.9 1.38-.42.42-.82.68-1.38.9-.42.16-1.06.36-2.23.41-1.27.06-1.65.07-4.85.07s-3.58-.01-4.85-.07c-1.17-.05-1.8-.25-2.23-.41a3.72 3.72 0 0 1-1.38-.9 3.72 3.72 0 0 1-.9-1.38c-.16-.42-.36-1.06-.41-2.23-.06-1.27-.07-1.65-.07-4.85s.01-3.58.07-4.85c.05-1.17.25-1.8.41-2.23.22-.56.48-.96.9-1.38.42-.42.82-.68 1.38-.9.42-.16 1.06-.36 2.23-.41C8.42 2.17 8.8 2.16 12 2.16Zm0 3.68a6.16 6.16 0 1 0 0 12.32 6.16 6.16 0 0 0 0-12.32Zm0 10.16a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm6.41-10.4a1.44 1.44 0 1 1-2.88 0 1.44 1.44 0 0 1 2.88 0Z"})})},{label:"Threads",href:"#",icone:e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"h-4 w-4",children:e.jsx("path",{d:"M12.19 21.75h-.04c-2.72-.02-4.81-.92-6.22-2.68-1.25-1.57-1.9-3.75-1.92-6.49v-.16c.02-2.74.67-4.92 1.92-6.49 1.41-1.76 3.5-2.66 6.22-2.68h.04c2.09.02 3.84.55 5.2 1.6 1.28.98 2.18 2.38 2.68 4.16l-1.83.51c-.83-2.96-2.92-4.47-6.06-4.5-2.07.02-3.64.68-4.66 1.96-.95 1.2-1.44 2.94-1.46 5.2 0 .02.01.03 0 .05.02 2.26.51 4 1.46 5.2 1.02 1.28 2.59 1.94 4.66 1.96 1.87-.01 3.11-.45 4.14-1.47.18-.18.35-.38.5-.59-.65-.35-1.15-.82-1.48-1.4-.55-.98-.6-2.19-.13-3.24.53-1.17 1.62-1.87 3.03-1.94 1.65-.09 2.98.65 3.62 1.99.28.59.42 1.26.4 1.98 1.16-.62 1.98-1.66 2.38-3.02l1.79.46c-.6 2.06-1.86 3.53-3.73 4.34-.03.02-.06.03-.09.04-.5 1.15-1.24 2.06-2.22 2.73-1.34 1.02-3.05 1.65-5.14 1.68Zm2.59-8.53c-.14 0-.28 0-.42.02-1.1.07-1.55.6-1.55 1.16 0 .68.79 1 1.55 1.05.75.05 1.79-.15 2.02-1.5-.44-.5-1.03-.73-1.6-.73Z"})})}];function k(){const o=new Date().getFullYear();return e.jsx("footer",{id:"comunidade",className:"px-4 pb-10 sm:px-6",children:e.jsxs("div",{className:"mx-auto max-w-6xl overflow-hidden rounded-3xl bg-gradient-to-br from-blue-600 to-cyan-400 text-white",children:[e.jsxs("div",{className:"grid gap-10 px-6 py-14 md:grid-cols-[auto_1fr_1fr_1fr] md:px-10",children:[e.jsx("div",{children:e.jsx("img",{src:S,alt:"Cadernos de Psicologias",className:"h-24 w-auto"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-semibold uppercase tracking-wide text-white/90",children:"Navegação"}),e.jsx("ul",{className:"mt-4 space-y-2 text-sm text-white/85",children:A.map(s=>e.jsx("li",{children:e.jsx(c,{to:s.to,className:"transition-colors hover:text-white",children:s.label})},s.to))})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-semibold uppercase tracking-wide text-white/90",children:"Contato"}),e.jsxs("ul",{className:"mt-4 space-y-2 text-sm text-white/85",children:[e.jsx("li",{children:"[email protected]"}),e.jsx("li",{children:"Conselho Regional de Psicologia do Paraná — 8ª Região (CRP-PR)"}),e.jsx("li",{children:"Rua XV de Novembro, 700 — Curitiba/PR — CEP 80060-000"})]}),e.jsx("div",{className:"mt-5 flex items-center gap-3",children:L.map(s=>e.jsx("a",{href:s.href,"aria-label":s.label,className:"flex h-9 w-9 items-center justify-center rounded-full bg-white/20 text-white transition-colors hover:bg-white/30",children:s.icone},s.label))})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-semibold uppercase tracking-wide text-white/90",children:"Uma iniciativa"}),e.jsxs("div",{className:"mt-4 space-y-3 text-sm text-white/85",children:[e.jsx("p",{children:"Conselho Regional de Psicologia do Paraná – 8ª Região (CRP-PR)"}),e.jsx("p",{children:"Orientando, fortalecendo e promovendo a Psicologia por meio da produção e da disseminação do conhecimento."})]})]})]}),e.jsx("div",{className:"border-t border-white/20",children:e.jsxs("div",{className:"flex flex-col gap-2 px-6 py-4 text-xs text-white/80 sm:flex-row sm:items-center sm:justify-between md:px-10",children:[e.jsxs("span",{children:["© ",o," C
1adernos de Psicologias."]}),e.jsx("span",{children:"Todos os direitos reservados."})]})})]})})}function M({children:o}){const[s,x]=l.useState(null),n=w.getUser(),m=(n==null?void 0:n.role)==="super_admin";return l.useEffect(()=>{let r=!0;return b.getConfigPublico().then(i=>{r&&x(!!(i!=null&&i.enabled))}).catch(()=>{r&&x(!0)}),()=>{r=!1}},[]),s===null?e.jsx("div",{className:"min-h-screen w-full bg-white","aria-label":"Carregando página"}):!s&&!m?e.jsx(y,{to:"/",replace:!0}):e.jsxs("div",{className:"flex min-h-screen flex-col bg-white text-gray-800",children:[!s&&m&&e.jsxs("div",{className:"border-b border-amber-200 bg-amber-50 px-4 py-2 text-center text-sm text-amber-800",children:["As páginas públicas dos Cadernos de Psicologias estão ",e.jsx("strong",{children:"desativadas"}),". Você está visualizando como super admin."]}),e.jsx(R,{}),e.jsx("main",{className:"flex-1",children:o}),e.jsx(k,{})]})}export{M 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.