import{j as t,ej as d,Y as o,h as i,i as l,Q as p,av as C}from"./app-BgLa5dit.js";import{T as x}from"./lZO4aq5x.chunk.js";import{a as f,c as u}from"./Zwjmkasg.chunk.js";import{M as h}from"./DeKZULrh.chunk.js";import{C as T}from"./itQZri94.chunk.js";import{H as g}from"./wvigAl7i.chunk.js";import{C as j}from"./c3I67AiW.chunk.js";const r=d(),n={name:(e,s)=>r.accessor(a=>a,{id:"name",header:"Name",cell:a=>{const c=a.getValue(),m=e?e(c.id):{application:l.CRM_STUDIO,action:i.CrmStudio.CUSTOMER_OVERVIEW,args:[c.id]};return t.jsxs("div",{className:"d-flex flex-row gap-2 align-items-center",children:[t.jsx(o,{appLink:m,className:"text-info",openInNewTab:!!s,children:c.name}),c.status===h.Disabled&&t.jsx("div",{className:"bg-danger text-white rounded text-sm px-1",children:"Deactivated"})]})},size:450}),id:()=>r.accessor("crmId",{id:"id",header:"CVC ID",cell:e=>{const s=e.getValue()||"-";return t.jsx(g,{value:s,applink:null})},size:80}),status:()=>r.accessor(e=>e,{id:"status",header:"Status",cell:e=>{const s=e.getValue();return t.jsx(o,{appLink:null,children:u[s.customerStatus||u.Unclassified]})}}),type:()=>r.accessor("customerType",{id:"type",header:"Type",cell:e=>{const s=e.getValue()||f.Unclassified;return t.jsx(T,{customerType:s})}}),cft:()=>r.accessor(e=>e,{id:"cft",header:"CFT",cell:e=>{var a;const s=e.getValue();return t.jsx("span",{children:((a=s.cft)==null?void 0:a.displayName)||"-"})},size:350}),removeCustomer:e=>r.accessor(s=>s,{id:"actions",header:"",cell:s=>{const a=s.getValue();return t.jsx("div",{className:"text-center",children:t.jsx(o,{appLink:{application:l.CRM_STUDIO,action:i.CrmStudio.REMOVE_CUSTOMER_FROM_ORGANISATION,args:[e,a.id]},children:t.jsx(p,{className:"svg-container cursor-pointer ms-2",svg:C})})})},size:100})};function R(e){const s=[n.name(),n.id(),n.status(),n.type(),n.cft()],a=e.columns||s;return t.jsx(x,{data:e.data,columns:a,theme:j})}export{R as C,n as a};
//# sourceMappingURL=Bl0YdmfD.chunk.js.map
