import{j as s}from"./@radix-DAoBbclx.js";import{C as o}from"./form-BltjYrXq.js";import{u as i}from"./pipeline-run-detail-query-BG8hRI-J.js";import{a5 as p,a8 as m,r as a,a9 as n}from"./index-DnCFURX3.js";import{a as u}from"./@monaco-editor-Di1Jq_O0.js";import{a as c}from"./@react-router-BTai9D5g.js";import"./@elkjs-CmhuJAjY.js";import"./@zod-3snSrKBm.js";import"./name-Bg7MBXU_.js";import"./@tanstack-2852wz5w.js";import"./all-pipeline-runs-query-DPKpaLFW.js";import"./update-snapshot-D2w0HSC0.js";import"./@reactflow-CLotj7HR.js";function l(r){const{setBreadcrumbs:e}=p();u.useEffect(()=>{var t;r&&e([...(t=r.resources)!=null&&t.pipeline?[m,{label:r.resources.pipeline.name||"",href:a.projects.pipelines.detail.runs(r.resources.pipeline.id)}]:[n],{label:r.name||"",href:a.projects.runs.detail(r.id)},{label:"Create Snapshot",href:a.projects.runs.createSnapshot(r.id)}])},[e,r])}function F(){const{runId:r}=c(),e=i({runId:r});return l(e.data),e.isPending?s.jsx("p",{children:"Loading..."}):e.isError?s.jsx("p",{children:"Error"}):s.jsx("div",{className:"mx-auto w-full max-w-4xl p-5",children:s.jsx(o,{run:e.data})})}export{F as default};
