import{a as g}from"/build/_shared/chunk-CLDMIUQD.js";import"/build/_shared/chunk-XN75JBKL.js";import"/build/_shared/chunk-MCR6MI6B.js";import"/build/_shared/chunk-6KOIYUE5.js";import"/build/_shared/chunk-7AEHTRHU.js";import"/build/_shared/chunk-J63FG4GX.js";import"/build/_shared/chunk-YZRCWBSR.js";import{a as I}from"/build/_shared/chunk-NID5ZFDO.js";import"/build/_shared/chunk-JFXZ7I6K.js";import"/build/_shared/chunk-QHVWWGVF.js";import"/build/_shared/chunk-YGINDR4A.js";import{a as f}from"/build/_shared/chunk-ANUO2FWR.js";import"/build/_shared/chunk-IXWAFOW5.js";import"/build/_shared/chunk-5G5YQZRT.js";import{a as D}from"/build/_shared/chunk-BPD542OA.js";import"/build/_shared/chunk-BKXSGWW3.js";import"/build/_shared/chunk-7Z6LVCRT.js";import"/build/_shared/chunk-FXRQ2H3S.js";import"/build/_shared/chunk-GYJW4R24.js";import"/build/_shared/chunk-VX2L2R2M.js";import"/build/_shared/chunk-JSLPGHFC.js";import"/build/_shared/chunk-NF7BQEED.js";import"/build/_shared/chunk-ZH5DBAIE.js";import{a as R}from"/build/_shared/chunk-PAEG26CW.js";import"/build/_shared/chunk-F4G4S474.js";import{B as l,C as p,e as m,u as c}from"/build/_shared/chunk-XIQ3C74K.js";import{a as W}from"/build/_shared/chunk-5TRFQBKG.js";import"/build/_shared/chunk-T6T2AEVA.js";import{a as i}from"/build/_shared/chunk-LR6G3KVW.js";import{d as n}from"/build/_shared/chunk-G5WX4PPA.js";var P=n(W(),1);l();l();var e=n(p(),1),L=({trace:t,datapointRun:a})=>{let o=m(),r=[{label:"Experiments",to:i.app.project.env.experiments({envId:o.envId,projectId:o.projectId})},{label:a?.experiment.name||"\u2014",to:i.app.project.env.experimentsId({envId:o.envId,projectId:o.projectId,experimentId:o.experimentId})},{label:"Run"}];return(0,e.jsx)(D,{breadcrumbs:r,subtitle:()=>(0,e.jsxs)(f,{children:["Each run generates a trace to help you debug."," ",(0,e.jsx)(I,{to:i.external.docs.runs,children:"Run Docs."})]}),children:t?(0,e.jsx)(g,{trace:t}):(0,e.jsx)("p",{children:"No Trace on this run."})})};var h=n(p(),1),A=R(async({api:t,params:a,request:o})=>{let r=a.datapointRunId,u=t.datapointRun.datapointRunControllerGetDatapointWithExperiment({datapointRunId:r}),x=t.datapointRun.datapointRunControllerGetDatapointTrace({datapointRunId:r}),[d,s]=await Promise.allSettled([u,x]),y=s.status==="fulfilled"?s.value:null,T=d.status==="fulfilled"?d.value:null;return(0,P.json)({trace:y,datapointRun:T})});function b(){let{trace:t,datapointRun:a}=c();return(0,h.jsx)(L,{trace:t,datapointRun:a})}export{b as default};
