"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _reactIntl = require("react-intl");

const template = configContext => {
  const {
    React
  } = configContext.lib;
  const {
    Col,
    Panel,
    Row
  } = configContext.layoutComponents;
  const {
    InputTable,
    Field,
    Subrecord
  } = configContext.recordComponents;
  return /*#__PURE__*/React.createElement(Field, {
    name: "document"
  }, /*#__PURE__*/React.createElement(Panel, {
    name: "info",
    collapsible: true
  }, /*#__PURE__*/React.createElement(Field, {
    name: "personTermGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "personTermGroup"
  }, /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "termDisplayName"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termName"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termQualifier"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termStatus"
  })), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "termType"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termFlag"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termLanguage"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termPrefForLang"
  })), /*#__PURE__*/React.createElement(InputTable, {
    name: "nameDetail"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "salutation"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "title"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "foreName"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "middleName"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "surName"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "nameAdditions"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "initials"
  })), /*#__PURE__*/React.createElement(InputTable, {
    name: "termSource"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "termSource"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termSourceDetail"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termSourceID"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termSourceNote"
  }))))), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "gender"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "occupations"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "occupation"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "schoolsOrStyles"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "schoolOrStyle"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "groups"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "group"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "nationalities"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "nationality"
  }))), /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "nameNote"
  }), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "birthDateGroup"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "birthPlace"
  })), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "deathDateGroup"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "deathPlace"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "bioNote"
  })))), /*#__PURE__*/React.createElement(Subrecord, {
    name: "contact"
  }), /*#__PURE__*/React.createElement(Panel, {
    name: "supplied",
    collapsible: true,
    collapsed: true
  }, /*#__PURE__*/React.createElement(Field, {
    name: "pronounGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "pronounGroup"
  }, /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "declinedToAnswerPronoun"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "suppliedPronouns"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "suppliedPronoun"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "useRestrictionPronoun"
  }))))), /*#__PURE__*/React.createElement(Field, {
    name: "genderGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "genderGroup"
  }, /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "declinedToAnswerGender"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "suppliedGenders"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "suppliedGender"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "useRestrictionGender"
  }))))), /*#__PURE__*/React.createElement(Field, {
    name: "raceGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "raceGroup"
  }, /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "declinedToAnswerRace"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "suppliedRaces"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "suppliedRace"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "useRestrictionRace"
  }))))), /*#__PURE__*/React.createElement(Field, {
    name: "ethnicityGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "ethnicityGroup"
  }, /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "declinedToAnswerEthnicity"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "suppliedEthnicities"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "suppliedEthnicity"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "useRestrictionEthnicity"
  }))))), /*#__PURE__*/React.createElement(Field, {
    name: "sexualityGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "sexualityGroup"
  }, /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "declinedToAnswerSexuality"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "suppliedSexualities"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "suppliedSexuality"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "useRestrictionSexuality"
  }))))), /*#__PURE__*/React.createElement(Field, {
    name: "birthPlaceGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "birthPlaceGroup"
  }, /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "declinedToAnswerBirthPlace"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "suppliedBirthPlace"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "useRestrictionBirthPlace"
  }))))), /*#__PURE__*/React.createElement(Field, {
    name: "birthDateGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "birthDateGroup"
  }, /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "declinedToAnswerBirthDate"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "suppliedBirthDate"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "useRestrictionBirthDate"
  }))))), /*#__PURE__*/React.createElement(Field, {
    name: "otherGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "otherGroup"
  }, /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "informationAuthor"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "informationDate"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "informationUseRestriction"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "otherInformation"
  }))))), /*#__PURE__*/React.createElement(Panel, {
    name: "hierarchy",
    collapsible: true,
    collapsed: true
  }, /*#__PURE__*/React.createElement(Field, {
    name: "relation-list-item",
    subpath: "rel:relations-common-list"
  })));
};

var _default = configContext => ({
  messages: (0, _reactIntl.defineMessages)({
    name: {
      "id": "form.person.default.name",
      "defaultMessage": "Standard Template"
    }
  }),
  template: template(configContext)
});

exports.default = _default;