/**
 * DevExtreme (cjs/viz/vector_map/control_bar/utils.js)
 * Version: 23.1.6 (build 23316-0110)
 * Build date: Sun Nov 12 2023
 *
 * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
 * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
 */
"use strict";
exports.toggleDisplay = exports.createVisibilityGroup = exports.createTracker = void 0;
var createTracker = function(renderer, root) {
    return renderer.g().attr({
        stroke: "none",
        "stroke-width": 0,
        fill: "#000000",
        opacity: 1e-4
    }).css({
        cursor: "pointer"
    }).append(root)
};
exports.createTracker = createTracker;
var createVisibilityGroup = function(renderer, root) {
    var className = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "";
    return renderer.g().attr({
        class: className
    }).append(root)
};
exports.createVisibilityGroup = createVisibilityGroup;
var toggleDisplay = function(blocks, isVisible) {
    var style = isVisible ? {
        display: "block"
    } : {
        display: "none"
    };
    blocks.map((function(item) {
        return item.css(style)
    }))
};
exports.toggleDisplay = toggleDisplay;
