1import{q as I,aA as T,r as C,j as e,a$ as S,bm as l,B as x,C as n,H as N,I as v,D as p,aP as w,aL as D,S as $,aV as k,aW as E,aX as b,aT as F,aU as j,x as L}from"./root-Bfop0rm5.js";import{u as g}from"./useSuspenseQuery-BQhhhUjQ.js";import{g as B}from"./RouterProvider-BbsgWugL.js";import{w as P,x as A,y as H,H as R}from"./index-C97ZXgRl.js";import{f as M}from"./format-DUiBe8lm.js";import"./queryOptions-BQvTFV_-.js";import"./useMutation-DrGfYVG5.js";import"./hooks-BJhLWX9Q.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"distillery-frontend"};var s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="f2694b39-d406-46d4-9a73-812d68065d74",t._sentryDebugIdIdentifier="sentry-dbid-f2694b39-d406-46d4-9a73-812d68065d74")}catch{}})();const c=B("/management/benchmarking/initiatives/$initiativeId/trials/$trialId/evaluations/$evaluationId"),W=()=>{const t=I(),s=T(),d=c.useLoaderDeps(),u=c.useNavigate(),r=c.useParams(),{data:a}=g(P(r)),{data:o}=g(A({...r,...d})),m=H(),[h,f]=C.useState(a.name),y=i=>{i.preventDefault(),m.mutate({evaluationId:a.id,name:h},{onSuccess:()=>{t.success("Saved evaluation."),u({to:"/management/benchmarking/initiatives/$initiativeId/trials/$trialId/evaluations/$evaluationId/",params:{initiativeId:a.trial.initiative.id,trialId:a.trial.id,evaluationId:a.id}})},onError:()=>{t.error("Failed to save evaluation.")}})};return e.jsxs(e.Fragment,{children:[e.jsx(R,{children:e.jsx("title",{children:"Benchmarking | SearchPilot"})}),e.jsxs(S,{children:[e.jsx(l,{label:"Benchmarking Initiatives",href:s.buildLocation({to:"/management/benchmarking/initiatives/"}).href}),e.jsx(l,{label:`Initiative: ${a.trial.initiative.name}`,href:s.buildLocation({to:"/management/benchmarking/initiatives/$initiativeId/",params:r}).href}),e.jsx(l,{label:`Trial: ${a.trial.name}`,href:s.buildLocation({to:"/management/benchmarking/initiatives/$initiativeId/trials/$trialId/",params:r}).href}),e.jsx(l,{label:`Evaluation: ${a.name}`,href:"",currentCrumb:!0})]}),e.jsx("main",{className:"ml-auto w-full grow",children:e.jsxs("div",{className:"mx-auto mt-4 max-w-7xl px-12",children:[e.jsx("form",{onSubmit:y,children:e.jsxs(x,{children:[e.jsx(n,{children:e.jsx(n.Content,{children:e.jsx(n.Title,{children:"Update evaluation"})})}),e.jsxs(N,{children:[e.jsx("div",{className:"mb-4",children:e.jsx(v,{label:"Name",onChangeFunction:f,value:h,required:!0})}),e.jsx("div",{className:"mb-4",children:e.jsx(v,{label:"Github Tag",onChangeFunction:()=>{},value:a.githubTag,disabled:!0})}),e.jsx("div",{className:"mb-4",children:e.jsx(p,{label:"Model",name:"model",onChangeFunction:()=>{},onChangeParameters:[],value:a.model,disabled:!0,children:e.jsx("option",{value:a.model,children:a.modelDisplay})})}),e.jsx("div",{className:"mb-4",children:e.jsx(p,{label:"Device Type",name:"deviceType",onChangeFunction:()=>{},onChangeParameters:[],value:a.deviceType,disabled:!0,children:e.jsx("option",{value:a.deviceType,children:a.deviceTypeDisplay})})}),e.jsx("div",{className:"mb-4",children:e.jsx(w,{id:"preModelSteps",label:"Pre-Model Steps",onChangeFunction:()=>{},onChangeParameters:[],value:JSON.stringify(a.preModelSteps,null,2),disabled:!0})})]}),e.jsx(D,{classes:"flex justify-end mr-2",children:e.jsx($,{variant:"primary",loading:m.isPending,type:"submit",children:"Update Evaluation"})})]})}),e.jsxs(x,{children:[e.jsx(n,{children:e.jsx(n.Content,{children:e.jsx(n.Title,{children:"Scores"})})}),e.jsxs(k,{children:[e.jsx("thead",{children:e.jsxs(E,{children:[e.jsx(b,{className:"w-2/12",children:"Created At"}),e.jsx(b,{className:"w-2/12 text-center",children:"Status"})]})}),e.jsx("tbody",{children:o.results.map(i=>e.jsxs(F,{children:[e.jsx(j,{extraClasses:"align-middle",children:M(i.createdAt,"eee do MMM yyyy hh:mm aaaa")}),e.jsx(j,{extraClasses:"text-center",children:i.status})]},i.id))})]}),e.jsx("div",{className:"border-t border-gray-200 px-4 py-4",children:e.jsx(L,{totalCount:o.count,listItems:o.results,setOffset:i=>u({search:{page:i/15+1}}),setLimit:()=>{},offset:d.offset,limit:15,options:[15],allOption:!1})})]})]})})]})};export{W as default}; 2//# sourceMappingURL=BenchmarkingEvaluationDetailApp-BbiB5dQX.js.map
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.