import{j as s}from"./@radix-DGuLZ9Nd.js";import{C as t}from"./form-eUu3An_5.js";import{u as o}from"./pipeline-run-detail-query-DKpK4Sg5.js";import{a5 as i,ae as p,r as a,af as m}from"./index-DHfBZI1k.js";import{R as n}from"./run-name-B1DU_O7E.js";import{a as u}from"./@monaco-editor-CuNQBT0l.js";import{a as c}from"./@react-router-edahAHd8.js";import"./@elkjs-CmhuJAjY.js";import"./@zod-2qqdh1cM.js";import"./name-Bg7MBXU_.js";import"./@tanstack-B6Lqf40n.js";import"./all-pipeline-runs-query-DamZvJQw.js";import"./update-snapshot-CNfSyM1s.js";import"./@reactflow-BVD3Tc7O.js";function d(e){const{setBreadcrumbs:r}=i();u.useEffect(()=>{e&&r([...e.resources?.pipeline?[p,{label:e.resources.pipeline.name||"",href:a.projects.pipelines.detail.runs(e.resources.pipeline.id)}]:[m],{label:s.jsx(n,{name:e.name,index:e.body?.index}),href:a.projects.runs.detail(e.id)},{label:"Create Snapshot",href:a.projects.runs.createSnapshot(e.id)}])},[r,e])}function w(){const{runId:e}=c(),r=o({runId:e});return d(r.data),r.isPending?s.jsx("p",{children:"Loading..."}):r.isError?s.jsx("p",{children:"Error"}):s.jsx("div",{className:"mx-auto w-full max-w-4xl p-5",children:s.jsx(t,{run:r.data})})}export{w as default};
