"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;

exports.__esModule = true;
exports.Renderer = void 0;

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));

var _Component2 = _interopRequireDefault(require("../Component"));

var FoveationLevel;

(function (FoveationLevel) {
  FoveationLevel[FoveationLevel["none"] = 0] = "none";
  FoveationLevel[FoveationLevel["low"] = 1] = "low";
  FoveationLevel[FoveationLevel["medium"] = 2] = "medium";
  FoveationLevel[FoveationLevel["high"] = 3] = "high";
})(FoveationLevel || (FoveationLevel = {}));

var Renderer = /*#__PURE__*/function (_Component) {
  (0, _inheritsLoose2.default)(Renderer, _Component);

  function Renderer(props) {
    return _Component.call(this, (0, _extends2.default)({}, props, {
      // @ts-ignore
      foveationLevel: props.foveationLevel === undefined ? props.foveationLevel : FoveationLevel[props.foveationLevel]
    })) || this;
  }

  return Renderer;
}(_Component2.default);

exports.Renderer = Renderer;