module.exports=[935121,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){let c=await (0,d.makeManagementApiRequest)(`tenants/${a}/projects/${b}/data-components?limit=100`);return{...c,data:c.data.map(a=>({...a,props:a.props||{}}))}}async function g(a,b,c){let e=await (0,d.makeManagementApiRequest)(`tenants/${a}/projects/${b}/data-components/${c}`);return{...e.data,props:e.data.props||{}}}let h=(0,c.cache)(g);async function i(a,b,c){let e=await (0,d.makeManagementApiRequest)(`tenants/${a}/projects/${b}/data-components`,{method:"POST",body:JSON.stringify(c)});return{...e.data,props:e.data.props||{}}}async function j(a,b,c){let e=await (0,d.makeManagementApiRequest)(`tenants/${a}/projects/${b}/data-components/${c.id}`,{method:"PUT",body:JSON.stringify(c)});return{...e.data,props:e.data.props||{}}}async function k(a,b,c){await (0,d.makeManagementApiRequest)(`tenants/${a}/projects/${b}/data-components/${c}`,{method:"DELETE"})}(0,e.ensureServerEntryExports)([f,i,j,k,h]),(0,b.registerServerReference)(f,"6081416c03a4a790690ff95297a37c5586141ec665",null),(0,b.registerServerReference)(i,"70e49be6704dc04778d2f3344476ab0772b23da6a0",null),(0,b.registerServerReference)(j,"70a753274b67948e1f801bab26e1ab3598b0048aa1",null),(0,b.registerServerReference)(k,"703772a479f9c06ba1629e5e75b1d5019dd160d0b1",null),(0,b.registerServerReference)(h,"7fe28485adb396e2d73e1cf3e716a363ec0c0dc604",null),a.s(["createDataComponent",0,i,"deleteDataComponent",0,k,"fetchDataComponent",0,h,"fetchDataComponents",0,f,"updateDataComponent",0,j])},862949,a=>{"use strict";a.s(["DataComponentForm",()=>b]);let b=(0,a.i(420358).registerClientReference)(function(){throw Error("Attempted to call DataComponentForm() from the server but DataComponentForm 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/data-components/form/data-component-form.tsx <module evaluation>","DataComponentForm")},719553,a=>{"use strict";a.s(["DataComponentForm",()=>b]);let b=(0,a.i(420358).registerClientReference)(function(){throw Error("Attempted to call DataComponentForm() from the server but DataComponentForm 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/data-components/form/data-component-form.tsx","DataComponentForm")},271741,a=>{"use strict";a.i(862949);var b=a.i(719553);a.n(b)},698271,a=>{"use strict";var b=a.i(511366),c=a.i(271741),d=a.i(115295),e=a.i(935121),f=a.i(906746),g=a.i(351071);async function h({params:a}){let{tenantId:i,projectId:j,dataComponentId:k}=await a;try{let{name:a,description:d,props:g,render:h}=await (0,e.fetchDataComponent)(i,j,k);return(0,b.jsx)(c.DataComponentForm,{className:"max-w-2xl mx-auto",tenantId:i,projectId:j,id:k,defaultValues:{id:k,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:`/${i}/projects/${j}/components`,linkText:"Back to components",context:"component"})}}a.s(["default",0,h,"dynamic",0,"force-dynamic"])},610875,a=>{a.n(a.i(698271))}];

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