"use strict";

exports.__esModule = true;
exports.selectRenderer = selectRenderer;
var _textRenderer = require("../textRenderer");
var _a11y = require("../../helpers/a11y");
const RENDERER_TYPE = 'select';

/**
 * @private
 * @param {Core} instance The Handsontable instance.
 * @param {HTMLTableCellElement} TD The rendered cell element.
 * @param {number} row The visual row index.
 * @param {number} col The visual column index.
 * @param {number|string} prop The column property (passed when datasource is an array of objects).
 * @param {*} value The rendered value.
 * @param {object} cellProperties The cell meta object ({@see Core#getCellMeta}).
 */
exports.RENDERER_TYPE = RENDERER_TYPE;
function selectRenderer(instance, TD, row, col, prop, value, cellProperties) {
  _textRenderer.textRenderer.apply(this, [instance, TD, row, col, prop, value, cellProperties]);
  if (instance.getSettings().ariaTags) {
    TD.setAttribute(...(0, _a11y.A11Y_HASPOPUP)());
  }
}
selectRenderer.RENDERER_TYPE = RENDERER_TYPE;