"use strict";

require("core-js/modules/es.object.define-property.js");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.CameraState = void 0;
var _icon = require("../../icon");
var _type = require("../../icon/type");
var _jsxRuntime = require("react/jsx-runtime");
var CameraState = exports.CameraState = function CameraState(props) {
  var isCameraMuted = props.isCameraMuted,
    _props$size = props.size,
    size = _props$size === void 0 ? 20 : _props$size,
    ignoreColor = props.ignoreColor,
    renderMode = props.renderMode,
    renderIconType = props.renderIconType;
  var getComputIconType = function getComputIconType() {
    if (renderMode === 'forward-state') {
      return isCameraMuted ? renderIconType === 'surface' ? _type.FcrIconType.FCR_CAMERA : _type.FcrIconType.FCR_MOBILE_CAMERA2 : renderIconType === 'surface' ? _type.FcrIconType.FCR_CAMERAOFF : _type.FcrIconType.FCR_MOBILE_CAMERAOFF2;
    } else {
      return isCameraMuted ? renderIconType === 'surface' ? _type.FcrIconType.FCR_CAMERAOFF : _type.FcrIconType.FCR_MOBILE_CAMERAOFF2 : renderIconType === 'surface' ? _type.FcrIconType.FCR_CAMERA : _type.FcrIconType.FCR_MOBILE_CAMERA2;
    }
  };
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
    children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
      type: getComputIconType(),
      colors: ignoreColor ? {
        iconPrimary: 'var(--fcr_web_ui_scene_mainicon1)',
        iconSecondary: 'var(--fcr_web_ui_scene_mainicon1)'
      } : {
        iconPrimary: isCameraMuted ? 'var(--fcr_ui_scene_ramp_red6)' : 'var(--fcr_web_ui_scene_mainicon1)',
        iconSecondary: isCameraMuted ? 'var(--fcr_ui_scene_ramp_red6)' : 'var(--fcr_web_ui_scene_mainicon1)'
      },
      size: size
    })
  });
};