"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 {
    Panel,
    Row,
    Col
  } = configContext.layoutComponents;
  const {
    Field,
    InputTable
  } = configContext.recordComponents;
  const {
    extensions
  } = configContext.config;
  return /*#__PURE__*/React.createElement(Field, {
    name: "document"
  }, /*#__PURE__*/React.createElement(Panel, {
    name: "info",
    collapsible: true
  }, /*#__PURE__*/React.createElement(Field, {
    name: "placeTermGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "placeTermGroup"
  }, /*#__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: "historicalStatus"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termLanguage"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termPrefForLang"
  })), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "nameAbbrev"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "nameNote"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "nameDateGroup"
  })), /*#__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(Field, {
    name: "placeType"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "placeSource"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "placeOwnerGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "placeOwnerGroup"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "owner"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "ownershipDateGroup"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "ownershipNote"
  }))), /*#__PURE__*/React.createElement(Field, {
    name: "placeNote"
  }), extensions.address.form), /*#__PURE__*/React.createElement(Panel, {
    name: "localityInfo",
    collapsible: true,
    collapsed: true
  }, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "vCoordinates"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "vLatitude"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "vLongitude"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "vCoordSys"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "vSpatialReferenceSystem"
  })), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "vElevation"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "vDepth"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "vDistanceAboveSurface"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "vUnitofMeasure"
  })), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "minElevationInMeters"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "maxElevationInMeters"
  })), /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "minDepthInMeters"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "maxDepthInMeters"
  })), /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "minDistanceAboveSurfaceInMeters"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "maxDistanceAboveSurfaceInMeters"
  })), /*#__PURE__*/React.createElement(Col, null)), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "vCoordSource"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "vCoordSourceRefId"
  }))), /*#__PURE__*/React.createElement(Panel, {
    name: "geoRefInfo",
    collapsible: true,
    collapsed: true
  }, /*#__PURE__*/React.createElement(Field, {
    name: "placeGeoRefGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "placeGeoRefGroup"
  }, /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "decimalLatitude"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "decimalLongitude"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "geodeticDatum"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "coordUncertaintyInMeters"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "coordPrecision"
  })), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "pointRadiusSpatialFit"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "footprintWKT"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "footprintSRS"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "footprintSpatialFit"
  })), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "geoReferencedBy"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "geoRefDateGroup"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "geoRefProtocol"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "geoRefSource"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "geoRefVerificationStatus"
  })), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "geoRefRemarks"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "geoRefPlaceName"
  })))))), /*#__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.place.default.name",
      "defaultMessage": "Standard Template"
    }
  }),
  template: template(configContext)
});

exports.default = _default;