ruạṛ
import{bN as u,u as p,b as h,cl as f,p as v,a as x,c as a,C as _,j as i,bA as g,aH as N,R as b,r as C,e as A}from"./bundle.9abe88c8.js";function T(){var o;const{id:s}=u(),[l]=p(),c=h(),r=f(),{displayName:d}=r,[n,m]=v.useState(!1),{data:e}=x({queryKey:["/api/v1/activities/entity",s],queryFn:()=>C("POST",A("/api/v1/activities/entity"),{entity:"vendor",entity_id:s}).then(t=>t.data.data),enabled:s!==null,staleTime:1/0});return a(_,{title:l("recent_activity"),className:"h-full relative",topRight:i("div",{className:"flex items-center space-x-10",children:[a(g,{label:l("comments_only"),checked:n,onValueChange:t=>m(t)}),a(N,{entity:"vendor",entityId:s,label:d})]}),withoutBodyPadding:!0,children:i("div",{className:"pl-6 pr-4",children:[!((o=e==null?void 0:e.filter(t=>n&&t.activity_type_id===141||!n))!=null&&o.length)&&a("div",{className:"py-4",children:i("span",{className:"text-sm font-medium",children:[l("no_records_found"),"."]})}),!!(e!=null&&e.length)&&a("div",{className:"flex flex-col overflow-y-auto pr-4",children:e==null?void 0:e.filter(t=>n&&t.activity_type_id===141||!n).map((t,y)=>a(b.Fragment,{children:c(t)},y))})]})})}export{T as default};
cải xoăn