"use strict";

exports.__esModule = true;
exports.default = exports.ReadOnly = exports.LineLabel = void 0;
var _react = _interopRequireDefault(require("react"));
var _styles = require("@material-ui/core/styles");
var _reactIntl = require("react-intl");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var useStyles = (0, _styles.makeStyles)(function () {
  return {
    centerWrapper: {
      minHeight: 30,
      display: "flex",
      alignItems: "center"
    },
    readOnlyBlock: {
      margin: 0
    },
    label: {
      margin: 0,
      fontSize: 16
    }
  };
});
var ReadOnly = exports.ReadOnly = function ReadOnly(_ref) {
  var value = _ref.value;
  var classes = useStyles();
  return /*#__PURE__*/_react.default.createElement("div", {
    className: classes.centerWrapper
  }, /*#__PURE__*/_react.default.createElement("p", {
    className: classes.readOnlyBlock
  }, typeof value === "string" ? value : /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, value)));
};
__signature__(ReadOnly, "useStyles{classes}", function () {
  return [useStyles];
});
__signature__(ReadOnly, "useStyles{classes}", function () {
  return [useStyles];
});
var LineLabel = exports.LineLabel = function LineLabel(_ref2) {
  var value = _ref2.value;
  var classes = useStyles();
  return /*#__PURE__*/_react.default.createElement("div", {
    className: classes.centerWrapper
  }, /*#__PURE__*/_react.default.createElement("p", {
    className: classes.label
  }, typeof value === "string" ? value : /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, value)));
};
__signature__(LineLabel, "useStyles{classes}", function () {
  return [useStyles];
});
__signature__(LineLabel, "useStyles{classes}", function () {
  return [useStyles];
});
var _default = ReadOnly;
var _default2 = _default;
var _default3 = exports.default = _default2;
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/Form/Inputs/ReadOnly.js");
  reactHotLoader.register(ReadOnly, "ReadOnly", "/home/vsts/work/1/s/src/components/Form/Inputs/ReadOnly.js");
  reactHotLoader.register(LineLabel, "LineLabel", "/home/vsts/work/1/s/src/components/Form/Inputs/ReadOnly.js");
  reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Form/Inputs/ReadOnly.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/Form/Inputs/ReadOnly.js");
  reactHotLoader.register(ReadOnly, "ReadOnly", "/home/vsts/work/1/s/src/components/Form/Inputs/ReadOnly.js");
  reactHotLoader.register(LineLabel, "LineLabel", "/home/vsts/work/1/s/src/components/Form/Inputs/ReadOnly.js");
  reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Form/Inputs/ReadOnly.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();