1import{_ as D}from"./V1CGmUic.js";import{_ as N}from"./GXeVycEb.js";import{_ as T}from"./Dgs6hFTu.js";import{_ as U}from"./C0gsDOll.js";import{_ as A}from"./Byfx70N9.js";import{d as k,W as I,Q as L,R as y,s as m,v as M,b as V,o as C,e as p,A as a,B as e,g,t as b,n as q,z as l,Z as H,c as P}from"./Bcc8-a-q.js";import{u as x}from"./_bZiThFm.js";import{_ as R}from"./BnYVzLkN.js";import"./osqaVy29.js";import"./9pjYCGkJ.js";import"./0TAyzOoh.js";import"./CfUektVg.js";import"./CdE3OqS9.js";import"./D3ZPBIcn.js";import"./Cw8iTAvs.js";import"./BZqjWkfA.js";import"./oaYCrmSY.js";import"./B8rpExb1.js";const S={class:""},E={class:"w-full"},Q=k({__name:"MessageList",props:{projectId:{}},async setup(d){let t,r;const i=d,{data:c,pending:u,error:f}=([t,r]=I(()=>L(`${i.projectId}-conversations`,()=>x(y("conversations",{filter:{_and:[{item:{_eq:i.projectId}}]}})))),t=await t,r(),t),_=[{key:"name",label:"Name"},{key:"status",label:"Status"},{key:"date_created",label:"Date Created"}],v=m(null);async function h(s){const n=await x(y("messages",{sort:["date_created"],fields:["*",{user_created:["id","first_name","last_name","email","avatar"]}],filter:{_and:[{conversation:{_eq:s}}]}}));w.value=n}function j(s){v.value=s,h(s)}const w=m([]);return M({text:""}),m("open"),(s,n)=>{const B=T,$=U,z=A;return C(),V("div",S,[p("div",E,[n[0]||(n[0]=p("div",{class:"flex items-center justify-between gap-3 py-3 border-b dark:border-gray-700"},null,-1)),a(z,{columns:_,rows:l(c),"column-attribute":"label"},{"name-data":e(({row:o})=>[p("div",{class:q({"bg-primary-50 dark:bg-primary-900":l(v)===o.id})},[a(B,{variant:"link",onClick:W=>j(o.id)},{default:e(()=>[g(b(o.title),1)]),_:2},1032,["onClick"])],2)]),"status-data":e(({row:o})=>[a($,{class:"capitalize",variant:"subtle"},{default:e(()=>[g(b(o.status),1)]),_:2},1024)]),_:1},8,["rows"])])])}}}),mt=k({__name:"conversations",setup(d){const{params:t}=H();return(r,i)=>{const c=D,u=N,f=Q,_=R;return C(),P(_,{class:"mt-6"},{header:e(()=>[a(c,{content:"Conversations",size:"xs"}),a(u,{content:"Let's talk about it. Here you'll find all the conversations with our team regarding your project.",size:"sm"})]),default:e(()=>[a(f,{"project-id":l(t).id},null,8,["project-id"])]),_:1})}}});
1export{mt as default};
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.