import"./chunk-jRWAZmH_.js";import{n as e,t}from"./jsx-runtime-CEixWuwE.js";import{t as n}from"./RowLabelWithIcon-C0KsgW5x.js";import{mt as r}from"./index-BqyXv5bE.js";e();var i=t(),a=[{title:`oid`,key:`oid`,dataKey:`oid`,width:150},{title:`code`,key:`code`,dataKey:`code`,width:150},{title:`Entête`,key:`entete`,dataKey:`entete`,width:200},{title:`Libéllé`,key:`texte`,dataKey:`texte`,width:200,flexGrow:2},{title:`CTI`,key:`isCti`,dataKey:`isCti`,width:50,dataGetter:({rowData:e})=>(0,i.jsx)(r,{disabled:!0,checked:e.isCti})}],o=(e,t)=>{let r=[{title:`Code`,dataKey:`code`,width:250},{title:`Nom`,dataKey:`texte`,frozen:`left`,width:500,cellRenderer:({rowData:e})=>{let t=e.texte;return(0,i.jsx)(`div`,{className:`BaseTable__row-cell-text`,children:(0,i.jsx)(n,{label:t,isCti:e.is_cti?`1`:`0`,icon:`Hospital`,toolTipLabel:`Indicateur créé par l'établissement`})})}},{title:`Nom abrégé`,dataKey:`entete`,width:400},{title:`Table`,dataKey:`table_name`,dataGetter:({rowData:e})=>{let n=e.table_name,r=t.find(e=>e.code===n);return r?r.texte:n},width:200},{title:`Format de sortie`,dataKey:`output_format`,width:200}];return e===`iCTI_activite`&&r.push({title:`Dimension date`,key:`date`,dataKey:`dimension_date`}),r.map(e=>({width:200,...e,resizable:!0,key:e.dataKey,className:`cti-default-table`,headerClassName:`cti-default-table`}))};export{o as n,a as t};