@undp/carbon-library 2.1.13-PAN-1.5 → 2.1.13-PAN-1.6

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -20847,10 +20847,13 @@ var NdcActionDetails = function (props) {
20847
20847
  (programmeDetails === null || programmeDetails === void 0 ? void 0 : programmeDetails.sector) === exports.Sector.Education ||
20848
20848
  (programmeDetails === null || programmeDetails === void 0 ? void 0 : programmeDetails.sector) === exports.Sector.Hospitality
20849
20849
  ? mitigationTypeList
20850
- : sectorMitigationTypesListMapped[sector], defaultValue: (_b = (_a = sectorMitigationTypesListMapped[sector].find(function (item) { return item.label === sector; })) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : "" }))),
20850
+ : sectorMitigationTypesListMapped[sector], defaultValue: sectorMitigationTypesListMapped[sector]
20851
+ ? (_c = (_b = (_a = sectorMitigationTypesListMapped[sector]) === null || _a === void 0 ? void 0 : _a.find(function (item) { return item.label === sector; })) === null || _b === void 0 ? void 0 : _b.label) !== null && _c !== void 0 ? _c : ""
20852
+ : "" }))),
20851
20853
  (ndcActionType === exports.NdcActionTypes.Mitigation ||
20852
20854
  ndcActionType === exports.NdcActionTypes.CrossCutting) &&
20853
- mitigationType && mitigationSubTypesListMapped[mitigationType] && (React.createElement(antd.Col, { style: { marginLeft: "38px" } },
20855
+ mitigationType &&
20856
+ mitigationSubTypesListMapped[mitigationType] && (React.createElement(antd.Col, { style: { marginLeft: "38px" } },
20854
20857
  React.createElement(antd.Form.Item, { label: t("ndcAction:mitigationSubType"), name: "mitigationSubType", rules: [
20855
20858
  {
20856
20859
  required: true,
@@ -20860,8 +20863,12 @@ var NdcActionDetails = function (props) {
20860
20863
  React.createElement(antd.Select, { size: "large", onChange: handleMitigationSubTypeChange, style: {
20861
20864
  width: "249px",
20862
20865
  borderRadius: "4px",
20863
- }, options: mitigationSubTypesListMapped[mitigationType], value: (_e = (mitigationSubType ||
20864
- ((_d = (_c = mitigationSubTypesListMapped[subSector]) === null || _c === void 0 ? void 0 : _c.find(function (item) { return item.label === subSector; })) === null || _d === void 0 ? void 0 : _d.label))) !== null && _e !== void 0 ? _e : "", defaultValue: (_h = (_g = (_f = mitigationSubTypesListMapped[subSector]) === null || _f === void 0 ? void 0 : _f.find(function (item) { return item.label === subSector; })) === null || _g === void 0 ? void 0 : _g.label) !== null && _h !== void 0 ? _h : "" }))))),
20866
+ }, options: mitigationSubTypesListMapped[mitigationType], value: mitigationSubType ||
20867
+ ((_f = (mitigationSubTypesListMapped[subSector]
20868
+ ? (_e = (_d = mitigationSubTypesListMapped[subSector]) === null || _d === void 0 ? void 0 : _d.find(function (item) { return item.label === subSector; })) === null || _e === void 0 ? void 0 : _e.label
20869
+ : "")) !== null && _f !== void 0 ? _f : ""), defaultValue: mitigationSubTypesListMapped[subSector]
20870
+ ? (_h = (_g = mitigationSubTypesListMapped[subSector]) === null || _g === void 0 ? void 0 : _g.find(function (item) { return item.label === subSector; })) === null || _h === void 0 ? void 0 : _h.label
20871
+ : "" }))))),
20865
20872
  React.createElement(antd.Row, { justify: "start", align: "middle" },
20866
20873
  React.createElement(antd.Col, { span: 20 },
20867
20874
  React.createElement(antd.Form.Item, { label: t("ndcAction:methodology"), name: "methodology", rules: [