module.exports=[623064,a=>{"use strict";var b=a.i(440570),c=a.i(798688),d=a.i(992676),e=a.i(97190);async function f(a,b){return(0,d.makeManagementApiRequest)(`tenants/${a}/projects/${b}/evals/datasets`)}async function g(a,b,c){return(await (0,d.makeManagementApiRequest)(`tenants/${a}/projects/${b}/evals/datasets/${c}`)).data}let h=(0,c.cache)(g);async function i(a,b,c){return(await (0,d.makeManagementApiRequest)(`tenants/${a}/projects/${b}/evals/datasets`,{method:"POST",body:JSON.stringify(c)})).data}async function j(a,b,c,e){return(await (0,d.makeManagementApiRequest)(`tenants/${a}/projects/${b}/evals/datasets/${c}`,{method:"PATCH",body:JSON.stringify(e)})).data}async function k(a,b,c){await (0,d.makeManagementApiRequest)(`tenants/${a}/projects/${b}/evals/datasets/${c}`,{method:"DELETE"})}(0,e.ensureServerEntryExports)([f,i,j,k,h]),(0,b.registerServerReference)(f,"608f4323ce17b07030056226e59ce2b886c41a3b51",null),(0,b.registerServerReference)(i,"7057d346d224c9ba37567ed5049179f6948ed92d2c",null),(0,b.registerServerReference)(j,"7802ec13cfcbf6a7cdd046eb65b1452f09f9544f1d",null),(0,b.registerServerReference)(k,"7093af0b26450599c91a107113894d8dcef1146d62",null),(0,b.registerServerReference)(h,"7f77a5b537c7a2a8609cb1393b400e25cd473fd3a8",null),a.s(["createDataset",0,i,"deleteDataset",0,k,"fetchDataset",0,h,"fetchDatasets",0,f,"updateDataset",0,j])},132546,a=>{"use strict";var b=a.i(440570),c=a.i(992676);async function d(a,b,d){return(0,c.makeManagementApiRequest)(`tenants/${a}/projects/${b}/evals/dataset-items/${d}`)}async function e(a,b,d,e){return(await (0,c.makeManagementApiRequest)(`tenants/${a}/projects/${b}/evals/dataset-items/${d}/items`,{method:"POST",body:JSON.stringify(e)})).data}async function f(a,b,d,e){return(await (0,c.makeManagementApiRequest)(`tenants/${a}/projects/${b}/evals/dataset-items/${d}/items/bulk`,{method:"POST",body:JSON.stringify(e)})).data}async function g(a,b,d,e,f){return(await (0,c.makeManagementApiRequest)(`tenants/${a}/projects/${b}/evals/dataset-items/${d}/items/${e}`,{method:"PATCH",body:JSON.stringify(f)})).data}async function h(a,b,d,e){await (0,c.makeManagementApiRequest)(`tenants/${a}/projects/${b}/evals/dataset-items/${d}/items/${e}`,{method:"DELETE"})}(0,a.i(97190).ensureServerEntryExports)([d,e,f,g,h]),(0,b.registerServerReference)(d,"704aa7906a01a60274aea3e4ef4b9d9661e4b6ec6f",null),(0,b.registerServerReference)(e,"7843a1febb4c2aa48b4b986e9a7e34261349386dc0",null),(0,b.registerServerReference)(f,"78678623531ae996864c2a0163bae7f295ee13cb70",null),(0,b.registerServerReference)(g,"7c243cb6ffe6f2f34645b25c44259ffec09cfed82b",null),(0,b.registerServerReference)(h,"782af178e56f2ef8b1044056580b8299230e922429",null),a.s(["createDatasetItem",0,e,"createDatasetItemsBulk",0,f,"deleteDatasetItem",0,h,"fetchDatasetItems",0,d,"updateDatasetItem",0,g])},72124,a=>{"use strict";a.s(["DatasetPageClient",()=>b]);let b=(0,a.i(420358).registerClientReference)(function(){throw Error("Attempted to call DatasetPageClient() from the server but DatasetPageClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/agents-manage-ui/src/components/datasets/dataset-page-client.tsx <module evaluation>","DatasetPageClient")},456699,a=>{"use strict";a.s(["DatasetPageClient",()=>b]);let b=(0,a.i(420358).registerClientReference)(function(){throw Error("Attempted to call DatasetPageClient() from the server but DatasetPageClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/agents-manage-ui/src/components/datasets/dataset-page-client.tsx","DatasetPageClient")},307110,a=>{"use strict";a.i(72124);var b=a.i(456699);a.n(b)},504158,a=>{"use strict";var b=a.i(511366),c=a.i(307110),d=a.i(115295),e=a.i(132546),f=a.i(623064);async function g({params:a}){let{tenantId:h,projectId:i,datasetId:j}=await a;try{let[a,d]=await Promise.all([(0,f.fetchDataset)(h,i,j),(0,e.fetchDatasetItems)(h,i,j).catch(()=>({data:[],pagination:{page:1,pageSize:10,total:0,totalPages:0}}))]);return(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsx)("div",{className:"flex items-center justify-between",children:(0,b.jsx)("div",{className:"flex items-center gap-2",children:(0,b.jsx)("h1",{className:"text-2xl font-semibold",children:a.name||"Test Suite"})})}),(0,b.jsx)(c.DatasetPageClient,{tenantId:h,projectId:i,datasetId:j,items:d.data})]})}catch(a){return(0,b.jsx)(d.default,{error:a,link:`/${h}/projects/${i}/datasets`,linkText:"Back to test suites",context:"dataset"})}}a.s(["default",0,g,"dynamic",0,"force-dynamic"])},249077,a=>{a.n(a.i(504158))}];

//# sourceMappingURL=agents-manage-ui_src_0zkpu0r._.js.map