module.exports=[629268,a=>{"use strict";var b=a.i(511366),c=a.i(906746);function d({className:a,children:e,...f}){return(0,b.jsx)("div",{className:(0,c.cn)("flex flex-row gap-0 p-0 flex-nowrap items-center justify-between mb-8",a),...f,children:e})}function e({className:a,children:d,...f}){return(0,b.jsx)("div",{className:(0,c.cn)("flex flex-col gap-2 p-0 flex-nowrap items-stretch justify-start",a),...f,children:d})}function f({className:a,children:d,...e}){return(0,b.jsx)("h3",{className:(0,c.cn)("text-xl font-light",a),...e,children:d})}function g({className:a,children:d,...e}){return(0,b.jsx)("p",{className:(0,c.cn)("text-muted-foreground text-sm font-normal",a),...e,children:d})}a.s(["PageHeader",0,function({title:a,description:c,action:h,className:i}){return(0,b.jsxs)(d,{className:i,children:[(0,b.jsxs)(e,{children:[(0,b.jsx)(f,{children:a}),c&&(0,b.jsx)(g,{children:c})]}),h]})},"PageHeaderContent",0,e,"PageHeaderRoot",0,d,"PageHeaderTitle",0,f])},104157,a=>{"use strict";var b=a.i(992676);async function c(a,c,d){return(await (0,b.makeManagementApiRequest)(`tenants/${a}/projects/${c}/feedback`,{method:"POST",body:JSON.stringify(d)})).data}async function d(a,c,d){return(0,b.makeManagementApiRequest)(`tenants/${a}/projects/${c}/feedback/bulk`,{method:"POST",body:JSON.stringify(d)})}async function e(a,c,d){let e=new URLSearchParams;d?.conversationId&&e.set("conversationId",d.conversationId),d?.messageId&&e.set("messageId",d.messageId),d?.agentId&&e.set("agentId",d.agentId),d?.type&&e.set("type",d.type),d?.startDate&&e.set("startDate",d.startDate),d?.endDate&&e.set("endDate",d.endDate),d?.page&&e.set("page",String(d.page)),d?.limit&&e.set("limit",String(d.limit));let f=e.size?`?${e.toString()}`:"";return(0,b.makeManagementApiRequest)(`tenants/${a}/projects/${c}/feedback${f}`)}async function f(a,c,d){await (0,b.makeManagementApiRequest)(`tenants/${a}/projects/${c}/feedback/${d}`,{method:"DELETE"})}a.s(["createFeedback",0,c,"createFeedbackBulk",0,d,"deleteFeedback",0,f,"fetchFeedback",0,e])},181503,a=>{"use strict";a.s(["FeedbackTable",()=>b]);let b=(0,a.i(420358).registerClientReference)(function(){throw Error("Attempted to call FeedbackTable() from the server but FeedbackTable 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/feedback/feedback-table.tsx <module evaluation>","FeedbackTable")},126044,a=>{"use strict";a.s(["FeedbackTable",()=>b]);let b=(0,a.i(420358).registerClientReference)(function(){throw Error("Attempted to call FeedbackTable() from the server but FeedbackTable 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/feedback/feedback-table.tsx","FeedbackTable")},880954,a=>{"use strict";a.i(181503);var b=a.i(126044);a.n(b)},284398,a=>{"use strict";var b=a.i(511366),c=a.i(115295),d=a.i(880954),e=a.i(629268),f=a.i(542653),g=a.i(104157);let h={title:"Feedback",description:"Review user feedback."};async function i({params:a,searchParams:j}){let{tenantId:k,projectId:l}=await a,{conversationId:m,agentId:n,type:o,startDate:p,endDate:q,page:r,limit:s}=await j;try{let a=r?Number.parseInt(r,10):1,c=s?Number.parseInt(s,10):25,i=await (0,g.fetchFeedback)(k,l,{conversationId:m,agentId:n,type:o,startDate:p,endDate:q,page:Number.isFinite(a)?a:1,limit:Number.isFinite(c)?c:25});return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(e.PageHeader,{title:f.STATIC_LABELS.feedback??h.title,description:h.description}),(0,b.jsx)(d.FeedbackTable,{tenantId:k,projectId:l,feedback:i.data,pagination:i.pagination,filters:{conversationId:m,agentId:n,type:o,startDate:p,endDate:q}})]})}catch(a){return(0,b.jsx)(c.default,{error:a,context:"feedback"})}}a.s(["default",0,i,"dynamic",0,"force-dynamic","metadata",0,h])},499993,a=>{a.n(a.i(284398))}];

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