"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getIcon = exports.getColor = void 0;
var _config = _interopRequireDefault(require("../map-icon/config"));
var _enum = require("../map-icon/enum");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var getIcon = function getIcon(options) {
  var canvasIcon = options.canvasIcon,
    theme = options.theme;
  return _config["default"][theme || _enum.MapIconThemeEnum.Default][canvasIcon];
};
exports.getIcon = getIcon;
var getColor = function getColor(options) {
  var _ref = getIcon(options) || {},
    color = _ref.color;
  return options !== null && options !== void 0 && options.status ? _enum.StatusColorEnum[options === null || options === void 0 ? void 0 : options.status] : options !== null && options !== void 0 && options.color ? options === null || options === void 0 ? void 0 : options.color : color || '#119FFB';
};
exports.getColor = getColor;
//# sourceMappingURL=getIconConfig.js.map
