@djb25/digit-ui-module-ws 1.0.60 → 1.0.61

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.
@@ -15859,7 +15859,7 @@ const WSActivationPageDetails = _ref => {
15859
15859
  filters
15860
15860
  };
15861
15861
  return /*#__PURE__*/React.createElement(React.Fragment, null, activationDetails.map((activationDetail, index) => /*#__PURE__*/React.createElement(ConnectionDetails$3, _extends({
15862
- key: activationDetail.key,
15862
+ key: (activationDetail === null || activationDetail === void 0 ? void 0 : activationDetail.key) || index,
15863
15863
  index: index,
15864
15864
  activationDetail: activationDetail
15865
15865
  }, commonProps))));
@@ -30028,7 +30028,7 @@ const ViewBreakup = _ref => {
30028
30028
  label: "Sewer Infra Charges",
30029
30029
  value: infrastructureChargeDetail.sewerComponentIFC,
30030
30030
  currency: true
30031
- }, {
30031
+ }, ...(infrastructureChargeDetail.rebateAmount > 0 ? [{
30032
30032
  label: "Rebate",
30033
30033
  value: infrastructureChargeDetail.rebatePercentage,
30034
30034
  unit: "%"
@@ -30036,7 +30036,31 @@ const ViewBreakup = _ref => {
30036
30036
  label: "Rebate amount",
30037
30037
  value: infrastructureChargeDetail.rebateAmount,
30038
30038
  currency: true
30039
+ }] : []), ...(infrastructureChargeDetail.institutionalRebateApplied ? [{
30040
+ label: "Institutional rebate",
30041
+ value: infrastructureChargeDetail.institutionalRebatePercentage,
30042
+ unit: "%"
30043
+ }, {
30044
+ label: "Institutional rebate amount",
30045
+ value: infrastructureChargeDetail.institutionalRebateAmount,
30046
+ currency: true
30047
+ }, {
30048
+ label: "Institutional rebate reason",
30049
+ value: t(infrastructureChargeDetail.institutionalRebateReason),
30050
+ isText: true
30051
+ }] : []), ...(infrastructureChargeDetail.dwellingRebateApplied ? [{
30052
+ label: "Dwelling rebate",
30053
+ value: infrastructureChargeDetail.dwellingRebatePercentage,
30054
+ unit: "%"
30055
+ }, {
30056
+ label: "Dwelling rebate amount",
30057
+ value: infrastructureChargeDetail.dwellingRebateAmount,
30058
+ currency: true
30039
30059
  }, {
30060
+ label: "Dwelling rebate reason",
30061
+ value: t(infrastructureChargeDetail.dwellingRebateReason),
30062
+ isText: true
30063
+ }] : []), {
30040
30064
  label: "Net IFC",
30041
30065
  value: infrastructureChargeDetail.netIFC,
30042
30066
  currency: true
@@ -31380,7 +31404,7 @@ const getConnectionDetailsPDF = function (application, property, tenantInfo, t)
31380
31404
  };
31381
31405
 
31382
31406
  const ConnectionDetails$5 = () => {
31383
- var _Digit$SessionStorage, _user$info, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection, _data$WaterConnection2, _Object$keys, _connectionData$Water, _connectionData$Sewer, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$SewerageConnect6, _state, _state$applicationNo, _state2, _state3, _state4, _state4$applicationTy, _state5, _state6, _state7, _state8, _state8$applicationTy, _state9, _state0, _state1, _state10, _state10$applicationT, _state11, _state12, _state13, _state14, _state15, _state15$applicationT, _state16, _state16$waterSource, _state16$waterSource$, _state17, _state18, _state18$waterSource, _state18$waterSource$, _state19, _state20, _state21, _state22, _state22$additionalDe, _state23, _state24, _state25, _state26, _state26$property, _state26$property$own, _PTData$Properties2, _PTData$Properties2$, _PTData$Properties3, _PTData$Properties3$, _PTData$Properties3$$, _PTData$Properties3$$2, _PTData$Properties4, _PTData$Properties4$, _user$info2, _user$info2$userName, _user$info3, _user$info4, _state27, _state28, _state29, _state30, _state30$connectionHo, _state30$connectionHo2, _data$WaterConnection16, _data$WaterConnection17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect0, _data$SewerageConnect1, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection20, _data$WaterConnection21, _data$WaterConnection22, _data$WaterConnection23, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$WaterConnection24, _data$WaterConnection25, _data$WaterConnection26, _data$WaterConnection27, _data$SewerageConnect16, _data$SewerageConnect17, _data$SewerageConnect18, _data$SewerageConnect19, _data$WaterConnection28, _data$WaterConnection29, _data$WaterConnection30, _data$WaterConnection31, _data$SewerageConnect20, _data$SewerageConnect21, _data$SewerageConnect22, _data$SewerageConnect23, _data$WaterConnection32, _data$WaterConnection33, _data$WaterConnection34, _data$WaterConnection35, _data$SewerageConnect24, _data$SewerageConnect25, _data$SewerageConnect26, _data$SewerageConnect27, _data$WaterConnection36, _data$WaterConnection37, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect28, _data$SewerageConnect29, _data$SewerageConnect30, _data$SewerageConnect31, _data$WaterConnection40, _data$WaterConnection41, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect32, _data$SewerageConnect33, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection44, _data$WaterConnection45, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect36, _data$SewerageConnect37, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection48, _data$WaterConnection49, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect40, _data$SewerageConnect41, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection52, _data$WaterConnection53, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect44, _data$SewerageConnect45, _data$SewerageConnect46, _data$SewerageConnect47, _state31, _data$WaterConnection56, _data$WaterConnection57, _data$WaterConnection58, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect48, _data$SewerageConnect49, _data$SewerageConnect50, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection61, _data$WaterConnection62, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect53, _data$SewerageConnect54, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection65, _data$WaterConnection66, _data$WaterConnection67, _data$WaterConnection68, _data$SewerageConnect57, _data$SewerageConnect58, _data$SewerageConnect59, _data$SewerageConnect60, _data$WaterConnection69, _data$WaterConnection70, _data$WaterConnection71, _data$WaterConnection72, _data$SewerageConnect61, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _state32, _state32$connectionHo, _state32$connectionHo2, _data$WaterConnection73, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$SewerageConnect65, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection77, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _state33, _state34, _state35, _state36, _state37, _state38, _paymentDetails$data17, _paymentDetails$data18;
31407
+ var _Digit$SessionStorage, _user$info, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection, _data$WaterConnection2, _Object$keys, _connectionData$Water, _connectionData$Sewer, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$SewerageConnect6, _state, _state$applicationNo, _state2, _state3, _state4, _state4$applicationTy, _state5, _state6, _state7, _state8, _state8$applicationTy, _state9, _state0, _state1, _state10, _state10$applicationT, _state11, _state12, _state13, _state14, _state15, _state15$applicationT, _state16, _state16$waterSource, _state16$waterSource$, _state17, _state18, _state18$waterSource, _state18$waterSource$, _state19, _state20, _state21, _state22, _state22$additionalDe, _state23, _state23$applicationT, _state24, _state24$additionalDe, _state24$additionalDe2, _state25, _state25$additionalDe, _state25$additionalDe2, _state26, _state26$additionalDe, _state27, _state27$additionalDe, _state28, _state28$additionalDe, _state28$additionalDe2, _state29, _state29$additionalDe, _state30, _state31, _state32, _state33, _state33$property, _state33$property$own, _PTData$Properties2, _PTData$Properties2$, _PTData$Properties3, _PTData$Properties3$, _PTData$Properties3$$, _PTData$Properties3$$2, _PTData$Properties4, _PTData$Properties4$, _user$info2, _user$info2$userName, _user$info3, _user$info4, _state34, _state34$additionalDe, _state34$additionalDe2, _state35, _state35$additionalDe, _state35$additionalDe2, _state36, _state36$additionalDe, _state37, _state37$additionalDe, _state38, _state38$additionalDe, _state39, _state39$additionalDe, _state40, _state40$additionalDe, _state41, _state42, _state43, _state44, _state44$connectionHo, _state44$connectionHo2, _data$WaterConnection16, _data$WaterConnection17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect0, _data$SewerageConnect1, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection20, _data$WaterConnection21, _data$WaterConnection22, _data$WaterConnection23, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$WaterConnection24, _data$WaterConnection25, _data$WaterConnection26, _data$WaterConnection27, _data$SewerageConnect16, _data$SewerageConnect17, _data$SewerageConnect18, _data$SewerageConnect19, _data$WaterConnection28, _data$WaterConnection29, _data$WaterConnection30, _data$WaterConnection31, _data$SewerageConnect20, _data$SewerageConnect21, _data$SewerageConnect22, _data$SewerageConnect23, _data$WaterConnection32, _data$WaterConnection33, _data$WaterConnection34, _data$WaterConnection35, _data$SewerageConnect24, _data$SewerageConnect25, _data$SewerageConnect26, _data$SewerageConnect27, _data$WaterConnection36, _data$WaterConnection37, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect28, _data$SewerageConnect29, _data$SewerageConnect30, _data$SewerageConnect31, _data$WaterConnection40, _data$WaterConnection41, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect32, _data$SewerageConnect33, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection44, _data$WaterConnection45, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect36, _data$SewerageConnect37, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection48, _data$WaterConnection49, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect40, _data$SewerageConnect41, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection52, _data$WaterConnection53, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect44, _data$SewerageConnect45, _data$SewerageConnect46, _data$SewerageConnect47, _state45, _state45$additionalDe, _state46, _state46$additionalDe, _state47, _state47$additionalDe, _state48, _state48$additionalDe, _state49, _state49$additionalDe, _state50, _state51, _state54, _state55, _state56, _state57, _state58, _state59, _paymentDetails$data17, _paymentDetails$data18;
31384
31408
  const _useTranslation = useTranslation(),
31385
31409
  t = _useTranslation.t;
31386
31410
  const menuRef = useRef();
@@ -31658,7 +31682,7 @@ const ConnectionDetails$5 = () => {
31658
31682
  marginRight: "auto",
31659
31683
  maxWidth: "960px"
31660
31684
  }
31661
- }, /*#__PURE__*/React.createElement(Header, null, t("WS_COMMON_CONNECTION_DETAIL")), downloadOptions && downloadOptions.length > 0 && /*#__PURE__*/React.createElement("div", {
31685
+ }, downloadOptions && downloadOptions.length > 0 && /*#__PURE__*/React.createElement("div", {
31662
31686
  ref: menuRef
31663
31687
  }, /*#__PURE__*/React.createElement(MultiLink, {
31664
31688
  className: "multilinkWrapper",
@@ -31666,7 +31690,7 @@ const ConnectionDetails$5 = () => {
31666
31690
  displayOptions: showOptions,
31667
31691
  options: downloadOptions,
31668
31692
  optionsStyle: {
31669
- margin: '0px'
31693
+ margin: "0px"
31670
31694
  }
31671
31695
  }))), checkifPrivacyenabled && /*#__PURE__*/React.createElement(WSInfoLabel, {
31672
31696
  t: t
@@ -31778,8 +31802,43 @@ const ConnectionDetails$5 = () => {
31778
31802
  textStyle: {
31779
31803
  whiteSpace: "pre"
31780
31804
  }
31781
- })), ((_state23 = state) === null || _state23 === void 0 ? void 0 : _state23.connectionType) === "Metered" && /*#__PURE__*/React.createElement(Link, {
31782
- to: "/digit-ui/citizen/ws/consumption/details?applicationNo=" + ((_state24 = state) === null || _state24 === void 0 ? void 0 : _state24.connectionNo)
31805
+ })), ((_state23 = state) === null || _state23 === void 0 ? void 0 : (_state23$applicationT = _state23.applicationType) === null || _state23$applicationT === void 0 ? void 0 : _state23$applicationT.includes("WATER")) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, {
31806
+ className: "border-none",
31807
+ label: t("WS_WATER_DEMAND_TYPE"),
31808
+ text: (_state24 = state) !== null && _state24 !== void 0 && (_state24$additionalDe = _state24.additionalDetails) !== null && _state24$additionalDe !== void 0 && (_state24$additionalDe2 = _state24$additionalDe.waterDemandType) !== null && _state24$additionalDe2 !== void 0 && _state24$additionalDe2.i18nKey ? t((_state25 = state) === null || _state25 === void 0 ? void 0 : (_state25$additionalDe = _state25.additionalDetails) === null || _state25$additionalDe === void 0 ? void 0 : (_state25$additionalDe2 = _state25$additionalDe.waterDemandType) === null || _state25$additionalDe2 === void 0 ? void 0 : _state25$additionalDe2.i18nKey) : "NA",
31809
+ textStyle: {
31810
+ whiteSpace: "pre"
31811
+ }
31812
+ }), /*#__PURE__*/React.createElement(Row, {
31813
+ className: "border-none",
31814
+ label: t("WS_CATEGORY_TYPE"),
31815
+ text: ((_state26 = state) === null || _state26 === void 0 ? void 0 : (_state26$additionalDe = _state26.additionalDetails) === null || _state26$additionalDe === void 0 ? void 0 : _state26$additionalDe.categoryType) || "NA",
31816
+ textStyle: {
31817
+ whiteSpace: "pre"
31818
+ }
31819
+ }), /*#__PURE__*/React.createElement(Row, {
31820
+ className: "border-none",
31821
+ label: t("WS_ZRO_NAME"),
31822
+ text: ((_state27 = state) === null || _state27 === void 0 ? void 0 : (_state27$additionalDe = _state27.additionalDetails) === null || _state27$additionalDe === void 0 ? void 0 : _state27$additionalDe.zro) || "NA",
31823
+ textStyle: {
31824
+ whiteSpace: "pre"
31825
+ }
31826
+ }), /*#__PURE__*/React.createElement(Row, {
31827
+ className: "border-none",
31828
+ label: t("WS_CONNECTION_USAGE_TYPE"),
31829
+ text: ((_state28 = state) === null || _state28 === void 0 ? void 0 : (_state28$additionalDe = _state28.additionalDetails) === null || _state28$additionalDe === void 0 ? void 0 : (_state28$additionalDe2 = _state28$additionalDe.WaterConnectionUsageType) === null || _state28$additionalDe2 === void 0 ? void 0 : _state28$additionalDe2.name) || "NA",
31830
+ textStyle: {
31831
+ whiteSpace: "pre"
31832
+ }
31833
+ }), /*#__PURE__*/React.createElement(Row, {
31834
+ className: "border-none",
31835
+ label: t("WS_TEMPORARY_CONNECTION"),
31836
+ text: ((_state29 = state) === null || _state29 === void 0 ? void 0 : (_state29$additionalDe = _state29.additionalDetails) === null || _state29$additionalDe === void 0 ? void 0 : _state29$additionalDe.temporaryConnection) || "NA",
31837
+ textStyle: {
31838
+ whiteSpace: "pre"
31839
+ }
31840
+ })), ((_state30 = state) === null || _state30 === void 0 ? void 0 : _state30.connectionType) === "Metered" && /*#__PURE__*/React.createElement(Link, {
31841
+ to: "/digit-ui/citizen/ws/consumption/details?applicationNo=" + ((_state31 = state) === null || _state31 === void 0 ? void 0 : _state31.connectionNo)
31783
31842
  }, /*#__PURE__*/React.createElement(LinkButton, {
31784
31843
  style: {
31785
31844
  textAlign: "left",
@@ -31794,11 +31853,11 @@ const ConnectionDetails$5 = () => {
31794
31853
  }, t("WS_COMMON_PROPERTY_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
31795
31854
  className: "border-none",
31796
31855
  label: t("WS_PROPERTY_ID_LABEL"),
31797
- text: (_state25 = state) === null || _state25 === void 0 ? void 0 : _state25.propertyId
31856
+ text: (_state32 = state) === null || _state32 === void 0 ? void 0 : _state32.propertyId
31798
31857
  }), /*#__PURE__*/React.createElement(Row, {
31799
31858
  className: "border-none",
31800
31859
  label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
31801
- text: (_state26 = state) === null || _state26 === void 0 ? void 0 : (_state26$property = _state26.property) === null || _state26$property === void 0 ? void 0 : (_state26$property$own = _state26$property.owners) === null || _state26$property$own === void 0 ? void 0 : _state26$property$own.map(owner => owner.name).join(","),
31860
+ text: (_state33 = state) === null || _state33 === void 0 ? void 0 : (_state33$property = _state33.property) === null || _state33$property === void 0 ? void 0 : (_state33$property$own = _state33$property.owners) === null || _state33$property$own === void 0 ? void 0 : _state33$property$own.map(owner => owner.name).join(","),
31802
31861
  textStyle: {
31803
31862
  whiteSpace: "pre"
31804
31863
  }
@@ -31830,8 +31889,36 @@ const ConnectionDetails$5 = () => {
31830
31889
  }
31831
31890
  }
31832
31891
  }
31892
+ }), /*#__PURE__*/React.createElement(Row, {
31893
+ className: "border-none",
31894
+ label: t("WS_PROPERTY_TYPE"),
31895
+ text: ((_state34 = state) === null || _state34 === void 0 ? void 0 : (_state34$additionalDe = _state34.additionalDetails) === null || _state34$additionalDe === void 0 ? void 0 : (_state34$additionalDe2 = _state34$additionalDe.propertyType) === null || _state34$additionalDe2 === void 0 ? void 0 : _state34$additionalDe2.name) || "NA"
31896
+ }), /*#__PURE__*/React.createElement(Row, {
31897
+ className: "border-none",
31898
+ label: t("WS_PROPERTY_CATEGORY"),
31899
+ text: ((_state35 = state) === null || _state35 === void 0 ? void 0 : (_state35$additionalDe = _state35.additionalDetails) === null || _state35$additionalDe === void 0 ? void 0 : (_state35$additionalDe2 = _state35$additionalDe.propertyCategory) === null || _state35$additionalDe2 === void 0 ? void 0 : _state35$additionalDe2.name) || "NA"
31900
+ }), /*#__PURE__*/React.createElement(Row, {
31901
+ className: "border-none",
31902
+ label: t("WS_PLOT_AREA"),
31903
+ text: ((_state36 = state) === null || _state36 === void 0 ? void 0 : (_state36$additionalDe = _state36.additionalDetails) === null || _state36$additionalDe === void 0 ? void 0 : _state36$additionalDe.plotArea) || "NA"
31904
+ }), /*#__PURE__*/React.createElement(Row, {
31905
+ className: "border-none",
31906
+ label: t("WS_BUILT_UP_AREA"),
31907
+ text: ((_state37 = state) === null || _state37 === void 0 ? void 0 : (_state37$additionalDe = _state37.additionalDetails) === null || _state37$additionalDe === void 0 ? void 0 : _state37$additionalDe.builtUpArea) || "NA"
31908
+ }), /*#__PURE__*/React.createElement(Row, {
31909
+ className: "border-none",
31910
+ label: t("WS_NO_OF_FLOORS"),
31911
+ text: ((_state38 = state) === null || _state38 === void 0 ? void 0 : (_state38$additionalDe = _state38.additionalDetails) === null || _state38$additionalDe === void 0 ? void 0 : _state38$additionalDe.noOfFloors) || "NA"
31912
+ }), /*#__PURE__*/React.createElement(Row, {
31913
+ className: "border-none",
31914
+ label: t("WS_NO_OF_DWELLING_UNITS"),
31915
+ text: ((_state39 = state) === null || _state39 === void 0 ? void 0 : (_state39$additionalDe = _state39.additionalDetails) === null || _state39$additionalDe === void 0 ? void 0 : _state39$additionalDe.NumberofDwellingUnits) || "NA"
31916
+ }), /*#__PURE__*/React.createElement(Row, {
31917
+ className: "border-none",
31918
+ label: t("WS_LOCALITY"),
31919
+ text: ((_state40 = state) === null || _state40 === void 0 ? void 0 : (_state40$additionalDe = _state40.additionalDetails) === null || _state40$additionalDe === void 0 ? void 0 : _state40$additionalDe.locality) || "NA"
31833
31920
  }), /*#__PURE__*/React.createElement(Link, {
31834
- to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((_state27 = state) === null || _state27 === void 0 ? void 0 : _state27.propertyId) + "&tenantId=" + ((_state28 = state) === null || _state28 === void 0 ? void 0 : _state28.tenantId)
31921
+ to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((_state41 = state) === null || _state41 === void 0 ? void 0 : _state41.propertyId) + "&tenantId=" + ((_state42 = state) === null || _state42 === void 0 ? void 0 : _state42.tenantId)
31835
31922
  }, /*#__PURE__*/React.createElement(LinkButton, {
31836
31923
  style: {
31837
31924
  textAlign: "left",
@@ -31843,10 +31930,10 @@ const ConnectionDetails$5 = () => {
31843
31930
  styles: {
31844
31931
  fontSize: "28px"
31845
31932
  }
31846
- }, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), (_state29 = state) !== null && _state29 !== void 0 && _state29.connectionHolders ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
31933
+ }, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), (_state43 = state) !== null && _state43 !== void 0 && _state43.connectionHolders ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
31847
31934
  className: "border-none",
31848
31935
  label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
31849
- text: (_state30 = state) === null || _state30 === void 0 ? void 0 : (_state30$connectionHo = _state30.connectionHolders) === null || _state30$connectionHo === void 0 ? void 0 : (_state30$connectionHo2 = _state30$connectionHo[0]) === null || _state30$connectionHo2 === void 0 ? void 0 : _state30$connectionHo2.name,
31936
+ text: (_state44 = state) === null || _state44 === void 0 ? void 0 : (_state44$connectionHo = _state44.connectionHolders) === null || _state44$connectionHo === void 0 ? void 0 : (_state44$connectionHo2 = _state44$connectionHo[0]) === null || _state44$connectionHo2 === void 0 ? void 0 : _state44$connectionHo2.name,
31850
31937
  textStyle: {
31851
31938
  whiteSpace: "pre"
31852
31939
  }
@@ -31942,65 +32029,15 @@ const ConnectionDetails$5 = () => {
31942
32029
  isArray: false
31943
32030
  }
31944
32031
  }
31945
- }), /*#__PURE__*/React.createElement(Row, {
31946
- className: "border-none",
31947
- label: t("WS_OWN_DETAIL_CROSADD"),
31948
- text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection48 = data.WaterConnection) === null || _data$WaterConnection48 === void 0 ? void 0 : (_data$WaterConnection49 = _data$WaterConnection48[0]) === null || _data$WaterConnection49 === void 0 ? void 0 : (_data$WaterConnection50 = _data$WaterConnection49.connectionHolders) === null || _data$WaterConnection50 === void 0 ? void 0 : (_data$WaterConnection51 = _data$WaterConnection50[0]) === null || _data$WaterConnection51 === void 0 ? void 0 : _data$WaterConnection51.correspondenceAddress : data === null || data === void 0 ? void 0 : (_data$SewerageConnect40 = data.SewerageConnections) === null || _data$SewerageConnect40 === void 0 ? void 0 : (_data$SewerageConnect41 = _data$SewerageConnect40[0]) === null || _data$SewerageConnect41 === void 0 ? void 0 : (_data$SewerageConnect42 = _data$SewerageConnect41.connectionHolders) === null || _data$SewerageConnect42 === void 0 ? void 0 : (_data$SewerageConnect43 = _data$SewerageConnect42[0]) === null || _data$SewerageConnect43 === void 0 ? void 0 : _data$SewerageConnect43.correspondenceAddress,
31949
- privacy: {
31950
- uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection52 = data.WaterConnection) === null || _data$WaterConnection52 === void 0 ? void 0 : (_data$WaterConnection53 = _data$WaterConnection52[0]) === null || _data$WaterConnection53 === void 0 ? void 0 : (_data$WaterConnection54 = _data$WaterConnection53.connectionHolders) === null || _data$WaterConnection54 === void 0 ? void 0 : (_data$WaterConnection55 = _data$WaterConnection54[0]) === null || _data$WaterConnection55 === void 0 ? void 0 : _data$WaterConnection55.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect44 = data.SewerageConnections) === null || _data$SewerageConnect44 === void 0 ? void 0 : (_data$SewerageConnect45 = _data$SewerageConnect44[0]) === null || _data$SewerageConnect45 === void 0 ? void 0 : (_data$SewerageConnect46 = _data$SewerageConnect45.connectionHolders) === null || _data$SewerageConnect46 === void 0 ? void 0 : (_data$SewerageConnect47 = _data$SewerageConnect46[0]) === null || _data$SewerageConnect47 === void 0 ? void 0 : _data$SewerageConnect47.uuid,
31951
- fieldName: "correspondenceAddress",
31952
- model: "WnSConnectionOwner",
31953
- hide: !((_state31 = state) !== null && _state31 !== void 0 && _state31.connectionHolders),
31954
- showValue: false,
31955
- loadData: {
31956
- serviceName: serviceType === "WATER" ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
31957
- requestBody: {},
31958
- requestParam: {
31959
- tenantId,
31960
- applicationNumber: applicationNobyData
31961
- },
31962
- jsonPath: serviceType === "WATER" ? "WaterConnection[0].connectionHolders[0].correspondenceAddress" : "SewerageConnections[0].connectionHolders[0].correspondenceAddress",
31963
- isArray: false
31964
- }
31965
- }
31966
- }), /*#__PURE__*/React.createElement(Row, {
31967
- className: "border-none",
31968
- label: t("WS_OWN_DETAIL_SPECIAL_APPLICANT_LABEL"),
31969
- text: (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? !(data !== null && data !== void 0 && (_data$WaterConnection56 = data.WaterConnection) !== null && _data$WaterConnection56 !== void 0 && (_data$WaterConnection57 = _data$WaterConnection56[0]) !== null && _data$WaterConnection57 !== void 0 && (_data$WaterConnection58 = _data$WaterConnection57.connectionHolders) !== null && _data$WaterConnection58 !== void 0 && (_data$WaterConnection59 = _data$WaterConnection58[0]) !== null && _data$WaterConnection59 !== void 0 && (_data$WaterConnection60 = _data$WaterConnection59.ownerType) !== null && _data$WaterConnection60 !== void 0 && _data$WaterConnection60.includes("*")) : !(data !== null && data !== void 0 && (_data$SewerageConnect48 = data.SewerageConnections) !== null && _data$SewerageConnect48 !== void 0 && (_data$SewerageConnect49 = _data$SewerageConnect48[0]) !== null && _data$SewerageConnect49 !== void 0 && (_data$SewerageConnect50 = _data$SewerageConnect49.connectionHolders) !== null && _data$SewerageConnect50 !== void 0 && (_data$SewerageConnect51 = _data$SewerageConnect50[0]) !== null && _data$SewerageConnect51 !== void 0 && (_data$SewerageConnect52 = _data$SewerageConnect51.ownerType) !== null && _data$SewerageConnect52 !== void 0 && _data$SewerageConnect52.includes("*"))) ? t("COMMON_MASTERS_OWNERTYPE_" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection61 = data.WaterConnection) === null || _data$WaterConnection61 === void 0 ? void 0 : (_data$WaterConnection62 = _data$WaterConnection61[0]) === null || _data$WaterConnection62 === void 0 ? void 0 : (_data$WaterConnection63 = _data$WaterConnection62.connectionHolders) === null || _data$WaterConnection63 === void 0 ? void 0 : (_data$WaterConnection64 = _data$WaterConnection63[0]) === null || _data$WaterConnection64 === void 0 ? void 0 : _data$WaterConnection64.ownerType : data === null || data === void 0 ? void 0 : (_data$SewerageConnect53 = data.SewerageConnections) === null || _data$SewerageConnect53 === void 0 ? void 0 : (_data$SewerageConnect54 = _data$SewerageConnect53[0]) === null || _data$SewerageConnect54 === void 0 ? void 0 : (_data$SewerageConnect55 = _data$SewerageConnect54.connectionHolders) === null || _data$SewerageConnect55 === void 0 ? void 0 : (_data$SewerageConnect56 = _data$SewerageConnect55[0]) === null || _data$SewerageConnect56 === void 0 ? void 0 : _data$SewerageConnect56.ownerType)) : applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection65 = data.WaterConnection) === null || _data$WaterConnection65 === void 0 ? void 0 : (_data$WaterConnection66 = _data$WaterConnection65[0]) === null || _data$WaterConnection66 === void 0 ? void 0 : (_data$WaterConnection67 = _data$WaterConnection66.connectionHolders) === null || _data$WaterConnection67 === void 0 ? void 0 : (_data$WaterConnection68 = _data$WaterConnection67[0]) === null || _data$WaterConnection68 === void 0 ? void 0 : _data$WaterConnection68.ownerType : data === null || data === void 0 ? void 0 : (_data$SewerageConnect57 = data.SewerageConnections) === null || _data$SewerageConnect57 === void 0 ? void 0 : (_data$SewerageConnect58 = _data$SewerageConnect57[0]) === null || _data$SewerageConnect58 === void 0 ? void 0 : (_data$SewerageConnect59 = _data$SewerageConnect58.connectionHolders) === null || _data$SewerageConnect59 === void 0 ? void 0 : (_data$SewerageConnect60 = _data$SewerageConnect59[0]) === null || _data$SewerageConnect60 === void 0 ? void 0 : _data$SewerageConnect60.ownerType,
31970
- textStyle: {
31971
- whiteSpace: "pre"
31972
- },
31973
- privacy: {
31974
- uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection69 = data.WaterConnection) === null || _data$WaterConnection69 === void 0 ? void 0 : (_data$WaterConnection70 = _data$WaterConnection69[0]) === null || _data$WaterConnection70 === void 0 ? void 0 : (_data$WaterConnection71 = _data$WaterConnection70.connectionHolders) === null || _data$WaterConnection71 === void 0 ? void 0 : (_data$WaterConnection72 = _data$WaterConnection71[0]) === null || _data$WaterConnection72 === void 0 ? void 0 : _data$WaterConnection72.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect61 = data.SewerageConnections) === null || _data$SewerageConnect61 === void 0 ? void 0 : (_data$SewerageConnect62 = _data$SewerageConnect61[0]) === null || _data$SewerageConnect62 === void 0 ? void 0 : (_data$SewerageConnect63 = _data$SewerageConnect62.connectionHolders) === null || _data$SewerageConnect63 === void 0 ? void 0 : (_data$SewerageConnect64 = _data$SewerageConnect63[0]) === null || _data$SewerageConnect64 === void 0 ? void 0 : _data$SewerageConnect64.uuid,
31975
- fieldName: "ownerType",
31976
- model: "WnSConnection",
31977
- hide: !((_state32 = state) !== null && _state32 !== void 0 && (_state32$connectionHo = _state32.connectionHolders) !== null && _state32$connectionHo !== void 0 && (_state32$connectionHo2 = _state32$connectionHo[0]) !== null && _state32$connectionHo2 !== void 0 && _state32$connectionHo2.ownerType),
31978
- showValue: false,
31979
- loadData: {
31980
- serviceName: serviceType === "WATER" ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
31981
- requestBody: {},
31982
- requestParam: {
31983
- tenantId,
31984
- applicationNumber: applicationNobyData
31985
- },
31986
- jsonPath: serviceType === "WATER" ? "WaterConnection[0].connectionHolders[0].ownerType" : "SewerageConnections[0].connectionHolders[0].ownerType",
31987
- isArray: false,
31988
- d: res => {
31989
- var _res$WaterConnection, _res$WaterConnection2, _res$WaterConnection3, _res$WaterConnection4, _res$WaterConnection5, _res$WaterConnection6, _res$SewerageConnecti, _res$SewerageConnecti2, _res$SewerageConnecti3, _res$SewerageConnecti4, _res$SewerageConnecti5;
31990
- let resultString = res !== null && res !== void 0 && (_res$WaterConnection = res.WaterConnection) !== null && _res$WaterConnection !== void 0 && _res$WaterConnection[0] ? t("PROPERTYTAX_OWNERTYPE_" + (res === null || res === void 0 ? void 0 : (_res$WaterConnection2 = res.WaterConnection) === null || _res$WaterConnection2 === void 0 ? void 0 : (_res$WaterConnection3 = _res$WaterConnection2[0]) === null || _res$WaterConnection3 === void 0 ? void 0 : (_res$WaterConnection4 = _res$WaterConnection3.connectionHolders) === null || _res$WaterConnection4 === void 0 ? void 0 : (_res$WaterConnection5 = _res$WaterConnection4[0]) === null || _res$WaterConnection5 === void 0 ? void 0 : (_res$WaterConnection6 = _res$WaterConnection5.ownerType) === null || _res$WaterConnection6 === void 0 ? void 0 : _res$WaterConnection6.toUpperCase())) : t("PROPERTYTAX_OWNERTYPE_" + (res === null || res === void 0 ? void 0 : (_res$SewerageConnecti = res.SewerageConnections) === null || _res$SewerageConnecti === void 0 ? void 0 : (_res$SewerageConnecti2 = _res$SewerageConnecti[0]) === null || _res$SewerageConnecti2 === void 0 ? void 0 : (_res$SewerageConnecti3 = _res$SewerageConnecti2.connectionHolders) === null || _res$SewerageConnecti3 === void 0 ? void 0 : (_res$SewerageConnecti4 = _res$SewerageConnecti3[0]) === null || _res$SewerageConnecti4 === void 0 ? void 0 : (_res$SewerageConnecti5 = _res$SewerageConnecti4.ownerType) === null || _res$SewerageConnecti5 === void 0 ? void 0 : _res$SewerageConnecti5.toUpperCase()));
31991
- return resultString;
31992
- }
31993
- }
31994
- }
31995
32032
  }), /*#__PURE__*/React.createElement(Row, {
31996
32033
  className: "border-none",
31997
32034
  label: t("WS_OWN_EMAIL_IDNO_LABEL"),
31998
- text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection73 = data.WaterConnection) === null || _data$WaterConnection73 === void 0 ? void 0 : (_data$WaterConnection74 = _data$WaterConnection73[0]) === null || _data$WaterConnection74 === void 0 ? void 0 : (_data$WaterConnection75 = _data$WaterConnection74.connectionHolders) === null || _data$WaterConnection75 === void 0 ? void 0 : (_data$WaterConnection76 = _data$WaterConnection75[0]) === null || _data$WaterConnection76 === void 0 ? void 0 : _data$WaterConnection76.emailId : data === null || data === void 0 ? void 0 : (_data$SewerageConnect65 = data.SewerageConnections) === null || _data$SewerageConnect65 === void 0 ? void 0 : (_data$SewerageConnect66 = _data$SewerageConnect65[0]) === null || _data$SewerageConnect66 === void 0 ? void 0 : (_data$SewerageConnect67 = _data$SewerageConnect66.connectionHolders) === null || _data$SewerageConnect67 === void 0 ? void 0 : (_data$SewerageConnect68 = _data$SewerageConnect67[0]) === null || _data$SewerageConnect68 === void 0 ? void 0 : _data$SewerageConnect68.emailId,
32035
+ text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection48 = data.WaterConnection) === null || _data$WaterConnection48 === void 0 ? void 0 : (_data$WaterConnection49 = _data$WaterConnection48[0]) === null || _data$WaterConnection49 === void 0 ? void 0 : (_data$WaterConnection50 = _data$WaterConnection49.connectionHolders) === null || _data$WaterConnection50 === void 0 ? void 0 : (_data$WaterConnection51 = _data$WaterConnection50[0]) === null || _data$WaterConnection51 === void 0 ? void 0 : _data$WaterConnection51.emailId : data === null || data === void 0 ? void 0 : (_data$SewerageConnect40 = data.SewerageConnections) === null || _data$SewerageConnect40 === void 0 ? void 0 : (_data$SewerageConnect41 = _data$SewerageConnect40[0]) === null || _data$SewerageConnect41 === void 0 ? void 0 : (_data$SewerageConnect42 = _data$SewerageConnect41.connectionHolders) === null || _data$SewerageConnect42 === void 0 ? void 0 : (_data$SewerageConnect43 = _data$SewerageConnect42[0]) === null || _data$SewerageConnect43 === void 0 ? void 0 : _data$SewerageConnect43.emailId,
31999
32036
  textStyle: {
32000
32037
  whiteSpace: "pre"
32001
32038
  },
32002
32039
  privacy: {
32003
- uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection77 = data.WaterConnection) === null || _data$WaterConnection77 === void 0 ? void 0 : (_data$WaterConnection78 = _data$WaterConnection77[0]) === null || _data$WaterConnection78 === void 0 ? void 0 : (_data$WaterConnection79 = _data$WaterConnection78.connectionHolders) === null || _data$WaterConnection79 === void 0 ? void 0 : (_data$WaterConnection80 = _data$WaterConnection79[0]) === null || _data$WaterConnection80 === void 0 ? void 0 : _data$WaterConnection80.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect69 = data.SewerageConnections) === null || _data$SewerageConnect69 === void 0 ? void 0 : (_data$SewerageConnect70 = _data$SewerageConnect69[0]) === null || _data$SewerageConnect70 === void 0 ? void 0 : (_data$SewerageConnect71 = _data$SewerageConnect70.connectionHolders) === null || _data$SewerageConnect71 === void 0 ? void 0 : (_data$SewerageConnect72 = _data$SewerageConnect71[0]) === null || _data$SewerageConnect72 === void 0 ? void 0 : _data$SewerageConnect72.uuid,
32040
+ uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection52 = data.WaterConnection) === null || _data$WaterConnection52 === void 0 ? void 0 : (_data$WaterConnection53 = _data$WaterConnection52[0]) === null || _data$WaterConnection53 === void 0 ? void 0 : (_data$WaterConnection54 = _data$WaterConnection53.connectionHolders) === null || _data$WaterConnection54 === void 0 ? void 0 : (_data$WaterConnection55 = _data$WaterConnection54[0]) === null || _data$WaterConnection55 === void 0 ? void 0 : _data$WaterConnection55.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect44 = data.SewerageConnections) === null || _data$SewerageConnect44 === void 0 ? void 0 : (_data$SewerageConnect45 = _data$SewerageConnect44[0]) === null || _data$SewerageConnect45 === void 0 ? void 0 : (_data$SewerageConnect46 = _data$SewerageConnect45.connectionHolders) === null || _data$SewerageConnect46 === void 0 ? void 0 : (_data$SewerageConnect47 = _data$SewerageConnect46[0]) === null || _data$SewerageConnect47 === void 0 ? void 0 : _data$SewerageConnect47.uuid,
32004
32041
  fieldName: "connectionHoldersEmailId",
32005
32042
  model: "WnSConnectionOwner",
32006
32043
  showValue: false,
@@ -32015,7 +32052,48 @@ const ConnectionDetails$5 = () => {
32015
32052
  isArray: false
32016
32053
  }
32017
32054
  }
32018
- }))) : /*#__PURE__*/React.createElement(CardText, null, t("WS_PROPERTY_OWNER_SAME_AS_CONN_HOLDERS")), (((_state33 = state) === null || _state33 === void 0 ? void 0 : _state33.status) !== "inactive" || ((_state34 = state) === null || _state34 === void 0 ? void 0 : _state34.applicationStatus) !== "Inactive" || ((_state35 = state) === null || _state35 === void 0 ? void 0 : _state35.applicationStatus) !== "INACTIVE") && !isDisconnectionDone ? /*#__PURE__*/React.createElement(ActionBar, {
32055
+ }))) : /*#__PURE__*/React.createElement(CardText, null, t("WS_PROPERTY_OWNER_SAME_AS_CONN_HOLDERS")), /*#__PURE__*/React.createElement(CardHeader, {
32056
+ styles: {
32057
+ fontSize: "28px"
32058
+ }
32059
+ }, t("WS_COMMON_BANK_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
32060
+ className: "border-none",
32061
+ label: t("WS_BANK_NAME"),
32062
+ text: ((_state45 = state) === null || _state45 === void 0 ? void 0 : (_state45$additionalDe = _state45.additionalDetails) === null || _state45$additionalDe === void 0 ? void 0 : _state45$additionalDe.bankName) || "NA"
32063
+ }), /*#__PURE__*/React.createElement(Row, {
32064
+ className: "border-none",
32065
+ label: t("WS_BANK_BRANCH_NAME"),
32066
+ text: ((_state46 = state) === null || _state46 === void 0 ? void 0 : (_state46$additionalDe = _state46.additionalDetails) === null || _state46$additionalDe === void 0 ? void 0 : _state46$additionalDe.bankBranchName) || "NA"
32067
+ }), /*#__PURE__*/React.createElement(Row, {
32068
+ className: "border-none",
32069
+ label: t("WS_BANK_ACCOUNT_NUMBER"),
32070
+ text: ((_state47 = state) === null || _state47 === void 0 ? void 0 : (_state47$additionalDe = _state47.additionalDetails) === null || _state47$additionalDe === void 0 ? void 0 : _state47$additionalDe.accountNumber) || ((_state48 = state) === null || _state48 === void 0 ? void 0 : (_state48$additionalDe = _state48.additionalDetails) === null || _state48$additionalDe === void 0 ? void 0 : _state48$additionalDe.bankAccountNumber) || "NA"
32071
+ }), /*#__PURE__*/React.createElement(Row, {
32072
+ className: "border-none",
32073
+ label: t("WS_BANK_IFSC_CODE"),
32074
+ text: ((_state49 = state) === null || _state49 === void 0 ? void 0 : (_state49$additionalDe = _state49.additionalDetails) === null || _state49$additionalDe === void 0 ? void 0 : _state49$additionalDe.ifscCode) || "NA"
32075
+ })), /*#__PURE__*/React.createElement(CardHeader, {
32076
+ styles: {
32077
+ fontSize: "28px"
32078
+ }
32079
+ }, t("WS_COMMON_BANK_DETAILS")), ((_state50 = state) === null || _state50 === void 0 ? void 0 : _state50.documents) && ((_state51 = state) === null || _state51 === void 0 ? void 0 : _state51.documents.map((doc, index) => {
32080
+ var _doc$documentType, _state52, _state53;
32081
+ return /*#__PURE__*/React.createElement("div", {
32082
+ key: "doc-" + index
32083
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(WSDocument, {
32084
+ value: (_state52 = state) === null || _state52 === void 0 ? void 0 : _state52.documents,
32085
+ Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
32086
+ index: index
32087
+ }), ((_state53 = state) === null || _state53 === void 0 ? void 0 : _state53.documents.length) != index + 1 ? /*#__PURE__*/React.createElement("hr", {
32088
+ style: {
32089
+ color: "#cccccc",
32090
+ backgroundColor: "#cccccc",
32091
+ height: "2px",
32092
+ marginTop: "20px",
32093
+ marginBottom: "20px"
32094
+ }
32095
+ }) : null)));
32096
+ })), (((_state54 = state) === null || _state54 === void 0 ? void 0 : _state54.status) !== "inactive" || ((_state55 = state) === null || _state55 === void 0 ? void 0 : _state55.applicationStatus) !== "Inactive" || ((_state56 = state) === null || _state56 === void 0 ? void 0 : _state56.applicationStatus) !== "INACTIVE") && !isDisconnectionDone ? /*#__PURE__*/React.createElement(ActionBar, {
32019
32097
  style: {
32020
32098
  position: "relative",
32021
32099
  boxShadow: "none",
@@ -32034,7 +32112,7 @@ const ConnectionDetails$5 = () => {
32034
32112
  },
32035
32113
  label: t("WS_DISCONNECTION_BUTTON"),
32036
32114
  onSubmit: onActionSelect
32037
- }))) : ((_state36 = state) === null || _state36 === void 0 ? void 0 : _state36.applicationStatus) == "DISCONNECTION_EXECUTED" && ((_state37 = state) === null || _state37 === void 0 ? void 0 : _state37.status) == "Inactive" && ((_state38 = state) === null || _state38 === void 0 ? void 0 : _state38.isDisconnectionTemporary) && /*#__PURE__*/React.createElement(ActionBar, {
32115
+ }))) : ((_state57 = state) === null || _state57 === void 0 ? void 0 : _state57.applicationStatus) == "DISCONNECTION_EXECUTED" && ((_state58 = state) === null || _state58 === void 0 ? void 0 : _state58.status) == "Inactive" && ((_state59 = state) === null || _state59 === void 0 ? void 0 : _state59.isDisconnectionTemporary) && /*#__PURE__*/React.createElement(ActionBar, {
32038
32116
  style: {
32039
32117
  position: "relative",
32040
32118
  boxShadow: "none",
@@ -32066,8 +32144,8 @@ const ConnectionDetails$5 = () => {
32066
32144
  actionSingleLabel: t("COMMON_MAKE_PAYMENT"),
32067
32145
  hideSubmit: true,
32068
32146
  actionSingleSubmit: () => {
32069
- var _state39, _state40;
32070
- history.push("/digit-ui/citizen/payment/collect/" + (isSW ? "SW" : "WS") + "/" + encodeURIComponent((_state39 = state) === null || _state39 === void 0 ? void 0 : _state39.connectionNo) + "/" + tenantId + "?consumerCode=" + ((_state40 = state) === null || _state40 === void 0 ? void 0 : _state40.connectionNo) + "&&tenantId=" + tenantId + "&&workflow=WNS");
32147
+ var _state60, _state61;
32148
+ history.push("/digit-ui/citizen/payment/collect/" + (isSW ? "SW" : "WS") + "/" + encodeURIComponent((_state60 = state) === null || _state60 === void 0 ? void 0 : _state60.connectionNo) + "/" + tenantId + "?consumerCode=" + ((_state61 = state) === null || _state61 === void 0 ? void 0 : _state61.connectionNo) + "&&tenantId=" + tenantId + "&&workflow=WNS");
32071
32149
  setshowModal(false);
32072
32150
  },
32073
32151
  popupStyles: mobileView ? {
@@ -48581,8 +48659,367 @@ const EditModifyApplication = () => {
48581
48659
  }));
48582
48660
  };
48583
48661
 
48662
+ const WSMutationApplicantDetails = _ref => {
48663
+ var _formData$config$key, _errors$proposedNewCo, _errors$newOwnerMobil, _errors$newOwnerEmail, _errors$relationshipW, _errors$reasonForName;
48664
+ let t = _ref.t,
48665
+ config = _ref.config,
48666
+ onSelect = _ref.onSelect,
48667
+ formData = _ref.formData,
48668
+ clearErrors = _ref.clearErrors;
48669
+ const _useForm = useForm({
48670
+ defaultValues: (formData === null || formData === void 0 ? void 0 : formData[config.key]) || {}
48671
+ }),
48672
+ control = _useForm.control,
48673
+ watch = _useForm.watch,
48674
+ localFormState = _useForm.formState;
48675
+ const formValue = watch();
48676
+ const errors = localFormState.errors;
48677
+ const reasonOptions = [{
48678
+ code: "SALE_PURCHASE",
48679
+ i18nKey: "Sale / Purchase of Property"
48680
+ }, {
48681
+ code: "DEVOLUTION_INHERITANCE",
48682
+ i18nKey: "Devolution/Inheritance"
48683
+ }, {
48684
+ code: "OTHER",
48685
+ i18nKey: "Other Reason(Gift, Lease, etc)"
48686
+ }];
48687
+ const relationshipOptions = [{
48688
+ code: "MOTHER",
48689
+ i18nKey: "Mother"
48690
+ }, {
48691
+ code: "FATHER",
48692
+ i18nKey: "Father"
48693
+ }, {
48694
+ code: "SIBLING",
48695
+ i18nKey: "Sibling"
48696
+ }, {
48697
+ code: "SPOUSE",
48698
+ i18nKey: "Spouse"
48699
+ }, {
48700
+ code: "SON",
48701
+ i18nKey: "Son"
48702
+ }, {
48703
+ code: "DAUGHTER",
48704
+ i18nKey: "Daughter"
48705
+ }, {
48706
+ code: "LEGAL_HEIR",
48707
+ i18nKey: "Legal heir"
48708
+ }, {
48709
+ code: "OTHER",
48710
+ i18nKey: "Other"
48711
+ }];
48712
+ const _useState = useState((formData === null || formData === void 0 ? void 0 : (_formData$config$key = formData[config.key]) === null || _formData$config$key === void 0 ? void 0 : _formData$config$key.saleDeedDocumentId) || null),
48713
+ uploadedFile = _useState[0],
48714
+ setUploadedFile = _useState[1];
48715
+ const _useState2 = useState(null),
48716
+ file = _useState2[0],
48717
+ setFile = _useState2[1];
48718
+ const _useState3 = useState(false),
48719
+ isUploading = _useState3[0],
48720
+ setIsUploading = _useState3[1];
48721
+ useEffect(() => {
48722
+ const currentState = _extends({}, formValue, {
48723
+ saleDeedDocumentId: uploadedFile
48724
+ });
48725
+ if (!lodash.isEqual(formData === null || formData === void 0 ? void 0 : formData[config.key], currentState)) {
48726
+ onSelect(config.key, currentState);
48727
+ }
48728
+ }, [formValue, uploadedFile]);
48729
+ useEffect(() => {
48730
+ (function () {
48731
+ try {
48732
+ const _temp2 = function () {
48733
+ if (file) {
48734
+ const _temp = _finallyRethrows(function () {
48735
+ return _catch(function () {
48736
+ setIsUploading(true);
48737
+ return Promise.resolve(window.Digit.UploadServices.Filestorage("WS", file, window.Digit.ULBService.getStateId())).then(function (response) {
48738
+ var _response$data, _response$data$files;
48739
+ if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
48740
+ setUploadedFile(response.data.files[0].fileStoreId);
48741
+ clearErrors && clearErrors(config.key);
48742
+ }
48743
+ });
48744
+ }, function (err) {
48745
+ console.error("File upload error", err);
48746
+ });
48747
+ }, function (_wasThrown, _result) {
48748
+ setIsUploading(false);
48749
+ if (_wasThrown) throw _result;
48750
+ return _result;
48751
+ });
48752
+ if (_temp && _temp.then) return _temp.then(function () {});
48753
+ }
48754
+ }();
48755
+ return _temp2 && _temp2.then ? _temp2.then(function () {}) : void 0;
48756
+ } catch (e) {
48757
+ Promise.reject(e);
48758
+ }
48759
+ })();
48760
+ }, [file]);
48761
+ const errorStyle = {
48762
+ width: "100%",
48763
+ marginLeft: "0px",
48764
+ fontSize: "12px",
48765
+ marginTop: "4px"
48766
+ };
48767
+ return /*#__PURE__*/React.createElement("div", {
48768
+ className: "formcomposer-section-grid",
48769
+ style: {
48770
+ gridTemplateColumns: "1fr 1fr",
48771
+ gap: "20px",
48772
+ display: "grid"
48773
+ }
48774
+ }, /*#__PURE__*/React.createElement("div", {
48775
+ style: {
48776
+ display: "flex",
48777
+ flexDirection: "column",
48778
+ gap: "20px"
48779
+ }
48780
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, {
48781
+ style: {
48782
+ display: "flex",
48783
+ flexDirection: "column",
48784
+ alignItems: "flex-start",
48785
+ gap: "4px"
48786
+ }
48787
+ }, /*#__PURE__*/React.createElement(CardLabel, {
48788
+ style: {
48789
+ margin: 0,
48790
+ fontWeight: "bold"
48791
+ }
48792
+ }, "PROPOSED NEW CONSUMER NAME*"), /*#__PURE__*/React.createElement("div", {
48793
+ className: "field",
48794
+ style: {
48795
+ width: "100%"
48796
+ }
48797
+ }, /*#__PURE__*/React.createElement(Controller, {
48798
+ control: control,
48799
+ name: "proposedNewConsumerName",
48800
+ rules: {
48801
+ required: "Required field"
48802
+ },
48803
+ render: props => /*#__PURE__*/React.createElement(TextInput, {
48804
+ value: props.value,
48805
+ onChange: e => {
48806
+ props.onChange(e.target.value);
48807
+ },
48808
+ placeholder: "Enter full legal name of new owner",
48809
+ onBlur: props.onBlur
48810
+ })
48811
+ }))), (errors === null || errors === void 0 ? void 0 : errors.proposedNewConsumerName) && /*#__PURE__*/React.createElement(CardLabelError, {
48812
+ style: errorStyle
48813
+ }, errors === null || errors === void 0 ? void 0 : (_errors$proposedNewCo = errors.proposedNewConsumerName) === null || _errors$proposedNewCo === void 0 ? void 0 : _errors$proposedNewCo.message)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, {
48814
+ style: {
48815
+ display: "flex",
48816
+ flexDirection: "column",
48817
+ alignItems: "flex-start",
48818
+ gap: "4px"
48819
+ }
48820
+ }, /*#__PURE__*/React.createElement(CardLabel, {
48821
+ style: {
48822
+ margin: 0,
48823
+ fontWeight: "bold"
48824
+ }
48825
+ }, "NEW OWNER MOBILE NUMBER*"), /*#__PURE__*/React.createElement("div", {
48826
+ className: "field",
48827
+ style: {
48828
+ width: "100%"
48829
+ }
48830
+ }, /*#__PURE__*/React.createElement(Controller, {
48831
+ control: control,
48832
+ name: "newOwnerMobileNumber",
48833
+ rules: {
48834
+ required: "Required field",
48835
+ pattern: {
48836
+ value: /^[6-9]\d{9}$/,
48837
+ message: "Invalid mobile number"
48838
+ }
48839
+ },
48840
+ render: props => /*#__PURE__*/React.createElement(MobileNumber, {
48841
+ value: props.value || "",
48842
+ onChange: val => {
48843
+ props.onChange(val);
48844
+ },
48845
+ placeholder: "Enter mobile number",
48846
+ onBlur: props.onBlur
48847
+ })
48848
+ }))), (errors === null || errors === void 0 ? void 0 : errors.newOwnerMobileNumber) && /*#__PURE__*/React.createElement(CardLabelError, {
48849
+ style: errorStyle
48850
+ }, errors === null || errors === void 0 ? void 0 : (_errors$newOwnerMobil = errors.newOwnerMobileNumber) === null || _errors$newOwnerMobil === void 0 ? void 0 : _errors$newOwnerMobil.message)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, {
48851
+ style: {
48852
+ display: "flex",
48853
+ flexDirection: "column",
48854
+ alignItems: "flex-start",
48855
+ gap: "4px"
48856
+ }
48857
+ }, /*#__PURE__*/React.createElement(CardLabel, {
48858
+ style: {
48859
+ margin: 0,
48860
+ fontWeight: "bold"
48861
+ }
48862
+ }, "NEW OWNER EMAIL ADDRESS"), /*#__PURE__*/React.createElement("div", {
48863
+ className: "field",
48864
+ style: {
48865
+ width: "100%"
48866
+ }
48867
+ }, /*#__PURE__*/React.createElement(Controller, {
48868
+ control: control,
48869
+ name: "newOwnerEmailAddress",
48870
+ rules: {
48871
+ pattern: {
48872
+ value: /^[^\s@]+@[^\s@]+\.[^\s@]+$/,
48873
+ message: "Invalid email address"
48874
+ }
48875
+ },
48876
+ render: props => /*#__PURE__*/React.createElement(TextInput, {
48877
+ value: props.value,
48878
+ onChange: e => {
48879
+ props.onChange(e.target.value);
48880
+ },
48881
+ placeholder: "Enter email address",
48882
+ onBlur: props.onBlur
48883
+ })
48884
+ }))), (errors === null || errors === void 0 ? void 0 : errors.newOwnerEmailAddress) && /*#__PURE__*/React.createElement(CardLabelError, {
48885
+ style: errorStyle
48886
+ }, errors === null || errors === void 0 ? void 0 : (_errors$newOwnerEmail = errors.newOwnerEmailAddress) === null || _errors$newOwnerEmail === void 0 ? void 0 : _errors$newOwnerEmail.message)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, {
48887
+ style: {
48888
+ display: "flex",
48889
+ flexDirection: "column",
48890
+ alignItems: "flex-start",
48891
+ gap: "4px"
48892
+ }
48893
+ }, /*#__PURE__*/React.createElement(CardLabel, {
48894
+ style: {
48895
+ margin: 0,
48896
+ fontWeight: "bold"
48897
+ }
48898
+ }, "RELATIONSHIP WITH EXISTING CONSUMER*"), /*#__PURE__*/React.createElement("div", {
48899
+ className: "field",
48900
+ style: {
48901
+ width: "100%"
48902
+ }
48903
+ }, /*#__PURE__*/React.createElement(Controller, {
48904
+ control: control,
48905
+ name: "relationshipWithExistingConsumer",
48906
+ rules: {
48907
+ required: "Required field"
48908
+ },
48909
+ render: props => /*#__PURE__*/React.createElement(Dropdown, {
48910
+ selected: props.value,
48911
+ option: relationshipOptions,
48912
+ select: e => {
48913
+ props.onChange(e);
48914
+ },
48915
+ optionKey: "i18nKey",
48916
+ t: t,
48917
+ placeholder: "Select relationship"
48918
+ })
48919
+ }))), (errors === null || errors === void 0 ? void 0 : errors.relationshipWithExistingConsumer) && /*#__PURE__*/React.createElement(CardLabelError, {
48920
+ style: errorStyle
48921
+ }, errors === null || errors === void 0 ? void 0 : (_errors$relationshipW = errors.relationshipWithExistingConsumer) === null || _errors$relationshipW === void 0 ? void 0 : _errors$relationshipW.message))), /*#__PURE__*/React.createElement("div", {
48922
+ style: {
48923
+ display: "flex",
48924
+ flexDirection: "column",
48925
+ gap: "20px"
48926
+ }
48927
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, {
48928
+ style: {
48929
+ display: "flex",
48930
+ flexDirection: "column",
48931
+ alignItems: "flex-start",
48932
+ gap: "4px"
48933
+ }
48934
+ }, /*#__PURE__*/React.createElement(CardLabel, {
48935
+ style: {
48936
+ margin: 0,
48937
+ fontWeight: "bold"
48938
+ }
48939
+ }, "REASON FOR NAME CHANGE*"), /*#__PURE__*/React.createElement("div", {
48940
+ className: "field",
48941
+ style: {
48942
+ width: "100%"
48943
+ }
48944
+ }, /*#__PURE__*/React.createElement(Controller, {
48945
+ control: control,
48946
+ name: "reasonForNameChange",
48947
+ rules: {
48948
+ required: "Required field"
48949
+ },
48950
+ render: props => /*#__PURE__*/React.createElement(Dropdown, {
48951
+ selected: props.value,
48952
+ option: reasonOptions,
48953
+ select: e => {
48954
+ props.onChange(e);
48955
+ },
48956
+ optionKey: "i18nKey",
48957
+ t: t,
48958
+ placeholder: "Select reason"
48959
+ })
48960
+ }))), (errors === null || errors === void 0 ? void 0 : errors.reasonForNameChange) && /*#__PURE__*/React.createElement(CardLabelError, {
48961
+ style: errorStyle
48962
+ }, errors === null || errors === void 0 ? void 0 : (_errors$reasonForName = errors.reasonForNameChange) === null || _errors$reasonForName === void 0 ? void 0 : _errors$reasonForName.message)), /*#__PURE__*/React.createElement("div", {
48963
+ style: {
48964
+ marginTop: "10px",
48965
+ padding: "20px",
48966
+ border: "1px dashed #ccc",
48967
+ borderRadius: "8px",
48968
+ backgroundColor: "#fafafa"
48969
+ }
48970
+ }, /*#__PURE__*/React.createElement(LabelFieldPair, {
48971
+ style: {
48972
+ display: "flex",
48973
+ flexDirection: "column",
48974
+ alignItems: "flex-start",
48975
+ gap: "4px"
48976
+ }
48977
+ }, /*#__PURE__*/React.createElement(CardLabel, {
48978
+ style: {
48979
+ margin: 0,
48980
+ fontWeight: "bold"
48981
+ }
48982
+ }, "UPLOAD REGISTERED SALE DEED*"), /*#__PURE__*/React.createElement("p", {
48983
+ style: {
48984
+ color: "#666",
48985
+ fontSize: "12px",
48986
+ marginBottom: "15px",
48987
+ marginTop: "5px"
48988
+ }
48989
+ }, "Submit a clear scan of the stamp duty Registered Sale Deed."), /*#__PURE__*/React.createElement("div", {
48990
+ className: "field",
48991
+ style: {
48992
+ width: "100%"
48993
+ }
48994
+ }, /*#__PURE__*/React.createElement(UploadFile, {
48995
+ id: "sale-deed-upload",
48996
+ onUpload: e => {
48997
+ setFile(e.target.files[0]);
48998
+ },
48999
+ onDelete: () => {
49000
+ setUploadedFile(null);
49001
+ setFile(null);
49002
+ },
49003
+ message: uploadedFile ? "1 File Uploaded" : "Click to upload document",
49004
+ accept: "image/*, .pdf, .png, .jpeg, .jpg",
49005
+ uploadedFiles: uploadedFile && !file ? [["Document", {
49006
+ fileStoreId: uploadedFile
49007
+ }]] : undefined,
49008
+ removeTargetedFile: () => {
49009
+ setUploadedFile(null);
49010
+ setFile(null);
49011
+ }
49012
+ }))), isUploading && /*#__PURE__*/React.createElement("span", {
49013
+ style: {
49014
+ color: "#00497e",
49015
+ fontWeight: "bold",
49016
+ fontSize: "12px"
49017
+ }
49018
+ }, "Uploading..."))));
49019
+ };
49020
+
48584
49021
  const MutationApplication = () => {
48585
- var _state, _details, _details2, _details2$application;
49022
+ var _state, _details, _details2, _details2$application, _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _applicationDetails$a6, _applicationDetails$a7;
48586
49023
  const _useTranslation = useTranslation(),
48587
49024
  t = _useTranslation.t;
48588
49025
  let _useLocation = useLocation(),
@@ -48614,15 +49051,14 @@ const MutationApplication = () => {
48614
49051
  isEnableLoader = _useState7[0],
48615
49052
  setIsEnableLoader = _useState7[1];
48616
49053
  let tenantId = Digit.ULBService.getCurrentTenantId();
49054
+ const applicationNumber = filters === null || filters === void 0 ? void 0 : filters.applicationNumber;
48617
49055
  const serviceType = filters === null || filters === void 0 ? void 0 : filters.service;
48618
49056
  const stateId = Digit.ULBService.getStateId();
48619
49057
  let _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSConfigMDMS.WSCreateConfig(stateId, {}),
48620
49058
  newConfig = _Digit$Hooks$ws$useWS.data,
48621
49059
  isConfigLoading = _Digit$Hooks$ws$useWS.isLoading;
48622
49060
  let details = cloneDeep_1((_state = state) === null || _state === void 0 ? void 0 : _state.data);
48623
- let _Digit$Hooks$ws$useWS2 = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, (_details = details) === null || _details === void 0 ? void 0 : _details.applicationNo, (_details2 = details) === null || _details2 === void 0 ? void 0 : (_details2$application = _details2.applicationData) === null || _details2$application === void 0 ? void 0 : _details2$application.serviceType, {
48624
- privacy: Digit.Utils.getPrivacyObject()
48625
- }),
49061
+ let _Digit$Hooks$ws$useWS2 = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, ((_details = details) === null || _details === void 0 ? void 0 : _details.applicationNo) || applicationNumber, (serviceType === null || serviceType === void 0 ? void 0 : serviceType.toUpperCase()) || ((_details2 = details) === null || _details2 === void 0 ? void 0 : (_details2$application = _details2.applicationData) === null || _details2$application === void 0 ? void 0 : _details2$application.serviceType)),
48626
49062
  applicationDetails = _Digit$Hooks$ws$useWS2.data;
48627
49063
  details = applicationDetails;
48628
49064
  const _useState8 = useState(new URLSearchParams(useLocation().search).get("propertyId")),
@@ -48642,13 +49078,12 @@ const MutationApplication = () => {
48642
49078
  propertyIds: propertyId
48643
49079
  },
48644
49080
  tenantId: tenantId,
48645
- enabled: propertyId && propertyId != "" ? true : false,
48646
- privacy: Digit.Utils.getPrivacyObject()
49081
+ enabled: propertyId && propertyId != "" ? true : false
48647
49082
  }),
48648
49083
  propertyDetails = _Digit$Hooks$pt$usePr.data;
48649
49084
  useEffect(() => {
48650
49085
  if (!isConfigLoading && newConfig && Array.isArray(newConfig)) {
48651
- const config = newConfig.find(conf => conf.hideInCitizen && conf.isModify);
49086
+ const config = cloneDeep_1(newConfig.find(conf => conf.hideInCitizen && conf.isModify));
48652
49087
  if (config) {
48653
49088
  var _config$body;
48654
49089
  config.head = "WS_WATER_AND_SEWERAGE_MUTATION_CONNECTION_LABEL";
@@ -48657,7 +49092,21 @@ const MutationApplication = () => {
48657
49092
  if (data !== null && data !== void 0 && data.isModifyConnection) bodyDetails.push(data);
48658
49093
  });
48659
49094
  bodyDetails.forEach(bdyData => {
48660
- if ((bdyData === null || bdyData === void 0 ? void 0 : bdyData.head) == "WS_COMMON_PROPERTY_DETAILS") bdyData.head = "";
49095
+ if ((bdyData === null || bdyData === void 0 ? void 0 : bdyData.head) === "WS_COMMON_PROPERTY_DETAILS") {
49096
+ bdyData.head = "";
49097
+ bdyData.className = "mutation-disabled-section";
49098
+ } else if ((bdyData === null || bdyData === void 0 ? void 0 : bdyData.head) === "WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER") {
49099
+ bdyData.head = "Specify ownership updates and transfer reason:";
49100
+ bdyData.body = [{
49101
+ type: "component",
49102
+ key: "MutationApplicantDetails",
49103
+ component: WSMutationApplicantDetails,
49104
+ withoutLabel: true
49105
+ }];
49106
+ } else {
49107
+ bdyData.head = "";
49108
+ bdyData.className = "mutation-hidden-section";
49109
+ }
48661
49110
  });
48662
49111
  config.body = bodyDetails;
48663
49112
  setConfig(config);
@@ -48673,9 +49122,10 @@ const MutationApplication = () => {
48673
49122
  const IsDetailsExists = sessionStorage.getItem("IsDetailsExists") ? JSON.parse(sessionStorage.getItem("IsDetailsExists")) : false;
48674
49123
  const _temp = function (_details3, _details3$application) {
48675
49124
  if ((_details3 = details) !== null && _details3 !== void 0 && (_details3$application = _details3.applicationData) !== null && _details3$application !== void 0 && _details3$application.id) {
48676
- return Promise.resolve(convertApplicationData(details, serviceType, true, undefined, t)).then(function (convertAppData) {
48677
- setSessionFormData(_extends({}, sessionFormData, convertAppData));
48678
- setAppData(_extends({}, convertAppData));
49125
+ var _details4, _details4$application;
49126
+ return Promise.resolve(convertApplicationData(details, (serviceType === null || serviceType === void 0 ? void 0 : serviceType.toUpperCase()) || ((_details4 = details) === null || _details4 === void 0 ? void 0 : (_details4$application = _details4.applicationData) === null || _details4$application === void 0 ? void 0 : _details4$application.serviceType), true, undefined, t)).then(function (convertAppData) {
49127
+ setSessionFormData(prev => _extends({}, prev, convertAppData));
49128
+ setAppData(prev => _extends({}, prev, convertAppData));
48679
49129
  sessionStorage.setItem("IsDetailsExists", JSON.stringify(true));
48680
49130
  });
48681
49131
  }
@@ -48687,11 +49137,16 @@ const MutationApplication = () => {
48687
49137
  }, [details, applicationDetails]);
48688
49138
  useEffect(() => {
48689
49139
  var _propertyDetails$Prop;
48690
- setSessionFormData(_extends({}, sessionFormData, {
48691
- cpt: {
48692
- details: propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop = propertyDetails.Properties) === null || _propertyDetails$Prop === void 0 ? void 0 : _propertyDetails$Prop[0]
48693
- }
48694
- }));
49140
+ if (propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop = propertyDetails.Properties) !== null && _propertyDetails$Prop !== void 0 && _propertyDetails$Prop[0]) {
49141
+ setSessionFormData(prev => {
49142
+ var _propertyDetails$Prop2;
49143
+ return _extends({}, prev, {
49144
+ cpt: {
49145
+ details: propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop2 = propertyDetails.Properties) === null || _propertyDetails$Prop2 === void 0 ? void 0 : _propertyDetails$Prop2[0]
49146
+ }
49147
+ });
49148
+ });
49149
+ }
48695
49150
  }, [propertyDetails]);
48696
49151
  useEffect(() => {
48697
49152
  var _sessionFormData$Conn, _sessionFormData$Conn2;
@@ -48714,17 +49169,19 @@ const MutationApplication = () => {
48714
49169
  const _Digit$Hooks$ws$useWS4 = Digit.Hooks.ws.useWSApplicationActions("SEWERAGE");
48715
49170
  const onFormValueChange = (setValue, formData, formState) => {
48716
49171
  var _formData$cpt, _formData$cpt$details;
48717
- if (!lodash.isEqual(sessionFormData, formData)) {
48718
- setSessionFormData(_extends({}, sessionFormData, formData));
49172
+ const updatedData = _extends({}, sessionFormData, formData);
49173
+ if (!lodash.isEqual(sessionFormData, updatedData)) {
49174
+ setSessionFormData(updatedData);
48719
49175
  }
48720
49176
  if (Object.keys(formState.errors).length > 0 && Object.keys(formState.errors).length == 1 && formState.errors["owners"] && Object.values(formState.errors["owners"].type).filter(ob => ob.type === "required").length == 0 && !(formData !== null && formData !== void 0 && (_formData$cpt = formData.cpt) !== null && _formData$cpt !== void 0 && (_formData$cpt$details = _formData$cpt.details) !== null && _formData$cpt$details !== void 0 && _formData$cpt$details.propertyId)) setSubmitValve(true);else setSubmitValve(!Object.keys(formState.errors).length);
48721
49177
  };
48722
49178
  const onSubmit = function (data) {
48723
49179
  try {
48724
- var _data$cpt, _propertyDetails$Prop2;
48725
- if (!(data !== null && data !== void 0 && (_data$cpt = data.cpt) !== null && _data$cpt !== void 0 && _data$cpt.id) && !(propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop2 = propertyDetails.Properties) !== null && _propertyDetails$Prop2 !== void 0 && _propertyDetails$Prop2[0])) {
48726
- var _data$cpt2;
48727
- if (!(data !== null && data !== void 0 && (_data$cpt2 = data.cpt) !== null && _data$cpt2 !== void 0 && _data$cpt2.details) || !propertyDetails) {
49180
+ var _finalData$cpt, _propertyDetails$Prop3;
49181
+ let finalData = _extends({}, sessionFormData, data);
49182
+ if (!(finalData !== null && finalData !== void 0 && (_finalData$cpt = finalData.cpt) !== null && _finalData$cpt !== void 0 && _finalData$cpt.id) && !(propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop3 = propertyDetails.Properties) !== null && _propertyDetails$Prop3 !== void 0 && _propertyDetails$Prop3[0])) {
49183
+ var _finalData$cpt2;
49184
+ if (!(finalData !== null && finalData !== void 0 && (_finalData$cpt2 = finalData.cpt) !== null && _finalData$cpt2 !== void 0 && _finalData$cpt2.details) || !propertyDetails) {
48728
49185
  setShowToast({
48729
49186
  key: "error",
48730
49187
  message: "ERR_INVALID_PROPERTY_ID"
@@ -48742,15 +49199,26 @@ const MutationApplication = () => {
48742
49199
  setShowToast(false);
48743
49200
  }, 3000);
48744
49201
  } else {
48745
- var _data$cpt3;
48746
- if (!(data !== null && data !== void 0 && (_data$cpt3 = data.cpt) !== null && _data$cpt3 !== void 0 && _data$cpt3.details)) {
48747
- var _propertyDetails$Prop3;
48748
- data.cpt = {
48749
- details: propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop3 = propertyDetails.Properties) === null || _propertyDetails$Prop3 === void 0 ? void 0 : _propertyDetails$Prop3[0]
49202
+ var _finalData$cpt3;
49203
+ if (!(finalData !== null && finalData !== void 0 && (_finalData$cpt3 = finalData.cpt) !== null && _finalData$cpt3 !== void 0 && _finalData$cpt3.details)) {
49204
+ var _propertyDetails$Prop4;
49205
+ finalData.cpt = {
49206
+ details: propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop4 = propertyDetails.Properties) === null || _propertyDetails$Prop4 === void 0 ? void 0 : _propertyDetails$Prop4[0]
48750
49207
  };
48751
49208
  }
49209
+ if (finalData !== null && finalData !== void 0 && finalData.MutationApplicantDetails) {
49210
+ var _finalData$Connection;
49211
+ const mutDetails = finalData.MutationApplicantDetails;
49212
+ const existingHolder = (finalData === null || finalData === void 0 ? void 0 : (_finalData$Connection = finalData.ConnectionHolderDetails) === null || _finalData$Connection === void 0 ? void 0 : _finalData$Connection[0]) || {};
49213
+ finalData.ConnectionHolderDetails = [_extends({}, existingHolder, {
49214
+ name: mutDetails.proposedNewConsumerName || existingHolder.name,
49215
+ mobileNumber: mutDetails.newOwnerMobileNumber || existingHolder.mobileNumber,
49216
+ emailId: mutDetails.newOwnerEmailAddress || existingHolder.emailId,
49217
+ sameAsOwnerDetails: false
49218
+ })];
49219
+ }
48752
49220
  const details = sessionStorage.getItem("WS_EDIT_APPLICATION_DETAILS") ? JSON.parse(sessionStorage.getItem("WS_EDIT_APPLICATION_DETAILS")) : {};
48753
- return Promise.resolve(convertModifyApplicationDetails(data, details, "APPLY_MUTATION")).then(function (convertAppData) {
49221
+ return Promise.resolve(convertModifyApplicationDetails(finalData, details, "APPLY_MUTATION")).then(function (convertAppData) {
48754
49222
  function _temp6() {
48755
49223
  const _temp4 = function () {
48756
49224
  if (serviceType !== "WATER") {
@@ -48785,6 +49253,27 @@ const MutationApplication = () => {
48785
49253
  }();
48786
49254
  if (_temp4 && _temp4.then) return _temp4.then(function () {});
48787
49255
  }
49256
+ if (finalData !== null && finalData !== void 0 && finalData.MutationApplicantDetails) {
49257
+ var _mutDetails$reasonFor;
49258
+ const mutDetails = finalData.MutationApplicantDetails;
49259
+ if (!convertAppData.additionalDetails) convertAppData.additionalDetails = {};
49260
+ if (mutDetails.reasonForNameChange) convertAppData.additionalDetails.reasonForNameChange = ((_mutDetails$reasonFor = mutDetails.reasonForNameChange) === null || _mutDetails$reasonFor === void 0 ? void 0 : _mutDetails$reasonFor.code) || mutDetails.reasonForNameChange;
49261
+ if (mutDetails.relationshipWithExistingConsumer) {
49262
+ var _mutDetails$relations;
49263
+ const relationCode = ((_mutDetails$relations = mutDetails.relationshipWithExistingConsumer) === null || _mutDetails$relations === void 0 ? void 0 : _mutDetails$relations.code) || mutDetails.relationshipWithExistingConsumer;
49264
+ convertAppData.additionalDetails.relationshipWithExistingConsumer = relationCode;
49265
+ convertAppData.additionalDetails.isBloodRelation = relationCode !== "OTHER";
49266
+ }
49267
+ if (mutDetails.saleDeedDocumentId) {
49268
+ convertAppData.additionalDetails.saleDeedDocumentId = mutDetails.saleDeedDocumentId;
49269
+ if (!convertAppData.documents) convertAppData.documents = [];
49270
+ convertAppData.documents.push({
49271
+ documentType: "REGISTERED_SALE_DEED",
49272
+ fileStoreId: mutDetails.saleDeedDocumentId,
49273
+ documentUid: mutDetails.saleDeedDocumentId
49274
+ });
49275
+ }
49276
+ }
48788
49277
  convertAppData.applicationType = serviceType == "WATER" ? "MUTATION_WATER_CONNECTION" : "MUTATION_SEWERAGE_CONNECTION";
48789
49278
  const reqDetails = serviceType == "WATER" ? {
48790
49279
  WaterConnection: convertAppData,
@@ -48844,11 +49333,22 @@ const MutationApplication = () => {
48844
49333
  if (enabledLoader || isEnableLoader || isConfigLoading) {
48845
49334
  return /*#__PURE__*/React.createElement(Loader, null);
48846
49335
  }
48847
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
48848
- style: {
48849
- marginLeft: "15px"
48850
- }
48851
- }, /*#__PURE__*/React.createElement(Header, null, t(config.head))), /*#__PURE__*/React.createElement(FormComposer, {
49336
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("style", null, "\n .mutation-disabled-section { pointer-events: none; opacity: 0.8; margin-top: -24px !important; }\n .mutation-hidden-section { display: none !important; margin: 0 !important; padding: 0 !important; height: 0 !important; overflow: hidden !important; border: 0 !important; }\n .mutation-hidden-section + hr { display: none !important; margin: 0 !important; }\n .mutation-hidden-section + .break-line { display: none !important; margin: 0 !important; }\n "), /*#__PURE__*/React.createElement(Header, null, t(config.head)), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_MUTATION_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
49337
+ label: t("WS_MYCONNECTIONS_APPLICATION_NO"),
49338
+ text: (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.applicationNo) || "NA"
49339
+ }), /*#__PURE__*/React.createElement(Row, {
49340
+ label: t("WS_CONNECTION_CATEGORY"),
49341
+ text: (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationData) === null || _applicationDetails$a2 === void 0 ? void 0 : _applicationDetails$a2.connectionCategory) || "NA"
49342
+ }), /*#__PURE__*/React.createElement(Row, {
49343
+ label: t("WS_PROPERTY_ID_LABEL"),
49344
+ text: (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a3 = applicationDetails.applicationData) === null || _applicationDetails$a3 === void 0 ? void 0 : _applicationDetails$a3.propertyId) || propertyId || "NA"
49345
+ }), /*#__PURE__*/React.createElement(Row, {
49346
+ label: t("WS_APPLICATION_ID"),
49347
+ text: (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a4 = applicationDetails.applicationData) === null || _applicationDetails$a4 === void 0 ? void 0 : _applicationDetails$a4.id) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a5 = applicationDetails.applicationData) === null || _applicationDetails$a5 === void 0 ? void 0 : _applicationDetails$a5.connectionNo) || "NA"
49348
+ }), /*#__PURE__*/React.createElement(Row, {
49349
+ label: t("WS_CONNECTION_DATE"),
49350
+ text: applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a6 = applicationDetails.applicationData) !== null && _applicationDetails$a6 !== void 0 && _applicationDetails$a6.connectionExecutionDate ? Digit.DateUtils.ConvertEpochToDate(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a7 = applicationDetails.applicationData) === null || _applicationDetails$a7 === void 0 ? void 0 : _applicationDetails$a7.connectionExecutionDate) : "NA"
49351
+ }))), /*#__PURE__*/React.createElement(FormComposer, {
48852
49352
  config: config.body,
48853
49353
  userType: "employee",
48854
49354
  onFormValueChange: onFormValueChange,