/**
 * ldesign v0.4.2
 * (c) 2023 ldesign
 * @license MIT
 */

import { i as isFunction_1 } from '../../../_chunks/dep-6b22dd27.mjs';
import { i as isNumber_1 } from '../../../_chunks/dep-6eea369f.mjs';
import '../../../_chunks/dep-a0b4a044.mjs';
import '../../../_chunks/dep-c959a6fb.mjs';
import '../../../_chunks/dep-b4041200.mjs';
import '../../../_chunks/dep-0f0c89ff.mjs';
import '../../../_chunks/dep-c31e1d9e.mjs';

function isRowSelectedDisabled(selectColumn, row, rowIndex) {
  var disabled = isFunction_1(selectColumn.disabled) ? selectColumn.disabled({
    row: row,
    rowIndex: rowIndex
  }) : selectColumn.disabled;
  if (selectColumn.checkProps) {
    if (isFunction_1(selectColumn.checkProps)) disabled = disabled || selectColumn.checkProps({
      row: row,
      rowIndex: rowIndex
    }).disabled;else if (selectColumn.checkProps === "object") disabled = disabled || selectColumn.checkProps.disabled;
  }
  return !!disabled;
}
function getColWidthAttr(col, attrKey) {
  var attr = col[attrKey];
  return isNumber_1(attr) ? attr : parseFloat(attr);
}

export { getColWidthAttr, isRowSelectedDisabled };
//# sourceMappingURL=utils.mjs.map
