1import{c as Qe,u as ot,r as O,j as s,b as Z,H as dt,a as ct}from"./app-CTaY8UJf.js";import{P as it}from"./PaginationFixed-iLESiNIA.js";import{B as Ye}from"./badge-CwzmSl53.js";import{B as x}from"./button-DXCKLHtj.js";import{D as Pe,b as Ve,a as He,c as qe,d as Oe,e as Ge}from"./dialog-BKzHwCpL.js";import{D as nt,a as xt,b as mt,c as Me}from"./dropdown-menu-D6OZoFra.js";import{I as ye}from"./input-7aHhCeCr.js";import{L as we}from"./label-CxCrcTSv.js";import{T as ke,a as T,b as Ze,c as G,d as et,e as tt}from"./table-Cb1Hol7G.js";import{T as Ke,a as ht,b as Ue,c as bt}from"./tabs-8xzuwqZU.js";import{A as ft}from"./AppLayoutWithNotifications-mus8tTbI.js";import We from"./file-text-jraIksbC.js";import ut from"./ellipsis-DmaWUrvi.js";import pt from"./eye-BixEHFrD.js";import st from"./pencil-TRb729mG.js";import at from"./trash-2-QtamTJOn.js";import Xe from"./school-B1tlnjxs.js";import lt from"./plus-BsfGhhT4.js";import jt from"./layers-Cb0hKdx0.js";import gt from"./search-BOJp92ky.js";import rt from"./x-DmP7A1Bz.js";import Nt from"./check-COSJjDXC.js";import"./app-CNmQMdEi.js";import"./index-sraz7nLe.js";import"./index-CsfSsVkk.js";import"./index-Svmmcv6D.js";import"./index-DXg2b8Vm.js";import"./index-CJBlix5Q.js";import"./index-DHUBBKJC.js";import"./index-msf3AG1t.js";import"./index-fQ3brVpV.js";import"./circle-alert-CTn79Wf8.js";import"./createLucideIcon-CmjF8lT1.js";import"./circle-x-VMcb1sXz.js";import"./circle-check-big-0QGs7tCc.js";import"./app-layout-DHg6PkRO.js";import"./index-BE_AIKwc.js";import"./video-CWkR2iFG.js";import"./chevron-right-Dcl2lTY9.js";import"./avatar-BRFzpAWX.js";import"./index-BGC6_Qsa.js";import"./index-C_SHgnPd.js";import"./shield-check-CXJJ4XEh.js";import"./file-check-tR1YCl9R.js";import"./message-square-BtERmk2L.js";import"./users-BYuco8Ea.js";import"./trending-up-CsQX3MuM.js";import"./handshake-ppgb6oUe.js";import"./calendar-CEIt2YqY.js";import"./trending-down-B7TczfdV.js";import"./building-BaJqVYxM.js";import"./list-Dehc_B-t.js";import"./activity-D1Ey-wIS.js";import"./breadcrumbs-ByKSkPWt.js";const K="/portal/admin/educacao",Je=e=>e?new Date(e+"T00:00:00").toLocaleDateString("pt-BR"):"â";function vt(e){const t=Qe.c(66),{abas:d}=e,[U,B]=O.useState(null),[c,ee]=O.useState(""),[r,Y]=O.useState(null);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={name:""},t[0]=i):i=t[0];const l=ct(i);let n;t[1]!==l?(n=a=>{a.preventDefault(),l.data.name.trim()&&l.post(`${K}/abas`,{onSuccess:()=>l.reset()})},t[1]=l,t[2]=n):n=t[2];const te=n;let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=a=>{B(a),ee(a.name)},t[3]=m):m=t[3];const _e=m;let F;t[4]!==c?(F=a=>{c.trim()&&Z.put(`${K}/abas/${a}`,{name:c},{onSuccess:()=>{B(null),ee("")}})},t[4]=c,t[5]=F):F=t[5];const R=F;let z;t[6]!==r?(z=()=>{r&&Z.delete(`${K}/abas/${r.id}`,{onSuccess:()=>Y(null)})},t[6]=r,t[7]=z):z=t[7];const W=z;let L;t[8]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx("h3",{className:"text-base font-extrabold text-slate-900 dark:text-white mb-4",children:"Cadastrar Nova Aba de Educação"}),t[8]=L):L=t[8];let X;t[9]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(we,{htmlFor:"new-aba-name",className:"text-xs font-bold text-slate-700 dark:text-slate-300",children:"Nome da Categoria / Aba"}),t[9]=X):X=t[9];let j;t[10]!==l?(j=a=>l.setData("name",a.target.value),t[10]=l,t[11]=j):j=t[11];let J;t[12]!==l.data.name||t[13]!==j?(J=s.jsx(ye,{id:"new-aba-name",placeholder:"Ex: Educação Infantil, Ensino Fundamental, Transporte Escolar...",value:l.data.name,onChange:j,className:"h-10 rounded-xl border-slate-200 bg-slate-50 text-xs shadow-xs focus:bg-white dark:border-slate-800 dark:bg-slate-800"}),t[12]=l.data.name,t[13]=j,t[14]=J):J=t[14];let g;t[15]!==l.errors.name?(g=l.errors.name&&s.jsx("p",{className:"text-[11px] text-rose-500",children:l.errors.name}),t[15]=l.errors.name,t[16]=g):g=t[16];let $;t[17]!==g||t[18]!==J?($=s.jsxs("div",{className:"flex-1 space-y-1.5",children:[X,J,g]}),t[17]=g,t[18]=J,t[19]=$):$=t[19];let N;t[20]!==l.data.name||t[21]!==l.processing?(N=l.processing||!l.data.name.trim(),t[20]=l.data.name,t[21]=l.processing,t[22]=N):N=t[22];let M;t[23]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(lt,{className:"mr-1.5 h-4 w-4"}),t[23]=M):M=t[23];let v;t[24]!==N?(v=s.jsxs(x,{type:"submit",disabled:N,className:"rounded-xl h-10 text-xs font-bold shadow-xs transition hover:scale-105",children:[M,"Cadastrar Aba"]}),t[24]=N,t[25]=v):v=t[25];let h;t[26]!==te||t[27]!==$||t[28]!==v?(h=s.jsxs("div",{className:"rounded-3xl border border-slate-200/80 bg-white p-6 shadow-xs dark:border-slate-800 dark:bg-slate-900",children:[L,s.jsxs("form",{onSubmit:te,className:"flex flex-col gap-3 sm:flex-row sm:items-end",children:[$,v]})]}),t[26]=te,t[27]=$,t[28]=v,t[29]=h):h=t[29];let k;t[30]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx("h3",{className:"text-base font-extrabold text-slate-900 dark:text-white",children:"Abas Cadastradas"}),t[30]=k):k=t[30];let _;t[31]!==d.length?(_=s.jsx("div",{className:"flex items-center justify-between border-b border-slate-100 p-6 dark:border-slate-800",children:s.jsxs("div",{children:[k,s.jsxs("p",{className:"text-xs text-slate-500",children:["Total de ",d.length," abas de educação"]})]})}),t[31]=d.length,t[32]=_):_=t[32];let P;t[33]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(Ze,{className:"bg-slate-50 dark:bg-slate-800/50",children:s.jsxs(ke,{className:"border-b border-slate-100 dar
1k:border-slate-800",children:[s.jsx(G,{className:"w-16 text-[11px] font-bold text-slate-500 uppercase",children:"ID"}),s.jsx(G,{className:"text-[11px] font-bold text-slate-500 uppercase",children:"Nome da Aba"}),s.jsx(G,{className:"text-center text-[11px] font-bold text-slate-500 uppercase",children:"Registros Vinculados"}),s.jsx(G,{className:"w-24 text-right text-[11px] font-bold text-slate-500 uppercase",children:"Ações"})]})}),t[33]=P):P=t[33];let b;t[34]!==d||t[35]!==c||t[36]!==U?.id||t[37]!==R?(b=d.length===0?s.jsx(ke,{children:s.jsx(T,{colSpan:4,className:"py-12 text-center text-slate-400",children:"Nenhuma aba cadastrada no momento."})}):d.map(a=>s.jsxs(ke,{className:"transition-colors hover:bg-slate-50/80 dark:hover:bg-slate-800/40",children:[s.jsxs(T,{className:"font-mono text-slate-400",children:["#",a.id]}),s.jsx(T,{children:U?.id===a.id?s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(ye,{value:c,onChange:A=>ee(A.target.value),className:"h-8 rounded-lg text-xs",autoFocus:!0,onKeyDown:A=>{A.key==="Enter"&&R(a.id),A.key==="Escape"&&B(null)}}),s.jsx(x,{size:"sm",className:"h-8 px-2.5 rounded-lg text-xs font-bold",onClick:()=>R(a.id),children:s.jsx(Nt,{className:"h-3.5 w-3.5"})}),s.jsx(x,{size:"sm",variant:"ghost",className:"h-8 px-2 rounded-lg",onClick:()=>B(null),children:s.jsx(rt,{className:"h-3.5 w-3.5"})})]}):s.jsx("span",{className:"font-extrabold text-slate-900 dark:text-white",children:a.name})}),s.jsx(T,{className:"text-center",children:s.jsxs(Ye,{variant:"secondary",className:"rounded-full bg-blue-50 px-2.5 py-0.5 text-[10px] font-bold text-blue-700 dark:bg-blue-950/40 dark:text-blue-300",children:[a.educacao_count??0," documento(s)"]})}),s.jsx(T,{className:"text-right",children:s.jsxs("div",{className:"flex items-center justify-end gap-1",children:[s.jsx(x,{variant:"ghost",size:"sm",className:"h-8 w-8 rounded-lg p-0 text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-slate-800",onClick:()=>_e(a),title:"Editar",children:s.jsx(st,{className:"h-3.5 w-3.5"})}),s.jsx(x,{variant:"ghost",size:"sm",className:"h-8 w-8 rounded-lg p-0 text-rose-500 hover:bg-rose-50 hover:text-rose-600 dar
1k:hover:bg-rose-950/40",onClick:()=>Y(a),title:"Excluir",children:s.jsx(at,{className:"h-3.5 w-3.5"})})]})})]},a.id)),t[34]=d,t[35]=c,t[36]=U?.id,t[37]=R,t[38]=b):b=t[38];let f;t[39]!==b?(f=s.jsx("div",{className:"overflow-x-auto",children:s.jsxs(et,{children:[P,s.jsx(tt,{className:"divide-y divide-slate-100 dark:divide-slate-800 text-xs",children:b})]})}),t[39]=b,t[40]=f):f=t[40];let w;t[41]!==_||t[42]!==f?(w=s.jsxs("div",{className:"overflow-hidden rounded-3xl border border-slate-200/80 bg-white shadow-xs dark:border-slate-800 dark:bg-slate-900",children:[_,f]}),t[41]=_,t[42]=f,t[43]=w):w=t[43];const Q=!!r;let V;t[44]===Symbol.for("react.memo_cache_sentinel")?(V=()=>Y(null),t[44]=V):V=t[44];let y;t[45]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(Pe,{className:"text-lg font-black text-slate-900 dark:text-white",children:"Excluir Aba de Educação"}),t[45]=y):y=t[45];const I=r?.name;let S;t[46]!==I?(S=s.jsx("strong",{children:I}),t[46]=I,t[47]=S):S=t[47];let C;t[48]!==r?(C=r?.educacao_count&&r.educacao_count>0&&s.jsxs("span",{className:"mt-2 block font-bold text-amber-600",children:["Atenção: Existem ",r.educacao_count," documento(s) vinculados a esta aba."]}),t[48]=r,t[49]=C):C=t[49];let u;t[50]!==S||t[51]!==C?(u=s.jsxs(Ve,{children:[y,s.jsxs(He,{className:"text-xs text-slate-500 pt-2",children:["Tem certeza que deseja excluir a aba ",S,"?",C]})]}),t[50]=S,t[51]=C,t[52]=u):u=t[52];let H;t[53]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(x,{variant:"outline",className:"rounded-xl text-xs font-semibold",onClick:()=>Y(null),children:"Cancelar"}),t[53]=H):H=t[53];let D;t[54]!==W?(D=s.jsxs(qe,{className:"gap-2 pt-4",children:[H,s.jsx(x,{variant:"destructive",className:"rounded-xl text-xs font-bold",onClick:W,children:"Excluir Aba"})]}),t[54]=W,t[55]=D):D=t[55];let p;t[56]!==u||t[57]!==D?(p=s.jsxs(Oe,{className:"max-w-md rounded-3xl p-6",children:[u,D]}),t[56]=u,t[57]=D,t[58]=p):p=t[58];let E;t[59]!==Q||t[60]!==p?(E=s.jsx(Ge,{open:Q,onOpenChange:V,children:p}),t[59]=Q,t[60]=p,t[61]=E):E=t[61];let q;return t[62]!==h||t[63]!==w||t[64]!==E?(q=s.jsxs("div",{className:"space-y-6",children:[h,w,E]}),t[62]=h,t[63]=w,t[64]=E,t[65]=q):q=t[65],q}function ys(){const e=Qe.c(118),{items:t,abas:d,filters:U,flash:B}=ot().props,[c,ee]=O.useState(U.aba_id??""),[r,Y]=O.useState(U.descricao??""),[i,l]=O.useState(U.data_inicio??""),[n,te]=O.useState(U.data_fim??""),[m,_e]=O.useState(null),[F,R]=O.useState(null),z=B?.message_success??B?.success,W=B?.message_error??B?.error;let L;e[0]!==c||e[1]!==n||e[2]!==i||e[3]!==r?(L=()=>{Z.get(K,{aba_id:c||void 0,descricao:r||void 0,data_inicio:i||void 0,data_fim:n||void 0},{preserveState:!0,replace:!0})},e[0]=c,e[1]=n,e[2]=i,e[3]=r,e[4]=L):L=e[4];const X=L;let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=()=>{ee(""),Y(""),l(""),te(""),Z.get(K)},e[5]=j):j=e[5];const J=j;let g;e[6]!==F?(g=()=>{F&&Z.delete(`${K}/${F.id}`,{onSuccess:()=>R(null)})},e[6]=F,e[7]=g):g=e[7];const $=g;let N;e[8]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(dt,{title:"Educação Municipal - Admin"}),e[8]=N):N=e[8];let M;e[9]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsxs("div",{children:[s.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full bg-slate-100 px-3 py-1 text-xs font-bold text-slate-700 dark:bg-slate-800 dark:text-slate-300",children:[s.jsx(Xe,{className:"h-3.5 w-3.5"}),s.jsx("span",{children:"Transparência ⢠Educação & Ensino"})]}),s.jsx("h1",{className:"mt-2 text-2xl font-black tracking-tight text-slate-900 dark:text-white sm:text-3xl",children:"Educação Municipal"}),s.jsx("p",{className:"mt-1 text-xs text-slate-500 dark:text-slate-400 sm:text-sm",children:"Vagas, filas de espera, cardápios de alimentação escolar e documentos pedagógicos."})]}),e[9]=M):M=e[9];let v;e[10]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsxs("div",{className:"flex flex-col justify-between gap-4 md:flex-row md:items-center",children:[M,s.jsxs(x,{onClick:wt,className:"rounded-xl text-xs font-bold shadow-md transition hover:scale-105",children:[s.jsx(lt,{className:"mr-1.5 h-4 w-4"}),"Novo Registro"]})]}),e[10]=v):v=e[10];let h;e[11]!==z?(h=z&&s.jsx("div",{className:"rounded-2xl border border-emerald-200 bg-emerald-50 p-4 text-xs font-semibold text-emerald-900 dark:border-emerald-900/50 dark:bg-emerald-950/40 dark:text-emerald-300",children:z}),e[11]=z,e[12]=h):h=e[12];let k;e[13]!==W?(k=W&&s.jsx("div",{className:"rounded-2xl border border-rose-200 bg-rose-50 p-4 text-xs font-semibold text-rose-900 dark:border-rose-900/50 dark:bg-rose-950/40 dark:text-rose-300",children:W}),e[13]=W,e[14]=k):k=e[14];let _;e[15]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsxs(Ke,{value:"educacao",className:"rounded-xl text-xs font-bold data-[state=active]:bg-white data-[state=active]:shadow-xs dark:data-[state=active]:bg-slate-900",children:[s.jsx(Xe,{className:"mr-1.5 h-3.5 w-3.5"}),"Documentos e Publicações"]}),e[15]=_):_=e[15];let P;e[16]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(jt,{className:"mr-1.5 h-3.5 w-3.5"}),e[16]=P):P=e[16];let b;e[17]!==d.length?(b=d.length>0&&s.jsx("span",{className:"ml-1.5 rounded-full bg-blue-100 px-2 py-0.5 text-[10px] font-bold text-blue-700 dark:bg-blue-900/40 dark:text-blue-300",children:d.length}),e[17]=d.length,e[18]=b):b=e[18];let f;e[19]!==b?(f=s.jsxs(ht,{className:"rounded-2xl bg-slate-100 p-1 dark:bg-slate-800",children:[_,s.jsxs(Ke,{value:"abas",className:"rounded-xl text-xs font-bold data-[state=active]:bg-white data-[state=active]:shadow-xs dark:data-[state=active]:bg-slate-900",children:[P,"Gerenciar Abas",b]})]}),e[19]=b,e[20]=f):f=e[20];let w;e[21]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(we,{className:"text-xs font-bold text-slate-700 dark:text-slate-300",children:"Filtrar por Aba"}),e[21]=w):w=e[21];let Q;e[22]===Symbol.for("react.memo_cache_sentinel")?(Q=o=>ee(o.target.value),e[22]=Q):Q=e[22];let V;e[23]===Symbol.for("react.memo_cache_sentinel")?(V=s.jsx("option",{value:"",children:"Todas as abas"}),e[23]=V):V=e[23];let y;e[24]!==d?(y=d.map(_t),e[24]=d,e[25]=y):y=e[25];let I;e[26]!==c||e[27]!==y?(I=s.jsxs("div",{className:"space-y-1.5",children:[w,s.jsxs("select",{value:c,onChange:Q,className:"flex h-10 w-full rounded-xl border border-slate-200 bg-slate-50 px-3 py-2 text-xs shadow-xs dark:border-slate-800 dark:bg-slate-800",children:[V,y]})]}),e[26]=c,e[27]=y,e[28]=I):I=e[28];let S;e[29]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(we,{className:"text-xs font-bold text-slate-700 dark:text-slate-300",children:"Descrição"}),e[29]=S):S=e[29];let C;e[30]===Symbol.for("react.memo_cache_sentinel")?(C=o=>Y(o.target.value),e[30]=C):C=e[30];let u;e[31]!==r?(u=s.jsxs("div",{className:"space-y-1.5",children:[S,s.jsx(ye,{placeholder:"Buscar por descrição...",value:r,onChange:C,className:"h-10 rounded-xl border-slate-200 bg-slate-50 text-xs shadow-xs dark:border-slate-800 dark:bg-slate-800"})]}),e[31]=r,e[32]=u):u=e[32];let H;e[33]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(we,{className:"text-xs font-bold text-slate-700 dark:text-slate-300",children:"Data InÃcio"}),e[33]=H):H=e[33];let D;e[34]===Symbol.for("react.memo_cache_sentinel")?(D=o=>l(o.target.value),e[34]=D):D=e[34];let p;e[35]!==i?(p=s.jsxs("div",{className:"space-y-1.5",children:[H,s.jsx(ye,{type:"date",value:i,onChange:D,className:"h-10 rounded-xl border-slate-200 bg-slate-50 text-xs shadow-xs dark:border-slate-800 dark:bg-slate-800"})]}),e[35]=i,e[36]=p):p=e[36];let E;e[37]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(we,{className:"text-xs font-bold text-slate-700 dark:text-slate-300",children:"Data Fim"}),e[37]=E):E=e[37];let q;e[38]===Symbol.for("react.memo_cache_sentinel")?(q=o=>te(o.target.value),e[38]=q):q=e[38];let a;e[39]!==n?(a=s.jsxs("div",{className:"space-y-1.5",children:[E,s.jsx(ye,{type:"date",value:n,onChange:q,className:"h-10 rounded-xl border-slate-200 bg-slate-50 text-xs shadow-xs dark:border-slate-800 dark:bg-slate-800"})]}),e[39]=n,e[40]=a):a=e[40];let A;e[41]!==I||e[42]!==u||e[43]!==p||e[44]!==a?(A=s.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-4",children:[I,u,p,a]}),e[41]=I,e[42]=u,e[43]=p,e[44]=a,e[45]=A):A=e[45];let Se;e[46]===Symbol.for("react.memo_cache_sentinel")?(Se=s.jsx(gt,{className:"mr-1.5 h-3.5 w-3.5"}),e[46]=Se):Se=e[46];let se;e[47]!==X?(se=s.jsxs(x,{onClick:X,className:"rounded-xl h-10 text-xs font-bold shadow-xs",children:[Se,"Buscar"]}),e[47]=X,e[48]=se):se=e[48];let ae;e[49]!==c||e[50]!==n||e[51]!==i||e[52]!==r?(ae=(c||r||i||n)&&s.jsxs(x,{variant:"outline",onClick:J,className:"rounded-xl h-10 text-xs font-semibold",children:[s.jsx(rt,{className:"mr-1.5 h-3.5 w-3.5"}),"Limpar"]}),e[49]=c,e[50]=n,e[51]=i,e[52]=r,e[53]=ae):ae=e[53];let le;e[54]!==se||e[55]!==ae?(le=s.jsxs("div",{className:"mt-4 flex gap-2",children:[se,ae]}),e[54]=se,e[55]=ae,e[56]=le):le=e[56];let re;e[57]!==A||e[58]!==le?(re=s.jsxs("div",{className:"rounded-3xl border border-slate-200/80 bg-white p-6 shadow-xs dark:border-slate-800 dark:bg-slate-900",children:[A,le]}),e[57]=A,e[58]=le,e[59]=re):re=e[59];let Ce;e[60]===Symbol.for("react.memo_cache_sentinel")?(Ce=s.jsx("h3",{className:"text-base font-extrabold text-slate-900 dark:text-white",children:"Documentos de Educação"}),e[60]=Ce):Ce=e[60];let oe;
1e[61]!==t.total?(oe=s.jsx("div",{className:"flex items-center justify-between border-b border-slate-100 p-6 dark:border-slate-800",children:s.jsxs("div",{children:[Ce,s.jsxs("p",{className:"text-xs text-slate-500",children:["Total de ",t.total," publicações cadastradas"]})]})}),e[61]=t.total,e[62]=oe):oe=e[62];let De;e[63]===Symbol.for("react.memo_cache_sentinel")?(De=s.jsx(Ze,{className:"bg-slate-50 dark:bg-slate-800/50",children:s.jsxs(ke,{className:"border-b border-slate-100 dark:border-slate-800",children:[s.jsx(G,{className:"text-[11px] font-bold text-slate-500 uppercase",children:"Descrição"}),s.jsx(G,{className:"text-[11px] font-bold text-slate-500 uppercase",children:"Data"}),s.jsx(G,{className:"text-[11px] font-bold text-slate-500 uppercase",children:"Abas Vinculadas"}),s.jsx(G,{className:"text-[11px] font-bold text-slate-500 uppercase",children:"Anexo"}),s.jsx(G,{className:"w-24 text-right text-[11px] font-bold text-slate-500 uppercase",children:"Ações"})]})}),e[63]=De):De=e[63];let de;e[64]!==t.data?(de=t.data.length===0?s.jsx(ke,{children:s.jsx(T,{colSpan:5,className:"py-12 text-center text-slate-400",children:"Nenhum registro de educação encontrado."})}):t.data.map(o=>s.jsxs(ke,{className:"transition-colors hover:bg-slate-50/80 dark:hover:bg-slate-800/40",children:[s.jsx(T,{className:"max-w-md truncate font-extrabold text-slate-900 dark:text-white",children:o.descricao??"â"}),s.jsx(T,{className:"text-slate-500 font-medium",children:Je(o.data)}),s.jsx(T,{children:s.jsx("div",{className:"flex flex-wrap gap-1",children:o.abas&&o.abas.length>0?o.abas.map(kt):s.jsx("span",{className:"text-slate-400",children:"â"})})}),s.jsx(T,{children:o.anexo_url?s.jsxs("a",{href:o.anexo_url,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 text-xs font-bold text-blue-600 hover:underline",children:[s.jsx(We,{className:"h-3.5 w-3.5"}),"Ver anexo"]}):s.jsx("span",{className:"text-slate-400",children:"â"})}),s.jsx(T,{className:"text-right",children:s.jsxs(nt,{children:[s.jsx(xt,{asChild:!0,children:s.jsx(x,{variant:"ghost",size:"sm",className:"h-8 w-8 rounded-lg p-0 text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-slate-800",children:s.jsx(ut,{className:"h-4 w-4"})})}),s.jsxs(mt,{align:"end",className:"rounded-2xl shadow-xl",children:[s.jsxs(Me,{onClick:()=>_e(o),className:"text-xs font-semibold cursor-pointer",children:[s.jsx(pt,{className:"mr-2 h-3.5 w-3.5 text-slate-500"}),"Ver detalhes"]}),s.jsxs(Me,{onClick:()=>Z.get(`${K}/${o.id}/edit`),className:"text-xs font-semibold cursor-pointer",children:[s.jsx(st,{className:"mr-2 h-3.5 w-3.5 text-slate-500"}),"Editar"]}),s.jsxs(Me,{onClick:()=>R(o),className:"text-xs font-semibold text-rose-600 focus:text-rose-700 cursor-pointer",children:[s.jsx(at,{className:"mr-2 h-3.5 w-3.5"}),"Excluir"]})]})]})})]},o.id)),e[64]=t.data,e[65]=de):de=e[65];let ce;e[66]!==de?(ce=s.jsx("div",{className:"overflow-x-auto",children:s.jsxs(et,{children:[De,s.jsx(tt,{className:"divide-y divide-slate-100 dark:divide-slate-800 text-xs",children:de})]})}),e[66]=de,e[67]=ce):ce=e[67];let ie;e[68]!==t.current_page||e[69]!==t.last_page||e[70]!==t.links||e[71]!==t.per_page||e[72]!==t.total?(ie=s.jsx("div",{className:"p-4 border-t border-slate-100 dark:border-slate-800",children:s.jsx(it,{current_page:t.current_page,last_page:t.last_page,per_page:t.per_page,total:t.total,links:t.links,baseUrl:K})}),e[68]=t.current_page,e[69]=t.last_page,e[70]=t.links,e[71]=t.per_page,e[72]=t.total,e[73]=ie):ie=e[73];let ne;e[74]!==oe||e[75]!==ce||e[76]!==ie?(ne=s.jsxs("div",{className:"overflow-hidden rounded-3xl border border-slate-200/80 bg-white shadow-xs dark:border-slate-800 dark:bg-slate-900",children:[oe,ce,ie]}),e[74]=oe,e[75]=ce,e[76]=ie,e[77]=ne):ne=e[77];let xe;e[78]!==re||e[79]!==ne?(xe=s.jsxs(Ue,{value:"educacao",className:"space-y-6",children:[re,ne]}),e[78]=re,e[79]=ne,e[80]=xe):xe=e[80];let me;e[81]!==d?(me=s.jsx(Ue,{value:"abas",children:s.jsx(vt,{abas:d})}),e[81]=d,e[82]=me):me=e[82];let he;e[83]!==f||e[84]!==xe||e[85]!==me?(he=s.jsxs(bt,{defaultValue:"educacao",className:"space-y-6",children:[f,xe,me]}),e[83]=f,e[84]=xe,e[85]=me,e[86]=he):he=e[86];let be;e[87]!==he||e[88]!==h||e[89]!==k?(be=s.jsxs("div",{className:"container mx-auto max-w-7xl px-4 py-8 sm:px-6 lg:px-8 space-y-6",children:[v,h,k,he]}),e[87]=he,e[88]=h,e[89]=k,e[90]=be):be=e[90];const Re=!!m;let Ee;e[91]===Symbol.for("react.memo_cache_sentinel")?(Ee=()=>_e(null),e[91]=Ee):Ee=e[91];let Ae;e[92]===Symbol.for("react.memo_cache_sentinel")?(Ae=s.jsx(Pe,{className:"text-lg font-black text-slate-900 dark:text-white",children:"Registro de Educação"}),e[92]=Ae):Ae=e[92];const ze=m?.data||"";let fe;e[93]!==ze?(fe=Je(ze),e[93]=ze,e[94]=fe):fe=e[94];let ue;e[95]!==fe?(ue=s.jsxs(Ve,{children:[Ae,s.jsxs(He,{className:"text-xs text-slate-500 pt-1",children:["Data: ",fe]})]}),e[95]=fe,e[96]=ue):ue=e[96];let pe;e[97]!==m?(pe=m&&s.jsxs("div",{className:"mt-4 space-y-4 text-xs",children:[s.jsxs("div",{className:"rounded-2xl border border-slate-100 bg-slate-50/50 p-4 dark:border-slate-800 dark:bg-slate-900/50",children:[s.jsx("p",{className:"text-[11px] font-bold text-slate-400",children:"Descrição"}),s.jsx("p",{className:"mt-1 font-medium text-slate-800 dark:text-slate-200 leading-relaxed",children:m.descricao||"â"})]}),m.anexo_url&&s.jsxs("div",{className:"rounded-2xl border border-slate-100 bg-slate-50/50 p-4 dark:border-slate-800 dark:bg-slate-900/50",children:[s.jsx("p",{className:"text-[11px] font-bold text-slate-400 mb-2",children:"Arquivo Anexo"}),s.jsxs("a",{href:m.anexo_url,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 rounded-xl border border-blue-200 bg-blue-50/60 px-3 py-2 text-xs font-bold text-blue-700 hover:bg-blue-100 dar
1k:border-blue-900/40 dark:bg-blue-950/40 dark:text-blue-300",children:[s.jsx(We,{className:"h-4 w-4"}),"Abrir Documento Anexo"]})]})]}),e[97]=m,e[98]=pe):pe=e[98];let Te;e[99]===Symbol.for("react.memo_cache_sentinel")?(Te=s.jsx(qe,{className:"pt-4",children:s.jsx(x,{variant:"outline",className:"rounded-xl text-xs font-semibold",onClick:()=>_e(null),children:"Fechar"})}),e[99]=Te):Te=e[99];let je;e[100]!==ue||e[101]!==pe?(je=s.jsxs(Oe,{className:"max-w-2xl max-h-[90vh] overflow-y-auto rounded-3xl p-6",children:[ue,pe,Te]}),e[100]=ue,e[101]=pe,e[102]=je):je=e[102];let ge;e[103]!==Re||e[104]!==je?(ge=s.jsx(Ge,{open:Re,onOpenChange:Ee,children:je}),e[103]=Re,e[104]=je,e[105]=ge):ge=e[105];const Le=!!F;let Fe;e[106]===Symbol.for("react.memo_cache_sentinel")?(Fe=()=>R(null),e[106]=Fe):Fe=e[106];let $e;e[107]===Symbol.for("react.memo_cache_sentinel")?($e=s.jsxs(Ve,{children:[s.jsx(Pe,{className:"text-lg font-black text-slate-900 dark:text-white",children:"Excluir Registro"}),s.jsx(He,{className:"text-xs text-slate-500 pt-2",children:"Tem certeza que deseja excluir o registro de educação?"})]}),e[107]=$e):$e=e[107];let Ie;e[108]===Symbol.for("react.memo_cache_sentinel")?(Ie=s.jsx(x,{variant:"outline",className:"rounded-xl text-xs font-semibold",onClick:()=>R(null),children:"Cancelar"}),e[108]=Ie):Ie=e[108];let Ne;e[109]!==$?(Ne=s.jsxs(Oe,{className:"max-w-md rounded-3xl p-6",children:[$e,s.jsxs(qe,{className:"gap-2 pt-4",children:[Ie,s.jsx(x,{variant:"destructive",className:"rounded-xl text-xs font-bold",onClick:$,children:"Excluir"})]})]}),e[109]=$,e[110]=Ne):Ne=e[110];let ve;e[111]!==Le||e[112]!==Ne?(ve=s.jsx(Ge,{open:Le,onOpenChange:Fe,children:Ne}),e[111]=Le,e[112]=Ne,e[113]=ve):ve=e[113];let Be;return e[114]!==be||e[115]!==ge||e[116]!==ve?(Be=s.jsxs(ft,{children:[N,be,ge,ve]}),e[114]=be,e[115]=ge,e[116]=ve,e[117]=Be):Be=e[117],Be}function kt(e){return s.jsx(Ye,{variant:"secondary",className:"rounded-full bg-blue-50 px-2.5 py-0.5 text-[10px] font-bold text-blue-700 dark:bg-blue-950/40 dark:text-blue-300",children:e.name},e.id)}function _t(e){return s.jsx("option",{value:e.id,children:e.name},e.id)}function wt(){return Z.get(`${K}/create`)}export{ys 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.