"use strict";

function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _getUrlParam = _interopRequireDefault(require("@vtx/utils/lib/getUrlParam"));
var _button = _interopRequireDefault(require("antd/lib/button"));
var _message = _interopRequireDefault(require("antd/lib/message"));
var _form = _interopRequireDefault(require("antd/lib/form"));
var _input = _interopRequireDefault(require("antd/lib/input"));
var _TextArea = _interopRequireDefault(require("antd/lib/input/TextArea"));
var _react = _interopRequireWildcard(require("react"));
var _request = _interopRequireDefault(require("../../_mapUtil/request"));
var _vtxFormLayout = _interopRequireDefault(require("@vtx/components/lib/vtx-form-layout"));
var _vtxModal = _interopRequireDefault(require("@vtx/components/lib/vtx-modal"));
var _vtxSelect = _interopRequireDefault(require("@vtx/components/lib/vtx-select"));
var _config = _interopRequireDefault(require("../../_mapUtil/config"));
var _sunnyrainratio = _interopRequireDefault(require("./sunnyrainratio"));
var _traceRiverPollutionSource = _interopRequireDefault(require("./traceRiverPollutionSource"));
var _Sedimentationrisk = _interopRequireDefault(require("./Sedimentationrisk"));
var _Rainsewagemixed = _interopRequireDefault(require("./Rainsewagemixed"));
var _Inflowinfiltration = _interopRequireDefault(require("./Inflowinfiltration"));
var _Fillingdegree = _interopRequireDefault(require("./Fillingdegree"));
var _sewageCollectionRate = _interopRequireDefault(require("./sewageCollectionRate"));
var _waterBalance = _interopRequireDefault(require("./waterBalance"));
var _DrainagePollutionSource = _interopRequireDefault(require("./DrainagePollutionSource"));
var _config2 = require("./config");
var _lodash = _interopRequireWildcard(require("lodash"));
var _PipelineNetworkBlocking = _interopRequireDefault(require("./PipelineNetworkBlocking"));
var _WaterQuality = _interopRequireDefault(require("./WaterQuality"));
var _DrainageNetworkNearRiver = _interopRequireDefault(require("./DrainageNetworkNearRiver.js"));
var _DrainageRainSewageNear = _interopRequireDefault(require("./DrainageRainSewageNear.js"));
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
var Configuration = function Configuration(props) {
  var configurationVisible = props.configurationVisible,
    configurationContent = props.configurationContent,
    onConfigurationClose = props.onConfigurationClose;
  var _Form$useForm = _form["default"].useForm(),
    _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
    form = _Form$useForm2[0];
  var _useState = (0, _react.useState)([]),
    _useState2 = _slicedToArray(_useState, 2),
    ersionsList = _useState2[0],
    setVersionsList = _useState2[1];
  var _useState3 = (0, _react.useState)([]),
    _useState4 = _slicedToArray(_useState3, 2),
    facilityTypeList = _useState4[0],
    setFacilityTypeList = _useState4[1];
  var _useState5 = (0, _react.useState)([]),
    _useState6 = _slicedToArray(_useState5, 2),
    deviceTypeList = _useState6[0],
    setDeviceTypeList = _useState6[1];
  // 最初的配置内容
  var _useState7 = (0, _react.useState)([]),
    _useState8 = _slicedToArray(_useState7, 2),
    layersConfigList = _useState8[0],
    setLayersConfigList = _useState8[1];
  var modalProps = {
    title: /*#__PURE__*/_react["default"].createElement(_vtxModal["default"].Title, {
      text: configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.alias,
      subtitle: "\u914D\u7F6E"
    }),
    visible: configurationVisible,
    destroyOnClose: true,
    size: 'small',
    width: 800,
    footer: [/*#__PURE__*/_react["default"].createElement(_button["default"], {
      key: "cancel",
      onClick: function onClick() {
        onConfigurationClose();
      }
    }, "\u53D6\u6D88"), /*#__PURE__*/_react["default"].createElement(_button["default"], {
      key: "save",
      type: "primary",
      onClick: function onClick() {
        onSubmit();
      }
    }, "\u786E\u5B9A")],
    onCancel: function onCancel() {
      onConfigurationClose && onConfigurationClose();
    }
  };
  var onSubmit = function onSubmit() {
    form.validateFields().then(function (obj) {
      var detail = _lodash["default"].omit(obj, ['layersConfigString', 'layersConfig', 'version', 'orderNum']);
      if ((configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) === 'FILLING_DEGREE') {
        detail = {
          alarmLevel: obj.alarmLevel,
          isShowDevice: obj.isShowDevice,
          rules: obj.rules.map(function (item) {
            return {
              color: item.color,
              op: item.op,
              expression: item.expression.join(','),
              name: item.name,
              level: item.level,
              handleMeasure: item.handleMeasure
            };
          })
        };
      } else if ((configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) === 'DRAINAGE_POLLUTION_SOURCE') {
        var facilityTypeCodeList = [];
        if (!(0, _lodash.isEmpty)(obj.facilityTypeCodeList)) {
          facilityTypeCodeList = obj.facilityTypeCodeList.map(function (code, index) {
            return {
              code: code,
              name: obj.facilityTypeNameList[index]
            };
          });
        }
        detail = {
          handleMeasure: obj.handleMeasure,
          facilityTypeCodeList: facilityTypeCodeList,
          monitorItemCodeList: obj.monitorItemCodeList,
          deviceTypeList: obj.deviceTypeList,
          sewerageMatchMethod: 0,
          sewerageMatchConfig: {
            distance: obj.sewerageMatchMethod ? obj.distance : 0
          }
        };
      } else if ((configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) === 'SUNNY_RAIN_RATIO') {
        var facilityTypes = obj.facilityTypes,
          sunnyCount = obj.sunnyCount,
          ratio = obj.ratio,
          handleMeasure = obj.handleMeasure,
          facilityTypeNames = obj.facilityTypeNames;
        detail = {
          sunnyCount: sunnyCount,
          ratio: ratio,
          facilityTypes: facilityTypes.map(function (type, index) {
            return {
              facilityType: type,
              facilityTypeName: facilityTypeNames[index],
              handleMeasure: handleMeasure === null || handleMeasure === void 0 ? void 0 : handleMeasure[type]
            };
          })
        };
      }
      if ((configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) == 'WATER_BALANCE') {
        detail = _objectSpread(_objectSpread({}, detail), {}, {
          levels: obj.levels.map(function (item, index) {
            return _objectSpread(_objectSpread({}, item), {}, {
              code: index + 1
            });
          })
        });
      }
      var layersConfigStringJSON = JSON.parse(obj.layersConfigString || '[]');
      var url = "".concat(_config["default"].publicUrlZNFX, "/api/gisAnalyze/saveTypeConfig");
      _request["default"].post(url, {
        body: {
          typeCode: configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name,
          tenantId: (0, _getUrlParam["default"])('tenantId'),
          version: obj === null || obj === void 0 ? void 0 : obj.version,
          orderNum: obj === null || obj === void 0 ? void 0 : obj.orderNum,
          detail: JSON.stringify(detail),
          // layersConfig: JSON.stringify(layersConfig),
          layersConfig: JSON.stringify(layersConfigStringJSON)
        }
      }).then(function (res) {
        if (res.result == 0) {
          onConfigurationClose();
          _message["default"].success('操作成功');
        }
      })["catch"](function () {});
    });
  };
  var getFacilityTypeList = function getFacilityTypeList() {
    var url = '/cloud/jcss-reborn/facility/type/selectList';
    _request["default"].get(url, {
      body: {}
    }).then(function (res) {
      if (res.result == 0) {
        var _res$data;
        setFacilityTypeList((res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.map(function (item) {
          return {
            key: item.name,
            code: item.code,
            // type: 'FacilityLayer',
            type: (0, _config2.getImageLayerNameByCode)(item.code),
            origin: 'facility'
          };
        })) || []);
      }
    })["catch"](function () {});
  };
  var getDeviceTypeList = function getDeviceTypeList() {
    var url = '/cloud/device/config/deviceType/select';
    _request["default"].get(url, {
      body: {}
    }).then(function (res) {
      if (res.result == 0) {
        var _res$data2;
        setDeviceTypeList(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.map(function (item) {
          return {
            type: 'DeviceLayer',
            key: item.name,
            code: item.id,
            origin: 'device'
          } || [];
        }));
      }
    })["catch"](function () {});
  };
  var getSupportVersions = function getSupportVersions() {
    var url = "".concat(_config["default"].publicUrlZNFX, "/api/gisAnalyze/getSupportVersions");
    _request["default"].get(url, {
      body: {
        analyseType: configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name
      }
    }).then(function (res) {
      if (res.result == 0) {
        setVersionsList(res === null || res === void 0 ? void 0 : res.data);
      }
    })["catch"](function () {});
  };
  var getTypeConfig = function getTypeConfig() {
    var url1 = "".concat(_config["default"].publicUrlZNFX, "/api/gisAnalyze/getTypeConfig");
    _request["default"].get(url1, {
      body: {
        analyseType: configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name,
        tenantId: (0, _getUrlParam["default"])('tenantId')
      }
    }).then(function (res) {
      if (res.result == 0) {
        var _res$data3, _JSON$parse, _res$data4, _res$data5, _res$data6;
        var layersConfig = JSON.parse((res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.layersConfig) || '[]').map(function (item) {
          return {
            value: item.code,
            label: item.name
          };
        });
        var layersConfigString = JSON.stringify((_JSON$parse = JSON.parse((res === null || res === void 0 || (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.layersConfig) || '[]')) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.filter(function (item) {
          return item.code;
        }));
        setLayersConfigList(JSON.parse((res === null || res === void 0 || (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.layersConfig) || '[]') || []);
        var detail = JSON.parse((res === null || res === void 0 || (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.detail) || '{}');
        if ((configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) === 'FILLING_DEGREE') {
          detail.rules.forEach(function (rule) {
            var _rule$expression;
            rule.expression = ((_rule$expression = rule.expression) === null || _rule$expression === void 0 ? void 0 : _rule$expression.split(',')) || [];
          });
        } else if ((configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) === 'DRAINAGE_POLLUTION_SOURCE') {
          var sewerageMatchConfig = detail.sewerageMatchConfig;
          var distance = sewerageMatchConfig.distance;
          detail.sewerageMatchMethod = distance > 0;
          detail.distance = distance;
          var facilityTypeCodeList = [];
          var facilityTypeNameList = [];
          if (!(0, _lodash.isEmpty)(detail.facilityTypeCodeList)) {
            detail.facilityTypeCodeList.map(function (item) {
              facilityTypeCodeList.push(item.code);
              facilityTypeNameList.push(item.name);
            });
          }
          detail.facilityTypeCodeList = facilityTypeCodeList;
          detail.facilityTypeNameList = facilityTypeNameList;
        } else if ((configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) === 'SUNNY_RAIN_RATIO') {
          var _detail$facilityTypes;
          var handleMeasure = {};
          var facilityTypeNames = [];
          var facilityTypes = [];
          (_detail$facilityTypes = detail.facilityTypes) === null || _detail$facilityTypes === void 0 || _detail$facilityTypes.forEach(function (item) {
            var facilityType = item.facilityType,
              facilityTypeName = item.facilityTypeName;
            facilityTypes.push(facilityType);
            facilityTypeNames.push(facilityTypeName);
            handleMeasure[facilityType] = item.handleMeasure;
          });
          detail.facilityTypes = facilityTypes;
          detail.facilityTypeNames = facilityTypeNames;
          detail.handleMeasure = handleMeasure;
        }
        var defaultObj = _objectSpread(_objectSpread(_objectSpread({}, res.data), detail), {}, {
          layersConfig: layersConfig,
          layersConfigString: layersConfigString
        });
        form.setFieldsValue(_objectSpread({}, defaultObj));
      }
    })["catch"](function (e) {
      console.error(e);
    });
  };
  (0, _react.useEffect)(function () {
    if (configurationVisible) {
      getFacilityTypeList();
      getDeviceTypeList();
      getSupportVersions();
      getTypeConfig();
    }
  }, [configurationVisible]);
  return /*#__PURE__*/_react["default"].createElement(_vtxModal["default"], modalProps, /*#__PURE__*/_react["default"].createElement(_form["default"], {
    form: form
  }, /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"], {
    cols: 1
  }, /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    label: "\u652F\u6301\u7BA1\u7F51",
    inline: true
  }, "\u4F9B\u6C34\u7BA1\u7F51\u3001\u6392\u6C34\u7BA1\u7F51\u3001\u539F\u6C34\u7BA1\u7F51"), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    name: "version",
    label: "\u7248\u672C",
    rules: [{
      required: true,
      message: '请选择版本'
    }]
  }, /*#__PURE__*/_react["default"].createElement(_vtxSelect["default"], null, ersionsList.map(function (item) {
    return /*#__PURE__*/_react["default"].createElement(_vtxSelect["default"].Option, {
      key: item,
      value: item
    }, item);
  }))), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    name: "orderNum",
    label: "\u663E\u793A\u6392\u5E8F",
    rules: [{
      required: true,
      message: '请填写显示排序'
    }]
  }, /*#__PURE__*/_react["default"].createElement(_input["default"], null)), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    name: "layersConfig",
    label: "\u9009\u62E9\u56FE\u5C42",
    rules: [{
      required: true,
      message: '请选择图层'
    }]
  }, /*#__PURE__*/_react["default"].createElement(_vtxSelect["default"], {
    mode: "multiple",
    maxTagCount: 6,
    maxTagTextLength: 5,
    onChange: function onChange(value) {
      var list = [];
      var initCodes = layersConfigList === null || layersConfigList === void 0 ? void 0 : layersConfigList.map(function (item) {
        return item.code;
      });
      value === null || value === void 0 || value.map(function (item) {
        var _list;
        if (!initCodes.includes(item)) {
          var _ref;
          var obj = (_ref = [].concat(_toConsumableArray(facilityTypeList), _toConsumableArray(deviceTypeList))) === null || _ref === void 0 ? void 0 : _ref.find(function (v) {
            return (item === null || item === void 0 ? void 0 : item.value) == v.code;
          });
          list.push(obj);
        } else {
          var _obj = layersConfigList === null || layersConfigList === void 0 ? void 0 : layersConfigList.find(function (v) {
            return (item === null || item === void 0 ? void 0 : item.value) == v.code;
          });
          // 已有的项
          list.push(_obj);
        }
        list = (_list = list) === null || _list === void 0 ? void 0 : _list.map(function (item) {
          var _ref2;
          var obj = (_ref2 = [].concat(_toConsumableArray(facilityTypeList), _toConsumableArray(deviceTypeList))) === null || _ref2 === void 0 ? void 0 : _ref2.find(function (v) {
            return (item === null || item === void 0 ? void 0 : item.value) == v.code;
          });
          return _objectSpread(_objectSpread({}, item), obj);
        });
      });
      form.setFieldsValue({
        layersConfigString: JSON.stringify(list)
      });
    },
    labelInValue: true
  }, [].concat(_toConsumableArray(facilityTypeList), _toConsumableArray(deviceTypeList)).map(function (item) {
    return /*#__PURE__*/_react["default"].createElement(_vtxSelect["default"].Option, {
      key: item.code,
      value: item.code
    }, item.key);
  }))), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    name: "layersConfigString",
    label: "\u56FE\u5C42\u914D\u7F6E",
    rules: [{
      required: true,
      message: '请输入图层配置'
    }]
  }, /*#__PURE__*/_react["default"].createElement(_TextArea["default"], {
    autoSize: {
      minRows: 4
    }
  })), /*#__PURE__*/_react["default"].createElement("div", {
    style: {
      width: '100%'
    }
  }, "\u914D\u7F6E\uFF1A"), (configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) == 'SUNNY_RAIN_RATIO' ? /*#__PURE__*/_react["default"].createElement(_sunnyrainratio["default"], {
    form: form
  }) : null, (configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) == 'SEWAGE_COLLECTION_RATE' ? /*#__PURE__*/_react["default"].createElement(_sewageCollectionRate["default"], null) : null, (configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) == 'RIVER_POLLUTION_SOURCE' ? /*#__PURE__*/_react["default"].createElement(_traceRiverPollutionSource["default"], null) : null, (configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) == 'RAIN_SEWAGE_MIXED' ? /*#__PURE__*/_react["default"].createElement(_Rainsewagemixed["default"], null) : null, (configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) == 'SEDIMENTATION_RISK' ? /*#__PURE__*/_react["default"].createElement(_Sedimentationrisk["default"], null) : null, (configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) == 'INFLOW_INFILTRATION' ? /*#__PURE__*/_react["default"].createElement(_Inflowinfiltration["default"], null) : null, (configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) == 'DRAINAGE_POLLUTION_SOURCE' ? /*#__PURE__*/_react["default"].createElement(_DrainagePollutionSource["default"], {
    form: form,
    deviceTypeList: deviceTypeList
  }) : null, (configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) == 'PIPELINE_NETWORK_BLOCKING' ? /*#__PURE__*/_react["default"].createElement(_PipelineNetworkBlocking["default"], {
    form: form
  }) : null, (configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) == 'PREDICT_WATER_QUALITY' ? /*#__PURE__*/_react["default"].createElement(_WaterQuality["default"], {
    form: form
  }) : null, (configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) == 'DRAINAGE_NETWORK_NEAR_RIVER' ? /*#__PURE__*/_react["default"].createElement(_DrainageNetworkNearRiver["default"], {
    form: form
  }) : null, (configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) == 'DRAINAGE_RAIN_SEWAGE_NEAR' ? /*#__PURE__*/_react["default"].createElement(_DrainageRainSewageNear["default"], {
    form: form
  }) : null), (configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) == 'FILLING_DEGREE' ? /*#__PURE__*/_react["default"].createElement(_Fillingdegree["default"], null) : null, (configurationContent === null || configurationContent === void 0 ? void 0 : configurationContent.name) == 'WATER_BALANCE' ? /*#__PURE__*/_react["default"].createElement(_waterBalance["default"], {
    form: form
  }) : null));
};
var _default = exports["default"] = Configuration;
//# sourceMappingURL=configuration.js.map
