"use strict";

exports.__esModule = true;
exports.default = 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 (theme) {
  return {
    fieldsetBox: {
      position: "relative",
      boxSizing: "border-box",
      display: "flex",
      alignSelf: "stretch",
      flexDirection: "column",
      flexWrap: "wrap",
      border: "1px solid ".concat(theme.palette.grey.borders),
      borderRadius: 5,
      marginTop: 45,
      marginLeft: 0,
      marginBottom: 0,
      padding: 20,
      paddingTop: 0,
      backgroundColor: "#fafafa"
    },
    legend: {
      position: "absolute",
      top: "-2em",
      left: -4,
      fontFamily: theme.typography.button.fontFamily,
      fontStyle: "italic",
      fontSize: 13,
      textTransform: "uppercase",
      color: theme.palette.primary.main
    }
  };
});
var Fieldset = function Fieldset(_ref) {
  var label = _ref.label,
    children = _ref.children;
  var classes = useStyles();
  return /*#__PURE__*/_react.default.createElement("fieldset", {
    className: classes.fieldsetBox
  }, /*#__PURE__*/_react.default.createElement("legend", {
    className: classes.legend
  }, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, label)), children);
};
__signature__(Fieldset, "useStyles{classes}", function () {
  return [useStyles];
});
__signature__(Fieldset, "useStyles{classes}", function () {
  return [useStyles];
});
var _default = Fieldset;
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/Fieldset.js");
  reactHotLoader.register(Fieldset, "Fieldset", "/home/vsts/work/1/s/src/components/Form/Fieldset.js");
  reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Form/Fieldset.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/Fieldset.js");
  reactHotLoader.register(Fieldset, "Fieldset", "/home/vsts/work/1/s/src/components/Form/Fieldset.js");
  reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Form/Fieldset.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();