PageSourceSearch

https://portal-do-fornecedor-poiesis.vercel.app/assets/AdminSuporte-C-gPB_4_.js

js portal-do-fornecedor-poiesis.vercel.app collected 2026-10-03 07:31:58 UTC 21,523 bytes, 1 lines download raw bytes

1import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{h as t,t as n}from"./vendor-react-DFC-oW3_.js";import{$ as r,At as i,Ht as a,_n as ee,dn as te,mn as o,mt as s,tt as c,un as ne}from"./vendor-design-system-svZhP1O5.js";import{t as l}from"./button-COWtfpJP.js";import{n as re,t as u}from"./logger-CFziGizL.js";import{_ as d,b as f,g as p,h as ie,v as ae,x as oe,y as se}from"./index-C4MYpc74.js";import{t as ce}from"./usePageTitle-BodlHxa3.js";import{a as m,i as le,o as ue,r as h,s as de,t as g}from"./dialog-DiJE6FSH.js";var _=e(t(),1),v=n(),y={ABERTO:`Aberto`,EM_ATENDIMENTO:`Em Atendimento`,RESPONDIDO:`Respondido`,FECHADO:`Fechado`},fe={ABERTO:`bg-[var(--support-error-inverse)] text-[var(--support-error)] border-[var(--support-error)]`,EM_ATENDIMENTO:`bg-[var(--support-warning-inverse)] text-[var(--support-warning)] border-[var(--support-warning)]`,RESPONDIDO:`bg-[var(--support-info-inverse)] text-[var(--support-info)] border-[var(--support-info)]`,FECHADO:`bg-[var(--layer-accent-01)] text-[var(--text-secondary)] border-[var(--border-strong-01)]`},b={Baixa:`bg-emerald-500/10 text-emerald-500 border-emerald-500/20`,Média:`bg-amber-500/10 text-amber-500 border-amber-500/20`,Alta:`bg-rose-500/10 text-rose-500 border-rose-500/20`};function x(){ce(`Suporte & Chamados`);let{toast:e}=oe(),[t,n]=(0,_.useState)([]),[x,S]=(0,_.useState)(0),[C,w]=(0,_.useState)(!0),[T,E]=(0,_.useState)(null),[D,O]=(0,_.useState)(null),[k,A]=(0,_.useState)(null),[j,M]=(0,_.useState)(``),[N,P]=(0,_.useState)(0),[F,I]=(0,_.useState)(``),[L,R]=(0,_.useState)(`RESPONDIDO`),[z,B]=(0,_.useState)(!1),[V,H]=(0,_.useState)(null),[U,W]=(0,_.useState)(!1),[G,pe]=(0,_.useState)({total:0,aberto:0,emAtendimento:0,respondido:0,fechado:0}),[K,q]=(0,_.useState)(null),[J,Y]=(0,_.useState)(null),[me,X]=(0,_.useState)([]);(0,_.useEffect)(()=>{Q(),Z()},[D,k,N]),(0,_.useEffect)(()=>{let e=!1;if(!T){Y(null),X([]);return}return(async()=>{let t=T.screenshot_url?await p(T.screenshot_url):null,n=await Promise.all((T.anexos||[]).map(async e=>({name:e.split(`/`).pop()||`anexo`,url:await p(e)||``})));e||(Y(t),X(n.filter(e=>e.url)))})(),()=>{e=!0}},[T]);async function Z(){try{let{data:e,error:t}=await re.from(`chamados_suporte`).select(`status`);if(t)throw t;pe({total:e.length,aberto:e.filter(e=>e.status===`ABERTO`).length,emAtendimento:e.filter(e=>e.status===`EM_ATENDIMENTO`).length,respondido:e.filter(e=>e.status===`RESPONDIDO`).length,fechado:e.filter(e=>e.status===`FECHADO`).length})}catch(e){u.error(`Erro ao buscar estatísticas:`,e instanceof Error?e:Error(String(e)))}}async function Q(){w(!0);try{let e=N*10,{data:t,total:r}=await d({status:D||void 0,prioridade:k||void 0,busca:j.trim()||void 0,limit:10,offset:e});if(n(t),S(r),T){let e=t.find(e=>e.id===T.id);e&&E(e)}}catch(t){e(`Erro ao buscar chamados: `+t.message,`error`)}finally{w(!1)}}function he(e){e.preventDefault(),P(0),Q()}function ge(){O(null),A(null),M(``),P(0)}async function _e(t){if(!(!T||!T.id))try{E(await ie(T.id,{status:t})),e(`Chamado alterado para: ${y[t||``]}`,`success`),Q(),Z()}catch(t){e(`Erro ao alterar status: `+t.message,`error`)}}async function ve(t){if(t.preventDefault(),!(!T||!T.id||!F.trim())){B(!0);try{await se(T.id,F.trim(),L,T),e(`Resposta enviada com sucesso e usuário notificado por e-mail!`,`success`),I(``),Q(),Z()}catch(t){e(`Erro ao enviar resposta: `+t.message,`error`)}finally{B(!1)}}}async function ye(){if(!(!V||!V.id)){W(!0);try{await ae(V.id),e(`Chamado removido com sucesso.`,`success`),T?.id===V.id&&E(null),H(null),Q(),Z()}catch(t){e(`Erro ao excluir chamado: `+t.message,`error`)}finally{W(!1)}}}let $=Math.ceil(x/10);return(0,v.jsxs)(`main`,{className:`max-w-[1760px] mx-auto px-6 sm:px-10 lg:px-12 py-10 flex flex-col gap-10 animate-in fade-in duration-500`,children:[(0,v.jsx)(`header`,{className:`flex flex-col sm:flex-row sm:justify-between sm:items-end gap-4`,children:(0,v.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,v.jsx)(`h1`,{className:`text-[2rem] sm:text-[2.625rem] font-light leading-[1.2] tracking-[-0.01em] text-[var(--text-primary)]`,children:`Suporte & Chamados`}),(0,v.jsx)(`p`,{className:`text-base text-[var(--text-secondary)] max-w-3xl leading-[1.5]`,children:`Acompanhe, gerencie e responda às solicitações de suporte enviadas pelos fornecedores e usuários do portal.`})]})}),(0,v.jsx)(`div`,{className:`grid grid-cols-2 lg:grid-cols-5 ga
1p-px bg-[var(--border-subtle-01)] border border-[var(--border-subtle-01)]`,children:[{label:`Todos os chamados`,value:G.total,color:`text-[var(--text-primary)]`,filterKey:null},{label:`Abertos`,value:G.aberto,color:`text-[var(--support-error)]`,filterKey:`ABERTO`},{label:`Em Atendimento`,value:G.emAtendimento,color:`text-[var(--support-warning)]`,filterKey:`EM_ATENDIMENTO`},{label:`Respondidos`,value:G.respondido,color:`text-[var(--support-info)]`,filterKey:`RESPONDIDO`},{label:`Fechados`,value:G.fechado,color:`text-[var(--text-helper)]`,filterKey:`FECHADO`}].map(e=>{let t=D===e.filterKey;return(0,v.jsxs)(`button`,{onClick:()=>{O(t?null:e.filterKey),P(0)},"aria-pressed":t,className:`relative p-6 sm:p-8 bg-[var(--layer-01)] text-left transition-colors duration-fast-02 ease-productive hover:bg-[var(--layer-hover-01)] focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-[var(--focus)] ${t?`after:absolute after:bottom-0 after:left-0 after:w-full after:h-[2px] after:bg-[var(--button-primary)]`:``}`,children:[(0,v.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.32px] text-[var(--text-secondary)] mb-2`,children:e.label}),(0,v.jsx)(`p`,{className:`text-3xl sm:text-4xl lg:text-5xl font-light leading-[1.1] ${e.color}`,children:e.value})]},e.label)})}),(0,v.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-12 gap-8 items-start`,children:[(0,v.jsxs)(`div`,{className:`lg:col-span-5 flex flex-col gap-4`,children:[(0,v.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,v.jsxs)(`form`,{onSubmit:he,className:`flex gap-2`,children:[(0,v.jsxs)(`div`,{className:`bg-[var(--layer-01)] border border-[var(--border-subtle-01)] px-4 py-3 flex items-center gap-3 flex-1`,children:[(0,v.jsx)(s,{size:20,className:`text-[var(--text-helper)] shrink-0`}),(0,v.jsx)(f,{placeholder:`Buscar por protocolo, nome, email...`,className:`border-none focus-visible:ring-0 text-sm font-medium h-auto bg-transparent flex-1`,value:j,onChange:e=>M(e.target.value),"aria-label":`Buscar chamados`})]}),(0,v.jsx)(l,{type:`submit`,variant:`secondary`,children:`Buscar`})]}),(0,v.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,v.jsx)(`span`,{className:`text-xs font-semibold uppercase tracking-[0.32px] text-[var(--text-secondary)] mr-1`,children:`Prioridade:`}),[`Alta`,`Média`,`Baixa`].map(e=>{let t=k===e;return(0,v.jsx)(`button`,{type:`button`,onClick:()=>{A(t?null:e),P(0)},className:`px-3 py-1 text-xs font-medium border rounded-full transition-colors ${t?`bg-[var(--button-primary)] text-white border-[var(--button-primary)]`:`bg-[var(--layer-01)] text-[var(--text-secondary)] border-[var(--border-subtle-02)] hover:bg-[var(--layer-hover-01)]`}`,children:e},e)}),(D||k||j)&&(0,v.jsxs)(`button`,{onClick:ge,className:`ml-auto text-xs font-semibold text-[var(--button-primary)] hover:underline flex items-center gap-1`,children:[(0,v.jsx)(o,{size:12}),` Limpar Filtros`]})]})]}),(0,v.jsx)(`div`,{className:`flex flex-col gap-3 min-h-[400px]`,children:C?(0,v.jsx)(`div`,{className:`flex-1 flex flex-col items-center justify-center py-12 bg-[var(--layer-01)] border border-[var(--border-subtle-01)]`,children:(0,v.jsx)(`span`,{className:`text-sm text-[var(--text-secondary)]`,children:`Carregando chamados...`})}):t.length===0?(0,v.jsxs)(`div`,{className:`flex-1 flex flex-col items-center justify-center py-16 px-4 bg-[var(--layer-01)] border border-[var(--border-subtle-01)] text-center`,children:[(0,v.jsx)(a,{size:32,className:`text-[var(--text-helper)] mb-2`}),(0,v.jsx)(`h3`,{className:`text-sm font-semibold text-[var(--text-primary)]`,children:`Nenhum chamado encontrado`}),(0,v.jsx)(`p`,{className:`text-xs text-[var(--text-secondary)] mt-1 max-w-xs`,children:`Tente alterar seus termos de busca ou filtros ativos.`})]}):t.map(e=>(0,v.jsxs)(`button`,{onClick:()=>{E(e),I(``)},className:`w-full text-left p-5 border transition-all flex flex-col gap-3 relative group ${T?.id===e.id?`bg-[var(--layer-accent-01)] border-[var(--button-primary)] shadow-sm`:`bg-[var(--layer-01)] border-[var(--border-subtle-01)] hover:bg-[var(--layer-hover-01)]`}`,children:[(0,v.jsxs)(`div`,{className:`flex justify-between items-center gap-2`,children:[(0,v.jsx)(`span`,{className:`text-xs font-mono font-semibold tracking-wider text-[var(--text-secondary)]`,children:e.protocolo}),(0,v.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,v.jsx)(`span`,{className:`text-[10px] uppercase font-semibold px-2 py-0.5 border rounded-full ${b[e.prioridade||`Média`]}`,children:e.prioridade}),(0,v.jsx)(`span`,{className:`text-[10px] uppercase font-semibold px-2 py-0.5 border rounded ${fe[e.status||`ABERTO`]}`,children:y[e.status||`ABERTO`]})]})]}),(0,v.jsxs)(`div`,{children:[(0,v.jsx)(`h4`,{className:`text-sm font-semibold text-[var(--text-primary)] leading-[1.4] line-clamp-1`,children:e.nome}),(0,v.jsx)(`p`,{className:`text-xs text-[var(--text-secondary)] mt-0.5 line-clamp-2`,children:e.descricao})]}),(0,v.jsxs)(`div`,{className:`flex items-center justify-between text-[11px] text-[var(--text-helper)] border-t border-[var(--border-subtle-01)] pt-2.5 mt-1`,children:[(0,v.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,v.jsx)(ee,{size:12}
1),e.created_at?new Date(e.created_at).toLocaleString(`pt-BR`,{dateStyle:`short`,timeStyle:`short`}):``]}),e.empresa&&(0,v.jsxs)(`span`,{className:`truncate max-w-[150px] font-medium text-[var(--text-secondary)]`,children:[`🏢 `,e.empresa]})]}),(0,v.jsx)(`button`,{type:`button`,onClick:t=>{t.stopPropagation(),H(e)},className:`absolute top-4 right-4 p-1.5 opacity-0 group-hover:opacity-100 hover:bg-[var(--support-error-inverse)] text-[var(--text-helper)] hover:text-[var(--support-error)] border border-transparent rounded transition-all`,title:`Excluir chamado`,"aria-label":`Excluir chamado`,children:(0,v.jsx)(r,{size:14})})]},e.id))}),$>1&&(0,v.jsxs)(`div`,{className:`flex items-center justify-between border-t border-[var(--border-subtle-01)] pt-4 mt-2`,children:[(0,v.jsxs)(`span`,{className:`text-xs text-[var(--text-secondary)]`,children:[`Mostrando página `,(0,v.jsx)(`strong`,{children:N+1}),` de `,(0,v.jsx)(`strong`,{children:$}),` (`,x,` chamados)`]}),(0,v.jsxs)(`div`,{className:`flex gap-1`,children:[(0,v.jsx)(l,{variant:`ghost`,size:`sm`,disabled:N===0||C,onClick:()=>P(e=>e-1),className:`px-2`,children:(0,v.jsx)(ne,{size:16})}),(0,v.jsx)(l,{variant:`ghost`,size:`sm`,disabled:N===$-1||C,onClick:()=>P(e=>e+1),className:`px-2`,children:(0,v.jsx)(te,{size:16})})]})]})]}),(0,v.jsx)(`div`,{className:`lg:col-span-7`,children:T?(0,v.jsxs)(`div`,{className:`bg-[var(--layer-01)] border border-[var(--border-subtle-01)] flex flex-col`,children:[(0,v.jsxs)(`div`,{className:`p-6 border-b border-[var(--border-subtle-01)] bg-[var(--layer-02)] flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4`,children:[(0,v.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,v.jsxs)(`span`,{className:`text-xs font-mono font-bold tracking-wider text-[var(--text-secondary)] uppercase`,children:[`Protocolo `,T.protocolo]}),(0,v.jsx)(`h3`,{className:`text-lg font-semibold text-[var(--text-primary)]`,children:`Detalhes do Chamado`})]}),(0,v.jsx)(`div`,{className:`flex flex-wrap items-center gap-3`,children:(0,v.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,v.jsx)(`label`,{className:`text-xs font-semibold uppercase tracking-[0.32px] text-[var(--text-secondary)]`,children:`Status:`}),(0,v.jsxs)(`select`,{className:`h-9 px-2 text-xs font-semibold bg-[var(--field-01)] border border-[var(--border-strong-01)] text-[var(--text-primary)] outline-none focus:outline-2 focus:outline-[var(--focus)]`,value:T.status,onChange:e=>_e(e.target.value),children:[(0,v.jsx)(`option`,{value:`ABERTO`,children:`🔴 Aberto`}),(0,v.jsx)(`option`,{value:`EM_ATENDIMENTO`,children:`🟡 Em Atendimento`}),(0,v.jsx)(`option`,{value:`RESPONDIDO`,children:`🔵 Respondido`}),(0,v.jsx)(`option`,{value:`FECHADO`,children:`⚫ Fechado`})]})]})})]}),(0,v.jsxs)(`div`,{className:`p-6 border-b border-[var(--border-subtle-01)] grid grid-cols-1 sm:grid-cols-2 gap-4 bg-[var(--layer-01)]`,children:[(0,v.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,v.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.32px] text-[var(--text-secondary)]`,children:`Solicitante`}),(0,v.jsxs)(`div`,{className:`flex items-center gap-2 mt-0.5`,children:[(0,v.jsx)(c,{size:16,className:`text-[var(--text-helper)]`}),(0,v.jsx)(`span`,{className:`text-sm font-semibold text-[var(--text-primary)]`,children:T.nome})]})]}),(0,v.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,v.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.32px] text-[var(--text-secondary)]`,children:`E-mail`}),(0,v.jsx)(`a`,{href:`mailto:${T.email}`,className:`text-sm font-semibold text-[var(--button-primary)] hover:underline truncate`,children:T.email})]}),T.telefone&&(0,v.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,v.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.32px] text-[var(--text-secondary)]`,children:`Telefone`}),(0,v.jsx)(`span`,{className:`text-sm font-medium text-[var(--text-primary)]`,children:T.telefone})]}),T.empresa&&(0,v.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,v.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.32px] text-[var(--text-secondary)]`,children:`Empresa`}),(0,v.jsxs)(`span`,{className:`text-sm font-medium text-[var(--text-primary)]`,children:[`🏢 `,T.empresa]})]}),(0,v.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,v.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.32px] text-[var(--text-secondary)]`,children:`Criado em`}),(0,v.jsx)(`span`,{className:`text-sm font-medium text-[var(--text-primary)]`,children:T.created_at?new Date(T.created_at).toLocaleStr
1ing(`pt-BR`):``})]}),(0,v.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,v.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.32px] text-[var(--text-secondary)]`,children:`Prioridade`}),(0,v.jsx)(`span`,{className:`text-sm font-medium`,children:(0,v.jsx)(`span`,{className:`px-2.5 py-0.5 border rounded-full text-xs font-semibold ${b[T.prioridade||`Média`]}`,children:T.prioridade})})]})]}),(0,v.jsxs)(`div`,{className:`p-6 border-b border-[var(--border-subtle-01)] flex flex-col gap-2`,children:[(0,v.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.32px] text-[var(--text-secondary)]`,children:`Descrição do Problema`}),(0,v.jsx)(`div`,{className:`bg-[var(--layer-02)] border border-[var(--border-subtle-01)] p-4 text-sm text-[var(--text-primary)] whitespace-pre-wrap leading-[1.6]`,children:T.descricao})]}),(T.screenshot_url||T.anexos&&T.anexos.length>0)&&(0,v.jsxs)(`div`,{className:`p-6 border-b border-[var(--border-subtle-01)] flex flex-col gap-4`,children:[(0,v.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.32px] text-[var(--text-secondary)]`,children:`Arquivos & Capturas de Tela`}),(0,v.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-4`,children:[T.screenshot_url&&(0,v.jsxs)(`div`,{className:`flex flex-col gap-2 border border-[var(--border-subtle-02)] p-3 bg-[var(--layer-02)]`,children:[(0,v.jsx)(`span`,{className:`text-xs font-semibold text-[var(--text-secondary)] flex items-center gap-1`,children:`📸 Screenshot automática`}),(0,v.jsxs)(`div`,{className:`relative aspect-video bg-black overflow-hidden border border-[var(--border-subtle-01)] group/img cursor-zoom-in`,onClick:()=>q(J),children:[(0,v.jsx)(`img`,{src:J||``,alt:`Screenshot automática do chamado`,className:`w-full h-full object-cover transition-transform group-hover/img:scale-105`}),(0,v.jsxs)(`div`,{className:`absolute inset-0 bg-black/40 opacity-0 group-hover/img:opacity-100 flex items-center justify-center transition-opacity text-white text-xs font-medium gap-1`,children:[(0,v.jsx)(i,{size:14}),` Ampliar imagem`]})]})]}),T.anexos&&T.anexos.length>0&&(0,v.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,v.jsxs)(`span`,{className:`text-xs font-semibold text-[var(--text-secondary)]`,children:[`📁 Documentos anexados (`,T.anexos.length,`)`]}),(0,v.jsx)(`ul`,{className:`flex flex-col gap-2`,children:me.map((e,t)=>(0,v.jsxs)(`li`,{className:`border border-[var(--border-subtle-01)] bg-[var(--layer-02)] p-2 flex items-center justify-between text-xs`,children:[(0,v.jsx)(`span`,{className:`truncate max-w-[180px] font-mono text-[var(--text-primary)]`,title:e.name,children:e.name}),(0,v.jsxs)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,className:`text-[var(--button-primary)] hover:underline flex items-center gap-1 font-semibold shrink-0 ml-2`,children:[(0,v.jsx)(i,{size:12}),` Abrir`]})]},t))})]})]})]}),(0,v.jsxs)(`div`,{className:`p-6 bg-[var(--layer-02)] flex flex-col gap-4`,children:[(0,v.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.32px] text-[var(--text-secondary)]`,children:T.resposta_admin?`Atualizar Resposta`:`Responder ao Fornecedor`}),T.resposta_admin&&(0,v.jsxs)(`div`,{className:`bg-[var(--layer-01)] border border-[var(--border-subtle-02)] border-l-4 border-l-[var(--support-success)] p-4 flex flex-col gap-2`,children:[(0,v.jsxs)(`div`,{className:`flex items-center justify-between text-xs text-[var(--text-helper)]`,children:[(0,v.jsx)(`span`,{className:`font-semibold text-[var(--text-primary)]`,children:`✓ Chamado Respondido`}),(0,v.jsx)(`span`,{children:T.respondido_em?new Date(T.respondido_em).toLocaleString(`pt-BR`):``})]}),(0,v.jsxs)(`p`,{className:`text-sm text-[var(--text-secondary)] whitespace-pre-wrap italic`,children:[`"`,T.resposta_admin,`"`]})]}),(0,v.jsxs)(`form`,{onSubmit:ve,className:`flex flex-col gap-3`,children:[(0,v.jsx)(`textarea`,{className:`w-full p-3 text-sm bg-[var(--field-01)] border border-[var(--border-strong-01)] text-[var(--text-primary)] outline-none focus:outline-2 focus:outline-[var(--focus)] resize-none`,rows:4,placeholder:`Escreva a resposta que o fornecedor receberá em seu e-mail...`,value:F,onChange:e=>I(e.target.value),required:!0}),(0,v.jsxs)(`div`,{className:`flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3`,children:[(0,v.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,v.jsx)(`label`,{className:`text-xs font-semibold uppercase tracking-[0.32px] text-[var(--text-secondary)]`,children:`Marcar status como:`}),(0,v.jsxs)(`select`,{className:`h-9 px-2 text-xs font-semibold bg-[var(--field-01)] border border-[var(--border-strong-01)] text-[var(--text-primary)] outline-none`,value:L,onChange:e=>R(e.target.value),children:[(0,v.jsx)(`option`,{value:`RESPONDIDO`,children:`🔵 Respondido`}),(0,v.jsx)(`option`,{value:`FECHADO`,children:`⚫ Fechado`})]})]}),(0,v.jsx)(l,{type:`submit`,disabled:z||!F.trim(),children:z?`Enviando...`:`Enviar Resposta`})]})]})]})]}):(0,v.jsxs)(`div`,{className:`bg-[var(--layer-01)] border border-[var(--border-subtle-01)] p-12 text-center flex flex-col items-center justify-center min-h-[500px]`,children:[(0,v.jsx)(a,{size:40,className:`text-[var(--text-helper)] mb-3 animate-pulse`}),(0,v.jsx)(`h3`,{className:`text-lg font-light text-[var(--text-primary)]`,children:`Nenhum chamado selecionado`}),(0,v.jsx)(`p`,{className:`text-sm text-[var(--text-secondary)] mt-1 max-w-sm`,children:`Selecione uma solicitação da lista à esquerda para analisar a descrição, arquivos anexados e responder.`})]})})]}),(0,v.jsx)(g,{open:!!V,onOpenChange:()=>H(null),children:(0,v.jsxs)(h,{children:[(0,v.jsxs)(ue,{children:[(0,v.jsx)(de,{children:`Excluir Chamado de Suporte?`}),(0,v.jsxs)(le,{children:[`Tem certeza que deseja excluir permanentemente o chamado `,(0,v.jsx)(`strong`,{children:V?.protocolo}),` enviado por `,(0,v.jsx)(`strong`,{children:V?.nome}),`? Esta ação não pode ser desfeita.`]})]}),(0,v.jsxs)(m,{children:[(0,v.jsx)(l,{variant:`secondary`,onClick:()=>H(null),disabled:U,children:`Cancelar`}),(0,v.jsx)(l,{variant:`danger`,onClick:ye,disabled:U,children:U?`Excluindo...`:`Confirmar Exclusão`})]})]})}),(0,v.jsx)(g,{open:!!K,onOpenChange:()=>q(null),children:(0,v.jsxs)(h,{className:`max-w-4xl p-1 bg-black overflow-hidden flex flex-col justify-between items-stretch`,children:[(0,v.jsxs)(`div`,{className:`flex justify-between items-center px-4 py-2 text-white bg-black/80 z-10 shrink-0`,children:[(0,v.jsx)(`span`,{className:`text-xs font-semibold`,children:`Captura de tela em tamanho original`}),(0,v.jsx)(`button`,{onClick:()=>q(null),className:`text-white hover:text-rose-500 transition-colors p-1`,"aria-label":`Fechar zoom`,children:(0,v.jsx)(o,{size:18})})]}),(0,v.jsx)(`div`,{className:`flex-1 overflow-auto max-h-[80vh] flex items-center justify-center p-2 bg-neutral-950`,children:K&&(0,v.jsx)(`img`,{src:K,alt:`Zoom screenshot chamado`,className:`max-w-full h-auto object-contain select-none`})}),(0,v.jsx)(m,{className:`px-4 py-2 bg-neutral-900 border-t border-neutral-800 flex justify-end shrink-0`,children:(0,v.jsx)(l,{variant:`secondary`,onClick:()=>q(null),className:`text-xs text-white border-neutral-700 hover:bg-neutral-800`,children:`Fechar`})})]})})]})}export{x 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.