/**
 * DevExtreme (cjs/__internal/grids/grid_core/row_dragging/dom.js)
 * Version: 24.1.7-build-24272-1937
 * Build date: Sat Sep 28 2024
 *
 * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
 * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
 */
"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.GridCoreRowDraggingDom = void 0;
var _renderer = _interopRequireDefault(require("../../../../core/renderer"));
var _m_utils = _interopRequireDefault(require("../m_utils"));
var _const = require("./const");

function _interopRequireDefault(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    }
}
const createHandleTemplateFunc = addWidgetPrefix => (container, options) => {
    const $container = (0, _renderer.default)(container);
    if ("data" === options.rowType) {
        $container.addClass(_const.CLASSES.cellFocusDisabled);
        return (0, _renderer.default)("<span>").addClass(addWidgetPrefix(_const.CLASSES.handleIcon))
    }
    _m_utils.default.setEmptyText($container);
    return
};
const GridCoreRowDraggingDom = exports.GridCoreRowDraggingDom = {
    createHandleTemplateFunc: createHandleTemplateFunc
};
