1import{j as e,H as l,L as m}from"./app-D4IBpXEE.js";import{C as d}from"./ClientLayout-DYwATrPj.js";import{u as x}from"./useTranslation-mV-gvqqz.js";import{A as c}from"./arrow-left-BfMoYKHZ.js";import{c as p}from"./createLucideIcon-CNbh77gd.js";import{C as n}from"./clock-CjNziwQQ.js";import{C as u}from"./circle-x-Btp33Tip.js";import{C as h}from"./circle-check-big-Cs_dpEV5.js";import"./Topbar-YNLa3oLe.js";import"./ApplicationLogo-Bp8Si-NU.js";import"./Tabs-CO9UBWDc.js";import"./Modal-BG2UZmBH.js";import"./useLocale-DI-M_4se.js";import"./search-DEcyoQmh.js";import"./x-Bdl9lUlz.js";import"./Sidebar-CzTRGA0N.js";import"./useBranding-B7C0EavV.js";import"./plus-BtmR7ya-.js";import"./chevron-down-BD_xrt_b.js";import"./useClientNav-CCpWTcrs.js";import"./BrandIcons-DMEfIFxP.js";import"./layers-YtkC_1qB.js";import"./users-CkbR-kb7.js";import"./file-text-Bmh95Nys.js";import"./book-open-CP9xNsRl.js";import"./image-XLVZUHN1.js";import"./message-square-CnPXhMbL.js";import"./mail-CzXHdh_t.js";import"./inbox-CUredXdt.js";import"./bot-vbm2HKxV.js";import"./database-BicTbJP6.js";import"./map-pin-N5xEBYne.js";import"./zap-BHSHd7Nv.js";/** 2 * @license lucide-react v0.575.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const j=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],f=p("skip-forward",j),k={completed:e.jsx(h,{className:"h-4 w-4 text-green-500"}),failed:e.jsx(u,{className:"h-4 w-4 text-red-500"}),running:e.jsx(n,{className:"h-4 w-4 text-blue-500"}),pending:e.jsx(n,{className:"h-4 w-4 text-yellow-500"}),cancelled:e.jsx(f,{className:"h-4 w-4 text-neutral-400"})},g={ok:"text-green-700 bg-green-50 dark:bg-green-900/20 dark:text-green-300",error:"text-red-700 bg-red-50 dark:bg-red-900/20 dark:text-red-300",skipped:"text-neutral-500 bg-neutral-50 dark:bg-neutral-800 dark:text-neutral-400"};function Z({automation:s,runs:i}){const{t:r}=x();return e.jsxs(d,{title:`${s.name} · ${r("automation.runs")}`,children:[e.jsx(l,{title:`${r("automation.runs")} · ${s.name}`}),e.jsxs("div",{className:"space-y-5 max-w-4xl",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(m,{href:route("client.automations.index"),className:"text-neutral-400 hover:text-neutral-600 dar
6k:hover:text-neutral-200 transition",children:e.jsx(c,{className:"h-5 w-5"})}),e.jsxs("h2",{className:"text-xl font-semibold text-neutral-900 dark:text-neutral-100",children:[s.name," â ",r("automation.runs")]})]}),e.jsxs("div",{className:"space-y-3",children:[i.data.map(t=>{var o;return e.jsxs("div",{className:"rounded-xl border border-neutral-200 dark:border-neutral-700 bg-white dark:bg-neutral-900 p-4 space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[k[t.status],e.jsx("span",{className:"font-medium text-neutral-900 dark:text-neutral-100 text-sm",children:r("automation.run_number",{id:t.id})}),e.jsx("span",{className:"text-xs text-neutral-400",children:t.started_at}),t.error&&e.jsx("span",{className:"ml-auto text-xs text-red-600 dark:text-red-400",children:t.error})]}),((o=t.logs)==null?void 0:o.length)>0&&e.jsx("div",{className:"space-y-1",children:t.logs.map(a=>e.jsxs("div",{className:`rounded px-3 py-1.5 text-xs flex items-start gap-2 ${g[a.result]??""}`,children:[e.jsx("span",{className:"font-mono font-semibold w-24 shrink-0",children:a.node_type}),e.jsx("span",{children:a.message})]},a.id))})]},t.id)}),i.data.length===0&&e.jsx("div",{className:"rounded-xl border border-neutral-200 dark:border-neutral-700 bg-white dark:bg-neutral-900 py-10 text-center text-neutral-400",children:r("automation.no_runs_yet")})]})]})]})}export{Z 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.