@djb25/digit-ui-module-ws 1.0.55 → 1.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1873,7 +1873,8 @@ const WSCalculationPayload = (data, tenantId) => {
1873
1873
  numberOfFloors: useDetails !== null && useDetails !== void 0 && (_useDetails$noOfFloor = useDetails.noOfFloors) !== null && _useDetails$noOfFloor !== void 0 && _useDetails$noOfFloor.code ? Number(useDetails.noOfFloors.code) : 0,
1874
1874
  numberOfStudents: useDetails !== null && useDetails !== void 0 && useDetails.numberOfStudents ? Number(useDetails.numberOfStudents) : 0,
1875
1875
  numberOfBeds: useDetails !== null && useDetails !== void 0 && useDetails.numberOfBeds ? Number(useDetails.numberOfBeds) : 0,
1876
- servantQuarterArea: useDetails !== null && useDetails !== void 0 && useDetails.servantQuarterArea ? Number(useDetails.servantQuarterArea) : 0
1876
+ servantQuarterArea: useDetails !== null && useDetails !== void 0 && useDetails.servantQuarterArea ? Number(useDetails.servantQuarterArea) : 0,
1877
+ is12ABCertificate: useDetails !== null && useDetails !== void 0 && useDetails.is12ABCertificate ? true : false
1877
1878
  };
1878
1879
  if (useDetails !== null && useDetails !== void 0 && useDetails.NumberofRooms) payload.numberOfRooms = Number(useDetails.NumberofRooms);
1879
1880
  if (useDetails !== null && useDetails !== void 0 && useDetails.NumberofDwellingUnits) payload.numberOfDwellingUnits = Number(useDetails.NumberofDwellingUnits);
@@ -9669,7 +9670,8 @@ const WSCalculation = _ref => {
9669
9670
  numberOfBeds: "",
9670
9671
  numberOfStudents: "",
9671
9672
  servantQuarterArea: "",
9672
- colonyName: ""
9673
+ colonyName: "",
9674
+ is12ABCertificate: false
9673
9675
  }
9674
9676
  }
9675
9677
  }),
@@ -9828,6 +9830,7 @@ const WSCalculation = _ref => {
9828
9830
  setValue("useDetails.numberOfStudents", "");
9829
9831
  setValue("useDetails.servantQuarterArea", "");
9830
9832
  setValue("useDetails.colonyName", "");
9833
+ setValue("useDetails.is12ABCertificate", false);
9831
9834
  }
9832
9835
  }, [formData === null || formData === void 0 ? void 0 : (_formData$cpt2 = formData.cpt) === null || _formData$cpt2 === void 0 ? void 0 : _formData$cpt2.details, formData === null || formData === void 0 ? void 0 : formData.cpt, categoryOptions, propertyTypeOptions, usageTypeOptions, categoryTypeList, setValue]);
9833
9836
  const lastErrorState = React__default.useRef(null);
@@ -10360,7 +10363,21 @@ const WSCalculation = _ref => {
10360
10363
  name: "useDetails.servantQuarterArea"
10361
10364
  }))) : null, isServentHouse && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails11 = errors.useDetails) === null || _errors$useDetails11 === void 0 ? void 0 : _errors$useDetails11.servantQuarterArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
10362
10365
  style: errorStyle
10363
- }, errors.useDetails.servantQuarterArea.message))), /*#__PURE__*/React__default.createElement("div", {
10366
+ }, errors.useDetails.servantQuarterArea.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement("div", {
10367
+ className: "form-field"
10368
+ }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
10369
+ control: control,
10370
+ name: "useDetails.is12ABCertificate",
10371
+ render: _ref3 => {
10372
+ let value = _ref3.value,
10373
+ onChange = _ref3.onChange;
10374
+ return /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
10375
+ checked: value,
10376
+ onChange: e => onChange(e.target.checked),
10377
+ label: t("WS_12_AB_CERTIFICATE_LABEL")
10378
+ });
10379
+ }
10380
+ }))))), /*#__PURE__*/React__default.createElement("div", {
10364
10381
  style: {
10365
10382
  display: "flex",
10366
10383
  marginTop: "24px",
@@ -15127,7 +15144,7 @@ const WSActivationConnectionDetails = _ref => {
15127
15144
  }, commonProps)))));
15128
15145
  };
15129
15146
  const ConnectionDetails$2 = _props => {
15130
- var _errors$connectionTyp2, _errors$waterSource2, _errors$sourceSubData2, _errors$pipeSize2, _errors$noOfTaps2, _errors$noOfWaterClos2, _errors$noOfToilets2;
15147
+ var _errors$connectionTyp2, _errors$connectionTyp3, _errors$waterSource2, _errors$waterSource3, _errors$sourceSubData2, _errors$sourceSubData3, _errors$pipeSize2, _errors$pipeSize3, _errors$noOfTaps2, _errors$noOfTaps3, _errors$noOfWaterClos2, _errors$noOfWaterClos3, _errors$noOfToilets2, _errors$noOfToilets3;
15131
15148
  const connectionDetail = _props.connectionDetail,
15132
15149
  focusIndex = _props.focusIndex,
15133
15150
  setFocusIndex = _props.setFocusIndex,
@@ -15194,35 +15211,17 @@ const ConnectionDetails$2 = _props => {
15194
15211
  }
15195
15212
  }, [errors]);
15196
15213
  const errorStyle = {
15197
- width: "70%",
15198
- marginLeft: "30%",
15214
+ width: "100%",
15215
+ marginLeft: "0px",
15199
15216
  fontSize: "12px",
15200
15217
  marginTop: "-21px"
15201
15218
  };
15202
- return /*#__PURE__*/React__default.createElement("div", {
15203
- className: "formcomposer-section-grid"
15204
- }, !window.location.href.includes("by-config") && !window.location.href.includes("ws/modify-application") ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
15205
- style: isMobile && isEmployee ? {
15206
- fontWeight: "700",
15207
- width: "100%"
15208
- } : {
15209
- fontWeight: "700"
15210
- },
15211
- className: "card-label-smaller"
15212
- }, t("WS_ACK_COMMON_APP_NO_LABEL") + "*"), /*#__PURE__*/React__default.createElement("div", {
15219
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, !window.location.href.includes("by-config") && !window.location.href.includes("ws/modify-application") ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_ACK_COMMON_APP_NO_LABEL") + "*"), /*#__PURE__*/React__default.createElement("div", {
15213
15220
  className: "field"
15214
15221
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
15215
15222
  disabled: true,
15216
15223
  value: filters === null || filters === void 0 ? void 0 : filters.applicationNumber
15217
- }))) : null, (filters === null || filters === void 0 ? void 0 : filters.service) === "WATER" ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
15218
- style: isMobile && isEmployee ? {
15219
- fontWeight: "700",
15220
- width: "100%"
15221
- } : {
15222
- fontWeight: "700"
15223
- },
15224
- className: "card-label-smaller"
15225
- }, t("WS_SERV_DETAIL_CONN_TYPE") + "*"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
15224
+ }))) : null, (filters === null || filters === void 0 ? void 0 : filters.service) === "WATER" ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_SERV_DETAIL_CONN_TYPE") + "*"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
15226
15225
  control: control,
15227
15226
  name: "connectionType",
15228
15227
  defaultValue: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.connectionType,
@@ -15246,17 +15245,9 @@ const ConnectionDetails$2 = _props => {
15246
15245
  t: t
15247
15246
  });
15248
15247
  }
15249
- })), localFormState.touched.connectionType ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15248
+ }), localFormState.touched.connectionType && errors !== null && errors !== void 0 && (_errors$connectionTyp2 = errors.connectionType) !== null && _errors$connectionTyp2 !== void 0 && _errors$connectionTyp2.message ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15250
15249
  style: errorStyle
15251
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$connectionTyp2 = errors.connectionType) === null || _errors$connectionTyp2 === void 0 ? void 0 : _errors$connectionTyp2.message) : null), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
15252
- style: isMobile && isEmployee ? {
15253
- fontWeight: "700",
15254
- width: "100%"
15255
- } : {
15256
- fontWeight: "700"
15257
- },
15258
- className: "card-label-smaller"
15259
- }, t("WS_SERV_DETAIL_WATER_SOURCE") + "*"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
15250
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$connectionTyp3 = errors.connectionType) === null || _errors$connectionTyp3 === void 0 ? void 0 : _errors$connectionTyp3.message) : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_SERV_DETAIL_WATER_SOURCE") + "*"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
15260
15251
  control: control,
15261
15252
  name: "waterSource",
15262
15253
  defaultValue: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.waterSource,
@@ -15296,17 +15287,9 @@ const ConnectionDetails$2 = _props => {
15296
15287
  t: t
15297
15288
  });
15298
15289
  }
15299
- })), localFormState.touched.waterSource ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15290
+ }), localFormState.touched.waterSource && errors !== null && errors !== void 0 && (_errors$waterSource2 = errors.waterSource) !== null && _errors$waterSource2 !== void 0 && _errors$waterSource2.message ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15300
15291
  style: errorStyle
15301
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$waterSource2 = errors.waterSource) === null || _errors$waterSource2 === void 0 ? void 0 : _errors$waterSource2.message) : null), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
15302
- style: isMobile && isEmployee ? {
15303
- fontWeight: "700",
15304
- width: "100%"
15305
- } : {
15306
- fontWeight: "700"
15307
- },
15308
- className: "card-label-smaller"
15309
- }, t("WS_SERV_DETAIL_WATER_SUB_SOURCE") + "*"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
15292
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$waterSource3 = errors.waterSource) === null || _errors$waterSource3 === void 0 ? void 0 : _errors$waterSource3.message) : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_SERV_DETAIL_WATER_SUB_SOURCE") + "*"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
15310
15293
  control: control,
15311
15294
  name: "sourceSubData",
15312
15295
  defaultValue: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.sourceSubData,
@@ -15330,17 +15313,9 @@ const ConnectionDetails$2 = _props => {
15330
15313
  t: t
15331
15314
  });
15332
15315
  }
15333
- })), localFormState.touched.sourceSubData ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15316
+ }), localFormState.touched.sourceSubData && errors !== null && errors !== void 0 && (_errors$sourceSubData2 = errors.sourceSubData) !== null && _errors$sourceSubData2 !== void 0 && _errors$sourceSubData2.message ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15334
15317
  style: errorStyle
15335
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$sourceSubData2 = errors.sourceSubData) === null || _errors$sourceSubData2 === void 0 ? void 0 : _errors$sourceSubData2.message) : null), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
15336
- style: isMobile && isEmployee ? {
15337
- fontWeight: "700",
15338
- width: "100%"
15339
- } : {
15340
- fontWeight: "700"
15341
- },
15342
- className: "card-label-smaller"
15343
- }, t("WS_PIPE_SIZE_IN_INCHES_LABEL") + "*"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
15318
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$sourceSubData3 = errors.sourceSubData) === null || _errors$sourceSubData3 === void 0 ? void 0 : _errors$sourceSubData3.message) : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_PIPE_SIZE_IN_INCHES_LABEL") + "*"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
15344
15319
  control: control,
15345
15320
  name: "pipeSize",
15346
15321
  defaultValue: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.pipeSize,
@@ -15364,17 +15339,9 @@ const ConnectionDetails$2 = _props => {
15364
15339
  t: t
15365
15340
  });
15366
15341
  }
15367
- })), localFormState.touched.pipeSize ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15342
+ }), localFormState.touched.pipeSize && errors !== null && errors !== void 0 && (_errors$pipeSize2 = errors.pipeSize) !== null && _errors$pipeSize2 !== void 0 && _errors$pipeSize2.message ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15368
15343
  style: errorStyle
15369
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$pipeSize2 = errors.pipeSize) === null || _errors$pipeSize2 === void 0 ? void 0 : _errors$pipeSize2.message) : null), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
15370
- style: isMobile && isEmployee ? {
15371
- fontWeight: "700",
15372
- width: "100%"
15373
- } : {
15374
- fontWeight: "700"
15375
- },
15376
- className: "card-label-smaller"
15377
- }, t("WS_SERV_DETAIL_NO_OF_TAPS") + "*"), /*#__PURE__*/React__default.createElement("div", {
15344
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$pipeSize3 = errors.pipeSize) === null || _errors$pipeSize3 === void 0 ? void 0 : _errors$pipeSize3.message) : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_SERV_DETAIL_NO_OF_TAPS") + "*"), /*#__PURE__*/React__default.createElement("div", {
15378
15345
  className: "field"
15379
15346
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
15380
15347
  control: control,
@@ -15406,17 +15373,9 @@ const ConnectionDetails$2 = _props => {
15406
15373
  onBlur: props.onBlur
15407
15374
  });
15408
15375
  }
15409
- }))), localFormState.touched.noOfTaps ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15376
+ })), localFormState.touched.noOfTaps && errors !== null && errors !== void 0 && (_errors$noOfTaps2 = errors.noOfTaps) !== null && _errors$noOfTaps2 !== void 0 && _errors$noOfTaps2.message ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15410
15377
  style: errorStyle
15411
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$noOfTaps2 = errors.noOfTaps) === null || _errors$noOfTaps2 === void 0 ? void 0 : _errors$noOfTaps2.message) : null)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
15412
- style: isMobile && isEmployee ? {
15413
- fontWeight: "700",
15414
- width: "100%"
15415
- } : {
15416
- fontWeight: "700"
15417
- },
15418
- className: "card-label-smaller"
15419
- }, t("WS_NUMBER_WATER_CLOSETS_LABEL") + "*"), /*#__PURE__*/React__default.createElement("div", {
15378
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$noOfTaps3 = errors.noOfTaps) === null || _errors$noOfTaps3 === void 0 ? void 0 : _errors$noOfTaps3.message) : null)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_NUMBER_WATER_CLOSETS_LABEL") + "*"), /*#__PURE__*/React__default.createElement("div", {
15420
15379
  className: "field"
15421
15380
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
15422
15381
  control: control,
@@ -15448,17 +15407,9 @@ const ConnectionDetails$2 = _props => {
15448
15407
  onBlur: props.onBlur
15449
15408
  });
15450
15409
  }
15451
- }))), localFormState.touched.noOfWaterClosets ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15410
+ })), localFormState.touched.noOfWaterClosets && errors !== null && errors !== void 0 && (_errors$noOfWaterClos2 = errors.noOfWaterClosets) !== null && _errors$noOfWaterClos2 !== void 0 && _errors$noOfWaterClos2.message ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15452
15411
  style: errorStyle
15453
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$noOfWaterClos2 = errors.noOfWaterClosets) === null || _errors$noOfWaterClos2 === void 0 ? void 0 : _errors$noOfWaterClos2.message) : null), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
15454
- style: isMobile && isEmployee ? {
15455
- fontWeight: "700",
15456
- width: "100%"
15457
- } : {
15458
- fontWeight: "700"
15459
- },
15460
- className: "card-label-smaller"
15461
- }, t("WS_SERV_DETAIL_NO_OF_TOILETS") + "*"), /*#__PURE__*/React__default.createElement("div", {
15412
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$noOfWaterClos3 = errors.noOfWaterClosets) === null || _errors$noOfWaterClos3 === void 0 ? void 0 : _errors$noOfWaterClos3.message) : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_SERV_DETAIL_NO_OF_TOILETS") + "*"), /*#__PURE__*/React__default.createElement("div", {
15462
15413
  className: "field"
15463
15414
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
15464
15415
  control: control,
@@ -15490,9 +15441,9 @@ const ConnectionDetails$2 = _props => {
15490
15441
  onBlur: props.onBlur
15491
15442
  });
15492
15443
  }
15493
- }))), localFormState.touched.noOfToilets ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15444
+ })), localFormState.touched.noOfToilets && errors !== null && errors !== void 0 && (_errors$noOfToilets2 = errors.noOfToilets) !== null && _errors$noOfToilets2 !== void 0 && _errors$noOfToilets2.message ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15494
15445
  style: errorStyle
15495
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$noOfToilets2 = errors.noOfToilets) === null || _errors$noOfToilets2 === void 0 ? void 0 : _errors$noOfToilets2.message) : null)));
15446
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$noOfToilets3 = errors.noOfToilets) === null || _errors$noOfToilets3 === void 0 ? void 0 : _errors$noOfToilets3.message) : null)));
15496
15447
  };
15497
15448
 
15498
15449
  const createPlumberDetails = () => ({
@@ -15562,7 +15513,7 @@ const WSActivationPlumberDetails = _ref => {
15562
15513
  }, commonProps))));
15563
15514
  };
15564
15515
  const PlumberDetails = _props => {
15565
- var _plumberDetails$, _formData$disConnecti, _errors$detailsProvid2, _plumberDetail$detail, _plumberDetail$detail2, _errors$plumberLicens2, _errors$plumberName2, _errors$plumberMobile2;
15516
+ var _plumberDetails$, _formData$disConnecti, _errors$detailsProvid2, _errors$detailsProvid3, _plumberDetail$detail, _plumberDetail$detail2, _errors$plumberLicens2, _errors$plumberLicens3, _errors$plumberName2, _errors$plumberName3, _errors$plumberMobile2, _errors$plumberMobile3;
15566
15517
  const plumberDetail = _props.plumberDetail,
15567
15518
  focusIndex = _props.focusIndex,
15568
15519
  setFocusIndex = _props.setFocusIndex,
@@ -15624,22 +15575,12 @@ const PlumberDetails = _props => {
15624
15575
  }
15625
15576
  }, [errors]);
15626
15577
  const errorStyle = {
15627
- width: "70%",
15628
- marginLeft: "30%",
15578
+ width: "100%",
15579
+ marginLeft: "0px",
15629
15580
  fontSize: "12px",
15630
15581
  marginTop: "-21px"
15631
15582
  };
15632
- return /*#__PURE__*/React__default.createElement("div", {
15633
- className: "formcomposer-section-grid"
15634
- }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
15635
- style: isMobile && isEmployee ? {
15636
- fontWeight: "700",
15637
- width: "100%"
15638
- } : {
15639
- fontWeight: "700"
15640
- },
15641
- className: "card-label-smaller"
15642
- }, t("WS_ADDN_DETAILS_PLUMBER_PROVIDED_BY") + "*"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
15583
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_ADDN_DETAILS_PLUMBER_PROVIDED_BY") + "*"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
15643
15584
  control: control,
15644
15585
  name: "detailsProvidedBy",
15645
15586
  defaultValue: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.detailsProvidedBy,
@@ -15677,17 +15618,9 @@ const PlumberDetails = _props => {
15677
15618
  t: t
15678
15619
  });
15679
15620
  }
15680
- })), localFormState.touched.detailsProvidedBy ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15621
+ }), localFormState.touched.detailsProvidedBy && errors !== null && errors !== void 0 && (_errors$detailsProvid2 = errors.detailsProvidedBy) !== null && _errors$detailsProvid2 !== void 0 && _errors$detailsProvid2.message ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15681
15622
  style: errorStyle
15682
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$detailsProvid2 = errors.detailsProvidedBy) === null || _errors$detailsProvid2 === void 0 ? void 0 : _errors$detailsProvid2.message) : null), !(plumberDetail !== null && plumberDetail !== void 0 && (_plumberDetail$detail = plumberDetail.detailsProvidedBy) !== null && _plumberDetail$detail !== void 0 && _plumberDetail$detail.code) || (plumberDetail === null || plumberDetail === void 0 ? void 0 : (_plumberDetail$detail2 = plumberDetail.detailsProvidedBy) === null || _plumberDetail$detail2 === void 0 ? void 0 : _plumberDetail$detail2.code) == "ULB" ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
15683
- style: isMobile && isEmployee ? {
15684
- fontWeight: "700",
15685
- width: "100%"
15686
- } : {
15687
- fontWeight: "700"
15688
- },
15689
- className: "card-label-smaller"
15690
- }, t("WS_PLIMBER_LICENSE_NO_LABEL") + "*"), /*#__PURE__*/React__default.createElement("div", {
15623
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$detailsProvid3 = errors.detailsProvidedBy) === null || _errors$detailsProvid3 === void 0 ? void 0 : _errors$detailsProvid3.message) : null), !(plumberDetail !== null && plumberDetail !== void 0 && (_plumberDetail$detail = plumberDetail.detailsProvidedBy) !== null && _plumberDetail$detail !== void 0 && _plumberDetail$detail.code) || (plumberDetail === null || plumberDetail === void 0 ? void 0 : (_plumberDetail$detail2 = plumberDetail.detailsProvidedBy) === null || _plumberDetail$detail2 === void 0 ? void 0 : _plumberDetail$detail2.code) == "ULB" ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_PLIMBER_LICENSE_NO_LABEL") + "*"), /*#__PURE__*/React__default.createElement("div", {
15691
15624
  className: "field"
15692
15625
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
15693
15626
  control: control,
@@ -15717,17 +15650,9 @@ const PlumberDetails = _props => {
15717
15650
  onBlur: props.onBlur
15718
15651
  });
15719
15652
  }
15720
- }))), localFormState.touched.plumberLicenseNo ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15653
+ })), localFormState.touched.plumberLicenseNo && errors !== null && errors !== void 0 && (_errors$plumberLicens2 = errors.plumberLicenseNo) !== null && _errors$plumberLicens2 !== void 0 && _errors$plumberLicens2.message ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15721
15654
  style: errorStyle
15722
- }, errors === null || errors === void 0 ? void 0 : (_errors$plumberLicens2 = errors.plumberLicenseNo) === null || _errors$plumberLicens2 === void 0 ? void 0 : _errors$plumberLicens2.message) : null), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
15723
- style: isMobile && isEmployee ? {
15724
- fontWeight: "700",
15725
- width: "100%"
15726
- } : {
15727
- fontWeight: "700"
15728
- },
15729
- className: "card-label-smaller"
15730
- }, t("WS_ADDN_DETAILS_PLUMBER_NAME_LABEL") + "*"), /*#__PURE__*/React__default.createElement("div", {
15655
+ }, errors === null || errors === void 0 ? void 0 : (_errors$plumberLicens3 = errors.plumberLicenseNo) === null || _errors$plumberLicens3 === void 0 ? void 0 : _errors$plumberLicens3.message) : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_ADDN_DETAILS_PLUMBER_NAME_LABEL") + "*"), /*#__PURE__*/React__default.createElement("div", {
15731
15656
  className: "field"
15732
15657
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
15733
15658
  control: control,
@@ -15757,17 +15682,9 @@ const PlumberDetails = _props => {
15757
15682
  onBlur: props.onBlur
15758
15683
  });
15759
15684
  }
15760
- }))), localFormState.touched.plumberName ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15685
+ })), localFormState.touched.plumberName && errors !== null && errors !== void 0 && (_errors$plumberName2 = errors.plumberName) !== null && _errors$plumberName2 !== void 0 && _errors$plumberName2.message ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15761
15686
  style: errorStyle
15762
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$plumberName2 = errors.plumberName) === null || _errors$plumberName2 === void 0 ? void 0 : _errors$plumberName2.message) : null), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
15763
- style: isMobile && isEmployee ? {
15764
- fontWeight: "700",
15765
- width: "100%"
15766
- } : {
15767
- fontWeight: "700"
15768
- },
15769
- className: "card-label-smaller"
15770
- }, t("WS_PLUMBER_MOBILE_NO_LABEL") + "*"), /*#__PURE__*/React__default.createElement("div", {
15687
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$plumberName3 = errors.plumberName) === null || _errors$plumberName3 === void 0 ? void 0 : _errors$plumberName3.message) : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_PLUMBER_MOBILE_NO_LABEL") + "*"), /*#__PURE__*/React__default.createElement("div", {
15771
15688
  className: "field"
15772
15689
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
15773
15690
  control: control,
@@ -15842,9 +15759,9 @@ const PlumberDetails = _props => {
15842
15759
  }
15843
15760
  })));
15844
15761
  }
15845
- }))), localFormState.touched.plumberMobileNo ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15762
+ })), localFormState.touched.plumberMobileNo && errors !== null && errors !== void 0 && (_errors$plumberMobile2 = errors.plumberMobileNo) !== null && _errors$plumberMobile2 !== void 0 && _errors$plumberMobile2.message ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15846
15763
  style: errorStyle
15847
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$plumberMobile2 = errors.plumberMobileNo) === null || _errors$plumberMobile2 === void 0 ? void 0 : _errors$plumberMobile2.message) : null)) : null);
15764
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$plumberMobile3 = errors.plumberMobileNo) === null || _errors$plumberMobile3 === void 0 ? void 0 : _errors$plumberMobile3.message) : null)) : null);
15848
15765
  };
15849
15766
 
15850
15767
  const createActivationDetails = () => ({
@@ -15913,7 +15830,7 @@ const WSActivationPageDetails = _ref => {
15913
15830
  }, commonProps))));
15914
15831
  };
15915
15832
  const ConnectionDetails$3 = _props => {
15916
- var _formData$connectionD, _formData$connectionD2, _formData$connectionD3, _formData$connectionD4, _formData$connectionD5, _formData$connectionD6, _formData2$connection, _formData2$connection2, _formData2$connection3, _formData2$connection4, _errors$meterId2, _errors$meterInstalla, _errors$meterInitialR2, _errors$connectionExe2, _errors$dateEffective2;
15833
+ var _formData$connectionD, _formData$connectionD2, _formData$connectionD3, _formData$connectionD4, _formData$connectionD5, _formData$connectionD6, _formData2$connection, _formData2$connection2, _formData2$connection3, _formData2$connection4, _errors$meterId2, _errors$meterId3, _errors$meterInstalla, _errors$meterInstalla2, _errors$meterInitialR2, _errors$meterInitialR3, _errors$connectionExe2, _errors$connectionExe3, _errors$dateEffective2, _errors$dateEffective3;
15917
15834
  const activationDetail = _props.activationDetail,
15918
15835
  focusIndex = _props.focusIndex,
15919
15836
  setFocusIndex = _props.setFocusIndex,
@@ -15978,25 +15895,12 @@ const ConnectionDetails$3 = _props => {
15978
15895
  }
15979
15896
  }, [errors]);
15980
15897
  const errorStyle = {
15981
- width: "70%",
15982
- marginLeft: "30%",
15898
+ width: "100%",
15899
+ marginLeft: "0px",
15983
15900
  fontSize: "12px",
15984
15901
  marginTop: "-21px"
15985
15902
  };
15986
- return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
15987
- style: {
15988
- marginBottom: "16px"
15989
- }
15990
- }, (filters === null || filters === void 0 ? void 0 : filters.service) === "WATER" && (formData === null || formData === void 0 ? void 0 : (_formData$connectionD3 = formData.connectionDetails) === null || _formData$connectionD3 === void 0 ? void 0 : (_formData$connectionD4 = _formData$connectionD3[0]) === null || _formData$connectionD4 === void 0 ? void 0 : (_formData$connectionD5 = _formData$connectionD4.connectionType) === null || _formData$connectionD5 === void 0 ? void 0 : (_formData$connectionD6 = _formData$connectionD5.code) === null || _formData$connectionD6 === void 0 ? void 0 : _formData$connectionD6.toUpperCase()) === "METERED" && (formData2 === null || formData2 === void 0 ? void 0 : (_formData2$connection = formData2.connectionDetails) === null || _formData2$connection === void 0 ? void 0 : (_formData2$connection2 = _formData2$connection[0]) === null || _formData2$connection2 === void 0 ? void 0 : (_formData2$connection3 = _formData2$connection2.formDetails) === null || _formData2$connection3 === void 0 ? void 0 : (_formData2$connection4 = _formData2$connection3.applicationData) === null || _formData2$connection4 === void 0 ? void 0 : _formData2$connection4.applicationType) !== "WATER_RECONNECTION" ? /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
15991
- style: isMobile && isEmployee ? {
15992
- fontWeight: "700",
15993
- width: "100%"
15994
- } : {
15995
- marginTop: "-5px",
15996
- fontWeight: "700"
15997
- },
15998
- className: "card-label-smaller"
15999
- }, t("WS_SERV_DETAIL_METER_ID") + "*"), /*#__PURE__*/React__default.createElement("div", {
15903
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, (filters === null || filters === void 0 ? void 0 : filters.service) === "WATER" && (formData === null || formData === void 0 ? void 0 : (_formData$connectionD3 = formData.connectionDetails) === null || _formData$connectionD3 === void 0 ? void 0 : (_formData$connectionD4 = _formData$connectionD3[0]) === null || _formData$connectionD4 === void 0 ? void 0 : (_formData$connectionD5 = _formData$connectionD4.connectionType) === null || _formData$connectionD5 === void 0 ? void 0 : (_formData$connectionD6 = _formData$connectionD5.code) === null || _formData$connectionD6 === void 0 ? void 0 : _formData$connectionD6.toUpperCase()) === "METERED" && (formData2 === null || formData2 === void 0 ? void 0 : (_formData2$connection = formData2.connectionDetails) === null || _formData2$connection === void 0 ? void 0 : (_formData2$connection2 = _formData2$connection[0]) === null || _formData2$connection2 === void 0 ? void 0 : (_formData2$connection3 = _formData2$connection2.formDetails) === null || _formData2$connection3 === void 0 ? void 0 : (_formData2$connection4 = _formData2$connection3.applicationData) === null || _formData2$connection4 === void 0 ? void 0 : _formData2$connection4.applicationType) !== "WATER_RECONNECTION" ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_SERV_DETAIL_METER_ID") + "*"), /*#__PURE__*/React__default.createElement("div", {
16000
15904
  className: "field"
16001
15905
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
16002
15906
  control: control,
@@ -16028,18 +15932,9 @@ const ConnectionDetails$3 = _props => {
16028
15932
  onBlur: props.onBlur
16029
15933
  });
16030
15934
  }
16031
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15935
+ })), localFormState.touched.meterId && errors !== null && errors !== void 0 && (_errors$meterId2 = errors.meterId) !== null && _errors$meterId2 !== void 0 && _errors$meterId2.message ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
16032
15936
  style: errorStyle
16033
- }, localFormState.touched.meterId ? errors === null || errors === void 0 ? void 0 : (_errors$meterId2 = errors.meterId) === null || _errors$meterId2 === void 0 ? void 0 : _errors$meterId2.message : ""), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
16034
- style: isMobile && isEmployee ? {
16035
- fontWeight: "700",
16036
- width: "100%"
16037
- } : {
16038
- marginTop: "-5px",
16039
- fontWeight: "700"
16040
- },
16041
- className: "card-label-smaller"
16042
- }, t("WS_ADDN_DETAIL_METER_INSTALL_DATE") + "*"), /*#__PURE__*/React__default.createElement("div", {
15937
+ }, errors === null || errors === void 0 ? void 0 : (_errors$meterId3 = errors.meterId) === null || _errors$meterId3 === void 0 ? void 0 : _errors$meterId3.message) : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_ADDN_DETAIL_METER_INSTALL_DATE") + "*"), /*#__PURE__*/React__default.createElement("div", {
16043
15938
  className: "field"
16044
15939
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
16045
15940
  name: "meterInstallationDate",
@@ -16053,18 +15948,9 @@ const ConnectionDetails$3 = _props => {
16053
15948
  name: "meterInstallationDate",
16054
15949
  onChange: props.onChange
16055
15950
  })
16056
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15951
+ })), localFormState.touched.meterInstallationDate && errors !== null && errors !== void 0 && (_errors$meterInstalla = errors.meterInstallationDate) !== null && _errors$meterInstalla !== void 0 && _errors$meterInstalla.message ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
16057
15952
  style: errorStyle
16058
- }, localFormState.touched.meterInstallationDate ? errors === null || errors === void 0 ? void 0 : (_errors$meterInstalla = errors.meterInstallationDate) === null || _errors$meterInstalla === void 0 ? void 0 : _errors$meterInstalla.message : ""), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
16059
- style: isMobile && isEmployee ? {
16060
- fontWeight: "700",
16061
- width: "100%"
16062
- } : {
16063
- marginTop: "-5px",
16064
- fontWeight: "700"
16065
- },
16066
- className: "card-label-smaller"
16067
- }, t("WS_INITIAL_METER_READING_LABEL") + "*"), /*#__PURE__*/React__default.createElement("div", {
15953
+ }, errors === null || errors === void 0 ? void 0 : (_errors$meterInstalla2 = errors.meterInstallationDate) === null || _errors$meterInstalla2 === void 0 ? void 0 : _errors$meterInstalla2.message) : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_INITIAL_METER_READING_LABEL") + "*"), /*#__PURE__*/React__default.createElement("div", {
16068
15954
  className: "field"
16069
15955
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
16070
15956
  type: "number",
@@ -16096,18 +15982,9 @@ const ConnectionDetails$3 = _props => {
16096
15982
  onBlur: props.onBlur
16097
15983
  });
16098
15984
  }
16099
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
15985
+ })), localFormState.touched.meterInitialReading && errors !== null && errors !== void 0 && (_errors$meterInitialR2 = errors.meterInitialReading) !== null && _errors$meterInitialR2 !== void 0 && _errors$meterInitialR2.message ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
16100
15986
  style: errorStyle
16101
- }, localFormState.touched.meterInitialReading ? errors === null || errors === void 0 ? void 0 : (_errors$meterInitialR2 = errors.meterInitialReading) === null || _errors$meterInitialR2 === void 0 ? void 0 : _errors$meterInitialR2.message : "")) : null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
16102
- style: isMobile && isEmployee ? {
16103
- fontWeight: "700",
16104
- width: "100%"
16105
- } : {
16106
- marginTop: "-5px",
16107
- fontWeight: "700"
16108
- },
16109
- className: "card-label-smaller"
16110
- }, t("WS_SERV_DETAIL_CONN_EXECUTION_DATE") + "*"), /*#__PURE__*/React__default.createElement("div", {
15987
+ }, errors === null || errors === void 0 ? void 0 : (_errors$meterInitialR3 = errors.meterInitialReading) === null || _errors$meterInitialR3 === void 0 ? void 0 : _errors$meterInitialR3.message) : null)) : null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_SERV_DETAIL_CONN_EXECUTION_DATE") + "*"), /*#__PURE__*/React__default.createElement("div", {
16111
15988
  className: "field"
16112
15989
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
16113
15990
  name: "connectionExecutionDate",
@@ -16126,18 +16003,9 @@ const ConnectionDetails$3 = _props => {
16126
16003
  errorStyle: localFormState.touched.connectionExecutionDate && errors !== null && errors !== void 0 && (_errors$connectionExe = errors.connectionExecutionDate) !== null && _errors$connectionExe !== void 0 && _errors$connectionExe.message ? true : false
16127
16004
  });
16128
16005
  }
16129
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
16006
+ })), localFormState.touched.connectionExecutionDate && errors !== null && errors !== void 0 && (_errors$connectionExe2 = errors.connectionExecutionDate) !== null && _errors$connectionExe2 !== void 0 && _errors$connectionExe2.message ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
16130
16007
  style: errorStyle
16131
- }, localFormState.touched.connectionExecutionDate ? errors === null || errors === void 0 ? void 0 : (_errors$connectionExe2 = errors.connectionExecutionDate) === null || _errors$connectionExe2 === void 0 ? void 0 : _errors$connectionExe2.message : ""), window.location.href.includes("modify") || window.location.href.includes("mutation") ? /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
16132
- style: isMobile && isEmployee ? {
16133
- fontWeight: "700",
16134
- width: "100%"
16135
- } : {
16136
- marginTop: "-5px",
16137
- fontWeight: "700"
16138
- },
16139
- className: "card-label-smaller"
16140
- }, t("WS_MODIFICATIONS_EFFECTIVE_FROM") + "*"), /*#__PURE__*/React__default.createElement("div", {
16008
+ }, errors === null || errors === void 0 ? void 0 : (_errors$connectionExe3 = errors.connectionExecutionDate) === null || _errors$connectionExe3 === void 0 ? void 0 : _errors$connectionExe3.message) : null), window.location.href.includes("modify") || window.location.href.includes("mutation") ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_MODIFICATIONS_EFFECTIVE_FROM") + "*"), /*#__PURE__*/React__default.createElement("div", {
16141
16009
  className: "field"
16142
16010
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
16143
16011
  name: "dateEffectiveFrom",
@@ -16157,9 +16025,9 @@ const ConnectionDetails$3 = _props => {
16157
16025
  errorStyle: localFormState.touched.dateEffectiveFrom && errors !== null && errors !== void 0 && (_errors$dateEffective = errors.dateEffectiveFrom) !== null && _errors$dateEffective !== void 0 && _errors$dateEffective.message ? true : false
16158
16026
  });
16159
16027
  }
16160
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
16028
+ })), localFormState.touched.dateEffectiveFrom && errors !== null && errors !== void 0 && (_errors$dateEffective2 = errors.dateEffectiveFrom) !== null && _errors$dateEffective2 !== void 0 && _errors$dateEffective2.message ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
16161
16029
  style: errorStyle
16162
- }, localFormState.touched.dateEffectiveFrom ? errors === null || errors === void 0 ? void 0 : (_errors$dateEffective2 = errors.dateEffectiveFrom) === null || _errors$dateEffective2 === void 0 ? void 0 : _errors$dateEffective2.message : "")) : null));
16030
+ }, errors === null || errors === void 0 ? void 0 : (_errors$dateEffective3 = errors.dateEffectiveFrom) === null || _errors$dateEffective3 === void 0 ? void 0 : _errors$dateEffective3.message) : null) : null);
16163
16031
  };
16164
16032
 
16165
16033
  const WSActivationCommentsDetails = _ref => {
@@ -16181,12 +16049,7 @@ const WSActivationCommentsDetails = _ref => {
16181
16049
  onSelect(config.key, _extends({}, formData[config.key], comments));
16182
16050
  }
16183
16051
  }, [comments]);
16184
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
16185
- style: {
16186
- fontWeight: "700"
16187
- },
16188
- className: "card-label-smaller"
16189
- }, t("WF_COMMON_COMMENTS"), ":"), /*#__PURE__*/React__default.createElement("div", {
16052
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WF_COMMON_COMMENTS"), ":"), /*#__PURE__*/React__default.createElement("div", {
16190
16053
  className: "field"
16191
16054
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
16192
16055
  key: config.key,
@@ -16289,12 +16152,7 @@ const WSActivationSupportingDocuments = _ref => {
16289
16152
  });
16290
16153
  }
16291
16154
  }, [uploadedFile]);
16292
- return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
16293
- className: "card-label-smaller",
16294
- style: {
16295
- fontWeight: "700"
16296
- }
16297
- }, t("WF_APPROVAL_UPLOAD_HEAD"), ":"), /*#__PURE__*/React__default.createElement("div", {
16155
+ return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WF_APPROVAL_UPLOAD_HEAD"), ":"), /*#__PURE__*/React__default.createElement("div", {
16298
16156
  className: "field"
16299
16157
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
16300
16158
  onUpload: e => {
@@ -45327,9 +45185,9 @@ function ApplicationDetailsContent(_ref) {
45327
45185
  }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.documents) && /*#__PURE__*/React__default.createElement(PropertyDocuments, {
45328
45186
  documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents,
45329
45187
  applicationStatus: applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus
45330
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_APPROVAL_FOR_CONNECTION", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_RECONNECTION", "PENDING_FOR_DUE_VERIFICATION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React__default.createElement(DueVerification, {
45188
+ }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_APPROVAL_FOR_CONNECTION", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_RECONNECTION", "PENDING_FOR_DUE_VERIFICATION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React__default.createElement(DueVerification, {
45331
45189
  applicationData: applicationData
45332
- }), " ", (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React__default.createElement(InspectionInformation, {
45190
+ }), " ", (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React__default.createElement(InspectionInformation, {
45333
45191
  applicationData: applicationData
45334
45192
  }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React__default.createElement(PropertyEstimates, {
45335
45193
  taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
@@ -45972,7 +45830,7 @@ const ApplicationDetails = props => {
45972
45830
  };
45973
45831
 
45974
45832
  const ApplicationDetails$1 = () => {
45975
- var _mdmsCommonmastersDat, _commonPayInfo, _applicationDetails$p4, _applicationDetails$p5, _applicationDetails$p6, _applicationDetails$p7, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _newValueFilter$, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data21, _workflowDetails$data22, _workflowDetails$data23, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data28, _workflowDetails$data29, _workflowDetails$data30, _workflowDetails$data37, _workflowDetails$data38, _workflowDetails$data39, _oldData$WaterConnect, _oldData$WaterConnect2, _oldData$SewerageConn, _oldData$SewerageConn2, _applicationDetails$a18, _applicationDetails$a19, _reciept_data$Payment2, _applicationDetails$p11, _applicationDetails$p12, _applicationDetails$p13, _applicationDetails$p14, _applicationDetails$p15, _applicationDetails$p16;
45833
+ var _mdmsCommonmastersDat, _commonPayInfo, _applicationDetails$p4, _applicationDetails$p5, _applicationDetails$p6, _applicationDetails$p7, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _newValueFilter$, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$p8, _applicationDetails$p9, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data19, _workflowDetails$data22, _workflowDetails$data23, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data28, _workflowDetails$data29, _workflowDetails$data30, _workflowDetails$data31, _workflowDetails$data38, _workflowDetails$data39, _workflowDetails$data40, _oldData$WaterConnect, _oldData$WaterConnect2, _oldData$SewerageConn, _oldData$SewerageConn2, _applicationDetails$a18, _applicationDetails$a19, _reciept_data$Payment2, _applicationDetails$p14, _applicationDetails$p15, _applicationDetails$p16, _applicationDetails$p17, _applicationDetails$p18, _applicationDetails$p19;
45976
45834
  const getRecieptSearch = function (tenantId, payments, consumerCodes, receiptKey) {
45977
45835
  try {
45978
45836
  let response = null;
@@ -46131,7 +45989,37 @@ const ApplicationDetails$1 = () => {
46131
45989
  };
46132
45990
  let dowloadOptions = [],
46133
45991
  appStatus = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a9 = applicationDetails.applicationData) === null || _applicationDetails$a9 === void 0 ? void 0 : _applicationDetails$a9.applicationStatus) || "";
46134
- workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.actionState) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2.nextActions) === null || _workflowDetails$data3 === void 0 ? void 0 : _workflowDetails$data3.forEach(action => {
45992
+ if (workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.data && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p8 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p8 === void 0 ? void 0 : (_applicationDetails$p9 = _applicationDetails$p8[0]) === null || _applicationDetails$p9 === void 0 ? void 0 : _applicationDetails$p9.businessService) === "NewWS1" && appStatus === "PENDING_FOR_BILLING_CLERK_REVIEW") {
45993
+ var _applicationDetails$p0, _workflowDetails$data;
45994
+ const landArea = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p0 = applicationDetails.propertyDetails) === null || _applicationDetails$p0 === void 0 ? void 0 : _applicationDetails$p0.landArea;
45995
+ if ((_workflowDetails$data = workflowDetails.data.actionState) !== null && _workflowDetails$data !== void 0 && _workflowDetails$data.nextActions) {
45996
+ workflowDetails.data.actionState.nextActions = workflowDetails.data.actionState.nextActions.filter(action => {
45997
+ if (action.action === "VERIFY_AND_FORWARD") {
45998
+ if (landArea && landArea >= 200) {
45999
+ return action.state === "PENDING_FOR_AE_APPROVAL" || action.applicationStatus === "PENDING_FOR_AE_APPROVAL";
46000
+ } else {
46001
+ return action.state === "PENDING_FOR_ASO_APPROVAL" || action.applicationStatus === "PENDING_FOR_ASO_APPROVAL";
46002
+ }
46003
+ }
46004
+ return true;
46005
+ });
46006
+ }
46007
+ if (workflowDetails.data.nextActions) {
46008
+ workflowDetails.data.nextActions = workflowDetails.data.nextActions.filter(action => {
46009
+ if (action.action === "VERIFY_AND_FORWARD") {
46010
+ var _action$state;
46011
+ const targetStateCode = (_action$state = action.state) === null || _action$state === void 0 ? void 0 : _action$state.state;
46012
+ if (landArea && landArea >= 200) {
46013
+ return targetStateCode === "PENDING_FOR_AE_APPROVAL";
46014
+ } else {
46015
+ return targetStateCode === "PENDING_FOR_ASO_APPROVAL";
46016
+ }
46017
+ }
46018
+ return true;
46019
+ });
46020
+ }
46021
+ }
46022
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data2 = workflowDetails.data) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2.actionState) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.nextActions) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.forEach(action => {
46135
46023
  if ((action === null || action === void 0 ? void 0 : action.action) === "ACTIVATE_CONNECTION") {
46136
46024
  action.redirectionUrll = {
46137
46025
  action: "ACTIVATE_CONNECTION",
@@ -46140,8 +46028,8 @@ const ApplicationDetails$1 = () => {
46140
46028
  };
46141
46029
  }
46142
46030
  if ((action === null || action === void 0 ? void 0 : action.action) === "RESUBMIT_APPLICATION") {
46143
- var _applicationDetails$p8, _servicesMasterData$w, _userConfig$, _userConfig$2;
46144
- let pathName = "/digit-ui/employee/ws/edit-application?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p8 = applicationDetails.propertyDetails) === null || _applicationDetails$p8 === void 0 ? void 0 : _applicationDetails$p8.propertyId);
46031
+ var _applicationDetails$p1, _servicesMasterData$w, _userConfig$, _userConfig$2;
46032
+ let pathName = "/digit-ui/employee/ws/edit-application?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p1 = applicationDetails.propertyDetails) === null || _applicationDetails$p1 === void 0 ? void 0 : _applicationDetails$p1.propertyId);
46145
46033
  const userConfig = (servicesMasterData === null || servicesMasterData === void 0 ? void 0 : (_servicesMasterData$w = servicesMasterData["ws-services-masters"]) === null || _servicesMasterData$w === void 0 ? void 0 : _servicesMasterData$w.WSEditApplicationByConfigUser) || [];
46146
46034
  const editApplicationUserRole = (userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$ = userConfig[0]) === null || _userConfig$ === void 0 ? void 0 : _userConfig$.roles) || [];
46147
46035
  const mdmsApplicationStatus = userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$2 = userConfig[0]) === null || _userConfig$2 === void 0 ? void 0 : _userConfig$2.status;
@@ -46151,8 +46039,8 @@ const ApplicationDetails$1 = () => {
46151
46039
  if (isFieldInspector) return false;else return true;
46152
46040
  });
46153
46041
  if (isFieldInspector && appStatus === mdmsApplicationStatus) {
46154
- var _applicationDetails$p9;
46155
- pathName = "/digit-ui/employee/ws/edit-application-by-config?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p9 = applicationDetails.propertyDetails) === null || _applicationDetails$p9 === void 0 ? void 0 : _applicationDetails$p9.propertyId);
46042
+ var _applicationDetails$p10;
46043
+ pathName = "/digit-ui/employee/ws/edit-application-by-config?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p10 = applicationDetails.propertyDetails) === null || _applicationDetails$p10 === void 0 ? void 0 : _applicationDetails$p10.propertyId);
46156
46044
  }
46157
46045
  action.redirectionUrll = {
46158
46046
  action: "ACTIVATE_CONNECTION",
@@ -46164,24 +46052,24 @@ const ApplicationDetails$1 = () => {
46164
46052
  };
46165
46053
  }
46166
46054
  if ((action === null || action === void 0 ? void 0 : action.action) === "SUBMIT_APPLICATION") {
46167
- var _applicationDetails$p0;
46055
+ var _applicationDetails$p11;
46168
46056
  action.redirectionUrll = {
46169
46057
  action: "ACTIVATE_CONNECTION",
46170
- pathname: "/digit-ui/employee/ws/modify-application-edit?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p0 = applicationDetails.propertyDetails) === null || _applicationDetails$p0 === void 0 ? void 0 : _applicationDetails$p0.propertyId),
46058
+ pathname: "/digit-ui/employee/ws/modify-application-edit?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p11 = applicationDetails.propertyDetails) === null || _applicationDetails$p11 === void 0 ? void 0 : _applicationDetails$p11.propertyId),
46171
46059
  state: applicationDetails
46172
46060
  };
46173
46061
  }
46174
46062
  });
46175
- if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data4 = workflowDetails.data) === null || _workflowDetails$data4 === void 0 ? void 0 : (_workflowDetails$data5 = _workflowDetails$data4.nextActions) === null || _workflowDetails$data5 === void 0 ? void 0 : _workflowDetails$data5.length) > 0 && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data6 = workflowDetails.data) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6.actionState) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.nextActions) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.length) > 0 && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data9 = workflowDetails.data) !== null && _workflowDetails$data9 !== void 0 && (_workflowDetails$data0 = _workflowDetails$data9.actionState) !== null && _workflowDetails$data0 !== void 0 && (_workflowDetails$data1 = _workflowDetails$data0.nextActions) !== null && _workflowDetails$data1 !== void 0 && _workflowDetails$data1.find(e => e.action === "EDIT")) && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data10 = workflowDetails.data) !== null && _workflowDetails$data10 !== void 0 && (_workflowDetails$data11 = _workflowDetails$data10.actionState) !== null && _workflowDetails$data11 !== void 0 && (_workflowDetails$data12 = _workflowDetails$data11.nextActions) !== null && _workflowDetails$data12 !== void 0 && _workflowDetails$data12.find(e => e.action === "RESUBMIT_APPLICATION")) && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data13 = workflowDetails.data) !== null && _workflowDetails$data13 !== void 0 && (_workflowDetails$data14 = _workflowDetails$data13.actionState) !== null && _workflowDetails$data14 !== void 0 && (_workflowDetails$data15 = _workflowDetails$data14.nextActions) !== null && _workflowDetails$data15 !== void 0 && _workflowDetails$data15.find(e => e.action === "ACTIVATE_CONNECTION")) && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data16 = workflowDetails.data) !== null && _workflowDetails$data16 !== void 0 && (_workflowDetails$data17 = _workflowDetails$data16.actionState) !== null && _workflowDetails$data17 !== void 0 && (_workflowDetails$data18 = _workflowDetails$data17.nextActions) !== null && _workflowDetails$data18 !== void 0 && _workflowDetails$data18.find(e => e.action === "SUBMIT_APPLICATION"))) {
46176
- var _workflowDetails$data19, _workflowDetails$data20;
46177
- workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data19 = workflowDetails.data) === null || _workflowDetails$data19 === void 0 ? void 0 : (_workflowDetails$data20 = _workflowDetails$data19.nextActions) === null || _workflowDetails$data20 === void 0 ? void 0 : _workflowDetails$data20.forEach(data => {
46063
+ if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data5 = workflowDetails.data) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.nextActions) === null || _workflowDetails$data6 === void 0 ? void 0 : _workflowDetails$data6.length) > 0 && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data7 = workflowDetails.data) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.actionState) === null || _workflowDetails$data8 === void 0 ? void 0 : (_workflowDetails$data9 = _workflowDetails$data8.nextActions) === null || _workflowDetails$data9 === void 0 ? void 0 : _workflowDetails$data9.length) > 0 && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data0 = workflowDetails.data) !== null && _workflowDetails$data0 !== void 0 && (_workflowDetails$data1 = _workflowDetails$data0.actionState) !== null && _workflowDetails$data1 !== void 0 && (_workflowDetails$data10 = _workflowDetails$data1.nextActions) !== null && _workflowDetails$data10 !== void 0 && _workflowDetails$data10.find(e => e.action === "EDIT")) && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data11 = workflowDetails.data) !== null && _workflowDetails$data11 !== void 0 && (_workflowDetails$data12 = _workflowDetails$data11.actionState) !== null && _workflowDetails$data12 !== void 0 && (_workflowDetails$data13 = _workflowDetails$data12.nextActions) !== null && _workflowDetails$data13 !== void 0 && _workflowDetails$data13.find(e => e.action === "RESUBMIT_APPLICATION")) && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data14 = workflowDetails.data) !== null && _workflowDetails$data14 !== void 0 && (_workflowDetails$data15 = _workflowDetails$data14.actionState) !== null && _workflowDetails$data15 !== void 0 && (_workflowDetails$data16 = _workflowDetails$data15.nextActions) !== null && _workflowDetails$data16 !== void 0 && _workflowDetails$data16.find(e => e.action === "ACTIVATE_CONNECTION")) && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data17 = workflowDetails.data) !== null && _workflowDetails$data17 !== void 0 && (_workflowDetails$data18 = _workflowDetails$data17.actionState) !== null && _workflowDetails$data18 !== void 0 && (_workflowDetails$data19 = _workflowDetails$data18.nextActions) !== null && _workflowDetails$data19 !== void 0 && _workflowDetails$data19.find(e => e.action === "SUBMIT_APPLICATION"))) {
46064
+ var _workflowDetails$data20, _workflowDetails$data21;
46065
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data20 = workflowDetails.data) === null || _workflowDetails$data20 === void 0 ? void 0 : (_workflowDetails$data21 = _workflowDetails$data20.nextActions) === null || _workflowDetails$data21 === void 0 ? void 0 : _workflowDetails$data21.forEach(data => {
46178
46066
  if (data.action === "EDIT") workflowDetails.data.actionState.nextActions.push(data);
46179
46067
  });
46180
46068
  }
46181
- workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data21 = workflowDetails.data) === null || _workflowDetails$data21 === void 0 ? void 0 : (_workflowDetails$data22 = _workflowDetails$data21.actionState) === null || _workflowDetails$data22 === void 0 ? void 0 : (_workflowDetails$data23 = _workflowDetails$data22.nextActions) === null || _workflowDetails$data23 === void 0 ? void 0 : _workflowDetails$data23.forEach(action => {
46069
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data22 = workflowDetails.data) === null || _workflowDetails$data22 === void 0 ? void 0 : (_workflowDetails$data23 = _workflowDetails$data22.actionState) === null || _workflowDetails$data23 === void 0 ? void 0 : (_workflowDetails$data24 = _workflowDetails$data23.nextActions) === null || _workflowDetails$data24 === void 0 ? void 0 : _workflowDetails$data24.forEach(action => {
46182
46070
  if ((action === null || action === void 0 ? void 0 : action.action) === "EDIT") {
46183
- var _applicationDetails$p1, _servicesMasterData$w2, _userConfig$3, _userConfig$4;
46184
- let pathName = "/digit-ui/employee/ws/edit-application?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p1 = applicationDetails.propertyDetails) === null || _applicationDetails$p1 === void 0 ? void 0 : _applicationDetails$p1.propertyId);
46071
+ var _applicationDetails$p12, _servicesMasterData$w2, _userConfig$3, _userConfig$4;
46072
+ let pathName = "/digit-ui/employee/ws/edit-application?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p12 = applicationDetails.propertyDetails) === null || _applicationDetails$p12 === void 0 ? void 0 : _applicationDetails$p12.propertyId);
46185
46073
  const userConfig = (servicesMasterData === null || servicesMasterData === void 0 ? void 0 : (_servicesMasterData$w2 = servicesMasterData["ws-services-masters"]) === null || _servicesMasterData$w2 === void 0 ? void 0 : _servicesMasterData$w2.WSEditApplicationByConfigUser) || [];
46186
46074
  const editApplicationUserRole = (userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$3 = userConfig[0]) === null || _userConfig$3 === void 0 ? void 0 : _userConfig$3.roles) || [];
46187
46075
  const mdmsApplicationStatus = userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$4 = userConfig[0]) === null || _userConfig$4 === void 0 ? void 0 : _userConfig$4.status;
@@ -46191,8 +46079,8 @@ const ApplicationDetails$1 = () => {
46191
46079
  if (isFieldInspector) return false;else return true;
46192
46080
  });
46193
46081
  if (isFieldInspector && appStatus === mdmsApplicationStatus) {
46194
- var _applicationDetails$p10;
46195
- pathName = "/digit-ui/employee/ws/edit-application-by-config?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p10 = applicationDetails.propertyDetails) === null || _applicationDetails$p10 === void 0 ? void 0 : _applicationDetails$p10.propertyId);
46082
+ var _applicationDetails$p13;
46083
+ pathName = "/digit-ui/employee/ws/edit-application-by-config?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p13 = applicationDetails.propertyDetails) === null || _applicationDetails$p13 === void 0 ? void 0 : _applicationDetails$p13.propertyId);
46196
46084
  }
46197
46085
  action.redirectionUrll = {
46198
46086
  action: "ACTIVATE_CONNECTION",
@@ -46204,27 +46092,27 @@ const ApplicationDetails$1 = () => {
46204
46092
  };
46205
46093
  }
46206
46094
  });
46207
- workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data24 = workflowDetails.data) === null || _workflowDetails$data24 === void 0 ? void 0 : (_workflowDetails$data25 = _workflowDetails$data24.nextActions) === null || _workflowDetails$data25 === void 0 ? void 0 : _workflowDetails$data25.forEach(action => {
46095
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data25 = workflowDetails.data) === null || _workflowDetails$data25 === void 0 ? void 0 : (_workflowDetails$data26 = _workflowDetails$data25.nextActions) === null || _workflowDetails$data26 === void 0 ? void 0 : _workflowDetails$data26.forEach(action => {
46208
46096
  if ((action === null || action === void 0 ? void 0 : action.action) === "VERIFY_AND_FORWARD" && appStatus === "PENDING_FOR_FIELD_INSPECTION" && !checkWSAdditionalDetails()) {
46209
46097
  action.isToast = true;
46210
46098
  action.toastMessage = "MISSING_ADDITIONAL_DETAILS";
46211
46099
  }
46212
46100
  });
46213
- workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data26 = workflowDetails.data) === null || _workflowDetails$data26 === void 0 ? void 0 : (_workflowDetails$data27 = _workflowDetails$data26.actionState) === null || _workflowDetails$data27 === void 0 ? void 0 : (_workflowDetails$data28 = _workflowDetails$data27.nextActions) === null || _workflowDetails$data28 === void 0 ? void 0 : _workflowDetails$data28.forEach(action => {
46101
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data27 = workflowDetails.data) === null || _workflowDetails$data27 === void 0 ? void 0 : (_workflowDetails$data28 = _workflowDetails$data27.actionState) === null || _workflowDetails$data28 === void 0 ? void 0 : (_workflowDetails$data29 = _workflowDetails$data28.nextActions) === null || _workflowDetails$data29 === void 0 ? void 0 : _workflowDetails$data29.forEach(action => {
46214
46102
  if ((action === null || action === void 0 ? void 0 : action.action) === "VERIFY_AND_FORWARD" && appStatus === "PENDING_FOR_FIELD_INSPECTION" && !checkWSAdditionalDetails()) {
46215
46103
  action.isToast = true;
46216
46104
  action.toastMessage = "MISSING_ADDITIONAL_DETAILS";
46217
46105
  }
46218
46106
  });
46219
- workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data29 = workflowDetails.data) === null || _workflowDetails$data29 === void 0 ? void 0 : (_workflowDetails$data30 = _workflowDetails$data29.nextActions) === null || _workflowDetails$data30 === void 0 ? void 0 : _workflowDetails$data30.forEach(action => {
46107
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data30 = workflowDetails.data) === null || _workflowDetails$data30 === void 0 ? void 0 : (_workflowDetails$data31 = _workflowDetails$data30.nextActions) === null || _workflowDetails$data31 === void 0 ? void 0 : _workflowDetails$data31.forEach(action => {
46220
46108
  if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
46221
- var _workflowDetails$data31, _workflowDetails$data32, _workflowDetails$data33, _workflowDetails$data34, _workflowDetails$data35, _workflowDetails$data36;
46222
- if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data31 = workflowDetails.data) === null || _workflowDetails$data31 === void 0 ? void 0 : (_workflowDetails$data32 = _workflowDetails$data31.processInstances) === null || _workflowDetails$data32 === void 0 ? void 0 : (_workflowDetails$data33 = _workflowDetails$data32[0]) === null || _workflowDetails$data33 === void 0 ? void 0 : _workflowDetails$data33.businessService) === "WSReconnection") {
46109
+ var _workflowDetails$data32, _workflowDetails$data33, _workflowDetails$data34, _workflowDetails$data35, _workflowDetails$data36, _workflowDetails$data37;
46110
+ if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data32 = workflowDetails.data) === null || _workflowDetails$data32 === void 0 ? void 0 : (_workflowDetails$data33 = _workflowDetails$data32.processInstances) === null || _workflowDetails$data33 === void 0 ? void 0 : (_workflowDetails$data34 = _workflowDetails$data33[0]) === null || _workflowDetails$data34 === void 0 ? void 0 : _workflowDetails$data34.businessService) === "WSReconnection") {
46223
46111
  action.redirectionUrll = {
46224
46112
  pathname: "WSReconnection/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "?tenantId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "&ISWSAPP&applicationNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo),
46225
46113
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
46226
46114
  };
46227
- } else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data34 = workflowDetails.data) === null || _workflowDetails$data34 === void 0 ? void 0 : (_workflowDetails$data35 = _workflowDetails$data34.processInstances) === null || _workflowDetails$data35 === void 0 ? void 0 : (_workflowDetails$data36 = _workflowDetails$data35[0]) === null || _workflowDetails$data36 === void 0 ? void 0 : _workflowDetails$data36.businessService) === "SWReconnection") {
46115
+ } else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data35 = workflowDetails.data) === null || _workflowDetails$data35 === void 0 ? void 0 : (_workflowDetails$data36 = _workflowDetails$data35.processInstances) === null || _workflowDetails$data36 === void 0 ? void 0 : (_workflowDetails$data37 = _workflowDetails$data36[0]) === null || _workflowDetails$data37 === void 0 ? void 0 : _workflowDetails$data37.businessService) === "SWReconnection") {
46228
46116
  action.redirectionUrll = {
46229
46117
  pathname: "SWReconnection/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "?tenantId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "&ISWSAPP&applicationNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo),
46230
46118
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
@@ -46237,15 +46125,15 @@ const ApplicationDetails$1 = () => {
46237
46125
  }
46238
46126
  }
46239
46127
  });
46240
- workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data37 = workflowDetails.data) === null || _workflowDetails$data37 === void 0 ? void 0 : (_workflowDetails$data38 = _workflowDetails$data37.actionState) === null || _workflowDetails$data38 === void 0 ? void 0 : (_workflowDetails$data39 = _workflowDetails$data38.nextActions) === null || _workflowDetails$data39 === void 0 ? void 0 : _workflowDetails$data39.forEach(action => {
46128
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data38 = workflowDetails.data) === null || _workflowDetails$data38 === void 0 ? void 0 : (_workflowDetails$data39 = _workflowDetails$data38.actionState) === null || _workflowDetails$data39 === void 0 ? void 0 : (_workflowDetails$data40 = _workflowDetails$data39.nextActions) === null || _workflowDetails$data40 === void 0 ? void 0 : _workflowDetails$data40.forEach(action => {
46241
46129
  if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
46242
- var _workflowDetails$data40, _workflowDetails$data41, _workflowDetails$data42, _workflowDetails$data43, _workflowDetails$data44, _workflowDetails$data45;
46243
- if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data40 = workflowDetails.data) === null || _workflowDetails$data40 === void 0 ? void 0 : (_workflowDetails$data41 = _workflowDetails$data40.processInstances) === null || _workflowDetails$data41 === void 0 ? void 0 : (_workflowDetails$data42 = _workflowDetails$data41[0]) === null || _workflowDetails$data42 === void 0 ? void 0 : _workflowDetails$data42.businessService) === "WSReconnection") {
46130
+ var _workflowDetails$data41, _workflowDetails$data42, _workflowDetails$data43, _workflowDetails$data44, _workflowDetails$data45, _workflowDetails$data46;
46131
+ if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data41 = workflowDetails.data) === null || _workflowDetails$data41 === void 0 ? void 0 : (_workflowDetails$data42 = _workflowDetails$data41.processInstances) === null || _workflowDetails$data42 === void 0 ? void 0 : (_workflowDetails$data43 = _workflowDetails$data42[0]) === null || _workflowDetails$data43 === void 0 ? void 0 : _workflowDetails$data43.businessService) === "WSReconnection") {
46244
46132
  action.redirectionUrll = {
46245
46133
  pathname: "WSReconnection/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "?tenantId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "&ISWSAPP&applicationNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo),
46246
46134
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
46247
46135
  };
46248
- } else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data43 = workflowDetails.data) === null || _workflowDetails$data43 === void 0 ? void 0 : (_workflowDetails$data44 = _workflowDetails$data43.processInstances) === null || _workflowDetails$data44 === void 0 ? void 0 : (_workflowDetails$data45 = _workflowDetails$data44[0]) === null || _workflowDetails$data45 === void 0 ? void 0 : _workflowDetails$data45.businessService) === "SWReconnection") {
46136
+ } else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data44 = workflowDetails.data) === null || _workflowDetails$data44 === void 0 ? void 0 : (_workflowDetails$data45 = _workflowDetails$data44.processInstances) === null || _workflowDetails$data45 === void 0 ? void 0 : (_workflowDetails$data46 = _workflowDetails$data45[0]) === null || _workflowDetails$data46 === void 0 ? void 0 : _workflowDetails$data46.businessService) === "SWReconnection") {
46249
46137
  action.redirectionUrll = {
46250
46138
  pathname: "SWReconnection/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "?tenantId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "&ISWSAPP&applicationNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo),
46251
46139
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
@@ -46415,12 +46303,12 @@ const ApplicationDetails$1 = () => {
46415
46303
  mutate: mutate,
46416
46304
  id: "timeline",
46417
46305
  workflowDetails: workflowDetails,
46418
- businessService: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p11 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p11 === void 0 ? void 0 : (_applicationDetails$p12 = _applicationDetails$p11[0]) === null || _applicationDetails$p12 === void 0 ? void 0 : (_applicationDetails$p13 = _applicationDetails$p12.businessService) === null || _applicationDetails$p13 === void 0 ? void 0 : _applicationDetails$p13.toUpperCase(),
46306
+ businessService: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p14 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p14 === void 0 ? void 0 : (_applicationDetails$p15 = _applicationDetails$p14[0]) === null || _applicationDetails$p15 === void 0 ? void 0 : (_applicationDetails$p16 = _applicationDetails$p15.businessService) === null || _applicationDetails$p16 === void 0 ? void 0 : _applicationDetails$p16.toUpperCase(),
46419
46307
  moduleCode: "WS",
46420
46308
  showToast: showToast,
46421
46309
  setShowToast: setShowToast,
46422
46310
  closeToast: closeToast,
46423
- timelineStatusPrefix: "WF_" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p14 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p14 === void 0 ? void 0 : (_applicationDetails$p15 = _applicationDetails$p14[0]) === null || _applicationDetails$p15 === void 0 ? void 0 : (_applicationDetails$p16 = _applicationDetails$p15.businessService) === null || _applicationDetails$p16 === void 0 ? void 0 : _applicationDetails$p16.toUpperCase()) + "_",
46311
+ timelineStatusPrefix: "WF_" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p17 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p17 === void 0 ? void 0 : (_applicationDetails$p18 = _applicationDetails$p17[0]) === null || _applicationDetails$p18 === void 0 ? void 0 : (_applicationDetails$p19 = _applicationDetails$p18.businessService) === null || _applicationDetails$p19 === void 0 ? void 0 : _applicationDetails$p19.toUpperCase()) + "_",
46424
46312
  oldValue: res,
46425
46313
  isInfoLabel: checkforPrivacyenablement(),
46426
46314
  clearDataDetails: clearDataDetails,
@@ -46743,17 +46631,7 @@ const GetConnectionDetails = () => {
46743
46631
  style: {
46744
46632
  display: "flex"
46745
46633
  }
46746
- }, /*#__PURE__*/React__default.createElement("div", {
46747
- style: {
46748
- width: "80%"
46749
- }
46750
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, {
46751
- styles: {
46752
- marginLeft: "0px",
46753
- paddingTop: "10px",
46754
- fontSize: "32px"
46755
- }
46756
- }, t("WS_CONNECTION_DETAILS"))), dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React__default.createElement("div", {
46634
+ }, dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React__default.createElement("div", {
46757
46635
  style: {
46758
46636
  maxWidth: "100% !imnportant",
46759
46637
  zIndex: "10"
@@ -46880,7 +46758,6 @@ const ActivateConnection = () => {
46880
46758
  isAppDetailsPage = _useState5[0],
46881
46759
  setIsAppDetailsPage = _useState5[1];
46882
46760
  const _React$useState = React__default.useState({
46883
- head: "",
46884
46761
  body: []
46885
46762
  }),
46886
46763
  config = _React$useState[0],
@@ -46913,7 +46790,7 @@ const ActivateConnection = () => {
46913
46790
  } : "",
46914
46791
  waterSource: (_state7 = state) !== null && _state7 !== void 0 && (_state7$data = _state7.data) !== null && _state7$data !== void 0 && _state7$data.waterSource ? {
46915
46792
  code: (_state8 = state) === null || _state8 === void 0 ? void 0 : (_state8$data = _state8.data) === null || _state8$data === void 0 ? void 0 : _state8$data.waterSource,
46916
- i18nKey: "WS_SERVICES_MASTERS_WATERSOURCE_" + stringReplaceAll((_state9 = state) === null || _state9 === void 0 ? void 0 : (_state9$data = _state9.data) === null || _state9$data === void 0 ? void 0 : (_state9$data$waterSou = _state9$data.waterSource) === null || _state9$data$waterSou === void 0 ? void 0 : (_state9$data$waterSou2 = _state9$data$waterSou.split('.')[0]) === null || _state9$data$waterSou2 === void 0 ? void 0 : _state9$data$waterSou2.toUpperCase(), " ", "_")
46793
+ i18nKey: "WS_SERVICES_MASTERS_WATERSOURCE_" + stringReplaceAll((_state9 = state) === null || _state9 === void 0 ? void 0 : (_state9$data = _state9.data) === null || _state9$data === void 0 ? void 0 : (_state9$data$waterSou = _state9$data.waterSource) === null || _state9$data$waterSou === void 0 ? void 0 : (_state9$data$waterSou2 = _state9$data$waterSou.split(".")[0]) === null || _state9$data$waterSou2 === void 0 ? void 0 : _state9$data$waterSou2.toUpperCase(), " ", "_")
46917
46794
  } : "",
46918
46795
  sourceSubData: (_state0 = state) !== null && _state0 !== void 0 && (_state0$data = _state0.data) !== null && _state0$data !== void 0 && _state0$data.waterSource ? {
46919
46796
  code: (_state1 = state) === null || _state1 === void 0 ? void 0 : (_state1$data = _state1.data) === null || _state1$data === void 0 ? void 0 : _state1$data.waterSource,
@@ -46962,9 +46839,18 @@ const ActivateConnection = () => {
46962
46839
  }, []);
46963
46840
  React.useEffect(() => {
46964
46841
  if (!isLoading && newConfig && Array.isArray(newConfig)) {
46965
- const config = newConfig.find(conf => conf.hideInCitizen);
46966
- if (config) {
46967
- setConfig(config);
46842
+ const configObj = newConfig.find(conf => conf.hideInCitizen);
46843
+ if (configObj && configObj.body) {
46844
+ let flattenedBody = [];
46845
+ configObj.body.forEach(section => {
46846
+ if (section.body && Array.isArray(section.body)) {
46847
+ flattenedBody = [...flattenedBody, ...section.body];
46848
+ }
46849
+ });
46850
+ setConfig([{
46851
+ head: "WF_EMPLOYEE_NEWSW1_ACTIVATE_CONNECTION",
46852
+ body: flattenedBody
46853
+ }]);
46968
46854
  }
46969
46855
  }
46970
46856
  }, [newConfig]);
@@ -47097,19 +46983,37 @@ const ActivateConnection = () => {
47097
46983
  if (isEnableLoader || isLoading || isappdetailsLoading) {
47098
46984
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
47099
46985
  }
47100
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormComposer, {
47101
- config: config.body,
46986
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
46987
+ className: "employee-form-section-wrapper"
46988
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.VerticalTimeline, {
46989
+ config: [{
46990
+ timeLine: [{
46991
+ actions: t("WF_EMPLOYEE_NEWSW1_ACTIVATE_CONNECTION"),
46992
+ currentStep: 1
46993
+ }]
46994
+ }],
46995
+ showFinalStep: false
46996
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormComposer, {
46997
+ config: config.map(config => {
46998
+ return _extends({}, config, {
46999
+ isCollapsible: true,
47000
+ isDefaultOpen: true,
47001
+ body: config.body
47002
+ });
47003
+ }),
47102
47004
  userType: "employee",
47103
47005
  defaultValues: defaultValues,
47104
47006
  onSubmit: onSubmit,
47105
47007
  label: t("WF_EMPLOYEE_NEWSW1_ACTIVATE_CONNECTION"),
47106
- onFormValueChange: onFormValueChange
47008
+ onFormValueChange: onFormValueChange,
47009
+ noBreakLine: true,
47010
+ noCard: true
47107
47011
  }), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
47108
47012
  error: showToast.key,
47109
47013
  label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
47110
47014
  warning: showToast === null || showToast === void 0 ? void 0 : showToast.warning,
47111
47015
  onClose: closeToast
47112
- }));
47016
+ })));
47113
47017
  };
47114
47018
 
47115
47019
  const ApplicationDetailsBillAmendment = () => {
@@ -47620,7 +47524,7 @@ const EditApplication$1 = () => {
47620
47524
  };
47621
47525
 
47622
47526
  const ConsumptionDetails = _ref => {
47623
- var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _details$4, _details$5;
47527
+ var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsBillingPeriod$Md3, _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _mdmsMeterStatus$Mdms3, _details$4, _details$5;
47624
47528
  const _useTranslation = reactI18next.useTranslation(),
47625
47529
  t = _useTranslation.t;
47626
47530
  const user = Digit.UserService.getUser();
@@ -47724,7 +47628,7 @@ const ConsumptionDetails = _ref => {
47724
47628
  return dateString;
47725
47629
  }
47726
47630
  };
47727
- const getBillingPeriodFromMdms = mdmsBillingPeriod === null || mdmsBillingPeriod === void 0 ? void 0 : (_mdmsBillingPeriod$Md = mdmsBillingPeriod.MdmsRes) === null || _mdmsBillingPeriod$Md === void 0 ? void 0 : (_mdmsBillingPeriod$Md2 = _mdmsBillingPeriod$Md["ws-services-masters"]) === null || _mdmsBillingPeriod$Md2 === void 0 ? void 0 : _mdmsBillingPeriod$Md2.billingPeriod.filter(e => e.connectionType === "Metered");
47631
+ const getBillingPeriodFromMdms = mdmsBillingPeriod === null || mdmsBillingPeriod === void 0 ? void 0 : (_mdmsBillingPeriod$Md = mdmsBillingPeriod.MdmsRes) === null || _mdmsBillingPeriod$Md === void 0 ? void 0 : (_mdmsBillingPeriod$Md2 = _mdmsBillingPeriod$Md["ws-services-masters"]) === null || _mdmsBillingPeriod$Md2 === void 0 ? void 0 : (_mdmsBillingPeriod$Md3 = _mdmsBillingPeriod$Md2.billingPeriod) === null || _mdmsBillingPeriod$Md3 === void 0 ? void 0 : _mdmsBillingPeriod$Md3.filter(e => e.connectionType === "Metered");
47728
47632
  const popUp = () => {
47729
47633
  var _response$meterReadin, _response$meterReadin2;
47730
47634
  setOpenModal(true);
@@ -47830,7 +47734,7 @@ const ConsumptionDetails = _ref => {
47830
47734
  return Promise.reject(e);
47831
47735
  }
47832
47736
  };
47833
- let optionsList = mdmsMeterStatus === null || mdmsMeterStatus === void 0 ? void 0 : (_mdmsMeterStatus$Mdms = mdmsMeterStatus.MdmsRes) === null || _mdmsMeterStatus$Mdms === void 0 ? void 0 : (_mdmsMeterStatus$Mdms2 = _mdmsMeterStatus$Mdms["ws-services-calculation"]) === null || _mdmsMeterStatus$Mdms2 === void 0 ? void 0 : _mdmsMeterStatus$Mdms2.MeterStatus.map(status => ({
47737
+ let optionsList = mdmsMeterStatus === null || mdmsMeterStatus === void 0 ? void 0 : (_mdmsMeterStatus$Mdms = mdmsMeterStatus.MdmsRes) === null || _mdmsMeterStatus$Mdms === void 0 ? void 0 : (_mdmsMeterStatus$Mdms2 = _mdmsMeterStatus$Mdms["ws-services-calculation"]) === null || _mdmsMeterStatus$Mdms2 === void 0 ? void 0 : (_mdmsMeterStatus$Mdms3 = _mdmsMeterStatus$Mdms2.MeterStatus) === null || _mdmsMeterStatus$Mdms3 === void 0 ? void 0 : _mdmsMeterStatus$Mdms3.map(status => ({
47834
47738
  code: status,
47835
47739
  i18nKey: "WS_SERVICES_CALCULATION_METERSTATUS_" + Digit.Utils.locale.getTransformedLocale(status)
47836
47740
  }));