1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PositionFormDialog_6020229c.js","assets/index_480d3d6c.js","assets/index_5cd82a7c.css","assets/hr_b3962cc5.js","assets/useHrPositions_3d08e6b9.js"])))=>i.map(i=>d[i]); 2import{ax as ie,ay as re,a1 as C,b9 as S,aa as j,ce as L,a0 as _,O as h,L as e,af as V,ag as Q,ah as B,ai as U,a3 as P,aE as D,aF as T,aG as q,aH as A,aI as F,bI as le,bD as G,Z as f,al as y,bh as Y,aA as Z,cq as J,c1 as W,aD as X,bH as oe,R as M,be as ce,bf as de,bg as ue,aj as me,c5 as xe,cl as he,cC as ve,ca as fe,S as pe,at as ge,au as je,av as O,aw as R,T as $}from"./index_480d3d6c.js";import{b as _e,c as Ne}from"./useHrPositions_3d08e6b9.js";import{H as E}from"./hr_b3962cc5.js";import ee from"./pencil_6f466a3d.js";import se from"./power-off_943de637.js";import te from"./power_a6124961.js";const{Component:I}=ie({kind:"dialog",load:()=>re(()=>import("./PositionFormDialog_6020229c.js"),__vite__mapDeps([0,1,2,3,4])).then(s=>s.PositionFormDialog)}),ye=()=>{const s=C();return S({mutationFn:async n=>{const{data:a,error:t}=await _.from("hr_position_levels").insert(n).select().single();if(t)throw t;return a},onSuccess:()=>{s.invalidateQueries({queryKey:["hr-positions"]}),j.success("NÃvel adicionado")},onError:n=>j.error(L(n))})},we=()=>{const s=C();return S({mutationFn:async({id:n,...a})=>{const{error:t}=await _.from("hr_position_levels").update(a).eq("id",n);if(t)throw t},onSuccess:()=>{s.invalidateQueries({queryKey:["hr-positions"]}),j.success("NÃvel atualizado")},onError:n=>j.error(L(n))})},be=()=>{const s=C();return S({mutationFn:async({id:n,is_active:a})=>{if(!a){const{count:i,error:l}=await _.from("hr_employees").select("id",{count:"exact",head:!0}).eq("position_level_id",n).eq("status","ativo");if(l)throw l;if((i??0)>0)throw new Error(`Não é possÃvel desativar: existem ${i} colaborador(es) ativo(s) neste nÃvel.`)}const{error:t}=await _.from("hr_position_levels").update({is_active:a}).eq("id",n);if(t)throw t},onSuccess:(n,a)=>{s.invalidateQueries({queryKey:["hr-positions"]}),j.success(a.is_active?"NÃvel ativado":"NÃvel desativado")},onError:n=>j.error(L(n))})},Ee=()=>{const s=C();return S({mutationFn:async n=>{const{count:a,error:t}=await _.from("hr_employees").select("id",{count:"exact",head:!0}).eq("position_level_id",n);if(t)throw t;if((a??0)>0)throw new Error(`Não é possÃvel excluir: existem ${a} colaborador(es) vinculado(s).`);const{error:i}=await _.from("hr_position_levels").delete().eq("id",n);if(i)throw i},onSuccess:()=>{s.invalidateQueries({queryKey:["hr-positions"]}),j.success("NÃvel removido")},onError:n=>j.error(L(n))})};function Ce({open:s,onOpenChange:n,position:a,level:t}){const i=!!t,l=ye(),r=we(),[o,d]=h.useState("pleno"),[u,p]=h.useState(""),g=h.useMemo(()=>{const c=new Set;return(a.levels||[]).forEach(b=>{(!i||b.id!==(t==null?void 0:t.id))&&c.add(b.level)}),c},[a.levels,i,t==null?void 0:t.id]),v=h.useMemo(()=>Object.keys(E).filter(c=>!g.has(c)),[g]);h.useEffect(()=>{s&&(d((t==null?void 0:t.level)||v[0]||"pleno"),p((t==null?void 0:t.description)||""))},[s,t,v]);const N=async()=>{i?await r.mutateAsync({id:t.id,level:o,description:u.trim()||null}):await l.mutateAsync({position_id:a.id,level:o,description:u.trim()||null}),n(!1)},m=!i&&v.length===0;return e.jsx(V,{open:s,onOpenChange:n,children:e.jsxs(Q,{children:[e.jsx(B,{children:e.jsx(U,{children:i?`Editar nÃvel â ${a.name}`:`Adicionar nÃvel â ${a.name}`})}),m?e.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"Todos os nÃveis já foram cadastrados para este cargo."}):e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(P,{children:"NÃvel *"}),e.jsxs(D,{value:o,onValueChange:c=>d(c),children:[e.jsx(T,{children:e.jsx(q,{})}),e.jsx(A,{children:(i?[t.level,...v]:v).map(c=>e.jsx(F,{value:c,children:E[c]},c))})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(P,{htmlFor:"ldesc",children:"Descrição / Responsabilidades"}),e.jsx(le,{id:"ldesc",value:u,onChange:c=>p(c.target.value),rows:6,placeholder:"Atribuições, expectativas e entregáveis deste nÃvel..."})]})]}),e.jsxs(G,{children:[e.jsx(f,{variant:"ghost",onClick:()=>n(!1),children:m?"Fechar":"Cancelar"}),!m&&e.jsx(f,{onClick:N,disabled:l.isPending||r.isPending,children:i?"Salvar":"Adicionar"})]})]})})}const z={junior:0,pleno:1,senior:2,especialista:3,lider:4,diretor:5};function Se({position:s,peopleByLevelId:n,onAddLevel:a,onEditLevel:t}){const i=be(),l=Ee(),r=[...s.levels||[]].sort((o,d)=>(z[o.level]??99)-(z[d.level]??99));return e.jsxs("div",{className:"space-y-2",children:[r.length===0&&e.jsx("p",{className:"text-xs text-muted-foreground italic",children:"Sem nÃveis cadastrados."}),r.map(o=>{const d=n[o.id]??Re,u=d.current.length+d.terminated.length;return e.jsxs("div",{className:`flex items-start justify-between gap-3 rounded-md border p-3 ${o.is_active?"":"opacity-60"}`,children:[e.jsxs("div",{className:"flex-1 min-w-0 space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx(y,{variant:"secondary",children:E[o.level]}),!o.is_active&&e.jsx(y,{variant:"outline",className:"text-xs",children:"Inativo"})]}),e.jsx(ze,{people:d}),o.description&&e.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-wrap",children:o.description})]}),e.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[e.jsx(f,{variant:"ghost",size:"icon",onClick:()=>t(o),title:"Editar",children:e.jsx(ee,{className:"h-4 w-4"})}),e.jsx(f,{variant:"ghost",size:"icon",title:o.is_active?"Desativar":"Ativar",onClick:()=>i.mutate({id:o.id,is_active:!o.is_active}),children:o.is_active?e.jsx(se,{className:"h-4 w-4"}):e.jsx(te,{className:"h-4 w-4"})}),e.jsx(f,{variant:"ghost",size:"icon",title:"Excluir",disabled:u>0,onClick:()=>{confirm(`Excluir nÃvel ${E[o.level]}?`)&&l.mutate(o.id)},children:e.jsx(Y,{className:"h-4 w-4"})})]})]},o.id)}),e.jsxs(f,{variant:"outline",size:"sm",onClick:a,className:"w-full",children:[e.jsx(Z,{className:"h-4 w-4 mr-2"})," Adicionar nÃvel"]})]})}function Le({position:s,isOpen:n,levelPeople:a,onToggleExpand:t,onEdit:i,onToggleActive:l,onDelete:r,onAddLevel:o,onEditLevel:d}){var g;const u=s.levels||[],p=u.filter(v=>v.is_active).length;return e.jsxs("div",{className:`rounded-md border ${s.is_active?"":"opacity-60"}`,children:[e.jsxs("div",{className:"flex items-center gap-2 p-3",children:[e.jsx(f,{variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0",onClick:t,"aria-label":n?"Recolher":"Expandir",children:n?e.jsx(J,{className:"h-4 w-4"}):e.jsx(W,{className:"h-4 w-4"})}),e.jsx("button",{type:"button",onClick:t,className:"min-w-0 flex-1 text-left",children:e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"font-medium",children:s.name}),((g=s.team)==null?void 0:g.name)&&e.jsxs("span",{className:"text-xs text-muted-foreground",children:["· ",s.team.name]})]})}),e.jsxs(y,{variant:"secondary",className:"shrink-0",children:[p,"/",u.length," ",u.length===1?"nÃvel":"nÃveis"]}),s.is_active?e.jsx(y,{className:"shrink-0",children:"Ativo"}):e.jsx(y,{variant:"outline",className:"shrink-0",children:"Inativo"}),e.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[e.jsx(f,{variant:"ghost",size:"icon",onClick:i,title:"Editar cargo",children:e.jsx(ee,{className:"h-4 w-4"})}),e.jsx(f,{variant:"ghost",size:"icon",title:s.is_active?"Desativar":"Ativar",onClick:l,children:s.is_active?e.jsx(se,{className:"h-4 w-4"}):e.jsx(te,{className:"h-4 w-4"})}),e.jsx(f,{variant:"ghost",size:"icon",title:"Excluir cargo",onClick:r,children:e.jsx(Y,{className:"h-4 w-4 text-destructive"})})]})]}),n&&e.jsx("div",{className:"border-t bg-muted/20 p-3",children:e.jsx(Se,{position:s,peopleByLevelId:a,onAddLevel:o,onEditLevel:d})})]})}function Pe({positions:s,isLoading:n,levelPeople:a,onEdit:t,onToggleActive:i,onDelete:l,onLevelDialog:r}){const[o,d]=h.useState(!0),[u,p]=h.useState(""),[g,v]=h.useState({}),N=h.useMemo(()=>s.filter(m=>
2!(!o&&!m.is_active||u&&!m.name.toLowerCase().includes(u.toLowerCase()))),[s,o,u]);return e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[e.jsx(X,{placeholder:"Buscar por nome...",value:u,onChange:m=>p(m.target.value),className:"max-w-sm"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(oe,{id:"show-inactive",checked:o,onCheckedChange:d}),e.jsx(P,{htmlFor:"show-inactive",children:"Mostrar inativos"})]})]}),n&&e.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"Carregando..."}),!n&&N.length===0&&e.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"Nenhum cargo encontrado"}),e.jsx("div",{className:"space-y-2",children:N.map(m=>e.jsx(Le,{position:m,isOpen:!!g[m.id],levelPeople:a,onToggleExpand:()=>v(c=>({...c,[m.id]:!c[m.id]})),onEdit:()=>t(m),onToggleActive:()=>i(m),onDelete:()=>l(m),onAddLevel:()=>r(m,null),onEditLevel:c=>r(m,c)},m.id))})]})}const k={all:["hr-positions"],deleted:["hr-positions","deleted"],employees:s=>["hr-positions","employees",s],levelCounts:["hr-position-level-employee-counts"]},ke=s=>M({queryKey:k.employees(s??"none"),enabled:!!s,queryFn:async()=>{const{data:n,error:a}=await _.from("hr_employees").select("id, full_name, status, position_level_id, position_level:hr_position_levels(level), profile:profiles!hr_employees_profile_id_fkey(full_name, avatar_url)").eq("position_id",s).order("full_name");if(a)throw a;return(n||[]).map(t=>{var i,l,r;return{id:t.id,full_name:((i=t.profile)==null?void 0:i.full_name)||t.full_name||"(sem nome)",avatar_url:((l=t.profile)==null?void 0:l.avatar_url)??null,position_level_id:t.position_level_id,level:((r=t.position_level)==null?void 0:r.level)??null,status:t.status}})}}),De=()=>{const s=C();return S({mutationFn:async({positionId:n,assignments:a,reason:t})=>{const{error:i}=await _.rpc("hr_delete_position",{_position_id:n,_assignments:a,_reason:(t==null?void 0:t.trim())||null});if(i)throw i},onSuccess:()=>{s.invalidateQueries({queryKey:k.all}),s.invalidateQueries({queryKey:["hr-employees"]}),j.success("Cargo excluÃdo")},onError:n=>j.error(L(n))})};function Te({employee:s,targets:n,value:a,onChange:t}){const i=n.find(r=>r.id===(a==null?void 0:a.to_position_id))??null,l=((i==null?void 0:i.levels)||[]).filter(r=>r.is_active);return e.jsxs("div",{className:"flex flex-col gap-2 rounded-md border p-3 sm:flex-row sm:items-center",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[e.jsxs(ce,{className:"h-8 w-8",children:[e.jsx(de,{src:s.avatar_url??void 0,alt:s.full_name}),e.jsx(ue,{children:s.full_name.slice(0,2).toUpperCase()})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate text-sm font-medium",children:s.full_name}),e.jsxs("div",{className:"flex items-center gap-1",children:[s.level&&e.jsx(y,{variant:"secondary",className:"text-xs",children:E[s.level]}),s.status!=="ativo"&&e.jsx(y,{variant:"outline",className:"text-xs",children:s.status})]})]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(D,{value:(a==null?void 0:a.to_position_id)??"",onValueChange:r=>t({employee_id:s.id,to_position_id:r,to_position_level_id:null}),children:[e.jsx(T,{className:"w-[190px]","aria-label":`Cargo de destino de ${s.full_name}`,children:e.jsx(q,{placeholder:"Cargo de destino"})}),e.jsx(A,{children:n.map(r=>e.jsx(F,{value:r.id,children:r.name},r.id))})]}),e.jsxs(D,{value:(a==null?void 0:a.to_position_level_id)??"",disabled:!i||l.length===0,onValueChange:r=>a&&t({...a,to_position_level_id:r}),children:[e.jsx(T,{className:"w-[150px]","aria-label":`NÃvel de destino de ${s.full_name}`,children:e.jsx(q,{placeholder:"NÃvel"})}),e.jsx(A,{children:l.map(r=>e.jsx(F,{value:r.id,children:E[r.level]},r.id))})]})]})]})}function qe({position:s,positions:n,onOpenChange:a}){const[t,i]=h.useState({}),[l,r]=h.useState(""),[o,d]=h.useState(""),{data:u=[],isLoading:p}=ke((s==null?void 0:s.id)??null),g=De(),v=h.useMemo(()=>n.filter(x=>x.is_active&&x.id!==(s==null?void 0:s.id)),[n,s==null?void 0:s.id]),N=u.filter(x=>{var w;return!((w=t[x.id])!=null&&w.to_position_id)}).length,m=!p&&N===0&&!g.isPending,c=()=>{i({}),r(""),d(""),a(!1)},b=x=>{r(x),i(Object.fromEntries(u.map(w=>[w.id,{employee_id:w.id,to_position_id:x,to_position_level_id:null}])))},ae=()=>{s&&g.mutate({positionId:s.id,assignments:Object.values(t),reason:o},{onSuccess:c})};return e.jsx(V,{open:!!s,onOpenChange:x=>{x||c()},children:e.jsxs(Q,{className:"max-w-3xl",children:[e.jsxs(B,{children:[e.jsxs(U,{children:["Excluir cargo ",s==null?void 0:s.name]}),e.jsx(me,{children:u.length===0?"Nenhuma pessoa está vinculada a este cargo. Ele vai para a aba ExcluÃdos e pode ser reativado depois.":"Indique para qual cargo e nÃvel cada pessoa vinculada será transferida. O cargo vai para a aba ExcluÃdos e pode ser reativado depois."})]}),u.length>0&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(P,{className:"text-xs text-muted-foreground",children:"Aplicar para todos"}),e.jsxs(D,{value:l,onValueChange:b,children:[e.jsx(T,{className:"w-[220px]","aria-label":"Aplicar cargo para todos",children:e.jsx(q,{placeholder:"Escolher cargo"})}),e.jsx(A,{children:v.map(x=>e.jsx(F,{value:x.id,children:x.name},x.id))})]})]}),e.jsxs("div",{className:"max-h-[45vh] space-y-2 overflow-y-auto pr-1",children:[p&&e.jsx("p",{className:"text-sm text-muted-foreground",children:"Carregando pessoas..."}),u.map(x=>e.jsx(Te,{employee:x,targets:v,value:t[x.id],onChange:w=>i(ne=>({...ne,[x.id]:w}))},x.id))]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(P,{htmlFor:"delete-reason",children:"Motivo (opcional)"}),e.jsx(X,{id:"delete-reason",value:o,onChange:x=>d(x.target.value),placeholder:"Ex.: cargo duplicado"})]}),e.jsxs(G,{children:[N>0&&e.jsxs("span",{className:"mr-auto self-center text-xs text-muted-foreground",children:[N," pessoa(s) sem destino"]}),e.jsx(f,{variant:"outline",onClick:c,children:"Cancelar"}),e.jsx(f,{variant:"destructive",disabled:!m,onClick:ae,children:"Excluir cargo"})]})]})})}const Ae=(s=!0)=>M({queryKey:k.deleted,enabled:s,queryFn:async()=>{const{data:n,error:a}=await _.rpc("hr_deleted_positions");
2if(a)throw a;return(n||[]).map(t=>({...t,transfers:t.transfers??[]}))}}),Fe=()=>{const s=C();return S({mutationFn:async n=>{const{error:a}=await _.rpc("hr_restore_position",{_position_id:n});if(a)throw a},onSuccess:()=>{s.invalidateQueries({queryKey:k.all}),j.success("Cargo reativado")},onError:n=>j.error(L(n))})};function Me(){const{data:s=[],isLoading:n}=Ae(),a=Fe();return n?e.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"Carregando..."}):s.length===0?e.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"Nenhum cargo excluÃdo"}):e.jsx("div",{className:"space-y-2",children:s.map(t=>e.jsxs("div",{className:"rounded-md border p-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"font-medium",children:t.name}),t.team_name&&e.jsxs("span",{className:"text-xs text-muted-foreground",children:["· ",t.team_name]}),e.jsxs(y,{variant:"outline",className:"text-xs",children:[t.levels_count," ",t.levels_count===1?"nÃvel":"nÃveis"]}),e.jsxs(y,{variant:"secondary",className:"text-xs",children:[t.transfers.length," transferência(s)"]}),e.jsxs(f,{variant:"outline",size:"sm",className:"ml-auto",disabled:a.isPending,onClick:()=>a.mutate(t.id),children:[e.jsx(xe,{className:"mr-2 h-4 w-4"})," Reativar"]})]}),e.jsxs("p",{className:"mt-1 text-xs text-muted-foreground",children:["ExcluÃdo por ",t.deleted_by_name||"â"," em ",he(t.deleted_at,"dd/MM/yyyy HH:mm"),t.deleted_reason?` · ${t.deleted_reason}`:""]}),t.transfers.length>0&&e.jsx("ul",{className:"mt-2 space-y-1",children:t.transfers.map(i=>e.jsxs("li",{className:"text-xs text-muted-foreground",children:[i.employee_name||"â"," â ",i.to_position_name||"â"]},`${i.employee_id}-${i.moved_at}`))})]},t.id))})}const Oe="desligado",Re={current:[],terminated:[]},H=(s,n)=>s.name.localeCompare(n.name,"pt-BR");function $e(s){var a,t,i;const n={};for(const l of s){if(!l.position_level_id)continue;const r=n[a=l.position_level_id]??(n[a]={current:[],terminated:[]}),o=((t=l.full_name)==null?void 0:t.trim())||((i=l.profile_name)==null?void 0:i.trim())||"(sem nome)";(l.status===Oe?r.terminated:r.current).push({id:l.id,name:o})}for(const l of Object.values(n))l.current.sort(H),l.terminated.sort(H);return n}const Ie=()=>M({queryKey:k.levelCounts,queryFn:async()=>{const n=(await ve((a,t)=>_.from("hr_employees").select("id, full_name, status, position_level_id, profile:profiles!hr_employees_profile_id_fkey(full_name)").not("position_level_id","is",null).order("id").range(a,t))).map(a=>{var t;return{id:a.id,full_name:a.full_name,status:a.status,position_level_id:a.position_level_id,profile_name:((t=a.profile)==null?void 0:t.full_name)??null}});return $e(n)}});function K({people:s,muted:n}){return e.jsx("ul",{className:"space-y-1",children:s.map(a=>e.jsx("li",{children:e.jsx(fe,{to:`${pe.HR_EMPLOYEES}/${a.id}`,className:`text-sm hover:underline ${n?"text-muted-foreground":"text-foreground"}`,children:a.name})},a.id))})}function ze({people:s}){const[n,a]=h.useState(!1),[t,i]=h.useState(!1),l=s.current.length,r=l+s.terminated.length,o=n?J:W;return e.jsxs("div",{className:"space-y-2",children:[e.jsxs("button",{type:"button",onClick:()=>a(d=>!d),disabled:r===0,className:"inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground disabled:cursor-default disabled:hover:text-muted-foreground",children:[r>0&&e.jsx(o,{className:"h-3 w-3"}),l," colaborador",l===1?"":"es"]}),n&&e.jsxs("div",{className:"space-y-2 pl-4",children:[l===0&&e.jsx("p",{className:"text-xs italic text-muted-foreground",children:"Ninguém ativo neste nÃvel."}),e.jsx(K,{people:s.current}),s.terminated.length>0&&e.jsxs("button",{type:"button",onClick:()=>i(d=>!d),className:"text-xs text-muted-foreground underline",children:[t?"Ocultar":"Ver"," ",s.terminated.length," desligado",s.terminated.length===1?"":"s"]}),t&&e.jsx(K,{people:s.terminated,muted:!0})]})]})}function Ge(){const[s,n]=h.useState("ativos"),[a,t]=h.useState(null),[i,l]=h.useState(null),[r,o]=h.useState(!1),[d,u]=h.useState(null),{data:p=[],isLoading:g}=_e(!0),v=Ne(),{data:N={},isError:m}=Ie();
2return e.jsxs("div",{className:"container mx-auto space-y-6 py-6",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold",children:"Cargos"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Gestão de cargos e seus nÃveis"})]}),e.jsxs(f,{onClick:()=>o(!0),children:[e.jsx(Z,{className:"mr-2 h-4 w-4"})," Novo cargo"]})]}),e.jsxs(ge,{value:s,onValueChange:n,children:[e.jsxs(je,{children:[e.jsx(O,{value:"ativos",children:"Ativos"}),e.jsx(O,{value:"excluidos",children:"ExcluÃdos"})]}),e.jsx(R,{value:"ativos",children:e.jsxs($,{className:"p-4",children:[m&&e.jsx("p",{className:"mb-3 text-sm text-destructive",children:"Não foi possÃvel carregar as pessoas de cada nÃvel. Recarregue a página."}),e.jsx(Pe,{positions:p,isLoading:g,levelPeople:N,onEdit:t,onToggleActive:c=>v.mutate({id:c.id,is_active:!c.is_active}),onDelete:l,onLevelDialog:(c,b)=>u({position:c,level:b})})]})}),e.jsx(R,{value:"excluidos",children:e.jsx($,{className:"p-4",children:e.jsx(Me,{})})})]}),e.jsx(I,{open:r,onOpenChange:o}),e.jsx(I,{open:!!a,onOpenChange:c=>{c||t(null)},position:a||void 0}),e.jsx(qe,{position:i,positions:p,onOpenChange:c=>{c||l(null)}}),d&&e.jsx(Ce,{open:!!d,onOpenChange:c=>{c||u(null)},position:d.position,level:d.level})]})}export{Ge 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.