System.register(["./index-legacy-DF2p3puw.js"],(function(e,t){"use strict";var s,a,r,n;return{setters:[function(e){s=e.u,a=e.t,r=e.r,n=e.j}],execute:function(){e("default",(function(){var e,t=s(),i=a.cronStatusOverview.useQuery();return r.useEffect((function(){t({title:"Cron status"})}),[t]),n.jsx("div",{className:"mx-32 bg-gray-50 p-8 rounded-lg",style:{marginTop:"-3.25rem"},children:n.jsxs("table",{className:"table-auto text-center divide-y divide-gray-200 w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{className:"px-6 py-3 text-xs font-medium text-gray-800 uppercase tracking-wider w-3/5 text-left",children:" "}),n.jsx("th",{className:"px-6 py-3 text-xs font-medium text-gray-800 uppercase tracking-wider text-left",children:"Frequency"}),n.jsx("th",{className:"px-6 py-3 text-xs font-medium text-gray-800 uppercase tracking-wider text-right",children:"status"})]})}),n.jsx("tbody",{className:"text-base text-gray-600 bg-white divide-y divide-gray-200",children:null===(e=i.data)||void 0===e?void 0:e.map((function(e){var t;return n.jsxs("tr",{children:[n.jsx("td",{className:"pl-6 py-4 whitespace-nowrap text-left",children:e.name}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-left",children:e.frequency}),n.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-right",children:e.status?n.jsxs(n.Fragment,{children:[n.jsx("time",{dateTime:null===(t=e.date)||void 0===t?void 0:t.toISOString(),children:new Intl.DateTimeFormat("en-IN",{dateStyle:"medium",timeStyle:"short"}).format(e.date)}),n.jsx("span",{className:"w-2 h-2 ml-2 inline-block rounded-full ".concat("succeeded"===e.status?"bg-green-500":"bg-red-500")})]}):n.jsxs("span",{className:"text-gray-700",children:["Unknown",n.jsx("span",{className:"w-2 h-2 ml-2 inline-block rounded-full bg-gray-300"})]})})]},e.name)}))})]})})}))}}}));
