@djb25/digit-ui-module-ws 1.0.55 → 1.0.57
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 +330 -366
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +331 -367
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
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);
|
|
@@ -9648,7 +9649,7 @@ const colonyNameOptions = [{
|
|
|
9648
9649
|
const NUMBER_PATTERN = /^\d+$/;
|
|
9649
9650
|
const DECIMAL_PATTERN = /^\d+(\.\d{1,2})?$/;
|
|
9650
9651
|
const WSCalculation = _ref => {
|
|
9651
|
-
var _formData$cpt2, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11;
|
|
9652
|
+
var _formData$cpt2, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _formValue$useDetails3, _formValue$useDetails4, _formValue$useDetails5, _formValue$useDetails6, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11;
|
|
9652
9653
|
let config = _ref.config,
|
|
9653
9654
|
onSelect = _ref.onSelect,
|
|
9654
9655
|
formData = _ref.formData,
|
|
@@ -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
|
}),
|
|
@@ -9720,7 +9722,7 @@ const WSCalculation = _ref => {
|
|
|
9720
9722
|
const isHospitalProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOSPITAL_NURSING_HOME" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "DharamshalasOrHostels" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HospitalNursingHome";
|
|
9721
9723
|
const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
|
|
9722
9724
|
const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
|
|
9723
|
-
const isDwellingUnit = (
|
|
9725
|
+
const isDwellingUnit = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "Apartment" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "FlatOrApartment" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "IndividualHouse";
|
|
9724
9726
|
const isServentHouse = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "Apartment" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "FlatOrApartment" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "IndividualHouse";
|
|
9725
9727
|
const categoryOptions = React.useMemo(() => {
|
|
9726
9728
|
var _ptServicesMastersDat, _ptServicesMastersDat2;
|
|
@@ -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);
|
|
@@ -10267,7 +10270,7 @@ const WSCalculation = _ref => {
|
|
|
10267
10270
|
name: "useDetails.plotArea"
|
|
10268
10271
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails6 = errors.useDetails) === null || _errors$useDetails6 === void 0 ? void 0 : _errors$useDetails6.plotArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
|
|
10269
10272
|
style: errorStyle
|
|
10270
|
-
}, errors.useDetails.plotArea.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "" + t("WS_BUILT_UP_AREA")), /*#__PURE__*/React__default.createElement("div", {
|
|
10273
|
+
}, errors.useDetails.plotArea.message), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "" + t("WS_BUILT_UP_AREA")), /*#__PURE__*/React__default.createElement("div", {
|
|
10271
10274
|
className: "form-field"
|
|
10272
10275
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
10273
10276
|
t: t,
|
|
@@ -10280,7 +10283,7 @@ const WSCalculation = _ref => {
|
|
|
10280
10283
|
name: "useDetails.builtUpArea"
|
|
10281
10284
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails7 = errors.useDetails) === null || _errors$useDetails7 === void 0 ? void 0 : _errors$useDetails7.builtUpArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
|
|
10282
10285
|
style: errorStyle
|
|
10283
|
-
}, errors.useDetails.builtUpArea.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "" + t("WS_FAR_AREA")), /*#__PURE__*/React__default.createElement("div", {
|
|
10286
|
+
}, errors.useDetails.builtUpArea.message)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "" + t("WS_FAR_AREA")), /*#__PURE__*/React__default.createElement("div", {
|
|
10284
10287
|
className: "form-field"
|
|
10285
10288
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
10286
10289
|
t: t,
|
|
@@ -10288,12 +10291,25 @@ const WSCalculation = _ref => {
|
|
|
10288
10291
|
pattern: {
|
|
10289
10292
|
value: DECIMAL_PATTERN,
|
|
10290
10293
|
message: t("ERR_INVALID_DECIMAL")
|
|
10294
|
+
},
|
|
10295
|
+
validate: value => {
|
|
10296
|
+
var _formValue$useDetails, _formValue$useDetails2;
|
|
10297
|
+
if (formValue !== null && formValue !== void 0 && (_formValue$useDetails = formValue.useDetails) !== null && _formValue$useDetails !== void 0 && _formValue$useDetails.builtUpArea && parseFloat(value) > parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails2 = formValue.useDetails) === null || _formValue$useDetails2 === void 0 ? void 0 : _formValue$useDetails2.builtUpArea)) {
|
|
10298
|
+
return t("WS_FAR_AREA_IS_SMALLER_THAN_BUILT_UP_AREA");
|
|
10299
|
+
}
|
|
10291
10300
|
}
|
|
10292
10301
|
}),
|
|
10293
10302
|
name: "useDetails.farArea"
|
|
10294
10303
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails8 = errors.useDetails) === null || _errors$useDetails8 === void 0 ? void 0 : _errors$useDetails8.farArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
|
|
10295
10304
|
style: errorStyle
|
|
10296
|
-
}, errors.useDetails.farArea.message),
|
|
10305
|
+
}, errors.useDetails.farArea.message), (formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails3 = formValue.useDetails) === null || _formValue$useDetails3 === void 0 ? void 0 : _formValue$useDetails3.farArea) && (formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails4 = formValue.useDetails) === null || _formValue$useDetails4 === void 0 ? void 0 : _formValue$useDetails4.builtUpArea) && parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails5 = formValue.useDetails) === null || _formValue$useDetails5 === void 0 ? void 0 : _formValue$useDetails5.farArea) > parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails6 = formValue.useDetails) === null || _formValue$useDetails6 === void 0 ? void 0 : _formValue$useDetails6.builtUpArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
|
|
10306
|
+
style: {
|
|
10307
|
+
width: "70%",
|
|
10308
|
+
marginLeft: "30%",
|
|
10309
|
+
fontSize: "12px",
|
|
10310
|
+
marginTop: "5px"
|
|
10311
|
+
}
|
|
10312
|
+
}, t("WS_FAR_AREA_IS_SMALLER_THAN_BUILT_UP_AREA"))), isDwellingUnit ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "" + t("WS_NUMBER_OF_DWELLING_UNITS")), /*#__PURE__*/React__default.createElement("div", {
|
|
10297
10313
|
className: "form-field"
|
|
10298
10314
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
10299
10315
|
t: t,
|
|
@@ -10360,7 +10376,21 @@ const WSCalculation = _ref => {
|
|
|
10360
10376
|
name: "useDetails.servantQuarterArea"
|
|
10361
10377
|
}))) : 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
10378
|
style: errorStyle
|
|
10363
|
-
}, errors.useDetails.servantQuarterArea.message)
|
|
10379
|
+
}, errors.useDetails.servantQuarterArea.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement("div", {
|
|
10380
|
+
className: "form-field"
|
|
10381
|
+
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
10382
|
+
control: control,
|
|
10383
|
+
name: "useDetails.is12ABCertificate",
|
|
10384
|
+
render: _ref3 => {
|
|
10385
|
+
let value = _ref3.value,
|
|
10386
|
+
onChange = _ref3.onChange;
|
|
10387
|
+
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
|
|
10388
|
+
checked: value,
|
|
10389
|
+
onChange: e => onChange(e.target.checked),
|
|
10390
|
+
label: t("WS_12_AB_CERTIFICATE_LABEL")
|
|
10391
|
+
});
|
|
10392
|
+
}
|
|
10393
|
+
}))))), /*#__PURE__*/React__default.createElement("div", {
|
|
10364
10394
|
style: {
|
|
10365
10395
|
display: "flex",
|
|
10366
10396
|
marginTop: "24px",
|
|
@@ -10836,7 +10866,7 @@ const BILLSBreadCrumbs = _ref => {
|
|
|
10836
10866
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ModuleHeader, {
|
|
10837
10867
|
leftContent: /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ArrowLeft, {
|
|
10838
10868
|
className: "icon"
|
|
10839
|
-
}), "
|
|
10869
|
+
}), t("CS_COMMON_BACK")),
|
|
10840
10870
|
onLeftClick: () => window.history.back(),
|
|
10841
10871
|
breadcrumbs: getDynamicBreadcrumbs()
|
|
10842
10872
|
}));
|
|
@@ -15127,7 +15157,7 @@ const WSActivationConnectionDetails = _ref => {
|
|
|
15127
15157
|
}, commonProps)))));
|
|
15128
15158
|
};
|
|
15129
15159
|
const ConnectionDetails$2 = _props => {
|
|
15130
|
-
var _errors$connectionTyp2, _errors$waterSource2, _errors$sourceSubData2, _errors$pipeSize2, _errors$noOfTaps2, _errors$noOfWaterClos2, _errors$noOfToilets2;
|
|
15160
|
+
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
15161
|
const connectionDetail = _props.connectionDetail,
|
|
15132
15162
|
focusIndex = _props.focusIndex,
|
|
15133
15163
|
setFocusIndex = _props.setFocusIndex,
|
|
@@ -15194,35 +15224,17 @@ const ConnectionDetails$2 = _props => {
|
|
|
15194
15224
|
}
|
|
15195
15225
|
}, [errors]);
|
|
15196
15226
|
const errorStyle = {
|
|
15197
|
-
width: "
|
|
15198
|
-
marginLeft: "
|
|
15227
|
+
width: "100%",
|
|
15228
|
+
marginLeft: "0px",
|
|
15199
15229
|
fontSize: "12px",
|
|
15200
15230
|
marginTop: "-21px"
|
|
15201
15231
|
};
|
|
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", {
|
|
15232
|
+
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
15233
|
className: "field"
|
|
15214
15234
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
15215
15235
|
disabled: true,
|
|
15216
15236
|
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(
|
|
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, {
|
|
15237
|
+
}))) : 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
15238
|
control: control,
|
|
15227
15239
|
name: "connectionType",
|
|
15228
15240
|
defaultValue: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.connectionType,
|
|
@@ -15246,17 +15258,9 @@ const ConnectionDetails$2 = _props => {
|
|
|
15246
15258
|
t: t
|
|
15247
15259
|
});
|
|
15248
15260
|
}
|
|
15249
|
-
})
|
|
15261
|
+
}), 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
15262
|
style: errorStyle
|
|
15251
|
-
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$
|
|
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, {
|
|
15263
|
+
}, " ", 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
15264
|
control: control,
|
|
15261
15265
|
name: "waterSource",
|
|
15262
15266
|
defaultValue: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.waterSource,
|
|
@@ -15296,17 +15300,9 @@ const ConnectionDetails$2 = _props => {
|
|
|
15296
15300
|
t: t
|
|
15297
15301
|
});
|
|
15298
15302
|
}
|
|
15299
|
-
})
|
|
15303
|
+
}), 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
15304
|
style: errorStyle
|
|
15301
|
-
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$
|
|
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, {
|
|
15305
|
+
}, " ", 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
15306
|
control: control,
|
|
15311
15307
|
name: "sourceSubData",
|
|
15312
15308
|
defaultValue: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.sourceSubData,
|
|
@@ -15330,17 +15326,9 @@ const ConnectionDetails$2 = _props => {
|
|
|
15330
15326
|
t: t
|
|
15331
15327
|
});
|
|
15332
15328
|
}
|
|
15333
|
-
})
|
|
15329
|
+
}), 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
15330
|
style: errorStyle
|
|
15335
|
-
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$
|
|
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, {
|
|
15331
|
+
}, " ", 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
15332
|
control: control,
|
|
15345
15333
|
name: "pipeSize",
|
|
15346
15334
|
defaultValue: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.pipeSize,
|
|
@@ -15364,17 +15352,9 @@ const ConnectionDetails$2 = _props => {
|
|
|
15364
15352
|
t: t
|
|
15365
15353
|
});
|
|
15366
15354
|
}
|
|
15367
|
-
})
|
|
15355
|
+
}), 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
15356
|
style: errorStyle
|
|
15369
|
-
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$
|
|
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", {
|
|
15357
|
+
}, " ", 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
15358
|
className: "field"
|
|
15379
15359
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
15380
15360
|
control: control,
|
|
@@ -15406,17 +15386,9 @@ const ConnectionDetails$2 = _props => {
|
|
|
15406
15386
|
onBlur: props.onBlur
|
|
15407
15387
|
});
|
|
15408
15388
|
}
|
|
15409
|
-
}))
|
|
15389
|
+
})), 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
15390
|
style: errorStyle
|
|
15411
|
-
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$
|
|
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", {
|
|
15391
|
+
}, " ", 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
15392
|
className: "field"
|
|
15421
15393
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
15422
15394
|
control: control,
|
|
@@ -15448,17 +15420,9 @@ const ConnectionDetails$2 = _props => {
|
|
|
15448
15420
|
onBlur: props.onBlur
|
|
15449
15421
|
});
|
|
15450
15422
|
}
|
|
15451
|
-
}))
|
|
15423
|
+
})), 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
15424
|
style: errorStyle
|
|
15453
|
-
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$
|
|
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", {
|
|
15425
|
+
}, " ", 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
15426
|
className: "field"
|
|
15463
15427
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
15464
15428
|
control: control,
|
|
@@ -15490,9 +15454,9 @@ const ConnectionDetails$2 = _props => {
|
|
|
15490
15454
|
onBlur: props.onBlur
|
|
15491
15455
|
});
|
|
15492
15456
|
}
|
|
15493
|
-
}))
|
|
15457
|
+
})), 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
15458
|
style: errorStyle
|
|
15495
|
-
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$
|
|
15459
|
+
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$noOfToilets3 = errors.noOfToilets) === null || _errors$noOfToilets3 === void 0 ? void 0 : _errors$noOfToilets3.message) : null)));
|
|
15496
15460
|
};
|
|
15497
15461
|
|
|
15498
15462
|
const createPlumberDetails = () => ({
|
|
@@ -15562,7 +15526,7 @@ const WSActivationPlumberDetails = _ref => {
|
|
|
15562
15526
|
}, commonProps))));
|
|
15563
15527
|
};
|
|
15564
15528
|
const PlumberDetails = _props => {
|
|
15565
|
-
var _plumberDetails$, _formData$disConnecti, _errors$detailsProvid2, _plumberDetail$detail, _plumberDetail$detail2, _errors$plumberLicens2, _errors$plumberName2, _errors$plumberMobile2;
|
|
15529
|
+
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
15530
|
const plumberDetail = _props.plumberDetail,
|
|
15567
15531
|
focusIndex = _props.focusIndex,
|
|
15568
15532
|
setFocusIndex = _props.setFocusIndex,
|
|
@@ -15624,22 +15588,12 @@ const PlumberDetails = _props => {
|
|
|
15624
15588
|
}
|
|
15625
15589
|
}, [errors]);
|
|
15626
15590
|
const errorStyle = {
|
|
15627
|
-
width: "
|
|
15628
|
-
marginLeft: "
|
|
15591
|
+
width: "100%",
|
|
15592
|
+
marginLeft: "0px",
|
|
15629
15593
|
fontSize: "12px",
|
|
15630
15594
|
marginTop: "-21px"
|
|
15631
15595
|
};
|
|
15632
|
-
return /*#__PURE__*/React__default.createElement("
|
|
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, {
|
|
15596
|
+
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
15597
|
control: control,
|
|
15644
15598
|
name: "detailsProvidedBy",
|
|
15645
15599
|
defaultValue: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.detailsProvidedBy,
|
|
@@ -15677,17 +15631,9 @@ const PlumberDetails = _props => {
|
|
|
15677
15631
|
t: t
|
|
15678
15632
|
});
|
|
15679
15633
|
}
|
|
15680
|
-
})
|
|
15634
|
+
}), 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
15635
|
style: errorStyle
|
|
15682
|
-
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$
|
|
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", {
|
|
15636
|
+
}, " ", 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
15637
|
className: "field"
|
|
15692
15638
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
15693
15639
|
control: control,
|
|
@@ -15717,17 +15663,9 @@ const PlumberDetails = _props => {
|
|
|
15717
15663
|
onBlur: props.onBlur
|
|
15718
15664
|
});
|
|
15719
15665
|
}
|
|
15720
|
-
}))
|
|
15666
|
+
})), 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
15667
|
style: errorStyle
|
|
15722
|
-
}, errors === null || errors === void 0 ? void 0 : (_errors$
|
|
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", {
|
|
15668
|
+
}, 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
15669
|
className: "field"
|
|
15732
15670
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
15733
15671
|
control: control,
|
|
@@ -15757,17 +15695,9 @@ const PlumberDetails = _props => {
|
|
|
15757
15695
|
onBlur: props.onBlur
|
|
15758
15696
|
});
|
|
15759
15697
|
}
|
|
15760
|
-
}))
|
|
15698
|
+
})), 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
15699
|
style: errorStyle
|
|
15762
|
-
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$
|
|
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", {
|
|
15700
|
+
}, " ", 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
15701
|
className: "field"
|
|
15772
15702
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
15773
15703
|
control: control,
|
|
@@ -15842,9 +15772,9 @@ const PlumberDetails = _props => {
|
|
|
15842
15772
|
}
|
|
15843
15773
|
})));
|
|
15844
15774
|
}
|
|
15845
|
-
}))
|
|
15775
|
+
})), 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
15776
|
style: errorStyle
|
|
15847
|
-
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$
|
|
15777
|
+
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$plumberMobile3 = errors.plumberMobileNo) === null || _errors$plumberMobile3 === void 0 ? void 0 : _errors$plumberMobile3.message) : null)) : null);
|
|
15848
15778
|
};
|
|
15849
15779
|
|
|
15850
15780
|
const createActivationDetails = () => ({
|
|
@@ -15913,7 +15843,7 @@ const WSActivationPageDetails = _ref => {
|
|
|
15913
15843
|
}, commonProps))));
|
|
15914
15844
|
};
|
|
15915
15845
|
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;
|
|
15846
|
+
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
15847
|
const activationDetail = _props.activationDetail,
|
|
15918
15848
|
focusIndex = _props.focusIndex,
|
|
15919
15849
|
setFocusIndex = _props.setFocusIndex,
|
|
@@ -15978,25 +15908,12 @@ const ConnectionDetails$3 = _props => {
|
|
|
15978
15908
|
}
|
|
15979
15909
|
}, [errors]);
|
|
15980
15910
|
const errorStyle = {
|
|
15981
|
-
width: "
|
|
15982
|
-
marginLeft: "
|
|
15911
|
+
width: "100%",
|
|
15912
|
+
marginLeft: "0px",
|
|
15983
15913
|
fontSize: "12px",
|
|
15984
15914
|
marginTop: "-21px"
|
|
15985
15915
|
};
|
|
15986
|
-
return /*#__PURE__*/React__default.createElement("
|
|
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", {
|
|
15916
|
+
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
15917
|
className: "field"
|
|
16001
15918
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
16002
15919
|
control: control,
|
|
@@ -16028,18 +15945,9 @@ const ConnectionDetails$3 = _props => {
|
|
|
16028
15945
|
onBlur: props.onBlur
|
|
16029
15946
|
});
|
|
16030
15947
|
}
|
|
16031
|
-
}))
|
|
15948
|
+
})), 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
15949
|
style: errorStyle
|
|
16033
|
-
},
|
|
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", {
|
|
15950
|
+
}, 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
15951
|
className: "field"
|
|
16044
15952
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
16045
15953
|
name: "meterInstallationDate",
|
|
@@ -16053,18 +15961,9 @@ const ConnectionDetails$3 = _props => {
|
|
|
16053
15961
|
name: "meterInstallationDate",
|
|
16054
15962
|
onChange: props.onChange
|
|
16055
15963
|
})
|
|
16056
|
-
}))
|
|
15964
|
+
})), 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
15965
|
style: errorStyle
|
|
16058
|
-
},
|
|
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", {
|
|
15966
|
+
}, 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
15967
|
className: "field"
|
|
16069
15968
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
16070
15969
|
type: "number",
|
|
@@ -16096,18 +15995,9 @@ const ConnectionDetails$3 = _props => {
|
|
|
16096
15995
|
onBlur: props.onBlur
|
|
16097
15996
|
});
|
|
16098
15997
|
}
|
|
16099
|
-
}))
|
|
15998
|
+
})), 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
15999
|
style: errorStyle
|
|
16101
|
-
},
|
|
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", {
|
|
16000
|
+
}, 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
16001
|
className: "field"
|
|
16112
16002
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
16113
16003
|
name: "connectionExecutionDate",
|
|
@@ -16126,18 +16016,9 @@ const ConnectionDetails$3 = _props => {
|
|
|
16126
16016
|
errorStyle: localFormState.touched.connectionExecutionDate && errors !== null && errors !== void 0 && (_errors$connectionExe = errors.connectionExecutionDate) !== null && _errors$connectionExe !== void 0 && _errors$connectionExe.message ? true : false
|
|
16127
16017
|
});
|
|
16128
16018
|
}
|
|
16129
|
-
}))
|
|
16019
|
+
})), 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
16020
|
style: errorStyle
|
|
16131
|
-
},
|
|
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", {
|
|
16021
|
+
}, 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
16022
|
className: "field"
|
|
16142
16023
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
16143
16024
|
name: "dateEffectiveFrom",
|
|
@@ -16157,9 +16038,9 @@ const ConnectionDetails$3 = _props => {
|
|
|
16157
16038
|
errorStyle: localFormState.touched.dateEffectiveFrom && errors !== null && errors !== void 0 && (_errors$dateEffective = errors.dateEffectiveFrom) !== null && _errors$dateEffective !== void 0 && _errors$dateEffective.message ? true : false
|
|
16158
16039
|
});
|
|
16159
16040
|
}
|
|
16160
|
-
}))
|
|
16041
|
+
})), 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
16042
|
style: errorStyle
|
|
16162
|
-
},
|
|
16043
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors$dateEffective3 = errors.dateEffectiveFrom) === null || _errors$dateEffective3 === void 0 ? void 0 : _errors$dateEffective3.message) : null) : null);
|
|
16163
16044
|
};
|
|
16164
16045
|
|
|
16165
16046
|
const WSActivationCommentsDetails = _ref => {
|
|
@@ -16181,12 +16062,7 @@ const WSActivationCommentsDetails = _ref => {
|
|
|
16181
16062
|
onSelect(config.key, _extends({}, formData[config.key], comments));
|
|
16182
16063
|
}
|
|
16183
16064
|
}, [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", {
|
|
16065
|
+
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
16066
|
className: "field"
|
|
16191
16067
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
16192
16068
|
key: config.key,
|
|
@@ -16289,12 +16165,7 @@ const WSActivationSupportingDocuments = _ref => {
|
|
|
16289
16165
|
});
|
|
16290
16166
|
}
|
|
16291
16167
|
}, [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", {
|
|
16168
|
+
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
16169
|
className: "field"
|
|
16299
16170
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
|
|
16300
16171
|
onUpload: e => {
|
|
@@ -21435,7 +21306,7 @@ const _excluded$1 = ["t", "config", "onSelect", "formData", "formState", "setErr
|
|
|
21435
21306
|
const NUMBER_PATTERN$1 = /^\d+$/;
|
|
21436
21307
|
const DECIMAL_PATTERN$1 = /^\d+(\.\d{1,2})?$/;
|
|
21437
21308
|
const PropertyWaterConnection = _ref => {
|
|
21438
|
-
var _formData$cpt2, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11, _errors$useDetails12;
|
|
21309
|
+
var _formData$cpt2, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _formValue$useDetails3, _formValue$useDetails4, _formValue$useDetails5, _formValue$useDetails6, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11, _errors$useDetails12;
|
|
21439
21310
|
let t = _ref.t,
|
|
21440
21311
|
config = _ref.config,
|
|
21441
21312
|
onSelect = _ref.onSelect,
|
|
@@ -21497,7 +21368,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
21497
21368
|
const isHospitalProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOSPITAL_NURSING_HOME" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "DharamshalasOrHostels" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HospitalNursingHome";
|
|
21498
21369
|
const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
|
|
21499
21370
|
const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
|
|
21500
|
-
const isDwellingUnit = (
|
|
21371
|
+
const isDwellingUnit = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "Apartment" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "FlatOrApartment" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "IndividualHouse";
|
|
21501
21372
|
const isServentHouse = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "Apartment" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "FlatOrApartment" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "IndividualHouse";
|
|
21502
21373
|
const yearOptions = React.useMemo(() => {
|
|
21503
21374
|
const currentYear = new Date().getFullYear();
|
|
@@ -21766,7 +21637,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
21766
21637
|
disabled: isPropertyFound
|
|
21767
21638
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails6 = errors.useDetails) === null || _errors$useDetails6 === void 0 ? void 0 : _errors$useDetails6.plotArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
|
|
21768
21639
|
style: errorStyle
|
|
21769
|
-
}, errors.useDetails.plotArea.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "" + t("WS_BUILT_UP_AREA")), /*#__PURE__*/React__default.createElement("div", {
|
|
21640
|
+
}, errors.useDetails.plotArea.message), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "" + t("WS_BUILT_UP_AREA")), /*#__PURE__*/React__default.createElement("div", {
|
|
21770
21641
|
className: "form-field"
|
|
21771
21642
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
21772
21643
|
t: t,
|
|
@@ -21780,7 +21651,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
21780
21651
|
disabled: isPropertyFound
|
|
21781
21652
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails7 = errors.useDetails) === null || _errors$useDetails7 === void 0 ? void 0 : _errors$useDetails7.builtUpArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
|
|
21782
21653
|
style: errorStyle
|
|
21783
|
-
}, errors.useDetails.builtUpArea.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "" + t("WS_FAR_AREA")), /*#__PURE__*/React__default.createElement("div", {
|
|
21654
|
+
}, errors.useDetails.builtUpArea.message)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "" + t("WS_FAR_AREA")), /*#__PURE__*/React__default.createElement("div", {
|
|
21784
21655
|
className: "form-field"
|
|
21785
21656
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
21786
21657
|
t: t,
|
|
@@ -21788,13 +21659,26 @@ const PropertyWaterConnection = _ref => {
|
|
|
21788
21659
|
pattern: {
|
|
21789
21660
|
value: DECIMAL_PATTERN$1,
|
|
21790
21661
|
message: t("ERR_INVALID_DECIMAL")
|
|
21662
|
+
},
|
|
21663
|
+
validate: value => {
|
|
21664
|
+
var _formValue$useDetails, _formValue$useDetails2;
|
|
21665
|
+
if (formValue !== null && formValue !== void 0 && (_formValue$useDetails = formValue.useDetails) !== null && _formValue$useDetails !== void 0 && _formValue$useDetails.builtUpArea && parseFloat(value) > parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails2 = formValue.useDetails) === null || _formValue$useDetails2 === void 0 ? void 0 : _formValue$useDetails2.builtUpArea)) {
|
|
21666
|
+
return t("WS_FAR_AREA_IS_SMALLER_THAN_BUILT_UP_AREA");
|
|
21667
|
+
}
|
|
21791
21668
|
}
|
|
21792
21669
|
}),
|
|
21793
21670
|
name: "useDetails.farArea",
|
|
21794
21671
|
disabled: isPropertyFound
|
|
21795
21672
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails8 = errors.useDetails) === null || _errors$useDetails8 === void 0 ? void 0 : _errors$useDetails8.farArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
|
|
21796
21673
|
style: errorStyle
|
|
21797
|
-
}, errors.useDetails.farArea.message),
|
|
21674
|
+
}, errors.useDetails.farArea.message), (formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails3 = formValue.useDetails) === null || _formValue$useDetails3 === void 0 ? void 0 : _formValue$useDetails3.farArea) && (formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails4 = formValue.useDetails) === null || _formValue$useDetails4 === void 0 ? void 0 : _formValue$useDetails4.builtUpArea) && parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails5 = formValue.useDetails) === null || _formValue$useDetails5 === void 0 ? void 0 : _formValue$useDetails5.farArea) > parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails6 = formValue.useDetails) === null || _formValue$useDetails6 === void 0 ? void 0 : _formValue$useDetails6.builtUpArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
|
|
21675
|
+
style: {
|
|
21676
|
+
width: "70%",
|
|
21677
|
+
marginLeft: "30%",
|
|
21678
|
+
fontSize: "12px",
|
|
21679
|
+
marginTop: "5px"
|
|
21680
|
+
}
|
|
21681
|
+
}, t("WS_FAR_AREA_IS_SMALLER_THAN_BUILT_UP_AREA"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_SELECT_YEAR_OF_CONSTRUCTION") + "*"), /*#__PURE__*/React__default.createElement("div", {
|
|
21798
21682
|
className: "form-field"
|
|
21799
21683
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
21800
21684
|
control: control,
|
|
@@ -29471,23 +29355,30 @@ const WSFeeEstimation = _ref => {
|
|
|
29471
29355
|
var _wsAdditionalDetails$2, _wsAdditionalDetails$3, _sessionFormData$bill;
|
|
29472
29356
|
const data = _extends({}, wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$2 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : (_wsAdditionalDetails$3 = _wsAdditionalDetails$2.appDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : _wsAdditionalDetails$3.additionalDetails);
|
|
29473
29357
|
if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
|
|
29474
|
-
var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0;
|
|
29475
|
-
const billAccountDetails = (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill2 = sessionFormData.billDetails) === null || _sessionFormData$bill2 === void 0 ? void 0 : (_sessionFormData$bill3 = _sessionFormData$bill2[0]) === null || _sessionFormData$bill3 === void 0 ? void 0 : _sessionFormData$bill3.billAccountDetails) || [];
|
|
29476
|
-
const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill =>
|
|
29477
|
-
|
|
29478
|
-
|
|
29479
|
-
|
|
29358
|
+
var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0, _sessionFormData$bill1, _sessionFormData$bill10;
|
|
29359
|
+
const billAccountDetails = (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill2 = sessionFormData.billDetails) === null || _sessionFormData$bill2 === void 0 ? void 0 : (_sessionFormData$bill3 = _sessionFormData$bill2[0]) === null || _sessionFormData$bill3 === void 0 ? void 0 : _sessionFormData$bill3.billAccountDetails) || (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill4 = sessionFormData.billDetails) === null || _sessionFormData$bill4 === void 0 ? void 0 : (_sessionFormData$bill5 = _sessionFormData$bill4[0]) === null || _sessionFormData$bill5 === void 0 ? void 0 : _sessionFormData$bill5.taxHeadEstimates) || [];
|
|
29360
|
+
const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => {
|
|
29361
|
+
var _bill$status;
|
|
29362
|
+
return {
|
|
29363
|
+
title: bill === null || bill === void 0 ? void 0 : bill.taxHeadCode,
|
|
29364
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2), bill !== null && bill !== void 0 && bill.status ? /*#__PURE__*/React__default.createElement("span", {
|
|
29365
|
+
style: {
|
|
29366
|
+
color: (bill === null || bill === void 0 ? void 0 : (_bill$status = bill.status) === null || _bill$status === void 0 ? void 0 : _bill$status.toUpperCase()) === "PAID" ? "green" : "red"
|
|
29367
|
+
}
|
|
29368
|
+
}, " (" + (bill === null || bill === void 0 ? void 0 : bill.status) + ")") : "")
|
|
29369
|
+
};
|
|
29370
|
+
}) : [{
|
|
29480
29371
|
title: "WS_APPLICATION_FEE_HEADER",
|
|
29481
|
-
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$
|
|
29372
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill6 = sessionFormData.billDetails) === null || _sessionFormData$bill6 === void 0 ? void 0 : (_sessionFormData$bill7 = _sessionFormData$bill6[0]) === null || _sessionFormData$bill7 === void 0 ? void 0 : _sessionFormData$bill7.fee)
|
|
29482
29373
|
}, {
|
|
29483
29374
|
title: "WS_SERVICE_FEE_HEADER",
|
|
29484
|
-
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$
|
|
29375
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill8 = sessionFormData.billDetails) === null || _sessionFormData$bill8 === void 0 ? void 0 : (_sessionFormData$bill9 = _sessionFormData$bill8[0]) === null || _sessionFormData$bill9 === void 0 ? void 0 : _sessionFormData$bill9.charge)
|
|
29485
29376
|
}, {
|
|
29486
29377
|
title: "WS_TAX_HEADER",
|
|
29487
|
-
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$
|
|
29378
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill0 = sessionFormData.billDetails) === null || _sessionFormData$bill0 === void 0 ? void 0 : (_sessionFormData$bill1 = _sessionFormData$bill0[0]) === null || _sessionFormData$bill1 === void 0 ? void 0 : _sessionFormData$bill1.taxAmount)
|
|
29488
29379
|
}];
|
|
29489
29380
|
setValues(values);
|
|
29490
|
-
setBillDetails(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$
|
|
29381
|
+
setBillDetails(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill10 = sessionFormData.billDetails) === null || _sessionFormData$bill10 === void 0 ? void 0 : _sessionFormData$bill10[0]);
|
|
29491
29382
|
} else {
|
|
29492
29383
|
setSessionFormData(data);
|
|
29493
29384
|
setFields(data);
|
|
@@ -29558,10 +29449,17 @@ const WSFeeEstimation = _ref => {
|
|
|
29558
29449
|
}
|
|
29559
29450
|
result.Calculation[0].billSlabData = _.groupBy(result === null || result === void 0 ? void 0 : (_result$Calculation3 = result.Calculation) === null || _result$Calculation3 === void 0 ? void 0 : (_result$Calculation3$ = _result$Calculation3[0]) === null || _result$Calculation3$ === void 0 ? void 0 : _result$Calculation3$.taxHeadEstimates, "category");
|
|
29560
29451
|
const taxHeadEstimates = (result === null || result === void 0 ? void 0 : (_result$Calculation4 = result.Calculation) === null || _result$Calculation4 === void 0 ? void 0 : (_result$Calculation4$ = _result$Calculation4[0]) === null || _result$Calculation4$ === void 0 ? void 0 : _result$Calculation4$.taxHeadEstimates) || [];
|
|
29561
|
-
const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data =>
|
|
29562
|
-
|
|
29563
|
-
|
|
29564
|
-
|
|
29452
|
+
const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => {
|
|
29453
|
+
var _data$status;
|
|
29454
|
+
return {
|
|
29455
|
+
title: data === null || data === void 0 ? void 0 : data.taxHeadCode,
|
|
29456
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.estimateAmount).toFixed(2), data !== null && data !== void 0 && data.status ? /*#__PURE__*/React__default.createElement("span", {
|
|
29457
|
+
style: {
|
|
29458
|
+
color: (data === null || data === void 0 ? void 0 : (_data$status = data.status) === null || _data$status === void 0 ? void 0 : _data$status.toUpperCase()) === "PAID" ? "green" : "red"
|
|
29459
|
+
}
|
|
29460
|
+
}, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : "")
|
|
29461
|
+
};
|
|
29462
|
+
}) : [{
|
|
29565
29463
|
title: "WS_APPLICATION_FEE_HEADER",
|
|
29566
29464
|
value: (_result$Calculation5 = result.Calculation) === null || _result$Calculation5 === void 0 ? void 0 : (_result$Calculation5$ = _result$Calculation5[0]) === null || _result$Calculation5$ === void 0 ? void 0 : _result$Calculation5$.fee
|
|
29567
29465
|
}, {
|
|
@@ -29896,10 +29794,17 @@ const ViewBreakup = _ref => {
|
|
|
29896
29794
|
if (rows === void 0) {
|
|
29897
29795
|
rows = [];
|
|
29898
29796
|
}
|
|
29899
|
-
return rows.map(row =>
|
|
29900
|
-
|
|
29901
|
-
|
|
29902
|
-
|
|
29797
|
+
return rows.map(row => {
|
|
29798
|
+
var _row$status;
|
|
29799
|
+
return {
|
|
29800
|
+
title: t(row === null || row === void 0 ? void 0 : row.taxHeadCode),
|
|
29801
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9" + formatNumber(row === null || row === void 0 ? void 0 : row.amount), row !== null && row !== void 0 && row.status ? /*#__PURE__*/React__default.createElement("span", {
|
|
29802
|
+
style: {
|
|
29803
|
+
color: (row === null || row === void 0 ? void 0 : (_row$status = row.status) === null || _row$status === void 0 ? void 0 : _row$status.toUpperCase()) === "PAID" ? "green" : "red"
|
|
29804
|
+
}
|
|
29805
|
+
}, " (" + (row === null || row === void 0 ? void 0 : row.status) + ")") : "")
|
|
29806
|
+
};
|
|
29807
|
+
});
|
|
29903
29808
|
};
|
|
29904
29809
|
const connectionHolder = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$2 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : (_wsAdditionalDetails$3 = _wsAdditionalDetails$2.appDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : (_wsAdditionalDetails$4 = _wsAdditionalDetails$3.connectionHolders) === null || _wsAdditionalDetails$4 === void 0 ? void 0 : _wsAdditionalDetails$4[0];
|
|
29905
29810
|
const applicantName = [connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.name, connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.middleName, connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.lastName].filter(Boolean).join(" ") || "-";
|
|
@@ -30154,49 +30059,70 @@ const ViewBreakup = _ref => {
|
|
|
30154
30059
|
style: {
|
|
30155
30060
|
margin: "10px 0px"
|
|
30156
30061
|
}
|
|
30157
|
-
}, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab4 = breakUpData.billSlabData) === null || _breakUpData$billSlab4 === void 0 ? void 0 : (_breakUpData$billSlab5 = _breakUpData$billSlab4.FEE) === null || _breakUpData$billSlab5 === void 0 ? void 0 : _breakUpData$billSlab5.map(data =>
|
|
30158
|
-
|
|
30159
|
-
|
|
30160
|
-
|
|
30161
|
-
|
|
30162
|
-
|
|
30163
|
-
|
|
30164
|
-
|
|
30165
|
-
|
|
30166
|
-
|
|
30167
|
-
|
|
30168
|
-
|
|
30169
|
-
|
|
30170
|
-
|
|
30171
|
-
|
|
30172
|
-
|
|
30173
|
-
|
|
30174
|
-
|
|
30175
|
-
|
|
30176
|
-
|
|
30177
|
-
|
|
30178
|
-
|
|
30179
|
-
|
|
30180
|
-
|
|
30181
|
-
|
|
30182
|
-
|
|
30183
|
-
|
|
30184
|
-
|
|
30185
|
-
|
|
30186
|
-
|
|
30187
|
-
|
|
30188
|
-
|
|
30189
|
-
|
|
30190
|
-
|
|
30191
|
-
|
|
30192
|
-
|
|
30193
|
-
|
|
30194
|
-
|
|
30195
|
-
|
|
30196
|
-
|
|
30197
|
-
|
|
30198
|
-
}
|
|
30199
|
-
})
|
|
30062
|
+
}, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab4 = breakUpData.billSlabData) === null || _breakUpData$billSlab4 === void 0 ? void 0 : (_breakUpData$billSlab5 = _breakUpData$billSlab4.FEE) === null || _breakUpData$billSlab5 === void 0 ? void 0 : _breakUpData$billSlab5.map(data => {
|
|
30063
|
+
var _data$status;
|
|
30064
|
+
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
30065
|
+
className: "border-none",
|
|
30066
|
+
rowContainerStyle: {
|
|
30067
|
+
margin: "0px"
|
|
30068
|
+
},
|
|
30069
|
+
labelStyle: {
|
|
30070
|
+
width: "50%"
|
|
30071
|
+
},
|
|
30072
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
30073
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
30074
|
+
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0, data !== null && data !== void 0 && data.status ? /*#__PURE__*/React__default.createElement("span", {
|
|
30075
|
+
style: {
|
|
30076
|
+
color: (data === null || data === void 0 ? void 0 : (_data$status = data.status) === null || _data$status === void 0 ? void 0 : _data$status.toUpperCase()) === "PAID" ? "green" : "red"
|
|
30077
|
+
}
|
|
30078
|
+
}, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : ""),
|
|
30079
|
+
textStyle: {
|
|
30080
|
+
textAlign: "right"
|
|
30081
|
+
}
|
|
30082
|
+
});
|
|
30083
|
+
}), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab6 = breakUpData.billSlabData) === null || _breakUpData$billSlab6 === void 0 ? void 0 : (_breakUpData$billSlab7 = _breakUpData$billSlab6.CHARGES) === null || _breakUpData$billSlab7 === void 0 ? void 0 : _breakUpData$billSlab7.map(data => {
|
|
30084
|
+
var _data$status2;
|
|
30085
|
+
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
30086
|
+
className: "border-none",
|
|
30087
|
+
rowContainerStyle: {
|
|
30088
|
+
margin: "0px"
|
|
30089
|
+
},
|
|
30090
|
+
labelStyle: {
|
|
30091
|
+
width: "50%"
|
|
30092
|
+
},
|
|
30093
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
30094
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
30095
|
+
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0, data !== null && data !== void 0 && data.status ? /*#__PURE__*/React__default.createElement("span", {
|
|
30096
|
+
style: {
|
|
30097
|
+
color: (data === null || data === void 0 ? void 0 : (_data$status2 = data.status) === null || _data$status2 === void 0 ? void 0 : _data$status2.toUpperCase()) === "PAID" ? "green" : "red"
|
|
30098
|
+
}
|
|
30099
|
+
}, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : ""),
|
|
30100
|
+
textStyle: {
|
|
30101
|
+
textAlign: "right"
|
|
30102
|
+
}
|
|
30103
|
+
});
|
|
30104
|
+
}), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab8 = breakUpData.billSlabData) === null || _breakUpData$billSlab8 === void 0 ? void 0 : (_breakUpData$billSlab9 = _breakUpData$billSlab8.TAX) === null || _breakUpData$billSlab9 === void 0 ? void 0 : _breakUpData$billSlab9.map(data => {
|
|
30105
|
+
var _data$status3;
|
|
30106
|
+
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
30107
|
+
className: "border-none",
|
|
30108
|
+
rowContainerStyle: {
|
|
30109
|
+
margin: "0px"
|
|
30110
|
+
},
|
|
30111
|
+
labelStyle: {
|
|
30112
|
+
width: "50%"
|
|
30113
|
+
},
|
|
30114
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
30115
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
30116
|
+
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0, data !== null && data !== void 0 && data.status ? /*#__PURE__*/React__default.createElement("span", {
|
|
30117
|
+
style: {
|
|
30118
|
+
color: (data === null || data === void 0 ? void 0 : (_data$status3 = data.status) === null || _data$status3 === void 0 ? void 0 : _data$status3.toUpperCase()) === "PAID" ? "green" : "red"
|
|
30119
|
+
}
|
|
30120
|
+
}, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : ""),
|
|
30121
|
+
textStyle: {
|
|
30122
|
+
textAlign: "right"
|
|
30123
|
+
}
|
|
30124
|
+
});
|
|
30125
|
+
}), propertyRows.length > 0 && /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
30200
30126
|
style: {
|
|
30201
30127
|
margin: "10px 0px"
|
|
30202
30128
|
}
|
|
@@ -30243,31 +30169,31 @@ const checkForNA$1 = value => {
|
|
|
30243
30169
|
return value ? value : "CS_NA";
|
|
30244
30170
|
};
|
|
30245
30171
|
const WSApplicationDetails = () => {
|
|
30246
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$SewerageConnect5, _data$SewerageConnect6, _data$WaterConnection7, _data$WaterConnection8, _data$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$SewerageConnect1, _PTData$Properties, _PTData$Properties$, _data$WaterConnection10, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$SewerageConnect10, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$WaterConnection14, _data$WaterConnection15, _data$SewerageConnect14, _data$SewerageConnect15, _appDetailsData$appli, _data$WaterConnection34, _data$WaterConnection35, _data$SewerageConnect30, _data$SewerageConnect31, _data$WaterConnection36, _data$WaterConnection37, _data$SewerageConnect32, _data$SewerageConnect33, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection40, _data$WaterConnection41, _data$SewerageConnect36, _data$SewerageConnect37, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect38, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect41, _data$SewerageConnect42, _data$WaterConnection48, _data$WaterConnection49, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect45, _data$SewerageConnect46, _data$WaterConnection52, _data$WaterConnection53, _data$SewerageConnect47, _data$SewerageConnect48, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect49, _data$SewerageConnect50, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$SewerageConnect57, _data$SewerageConnect58, _data$WaterConnection64, _data$WaterConnection65, _data$WaterConnection66, _data$WaterConnection67, _data$SewerageConnect59, _data$SewerageConnect60, _data$SewerageConnect61, _data$SewerageConnect62, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$WaterConnection82, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$SewerageConnect77, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$WaterConnection86, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$SewerageConnect81, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$WaterConnection90, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$SewerageConnect85, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$WaterConnection94, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$SewerageConnect89, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$WaterConnection98, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$SewerageConnect93, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$WaterConnection102, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$SewerageConnect97, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$WaterConnection106, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$SewerageConnect101, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$WaterConnection110, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$SewerageConnect105, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$WaterConnection114, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$SewerageConnect109, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$WaterConnection118, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$SewerageConnect113, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$WaterConnection122, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$SewerageConnect117, _data$WaterConnection123, _data$WaterConnection124, _data$SewerageConnect118, _data$SewerageConnect119, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection125, _data$WaterConnection126, _data$SewerageConnect120, _data$SewerageConnect121, _data$WaterConnection127, _data$WaterConnection128, _data$SewerageConnect122, _data$SewerageConnect123, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection129, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$SewerageConnect124, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$WaterConnection137, _data$WaterConnection138, _data$
|
|
30172
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$SewerageConnect5, _data$SewerageConnect6, _data$WaterConnection7, _data$WaterConnection8, _data$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$SewerageConnect1, _PTData$Properties, _PTData$Properties$, _data$WaterConnection10, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$SewerageConnect10, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$WaterConnection14, _data$WaterConnection15, _data$SewerageConnect14, _data$SewerageConnect15, _appDetailsData$appli, _data$WaterConnection34, _data$WaterConnection35, _data$SewerageConnect30, _data$SewerageConnect31, _data$WaterConnection36, _data$WaterConnection37, _data$SewerageConnect32, _data$SewerageConnect33, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection40, _data$WaterConnection41, _data$SewerageConnect36, _data$SewerageConnect37, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect38, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect41, _data$SewerageConnect42, _data$WaterConnection48, _data$WaterConnection49, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect45, _data$SewerageConnect46, _data$WaterConnection52, _data$WaterConnection53, _data$SewerageConnect47, _data$SewerageConnect48, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect49, _data$SewerageConnect50, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$SewerageConnect57, _data$SewerageConnect58, _data$WaterConnection64, _data$WaterConnection65, _data$WaterConnection66, _data$WaterConnection67, _data$SewerageConnect59, _data$SewerageConnect60, _data$SewerageConnect61, _data$SewerageConnect62, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$WaterConnection82, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$SewerageConnect77, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$WaterConnection86, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$SewerageConnect81, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$WaterConnection90, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$SewerageConnect85, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$WaterConnection94, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$SewerageConnect89, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$WaterConnection98, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$SewerageConnect93, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$WaterConnection102, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$SewerageConnect97, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$WaterConnection106, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$SewerageConnect101, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$WaterConnection110, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$SewerageConnect105, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$WaterConnection114, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$SewerageConnect109, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$WaterConnection118, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$SewerageConnect113, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$WaterConnection122, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$SewerageConnect117, _data$WaterConnection123, _data$WaterConnection124, _data$SewerageConnect118, _data$SewerageConnect119, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection125, _data$WaterConnection126, _data$SewerageConnect120, _data$SewerageConnect121, _data$WaterConnection127, _data$WaterConnection128, _data$SewerageConnect122, _data$SewerageConnect123, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection129, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$SewerageConnect124, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$WaterConnection137, _data$WaterConnection138, _data$WaterConnection139, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$SewerageConnect132, _data$SewerageConnect133, _data$SewerageConnect134, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _data$WaterConnection143, _data$WaterConnection144, _data$SewerageConnect138, _data$SewerageConnect139, _data$WaterConnection145, _data$WaterConnection146, _data$SewerageConnect140, _data$SewerageConnect141, _data$WaterConnection147, _data$WaterConnection148, _data$SewerageConnect142, _data$SewerageConnect143, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$WaterConnection155, _data$SewerageConnect147, _data$SewerageConnect148, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection156, _data$WaterConnection157, _data$SewerageConnect151, _data$SewerageConnect152, _data$WaterConnection158, _data$WaterConnection159, _data$SewerageConnect153, _data$SewerageConnect154, _data$WaterConnection160, _data$WaterConnection161, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect155, _data$SewerageConnect156, _data$SewerageConnect157, _data$SewerageConnect158, _data$WaterConnection164, _data$WaterConnection165, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174;
|
|
30247
30173
|
const getDisconnectionNoticeSearch = function () {
|
|
30248
30174
|
try {
|
|
30249
|
-
var _data$
|
|
30175
|
+
var _data$WaterConnection176, _data$WaterConnection177, _data$SewerageConnect171, _data$SewerageConnect172;
|
|
30250
30176
|
let key = "ws-waterdisconnectionnotice";
|
|
30251
30177
|
let details = {};
|
|
30252
30178
|
if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
|
|
30253
|
-
var _data$
|
|
30179
|
+
var _data$WaterConnection175, _PTData$Properties9;
|
|
30254
30180
|
details = {
|
|
30255
|
-
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$
|
|
30181
|
+
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$WaterConnection175 = data.WaterConnection) === null || _data$WaterConnection175 === void 0 ? void 0 : _data$WaterConnection175[0], {
|
|
30256
30182
|
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : _PTData$Properties9[0]
|
|
30257
30183
|
})]
|
|
30258
30184
|
};
|
|
30259
30185
|
} else {
|
|
30260
|
-
var _data$
|
|
30186
|
+
var _data$SewerageConnect170, _PTData$Properties0;
|
|
30261
30187
|
key = "ws-seweragedisconnectionnotice";
|
|
30262
30188
|
details = {
|
|
30263
|
-
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$
|
|
30189
|
+
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$SewerageConnect170 = data.SewerageConnections) === null || _data$SewerageConnect170 === void 0 ? void 0 : _data$SewerageConnect170[0], {
|
|
30264
30190
|
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : _PTData$Properties0[0]
|
|
30265
30191
|
})]
|
|
30266
30192
|
};
|
|
30267
30193
|
}
|
|
30268
|
-
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$
|
|
30269
|
-
var _data$
|
|
30270
|
-
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$
|
|
30194
|
+
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$WaterConnection176 = data.WaterConnection) === null || _data$WaterConnection176 === void 0 ? void 0 : (_data$WaterConnection177 = _data$WaterConnection176[0]) === null || _data$WaterConnection177 === void 0 ? void 0 : _data$WaterConnection177.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect171 = data.SewerageConnections) === null || _data$SewerageConnect171 === void 0 ? void 0 : (_data$SewerageConnect172 = _data$SewerageConnect171[0]) === null || _data$SewerageConnect172 === void 0 ? void 0 : _data$SewerageConnect172.tenantId), details, key)).then(function (response) {
|
|
30195
|
+
var _data$WaterConnection178, _data$WaterConnection179, _data$SewerageConnect173, _data$SewerageConnect174;
|
|
30196
|
+
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$WaterConnection178 = data.WaterConnection) === null || _data$WaterConnection178 === void 0 ? void 0 : (_data$WaterConnection179 = _data$WaterConnection178[0]) === null || _data$WaterConnection179 === void 0 ? void 0 : _data$WaterConnection179.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect173 = data.SewerageConnections) === null || _data$SewerageConnect173 === void 0 ? void 0 : (_data$SewerageConnect174 = _data$SewerageConnect173[0]) === null || _data$SewerageConnect174 === void 0 ? void 0 : _data$SewerageConnect174.tenantId), {
|
|
30271
30197
|
fileStoreIds: response.filestoreIds[0]
|
|
30272
30198
|
})).then(function (fileStore) {
|
|
30273
30199
|
window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
|
|
@@ -30358,7 +30284,7 @@ const WSApplicationDetails = () => {
|
|
|
30358
30284
|
}
|
|
30359
30285
|
}) || false;
|
|
30360
30286
|
const applicationStatus = (data === null || data === void 0 ? void 0 : (_data$WaterConnection14 = data.WaterConnection) === null || _data$WaterConnection14 === void 0 ? void 0 : (_data$WaterConnection15 = _data$WaterConnection14[0]) === null || _data$WaterConnection15 === void 0 ? void 0 : _data$WaterConnection15.applicationStatus) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect14 = data.SewerageConnections) === null || _data$SewerageConnect14 === void 0 ? void 0 : (_data$SewerageConnect15 = _data$SewerageConnect14[0]) === null || _data$SewerageConnect15 === void 0 ? void 0 : _data$SewerageConnect15.applicationStatus);
|
|
30361
|
-
const isPaid = applicationStatus && applicationStatus !== "INITIATED" && applicationStatus !== "PENDING_FOR_PAYMENT" ? true : false;
|
|
30287
|
+
const isPaid = applicationStatus && applicationStatus !== "INITIATED" && applicationStatus !== "PENDING_FOR_PAYMENT" && applicationStatus !== "PENDING_FOR_FINAL_PAYMENT" && applicationStatus !== "PENDING_FOR_ADDITIONAL_PAYMENT" ? true : false;
|
|
30362
30288
|
const _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, applicationNobyData, applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? "SEWERAGE" : "WATER", user),
|
|
30363
30289
|
isAppDetailsLoading = _Digit$Hooks$ws$useWS.isLoading,
|
|
30364
30290
|
appDetailsData = _Digit$Hooks$ws$useWS.data;
|
|
@@ -31009,36 +30935,36 @@ const WSApplicationDetails = () => {
|
|
|
31009
30935
|
marginBottom: "20px"
|
|
31010
30936
|
}
|
|
31011
30937
|
}) : null)));
|
|
31012
|
-
})), (data === null || data === void 0 ? void 0 : (_data$WaterConnection137 = data.WaterConnection) === null || _data$WaterConnection137 === void 0 ? void 0 : (_data$WaterConnection138 = _data$WaterConnection137[0]) === null || _data$WaterConnection138 === void 0 ? void 0 : _data$WaterConnection138.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect132 = data.SewerageConnections) === null || _data$SewerageConnect132 === void 0 ? void 0 : (_data$SewerageConnect133 = _data$SewerageConnect132[0]) === null || _data$SewerageConnect133 === void 0 ? void 0 : _data$SewerageConnect133.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
30938
|
+
})), (data === null || data === void 0 ? void 0 : (_data$WaterConnection137 = data.WaterConnection) === null || _data$WaterConnection137 === void 0 ? void 0 : (_data$WaterConnection138 = _data$WaterConnection137[0]) === null || _data$WaterConnection138 === void 0 ? void 0 : _data$WaterConnection138.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection139 = data.WaterConnection) === null || _data$WaterConnection139 === void 0 ? void 0 : (_data$WaterConnection140 = _data$WaterConnection139[0]) === null || _data$WaterConnection140 === void 0 ? void 0 : _data$WaterConnection140.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection141 = data.WaterConnection) === null || _data$WaterConnection141 === void 0 ? void 0 : (_data$WaterConnection142 = _data$WaterConnection141[0]) === null || _data$WaterConnection142 === void 0 ? void 0 : _data$WaterConnection142.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect132 = data.SewerageConnections) === null || _data$SewerageConnect132 === void 0 ? void 0 : (_data$SewerageConnect133 = _data$SewerageConnect132[0]) === null || _data$SewerageConnect133 === void 0 ? void 0 : _data$SewerageConnect133.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect134 = data.SewerageConnections) === null || _data$SewerageConnect134 === void 0 ? void 0 : (_data$SewerageConnect135 = _data$SewerageConnect134[0]) === null || _data$SewerageConnect135 === void 0 ? void 0 : _data$SewerageConnect135.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect136 = data.SewerageConnections) === null || _data$SewerageConnect136 === void 0 ? void 0 : (_data$SewerageConnect137 = _data$SewerageConnect136[0]) === null || _data$SewerageConnect137 === void 0 ? void 0 : _data$SewerageConnect137.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
31013
30939
|
to: {
|
|
31014
|
-
pathname: "/digit-ui/citizen/payment/my-bills/" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService) + "/" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$
|
|
30940
|
+
pathname: "/digit-ui/citizen/payment/my-bills/" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService) + "/" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$WaterConnection143 = data.WaterConnection) === null || _data$WaterConnection143 === void 0 ? void 0 : (_data$WaterConnection144 = _data$WaterConnection143[0]) === null || _data$WaterConnection144 === void 0 ? void 0 : _data$WaterConnection144.connectionNo, "/", "+") || stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$SewerageConnect138 = data.SewerageConnections) === null || _data$SewerageConnect138 === void 0 ? void 0 : (_data$SewerageConnect139 = _data$SewerageConnect138[0]) === null || _data$SewerageConnect139 === void 0 ? void 0 : _data$SewerageConnect139.connectionNo, "/", "+") : stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$WaterConnection145 = data.WaterConnection) === null || _data$WaterConnection145 === void 0 ? void 0 : (_data$WaterConnection146 = _data$WaterConnection145[0]) === null || _data$WaterConnection146 === void 0 ? void 0 : _data$WaterConnection146.applicationNo, "/", "+") || stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$SewerageConnect140 = data.SewerageConnections) === null || _data$SewerageConnect140 === void 0 ? void 0 : (_data$SewerageConnect141 = _data$SewerageConnect140[0]) === null || _data$SewerageConnect141 === void 0 ? void 0 : _data$SewerageConnect141.applicationNo, "/", "+")) + "?workflow=WNS&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection147 = data.WaterConnection) === null || _data$WaterConnection147 === void 0 ? void 0 : (_data$WaterConnection148 = _data$WaterConnection147[0]) === null || _data$WaterConnection148 === void 0 ? void 0 : _data$WaterConnection148.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect142 = data.SewerageConnections) === null || _data$SewerageConnect142 === void 0 ? void 0 : (_data$SewerageConnect143 = _data$SewerageConnect142[0]) === null || _data$SewerageConnect143 === void 0 ? void 0 : _data$SewerageConnect143.tenantId)) + "&ConsumerName=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection149 = data.WaterConnection) === null || _data$WaterConnection149 === void 0 ? void 0 : (_data$WaterConnection150 = _data$WaterConnection149[0]) === null || _data$WaterConnection150 === void 0 ? void 0 : (_data$WaterConnection151 = _data$WaterConnection150.connectionHolders) === null || _data$WaterConnection151 === void 0 ? void 0 : _data$WaterConnection151.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect144 = data.SewerageConnections) === null || _data$SewerageConnect144 === void 0 ? void 0 : (_data$SewerageConnect145 = _data$SewerageConnect144[0]) === null || _data$SewerageConnect145 === void 0 ? void 0 : (_data$SewerageConnect146 = _data$SewerageConnect145.connectionHolders) === null || _data$SewerageConnect146 === void 0 ? void 0 : _data$SewerageConnect146.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties8 = PTData.Properties) === null || _PTData$Properties8 === void 0 ? void 0 : (_PTData$Properties8$ = _PTData$Properties8[0]) === null || _PTData$Properties8$ === void 0 ? void 0 : (_PTData$Properties8$$ = _PTData$Properties8$.owners) === null || _PTData$Properties8$$ === void 0 ? void 0 : _PTData$Properties8$$.map(owner => owner.name).join(","))) + "&isDisoconnectFlow=" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false),
|
|
31015
30941
|
state: {}
|
|
31016
30942
|
}
|
|
31017
30943
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
31018
30944
|
label: t("MAKE_PAYMENT")
|
|
31019
|
-
})) : null, !(data !== null && data !== void 0 && (_data$
|
|
30945
|
+
})) : null, !(data !== null && data !== void 0 && (_data$WaterConnection152 = data.WaterConnection) !== null && _data$WaterConnection152 !== void 0 && (_data$WaterConnection153 = _data$WaterConnection152[0]) !== null && _data$WaterConnection153 !== void 0 && _data$WaterConnection153.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection154 = data.WaterConnection) !== null && _data$WaterConnection154 !== void 0 && (_data$WaterConnection155 = _data$WaterConnection154[0]) !== null && _data$WaterConnection155 !== void 0 && _data$WaterConnection155.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect147 = data.SewerageConnections) !== null && _data$SewerageConnect147 !== void 0 && (_data$SewerageConnect148 = _data$SewerageConnect147[0]) !== null && _data$SewerageConnect148 !== void 0 && _data$SewerageConnect148.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect149 = data.SewerageConnections) !== null && _data$SewerageConnect149 !== void 0 && (_data$SewerageConnect150 = _data$SewerageConnect149[0]) !== null && _data$SewerageConnect150 !== void 0 && _data$SewerageConnect150.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
31020
30946
|
to: {
|
|
31021
|
-
pathname: "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
30947
|
+
pathname: "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection156 = data.WaterConnection) === null || _data$WaterConnection156 === void 0 ? void 0 : (_data$WaterConnection157 = _data$WaterConnection156[0]) === null || _data$WaterConnection157 === void 0 ? void 0 : _data$WaterConnection157.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect151 = data.SewerageConnections) === null || _data$SewerageConnect151 === void 0 ? void 0 : (_data$SewerageConnect152 = _data$SewerageConnect151[0]) === null || _data$SewerageConnect152 === void 0 ? void 0 : _data$SewerageConnect152.tenantId)),
|
|
31022
30948
|
state: {
|
|
31023
|
-
id: "" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
30949
|
+
id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection158 = data.WaterConnection) === null || _data$WaterConnection158 === void 0 ? void 0 : (_data$WaterConnection159 = _data$WaterConnection158[0]) === null || _data$WaterConnection159 === void 0 ? void 0 : _data$WaterConnection159.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect153 = data.SewerageConnections) === null || _data$SewerageConnect153 === void 0 ? void 0 : (_data$SewerageConnect154 = _data$SewerageConnect153[0]) === null || _data$SewerageConnect154 === void 0 ? void 0 : _data$SewerageConnect154.applicationNo))
|
|
31024
30950
|
}
|
|
31025
30951
|
}
|
|
31026
30952
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
31027
30953
|
label: t("COMMON_EDIT")
|
|
31028
|
-
})) : null, data !== null && data !== void 0 && (_data$
|
|
30954
|
+
})) : null, data !== null && data !== void 0 && (_data$WaterConnection160 = data.WaterConnection) !== null && _data$WaterConnection160 !== void 0 && (_data$WaterConnection161 = _data$WaterConnection160[0]) !== null && _data$WaterConnection161 !== void 0 && _data$WaterConnection161.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection162 = data.WaterConnection) !== null && _data$WaterConnection162 !== void 0 && (_data$WaterConnection163 = _data$WaterConnection162[0]) !== null && _data$WaterConnection163 !== void 0 && _data$WaterConnection163.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || data !== null && data !== void 0 && (_data$SewerageConnect155 = data.SewerageConnections) !== null && _data$SewerageConnect155 !== void 0 && (_data$SewerageConnect156 = _data$SewerageConnect155[0]) !== null && _data$SewerageConnect156 !== void 0 && _data$SewerageConnect156.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect157 = data.SewerageConnections) !== null && _data$SewerageConnect157 !== void 0 && (_data$SewerageConnect158 = _data$SewerageConnect157[0]) !== null && _data$SewerageConnect158 !== void 0 && _data$SewerageConnect158.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
31029
30955
|
to: {
|
|
31030
30956
|
pathname: "/digit-ui/citizen/ws/resubmit-disconnect-application",
|
|
31031
30957
|
state: {
|
|
31032
|
-
id: "" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
30958
|
+
id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection164 = data.WaterConnection) === null || _data$WaterConnection164 === void 0 ? void 0 : (_data$WaterConnection165 = _data$WaterConnection164[0]) === null || _data$WaterConnection165 === void 0 ? void 0 : _data$WaterConnection165.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect159 = data.SewerageConnections) === null || _data$SewerageConnect159 === void 0 ? void 0 : (_data$SewerageConnect160 = _data$SewerageConnect159[0]) === null || _data$SewerageConnect160 === void 0 ? void 0 : _data$SewerageConnect160.applicationNo))
|
|
31033
30959
|
}
|
|
31034
30960
|
}
|
|
31035
30961
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
31036
30962
|
label: t("RESUBMIT_APPLICATION"),
|
|
31037
30963
|
onSubmit: Digit.SessionStorage.set("WS_DISCONNECTION", applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? {
|
|
31038
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
30964
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect161 = data.SewerageConnections) === null || _data$SewerageConnect161 === void 0 ? void 0 : _data$SewerageConnect161[0],
|
|
31039
30965
|
serviceType: "SEWERAGE",
|
|
31040
30966
|
WSDisconnectionForm: {
|
|
31041
|
-
type: data !== null && data !== void 0 && (_data$
|
|
30967
|
+
type: data !== null && data !== void 0 && (_data$SewerageConnect162 = data.SewerageConnections) !== null && _data$SewerageConnect162 !== void 0 && (_data$SewerageConnect163 = _data$SewerageConnect162[0]) !== null && _data$SewerageConnect163 !== void 0 && _data$SewerageConnect163.isDisconnectionTemporary ? {
|
|
31042
30968
|
code: "type",
|
|
31043
30969
|
value: {
|
|
31044
30970
|
name: "Temporary",
|
|
@@ -31055,18 +30981,18 @@ const WSApplicationDetails = () => {
|
|
|
31055
30981
|
code: "Permanent"
|
|
31056
30982
|
}
|
|
31057
30983
|
},
|
|
31058
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
30984
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$SewerageConnect164 = data.SewerageConnections) === null || _data$SewerageConnect164 === void 0 ? void 0 : (_data$SewerageConnect165 = _data$SewerageConnect164[0]) === null || _data$SewerageConnect165 === void 0 ? void 0 : _data$SewerageConnect165.dateEffectiveFrom, true),
|
|
31059
30985
|
reason: {
|
|
31060
30986
|
code: "reason",
|
|
31061
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
30987
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect166 = data.SewerageConnections) === null || _data$SewerageConnect166 === void 0 ? void 0 : (_data$SewerageConnect167 = _data$SewerageConnect166[0]) === null || _data$SewerageConnect167 === void 0 ? void 0 : _data$SewerageConnect167.disconnectionReason
|
|
31062
30988
|
},
|
|
31063
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
30989
|
+
documents: data === null || data === void 0 ? void 0 : (_data$SewerageConnect168 = data.SewerageConnections) === null || _data$SewerageConnect168 === void 0 ? void 0 : (_data$SewerageConnect169 = _data$SewerageConnect168[0]) === null || _data$SewerageConnect169 === void 0 ? void 0 : _data$SewerageConnect169.documents
|
|
31064
30990
|
}
|
|
31065
30991
|
} : {
|
|
31066
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
30992
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection166 = data.WaterConnection) === null || _data$WaterConnection166 === void 0 ? void 0 : _data$WaterConnection166[0],
|
|
31067
30993
|
serviceType: "WATER",
|
|
31068
30994
|
WSDisconnectionForm: {
|
|
31069
|
-
type: data !== null && data !== void 0 && (_data$
|
|
30995
|
+
type: data !== null && data !== void 0 && (_data$WaterConnection167 = data.WaterConnection) !== null && _data$WaterConnection167 !== void 0 && (_data$WaterConnection168 = _data$WaterConnection167[0]) !== null && _data$WaterConnection168 !== void 0 && _data$WaterConnection168.isDisconnectionTemporary ? {
|
|
31070
30996
|
code: "type",
|
|
31071
30997
|
value: {
|
|
31072
30998
|
name: "Temporary",
|
|
@@ -31083,12 +31009,12 @@ const WSApplicationDetails = () => {
|
|
|
31083
31009
|
code: "Permanent"
|
|
31084
31010
|
}
|
|
31085
31011
|
},
|
|
31086
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
31012
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$WaterConnection169 = data.WaterConnection) === null || _data$WaterConnection169 === void 0 ? void 0 : (_data$WaterConnection170 = _data$WaterConnection169[0]) === null || _data$WaterConnection170 === void 0 ? void 0 : _data$WaterConnection170.dateEffectiveFrom, true),
|
|
31087
31013
|
reason: {
|
|
31088
31014
|
code: "reason",
|
|
31089
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
31015
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection171 = data.WaterConnection) === null || _data$WaterConnection171 === void 0 ? void 0 : (_data$WaterConnection172 = _data$WaterConnection171[0]) === null || _data$WaterConnection172 === void 0 ? void 0 : _data$WaterConnection172.disconnectionReason
|
|
31090
31016
|
},
|
|
31091
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
31017
|
+
documents: data === null || data === void 0 ? void 0 : (_data$WaterConnection173 = data.WaterConnection) === null || _data$WaterConnection173 === void 0 ? void 0 : (_data$WaterConnection174 = _data$WaterConnection173[0]) === null || _data$WaterConnection174 === void 0 ? void 0 : _data$WaterConnection174.documents
|
|
31092
31018
|
}
|
|
31093
31019
|
})
|
|
31094
31020
|
})) : null)))));
|
|
@@ -44540,7 +44466,7 @@ const DueVerification = _ref => {
|
|
|
44540
44466
|
});
|
|
44541
44467
|
}, [applicationData]);
|
|
44542
44468
|
const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION";
|
|
44543
|
-
const isActivation = ["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);
|
|
44469
|
+
const isActivation = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
44544
44470
|
const columns = React.useMemo(() => {
|
|
44545
44471
|
const baseColumns = [{
|
|
44546
44472
|
Header: t("K No."),
|
|
@@ -44745,7 +44671,7 @@ const InspectionInformation = _ref => {
|
|
|
44745
44671
|
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
44746
44672
|
applicationData.inspectionInformation.inspectorName = val;
|
|
44747
44673
|
};
|
|
44748
|
-
const readOnly = ["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);
|
|
44674
|
+
const readOnly = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
44749
44675
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
44750
44676
|
style: {
|
|
44751
44677
|
marginBottom: "20px"
|
|
@@ -45327,9 +45253,9 @@ function ApplicationDetailsContent(_ref) {
|
|
|
45327
45253
|
}), (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
45254
|
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents,
|
|
45329
45255
|
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, {
|
|
45256
|
+
}), (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", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React__default.createElement(DueVerification, {
|
|
45331
45257
|
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, {
|
|
45258
|
+
}), " ", (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", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React__default.createElement(InspectionInformation, {
|
|
45333
45259
|
applicationData: applicationData
|
|
45334
45260
|
}), (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
45261
|
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
@@ -45972,7 +45898,7 @@ const ApplicationDetails = props => {
|
|
|
45972
45898
|
};
|
|
45973
45899
|
|
|
45974
45900
|
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,
|
|
45901
|
+
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$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$data21, _workflowDetails$data22, _workflowDetails$data23, _oldData$WaterConnect, _oldData$WaterConnect2, _oldData$SewerageConn, _oldData$SewerageConn2, _applicationDetails$a18, _applicationDetails$a19, _reciept_data$Payment2, _applicationDetails$p16, _applicationDetails$p17, _applicationDetails$p18, _applicationDetails$p19, _applicationDetails$p20, _applicationDetails$p21;
|
|
45976
45902
|
const getRecieptSearch = function (tenantId, payments, consumerCodes, receiptKey) {
|
|
45977
45903
|
try {
|
|
45978
45904
|
let response = null;
|
|
@@ -46131,7 +46057,35 @@ const ApplicationDetails$1 = () => {
|
|
|
46131
46057
|
};
|
|
46132
46058
|
let dowloadOptions = [],
|
|
46133
46059
|
appStatus = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a9 = applicationDetails.applicationData) === null || _applicationDetails$a9 === void 0 ? void 0 : _applicationDetails$a9.applicationStatus) || "";
|
|
46134
|
-
workflowDetails
|
|
46060
|
+
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") {
|
|
46061
|
+
var _applicationDetails$p0, _applicationDetails$p1, _applicationDetails$p10, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3;
|
|
46062
|
+
const plotArea = Number((_applicationDetails$p0 = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p1 = applicationDetails.propertyDetails) === null || _applicationDetails$p1 === void 0 ? void 0 : (_applicationDetails$p10 = _applicationDetails$p1.additionalDetails) === null || _applicationDetails$p10 === void 0 ? void 0 : _applicationDetails$p10.plotArea) != null ? _applicationDetails$p0 : 0);
|
|
46063
|
+
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data = workflowDetails.data) !== null && _workflowDetails$data !== void 0 && (_workflowDetails$data2 = _workflowDetails$data.actionState) !== null && _workflowDetails$data2 !== void 0 && _workflowDetails$data2.nextActions) {
|
|
46064
|
+
workflowDetails.data.actionState.nextActions = workflowDetails.data.actionState.nextActions.filter(action => {
|
|
46065
|
+
if (action.action !== "VERIFY_AND_FORWARD") {
|
|
46066
|
+
return true;
|
|
46067
|
+
}
|
|
46068
|
+
if (plotArea > 200) {
|
|
46069
|
+
return action.state === "PENDING_FOR_AE_APPROVAL" || action.applicationStatus === "PENDING_FOR_AE_APPROVAL";
|
|
46070
|
+
}
|
|
46071
|
+
return action.state === "PENDING_FOR_ASO_APPROVAL" || action.applicationStatus === "PENDING_FOR_ASO_APPROVAL";
|
|
46072
|
+
});
|
|
46073
|
+
}
|
|
46074
|
+
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data3 = workflowDetails.data) !== null && _workflowDetails$data3 !== void 0 && _workflowDetails$data3.nextActions) {
|
|
46075
|
+
workflowDetails.data.nextActions = workflowDetails.data.nextActions.filter(action => {
|
|
46076
|
+
var _action$state;
|
|
46077
|
+
if (action.action !== "VERIFY_AND_FORWARD") {
|
|
46078
|
+
return true;
|
|
46079
|
+
}
|
|
46080
|
+
const targetStateCode = (_action$state = action.state) === null || _action$state === void 0 ? void 0 : _action$state.state;
|
|
46081
|
+
if (plotArea > 200) {
|
|
46082
|
+
return targetStateCode === "PENDING_FOR_AE_APPROVAL";
|
|
46083
|
+
}
|
|
46084
|
+
return targetStateCode === "PENDING_FOR_ASO_APPROVAL";
|
|
46085
|
+
});
|
|
46086
|
+
}
|
|
46087
|
+
}
|
|
46088
|
+
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data4 = workflowDetails.data) === null || _workflowDetails$data4 === void 0 ? void 0 : (_workflowDetails$data5 = _workflowDetails$data4.actionState) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.nextActions) === null || _workflowDetails$data6 === void 0 ? void 0 : _workflowDetails$data6.forEach(action => {
|
|
46135
46089
|
if ((action === null || action === void 0 ? void 0 : action.action) === "ACTIVATE_CONNECTION") {
|
|
46136
46090
|
action.redirectionUrll = {
|
|
46137
46091
|
action: "ACTIVATE_CONNECTION",
|
|
@@ -46140,8 +46094,8 @@ const ApplicationDetails$1 = () => {
|
|
|
46140
46094
|
};
|
|
46141
46095
|
}
|
|
46142
46096
|
if ((action === null || action === void 0 ? void 0 : action.action) === "RESUBMIT_APPLICATION") {
|
|
46143
|
-
var _applicationDetails$
|
|
46144
|
-
let pathName = "/digit-ui/employee/ws/edit-application?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
46097
|
+
var _applicationDetails$p11, _servicesMasterData$w, _userConfig$, _userConfig$2;
|
|
46098
|
+
let pathName = "/digit-ui/employee/ws/edit-application?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);
|
|
46145
46099
|
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
46100
|
const editApplicationUserRole = (userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$ = userConfig[0]) === null || _userConfig$ === void 0 ? void 0 : _userConfig$.roles) || [];
|
|
46147
46101
|
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 +46105,8 @@ const ApplicationDetails$1 = () => {
|
|
|
46151
46105
|
if (isFieldInspector) return false;else return true;
|
|
46152
46106
|
});
|
|
46153
46107
|
if (isFieldInspector && appStatus === mdmsApplicationStatus) {
|
|
46154
|
-
var _applicationDetails$
|
|
46155
|
-
pathName = "/digit-ui/employee/ws/edit-application-by-config?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
46108
|
+
var _applicationDetails$p12;
|
|
46109
|
+
pathName = "/digit-ui/employee/ws/edit-application-by-config?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);
|
|
46156
46110
|
}
|
|
46157
46111
|
action.redirectionUrll = {
|
|
46158
46112
|
action: "ACTIVATE_CONNECTION",
|
|
@@ -46164,24 +46118,18 @@ const ApplicationDetails$1 = () => {
|
|
|
46164
46118
|
};
|
|
46165
46119
|
}
|
|
46166
46120
|
if ((action === null || action === void 0 ? void 0 : action.action) === "SUBMIT_APPLICATION") {
|
|
46167
|
-
var _applicationDetails$
|
|
46121
|
+
var _applicationDetails$p13;
|
|
46168
46122
|
action.redirectionUrll = {
|
|
46169
46123
|
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$
|
|
46124
|
+
pathname: "/digit-ui/employee/ws/modify-application-edit?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),
|
|
46171
46125
|
state: applicationDetails
|
|
46172
46126
|
};
|
|
46173
46127
|
}
|
|
46174
46128
|
});
|
|
46175
|
-
|
|
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 => {
|
|
46178
|
-
if (data.action === "EDIT") workflowDetails.data.actionState.nextActions.push(data);
|
|
46179
|
-
});
|
|
46180
|
-
}
|
|
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 => {
|
|
46129
|
+
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.forEach(action => {
|
|
46182
46130
|
if ((action === null || action === void 0 ? void 0 : action.action) === "EDIT") {
|
|
46183
|
-
var _applicationDetails$
|
|
46184
|
-
let pathName = "/digit-ui/employee/ws/edit-application?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
46131
|
+
var _applicationDetails$p14, _servicesMasterData$w2, _userConfig$3, _userConfig$4;
|
|
46132
|
+
let pathName = "/digit-ui/employee/ws/edit-application?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p14 = applicationDetails.propertyDetails) === null || _applicationDetails$p14 === void 0 ? void 0 : _applicationDetails$p14.propertyId);
|
|
46185
46133
|
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
46134
|
const editApplicationUserRole = (userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$3 = userConfig[0]) === null || _userConfig$3 === void 0 ? void 0 : _userConfig$3.roles) || [];
|
|
46187
46135
|
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 +46139,8 @@ const ApplicationDetails$1 = () => {
|
|
|
46191
46139
|
if (isFieldInspector) return false;else return true;
|
|
46192
46140
|
});
|
|
46193
46141
|
if (isFieldInspector && appStatus === mdmsApplicationStatus) {
|
|
46194
|
-
var _applicationDetails$
|
|
46195
|
-
pathName = "/digit-ui/employee/ws/edit-application-by-config?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
46142
|
+
var _applicationDetails$p15;
|
|
46143
|
+
pathName = "/digit-ui/employee/ws/edit-application-by-config?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p15 = applicationDetails.propertyDetails) === null || _applicationDetails$p15 === void 0 ? void 0 : _applicationDetails$p15.propertyId);
|
|
46196
46144
|
}
|
|
46197
46145
|
action.redirectionUrll = {
|
|
46198
46146
|
action: "ACTIVATE_CONNECTION",
|
|
@@ -46204,27 +46152,27 @@ const ApplicationDetails$1 = () => {
|
|
|
46204
46152
|
};
|
|
46205
46153
|
}
|
|
46206
46154
|
});
|
|
46207
|
-
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
46155
|
+
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data0 = workflowDetails.data) === null || _workflowDetails$data0 === void 0 ? void 0 : (_workflowDetails$data1 = _workflowDetails$data0.nextActions) === null || _workflowDetails$data1 === void 0 ? void 0 : _workflowDetails$data1.forEach(action => {
|
|
46208
46156
|
if ((action === null || action === void 0 ? void 0 : action.action) === "VERIFY_AND_FORWARD" && appStatus === "PENDING_FOR_FIELD_INSPECTION" && !checkWSAdditionalDetails()) {
|
|
46209
46157
|
action.isToast = true;
|
|
46210
46158
|
action.toastMessage = "MISSING_ADDITIONAL_DETAILS";
|
|
46211
46159
|
}
|
|
46212
46160
|
});
|
|
46213
|
-
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
46161
|
+
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data10 = workflowDetails.data) === null || _workflowDetails$data10 === void 0 ? void 0 : (_workflowDetails$data11 = _workflowDetails$data10.actionState) === null || _workflowDetails$data11 === void 0 ? void 0 : (_workflowDetails$data12 = _workflowDetails$data11.nextActions) === null || _workflowDetails$data12 === void 0 ? void 0 : _workflowDetails$data12.forEach(action => {
|
|
46214
46162
|
if ((action === null || action === void 0 ? void 0 : action.action) === "VERIFY_AND_FORWARD" && appStatus === "PENDING_FOR_FIELD_INSPECTION" && !checkWSAdditionalDetails()) {
|
|
46215
46163
|
action.isToast = true;
|
|
46216
46164
|
action.toastMessage = "MISSING_ADDITIONAL_DETAILS";
|
|
46217
46165
|
}
|
|
46218
46166
|
});
|
|
46219
|
-
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
46167
|
+
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data13 = workflowDetails.data) === null || _workflowDetails$data13 === void 0 ? void 0 : (_workflowDetails$data14 = _workflowDetails$data13.nextActions) === null || _workflowDetails$data14 === void 0 ? void 0 : _workflowDetails$data14.forEach(action => {
|
|
46220
46168
|
if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
|
|
46221
|
-
var _workflowDetails$
|
|
46222
|
-
if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
46169
|
+
var _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data19, _workflowDetails$data20;
|
|
46170
|
+
if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data15 = workflowDetails.data) === null || _workflowDetails$data15 === void 0 ? void 0 : (_workflowDetails$data16 = _workflowDetails$data15.processInstances) === null || _workflowDetails$data16 === void 0 ? void 0 : (_workflowDetails$data17 = _workflowDetails$data16[0]) === null || _workflowDetails$data17 === void 0 ? void 0 : _workflowDetails$data17.businessService) === "WSReconnection") {
|
|
46223
46171
|
action.redirectionUrll = {
|
|
46224
46172
|
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
46173
|
state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
|
|
46226
46174
|
};
|
|
46227
|
-
} else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
46175
|
+
} else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data18 = workflowDetails.data) === null || _workflowDetails$data18 === void 0 ? void 0 : (_workflowDetails$data19 = _workflowDetails$data18.processInstances) === null || _workflowDetails$data19 === void 0 ? void 0 : (_workflowDetails$data20 = _workflowDetails$data19[0]) === null || _workflowDetails$data20 === void 0 ? void 0 : _workflowDetails$data20.businessService) === "SWReconnection") {
|
|
46228
46176
|
action.redirectionUrll = {
|
|
46229
46177
|
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
46178
|
state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
|
|
@@ -46237,15 +46185,15 @@ const ApplicationDetails$1 = () => {
|
|
|
46237
46185
|
}
|
|
46238
46186
|
}
|
|
46239
46187
|
});
|
|
46240
|
-
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
46188
|
+
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 => {
|
|
46241
46189
|
if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
|
|
46242
|
-
var _workflowDetails$
|
|
46243
|
-
if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
46190
|
+
var _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data28, _workflowDetails$data29;
|
|
46191
|
+
if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data24 = workflowDetails.data) === null || _workflowDetails$data24 === void 0 ? void 0 : (_workflowDetails$data25 = _workflowDetails$data24.processInstances) === null || _workflowDetails$data25 === void 0 ? void 0 : (_workflowDetails$data26 = _workflowDetails$data25[0]) === null || _workflowDetails$data26 === void 0 ? void 0 : _workflowDetails$data26.businessService) === "WSReconnection") {
|
|
46244
46192
|
action.redirectionUrll = {
|
|
46245
46193
|
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
46194
|
state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
|
|
46247
46195
|
};
|
|
46248
|
-
} else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
46196
|
+
} else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data27 = workflowDetails.data) === null || _workflowDetails$data27 === void 0 ? void 0 : (_workflowDetails$data28 = _workflowDetails$data27.processInstances) === null || _workflowDetails$data28 === void 0 ? void 0 : (_workflowDetails$data29 = _workflowDetails$data28[0]) === null || _workflowDetails$data29 === void 0 ? void 0 : _workflowDetails$data29.businessService) === "SWReconnection") {
|
|
46249
46197
|
action.redirectionUrll = {
|
|
46250
46198
|
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
46199
|
state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
|
|
@@ -46415,12 +46363,12 @@ const ApplicationDetails$1 = () => {
|
|
|
46415
46363
|
mutate: mutate,
|
|
46416
46364
|
id: "timeline",
|
|
46417
46365
|
workflowDetails: workflowDetails,
|
|
46418
|
-
businessService: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
46366
|
+
businessService: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p16 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p16 === void 0 ? void 0 : (_applicationDetails$p17 = _applicationDetails$p16[0]) === null || _applicationDetails$p17 === void 0 ? void 0 : (_applicationDetails$p18 = _applicationDetails$p17.businessService) === null || _applicationDetails$p18 === void 0 ? void 0 : _applicationDetails$p18.toUpperCase(),
|
|
46419
46367
|
moduleCode: "WS",
|
|
46420
46368
|
showToast: showToast,
|
|
46421
46369
|
setShowToast: setShowToast,
|
|
46422
46370
|
closeToast: closeToast,
|
|
46423
|
-
timelineStatusPrefix: "WF_" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
46371
|
+
timelineStatusPrefix: "WF_" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p19 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p19 === void 0 ? void 0 : (_applicationDetails$p20 = _applicationDetails$p19[0]) === null || _applicationDetails$p20 === void 0 ? void 0 : (_applicationDetails$p21 = _applicationDetails$p20.businessService) === null || _applicationDetails$p21 === void 0 ? void 0 : _applicationDetails$p21.toUpperCase()) + "_",
|
|
46424
46372
|
oldValue: res,
|
|
46425
46373
|
isInfoLabel: checkforPrivacyenablement(),
|
|
46426
46374
|
clearDataDetails: clearDataDetails,
|
|
@@ -46743,17 +46691,7 @@ const GetConnectionDetails = () => {
|
|
|
46743
46691
|
style: {
|
|
46744
46692
|
display: "flex"
|
|
46745
46693
|
}
|
|
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", {
|
|
46694
|
+
}, dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
46757
46695
|
style: {
|
|
46758
46696
|
maxWidth: "100% !imnportant",
|
|
46759
46697
|
zIndex: "10"
|
|
@@ -46880,7 +46818,6 @@ const ActivateConnection = () => {
|
|
|
46880
46818
|
isAppDetailsPage = _useState5[0],
|
|
46881
46819
|
setIsAppDetailsPage = _useState5[1];
|
|
46882
46820
|
const _React$useState = React__default.useState({
|
|
46883
|
-
head: "",
|
|
46884
46821
|
body: []
|
|
46885
46822
|
}),
|
|
46886
46823
|
config = _React$useState[0],
|
|
@@ -46913,7 +46850,7 @@ const ActivateConnection = () => {
|
|
|
46913
46850
|
} : "",
|
|
46914
46851
|
waterSource: (_state7 = state) !== null && _state7 !== void 0 && (_state7$data = _state7.data) !== null && _state7$data !== void 0 && _state7$data.waterSource ? {
|
|
46915
46852
|
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(
|
|
46853
|
+
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
46854
|
} : "",
|
|
46918
46855
|
sourceSubData: (_state0 = state) !== null && _state0 !== void 0 && (_state0$data = _state0.data) !== null && _state0$data !== void 0 && _state0$data.waterSource ? {
|
|
46919
46856
|
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 +46899,18 @@ const ActivateConnection = () => {
|
|
|
46962
46899
|
}, []);
|
|
46963
46900
|
React.useEffect(() => {
|
|
46964
46901
|
if (!isLoading && newConfig && Array.isArray(newConfig)) {
|
|
46965
|
-
const
|
|
46966
|
-
if (
|
|
46967
|
-
|
|
46902
|
+
const configObj = newConfig.find(conf => conf.hideInCitizen);
|
|
46903
|
+
if (configObj && configObj.body) {
|
|
46904
|
+
let flattenedBody = [];
|
|
46905
|
+
configObj.body.forEach(section => {
|
|
46906
|
+
if (section.body && Array.isArray(section.body)) {
|
|
46907
|
+
flattenedBody = [...flattenedBody, ...section.body];
|
|
46908
|
+
}
|
|
46909
|
+
});
|
|
46910
|
+
setConfig([{
|
|
46911
|
+
head: "WF_EMPLOYEE_NEWSW1_ACTIVATE_CONNECTION",
|
|
46912
|
+
body: flattenedBody
|
|
46913
|
+
}]);
|
|
46968
46914
|
}
|
|
46969
46915
|
}
|
|
46970
46916
|
}, [newConfig]);
|
|
@@ -47097,19 +47043,37 @@ const ActivateConnection = () => {
|
|
|
47097
47043
|
if (isEnableLoader || isLoading || isappdetailsLoading) {
|
|
47098
47044
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
47099
47045
|
}
|
|
47100
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
47101
|
-
|
|
47046
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
47047
|
+
className: "employee-form-section-wrapper"
|
|
47048
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.VerticalTimeline, {
|
|
47049
|
+
config: [{
|
|
47050
|
+
timeLine: [{
|
|
47051
|
+
actions: t("WF_EMPLOYEE_NEWSW1_ACTIVATE_CONNECTION"),
|
|
47052
|
+
currentStep: 1
|
|
47053
|
+
}]
|
|
47054
|
+
}],
|
|
47055
|
+
showFinalStep: false
|
|
47056
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormComposer, {
|
|
47057
|
+
config: config.map(config => {
|
|
47058
|
+
return _extends({}, config, {
|
|
47059
|
+
isCollapsible: true,
|
|
47060
|
+
isDefaultOpen: true,
|
|
47061
|
+
body: config.body
|
|
47062
|
+
});
|
|
47063
|
+
}),
|
|
47102
47064
|
userType: "employee",
|
|
47103
47065
|
defaultValues: defaultValues,
|
|
47104
47066
|
onSubmit: onSubmit,
|
|
47105
47067
|
label: t("WF_EMPLOYEE_NEWSW1_ACTIVATE_CONNECTION"),
|
|
47106
|
-
onFormValueChange: onFormValueChange
|
|
47068
|
+
onFormValueChange: onFormValueChange,
|
|
47069
|
+
noBreakLine: true,
|
|
47070
|
+
noCard: true
|
|
47107
47071
|
}), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
47108
47072
|
error: showToast.key,
|
|
47109
47073
|
label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
|
|
47110
47074
|
warning: showToast === null || showToast === void 0 ? void 0 : showToast.warning,
|
|
47111
47075
|
onClose: closeToast
|
|
47112
|
-
}));
|
|
47076
|
+
})));
|
|
47113
47077
|
};
|
|
47114
47078
|
|
|
47115
47079
|
const ApplicationDetailsBillAmendment = () => {
|
|
@@ -47620,7 +47584,7 @@ const EditApplication$1 = () => {
|
|
|
47620
47584
|
};
|
|
47621
47585
|
|
|
47622
47586
|
const ConsumptionDetails = _ref => {
|
|
47623
|
-
var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _details$4, _details$5;
|
|
47587
|
+
var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsBillingPeriod$Md3, _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _mdmsMeterStatus$Mdms3, _details$4, _details$5;
|
|
47624
47588
|
const _useTranslation = reactI18next.useTranslation(),
|
|
47625
47589
|
t = _useTranslation.t;
|
|
47626
47590
|
const user = Digit.UserService.getUser();
|
|
@@ -47724,7 +47688,7 @@ const ConsumptionDetails = _ref => {
|
|
|
47724
47688
|
return dateString;
|
|
47725
47689
|
}
|
|
47726
47690
|
};
|
|
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");
|
|
47691
|
+
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
47692
|
const popUp = () => {
|
|
47729
47693
|
var _response$meterReadin, _response$meterReadin2;
|
|
47730
47694
|
setOpenModal(true);
|
|
@@ -47830,7 +47794,7 @@ const ConsumptionDetails = _ref => {
|
|
|
47830
47794
|
return Promise.reject(e);
|
|
47831
47795
|
}
|
|
47832
47796
|
};
|
|
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 => ({
|
|
47797
|
+
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
47798
|
code: status,
|
|
47835
47799
|
i18nKey: "WS_SERVICES_CALCULATION_METERSTATUS_" + Digit.Utils.locale.getTransformedLocale(status)
|
|
47836
47800
|
}));
|