1import{d as w,c as m,o,J as y,a as n,f as s,_ as g,u as i,Z as c,w as a,b as t,F as h,r as x,t as r,g as u,h as D}from"./app-DZofoSGi.js";import{A as k}from"./AuthenticatedLayout-mi-FQi-q.js";import{_ as B}from"./Pagination.vue_vue_type_script_setup_true_lang-CHC6SJyI.js";import{_ as v}from"./DataTable.vue_vue_type_script_setup_true_lang-XLWun96v.js";import{B as F}from"./BtnLinkGroup-Dfj0Ex33.js";import{B as p}from"./Badge-CZcppaDK.js";import{D as _}from"./date.helper-Cid7hVY6.js";import"./ApplicationLogo.vue_vue_type_script_setup_true_lang-DJUtPCOt.js";import"./can-B1wtd3fD.js";const L=w({__name:"FileDownloadLink",setup(d){return(f,e)=>(o(),m("a",y({class:"flex text-indigo-400 hover:text-indigo-900 hover:bg-indigo-200 px-2 py-0.5 rounded cursor-pointer font-bold gap-0.5 text-xs items-center",download:"",type:"info"},f.$attrs),[n(g,{class:"w-4",name:"Download"}),e[0]||(e[0]=s(" Download File ",-1))],16))}}),N={class:"flex w-full justify-between"},E={class:"app-header-title"},S={class:"w-full"},A={class:"flex w-full p-4 bg-red-100 text-red-800 rounded-lg mb-4 text-sm font-sans gap-2 justify-start items-center"},H=w({__name:"ListExports",props:{jobs:{}},setup(d){return(f,e)=>(o(),m(h,null,[n(i(c),{title:"Donors"}),n(k,null,{header:a(()=>[t("div",N,[t("h2",E,[n(g,{name:"Download"}),e[0]||(e[0]=s(" Downloads ",-1))])])]),default:a(()=>[t("div",S,[t("div",A,[n(g,{name:"AlertTriangle"}),e[1]||(e[1]=t("p",null,"The File downloads are only available for 24hrs from the time they complete. once the time elapses the downloads will be removed from the system permanently.",-1))]),n(v,{"no-content":d.jobs.data.length===0},{header:a(()=>[...e[2]||(e[2]=[t("tr",null,[t("th",null,"Title"),t("th",null,"Status"),t("th",null,"Message"),t("th",null,"Started at"),t("th",null,"Failed at"),t("th",null,"Completed at"),t("th",null,"Actions")],-1)])]),noRecord:a(()=>[...e[6]||(e[6]=[s(" Nothing to download. ",-1)])]),default:a(()=>[(o(!0),m(h,null,x(d.jobs.data,l=>(o(),m("tr",{key:l.id},[t("td",null,r(l.title),1),t("td",null,[l.status==="completed"?(o(),u(p,{key:0,type:"success"},{default:a(()=>[...e[3]||(e[3]=[s(" COMPLETED ",-1)])]),_:1})):l.status==="failed"?(o(),u(p,{key:1,type:"error"},{default:a(()=>[...e[4]||(e[4]=[s(" FAILED ",-1)])]),_:1})):(o(),u(p,{key:2,type:"info"},{default:a(()=>[...e[5]||(e[5]=[s("PENDING",-1)])]),_:1}))]),t("td",null,r(l.status_message),1),t("td",null,r(i(_).format(l.created_at.toString())),1),t("td",null,r(l.failed_at?i(_).format(l.failed_at.toString()):"-"),1),t("td",null,r(l.completed_at?i(_).format(l.completed_at.toString()):"-"),1),t("td",null,[n(F,null,{default:a(()=>[l.completed_at?(o(),u(L,{key:0,href:f.route("exports.download",{path:l.file_path})},null,8,["href"])):D("",!0)]),_:2},1024)])]))),128))]),_:1},8,["no-content"]),n(B,{meta:d.jobs},null,8,["meta"])])]),_:1})],64))}});export{H 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.