PageSourceSearch

https://tresfronteiras.sp.gov.br/assets/DocumentPage-BO-hGsDH.js

js tresfronteiras.sp.gov.br collected 2026-09-25 08:47:01 UTC 5,101 bytes, 1 lines download raw bytes

1import{K as j,j as e,N as v,L as u}from"./react-core-SJCqmpBs.js";import{f as z,O as y}from"./index-HPRL_Gmq.js";import{P as N}from"./PageHero-BlGasv_a.js";import{S as l}from"./skeleton-ZENifBrq.js";import{c as k,a as w}from"./usePublicItGovernance-CUyOWtJp.js";import{C as o,c as L}from"./catalog-af1yahp4.js";import{D}from"./DocumentBody-CTRBIesI.js";import{bN as _,F as p,g as C,p as I}from"./icons-Ftwg0gFU.js";import"./radix-Cn1BSsAS.js";import"./supabase-Dr7v01qy.js";import"./dates-CW3_KQM6.js";import"./animation-9S7D5_Pu.js";import"./dnd-D1ccY35k.js";import"./mapDocumentRow-PkeGUQEW.js";import"./DocumentPdfDialog-FYD7nW6_.js";import"./formatBytes-CTYY4X1o.js";const x="Outros documentos";function P(a){return new Date(a).toLocaleDateString("pt-BR",{timeZone:"UTC"})}function T(a,r){const s=new Map;for(const t of Object.keys(o))s.set(o[t],[]);s.set(x,[]);for(const t of a){if(t.id===r)continue;const i=t.catalog_key?L(t.catalog_key):void 0,n=i?o[i.categoria]:x;s.get(n)?.push(t)}return Array.from(s.entries()).filter(([,t])=>t.length>0)}function G({document:a}){const r=[a.normative_instrument,a.normative_number].filter(Boolean).join(" nº ");return e.jsxs(u,{to:`/governanca-ti/${a.slug}`,className:"group flex items-center justify-between gap-3 rounded-xl border border-zinc-200 bg-white p-4 shadow-sm transition duration-150 ease-out active:scale-[0.99] hover:border-primary/40 hover:shadow-md dark:border-zinc-800 dark:bg-card",children:[e.jsxs("div",{className:"flex min-w-0 items-start gap-3",children:[e.jsx("div",{className:"mt-0.5 flex size-9 shrink-0 items-center justify-center rounded-lg border border-zinc-200 bg-zinc-50 text-zinc-500 dark:border-zinc-700 dark:bg-zinc-900 dark:text-zinc-400",children:e.jsx(p,{className:"size-4","aria-hidden":"true"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate font-medium text-zinc-900 dark:text-white",children:a.title}),(r||a.published_at)&&e.jsxs("p",{className:"mt-0.5 flex flex-wrap items-center gap-x-2 gap-y-1 text-xs text-zinc-500 dark:text-zinc-400",children:[r&&e.jsx("span",{children:r}),a.published_at&&e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(C,{className:"size-3","aria-hidden":"true"}),P(a.published_at)]})]})]})]}),e.jsx(I,{className:"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"})]})}function J(){const{slug:a}=j(),{company:r,isLoading:s}=z(),{document:t,isLoading:i,isNotFound:n}=k(a),{documents:h,isLoading:g}=w(),b=i||s||g;if(a==="politica-de-privacidade")return e.jsx(v,{to:"/privacidade",replace:!0});if(b)return e.jsxs("div",{className:"container mx-auto max-w-4xl px-4 py-12",children:[e.jsx(l,{className:"h-8 w-2/3"}),e.jsx(l,{className:"mt-6 h-64 w-full"})]});if(n||!t)return e.jsx("main",{className:"flex min-h-[60vh] items-center justify-center bg-zinc-50 px-4 py-16 dark:bg-zinc-950",children:e.jsxs("div",{className:"max-w-lg rounded-3xl border border-zinc-200 bg-white p-8 text-center shadow-sm dark:border-zinc-800 dark:bg-card",children:[e.jsx("div",{className:"mx-auto mb-4 flex size-14 items-center justify-center rounded-2xl bg-zinc-100 text-zinc-400 dark:bg-zinc-900",children:e.jsx(_,{className:"size-7","aria-hidden":"true"})}),e.jsx("h1",{className:"text-xl font-semibold text-zinc-900 dark:text-white",children:"Documento não encontrado"}),e.jsx("p",{className:"mt-2 text-sm text-zinc-500 dark:text-zinc-400",children:"Este documento não existe, foi removido ou ainda não foi publicado."}),e.jsx("div",{className:"mt-6",children:e.jsx(u,{to:"/governanca-ti",className:"inline-flex items-center justify-center rounded-xl bg-primary px-5 py-2.5 text-sm font-semibold text-primary-foreground transition-transform hover:opacity-90 active:scale-95",children:"Voltar para Governança de TI"})})]})});const c=T(h,t.id);return e.jsxs("div",{className:"bg-white dark:bg-background",children:[e.jsxs(y,{children:[e.jsxs("title",{children:[t.title," | ",r?.name||"Governança de TI"]}),t.summary&&e.jsx("meta",{name:"description",content:t.summary})]}
1),e.jsx(N,{title:t.title,description:t.summary??void 0,icon:p,breadcrumbs:[{label:"Governança de TI",href:"/governanca-ti"},{label:t.title}]}),e.jsxs("div",{className:"container mx-auto max-w-4xl px-4 py-12 space-y-16",children:[e.jsx("section",{className:"rounded-2xl border border-zinc-200 bg-white p-6 md:p-8 shadow-sm dark:border-zinc-800 dark:bg-card",children:e.jsx(D,{document:t,autoOpenPdf:!0})}),c.length>0&&e.jsxs("section",{className:"space-y-8 pt-8 border-t border-zinc-100 dark:border-zinc-800/60",children:[e.jsx("h3",{className:"text-xl font-bold tracking-tight text-zinc-900 dark:text-white",children:"Mais documentos de governança"}),e.jsx("div",{className:"space-y-8",children:c.map(([d,f])=>e.jsxs("div",{children:[e.jsx("h4",{className:"mb-3 text-xs font-bold uppercase tracking-wider text-zinc-500 dark:text-zinc-400",children:d}),e.jsx("div",{className:"space-y-2",children:f.map(m=>e.jsx(G,{document:m},m.id))})]},d))})]})]})]})}export{J as GovernancaTIDocument};

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.