1import{_ as b}from"./AppLayout-CtrEqYCm.js";import{c as p,w as c,a as t,o as s,d as a,F as l,g as u,t as i,n as g,h as d,e as m,m as y,b as w,f as v,u as k}from"./app-CdG5MDOv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CsYGqmbE.js";import"./SecondaryButton-Dto8aGFN.js";import"./en-US-5hFweVHP.js";const C={class:"flex justify-between items-center"},L={class:"font-semibold text-xl text-gray-800 leading-tight"},N={class:"py-12"},T={class:"max-w-7xl mx-auto sm:px-6 lg:px-8"},B={class:"bg-white overflow-hidden shadow-xl sm:rounded-lg"},E={class:"overflow-x-auto"},D={class:"min-w-full divide-y divide-gray-200"},H={class:"bg-white divide-y divide-gray-200"},M={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-900"},S={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},V={class:"px-6 py-4 whitespace-nowrap"},j=["title"],A={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},F={class:"px-6 py-4 whitespace-nowrap text-sm font-medium"},I=["onClick"],O={key:0},R={key:0,class:"px-6 py-4 bg-gray-50 border-t border-gray-200"},$={class:"flex flex-wrap -mb-1"},z=["innerHTML"],U={__name:"Events",props:{connection:Object,events:Object},setup(n){const h=r=>{k({}).post(route("ingestion-events.replay",r))},f=r=>r?new Date(r).toLocaleString():"N/A",_=r=>{switch(r){case"processed":return"bg-green-100 text-green-800";case"failed":return"bg-red-100 text-red-800";case"processing":return"bg-blue-100 text-blue-800";case"received":return"bg-gray-100 text-gray-800";default:return"bg-gray-100 text-gray-800"}};return(r,o)=>(s(),p(b,{title:"Events - "+n.connection.name},{header:c(()=>[t("div",C,[t("h2",L," Ingestion Events: "+i(n.connection.name),1),w(m(y),{href:r.route("integrations.index"),class:"text-sm text-indigo-600 hover:underline"},{default:c(()=>[...o[0]||(o[0]=[v(" â Back to Integrations ",-1)])]),_:1},8,["href"])])]),default:c(()=>[t("div",N,[t("div",T,[t("div",B,[t("div",E,[t("table",D,[o[2]||(o[2]=t("thead",{class:"bg-gray-50"},[t("tr",null,[t("th",{class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-widest"},"Received At"),t("th",{class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-widest"},"Type"),t("th",{class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-widest"},"Status"),t("th",{class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-widest"},"External ID"),t("th",{class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-widest"},"Actions")])],-1)),t("tbody",H,[(s(!0),a(l,null,u(n.events.data,e=>(s(),a("tr",{key:e.id},[t("td",M,i(f(e.received_at)),1),t("td",S,i(e.event_type),1),t("td",V,[t("span",{class:g(["px-2 py-1 rounded text-xs font-bold uppercase",_(e.status)])},i(e.status),3),e.error_message?(s(),a("div",{key:0,class:"text-[10px] text-red-600 mt-1 max-w-xs truncate",title:e.error_message},i(e.error_message),9,j)):d("",!0)]),t("td",A,i(e.external_event_id),1),t("td",F,[e.status==="failed"||e.status==="processed"?(s(),a("button",{key:0,onClick:x=>h(e.id),class:"text-indigo-600 hover:text-indigo-900 font-bold"}," Replay ",8,I)):d("",!0)])]))),128)),n.events.data.length===0?(s(),a("tr",O,[...o[1]||(o[1]=[t("td",{colspan:"5",class:"px-6 py-12 text-center text-gray-500 italic"}," No events found for this connection. ",-1)])])):d("",!0)])])]),n.events.links.length>3?(s(),a("div",R,[t("div",$,[(s(!0),a(l,null,u(n.events.links,(e,x)=>(s(),a(l,{key:x},[e.url===null?(s(),a("div",{key:0,class:"mr-1 mb-1 px-4 py-3 text-sm leading-4 text-gray-400 border rounded",innerHTML:e.label},null,8,z)):(s(),p(m(y),{key:1,class:g(["mr-1 mb-1 px-4 py-3 text-sm leading-4 border rounded hover:bg-white focus:border-indigo-500 focus:text-indigo-500",{"bg-white border-indigo-500":e.active}]),href:e.url,innerHTML:e.label},null,8,["class","href","innerHTML"]))],64))),128))])])):d("",!0)])])])]),_:1},8,["title"]))}};export{U 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.