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