module.exports=[107103,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 await (0,d.makeManagementApiRequest)(`tenants/${a}/projects/${b}/artifact-components?limit=100`)}let g=(0,c.cache)(f);async function h(a,b,c){return(await (0,d.makeManagementApiRequest)(`tenants/${a}/projects/${b}/artifact-components/${c}`)).data}let i=(0,c.cache)(h);async function j(a,b,c){return(await (0,d.makeManagementApiRequest)(`tenants/${a}/projects/${b}/artifact-components`,{method:"POST",body:JSON.stringify(c)})).data}async function k(a,b,c){return(await (0,d.makeManagementApiRequest)(`tenants/${a}/projects/${b}/artifact-components/${c.id}`,{method:"PUT",body:JSON.stringify(c)})).data}async function l(a,b,c){await (0,d.makeManagementApiRequest)(`tenants/${a}/projects/${b}/artifact-components/${c}`,{method:"DELETE"})}(0,e.ensureServerEntryExports)([j,k,l,g,i]),(0,b.registerServerReference)(j,"70188ef59c59bee67531df9c7c9755412a4f4d2813",null),(0,b.registerServerReference)(k,"703b6e7ae98c0371615ec57c0482b7cc25bddec8a8",null),(0,b.registerServerReference)(l,"7015353a3551d528e8e220870dfac185e1da431faf",null),(0,b.registerServerReference)(g,"7f3afeff7be7c7ee981045324e877eb9fa24d127f6",null),(0,b.registerServerReference)(i,"7f585e5f10ce7328ac2af8ccde9561dc7dfc2c3bbf",null),a.s(["createArtifactComponent",0,j,"deleteArtifactComponent",0,l,"fetchArtifactComponent",0,i,"fetchArtifactComponents",0,g,"updateArtifactComponent",0,k])},470209,a=>{"use strict";a.s(["ArtifactComponentForm",()=>b]);let b=(0,a.i(420358).registerClientReference)(function(){throw Error("Attempted to call ArtifactComponentForm() from the server but ArtifactComponentForm 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/artifact-components/form/artifact-component-form.tsx <module evaluation>","ArtifactComponentForm")},246471,a=>{"use strict";a.s(["ArtifactComponentForm",()=>b]);let b=(0,a.i(420358).registerClientReference)(function(){throw Error("Attempted to call ArtifactComponentForm() from the server but ArtifactComponentForm 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/artifact-components/form/artifact-component-form.tsx","ArtifactComponentForm")},969526,a=>{"use strict";a.i(470209);var b=a.i(246471);a.n(b)},632689,a=>{"use strict";var b=a.i(511366),c=a.i(969526),d=a.i(115295),e=a.i(107103),f=a.i(906746),g=a.i(351071);async function h({params:a}){let{artifactComponentId:i,tenantId:j,projectId:k}=await a;try{let{name:a,description:d,props:g,render:h}=await (0,e.fetchArtifactComponent)(j,k,i);return(0,b.jsx)(c.ArtifactComponentForm,{tenantId:j,projectId:k,id:i,defaultValues:{id:i,name:a,description:d??"",props:(0,f.serializeJson)(g),render:h}})}catch(a){return(0,b.jsx)(d.default,{errorCode:(0,g.getErrorCode)(a),link:`/${j}/projects/${k}/artifacts`,linkText:"Back to artifacts",context:"artifact"})}}a.s(["default",0,h,"dynamic",0,"force-dynamic"])},762058,a=>{a.n(a.i(632689))}];

//# sourceMappingURL=agents-manage-ui_src_0t-~zds._.js.map