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

import { i as isFunction_1 } from '../../../_chunks/dep-5717e263.mjs';
import { i as isNumber_1 } from '../../../_chunks/dep-3f21269a.mjs';
import '../../../_chunks/dep-eba0ea6e.mjs';
import '../../../_chunks/dep-469b4ae0.mjs';
import '../../../_chunks/dep-255303ba.mjs';
import '../../../_chunks/dep-a8bcacea.mjs';
import '../../../_chunks/dep-3da99438.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
