@djb25/digit-ui-module-ws 1.0.72 → 1.0.73

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.
@@ -11108,7 +11108,9 @@ const App$1 = _ref2 => {
11108
11108
  component: WSEditDisconnectionByConfig
11109
11109
  }), /*#__PURE__*/React.createElement(PrivateRoute, {
11110
11110
  path: path + "/application-details",
11111
- component: WSApplicationDetails
11111
+ component: () => /*#__PURE__*/React.createElement(LayoutWrapper, {
11112
+ layoutClass: "action"
11113
+ }, /*#__PURE__*/React.createElement(WSApplicationDetails, null))
11112
11114
  }), /*#__PURE__*/React.createElement(PrivateRoute, {
11113
11115
  path: path + "/modify-details",
11114
11116
  component: WSModifyApplicationDetails
@@ -26197,6 +26199,10 @@ const WSCard = () => {
26197
26199
  label: t("WS_CALCULATION"),
26198
26200
  link: "/digit-ui/employee/ws/water/calculation",
26199
26201
  roles: ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK"]
26202
+ }, {
26203
+ label: t("WS_APPLY_MUTATION"),
26204
+ link: "/digit-ui/employee/ws/mutation-application",
26205
+ roles: ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK", "SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
26200
26206
  }]
26201
26207
  };
26202
26208
  return /*#__PURE__*/React.createElement(EmployeeModuleCard, propsForModuleCard);
@@ -31024,7 +31030,7 @@ const Rebate_menu = [{
31024
31030
  value: "Others"
31025
31031
  }];
31026
31032
  const WSFeeEstimation = _ref => {
31027
- var _wsAdditionalDetails$, _wsAdditionalDetails$18, _fields$adhocPenaltyR, _fields$adhocRebateRe;
31033
+ var _wsAdditionalDetails$, _fields$adhocPenaltyR, _fields$adhocRebateRe;
31028
31034
  let wsAdditionalDetails = _ref.wsAdditionalDetails;
31029
31035
  const _useTranslation = useTranslation(),
31030
31036
  t = _useTranslation.t;
@@ -31255,17 +31261,7 @@ const WSFeeEstimation = _ref => {
31255
31261
  } : {
31256
31262
  color: "#2E9E8F"
31257
31263
  }
31258
- }))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$18 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$18 !== void 0 && _wsAdditionalDetails$18.isAdhocRebate ? /*#__PURE__*/React.createElement("div", {
31259
- onClick: e => {
31260
- showPopUp(true);
31261
- }
31262
- }, /*#__PURE__*/React.createElement("span", {
31263
- className: "add-details-link hover-button",
31264
- style: {
31265
- cursor: "pointer",
31266
- color: "#a82227"
31267
- }
31268
- }, t("WS_PAYMENT_ADD_REBATE_PENALTY"))) : null, popup && /*#__PURE__*/React.createElement(Modal, {
31264
+ }))), popup && /*#__PURE__*/React.createElement(Modal, {
31269
31265
  headerBarMain: /*#__PURE__*/React.createElement(Heading, {
31270
31266
  label: t("PT_ADD_REBATE_PENALITY")
31271
31267
  }),
@@ -31893,31 +31889,31 @@ const checkForNA$1 = value => {
31893
31889
  return value ? value : "CS_NA";
31894
31890
  };
31895
31891
  const WSApplicationDetails = () => {
31896
- var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$WaterConnection11, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection12, _data$SewerageConnect12, _PTData$Properties, _PTData$Properties$, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _appDetailsData$appli, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect121, _data$SewerageConnect122, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$SewerageConnect125, _data$SewerageConnect126, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$SewerageConnect139, _data$SewerageConnect140, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection146, _data$WaterConnection147, _data$SewerageConnect141, _data$SewerageConnect142, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _data$WaterConnection151, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect146, _data$SewerageConnect147, _data$SewerageConnect148, _data$SewerageConnect149, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect150, _data$SewerageConnect151, _data$WaterConnection157, _data$WaterConnection158, _data$SewerageConnect152, _data$SewerageConnect153, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$WaterConnection162, _data$SewerageConnect154, _data$SewerageConnect155, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection163, _data$WaterConnection164, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173;
31892
+ var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$WaterConnection11, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection12, _data$SewerageConnect12, _PTData$Properties, _PTData$Properties$, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _appDetailsData$appli, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect121, _data$SewerageConnect122, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$SewerageConnect125, _data$SewerageConnect126, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$SewerageConnect139, _data$SewerageConnect140, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection146, _data$WaterConnection147, _data$SewerageConnect141, _data$SewerageConnect142, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _data$WaterConnection151, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect146, _data$SewerageConnect147, _data$SewerageConnect148, _data$SewerageConnect149, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect150, _data$SewerageConnect151, _data$WaterConnection157, _data$WaterConnection158, _data$SewerageConnect152, _data$SewerageConnect153, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection164, _data$WaterConnection165, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$WaterConnection176, _data$WaterConnection177, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180;
31897
31893
  const getDisconnectionNoticeSearch = function () {
31898
31894
  try {
31899
- var _data$WaterConnection175, _data$WaterConnection176, _data$SewerageConnect170, _data$SewerageConnect171;
31895
+ var _data$WaterConnection182, _data$WaterConnection183, _data$SewerageConnect176, _data$SewerageConnect177;
31900
31896
  let key = "ws-waterdisconnectionnotice";
31901
31897
  let details = {};
31902
31898
  if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
31903
- var _data$WaterConnection174, _PTData$Properties9;
31899
+ var _data$WaterConnection181, _PTData$Properties9;
31904
31900
  details = {
31905
- WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$WaterConnection174 = data.WaterConnection) === null || _data$WaterConnection174 === void 0 ? void 0 : _data$WaterConnection174[0], {
31901
+ WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$WaterConnection181 = data.WaterConnection) === null || _data$WaterConnection181 === void 0 ? void 0 : _data$WaterConnection181[0], {
31906
31902
  property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : _PTData$Properties9[0]
31907
31903
  })]
31908
31904
  };
31909
31905
  } else {
31910
- var _data$SewerageConnect169, _PTData$Properties0;
31906
+ var _data$SewerageConnect175, _PTData$Properties0;
31911
31907
  key = "ws-seweragedisconnectionnotice";
31912
31908
  details = {
31913
- SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$SewerageConnect169 = data.SewerageConnections) === null || _data$SewerageConnect169 === void 0 ? void 0 : _data$SewerageConnect169[0], {
31909
+ SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$SewerageConnect175 = data.SewerageConnections) === null || _data$SewerageConnect175 === void 0 ? void 0 : _data$SewerageConnect175[0], {
31914
31910
  property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : _PTData$Properties0[0]
31915
31911
  })]
31916
31912
  };
31917
31913
  }
31918
- return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$WaterConnection175 = data.WaterConnection) === null || _data$WaterConnection175 === void 0 ? void 0 : (_data$WaterConnection176 = _data$WaterConnection175[0]) === null || _data$WaterConnection176 === void 0 ? void 0 : _data$WaterConnection176.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect170 = data.SewerageConnections) === null || _data$SewerageConnect170 === void 0 ? void 0 : (_data$SewerageConnect171 = _data$SewerageConnect170[0]) === null || _data$SewerageConnect171 === void 0 ? void 0 : _data$SewerageConnect171.tenantId), details, key)).then(function (response) {
31919
- var _data$WaterConnection177, _data$WaterConnection178, _data$SewerageConnect172, _data$SewerageConnect173;
31920
- return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$WaterConnection177 = data.WaterConnection) === null || _data$WaterConnection177 === void 0 ? void 0 : (_data$WaterConnection178 = _data$WaterConnection177[0]) === null || _data$WaterConnection178 === void 0 ? void 0 : _data$WaterConnection178.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect172 = data.SewerageConnections) === null || _data$SewerageConnect172 === void 0 ? void 0 : (_data$SewerageConnect173 = _data$SewerageConnect172[0]) === null || _data$SewerageConnect173 === void 0 ? void 0 : _data$SewerageConnect173.tenantId), {
31914
+ return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$WaterConnection182 = data.WaterConnection) === null || _data$WaterConnection182 === void 0 ? void 0 : (_data$WaterConnection183 = _data$WaterConnection182[0]) === null || _data$WaterConnection183 === void 0 ? void 0 : _data$WaterConnection183.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect176 = data.SewerageConnections) === null || _data$SewerageConnect176 === void 0 ? void 0 : (_data$SewerageConnect177 = _data$SewerageConnect176[0]) === null || _data$SewerageConnect177 === void 0 ? void 0 : _data$SewerageConnect177.tenantId), details, key)).then(function (response) {
31915
+ var _data$WaterConnection184, _data$WaterConnection185, _data$SewerageConnect178, _data$SewerageConnect179;
31916
+ return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$WaterConnection184 = data.WaterConnection) === null || _data$WaterConnection184 === void 0 ? void 0 : (_data$WaterConnection185 = _data$WaterConnection184[0]) === null || _data$WaterConnection185 === void 0 ? void 0 : _data$WaterConnection185.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect178 = data.SewerageConnections) === null || _data$SewerageConnect178 === void 0 ? void 0 : (_data$SewerageConnect179 = _data$SewerageConnect178[0]) === null || _data$SewerageConnect179 === void 0 ? void 0 : _data$SewerageConnect179.tenantId), {
31921
31917
  fileStoreIds: response.filestoreIds[0]
31922
31918
  })).then(function (fileStore) {
31923
31919
  window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
@@ -32009,7 +32005,7 @@ const WSApplicationDetails = () => {
32009
32005
  }
32010
32006
  }) || false;
32011
32007
  const applicationStatus = (data === null || data === void 0 ? void 0 : (_data$WaterConnection17 = data.WaterConnection) === null || _data$WaterConnection17 === void 0 ? void 0 : (_data$WaterConnection18 = _data$WaterConnection17[0]) === null || _data$WaterConnection18 === void 0 ? void 0 : _data$WaterConnection18.applicationStatus) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect17 = data.SewerageConnections) === null || _data$SewerageConnect17 === void 0 ? void 0 : (_data$SewerageConnect18 = _data$SewerageConnect17[0]) === null || _data$SewerageConnect18 === void 0 ? void 0 : _data$SewerageConnect18.applicationStatus);
32012
- const isPaid = applicationStatus && applicationStatus !== "INITIATED" && applicationStatus !== "PENDING_FOR_PAYMENT" && applicationStatus !== "PENDING_FOR_FINAL_PAYMENT" && applicationStatus !== "PENDING_FOR_ADDITIONAL_PAYMENT" ? true : false;
32008
+ const isPaid = applicationStatus && applicationStatus !== "INITIATED" && applicationStatus !== "PENDING_APPROVAL_FOR_MUTATION" && applicationStatus !== "PENDING_FOR_PAYMENT" && applicationStatus !== "PENDING_FOR_FINAL_PAYMENT" && applicationStatus !== "PENDING_FOR_ADDITIONAL_PAYMENT" && applicationStatus !== "PENDING_FOR_CITIZEN_ACTION" ? true : false;
32013
32009
  const _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, applicationNobyData, applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? "SEWERAGE" : "WATER", user),
32014
32010
  isAppDetailsLoading = _Digit$Hooks$ws$useWS.isLoading,
32015
32011
  appDetailsData = _Digit$Hooks$ws$useWS.data;
@@ -32161,16 +32157,13 @@ const WSApplicationDetails = () => {
32161
32157
  let serviceType = data && data !== null && data !== void 0 && (_data$WaterConnection45 = data.WaterConnection) !== null && _data$WaterConnection45 !== void 0 && _data$WaterConnection45[0] ? "WATER" : "SEWERAGE";
32162
32158
  sessionStorage.setItem("ApplicationNoState", applicationNobyData);
32163
32159
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
32164
- className: "employee-main-application-details",
32165
- style: {
32166
- display: "flex",
32167
- gap: "20px"
32168
- }
32160
+ className: "employee-main-application-details"
32169
32161
  }, /*#__PURE__*/React.createElement("div", {
32170
32162
  className: "workflow-timeline-wrapper no-scrollbar",
32171
32163
  style: {
32172
- flex: "1 1 300px",
32173
- maxWidth: "400px"
32164
+ flex: "1 1 280px",
32165
+ maxWidth: "400px",
32166
+ minWidth: "240px"
32174
32167
  }
32175
32168
  }, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
32176
32169
  id: "timeline"
@@ -32180,7 +32173,8 @@ const WSApplicationDetails = () => {
32180
32173
  paymentbuttonenabled: false
32181
32174
  })))), /*#__PURE__*/React.createElement("div", {
32182
32175
  style: {
32183
- flex: "2 1 500px"
32176
+ flex: "2 1 300px",
32177
+ minWidth: 0
32184
32178
  }
32185
32179
  }, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
32186
32180
  className: "cardHeaderWithOptions",
@@ -32670,27 +32664,28 @@ const WSApplicationDetails = () => {
32670
32664
  label: t("MAKE_PAYMENT")
32671
32665
  })) : null, !(data !== null && data !== void 0 && (_data$WaterConnection151 = data.WaterConnection) !== null && _data$WaterConnection151 !== void 0 && (_data$WaterConnection152 = _data$WaterConnection151[0]) !== null && _data$WaterConnection152 !== void 0 && _data$WaterConnection152.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection153 = data.WaterConnection) !== null && _data$WaterConnection153 !== void 0 && (_data$WaterConnection154 = _data$WaterConnection153[0]) !== null && _data$WaterConnection154 !== void 0 && _data$WaterConnection154.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect146 = data.SewerageConnections) !== null && _data$SewerageConnect146 !== void 0 && (_data$SewerageConnect147 = _data$SewerageConnect146[0]) !== null && _data$SewerageConnect147 !== void 0 && _data$SewerageConnect147.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect148 = data.SewerageConnections) !== null && _data$SewerageConnect148 !== void 0 && (_data$SewerageConnect149 = _data$SewerageConnect148[0]) !== null && _data$SewerageConnect149 !== void 0 && _data$SewerageConnect149.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React.createElement(Link, {
32672
32666
  to: {
32673
- pathname: "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection155 = data.WaterConnection) === null || _data$WaterConnection155 === void 0 ? void 0 : (_data$WaterConnection156 = _data$WaterConnection155[0]) === null || _data$WaterConnection156 === void 0 ? void 0 : _data$WaterConnection156.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect150 = data.SewerageConnections) === null || _data$SewerageConnect150 === void 0 ? void 0 : (_data$SewerageConnect151 = _data$SewerageConnect150[0]) === null || _data$SewerageConnect151 === void 0 ? void 0 : _data$SewerageConnect151.tenantId)),
32667
+ pathname: isMutation ? "/digit-ui/citizen/ws/mutation-application" : "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection155 = data.WaterConnection) === null || _data$WaterConnection155 === void 0 ? void 0 : (_data$WaterConnection156 = _data$WaterConnection155[0]) === null || _data$WaterConnection156 === void 0 ? void 0 : _data$WaterConnection156.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect150 = data.SewerageConnections) === null || _data$SewerageConnect150 === void 0 ? void 0 : (_data$SewerageConnect151 = _data$SewerageConnect150[0]) === null || _data$SewerageConnect151 === void 0 ? void 0 : _data$SewerageConnect151.tenantId)),
32668
+ search: isMutation ? "?applicationNumber=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection157 = data.WaterConnection) === null || _data$WaterConnection157 === void 0 ? void 0 : (_data$WaterConnection158 = _data$WaterConnection157[0]) === null || _data$WaterConnection158 === void 0 ? void 0 : _data$WaterConnection158.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect152 = data.SewerageConnections) === null || _data$SewerageConnect152 === void 0 ? void 0 : (_data$SewerageConnect153 = _data$SewerageConnect152[0]) === null || _data$SewerageConnect153 === void 0 ? void 0 : _data$SewerageConnect153.applicationNo)) + "&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection159 = data.WaterConnection) === null || _data$WaterConnection159 === void 0 ? void 0 : (_data$WaterConnection160 = _data$WaterConnection159[0]) === null || _data$WaterConnection160 === void 0 ? void 0 : _data$WaterConnection160.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect154 = data.SewerageConnections) === null || _data$SewerageConnect154 === void 0 ? void 0 : (_data$SewerageConnect155 = _data$SewerageConnect154[0]) === null || _data$SewerageConnect155 === void 0 ? void 0 : _data$SewerageConnect155.tenantId)) + "&service=" + (data !== null && data !== void 0 && (_data$WaterConnection161 = data.WaterConnection) !== null && _data$WaterConnection161 !== void 0 && _data$WaterConnection161[0] ? "WATER" : "SEWERAGE") + "&propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection162 = data.WaterConnection) === null || _data$WaterConnection162 === void 0 ? void 0 : (_data$WaterConnection163 = _data$WaterConnection162[0]) === null || _data$WaterConnection163 === void 0 ? void 0 : _data$WaterConnection163.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect156 = data.SewerageConnections) === null || _data$SewerageConnect156 === void 0 ? void 0 : (_data$SewerageConnect157 = _data$SewerageConnect156[0]) === null || _data$SewerageConnect157 === void 0 ? void 0 : _data$SewerageConnect157.propertyId)) : "",
32674
32669
  state: {
32675
- id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection157 = data.WaterConnection) === null || _data$WaterConnection157 === void 0 ? void 0 : (_data$WaterConnection158 = _data$WaterConnection157[0]) === null || _data$WaterConnection158 === void 0 ? void 0 : _data$WaterConnection158.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect152 = data.SewerageConnections) === null || _data$SewerageConnect152 === void 0 ? void 0 : (_data$SewerageConnect153 = _data$SewerageConnect152[0]) === null || _data$SewerageConnect153 === void 0 ? void 0 : _data$SewerageConnect153.applicationNo))
32670
+ id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection164 = data.WaterConnection) === null || _data$WaterConnection164 === void 0 ? void 0 : (_data$WaterConnection165 = _data$WaterConnection164[0]) === null || _data$WaterConnection165 === void 0 ? void 0 : _data$WaterConnection165.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect158 = data.SewerageConnections) === null || _data$SewerageConnect158 === void 0 ? void 0 : (_data$SewerageConnect159 = _data$SewerageConnect158[0]) === null || _data$SewerageConnect159 === void 0 ? void 0 : _data$SewerageConnect159.applicationNo))
32676
32671
  }
32677
32672
  }
32678
32673
  }, /*#__PURE__*/React.createElement(SubmitBar, {
32679
32674
  label: t("COMMON_EDIT")
32680
- })) : null, data !== null && data !== void 0 && (_data$WaterConnection159 = data.WaterConnection) !== null && _data$WaterConnection159 !== void 0 && (_data$WaterConnection160 = _data$WaterConnection159[0]) !== null && _data$WaterConnection160 !== void 0 && _data$WaterConnection160.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection161 = data.WaterConnection) !== null && _data$WaterConnection161 !== void 0 && (_data$WaterConnection162 = _data$WaterConnection161[0]) !== null && _data$WaterConnection162 !== void 0 && _data$WaterConnection162.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || data !== null && data !== void 0 && (_data$SewerageConnect154 = data.SewerageConnections) !== null && _data$SewerageConnect154 !== void 0 && (_data$SewerageConnect155 = _data$SewerageConnect154[0]) !== null && _data$SewerageConnect155 !== void 0 && _data$SewerageConnect155.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect156 = data.SewerageConnections) !== null && _data$SewerageConnect156 !== void 0 && (_data$SewerageConnect157 = _data$SewerageConnect156[0]) !== null && _data$SewerageConnect157 !== void 0 && _data$SewerageConnect157.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React.createElement(Link, {
32675
+ })) : null, data !== null && data !== void 0 && (_data$WaterConnection166 = data.WaterConnection) !== null && _data$WaterConnection166 !== void 0 && (_data$WaterConnection167 = _data$WaterConnection166[0]) !== null && _data$WaterConnection167 !== void 0 && _data$WaterConnection167.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection168 = data.WaterConnection) !== null && _data$WaterConnection168 !== void 0 && (_data$WaterConnection169 = _data$WaterConnection168[0]) !== null && _data$WaterConnection169 !== void 0 && _data$WaterConnection169.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || data !== null && data !== void 0 && (_data$SewerageConnect160 = data.SewerageConnections) !== null && _data$SewerageConnect160 !== void 0 && (_data$SewerageConnect161 = _data$SewerageConnect160[0]) !== null && _data$SewerageConnect161 !== void 0 && _data$SewerageConnect161.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect162 = data.SewerageConnections) !== null && _data$SewerageConnect162 !== void 0 && (_data$SewerageConnect163 = _data$SewerageConnect162[0]) !== null && _data$SewerageConnect163 !== void 0 && _data$SewerageConnect163.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React.createElement(Link, {
32681
32676
  to: {
32682
32677
  pathname: "/digit-ui/citizen/ws/resubmit-disconnect-application",
32683
32678
  state: {
32684
- id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection163 = data.WaterConnection) === null || _data$WaterConnection163 === void 0 ? void 0 : (_data$WaterConnection164 = _data$WaterConnection163[0]) === null || _data$WaterConnection164 === void 0 ? void 0 : _data$WaterConnection164.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect158 = data.SewerageConnections) === null || _data$SewerageConnect158 === void 0 ? void 0 : (_data$SewerageConnect159 = _data$SewerageConnect158[0]) === null || _data$SewerageConnect159 === void 0 ? void 0 : _data$SewerageConnect159.applicationNo))
32679
+ id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection170 = data.WaterConnection) === null || _data$WaterConnection170 === void 0 ? void 0 : (_data$WaterConnection171 = _data$WaterConnection170[0]) === null || _data$WaterConnection171 === void 0 ? void 0 : _data$WaterConnection171.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect164 = data.SewerageConnections) === null || _data$SewerageConnect164 === void 0 ? void 0 : (_data$SewerageConnect165 = _data$SewerageConnect164[0]) === null || _data$SewerageConnect165 === void 0 ? void 0 : _data$SewerageConnect165.applicationNo))
32685
32680
  }
32686
32681
  }
32687
32682
  }, /*#__PURE__*/React.createElement(SubmitBar, {
32688
32683
  label: t("RESUBMIT_APPLICATION"),
32689
32684
  onSubmit: Digit.SessionStorage.set("WS_DISCONNECTION", applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? {
32690
- applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect160 = data.SewerageConnections) === null || _data$SewerageConnect160 === void 0 ? void 0 : _data$SewerageConnect160[0],
32685
+ applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect166 = data.SewerageConnections) === null || _data$SewerageConnect166 === void 0 ? void 0 : _data$SewerageConnect166[0],
32691
32686
  serviceType: "SEWERAGE",
32692
32687
  WSDisconnectionForm: {
32693
- type: data !== null && data !== void 0 && (_data$SewerageConnect161 = data.SewerageConnections) !== null && _data$SewerageConnect161 !== void 0 && (_data$SewerageConnect162 = _data$SewerageConnect161[0]) !== null && _data$SewerageConnect162 !== void 0 && _data$SewerageConnect162.isDisconnectionTemporary ? {
32688
+ type: data !== null && data !== void 0 && (_data$SewerageConnect167 = data.SewerageConnections) !== null && _data$SewerageConnect167 !== void 0 && (_data$SewerageConnect168 = _data$SewerageConnect167[0]) !== null && _data$SewerageConnect168 !== void 0 && _data$SewerageConnect168.isDisconnectionTemporary ? {
32694
32689
  code: "type",
32695
32690
  value: {
32696
32691
  name: "Temporary",
@@ -32707,18 +32702,18 @@ const WSApplicationDetails = () => {
32707
32702
  code: "Permanent"
32708
32703
  }
32709
32704
  },
32710
- date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$SewerageConnect163 = data.SewerageConnections) === null || _data$SewerageConnect163 === void 0 ? void 0 : (_data$SewerageConnect164 = _data$SewerageConnect163[0]) === null || _data$SewerageConnect164 === void 0 ? void 0 : _data$SewerageConnect164.dateEffectiveFrom, true),
32705
+ date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$SewerageConnect169 = data.SewerageConnections) === null || _data$SewerageConnect169 === void 0 ? void 0 : (_data$SewerageConnect170 = _data$SewerageConnect169[0]) === null || _data$SewerageConnect170 === void 0 ? void 0 : _data$SewerageConnect170.dateEffectiveFrom, true),
32711
32706
  reason: {
32712
32707
  code: "reason",
32713
- value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect165 = data.SewerageConnections) === null || _data$SewerageConnect165 === void 0 ? void 0 : (_data$SewerageConnect166 = _data$SewerageConnect165[0]) === null || _data$SewerageConnect166 === void 0 ? void 0 : _data$SewerageConnect166.disconnectionReason
32708
+ value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect171 = data.SewerageConnections) === null || _data$SewerageConnect171 === void 0 ? void 0 : (_data$SewerageConnect172 = _data$SewerageConnect171[0]) === null || _data$SewerageConnect172 === void 0 ? void 0 : _data$SewerageConnect172.disconnectionReason
32714
32709
  },
32715
- documents: data === null || data === void 0 ? void 0 : (_data$SewerageConnect167 = data.SewerageConnections) === null || _data$SewerageConnect167 === void 0 ? void 0 : (_data$SewerageConnect168 = _data$SewerageConnect167[0]) === null || _data$SewerageConnect168 === void 0 ? void 0 : _data$SewerageConnect168.documents
32710
+ documents: data === null || data === void 0 ? void 0 : (_data$SewerageConnect173 = data.SewerageConnections) === null || _data$SewerageConnect173 === void 0 ? void 0 : (_data$SewerageConnect174 = _data$SewerageConnect173[0]) === null || _data$SewerageConnect174 === void 0 ? void 0 : _data$SewerageConnect174.documents
32716
32711
  }
32717
32712
  } : {
32718
- applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection165 = data.WaterConnection) === null || _data$WaterConnection165 === void 0 ? void 0 : _data$WaterConnection165[0],
32713
+ applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection172 = data.WaterConnection) === null || _data$WaterConnection172 === void 0 ? void 0 : _data$WaterConnection172[0],
32719
32714
  serviceType: "WATER",
32720
32715
  WSDisconnectionForm: {
32721
- type: data !== null && data !== void 0 && (_data$WaterConnection166 = data.WaterConnection) !== null && _data$WaterConnection166 !== void 0 && (_data$WaterConnection167 = _data$WaterConnection166[0]) !== null && _data$WaterConnection167 !== void 0 && _data$WaterConnection167.isDisconnectionTemporary ? {
32716
+ type: data !== null && data !== void 0 && (_data$WaterConnection173 = data.WaterConnection) !== null && _data$WaterConnection173 !== void 0 && (_data$WaterConnection174 = _data$WaterConnection173[0]) !== null && _data$WaterConnection174 !== void 0 && _data$WaterConnection174.isDisconnectionTemporary ? {
32722
32717
  code: "type",
32723
32718
  value: {
32724
32719
  name: "Temporary",
@@ -32735,12 +32730,12 @@ const WSApplicationDetails = () => {
32735
32730
  code: "Permanent"
32736
32731
  }
32737
32732
  },
32738
- date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$WaterConnection168 = data.WaterConnection) === null || _data$WaterConnection168 === void 0 ? void 0 : (_data$WaterConnection169 = _data$WaterConnection168[0]) === null || _data$WaterConnection169 === void 0 ? void 0 : _data$WaterConnection169.dateEffectiveFrom, true),
32733
+ date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$WaterConnection175 = data.WaterConnection) === null || _data$WaterConnection175 === void 0 ? void 0 : (_data$WaterConnection176 = _data$WaterConnection175[0]) === null || _data$WaterConnection176 === void 0 ? void 0 : _data$WaterConnection176.dateEffectiveFrom, true),
32739
32734
  reason: {
32740
32735
  code: "reason",
32741
- value: data === null || data === void 0 ? void 0 : (_data$WaterConnection170 = data.WaterConnection) === null || _data$WaterConnection170 === void 0 ? void 0 : (_data$WaterConnection171 = _data$WaterConnection170[0]) === null || _data$WaterConnection171 === void 0 ? void 0 : _data$WaterConnection171.disconnectionReason
32736
+ value: data === null || data === void 0 ? void 0 : (_data$WaterConnection177 = data.WaterConnection) === null || _data$WaterConnection177 === void 0 ? void 0 : (_data$WaterConnection178 = _data$WaterConnection177[0]) === null || _data$WaterConnection178 === void 0 ? void 0 : _data$WaterConnection178.disconnectionReason
32742
32737
  },
32743
- documents: data === null || data === void 0 ? void 0 : (_data$WaterConnection172 = data.WaterConnection) === null || _data$WaterConnection172 === void 0 ? void 0 : (_data$WaterConnection173 = _data$WaterConnection172[0]) === null || _data$WaterConnection173 === void 0 ? void 0 : _data$WaterConnection173.documents
32738
+ documents: data === null || data === void 0 ? void 0 : (_data$WaterConnection179 = data.WaterConnection) === null || _data$WaterConnection179 === void 0 ? void 0 : (_data$WaterConnection180 = _data$WaterConnection179[0]) === null || _data$WaterConnection180 === void 0 ? void 0 : _data$WaterConnection180.documents
32744
32739
  }
32745
32740
  })
32746
32741
  })) : null)))));
@@ -33083,7 +33078,7 @@ const getConnectionDetailsPDF = function (application, property, tenantInfo, t)
33083
33078
  };
33084
33079
 
33085
33080
  const ConnectionDetails$5 = () => {
33086
- 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, _state5, _state6, _state6$applicationTy, _state7, _state8, _state9, _state0, _state0$applicationTy, _state1, _state10, _state11, _state12, _state12$applicationT, _state13, _state14, _state15, _state16, _state17, _state17$applicationT, _state18, _state18$waterSource, _state18$waterSource$, _state19, _state20, _state20$waterSource, _state20$waterSource$, _state21, _state22, _state23, _state24, _state24$additionalDe, _state25, _state25$applicationT, _state26, _state26$additionalDe, _state26$additionalDe2, _state27, _state27$additionalDe, _state27$additionalDe2, _state28, _state28$additionalDe, _state29, _state29$additionalDe, _state30, _state30$additionalDe, _state30$additionalDe2, _state31, _state31$additionalDe, _state32, _state33, _state34, _state35, _state35$property, _state35$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, _state36, _state36$additionalDe, _state36$additionalDe2, _state37, _state37$additionalDe, _state37$additionalDe2, _state38, _state38$additionalDe, _state39, _state39$additionalDe, _state40, _state40$additionalDe, _state41, _state41$additionalDe, _state42, _state42$additionalDe, _state43, _state44, _state45, _state46, _state46$connectionHo, _state46$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, _state47, _state47$additionalDe, _state48, _state48$additionalDe, _state49, _state49$additionalDe, _state50, _state50$additionalDe, _state51, _state51$additionalDe, _state52, _state53, _state56, _state57, _state58, _state59, _state60, _state61, _paymentDetails$data17, _paymentDetails$data18;
33081
+ 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;
33087
33082
  const _useTranslation = useTranslation(),
33088
33083
  t = _useTranslation.t;
33089
33084
  const menuRef = useRef();
@@ -33326,11 +33321,6 @@ const ConnectionDetails$5 = () => {
33326
33321
  function onActionSelectRestoration() {
33327
33322
  getRestorationButton();
33328
33323
  }
33329
- function onActionSelectMutation() {
33330
- var _state3, _state4;
33331
- let pathname = "/digit-ui/citizen/ws/mutation-application?applicationNumber=" + ((_state3 = state) === null || _state3 === void 0 ? void 0 : _state3.connectionNo) + "&service=" + (isSW ? "SEWERAGE" : "WATER") + "&propertyId=" + ((_state4 = state) === null || _state4 === void 0 ? void 0 : _state4.propertyId) + "&from=WS_COMMON_CONNECTION_DETAIL";
33332
- history.push(pathname);
33333
- }
33334
33324
  const Close = () => /*#__PURE__*/React.createElement("svg", {
33335
33325
  xmlns: "http://www.w3.org/2000/svg",
33336
33326
  viewBox: "0 0 24 24",
@@ -33358,8 +33348,8 @@ const ConnectionDetails$5 = () => {
33358
33348
  if (isLoading || isPTLoading) {
33359
33349
  return /*#__PURE__*/React.createElement(Loader, null);
33360
33350
  }
33361
- sessionStorage.setItem("ApplicationNoState", (_state5 = state) === null || _state5 === void 0 ? void 0 : _state5.applicationNo);
33362
- let serviceType = (_state6 = state) !== null && _state6 !== void 0 && (_state6$applicationTy = _state6.applicationType) !== null && _state6$applicationTy !== void 0 && _state6$applicationTy.includes("WATER") ? "WATER" : "SEWERAGE";
33351
+ sessionStorage.setItem("ApplicationNoState", (_state3 = state) === null || _state3 === void 0 ? void 0 : _state3.applicationNo);
33352
+ let serviceType = (_state4 = state) !== null && _state4 !== void 0 && (_state4$applicationTy = _state4.applicationType) !== null && _state4$applicationTy !== void 0 && _state4$applicationTy.includes("WATER") ? "WATER" : "SEWERAGE";
33363
33353
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
33364
33354
  className: "cardHeaderWithOptions",
33365
33355
  style: {
@@ -33383,18 +33373,18 @@ const ConnectionDetails$5 = () => {
33383
33373
  }, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
33384
33374
  className: "border-none",
33385
33375
  label: t("WS_MYCONNECTIONS_CONSUMER_NO"),
33386
- text: (_state7 = state) === null || _state7 === void 0 ? void 0 : _state7.connectionNo
33376
+ text: (_state5 = state) === null || _state5 === void 0 ? void 0 : _state5.connectionNo
33387
33377
  }), /*#__PURE__*/React.createElement(Row, {
33388
33378
  className: "border-none",
33389
33379
  label: t("WS_SERVICE_NAME_LABEL"),
33390
- text: t("WS_APPLICATION_TYPE_" + ((_state8 = state) === null || _state8 === void 0 ? void 0 : _state8.applicationType)),
33380
+ text: t("WS_APPLICATION_TYPE_" + ((_state6 = state) === null || _state6 === void 0 ? void 0 : _state6.applicationType)),
33391
33381
  textStyle: {
33392
33382
  wordBreak: "break-word"
33393
33383
  }
33394
33384
  }), /*#__PURE__*/React.createElement(Row, {
33395
33385
  className: "border-none",
33396
33386
  label: t("WS_STATUS"),
33397
- text: ((_state9 = state) === null || _state9 === void 0 ? void 0 : _state9.status) || "NA",
33387
+ text: ((_state7 = state) === null || _state7 === void 0 ? void 0 : _state7.status) || "NA",
33398
33388
  textStyle: {
33399
33389
  whiteSpace: "pre"
33400
33390
  }
@@ -33402,127 +33392,127 @@ const ConnectionDetails$5 = () => {
33402
33392
  styles: {
33403
33393
  fontSize: "28px"
33404
33394
  }
33405
- }, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React.createElement(StatusTable, null, ((_state0 = state) === null || _state0 === void 0 ? void 0 : (_state0$applicationTy = _state0.applicationType) === null || _state0$applicationTy === void 0 ? void 0 : _state0$applicationTy.includes("WATER")) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, {
33395
+ }, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React.createElement(StatusTable, null, ((_state8 = state) === null || _state8 === void 0 ? void 0 : (_state8$applicationTy = _state8.applicationType) === null || _state8$applicationTy === void 0 ? void 0 : _state8$applicationTy.includes("WATER")) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, {
33406
33396
  className: "border-none",
33407
33397
  label: t("WS_COMMON_TABLE_COL_CONNECTIONTYPE_LABEL"),
33408
- text: ((_state1 = state) === null || _state1 === void 0 ? void 0 : _state1.connectionType) || t("NA"),
33398
+ text: ((_state9 = state) === null || _state9 === void 0 ? void 0 : _state9.connectionType) || t("NA"),
33409
33399
  textStyle: {
33410
33400
  whiteSpace: "pre"
33411
33401
  }
33412
33402
  }), /*#__PURE__*/React.createElement(Row, {
33413
33403
  className: "border-none",
33414
33404
  label: t("WS_SERV_DETAIL_NO_OF_TAPS"),
33415
- text: (_state10 = state) === null || _state10 === void 0 ? void 0 : _state10.noOfTaps,
33405
+ text: (_state0 = state) === null || _state0 === void 0 ? void 0 : _state0.noOfTaps,
33416
33406
  textStyle: {
33417
33407
  whiteSpace: "pre"
33418
33408
  }
33419
33409
  }), /*#__PURE__*/React.createElement(Row, {
33420
33410
  className: "border-none",
33421
33411
  label: t("WS_PIPE_SIZE_IN_INCHES_LABEL"),
33422
- text: ((_state11 = state) === null || _state11 === void 0 ? void 0 : _state11.pipeSize) || "NA",
33412
+ text: ((_state1 = state) === null || _state1 === void 0 ? void 0 : _state1.pipeSize) || "NA",
33423
33413
  textStyle: {
33424
33414
  whiteSpace: "pre"
33425
33415
  }
33426
- })), ((_state12 = state) === null || _state12 === void 0 ? void 0 : (_state12$applicationT = _state12.applicationType) === null || _state12$applicationT === void 0 ? void 0 : _state12$applicationT.includes("SEWERAGE")) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, {
33416
+ })), ((_state10 = state) === null || _state10 === void 0 ? void 0 : (_state10$applicationT = _state10.applicationType) === null || _state10$applicationT === void 0 ? void 0 : _state10$applicationT.includes("SEWERAGE")) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, {
33427
33417
  className: "border-none",
33428
33418
  label: t("WS_CONN_DETAIL_WATER_CLOSETS"),
33429
- text: (_state13 = state) === null || _state13 === void 0 ? void 0 : _state13.proposedWaterClosets,
33419
+ text: (_state11 = state) === null || _state11 === void 0 ? void 0 : _state11.proposedWaterClosets,
33430
33420
  textStyle: {
33431
33421
  whiteSpace: "pre"
33432
33422
  }
33433
33423
  }), /*#__PURE__*/React.createElement(Row, {
33434
33424
  className: "border-none",
33435
33425
  label: t("WS_SERV_DETAIL_NO_OF_TOILETS"),
33436
- text: ((_state14 = state) === null || _state14 === void 0 ? void 0 : _state14.proposedToilets) || t("CS_NA"),
33426
+ text: ((_state12 = state) === null || _state12 === void 0 ? void 0 : _state12.proposedToilets) || t("CS_NA"),
33437
33427
  textStyle: {
33438
33428
  whiteSpace: "pre"
33439
33429
  }
33440
33430
  }), /*#__PURE__*/React.createElement(Row, {
33441
33431
  className: "border-none",
33442
33432
  label: t("WS_SERV_DETAIL_CONN_EXECUTION_DATE"),
33443
- text: (_state15 = state) !== null && _state15 !== void 0 && _state15.connectionExecutionDate ? Digit.DateUtils.ConvertEpochToDate((_state16 = state) === null || _state16 === void 0 ? void 0 : _state16.connectionExecutionDate) : t("CS_NA"),
33433
+ text: (_state13 = state) !== null && _state13 !== void 0 && _state13.connectionExecutionDate ? Digit.DateUtils.ConvertEpochToDate((_state14 = state) === null || _state14 === void 0 ? void 0 : _state14.connectionExecutionDate) : t("CS_NA"),
33444
33434
  textStyle: {
33445
33435
  whiteSpace: "pre"
33446
33436
  }
33447
- })), ((_state17 = state) === null || _state17 === void 0 ? void 0 : (_state17$applicationT = _state17.applicationType) === null || _state17$applicationT === void 0 ? void 0 : _state17$applicationT.includes("WATER")) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, {
33437
+ })), ((_state15 = state) === null || _state15 === void 0 ? void 0 : (_state15$applicationT = _state15.applicationType) === null || _state15$applicationT === void 0 ? void 0 : _state15$applicationT.includes("WATER")) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, {
33448
33438
  className: "border-none",
33449
33439
  label: t("WS_SERV_DETAIL_WATER_SOURCE"),
33450
- text: t("WS_SERVICES_MASTERS_WATERSOURCE_" + stringReplaceAll((_state18 = state) === null || _state18 === void 0 ? void 0 : (_state18$waterSource = _state18.waterSource) === null || _state18$waterSource === void 0 ? void 0 : (_state18$waterSource$ = _state18$waterSource.split(".")) === null || _state18$waterSource$ === void 0 ? void 0 : _state18$waterSource$[0], ".", "_")) || t("WS_SERVICES_MASTERS_WATERSOURCE_" + stringReplaceAll((_state19 = state) === null || _state19 === void 0 ? void 0 : _state19.waterSource, ".", "_")) || t("CS_NA"),
33440
+ text: t("WS_SERVICES_MASTERS_WATERSOURCE_" + stringReplaceAll((_state16 = state) === null || _state16 === void 0 ? void 0 : (_state16$waterSource = _state16.waterSource) === null || _state16$waterSource === void 0 ? void 0 : (_state16$waterSource$ = _state16$waterSource.split(".")) === null || _state16$waterSource$ === void 0 ? void 0 : _state16$waterSource$[0], ".", "_")) || t("WS_SERVICES_MASTERS_WATERSOURCE_" + stringReplaceAll((_state17 = state) === null || _state17 === void 0 ? void 0 : _state17.waterSource, ".", "_")) || t("CS_NA"),
33451
33441
  textStyle: {
33452
33442
  whiteSpace: "pre"
33453
33443
  }
33454
33444
  }), /*#__PURE__*/React.createElement(Row, {
33455
33445
  className: "border-none",
33456
33446
  label: t("WS_SERV_DETAIL_WATER_SUB_SOURCE"),
33457
- text: t((_state20 = state) === null || _state20 === void 0 ? void 0 : (_state20$waterSource = _state20.waterSource) === null || _state20$waterSource === void 0 ? void 0 : (_state20$waterSource$ = _state20$waterSource.split(".")) === null || _state20$waterSource$ === void 0 ? void 0 : _state20$waterSource$[1]) || t("CS_NA"),
33447
+ text: t((_state18 = state) === null || _state18 === void 0 ? void 0 : (_state18$waterSource = _state18.waterSource) === null || _state18$waterSource === void 0 ? void 0 : (_state18$waterSource$ = _state18$waterSource.split(".")) === null || _state18$waterSource$ === void 0 ? void 0 : _state18$waterSource$[1]) || t("CS_NA"),
33458
33448
  textStyle: {
33459
33449
  whiteSpace: "pre"
33460
33450
  }
33461
33451
  }), /*#__PURE__*/React.createElement(Row, {
33462
33452
  className: "border-none",
33463
33453
  label: t("WS_SERV_DETAIL_CONN_EXECUTION_DATE"),
33464
- text: Digit.DateUtils.ConvertEpochToDate((_state21 = state) === null || _state21 === void 0 ? void 0 : _state21.connectionExecutionDate) || t("NA"),
33454
+ text: Digit.DateUtils.ConvertEpochToDate((_state19 = state) === null || _state19 === void 0 ? void 0 : _state19.connectionExecutionDate) || t("NA"),
33465
33455
  textStyle: {
33466
33456
  whiteSpace: "pre"
33467
33457
  }
33468
33458
  }), /*#__PURE__*/React.createElement(Row, {
33469
33459
  className: "border-none",
33470
33460
  label: t("WS_SERV_DETAIL_METER_ID"),
33471
- text: (_state22 = state) === null || _state22 === void 0 ? void 0 : _state22.meterId,
33461
+ text: (_state20 = state) === null || _state20 === void 0 ? void 0 : _state20.meterId,
33472
33462
  textStyle: {
33473
33463
  whiteSpace: "pre"
33474
33464
  }
33475
33465
  }), /*#__PURE__*/React.createElement(Row, {
33476
33466
  className: "border-none",
33477
33467
  label: t("WS_ADDN_DETAIL_METER_INSTALL_DATE"),
33478
- text: Digit.DateUtils.ConvertEpochToDate((_state23 = state) === null || _state23 === void 0 ? void 0 : _state23.meterInstallationDate) || "NA",
33468
+ text: Digit.DateUtils.ConvertEpochToDate((_state21 = state) === null || _state21 === void 0 ? void 0 : _state21.meterInstallationDate) || "NA",
33479
33469
  textStyle: {
33480
33470
  whiteSpace: "pre"
33481
33471
  }
33482
33472
  }), /*#__PURE__*/React.createElement(Row, {
33483
33473
  className: "border-none",
33484
33474
  label: t("WS_ADDN_DETAILS_INITIAL_METER_READING"),
33485
- text: ((_state24 = state) === null || _state24 === void 0 ? void 0 : (_state24$additionalDe = _state24.additionalDetails) === null || _state24$additionalDe === void 0 ? void 0 : _state24$additionalDe.initialMeterReading) || "NA",
33475
+ text: ((_state22 = state) === null || _state22 === void 0 ? void 0 : (_state22$additionalDe = _state22.additionalDetails) === null || _state22$additionalDe === void 0 ? void 0 : _state22$additionalDe.initialMeterReading) || "NA",
33486
33476
  textStyle: {
33487
33477
  whiteSpace: "pre"
33488
33478
  }
33489
- })), ((_state25 = state) === null || _state25 === void 0 ? void 0 : (_state25$applicationT = _state25.applicationType) === null || _state25$applicationT === void 0 ? void 0 : _state25$applicationT.includes("WATER")) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, {
33479
+ })), ((_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, {
33490
33480
  className: "border-none",
33491
33481
  label: t("WS_WATER_DEMAND_TYPE"),
33492
- text: (_state26 = state) !== null && _state26 !== void 0 && (_state26$additionalDe = _state26.additionalDetails) !== null && _state26$additionalDe !== void 0 && (_state26$additionalDe2 = _state26$additionalDe.waterDemandType) !== null && _state26$additionalDe2 !== void 0 && _state26$additionalDe2.i18nKey ? t((_state27 = state) === null || _state27 === void 0 ? void 0 : (_state27$additionalDe = _state27.additionalDetails) === null || _state27$additionalDe === void 0 ? void 0 : (_state27$additionalDe2 = _state27$additionalDe.waterDemandType) === null || _state27$additionalDe2 === void 0 ? void 0 : _state27$additionalDe2.i18nKey) : "NA",
33482
+ 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",
33493
33483
  textStyle: {
33494
33484
  whiteSpace: "pre"
33495
33485
  }
33496
33486
  }), /*#__PURE__*/React.createElement(Row, {
33497
33487
  className: "border-none",
33498
33488
  label: t("WS_CATEGORY_TYPE"),
33499
- text: ((_state28 = state) === null || _state28 === void 0 ? void 0 : (_state28$additionalDe = _state28.additionalDetails) === null || _state28$additionalDe === void 0 ? void 0 : _state28$additionalDe.categoryType) || "NA",
33489
+ text: ((_state26 = state) === null || _state26 === void 0 ? void 0 : (_state26$additionalDe = _state26.additionalDetails) === null || _state26$additionalDe === void 0 ? void 0 : _state26$additionalDe.categoryType) || "NA",
33500
33490
  textStyle: {
33501
33491
  whiteSpace: "pre"
33502
33492
  }
33503
33493
  }), /*#__PURE__*/React.createElement(Row, {
33504
33494
  className: "border-none",
33505
33495
  label: t("WS_ZRO_NAME"),
33506
- text: ((_state29 = state) === null || _state29 === void 0 ? void 0 : (_state29$additionalDe = _state29.additionalDetails) === null || _state29$additionalDe === void 0 ? void 0 : _state29$additionalDe.zro) || "NA",
33496
+ text: ((_state27 = state) === null || _state27 === void 0 ? void 0 : (_state27$additionalDe = _state27.additionalDetails) === null || _state27$additionalDe === void 0 ? void 0 : _state27$additionalDe.zro) || "NA",
33507
33497
  textStyle: {
33508
33498
  whiteSpace: "pre"
33509
33499
  }
33510
33500
  }), /*#__PURE__*/React.createElement(Row, {
33511
33501
  className: "border-none",
33512
33502
  label: t("WS_CONNECTION_USAGE_TYPE"),
33513
- text: ((_state30 = state) === null || _state30 === void 0 ? void 0 : (_state30$additionalDe = _state30.additionalDetails) === null || _state30$additionalDe === void 0 ? void 0 : (_state30$additionalDe2 = _state30$additionalDe.WaterConnectionUsageType) === null || _state30$additionalDe2 === void 0 ? void 0 : _state30$additionalDe2.name) || "NA",
33503
+ 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",
33514
33504
  textStyle: {
33515
33505
  whiteSpace: "pre"
33516
33506
  }
33517
33507
  }), /*#__PURE__*/React.createElement(Row, {
33518
33508
  className: "border-none",
33519
33509
  label: t("WS_TEMPORARY_CONNECTION"),
33520
- text: ((_state31 = state) === null || _state31 === void 0 ? void 0 : (_state31$additionalDe = _state31.additionalDetails) === null || _state31$additionalDe === void 0 ? void 0 : _state31$additionalDe.temporaryConnection) || "NA",
33510
+ text: ((_state29 = state) === null || _state29 === void 0 ? void 0 : (_state29$additionalDe = _state29.additionalDetails) === null || _state29$additionalDe === void 0 ? void 0 : _state29$additionalDe.temporaryConnection) || "NA",
33521
33511
  textStyle: {
33522
33512
  whiteSpace: "pre"
33523
33513
  }
33524
- })), ((_state32 = state) === null || _state32 === void 0 ? void 0 : _state32.connectionType) === "Metered" && /*#__PURE__*/React.createElement(Link, {
33525
- to: "/digit-ui/citizen/ws/consumption/details?applicationNo=" + ((_state33 = state) === null || _state33 === void 0 ? void 0 : _state33.connectionNo)
33514
+ })), ((_state30 = state) === null || _state30 === void 0 ? void 0 : _state30.connectionType) === "Metered" && /*#__PURE__*/React.createElement(Link, {
33515
+ to: "/digit-ui/citizen/ws/consumption/details?applicationNo=" + ((_state31 = state) === null || _state31 === void 0 ? void 0 : _state31.connectionNo)
33526
33516
  }, /*#__PURE__*/React.createElement(LinkButton, {
33527
33517
  style: {
33528
33518
  textAlign: "left",
@@ -33537,11 +33527,11 @@ const ConnectionDetails$5 = () => {
33537
33527
  }, t("WS_COMMON_PROPERTY_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
33538
33528
  className: "border-none",
33539
33529
  label: t("WS_PROPERTY_ID_LABEL"),
33540
- text: (_state34 = state) === null || _state34 === void 0 ? void 0 : _state34.propertyId
33530
+ text: (_state32 = state) === null || _state32 === void 0 ? void 0 : _state32.propertyId
33541
33531
  }), /*#__PURE__*/React.createElement(Row, {
33542
33532
  className: "border-none",
33543
33533
  label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
33544
- text: (_state35 = state) === null || _state35 === void 0 ? void 0 : (_state35$property = _state35.property) === null || _state35$property === void 0 ? void 0 : (_state35$property$own = _state35$property.owners) === null || _state35$property$own === void 0 ? void 0 : _state35$property$own.map(owner => owner.name).join(","),
33534
+ 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(","),
33545
33535
  textStyle: {
33546
33536
  whiteSpace: "pre"
33547
33537
  }
@@ -33576,33 +33566,33 @@ const ConnectionDetails$5 = () => {
33576
33566
  }), /*#__PURE__*/React.createElement(Row, {
33577
33567
  className: "border-none",
33578
33568
  label: t("WS_PROPERTY_TYPE"),
33579
- text: ((_state36 = state) === null || _state36 === void 0 ? void 0 : (_state36$additionalDe = _state36.additionalDetails) === null || _state36$additionalDe === void 0 ? void 0 : (_state36$additionalDe2 = _state36$additionalDe.propertyType) === null || _state36$additionalDe2 === void 0 ? void 0 : _state36$additionalDe2.name) || "NA"
33569
+ 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"
33580
33570
  }), /*#__PURE__*/React.createElement(Row, {
33581
33571
  className: "border-none",
33582
33572
  label: t("WS_PROPERTY_CATEGORY"),
33583
- text: ((_state37 = state) === null || _state37 === void 0 ? void 0 : (_state37$additionalDe = _state37.additionalDetails) === null || _state37$additionalDe === void 0 ? void 0 : (_state37$additionalDe2 = _state37$additionalDe.propertyCategory) === null || _state37$additionalDe2 === void 0 ? void 0 : _state37$additionalDe2.name) || "NA"
33573
+ 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"
33584
33574
  }), /*#__PURE__*/React.createElement(Row, {
33585
33575
  className: "border-none",
33586
33576
  label: t("WS_PLOT_AREA"),
33587
- text: ((_state38 = state) === null || _state38 === void 0 ? void 0 : (_state38$additionalDe = _state38.additionalDetails) === null || _state38$additionalDe === void 0 ? void 0 : _state38$additionalDe.plotArea) || "NA"
33577
+ text: ((_state36 = state) === null || _state36 === void 0 ? void 0 : (_state36$additionalDe = _state36.additionalDetails) === null || _state36$additionalDe === void 0 ? void 0 : _state36$additionalDe.plotArea) || "NA"
33588
33578
  }), /*#__PURE__*/React.createElement(Row, {
33589
33579
  className: "border-none",
33590
33580
  label: t("WS_BUILT_UP_AREA"),
33591
- text: ((_state39 = state) === null || _state39 === void 0 ? void 0 : (_state39$additionalDe = _state39.additionalDetails) === null || _state39$additionalDe === void 0 ? void 0 : _state39$additionalDe.builtUpArea) || "NA"
33581
+ text: ((_state37 = state) === null || _state37 === void 0 ? void 0 : (_state37$additionalDe = _state37.additionalDetails) === null || _state37$additionalDe === void 0 ? void 0 : _state37$additionalDe.builtUpArea) || "NA"
33592
33582
  }), /*#__PURE__*/React.createElement(Row, {
33593
33583
  className: "border-none",
33594
33584
  label: t("WS_NO_OF_FLOORS"),
33595
- text: ((_state40 = state) === null || _state40 === void 0 ? void 0 : (_state40$additionalDe = _state40.additionalDetails) === null || _state40$additionalDe === void 0 ? void 0 : _state40$additionalDe.noOfFloors) || "NA"
33585
+ text: ((_state38 = state) === null || _state38 === void 0 ? void 0 : (_state38$additionalDe = _state38.additionalDetails) === null || _state38$additionalDe === void 0 ? void 0 : _state38$additionalDe.noOfFloors) || "NA"
33596
33586
  }), /*#__PURE__*/React.createElement(Row, {
33597
33587
  className: "border-none",
33598
33588
  label: t("WS_NO_OF_DWELLING_UNITS"),
33599
- text: ((_state41 = state) === null || _state41 === void 0 ? void 0 : (_state41$additionalDe = _state41.additionalDetails) === null || _state41$additionalDe === void 0 ? void 0 : _state41$additionalDe.NumberofDwellingUnits) || "NA"
33589
+ text: ((_state39 = state) === null || _state39 === void 0 ? void 0 : (_state39$additionalDe = _state39.additionalDetails) === null || _state39$additionalDe === void 0 ? void 0 : _state39$additionalDe.NumberofDwellingUnits) || "NA"
33600
33590
  }), /*#__PURE__*/React.createElement(Row, {
33601
33591
  className: "border-none",
33602
33592
  label: t("WS_LOCALITY"),
33603
- text: ((_state42 = state) === null || _state42 === void 0 ? void 0 : (_state42$additionalDe = _state42.additionalDetails) === null || _state42$additionalDe === void 0 ? void 0 : _state42$additionalDe.locality) || "NA"
33593
+ text: ((_state40 = state) === null || _state40 === void 0 ? void 0 : (_state40$additionalDe = _state40.additionalDetails) === null || _state40$additionalDe === void 0 ? void 0 : _state40$additionalDe.locality) || "NA"
33604
33594
  }), /*#__PURE__*/React.createElement(Link, {
33605
- to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((_state43 = state) === null || _state43 === void 0 ? void 0 : _state43.propertyId) + "&tenantId=" + ((_state44 = state) === null || _state44 === void 0 ? void 0 : _state44.tenantId)
33595
+ 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)
33606
33596
  }, /*#__PURE__*/React.createElement(LinkButton, {
33607
33597
  style: {
33608
33598
  textAlign: "left",
@@ -33614,10 +33604,10 @@ const ConnectionDetails$5 = () => {
33614
33604
  styles: {
33615
33605
  fontSize: "28px"
33616
33606
  }
33617
- }, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), (_state45 = state) !== null && _state45 !== void 0 && _state45.connectionHolders ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
33607
+ }, 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, {
33618
33608
  className: "border-none",
33619
33609
  label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
33620
- text: (_state46 = state) === null || _state46 === void 0 ? void 0 : (_state46$connectionHo = _state46.connectionHolders) === null || _state46$connectionHo === void 0 ? void 0 : (_state46$connectionHo2 = _state46$connectionHo[0]) === null || _state46$connectionHo2 === void 0 ? void 0 : _state46$connectionHo2.name,
33610
+ 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,
33621
33611
  textStyle: {
33622
33612
  whiteSpace: "pre"
33623
33613
  }
@@ -33743,32 +33733,32 @@ const ConnectionDetails$5 = () => {
33743
33733
  }, t("WS_COMMON_BANK_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
33744
33734
  className: "border-none",
33745
33735
  label: t("WS_BANK_NAME"),
33746
- text: ((_state47 = state) === null || _state47 === void 0 ? void 0 : (_state47$additionalDe = _state47.additionalDetails) === null || _state47$additionalDe === void 0 ? void 0 : _state47$additionalDe.bankName) || "NA"
33736
+ text: ((_state45 = state) === null || _state45 === void 0 ? void 0 : (_state45$additionalDe = _state45.additionalDetails) === null || _state45$additionalDe === void 0 ? void 0 : _state45$additionalDe.bankName) || "NA"
33747
33737
  }), /*#__PURE__*/React.createElement(Row, {
33748
33738
  className: "border-none",
33749
33739
  label: t("WS_BANK_BRANCH_NAME"),
33750
- text: ((_state48 = state) === null || _state48 === void 0 ? void 0 : (_state48$additionalDe = _state48.additionalDetails) === null || _state48$additionalDe === void 0 ? void 0 : _state48$additionalDe.bankBranchName) || "NA"
33740
+ text: ((_state46 = state) === null || _state46 === void 0 ? void 0 : (_state46$additionalDe = _state46.additionalDetails) === null || _state46$additionalDe === void 0 ? void 0 : _state46$additionalDe.bankBranchName) || "NA"
33751
33741
  }), /*#__PURE__*/React.createElement(Row, {
33752
33742
  className: "border-none",
33753
33743
  label: t("WS_BANK_ACCOUNT_NUMBER"),
33754
- text: ((_state49 = state) === null || _state49 === void 0 ? void 0 : (_state49$additionalDe = _state49.additionalDetails) === null || _state49$additionalDe === void 0 ? void 0 : _state49$additionalDe.accountNumber) || ((_state50 = state) === null || _state50 === void 0 ? void 0 : (_state50$additionalDe = _state50.additionalDetails) === null || _state50$additionalDe === void 0 ? void 0 : _state50$additionalDe.bankAccountNumber) || "NA"
33744
+ 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"
33755
33745
  }), /*#__PURE__*/React.createElement(Row, {
33756
33746
  className: "border-none",
33757
33747
  label: t("WS_BANK_IFSC_CODE"),
33758
- text: ((_state51 = state) === null || _state51 === void 0 ? void 0 : (_state51$additionalDe = _state51.additionalDetails) === null || _state51$additionalDe === void 0 ? void 0 : _state51$additionalDe.ifscCode) || "NA"
33748
+ text: ((_state49 = state) === null || _state49 === void 0 ? void 0 : (_state49$additionalDe = _state49.additionalDetails) === null || _state49$additionalDe === void 0 ? void 0 : _state49$additionalDe.ifscCode) || "NA"
33759
33749
  })), /*#__PURE__*/React.createElement(CardHeader, {
33760
33750
  styles: {
33761
33751
  fontSize: "28px"
33762
33752
  }
33763
- }, t("WS_COMMON_BANK_DETAILS")), ((_state52 = state) === null || _state52 === void 0 ? void 0 : _state52.documents) && ((_state53 = state) === null || _state53 === void 0 ? void 0 : _state53.documents.map((doc, index) => {
33764
- var _doc$documentType, _state54, _state55;
33753
+ }, 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) => {
33754
+ var _doc$documentType, _state52, _state53;
33765
33755
  return /*#__PURE__*/React.createElement("div", {
33766
33756
  key: "doc-" + index
33767
33757
  }, /*#__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, {
33768
- value: (_state54 = state) === null || _state54 === void 0 ? void 0 : _state54.documents,
33758
+ value: (_state52 = state) === null || _state52 === void 0 ? void 0 : _state52.documents,
33769
33759
  Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
33770
33760
  index: index
33771
- }), ((_state55 = state) === null || _state55 === void 0 ? void 0 : _state55.documents.length) != index + 1 ? /*#__PURE__*/React.createElement("hr", {
33761
+ }), ((_state53 = state) === null || _state53 === void 0 ? void 0 : _state53.documents.length) != index + 1 ? /*#__PURE__*/React.createElement("hr", {
33772
33762
  style: {
33773
33763
  color: "#cccccc",
33774
33764
  backgroundColor: "#cccccc",
@@ -33777,7 +33767,7 @@ const ConnectionDetails$5 = () => {
33777
33767
  marginBottom: "20px"
33778
33768
  }
33779
33769
  }) : null)));
33780
- })), (((_state56 = state) === null || _state56 === void 0 ? void 0 : _state56.status) !== "inactive" || ((_state57 = state) === null || _state57 === void 0 ? void 0 : _state57.applicationStatus) !== "Inactive" || ((_state58 = state) === null || _state58 === void 0 ? void 0 : _state58.applicationStatus) !== "INACTIVE") && !isDisconnectionDone ? /*#__PURE__*/React.createElement(ActionBar, {
33770
+ })), (((_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, {
33781
33771
  style: {
33782
33772
  position: "relative",
33783
33773
  boxShadow: "none",
@@ -33792,23 +33782,13 @@ const ConnectionDetails$5 = () => {
33792
33782
  style: {
33793
33783
  width: "100%"
33794
33784
  }
33795
- }, /*#__PURE__*/React.createElement(SubmitBar, {
33796
- style: {
33797
- width: "100%"
33798
- },
33799
- label: t("WS_MUTATION_BUTTON"),
33800
- onSubmit: onActionSelectMutation
33801
- })), /*#__PURE__*/React.createElement("div", {
33802
- style: {
33803
- width: "100%"
33804
- }
33805
33785
  }, /*#__PURE__*/React.createElement(SubmitBar, {
33806
33786
  style: {
33807
33787
  width: "100%"
33808
33788
  },
33809
33789
  label: t("WS_DISCONNECTION_BUTTON"),
33810
33790
  onSubmit: onActionSelect
33811
- }))) : ((_state59 = state) === null || _state59 === void 0 ? void 0 : _state59.applicationStatus) == "DISCONNECTION_EXECUTED" && ((_state60 = state) === null || _state60 === void 0 ? void 0 : _state60.status) == "Inactive" && ((_state61 = state) === null || _state61 === void 0 ? void 0 : _state61.isDisconnectionTemporary) && /*#__PURE__*/React.createElement(ActionBar, {
33791
+ }))) : ((_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, {
33812
33792
  style: {
33813
33793
  position: "relative",
33814
33794
  boxShadow: "none",
@@ -33840,8 +33820,8 @@ const ConnectionDetails$5 = () => {
33840
33820
  actionSingleLabel: t("COMMON_MAKE_PAYMENT"),
33841
33821
  hideSubmit: true,
33842
33822
  actionSingleSubmit: () => {
33843
- var _state62, _state63;
33844
- history.push("/digit-ui/citizen/payment/collect/" + (isSW ? "SW" : "WS") + "/" + encodeURIComponent((_state62 = state) === null || _state62 === void 0 ? void 0 : _state62.connectionNo) + "/" + tenantId + "?consumerCode=" + ((_state63 = state) === null || _state63 === void 0 ? void 0 : _state63.connectionNo) + "&&tenantId=" + tenantId + "&&workflow=WNS");
33823
+ var _state60, _state61;
33824
+ 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");
33845
33825
  setshowModal(false);
33846
33826
  },
33847
33827
  popupStyles: mobileView ? {
@@ -44918,7 +44898,7 @@ function PropertyDocuments(_ref) {
44918
44898
  });
44919
44899
  });
44920
44900
  const allChecked = requiredDocsCount === 0 || checkedCount === requiredDocsCount;
44921
- const isDocVerifState = !applicationStatus || applicationStatus === "PENDING_FOR_DOCUMENT_VERIFICATION";
44901
+ const isDocVerifState = !applicationStatus || applicationStatus === "PENDING_FOR_DOCUMENT_VERIFICATION" || applicationStatus === "PENDING_APPROVAL_FOR_MUTATION";
44922
44902
  const finalVerified = isDocVerifState ? allChecked : true;
44923
44903
  window.isDocumentsVerified = finalVerified;
44924
44904
  window.dispatchEvent(new CustomEvent("DOCUMENTS_VERIFIED", {
@@ -45154,7 +45134,7 @@ function PropertyDocuments(_ref) {
45154
45134
  style: {
45155
45135
  cursor: "pointer"
45156
45136
  }
45157
- }, /*#__PURE__*/React.createElement(ViewsIcon, null)), !isPhoto && ((_ref3, _checkedMap$value$fil2, _value$originalDoc2, _value$originalDoc3, _value$originalDoc4) => {
45137
+ }, /*#__PURE__*/React.createElement(ViewsIcon, null)), !isPhoto && ((_ref3, _checkedMap$value$fil2, _value$originalDoc2, _value$originalDoc3, _ref4, _checkedMap$value$fil3, _value$originalDoc4) => {
45158
45138
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
45159
45139
  onClick: () => {
45160
45140
  if (fileUrl) {
@@ -45203,10 +45183,10 @@ function PropertyDocuments(_ref) {
45203
45183
  width: "18px",
45204
45184
  height: "18px",
45205
45185
  accentColor: "#F47738",
45206
- cursor: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" ? "not-allowed" : "pointer"
45186
+ cursor: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" && applicationStatus !== "PENDING_APPROVAL_FOR_MUTATION" ? "not-allowed" : "pointer"
45207
45187
  },
45208
- disabled: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION",
45209
- defaultChecked: value === null || value === void 0 ? void 0 : (_value$originalDoc4 = value.originalDoc) === null || _value$originalDoc4 === void 0 ? void 0 : _value$originalDoc4.isVerified,
45188
+ disabled: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" && applicationStatus !== "PENDING_APPROVAL_FOR_MUTATION" && applicationStatus !== "ACTIVATE_MUTATION",
45189
+ checked: applicationStatus === "PENDING_FOR_MUTATION_ACTIVATION" || ((_ref4 = (_checkedMap$value$fil3 = checkedMap[value === null || value === void 0 ? void 0 : value.fileStoreId]) != null ? _checkedMap$value$fil3 : value === null || value === void 0 ? void 0 : (_value$originalDoc4 = value.originalDoc) === null || _value$originalDoc4 === void 0 ? void 0 : _value$originalDoc4.isVerified) != null ? _ref4 : false),
45210
45190
  onChange: e => {
45211
45191
  const checked = e.target.checked;
45212
45192
  if (value !== null && value !== void 0 && value.originalDoc) {
@@ -46586,6 +46566,7 @@ function ApplicationDetailsContent(_ref) {
46586
46566
  workflowDetails = _ref.workflowDetails,
46587
46567
  isDataLoading = _ref.isDataLoading,
46588
46568
  applicationData = _ref.applicationData,
46569
+ businessService = _ref.businessService,
46589
46570
  timelineStatusPrefix = _ref.timelineStatusPrefix,
46590
46571
  _ref$showTimeLine = _ref.showTimeLine,
46591
46572
  showTimeLine = _ref$showTimeLine === void 0 ? true : _ref$showTimeLine,
@@ -46861,7 +46842,7 @@ function ApplicationDetailsContent(_ref) {
46861
46842
  infoClickInfoLabel: getClickInfoDetails(),
46862
46843
  infoClickInfoLabel1: getClickInfoDetails1()
46863
46844
  }) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationDetails) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.map((detail, index) => {
46864
- var _detail$title, _detail$values, _detail$additionalDet, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _detail$additionalDet2, _applicationDetails$a5, _applicationDetails$a6, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet0, _detail$additionalDet1, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _detail$additionalDet20, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27, _detail$additionalDet28, _detail$additionalDet29;
46845
+ var _detail$title, _detail$values, _detail$additionalDet, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _detail$additionalDet2, _applicationDetails$a5, _applicationDetails$a6, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet0, _detail$additionalDet1, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _applicationData$appl, _detail$additionalDet20, _applicationData$appl2, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27, _detail$additionalDet28, _detail$additionalDet29;
46865
46846
  return /*#__PURE__*/React.createElement(React.Fragment, {
46866
46847
  key: index
46867
46848
  }, /*#__PURE__*/React.createElement("div", {
@@ -47092,9 +47073,9 @@ function ApplicationDetailsContent(_ref) {
47092
47073
  }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.documents) && /*#__PURE__*/React.createElement(PropertyDocuments, {
47093
47074
  documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents,
47094
47075
  applicationStatus: applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus
47095
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_APPROVAL_FOR_CONNECTION", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_RECONNECTION", "PENDING_FOR_DUE_VERIFICATION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(DueVerification, {
47076
+ }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && !(applicationData !== null && applicationData !== void 0 && (_applicationData$appl = applicationData.applicationType) !== null && _applicationData$appl !== void 0 && _applicationData$appl.includes("MUTATION")) && !(businessService !== null && businessService !== void 0 && businessService.includes("MUTATION")) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_APPROVAL_FOR_CONNECTION", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_RECONNECTION", "PENDING_FOR_DUE_VERIFICATION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(DueVerification, {
47096
47077
  applicationData: applicationData
47097
- }), " ", (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(InspectionInformation, {
47078
+ }), " ", (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && !(applicationData !== null && applicationData !== void 0 && (_applicationData$appl2 = applicationData.applicationType) !== null && _applicationData$appl2 !== void 0 && _applicationData$appl2.includes("MUTATION")) && !(businessService !== null && businessService !== void 0 && businessService.includes("MUTATION")) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(InspectionInformation, {
47098
47079
  applicationData: applicationData
47099
47080
  }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React.createElement(PropertyEstimates, {
47100
47081
  taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
@@ -48225,16 +48206,16 @@ const ApplicationDetails$1 = () => {
48225
48206
  };
48226
48207
 
48227
48208
  const GetConnectionDetails = () => {
48228
- var _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a10, _applicationDetails$a11, _applicationDetails$a12, _mdmsCommonmastersDat, _applicationDetails$a14, _applicationDetails$a18, _applicationDetails$f7, _applicationDetails$p3, _applicationDetails$p4, _applicationDetails$a19, _applicationDetails$a20, _applicationDetails$a21, _applicationDetails$f8, _applicationDetails$f9;
48209
+ var _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a10, _applicationDetails$a11, _applicationDetails$a12, _mdmsCommonmastersDat, _applicationDetails$a14, _applicationDetails$a17, _applicationDetails$f5, _applicationDetails$p2, _applicationDetails$p3, _applicationDetails$a18, _applicationDetails$a19, _applicationDetails$a20, _applicationDetails$f6, _applicationDetails$f7;
48229
48210
  const getBillSearch = function () {
48230
48211
  try {
48231
- const _temp = function (_applicationDetails$f0) {
48232
- if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f0 = applicationDetails.fetchBillsData) === null || _applicationDetails$f0 === void 0 ? void 0 : _applicationDetails$f0.length) > 0) {
48233
- var _applicationDetails$a22;
48212
+ const _temp = function (_applicationDetails$f8) {
48213
+ if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f8 = applicationDetails.fetchBillsData) === null || _applicationDetails$f8 === void 0 ? void 0 : _applicationDetails$f8.length) > 0) {
48214
+ var _applicationDetails$a21;
48234
48215
  const service = serviceType === "WATER" ? "WS" : "SW";
48235
48216
  let wsSearchFilters = {
48236
48217
  isConnectionSearch: true,
48237
- connectionNumber: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a22 = applicationDetails.applicationData) === null || _applicationDetails$a22 === void 0 ? void 0 : _applicationDetails$a22.connectionNo
48218
+ connectionNumber: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a21 = applicationDetails.applicationData) === null || _applicationDetails$a21 === void 0 ? void 0 : _applicationDetails$a21.connectionNo
48238
48219
  };
48239
48220
  return Promise.resolve(Digit.WSService.search({
48240
48221
  tenantId,
@@ -48247,8 +48228,8 @@ const GetConnectionDetails = () => {
48247
48228
  bussinessService: service
48248
48229
  };
48249
48230
  if ((wsConnectionDetails === null || wsConnectionDetails === void 0 ? void 0 : (_wsConnectionDetails$5 = wsConnectionDetails.WaterConnection) === null || _wsConnectionDetails$5 === void 0 ? void 0 : _wsConnectionDetails$5.length) > 0 || (wsConnectionDetails === null || wsConnectionDetails === void 0 ? void 0 : (_wsConnectionDetails$6 = wsConnectionDetails.SewerageConnections) === null || _wsConnectionDetails$6 === void 0 ? void 0 : _wsConnectionDetails$6.length) > 0) {
48250
- var _applicationDetails$a23;
48251
- downloadAndOpenPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a23 = applicationDetails.applicationData) === null || _applicationDetails$a23 === void 0 ? void 0 : _applicationDetails$a23.connectionNo, filters);
48231
+ var _applicationDetails$a22;
48232
+ downloadAndOpenPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a22 = applicationDetails.applicationData) === null || _applicationDetails$a22 === void 0 ? void 0 : _applicationDetails$a22.connectionNo, filters);
48252
48233
  }
48253
48234
  });
48254
48235
  }
@@ -48277,7 +48258,7 @@ const GetConnectionDetails = () => {
48277
48258
  showOptions = _useState3[0],
48278
48259
  setShowOptions = _useState3[1];
48279
48260
  const stateCode = Digit.ULBService.getStateId();
48280
- const actionConfig = ["MODIFY_CONNECTION_BUTTON", "MUTATION_BUTTON", "BILL_AMENDMENT_BUTTON", "DISCONNECTION_BUTTON"];
48261
+ const actionConfig = ["MODIFY_CONNECTION_BUTTON", "BILL_AMENDMENT_BUTTON", "DISCONNECTION_BUTTON"];
48281
48262
  const _Digit$Hooks$ws$useCo = Digit.Hooks.ws.useConnectionDetail(t, tenantId, applicationNumber, serviceType, {
48282
48263
  privacy: Digit.Utils.getPrivacyObject()
48283
48264
  }),
@@ -48379,29 +48360,8 @@ const GetConnectionDetails = () => {
48379
48360
  data: applicationDetails
48380
48361
  }));
48381
48362
  };
48382
- const getMutationButton = () => {
48383
- var _applicationDetails$f3, _applicationDetails$f4, _applicationDetails$a16, _applicationDetails$p2;
48384
- if (!checkApplicationStatus) {
48385
- setshowActionToast({
48386
- key: "error",
48387
- label: "CONN_NOT_ACTIVE"
48388
- });
48389
- return;
48390
- }
48391
- if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f3 = applicationDetails.fetchBillsData) === null || _applicationDetails$f3 === void 0 ? void 0 : (_applicationDetails$f4 = _applicationDetails$f3[0]) === null || _applicationDetails$f4 === void 0 ? void 0 : _applicationDetails$f4.totalAmount) > 0) {
48392
- setshowActionToast({
48393
- key: "error",
48394
- label: "WS_DUE_AMOUNT_SHOULD_BE_ZERO"
48395
- });
48396
- return;
48397
- }
48398
- let pathname = "/digit-ui/employee/ws/mutation-application?applicationNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a16 = applicationDetails.applicationData) === null || _applicationDetails$a16 === void 0 ? void 0 : _applicationDetails$a16.connectionNo) + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p2 = applicationDetails.propertyDetails) === null || _applicationDetails$p2 === void 0 ? void 0 : _applicationDetails$p2.propertyId) + "&from=WS_COMMON_CONNECTION_DETAIL";
48399
- history.push("" + pathname, JSON.stringify({
48400
- data: applicationDetails
48401
- }));
48402
- };
48403
48363
  const getBillAmendmentButton = () => {
48404
- var _demandData$Demands, _applicationDetails$a17;
48364
+ var _demandData$Demands, _applicationDetails$a16;
48405
48365
  let isBillAmendNotApplicable = false;
48406
48366
  billData === null || billData === void 0 ? void 0 : billData.map(bill => {
48407
48367
  if ((bill === null || bill === void 0 ? void 0 : bill.status) === "INWORKFLOW") {
@@ -48422,7 +48382,7 @@ const GetConnectionDetails = () => {
48422
48382
  });
48423
48383
  return;
48424
48384
  }
48425
- history.push("/digit-ui/employee/ws/required-documents?connectionNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a17 = applicationDetails.applicationData) === null || _applicationDetails$a17 === void 0 ? void 0 : _applicationDetails$a17.connectionNo) + "&tenantId=" + getTenantId + "&service=" + serviceType, JSON.stringify({
48385
+ history.push("/digit-ui/employee/ws/required-documents?connectionNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a16 = applicationDetails.applicationData) === null || _applicationDetails$a16 === void 0 ? void 0 : _applicationDetails$a16.connectionNo) + "&tenantId=" + getTenantId + "&service=" + serviceType, JSON.stringify({
48426
48386
  data: applicationDetails
48427
48387
  }));
48428
48388
  };
@@ -48442,9 +48402,9 @@ const GetConnectionDetails = () => {
48442
48402
  label: "WORKFLOW_IN_PROGRESS"
48443
48403
  });
48444
48404
  } else {
48445
- var _billData$, _applicationDetails$f5;
48405
+ var _billData$, _applicationDetails$f3;
48446
48406
  console.log("due", due, applicationDetails);
48447
- if (((_billData$ = billData[0]) === null || _billData$ === void 0 ? void 0 : _billData$.status) === "ACTIVE" || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f5 = applicationDetails.fetchBillsData) === null || _applicationDetails$f5 === void 0 ? void 0 : _applicationDetails$f5.length) <= 0 || due == "0" || due < 0) {
48407
+ if (((_billData$ = billData[0]) === null || _billData$ === void 0 ? void 0 : _billData$.status) === "ACTIVE" || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f3 = applicationDetails.fetchBillsData) === null || _applicationDetails$f3 === void 0 ? void 0 : _applicationDetails$f3.length) <= 0 || due == "0" || due < 0) {
48448
48408
  Digit.SessionStorage.set("WS_DISCONNECTION", applicationDetails);
48449
48409
  history.push("" + pathname);
48450
48410
  } else {
@@ -48460,8 +48420,8 @@ const GetConnectionDetails = () => {
48460
48420
  label: "WORKFLOW_IN_PROGRESS"
48461
48421
  });
48462
48422
  } else {
48463
- var _billData$2, _applicationDetails$f6;
48464
- if (((_billData$2 = billData[0]) === null || _billData$2 === void 0 ? void 0 : _billData$2.status) === "ACTIVE" || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f6 = applicationDetails.fetchBillsData) === null || _applicationDetails$f6 === void 0 ? void 0 : _applicationDetails$f6.length) <= 0 || due === "0") {
48423
+ var _billData$2, _applicationDetails$f4;
48424
+ if (((_billData$2 = billData[0]) === null || _billData$2 === void 0 ? void 0 : _billData$2.status) === "ACTIVE" || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f4 = applicationDetails.fetchBillsData) === null || _applicationDetails$f4 === void 0 ? void 0 : _applicationDetails$f4.length) <= 0 || due === "0") {
48465
48425
  Digit.SessionStorage.set("WS_DISCONNECTION", applicationDetails);
48466
48426
  history.push("" + pathname);
48467
48427
  } else {
@@ -48472,8 +48432,6 @@ const GetConnectionDetails = () => {
48472
48432
  function onActionSelect(action) {
48473
48433
  if (action === "MODIFY_CONNECTION_BUTTON") {
48474
48434
  getModifyConnectionButton();
48475
- } else if (action === "MUTATION_BUTTON") {
48476
- getMutationButton();
48477
48435
  } else if (action === "BILL_AMENDMENT_BUTTON") {
48478
48436
  getBillAmendmentButton();
48479
48437
  } else if (action === "DISCONNECTION_BUTTON") {
@@ -48482,7 +48440,7 @@ const GetConnectionDetails = () => {
48482
48440
  getRestorationButton();
48483
48441
  }
48484
48442
  }
48485
- const checkApplicationStatusForDisconnection = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a18 = applicationDetails.applicationData) === null || _applicationDetails$a18 === void 0 ? void 0 : _applicationDetails$a18.status) === "Active" ? true : false;
48443
+ const checkApplicationStatusForDisconnection = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a17 = applicationDetails.applicationData) === null || _applicationDetails$a17 === void 0 ? void 0 : _applicationDetails$a17.status) === "Active" ? true : false;
48486
48444
  const showAction = checkApplicationStatusForDisconnection ? actionConfig : actionConfig.filter(item => item !== "DISCONNECTION_BUTTON");
48487
48445
  const showActionRestoration = ["RESTORATION_BUTTON"];
48488
48446
  let dowloadOptions = [];
@@ -48496,7 +48454,7 @@ const GetConnectionDetails = () => {
48496
48454
  label: t("WS_CONNECTION_DETAILS"),
48497
48455
  onClick: () => downloadConnectionDetails()
48498
48456
  };
48499
- if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f7 = applicationDetails.fetchBillsData) === null || _applicationDetails$f7 === void 0 ? void 0 : _applicationDetails$f7.length) > 0) dowloadOptions = [appFeeDownloadReceipt, connectionDetailsReceipt];else dowloadOptions = [connectionDetailsReceipt];
48457
+ if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f5 = applicationDetails.fetchBillsData) === null || _applicationDetails$f5 === void 0 ? void 0 : _applicationDetails$f5.length) > 0) dowloadOptions = [appFeeDownloadReceipt, connectionDetailsReceipt];else dowloadOptions = [connectionDetailsReceipt];
48500
48458
  const Close = () => /*#__PURE__*/React.createElement("svg", {
48501
48459
  xmlns: "http://www.w3.org/2000/svg",
48502
48460
  viewBox: "0 0 24 24",
@@ -48545,7 +48503,7 @@ const GetConnectionDetails = () => {
48545
48503
  isDataLoading: isLoading,
48546
48504
  applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
48547
48505
  mutate: mutate,
48548
- businessService: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p3 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p3 === void 0 ? void 0 : (_applicationDetails$p4 = _applicationDetails$p3[0]) === null || _applicationDetails$p4 === void 0 ? void 0 : _applicationDetails$p4.businessService,
48506
+ businessService: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p2 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p2 === void 0 ? void 0 : (_applicationDetails$p3 = _applicationDetails$p2[0]) === null || _applicationDetails$p3 === void 0 ? void 0 : _applicationDetails$p3.businessService,
48549
48507
  moduleCode: "WS",
48550
48508
  showToast: showToast,
48551
48509
  setShowToast: setShowToast,
@@ -48563,7 +48521,7 @@ const GetConnectionDetails = () => {
48563
48521
  ref: actionMenuRef,
48564
48522
  label: t("WF_TAKE_ACTION"),
48565
48523
  onSubmit: () => setDisplayMenu(!displayMenu)
48566
- })) : applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a19 = applicationDetails.applicationData) !== null && _applicationDetails$a19 !== void 0 && _applicationDetails$a19.isDisconnectionTemporary && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a20 = applicationDetails.applicationData) === null || _applicationDetails$a20 === void 0 ? void 0 : _applicationDetails$a20.status) !== "Active" && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a21 = applicationDetails.applicationData) === null || _applicationDetails$a21 === void 0 ? void 0 : _applicationDetails$a21.applicationStatus) == "DISCONNECTION_EXECUTED" ? /*#__PURE__*/React.createElement(ActionBar, null, displayMenu ? /*#__PURE__*/React.createElement(Menu, {
48524
+ })) : applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a18 = applicationDetails.applicationData) !== null && _applicationDetails$a18 !== void 0 && _applicationDetails$a18.isDisconnectionTemporary && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a19 = applicationDetails.applicationData) === null || _applicationDetails$a19 === void 0 ? void 0 : _applicationDetails$a19.status) !== "Active" && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a20 = applicationDetails.applicationData) === null || _applicationDetails$a20 === void 0 ? void 0 : _applicationDetails$a20.applicationStatus) == "DISCONNECTION_EXECUTED" ? /*#__PURE__*/React.createElement(ActionBar, null, displayMenu ? /*#__PURE__*/React.createElement(Menu, {
48567
48525
  options: showActionRestoration,
48568
48526
  localeKeyPrefix: "WS",
48569
48527
  t: t,
@@ -48619,7 +48577,7 @@ const GetConnectionDetails = () => {
48619
48577
  className: "modal-header-ws"
48620
48578
  }, t("WS_CLEAR_DUES_DISCONNECTION_SUB_HEADER_LABEL"), " "), /*#__PURE__*/React.createElement("div", {
48621
48579
  className: "modal-body-ws"
48622
- }, /*#__PURE__*/React.createElement("span", null, t("WS_COMMON_TABLE_COL_AMT_DUE_LABEL"), ": \u20B9", due ? due : applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f8 = applicationDetails.fetchBillsData) === null || _applicationDetails$f8 === void 0 ? void 0 : (_applicationDetails$f9 = _applicationDetails$f8[0]) === null || _applicationDetails$f9 === void 0 ? void 0 : _applicationDetails$f9.totalAmount))) : null, showActionToast && /*#__PURE__*/React.createElement(Toast, {
48580
+ }, /*#__PURE__*/React.createElement("span", null, t("WS_COMMON_TABLE_COL_AMT_DUE_LABEL"), ": \u20B9", due ? due : applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f6 = applicationDetails.fetchBillsData) === null || _applicationDetails$f6 === void 0 ? void 0 : (_applicationDetails$f7 = _applicationDetails$f6[0]) === null || _applicationDetails$f7 === void 0 ? void 0 : _applicationDetails$f7.totalAmount))) : null, showActionToast && /*#__PURE__*/React.createElement(Toast, {
48623
48581
  error: showActionToast.key,
48624
48582
  label: t("" + showActionToast.label),
48625
48583
  onClose: closeBillToast
@@ -50405,10 +50363,198 @@ const EditModifyApplication = () => {
50405
50363
  }));
50406
50364
  };
50407
50365
 
50366
+ const Step1_SearchConnection = _ref => {
50367
+ let defaultKNumber = _ref.defaultKNumber,
50368
+ onNext = _ref.onNext;
50369
+ const _useState = useState(defaultKNumber || ""),
50370
+ kNumber = _useState[0],
50371
+ setKNumber = _useState[1];
50372
+ const _useState2 = useState(false),
50373
+ isLoading = _useState2[0],
50374
+ setIsLoading = _useState2[1];
50375
+ const _useState3 = useState(null),
50376
+ showToast = _useState3[0],
50377
+ setShowToast = _useState3[1];
50378
+ const handleSendOtp = function () {
50379
+ try {
50380
+ if (!kNumber) {
50381
+ setShowToast({
50382
+ key: "warning",
50383
+ message: "Please enter K Number / Connection ID"
50384
+ });
50385
+ return Promise.resolve();
50386
+ }
50387
+ setIsLoading(true);
50388
+ return Promise.resolve(_catch(function () {
50389
+ const tenantId = Digit.ULBService.getCurrentTenantId() || "dl";
50390
+ const params = {
50391
+ connectionNumber: kNumber,
50392
+ isConnectionSearch: true
50393
+ };
50394
+ let detectedServiceType = "WATER";
50395
+ return Promise.resolve(Digit.WSService.search({
50396
+ tenantId,
50397
+ filters: params,
50398
+ businessService: "WS"
50399
+ }).catch(() => null)).then(function (wsResponse) {
50400
+ var _wsResponse$WaterConn;
50401
+ function _temp2() {
50402
+ var _connection, _connection$connectio, _connection$connectio2, _connection2;
50403
+ if (!connection) {
50404
+ setIsLoading(false);
50405
+ setShowToast({
50406
+ key: "error",
50407
+ message: "Connection not found for the given K Number"
50408
+ });
50409
+ return;
50410
+ }
50411
+ const fetchedMobileNumber = ((_connection = connection) === null || _connection === void 0 ? void 0 : (_connection$connectio = _connection.connectionHolders) === null || _connection$connectio === void 0 ? void 0 : (_connection$connectio2 = _connection$connectio[0]) === null || _connection$connectio2 === void 0 ? void 0 : _connection$connectio2.mobileNumber) || ((_connection2 = connection) === null || _connection2 === void 0 ? void 0 : _connection2.mobileNumber);
50412
+ if (!fetchedMobileNumber || fetchedMobileNumber.length !== 10) {
50413
+ setIsLoading(false);
50414
+ setShowToast({
50415
+ key: "error",
50416
+ message: "No valid registered mobile number found for this connection"
50417
+ });
50418
+ return;
50419
+ }
50420
+ const userType = Digit.UserService.getType().toUpperCase();
50421
+ const payload = {
50422
+ otp: {
50423
+ mobileNumber: fetchedMobileNumber,
50424
+ tenantId: "dl",
50425
+ type: "register",
50426
+ userType: userType
50427
+ }
50428
+ };
50429
+ return Promise.resolve(Digit.UserService.sendOtp(payload, "dl")).then(function () {
50430
+ setIsLoading(false);
50431
+ onNext({
50432
+ kNumber,
50433
+ mobileNumber: fetchedMobileNumber,
50434
+ serviceType: detectedServiceType
50435
+ });
50436
+ });
50437
+ }
50438
+ let connection = wsResponse === null || wsResponse === void 0 ? void 0 : (_wsResponse$WaterConn = wsResponse.WaterConnection) === null || _wsResponse$WaterConn === void 0 ? void 0 : _wsResponse$WaterConn[0];
50439
+ const _temp = function () {
50440
+ if (!connection) {
50441
+ return Promise.resolve(Digit.WSService.search({
50442
+ tenantId,
50443
+ filters: params,
50444
+ businessService: "SW"
50445
+ }).catch(() => null)).then(function (swResponse) {
50446
+ var _swResponse$SewerageC;
50447
+ connection = swResponse === null || swResponse === void 0 ? void 0 : (_swResponse$SewerageC = swResponse.SewerageConnections) === null || _swResponse$SewerageC === void 0 ? void 0 : _swResponse$SewerageC[0];
50448
+ if (connection) detectedServiceType = "SEWERAGE";
50449
+ });
50450
+ }
50451
+ }();
50452
+ return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
50453
+ });
50454
+ }, function (err) {
50455
+ var _err$response, _err$response$data, _err$response$data$Er, _err$response$data$Er2;
50456
+ setIsLoading(false);
50457
+ setShowToast({
50458
+ key: "error",
50459
+ message: (err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : (_err$response$data$Er = _err$response$data.Errors) === null || _err$response$data$Er === void 0 ? void 0 : (_err$response$data$Er2 = _err$response$data$Er[0]) === null || _err$response$data$Er2 === void 0 ? void 0 : _err$response$data$Er2.message) || "Failed to send OTP"
50460
+ });
50461
+ }));
50462
+ } catch (e) {
50463
+ return Promise.reject(e);
50464
+ }
50465
+ };
50466
+ return /*#__PURE__*/React.createElement(Card, {
50467
+ style: {
50468
+ marginBottom: "20px"
50469
+ }
50470
+ }, /*#__PURE__*/React.createElement("div", {
50471
+ style: {
50472
+ display: "flex",
50473
+ alignItems: "center",
50474
+ marginBottom: "16px",
50475
+ flexWrap: "wrap",
50476
+ gap: "8px"
50477
+ }
50478
+ }, /*#__PURE__*/React.createElement("span", {
50479
+ style: {
50480
+ fontSize: "24px"
50481
+ }
50482
+ }, "\uD83D\uDD0D"), /*#__PURE__*/React.createElement("h2", {
50483
+ style: {
50484
+ fontSize: "18px",
50485
+ fontWeight: "700",
50486
+ margin: 0
50487
+ }
50488
+ }, "1. Connection Authentication")), /*#__PURE__*/React.createElement(CardText, null, "Please enter your K Number to proceed with the mutation application. An OTP will be sent to the registered mobile number."), /*#__PURE__*/React.createElement("div", {
50489
+ style: {
50490
+ marginBottom: "24px",
50491
+ marginTop: "16px",
50492
+ padding: "16px",
50493
+ backgroundColor: "#f9f9f9",
50494
+ borderRadius: "8px",
50495
+ borderLeft: "4px solid #00497e"
50496
+ }
50497
+ }, /*#__PURE__*/React.createElement("div", {
50498
+ style: {
50499
+ marginBottom: "16px"
50500
+ }
50501
+ }, /*#__PURE__*/React.createElement("div", {
50502
+ style: {
50503
+ fontWeight: "bold",
50504
+ marginBottom: "8px"
50505
+ }
50506
+ }, "K Number / Connection ID *"), /*#__PURE__*/React.createElement(TextInput, {
50507
+ value: kNumber,
50508
+ onChange: e => setKNumber(e.target.value),
50509
+ placeholder: "Enter K Number",
50510
+ style: {
50511
+ width: "100%",
50512
+ maxWidth: "400px"
50513
+ }
50514
+ })), /*#__PURE__*/React.createElement("div", {
50515
+ style: {
50516
+ display: "flex",
50517
+ justifyContent: "flex-end"
50518
+ }
50519
+ }, /*#__PURE__*/React.createElement("button", {
50520
+ onClick: handleSendOtp,
50521
+ disabled: isLoading,
50522
+ style: {
50523
+ padding: "10px 20px",
50524
+ backgroundColor: "#00497e",
50525
+ color: "white",
50526
+ border: "none",
50527
+ borderRadius: "4px",
50528
+ cursor: "pointer",
50529
+ fontWeight: "bold",
50530
+ opacity: isLoading ? 0.7 : 1,
50531
+ width: "100%",
50532
+ maxWidth: "200px"
50533
+ }
50534
+ }, isLoading ? "Sending OTP..." : "Send OTP →"))), showToast && /*#__PURE__*/React.createElement(Toast, {
50535
+ error: showToast.key === "error",
50536
+ warning: showToast.key === "warning",
50537
+ label: showToast.message,
50538
+ onClose: () => setShowToast(null),
50539
+ isDleteBtn: true
50540
+ }));
50541
+ };
50542
+
50408
50543
  const Step1_ExistingConnection = _ref => {
50409
50544
  var _appData$connectionHo, _propertyData$Propert, _propertyData$Propert2, _appData$property, _propertyAddress$loca;
50410
50545
  let applicationDetails = _ref.applicationDetails,
50411
- propertyId = _ref.propertyId;
50546
+ propertyId = _ref.propertyId,
50547
+ mobileNumber = _ref.mobileNumber,
50548
+ onVerify = _ref.onVerify;
50549
+ const _useState = useState(""),
50550
+ otp = _useState[0],
50551
+ setOtp = _useState[1];
50552
+ const _useState2 = useState(false),
50553
+ isLoading = _useState2[0],
50554
+ setIsLoading = _useState2[1];
50555
+ const _useState3 = useState(null),
50556
+ showToast = _useState3[0],
50557
+ setShowToast = _useState3[1];
50412
50558
  const getMaskedName = name => {
50413
50559
  if (!name) return "NA";
50414
50560
  return name.split("").map((char, index) => index % 2 === 1 && char !== " " ? "*" : char).join("");
@@ -50424,13 +50570,17 @@ const Step1_ExistingConnection = _ref => {
50424
50570
  const holderDetails = (appData === null || appData === void 0 ? void 0 : (_appData$connectionHo = appData.connectionHolders) === null || _appData$connectionHo === void 0 ? void 0 : _appData$connectionHo[0]) || {};
50425
50571
  const registeredName = getMaskedName(holderDetails === null || holderDetails === void 0 ? void 0 : holderDetails.name);
50426
50572
  const registeredPhone = getMaskedPhone(holderDetails === null || holderDetails === void 0 ? void 0 : holderDetails.mobileNumber);
50427
- const tenantId = Digit.ULBService.getCurrentTenantId();
50573
+ const tenantId = (appData === null || appData === void 0 ? void 0 : appData.tenantId) || Digit.ULBService.getCurrentTenantId();
50428
50574
  const _Digit$Hooks$pt$usePr = Digit.Hooks.pt.usePropertySearch({
50429
50575
  filters: {
50430
50576
  propertyIds: propertyId
50431
50577
  },
50432
50578
  tenantId
50433
50579
  }, {
50580
+ filters: {
50581
+ propertyIds: propertyId
50582
+ },
50583
+ tenantId,
50434
50584
  enabled: !!propertyId
50435
50585
  }),
50436
50586
  propertyData = _Digit$Hooks$pt$usePr.data;
@@ -50440,29 +50590,71 @@ const Step1_ExistingConnection = _ref => {
50440
50590
  if (connectionNo === "NA") missingFields.push("Connection Number");
50441
50591
  if (registeredName === "NA") missingFields.push("Owner Name");
50442
50592
  if (formattedAddress === "NA") missingFields.push("Property Address");
50593
+ const handleVerifyOtp = function () {
50594
+ try {
50595
+ if (!otp || otp.length < 6) {
50596
+ setShowToast({
50597
+ key: "warning",
50598
+ message: "Please enter a valid 6-digit OTP"
50599
+ });
50600
+ return Promise.resolve();
50601
+ }
50602
+ setIsLoading(true);
50603
+ const _temp = _catch(function () {
50604
+ const payload = {
50605
+ otp: {
50606
+ otp: otp,
50607
+ identity: mobileNumber,
50608
+ tenantId: "dl"
50609
+ }
50610
+ };
50611
+ return Promise.resolve(Digit.UserService.validateOtp(payload)).then(function () {
50612
+ setIsLoading(false);
50613
+ onVerify();
50614
+ });
50615
+ }, function (err) {
50616
+ var _err$response, _err$response$data, _err$response$data$Er, _err$response$data$Er2;
50617
+ setIsLoading(false);
50618
+ setShowToast({
50619
+ key: "error",
50620
+ message: (err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : (_err$response$data$Er = _err$response$data.Errors) === null || _err$response$data$Er === void 0 ? void 0 : (_err$response$data$Er2 = _err$response$data$Er[0]) === null || _err$response$data$Er2 === void 0 ? void 0 : _err$response$data$Er2.message) || err.message || "Failed to verify OTP"
50621
+ });
50622
+ });
50623
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
50624
+ } catch (e) {
50625
+ return Promise.reject(e);
50626
+ }
50627
+ };
50628
+ const infoItemStyle = {
50629
+ display: "flex",
50630
+ flexDirection: "column",
50631
+ minWidth: 0
50632
+ };
50443
50633
  return /*#__PURE__*/React.createElement(Card, {
50444
50634
  style: {
50445
50635
  marginBottom: "20px"
50446
50636
  }
50447
50637
  }, /*#__PURE__*/React.createElement("div", {
50448
50638
  style: {
50449
- padding: "16px",
50639
+ padding: "12px 16px",
50450
50640
  backgroundColor: "#fff3cd",
50451
50641
  color: "#856404",
50452
50642
  borderRadius: "8px",
50453
50643
  border: "1px solid #ffeeba",
50454
50644
  marginBottom: "20px",
50455
50645
  display: "flex",
50456
- alignItems: "center"
50646
+ alignItems: "flex-start",
50647
+ gap: "8px"
50457
50648
  }
50458
50649
  }, /*#__PURE__*/React.createElement("span", {
50459
50650
  style: {
50460
- marginRight: "8px",
50461
- fontSize: "20px"
50651
+ fontSize: "18px",
50652
+ flexShrink: 0
50462
50653
  }
50463
50654
  }, "\u2139\uFE0F"), /*#__PURE__*/React.createElement("span", {
50464
50655
  style: {
50465
- fontWeight: "500"
50656
+ fontWeight: "500",
50657
+ fontSize: "14px"
50466
50658
  }
50467
50659
  }, "Name Change / Mutation is limited to changing the name of the consumer/account holder on the existing water connection. It does not constitute or imply transfer of property ownership.")), missingFields.length > 0 && /*#__PURE__*/React.createElement("div", {
50468
50660
  style: {
@@ -50473,36 +50665,38 @@ const Step1_ExistingConnection = _ref => {
50473
50665
  border: "1px solid #f5c6cb",
50474
50666
  marginBottom: "16px",
50475
50667
  display: "flex",
50476
- alignItems: "center"
50668
+ alignItems: "flex-start",
50669
+ gap: "8px"
50477
50670
  }
50478
50671
  }, /*#__PURE__*/React.createElement("span", {
50479
50672
  style: {
50480
- marginRight: "8px",
50481
- fontSize: "18px"
50673
+ fontSize: "16px",
50674
+ flexShrink: 0
50482
50675
  }
50483
50676
  }, "\u26A0\uFE0F"), /*#__PURE__*/React.createElement("span", {
50484
50677
  style: {
50485
50678
  fontWeight: "500",
50486
50679
  fontSize: "14px"
50487
50680
  }
50488
- }, "Please verify the connection data before proceeding.")), /*#__PURE__*/React.createElement("div", {
50681
+ }, "Note: Some connection details are missing (", missingFields.join(", "), "). You may need to update them during the mutation process.")), /*#__PURE__*/React.createElement("div", {
50489
50682
  style: {
50490
50683
  display: "flex",
50491
50684
  alignItems: "center",
50492
- marginBottom: "16px"
50685
+ marginBottom: "16px",
50686
+ flexWrap: "wrap",
50687
+ gap: "8px"
50493
50688
  }
50494
50689
  }, /*#__PURE__*/React.createElement("span", {
50495
50690
  style: {
50496
- fontSize: "24px",
50497
- marginRight: "8px"
50691
+ fontSize: "22px"
50498
50692
  }
50499
50693
  }, "\uD83C\uDFE2"), /*#__PURE__*/React.createElement("h2", {
50500
50694
  style: {
50501
- fontSize: "20px",
50695
+ fontSize: "18px",
50502
50696
  fontWeight: "700",
50503
50697
  margin: 0
50504
50698
  }
50505
- }, "1. Existing Connection & Current Consumer Details.")), /*#__PURE__*/React.createElement("div", {
50699
+ }, "2. Existing Consumer Details")), /*#__PURE__*/React.createElement("div", {
50506
50700
  style: {
50507
50701
  padding: "16px",
50508
50702
  backgroundColor: "#f9f9f9",
@@ -50512,43 +50706,54 @@ const Step1_ExistingConnection = _ref => {
50512
50706
  }, /*#__PURE__*/React.createElement("div", {
50513
50707
  style: {
50514
50708
  display: "grid",
50515
- gridTemplateColumns: "1fr 1fr 1fr",
50709
+ gridTemplateColumns: "repeat(auto-fill, minmax(150px, 1fr))",
50516
50710
  gap: "16px"
50517
50711
  }
50518
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
50712
+ }, /*#__PURE__*/React.createElement("div", {
50713
+ style: infoItemStyle
50714
+ }, /*#__PURE__*/React.createElement("div", {
50519
50715
  style: {
50520
50716
  color: "#555",
50521
- fontSize: "14px",
50717
+ fontSize: "13px",
50522
50718
  marginBottom: "4px"
50523
50719
  }
50524
50720
  }, "Connection Number"), /*#__PURE__*/React.createElement("div", {
50525
50721
  style: {
50526
- fontWeight: "bold"
50722
+ fontWeight: "bold",
50723
+ wordBreak: "break-all"
50527
50724
  }
50528
- }, connectionNo)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
50725
+ }, connectionNo)), /*#__PURE__*/React.createElement("div", {
50726
+ style: infoItemStyle
50727
+ }, /*#__PURE__*/React.createElement("div", {
50529
50728
  style: {
50530
50729
  color: "#555",
50531
- fontSize: "14px",
50730
+ fontSize: "13px",
50532
50731
  marginBottom: "4px"
50533
50732
  }
50534
50733
  }, "Current Owner Name"), /*#__PURE__*/React.createElement("div", {
50535
50734
  style: {
50536
- fontWeight: "bold"
50735
+ fontWeight: "bold",
50736
+ wordBreak: "break-word"
50537
50737
  }
50538
- }, registeredName)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
50738
+ }, registeredName)), /*#__PURE__*/React.createElement("div", {
50739
+ style: infoItemStyle
50740
+ }, /*#__PURE__*/React.createElement("div", {
50539
50741
  style: {
50540
50742
  color: "#555",
50541
- fontSize: "14px",
50743
+ fontSize: "13px",
50542
50744
  marginBottom: "4px"
50543
50745
  }
50544
50746
  }, "Property Address"), /*#__PURE__*/React.createElement("div", {
50545
50747
  style: {
50546
- fontWeight: "bold"
50748
+ fontWeight: "bold",
50749
+ wordBreak: "break-word"
50547
50750
  }
50548
- }, formattedAddress)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
50751
+ }, formattedAddress)), /*#__PURE__*/React.createElement("div", {
50752
+ style: infoItemStyle
50753
+ }, /*#__PURE__*/React.createElement("div", {
50549
50754
  style: {
50550
50755
  color: "#555",
50551
- fontSize: "14px",
50756
+ fontSize: "13px",
50552
50757
  marginBottom: "4px"
50553
50758
  }
50554
50759
  }, "Connection Status"), /*#__PURE__*/React.createElement("div", {
@@ -50556,27 +50761,88 @@ const Step1_ExistingConnection = _ref => {
50556
50761
  fontWeight: "bold",
50557
50762
  color: (connectionStatus === null || connectionStatus === void 0 ? void 0 : connectionStatus.toLowerCase()) === "active" ? "#28a745" : "#dc3545"
50558
50763
  }
50559
- }, connectionStatus)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
50764
+ }, connectionStatus)), /*#__PURE__*/React.createElement("div", {
50765
+ style: infoItemStyle
50766
+ }, /*#__PURE__*/React.createElement("div", {
50560
50767
  style: {
50561
50768
  color: "#555",
50562
- fontSize: "14px",
50769
+ fontSize: "13px",
50563
50770
  marginBottom: "4px"
50564
50771
  }
50565
50772
  }, "Meter Number"), /*#__PURE__*/React.createElement("div", {
50566
50773
  style: {
50567
- fontWeight: "bold"
50774
+ fontWeight: "bold",
50775
+ wordBreak: "break-all"
50568
50776
  }
50569
- }, meterId)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
50777
+ }, meterId)), /*#__PURE__*/React.createElement("div", {
50778
+ style: infoItemStyle
50779
+ }, /*#__PURE__*/React.createElement("div", {
50570
50780
  style: {
50571
50781
  color: "#555",
50572
- fontSize: "14px",
50782
+ fontSize: "13px",
50573
50783
  marginBottom: "4px"
50574
50784
  }
50575
50785
  }, "Mobile Number"), /*#__PURE__*/React.createElement("div", {
50576
50786
  style: {
50577
50787
  fontWeight: "bold"
50578
50788
  }
50579
- }, registeredPhone)))));
50789
+ }, registeredPhone)))), /*#__PURE__*/React.createElement("div", {
50790
+ style: {
50791
+ marginTop: "24px",
50792
+ borderTop: "1px solid #e0e0e0",
50793
+ paddingTop: "16px"
50794
+ }
50795
+ }, /*#__PURE__*/React.createElement("h3", {
50796
+ style: {
50797
+ fontSize: "16px",
50798
+ fontWeight: "bold",
50799
+ marginBottom: "16px"
50800
+ }
50801
+ }, "Verify OTP"), /*#__PURE__*/React.createElement("div", {
50802
+ style: {
50803
+ display: "flex",
50804
+ flexDirection: "column",
50805
+ gap: "8px",
50806
+ maxWidth: "400px",
50807
+ marginBottom: "16px"
50808
+ }
50809
+ }, /*#__PURE__*/React.createElement("label", {
50810
+ style: {
50811
+ fontWeight: "500",
50812
+ fontSize: "14px"
50813
+ }
50814
+ }, "Enter OTP sent to +91 ", getMaskedPhone(mobileNumber), " *"), /*#__PURE__*/React.createElement(TextInput, {
50815
+ value: otp,
50816
+ onChange: e => setOtp(e.target.value.replace(/\D/g, '').slice(0, 6)),
50817
+ placeholder: "Enter 6-digit OTP",
50818
+ maxLength: 6
50819
+ })), /*#__PURE__*/React.createElement("div", {
50820
+ style: {
50821
+ display: "flex",
50822
+ justifyContent: "flex-end"
50823
+ }
50824
+ }, /*#__PURE__*/React.createElement("button", {
50825
+ onClick: handleVerifyOtp,
50826
+ disabled: isLoading || otp.length < 6,
50827
+ style: {
50828
+ padding: "10px 20px",
50829
+ backgroundColor: "#00497e",
50830
+ color: "white",
50831
+ border: "none",
50832
+ borderRadius: "4px",
50833
+ cursor: isLoading || otp.length < 6 ? "not-allowed" : "pointer",
50834
+ fontWeight: "bold",
50835
+ opacity: isLoading || otp.length < 6 ? 0.5 : 1,
50836
+ width: "100%",
50837
+ maxWidth: "200px"
50838
+ }
50839
+ }, isLoading ? "Verifying..." : "Verify & Proceed →"))), showToast && /*#__PURE__*/React.createElement(Toast, {
50840
+ error: (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error",
50841
+ warning: (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "warning",
50842
+ label: showToast === null || showToast === void 0 ? void 0 : showToast.message,
50843
+ onClose: () => setShowToast(null),
50844
+ isDleteBtn: true
50845
+ }));
50580
50846
  };
50581
50847
 
50582
50848
  const Step2_NewConsumerDetails = _ref => {
@@ -50594,7 +50860,8 @@ const Step2_NewConsumerDetails = _ref => {
50594
50860
  errors = _useForm.formState.errors,
50595
50861
  trigger = _useForm.trigger,
50596
50862
  setError = _useForm.setError,
50597
- clearErrors = _useForm.clearErrors;
50863
+ clearErrors = _useForm.clearErrors,
50864
+ setValue = _useForm.setValue;
50598
50865
  const _useState = useState(null),
50599
50866
  showToast = _useState[0],
50600
50867
  setShowToast = _useState[1];
@@ -50690,16 +50957,17 @@ const Step2_NewConsumerDetails = _ref => {
50690
50957
  style: {
50691
50958
  display: "flex",
50692
50959
  alignItems: "center",
50693
- marginBottom: "16px"
50960
+ marginBottom: "16px",
50961
+ flexWrap: "wrap",
50962
+ gap: "8px"
50694
50963
  }
50695
50964
  }, /*#__PURE__*/React.createElement("span", {
50696
50965
  style: {
50697
- fontSize: "24px",
50698
- marginRight: "8px"
50966
+ fontSize: "22px"
50699
50967
  }
50700
50968
  }, "\uD83D\uDC64"), /*#__PURE__*/React.createElement("h2", {
50701
50969
  style: {
50702
- fontSize: "20px",
50970
+ fontSize: "18px",
50703
50971
  fontWeight: "700",
50704
50972
  margin: 0
50705
50973
  }
@@ -50712,12 +50980,13 @@ const Step2_NewConsumerDetails = _ref => {
50712
50980
  border: "1px solid #f5c6cb",
50713
50981
  marginBottom: "16px",
50714
50982
  display: "flex",
50715
- alignItems: "center"
50983
+ alignItems: "flex-start",
50984
+ gap: "8px"
50716
50985
  }
50717
50986
  }, /*#__PURE__*/React.createElement("span", {
50718
50987
  style: {
50719
- marginRight: "8px",
50720
- fontSize: "18px"
50988
+ fontSize: "16px",
50989
+ flexShrink: 0
50721
50990
  }
50722
50991
  }, "\u26A0\uFE0F"), /*#__PURE__*/React.createElement("span", {
50723
50992
  style: {
@@ -50734,9 +51003,9 @@ const Step2_NewConsumerDetails = _ref => {
50734
51003
  }, /*#__PURE__*/React.createElement("div", {
50735
51004
  style: {
50736
51005
  display: "grid",
50737
- gridTemplateColumns: "1fr 1fr 1fr",
50738
- gap: "24px",
50739
- padding: "16px 0"
51006
+ gridTemplateColumns: "repeat(auto-fill, minmax(240px, 1fr))",
51007
+ gap: "20px",
51008
+ padding: "8px 0 16px"
50740
51009
  }
50741
51010
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, {
50742
51011
  style: {
@@ -50884,6 +51153,9 @@ const Step2_NewConsumerDetails = _ref => {
50884
51153
  setTouched(p => _extends({}, p, {
50885
51154
  reasonForNameChange: true
50886
51155
  }));
51156
+ if ((val === null || val === void 0 ? void 0 : val.code) !== "OTHER" && val !== "OTHER") {
51157
+ setValue("relationshipWithExistingConsumer", null);
51158
+ }
50887
51159
  },
50888
51160
  optionKey: "i18nKey",
50889
51161
  t: t,
@@ -50930,13 +51202,15 @@ const Step2_NewConsumerDetails = _ref => {
50930
51202
  display: "flex",
50931
51203
  justifyContent: "space-between",
50932
51204
  alignItems: "center",
50933
- marginTop: "24px"
51205
+ marginTop: "24px",
51206
+ flexWrap: "wrap",
51207
+ gap: "12px"
50934
51208
  }
50935
51209
  }, /*#__PURE__*/React.createElement("button", {
50936
51210
  type: "button",
50937
51211
  onClick: onBack,
50938
51212
  style: {
50939
- padding: "8px 24px",
51213
+ padding: "10px 20px",
50940
51214
  backgroundColor: "#e0e0e0",
50941
51215
  border: "none",
50942
51216
  borderRadius: "4px",
@@ -50947,7 +51221,8 @@ const Step2_NewConsumerDetails = _ref => {
50947
51221
  style: {
50948
51222
  display: "flex",
50949
51223
  alignItems: "center",
50950
- gap: "12px"
51224
+ gap: "12px",
51225
+ flexWrap: "wrap"
50951
51226
  }
50952
51227
  }, /*#__PURE__*/React.createElement("span", {
50953
51228
  style: {
@@ -50961,7 +51236,7 @@ const Step2_NewConsumerDetails = _ref => {
50961
51236
  }, "*"), " are mandatory"), /*#__PURE__*/React.createElement("button", {
50962
51237
  type: "submit",
50963
51238
  style: {
50964
- padding: "10px 24px",
51239
+ padding: "10px 20px",
50965
51240
  backgroundColor: "#00497e",
50966
51241
  color: "white",
50967
51242
  border: "none",
@@ -51135,6 +51410,80 @@ const Step3_UploadDocuments = _ref => {
51135
51410
  useEffect(() => {
51136
51411
  if (rawFiles.mutation) handleFileUpload(rawFiles.mutation, "mutation");
51137
51412
  }, [rawFiles.mutation]);
51413
+ const _useState0 = useState(""),
51414
+ identityFileName = _useState0[0],
51415
+ setIdentityFileName = _useState0[1];
51416
+ const _useState1 = useState(""),
51417
+ mutationFileName = _useState1[0],
51418
+ setMutationFileName = _useState1[1];
51419
+ const _useState10 = useState(""),
51420
+ identityFileUrl = _useState10[0],
51421
+ setIdentityFileUrl = _useState10[1];
51422
+ const _useState11 = useState(""),
51423
+ mutationFileUrl = _useState11[0],
51424
+ setMutationFileUrl = _useState11[1];
51425
+ useEffect(() => {
51426
+ const fetchFileDetails = function () {
51427
+ try {
51428
+ function _temp6() {
51429
+ const _temp4 = function () {
51430
+ if (mutationDocFile && !rawFiles.mutation) {
51431
+ const _temp3 = _catch(function () {
51432
+ return Promise.resolve(window.Digit.UploadServices.Filefetch([mutationDocFile], tenantId)).then(function (res) {
51433
+ var _res$data;
51434
+ if (res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && _res$data[mutationDocFile]) {
51435
+ const url = res.data[mutationDocFile].split(",")[0];
51436
+ setMutationFileUrl(url);
51437
+ let fileName = "Supporting_Document";
51438
+ try {
51439
+ const decoded = decodeURIComponent(url);
51440
+ const urlParts = decoded.split("?")[0].split("/");
51441
+ fileName = urlParts[urlParts.length - 1];
51442
+ if (fileName.includes("-")) fileName = fileName.split("-").slice(1).join("-");
51443
+ } catch (e) {}
51444
+ setMutationFileName(fileName);
51445
+ }
51446
+ });
51447
+ }, function (e) {
51448
+ console.error("Error fetching mutation doc", e);
51449
+ });
51450
+ if (_temp3 && _temp3.then) return _temp3.then(function () {});
51451
+ }
51452
+ }();
51453
+ if (_temp4 && _temp4.then) return _temp4.then(function () {});
51454
+ }
51455
+ const tenantId = window.Digit.ULBService.getStateId();
51456
+ const _temp5 = function () {
51457
+ if (identityProofFile && !rawFiles.identity) {
51458
+ const _temp2 = _catch(function () {
51459
+ return Promise.resolve(window.Digit.UploadServices.Filefetch([identityProofFile], tenantId)).then(function (res) {
51460
+ var _res$data2;
51461
+ if (res !== null && res !== void 0 && (_res$data2 = res.data) !== null && _res$data2 !== void 0 && _res$data2[identityProofFile]) {
51462
+ const url = res.data[identityProofFile].split(",")[0];
51463
+ setIdentityFileUrl(url);
51464
+ let fileName = "Identity_Document";
51465
+ try {
51466
+ const decoded = decodeURIComponent(url);
51467
+ const urlParts = decoded.split("?")[0].split("/");
51468
+ fileName = urlParts[urlParts.length - 1];
51469
+ if (fileName.includes("-")) fileName = fileName.split("-").slice(1).join("-");
51470
+ } catch (e) {}
51471
+ setIdentityFileName(fileName);
51472
+ }
51473
+ });
51474
+ }, function (e) {
51475
+ console.error("Error fetching identity doc", e);
51476
+ });
51477
+ if (_temp2 && _temp2.then) return _temp2.then(function () {});
51478
+ }
51479
+ }();
51480
+ return Promise.resolve(_temp5 && _temp5.then ? _temp5.then(_temp6) : _temp6(_temp5));
51481
+ } catch (e) {
51482
+ return Promise.reject(e);
51483
+ }
51484
+ };
51485
+ fetchFileDetails();
51486
+ }, [identityProofFile, mutationDocFile, rawFiles]);
51138
51487
  useEffect(() => {
51139
51488
  if (hasAttemptedSubmit) {
51140
51489
  const newErrors = {};
@@ -51232,12 +51581,13 @@ const Step3_UploadDocuments = _ref => {
51232
51581
  border: "1px solid #f5c6cb",
51233
51582
  marginBottom: "16px",
51234
51583
  display: "flex",
51235
- alignItems: "center"
51584
+ alignItems: "flex-start",
51585
+ gap: "8px"
51236
51586
  }
51237
51587
  }, /*#__PURE__*/React.createElement("span", {
51238
51588
  style: {
51239
- marginRight: "8px",
51240
- fontSize: "18px"
51589
+ fontSize: "16px",
51590
+ flexShrink: 0
51241
51591
  }
51242
51592
  }, "\u26A0\uFE0F"), /*#__PURE__*/React.createElement("span", {
51243
51593
  style: {
@@ -51247,7 +51597,7 @@ const Step3_UploadDocuments = _ref => {
51247
51597
  }, errorCount, " required item", errorCount > 1 ? "s" : "", " still need", errorCount === 1 ? "s" : "", " your attention before proceeding.")), /*#__PURE__*/React.createElement("div", {
51248
51598
  style: {
51249
51599
  display: "grid",
51250
- gridTemplateColumns: "1fr 1fr",
51600
+ gridTemplateColumns: "repeat(auto-fill, minmax(280px, 1fr))",
51251
51601
  gap: "24px"
51252
51602
  }
51253
51603
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, {
@@ -51338,7 +51688,26 @@ const Step3_UploadDocuments = _ref => {
51338
51688
  style: errorTextStyle
51339
51689
  }, fieldErrors.identityFile), identityProofFile && /*#__PURE__*/React.createElement("div", {
51340
51690
  style: successTextStyle
51341
- }, "\u2713 Document uploaded successfully")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, {
51691
+ }, "\u2713 Document uploaded successfully"), identityProofFile && identityFileUrl && !rawFiles.identity && /*#__PURE__*/React.createElement("div", {
51692
+ style: {
51693
+ marginTop: "8px"
51694
+ }
51695
+ }, /*#__PURE__*/React.createElement("a", {
51696
+ href: identityFileUrl,
51697
+ target: "_blank",
51698
+ rel: "noreferrer",
51699
+ style: {
51700
+ color: "#f47738",
51701
+ textDecoration: "underline",
51702
+ fontSize: "14px",
51703
+ display: "inline-flex",
51704
+ alignItems: "center"
51705
+ }
51706
+ }, /*#__PURE__*/React.createElement("span", {
51707
+ style: {
51708
+ marginRight: "4px"
51709
+ }
51710
+ }, "\uD83D\uDCC4"), " View ", identityFileName))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, {
51342
51711
  style: {
51343
51712
  fontWeight: "bold"
51344
51713
  }
@@ -51382,18 +51751,39 @@ const Step3_UploadDocuments = _ref => {
51382
51751
  style: errorTextStyle
51383
51752
  }, fieldErrors.mutationFile), mutationDocFile && /*#__PURE__*/React.createElement("div", {
51384
51753
  style: successTextStyle
51385
- }, "\u2713 Document uploaded successfully"))), /*#__PURE__*/React.createElement("div", {
51754
+ }, "\u2713 Document uploaded successfully"), mutationDocFile && mutationFileUrl && !rawFiles.mutation && /*#__PURE__*/React.createElement("div", {
51755
+ style: {
51756
+ marginTop: "8px"
51757
+ }
51758
+ }, /*#__PURE__*/React.createElement("a", {
51759
+ href: mutationFileUrl,
51760
+ target: "_blank",
51761
+ rel: "noreferrer",
51762
+ style: {
51763
+ color: "#f47738",
51764
+ textDecoration: "underline",
51765
+ fontSize: "14px",
51766
+ display: "inline-flex",
51767
+ alignItems: "center"
51768
+ }
51769
+ }, /*#__PURE__*/React.createElement("span", {
51770
+ style: {
51771
+ marginRight: "4px"
51772
+ }
51773
+ }, "\uD83D\uDCC4"), " View ", mutationFileName)))), /*#__PURE__*/React.createElement("div", {
51386
51774
  style: {
51387
51775
  display: "flex",
51388
51776
  justifyContent: "space-between",
51389
51777
  alignItems: "center",
51390
- marginTop: "32px"
51778
+ marginTop: "32px",
51779
+ flexWrap: "wrap",
51780
+ gap: "12px"
51391
51781
  }
51392
51782
  }, /*#__PURE__*/React.createElement("button", {
51393
51783
  type: "button",
51394
51784
  onClick: onBack,
51395
51785
  style: {
51396
- padding: "8px 24px",
51786
+ padding: "10px 20px",
51397
51787
  backgroundColor: "#e0e0e0",
51398
51788
  border: "none",
51399
51789
  borderRadius: "4px",
@@ -51404,7 +51794,8 @@ const Step3_UploadDocuments = _ref => {
51404
51794
  style: {
51405
51795
  display: "flex",
51406
51796
  alignItems: "center",
51407
- gap: "12px"
51797
+ gap: "12px",
51798
+ flexWrap: "wrap"
51408
51799
  }
51409
51800
  }, /*#__PURE__*/React.createElement("span", {
51410
51801
  style: {
@@ -51416,7 +51807,7 @@ const Step3_UploadDocuments = _ref => {
51416
51807
  onClick: onProceed,
51417
51808
  disabled: isUploading,
51418
51809
  style: {
51419
- padding: "10px 24px",
51810
+ padding: "10px 20px",
51420
51811
  backgroundColor: isUploading ? "#ccc" : "#00497e",
51421
51812
  color: "white",
51422
51813
  border: "none",
@@ -51435,8 +51826,9 @@ const Step3_UploadDocuments = _ref => {
51435
51826
  };
51436
51827
 
51437
51828
  const Step4_Preview = _ref => {
51438
- var _appData$connectionHo, _appData$property, _address$locality;
51439
- let formData = _ref.formData,
51829
+ var _appData$connectionHo, _propertyData$Propert, _propertyData$Propert2, _appData$property, _propertyAddress$loca;
51830
+ let t = _ref.t,
51831
+ formData = _ref.formData,
51440
51832
  applicationDetails = _ref.applicationDetails,
51441
51833
  onBack = _ref.onBack,
51442
51834
  onSubmit = _ref.onSubmit,
@@ -51447,9 +51839,11 @@ const Step4_Preview = _ref => {
51447
51839
  const _useState2 = useState(0),
51448
51840
  fee = _useState2[0],
51449
51841
  setFee = _useState2[1];
51450
- const _useState3 = useState("Calculating..."),
51451
- slab = _useState3[0],
51452
- setSlab = _useState3[1];
51842
+ const _useState3 = useState([]),
51843
+ taxHeads = _useState3[0],
51844
+ setTaxHeads = _useState3[1];
51845
+ const _useState4 = useState("Calculating..."),
51846
+ setSlab = _useState4[1];
51453
51847
  const getMaskedName = name => {
51454
51848
  if (!name) return "NA";
51455
51849
  return name.split("").map((char, index) => index % 2 === 1 && char !== " " ? "*" : char).join("");
@@ -51465,8 +51859,22 @@ const Step4_Preview = _ref => {
51465
51859
  const oldHolder = (appData === null || appData === void 0 ? void 0 : (_appData$connectionHo = appData.connectionHolders) === null || _appData$connectionHo === void 0 ? void 0 : _appData$connectionHo[0]) || {};
51466
51860
  const oldName = getMaskedName(oldHolder === null || oldHolder === void 0 ? void 0 : oldHolder.name);
51467
51861
  const oldPhone = getMaskedPhone(oldHolder === null || oldHolder === void 0 ? void 0 : oldHolder.mobileNumber);
51468
- const address = (appData === null || appData === void 0 ? void 0 : (_appData$property = appData.property) === null || _appData$property === void 0 ? void 0 : _appData$property.address) || {};
51469
- const oldAddress = [address === null || address === void 0 ? void 0 : address.doorNo, address === null || address === void 0 ? void 0 : address.buildingName, address === null || address === void 0 ? void 0 : address.street, address === null || address === void 0 ? void 0 : (_address$locality = address.locality) === null || _address$locality === void 0 ? void 0 : _address$locality.name, address === null || address === void 0 ? void 0 : address.city].filter(Boolean).join(", ") || "NA";
51862
+ const tenantId = (appData === null || appData === void 0 ? void 0 : appData.tenantId) || Digit.ULBService.getCurrentTenantId();
51863
+ const _Digit$Hooks$pt$usePr = Digit.Hooks.pt.usePropertySearch({
51864
+ filters: {
51865
+ propertyIds: propertyId
51866
+ },
51867
+ tenantId
51868
+ }, {
51869
+ filters: {
51870
+ propertyIds: propertyId
51871
+ },
51872
+ tenantId,
51873
+ enabled: !!propertyId && propertyId !== "NA"
51874
+ }),
51875
+ propertyData = _Digit$Hooks$pt$usePr.data;
51876
+ const propertyAddress = (propertyData === null || propertyData === void 0 ? void 0 : (_propertyData$Propert = propertyData.Properties) === null || _propertyData$Propert === void 0 ? void 0 : (_propertyData$Propert2 = _propertyData$Propert[0]) === null || _propertyData$Propert2 === void 0 ? void 0 : _propertyData$Propert2.address) || (appData === null || appData === void 0 ? void 0 : (_appData$property = appData.property) === null || _appData$property === void 0 ? void 0 : _appData$property.address) || {};
51877
+ const oldAddress = [(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.houseNo) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.doorNo), propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.buildingName, propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.street, propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$loca = propertyAddress.locality) === null || _propertyAddress$loca === void 0 ? void 0 : _propertyAddress$loca.name, propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.city, propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.pincode].filter(Boolean).join(", ") || "NA";
51470
51878
  const proposedNewConsumerName = formData.proposedNewConsumerName,
51471
51879
  newOwnerMobileNumber = formData.newOwnerMobileNumber,
51472
51880
  relationshipWithExistingConsumer = formData.relationshipWithExistingConsumer,
@@ -51493,7 +51901,6 @@ const Step4_Preview = _ref => {
51493
51901
  };
51494
51902
  return map[code] || code;
51495
51903
  };
51496
- const tenantId = Digit.ULBService.getCurrentTenantId();
51497
51904
  const viewDocument = function (fileStoreId) {
51498
51905
  try {
51499
51906
  if (!fileStoreId) return Promise.resolve();
@@ -51515,15 +51922,30 @@ const Step4_Preview = _ref => {
51515
51922
  }
51516
51923
  };
51517
51924
  useEffect(() => {
51518
- const relationCode = (relationshipWithExistingConsumer === null || relationshipWithExistingConsumer === void 0 ? void 0 : relationshipWithExistingConsumer.code) || relationshipWithExistingConsumer;
51519
- if (relationCode && relationCode !== "OTHER") {
51520
- setFee(100);
51521
- setSlab("Blood relation slab");
51522
- } else {
51523
- setFee(1350);
51524
- setSlab("Other Slab");
51525
- }
51526
- }, [relationshipWithExistingConsumer]);
51925
+ const calculateStaticFee = () => {
51926
+ var _formData$relationshi;
51927
+ const relationCode = (formData === null || formData === void 0 ? void 0 : (_formData$relationshi = formData.relationshipWithExistingConsumer) === null || _formData$relationshi === void 0 ? void 0 : _formData$relationshi.code) || (formData === null || formData === void 0 ? void 0 : formData.relationshipWithExistingConsumer);
51928
+ if (relationCode === "BLOOD_RELATION") {
51929
+ setFee(100);
51930
+ setTaxHeads([]);
51931
+ setSlab("Blood relation slab");
51932
+ } else {
51933
+ setFee(1350);
51934
+ setTaxHeads([{
51935
+ taxHeadCode: "WS_MUTATION_TRADE_SECURITY",
51936
+ estimateAmount: 250.00
51937
+ }, {
51938
+ taxHeadCode: "WS_MUTATION_FEE",
51939
+ estimateAmount: 100.00
51940
+ }, {
51941
+ taxHeadCode: "WS_WATER_ADVANCE",
51942
+ estimateAmount: 1000.00
51943
+ }]);
51944
+ setSlab("Other Slab");
51945
+ }
51946
+ };
51947
+ calculateStaticFee();
51948
+ }, [formData]);
51527
51949
  const sectionStyle = {
51528
51950
  border: "1px solid #e0e0e0",
51529
51951
  borderRadius: "8px",
@@ -51532,17 +51954,27 @@ const Step4_Preview = _ref => {
51532
51954
  };
51533
51955
  const labelStyle = {
51534
51956
  color: "#666",
51535
- fontSize: "14px",
51957
+ fontSize: "13px",
51536
51958
  marginBottom: "4px"
51537
51959
  };
51538
51960
  const valueStyle = {
51539
51961
  fontWeight: "bold",
51540
- fontSize: "16px"
51962
+ fontSize: "15px",
51963
+ wordBreak: "break-word"
51541
51964
  };
51542
51965
  const uploadDocStatusStyle = {
51543
51966
  fontSize: "14px",
51544
51967
  fontWeight: "bold"
51545
51968
  };
51969
+ const infoItem = (label, value) => /*#__PURE__*/React.createElement("div", {
51970
+ style: {
51971
+ minWidth: 0
51972
+ }
51973
+ }, /*#__PURE__*/React.createElement("div", {
51974
+ style: labelStyle
51975
+ }, label), /*#__PURE__*/React.createElement("div", {
51976
+ style: valueStyle
51977
+ }, value));
51546
51978
  return /*#__PURE__*/React.createElement(Card, {
51547
51979
  style: {
51548
51980
  marginBottom: "20px"
@@ -51551,16 +51983,17 @@ const Step4_Preview = _ref => {
51551
51983
  style: {
51552
51984
  display: "flex",
51553
51985
  alignItems: "center",
51554
- marginBottom: "16px"
51986
+ marginBottom: "16px",
51987
+ flexWrap: "wrap",
51988
+ gap: "8px"
51555
51989
  }
51556
51990
  }, /*#__PURE__*/React.createElement("span", {
51557
51991
  style: {
51558
- fontSize: "24px",
51559
- marginRight: "8px"
51992
+ fontSize: "22px"
51560
51993
  }
51561
51994
  }, "\uD83D\uDCCB"), /*#__PURE__*/React.createElement("h2", {
51562
51995
  style: {
51563
- fontSize: "20px",
51996
+ fontSize: "18px",
51564
51997
  fontWeight: "700",
51565
51998
  margin: 0
51566
51999
  }
@@ -51570,100 +52003,59 @@ const Step4_Preview = _ref => {
51570
52003
  })
51571
52004
  }, /*#__PURE__*/React.createElement("h3", {
51572
52005
  style: {
51573
- fontSize: "16px",
52006
+ fontSize: "15px",
51574
52007
  fontWeight: "bold",
51575
52008
  color: "#00497e",
51576
52009
  marginBottom: "12px"
51577
52010
  }
51578
52011
  }, "Property & Connection Summary"), /*#__PURE__*/React.createElement("div", {
51579
52012
  style: {
51580
- display: "flex",
51581
- justifyContent: "space-between"
52013
+ display: "grid",
52014
+ gridTemplateColumns: "repeat(auto-fill, minmax(150px, 1fr))",
52015
+ gap: "16px"
51582
52016
  }
51583
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
51584
- style: labelStyle
51585
- }, "Connection No"), /*#__PURE__*/React.createElement("div", {
51586
- style: valueStyle
51587
- }, connectionNo)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
51588
- style: labelStyle
51589
- }, "Meter Number"), /*#__PURE__*/React.createElement("div", {
51590
- style: valueStyle
51591
- }, meterId)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
51592
- style: labelStyle
51593
- }, "Property ID"), /*#__PURE__*/React.createElement("div", {
51594
- style: valueStyle
51595
- }, propertyId)))), /*#__PURE__*/React.createElement("div", {
52017
+ }, infoItem("Connection No", connectionNo), infoItem("Meter Number", meterId), infoItem("Property ID", propertyId))), /*#__PURE__*/React.createElement("div", {
51596
52018
  style: _extends({}, sectionStyle, {
51597
52019
  borderLeft: "4px solid #f29c1f"
51598
52020
  })
51599
52021
  }, /*#__PURE__*/React.createElement("h3", {
51600
52022
  style: {
51601
- fontSize: "16px",
52023
+ fontSize: "15px",
51602
52024
  fontWeight: "bold",
51603
52025
  color: "#f29c1f",
51604
52026
  marginBottom: "12px"
51605
52027
  }
51606
52028
  }, "\uD83D\uDD12 Existing / Previous Owner Details (Masked Information)"), /*#__PURE__*/React.createElement("div", {
51607
52029
  style: {
51608
- display: "flex",
51609
- justifyContent: "space-between",
52030
+ display: "grid",
52031
+ gridTemplateColumns: "repeat(auto-fill, minmax(150px, 1fr))",
52032
+ gap: "16px",
51610
52033
  marginBottom: "12px"
51611
52034
  }
51612
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
51613
- style: labelStyle
51614
- }, "Registered Name:"), /*#__PURE__*/React.createElement("div", {
51615
- style: valueStyle
51616
- }, oldName)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
51617
- style: labelStyle
51618
- }, "Meter Number:"), /*#__PURE__*/React.createElement("div", {
51619
- style: valueStyle
51620
- }, meterId)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
51621
- style: labelStyle
51622
- }, "Registered Phone:"), /*#__PURE__*/React.createElement("div", {
51623
- style: valueStyle
51624
- }, oldPhone))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
51625
- style: labelStyle
51626
- }, "Registered Address:"), /*#__PURE__*/React.createElement("div", {
51627
- style: valueStyle
51628
- }, oldAddress))), /*#__PURE__*/React.createElement("div", {
52035
+ }, infoItem("Registered Name:", oldName), infoItem("Registered Phone:", oldPhone)), infoItem("Registered Address:", oldAddress)), /*#__PURE__*/React.createElement("div", {
51629
52036
  style: _extends({}, sectionStyle, {
51630
52037
  borderLeft: "4px solid #00497e"
51631
52038
  })
51632
52039
  }, /*#__PURE__*/React.createElement("h3", {
51633
52040
  style: {
51634
- fontSize: "16px",
52041
+ fontSize: "15px",
51635
52042
  fontWeight: "bold",
51636
52043
  color: "#00497e",
51637
52044
  marginBottom: "12px"
51638
52045
  }
51639
52046
  }, "\uD83D\uDC64 Transferee (New Owner) Summary"), /*#__PURE__*/React.createElement("div", {
51640
52047
  style: {
51641
- display: "flex",
51642
- justifyContent: "space-between"
52048
+ display: "grid",
52049
+ gridTemplateColumns: "repeat(auto-fill, minmax(150px, 1fr))",
52050
+ gap: "16px"
51643
52051
  }
51644
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
51645
- style: labelStyle
51646
- }, "New Owner Name"), /*#__PURE__*/React.createElement("div", {
51647
- style: valueStyle
51648
- }, proposedNewConsumerName)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
51649
- style: labelStyle
51650
- }, "Mobile Number"), /*#__PURE__*/React.createElement("div", {
51651
- style: valueStyle
51652
- }, newOwnerMobileNumber)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
51653
- style: labelStyle
51654
- }, "Relation Type"), /*#__PURE__*/React.createElement("div", {
51655
- style: valueStyle
51656
- }, getRelationshipName(relationshipWithExistingConsumer))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
51657
- style: labelStyle
51658
- }, "Transfer Reason"), /*#__PURE__*/React.createElement("div", {
51659
- style: valueStyle
51660
- }, getReasonName(reasonForNameChange))))), /*#__PURE__*/React.createElement("div", {
52052
+ }, infoItem("New Owner Name", proposedNewConsumerName), infoItem("Mobile Number", newOwnerMobileNumber), infoItem("Relation Type", getRelationshipName(relationshipWithExistingConsumer)), infoItem("Transfer Reason", getReasonName(reasonForNameChange)))), /*#__PURE__*/React.createElement("div", {
51661
52053
  style: _extends({}, sectionStyle, {
51662
52054
  borderLeft: "4px solid #17a2b8"
51663
52055
  })
51664
52056
  }, /*#__PURE__*/React.createElement("h3", {
51665
52057
  style: {
51666
- fontSize: "16px",
52058
+ fontSize: "15px",
51667
52059
  fontWeight: "bold",
51668
52060
  color: "#17a2b8",
51669
52061
  marginBottom: "12px"
@@ -51671,7 +52063,7 @@ const Step4_Preview = _ref => {
51671
52063
  }, "Uploaded Documents"), /*#__PURE__*/React.createElement("div", {
51672
52064
  style: {
51673
52065
  display: "grid",
51674
- gridTemplateColumns: "1fr 1fr 1fr",
52066
+ gridTemplateColumns: "repeat(auto-fill, minmax(150px, 1fr))",
51675
52067
  gap: "16px"
51676
52068
  }
51677
52069
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
@@ -51680,7 +52072,8 @@ const Step4_Preview = _ref => {
51680
52072
  style: {
51681
52073
  display: "flex",
51682
52074
  alignItems: "center",
51683
- gap: "8px"
52075
+ gap: "8px",
52076
+ flexWrap: "wrap"
51684
52077
  }
51685
52078
  }, /*#__PURE__*/React.createElement("span", {
51686
52079
  style: uploadDocStatusStyle
@@ -51694,7 +52087,8 @@ const Step4_Preview = _ref => {
51694
52087
  textDecoration: "underline",
51695
52088
  cursor: "pointer",
51696
52089
  fontSize: "14px",
51697
- fontWeight: "bold"
52090
+ fontWeight: "bold",
52091
+ padding: 0
51698
52092
  }
51699
52093
  }, "View"))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
51700
52094
  style: labelStyle
@@ -51706,7 +52100,8 @@ const Step4_Preview = _ref => {
51706
52100
  style: {
51707
52101
  display: "flex",
51708
52102
  alignItems: "center",
51709
- gap: "8px"
52103
+ gap: "8px",
52104
+ flexWrap: "wrap"
51710
52105
  }
51711
52106
  }, /*#__PURE__*/React.createElement("span", {
51712
52107
  style: uploadDocStatusStyle
@@ -51720,7 +52115,8 @@ const Step4_Preview = _ref => {
51720
52115
  textDecoration: "underline",
51721
52116
  cursor: "pointer",
51722
52117
  fontSize: "14px",
51723
- fontWeight: "bold"
52118
+ fontWeight: "bold",
52119
+ padding: 0
51724
52120
  }
51725
52121
  }, "View"))))), /*#__PURE__*/React.createElement("div", {
51726
52122
  style: _extends({}, sectionStyle, {
@@ -51730,19 +52126,44 @@ const Step4_Preview = _ref => {
51730
52126
  })
51731
52127
  }, /*#__PURE__*/React.createElement("h3", {
51732
52128
  style: {
51733
- fontSize: "16px",
52129
+ fontSize: "15px",
51734
52130
  fontWeight: "bold",
51735
52131
  color: "#28a745",
51736
52132
  marginBottom: "12px"
51737
52133
  }
51738
- }, "\uD83D\uDCB5 Mutation Fee Details (Money to Pay in Mutation)"), /*#__PURE__*/React.createElement("div", {
52134
+ }, "\uD83D\uDCB5 Mutation Fee Details"), taxHeads && taxHeads.length > 0 && /*#__PURE__*/React.createElement("div", {
52135
+ style: {
52136
+ marginBottom: "16px"
52137
+ }
52138
+ }, taxHeads.map((tax, index) => /*#__PURE__*/React.createElement("div", {
52139
+ key: index,
52140
+ style: {
52141
+ display: "flex",
52142
+ justifyContent: "space-between",
52143
+ marginBottom: "8px",
52144
+ maxWidth: "400px"
52145
+ }
52146
+ }, /*#__PURE__*/React.createElement("div", {
52147
+ style: labelStyle
52148
+ }, t(tax.taxHeadCode), ":"), /*#__PURE__*/React.createElement("div", {
52149
+ style: valueStyle
52150
+ }, "\u20B9 ", tax.estimateAmount, ".00"))), /*#__PURE__*/React.createElement("hr", {
52151
+ style: {
52152
+ borderTop: "1px solid #c3e6cb",
52153
+ margin: "12px 0",
52154
+ maxWidth: "400px"
52155
+ }
52156
+ })), /*#__PURE__*/React.createElement("div", {
51739
52157
  style: {
51740
52158
  display: "flex",
51741
- justifyContent: "space-between"
52159
+ justifyContent: "space-between",
52160
+ maxWidth: "400px",
52161
+ flexWrap: "wrap",
52162
+ gap: "8px"
51742
52163
  }
51743
52164
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
51744
52165
  style: labelStyle
51745
- }, "Mutation Money to Pay:"), /*#__PURE__*/React.createElement("div", {
52166
+ }, "Total Amount Payable:"), /*#__PURE__*/React.createElement("div", {
51746
52167
  style: _extends({}, valueStyle, {
51747
52168
  color: "#28a745",
51748
52169
  fontSize: "20px"
@@ -51756,13 +52177,11 @@ const Step4_Preview = _ref => {
51756
52177
  color: "#0c5460",
51757
52178
  borderRadius: "16px",
51758
52179
  fontSize: "12px",
51759
- fontWeight: "bold"
52180
+ fontWeight: "bold",
52181
+ display: "inline-block",
52182
+ marginTop: "4px"
51760
52183
  }
51761
- }, "PAYABLE POST VERIFICATION")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
51762
- style: labelStyle
51763
- }, "Applicable Slab:"), /*#__PURE__*/React.createElement("div", {
51764
- style: valueStyle
51765
- }, slab)))), /*#__PURE__*/React.createElement("div", {
52184
+ }, "PAYABLE POST VERIFICATION")))), /*#__PURE__*/React.createElement("div", {
51766
52185
  style: {
51767
52186
  padding: "16px",
51768
52187
  backgroundColor: "#fffbeb",
@@ -51778,13 +52197,13 @@ const Step4_Preview = _ref => {
51778
52197
  type: "button",
51779
52198
  onClick: onBack,
51780
52199
  style: {
51781
- padding: "8px 24px",
52200
+ padding: "10px 20px",
51782
52201
  backgroundColor: "#e0e0e0",
51783
52202
  border: "none",
51784
52203
  borderRadius: "4px",
51785
52204
  cursor: "pointer",
51786
52205
  fontWeight: "bold",
51787
- marginRight: "16px"
52206
+ marginRight: "12px"
51788
52207
  }
51789
52208
  }, "\u2190 Edit Information"), /*#__PURE__*/React.createElement(SubmitBar, {
51790
52209
  label: isLoading ? "Submitting..." : "Submit Mutation Application",
@@ -51806,48 +52225,43 @@ const Step5_Submission = _ref => {
51806
52225
  const goHome = () => {
51807
52226
  history.push("/digit-ui/employee");
51808
52227
  };
51809
- const bannerStyle = {
51810
- backgroundColor: "#fff",
51811
- border: "1px solid #d4edda",
51812
- borderTop: "4px solid #28a745",
51813
- borderRadius: "8px",
51814
- padding: "20px",
51815
- display: "flex",
51816
- justifyContent: "space-between",
51817
- alignItems: "center",
51818
- marginBottom: "20px"
51819
- };
51820
- const statusPanelStyle = {
51821
- backgroundColor: "#fff",
51822
- border: "1px solid #e0e0e0",
51823
- borderRadius: "8px",
51824
- padding: "20px"
51825
- };
51826
52228
  return /*#__PURE__*/React.createElement("div", {
51827
52229
  style: {
51828
- padding: "20px 0"
52230
+ padding: "16px 0"
51829
52231
  }
51830
52232
  }, /*#__PURE__*/React.createElement("div", {
51831
- style: bannerStyle
52233
+ style: {
52234
+ backgroundColor: "#fff",
52235
+ border: "1px solid #d4edda",
52236
+ borderTop: "4px solid #28a745",
52237
+ borderRadius: "8px",
52238
+ padding: "20px",
52239
+ display: "flex",
52240
+ justifyContent: "space-between",
52241
+ alignItems: "flex-start",
52242
+ flexWrap: "wrap",
52243
+ gap: "12px",
52244
+ marginBottom: "20px"
52245
+ }
51832
52246
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h2", {
51833
52247
  style: {
51834
52248
  color: "#28a745",
51835
- fontSize: "20px",
52249
+ fontSize: "18px",
51836
52250
  fontWeight: "bold",
51837
- margin: 0,
52251
+ margin: "0 0 4px",
51838
52252
  display: "flex",
51839
- alignItems: "center"
51840
- }
51841
- }, /*#__PURE__*/React.createElement("span", {
51842
- style: {
51843
- marginRight: "8px"
52253
+ alignItems: "center",
52254
+ flexWrap: "wrap",
52255
+ gap: "6px"
51844
52256
  }
51845
- }, "\u2705"), " Application Submitted Successfully!"), /*#__PURE__*/React.createElement("div", {
52257
+ }, /*#__PURE__*/React.createElement("span", null, "\u2705"), " Your application has been submitted successfully!"), /*#__PURE__*/React.createElement("div", {
51846
52258
  style: {
51847
52259
  color: "#666",
51848
- marginTop: "4px"
52260
+ marginTop: "4px",
52261
+ fontSize: "14px",
52262
+ wordBreak: "break-all"
51849
52263
  }
51850
- }, "Application Reference No: ", /*#__PURE__*/React.createElement("strong", {
52264
+ }, "Your SRN Reference No. is: ", /*#__PURE__*/React.createElement("strong", {
51851
52265
  style: {
51852
52266
  color: "#00497e"
51853
52267
  }
@@ -51858,36 +52272,10 @@ const Step5_Submission = _ref => {
51858
52272
  color: "#856404",
51859
52273
  borderRadius: "16px",
51860
52274
  fontSize: "12px",
51861
- fontWeight: "bold"
51862
- }
51863
- }, "PENDING_APPROVAL_FOR_MUTATION"))), /*#__PURE__*/React.createElement("div", {
51864
- style: statusPanelStyle
51865
- }, /*#__PURE__*/React.createElement("h3", {
51866
- style: {
51867
- color: "#00497e",
51868
- fontSize: "16px",
51869
52275
  fontWeight: "bold",
51870
- margin: "0 0 16px 0",
51871
- display: "flex",
51872
- alignItems: "center"
51873
- }
51874
- }, /*#__PURE__*/React.createElement("span", {
51875
- style: {
51876
- marginRight: "8px"
52276
+ whiteSpace: "nowrap"
51877
52277
  }
51878
- }, "\uD83D\uDCCC"), " Current Workflow Status"), /*#__PURE__*/React.createElement("hr", {
51879
- style: {
51880
- border: "0",
51881
- borderTop: "1px solid #e0e0e0",
51882
- margin: "0 0 16px 0"
51883
- }
51884
- }), /*#__PURE__*/React.createElement("p", {
51885
- style: {
51886
- color: "#333",
51887
- fontSize: "14px",
51888
- margin: 0
51889
- }
51890
- }, "Application has been routed to ", /*#__PURE__*/React.createElement("strong", null, "Water Supply Department Verification Officer"), ".")), /*#__PURE__*/React.createElement("div", {
52278
+ }, "Pending for Zonal Officer approval"))), /*#__PURE__*/React.createElement("div", {
51891
52279
  style: {
51892
52280
  marginTop: "24px",
51893
52281
  textAlign: "center"
@@ -51895,13 +52283,16 @@ const Step5_Submission = _ref => {
51895
52283
  }, /*#__PURE__*/React.createElement("button", {
51896
52284
  onClick: goHome,
51897
52285
  style: {
51898
- padding: "10px 24px",
52286
+ padding: "12px 28px",
51899
52287
  backgroundColor: "#00497e",
51900
52288
  color: "white",
51901
52289
  border: "none",
51902
52290
  borderRadius: "4px",
51903
52291
  cursor: "pointer",
51904
- fontWeight: "bold"
52292
+ fontWeight: "bold",
52293
+ fontSize: "15px",
52294
+ width: "100%",
52295
+ maxWidth: "280px"
51905
52296
  }
51906
52297
  }, "Go to Home")), showToast && /*#__PURE__*/React.createElement(Toast, {
51907
52298
  error: showToast.key === "error",
@@ -51912,7 +52303,7 @@ const Step5_Submission = _ref => {
51912
52303
  };
51913
52304
 
51914
52305
  const MutationApplication = () => {
51915
- var _Digit$SessionStorage, _user$info, _state, _user$info2, _user$info2$userName, _user$info3, _user$info4, _details$applicationD, _applicationDetails$a, _applicationDetails$a3, _applicationDetails$a4;
52306
+ var _Digit$SessionStorage, _user$info, _state, _user$info2, _user$info2$userName, _user$info3, _user$info4, _details$applicationD, _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a4, _applicationDetails$a7, _applicationDetails$a8;
51916
52307
  const _useTranslation = useTranslation(),
51917
52308
  t = _useTranslation.t;
51918
52309
  let _useLocation = useLocation(),
@@ -51937,6 +52328,23 @@ const MutationApplication = () => {
51937
52328
  setIsSubmitting = _useState5[1];
51938
52329
  const _useState6 = useState(new Set()),
51939
52330
  setCompletedSteps = _useState6[1];
52331
+ const _useState7 = useState(window.innerWidth < 768),
52332
+ isMobile = _useState7[0],
52333
+ setIsMobile = _useState7[1];
52334
+ useEffect(() => {
52335
+ const handleResize = () => setIsMobile(window.innerWidth < 768);
52336
+ window.addEventListener("resize", handleResize);
52337
+ return () => window.removeEventListener("resize", handleResize);
52338
+ }, []);
52339
+ const _useState8 = useState(""),
52340
+ authKNumber = _useState8[0],
52341
+ setAuthKNumber = _useState8[1];
52342
+ const _useState9 = useState(""),
52343
+ authMobileNumber = _useState9[0],
52344
+ setAuthMobileNumber = _useState9[1];
52345
+ const _useState0 = useState(""),
52346
+ authServiceType = _useState0[0],
52347
+ setAuthServiceType = _useState0[1];
51940
52348
  const user = Digit.UserService.getUser();
51941
52349
  let tenantId = (filters === null || filters === void 0 ? void 0 : filters.tenantId) || ((_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code) || (user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : _user$info.permanentCity) || Digit.ULBService.getCurrentTenantId();
51942
52350
  const applicationNumber = filters === null || filters === void 0 ? void 0 : filters.applicationNumber;
@@ -51944,13 +52352,33 @@ const MutationApplication = () => {
51944
52352
  const details = cloneDeep_1((_state = state) === null || _state === void 0 ? void 0 : _state.data);
51945
52353
  const mobileNumber = user !== null && user !== void 0 && (_user$info2 = user.info) !== null && _user$info2 !== void 0 && (_user$info2$userName = _user$info2.userName) !== null && _user$info2$userName !== void 0 && _user$info2$userName.match(/^[0-9]{10}$/) ? user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : _user$info3.userName : user === null || user === void 0 ? void 0 : (_user$info4 = user.info) === null || _user$info4 === void 0 ? void 0 : _user$info4.mobileNumber;
51946
52354
  const hasStateData = !!(details !== null && details !== void 0 && (_details$applicationD = details.applicationData) !== null && _details$applicationD !== void 0 && _details$applicationD.id);
51947
- const wsSearchNumber = (details === null || details === void 0 ? void 0 : details.applicationNo) || applicationNumber;
51948
- const businessService = (serviceType === null || serviceType === void 0 ? void 0 : serviceType.toUpperCase()) === "SEWERAGE" ? "SW" : "WS";
51949
- const _useQuery = useQuery(["WS_MUTATION_DIRECT_SEARCH", wsSearchNumber, tenantId, mobileNumber, businessService], function () {
52355
+ const editApplicationNumber = (details === null || details === void 0 ? void 0 : details.applicationNo) || applicationNumber;
52356
+ const _useQuery = useQuery(["WORKFLOW_SEARCH", editApplicationNumber, tenantId], function () {
51950
52357
  try {
51951
- if (!wsSearchNumber) return Promise.resolve(null);
51952
- const params = {
51953
- connectionNumber: wsSearchNumber
52358
+ return Promise.resolve(Digit.WorkflowService.getByBusinessId(tenantId, editApplicationNumber)).then(function (res) {
52359
+ var _res$ProcessInstances;
52360
+ return res === null || res === void 0 ? void 0 : (_res$ProcessInstances = res.ProcessInstances) === null || _res$ProcessInstances === void 0 ? void 0 : _res$ProcessInstances[0];
52361
+ });
52362
+ } catch (e) {
52363
+ return Promise.reject(e);
52364
+ }
52365
+ }, {
52366
+ enabled: !!editApplicationNumber
52367
+ }),
52368
+ isWorkflowLoading = _useQuery.isLoading,
52369
+ workflowData = _useQuery.data;
52370
+ const isEditFlow = !!editApplicationNumber && (workflowData === null || workflowData === void 0 ? void 0 : workflowData.action) === "SEND_BACK_TO_CITIZEN";
52371
+ const querySearchParam = isEditFlow ? editApplicationNumber : authKNumber;
52372
+ const fallbackServiceType = serviceType || authServiceType;
52373
+ const businessService = (fallbackServiceType === null || fallbackServiceType === void 0 ? void 0 : fallbackServiceType.toUpperCase()) === "SEWERAGE" ? "SW" : "WS";
52374
+ const _useQuery2 = useQuery(["WS_MUTATION_DIRECT_SEARCH", querySearchParam, tenantId, mobileNumber, businessService, isEditFlow], function () {
52375
+ try {
52376
+ if (!querySearchParam) return Promise.resolve(null);
52377
+ const params = isEditFlow ? {
52378
+ applicationNumber: querySearchParam
52379
+ } : {
52380
+ connectionNumber: querySearchParam,
52381
+ isConnectionSearch: true
51954
52382
  };
51955
52383
  Object.keys(params).forEach(k => params[k] == null && delete params[k]);
51956
52384
  return Promise.resolve(Digit.WSService.search({
@@ -51972,13 +52400,14 @@ const MutationApplication = () => {
51972
52400
  return Promise.reject(e);
51973
52401
  }
51974
52402
  }, {
51975
- enabled: !!wsSearchNumber && !hasStateData
52403
+ enabled: !!querySearchParam && !hasStateData
51976
52404
  }),
51977
- isDetailsLoading = _useQuery.isLoading,
51978
- fetchedApplicationDetails = _useQuery.data;
52405
+ isDetailsLoading = _useQuery2.isLoading,
52406
+ fetchedApplicationDetails = _useQuery2.data;
51979
52407
  const applicationDetails = hasStateData ? details : fetchedApplicationDetails;
51980
- const _useState7 = useState(new URLSearchParams(useLocation().search).get("propertyId") || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.propertyId)),
51981
- propertyId = _useState7[0];
52408
+ const resolvedServiceType = serviceType || authServiceType || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.serviceType) || "WATER";
52409
+ const _useState1 = useState(new URLSearchParams(useLocation().search).get("propertyId") || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationData) === null || _applicationDetails$a2 === void 0 ? void 0 : _applicationDetails$a2.propertyId)),
52410
+ propertyId = _useState1[0];
51982
52411
  const _Digit$Hooks$pt$usePr = Digit.Hooks.pt.usePropertySearch({
51983
52412
  filters: {
51984
52413
  propertyIds: propertyId
@@ -51998,14 +52427,14 @@ const MutationApplication = () => {
51998
52427
  setSessionFormData = _Digit$Hooks$useSessi[1],
51999
52428
  clearSessionFormData = _Digit$Hooks$useSessi[2];
52000
52429
  useEffect(() => {
52001
- var _applicationDetails$a2;
52430
+ var _applicationDetails$a3;
52002
52431
  const fetchAppData = function () {
52003
52432
  try {
52004
52433
  const dataToConvert = applicationDetails || details;
52005
52434
  const _temp = function (_dataToConvert$applic) {
52006
52435
  if (dataToConvert !== null && dataToConvert !== void 0 && (_dataToConvert$applic = dataToConvert.applicationData) !== null && _dataToConvert$applic !== void 0 && _dataToConvert$applic.id) {
52007
52436
  var _dataToConvert$applic2;
52008
- return Promise.resolve(convertApplicationData(dataToConvert, (serviceType === null || serviceType === void 0 ? void 0 : serviceType.toUpperCase()) || (dataToConvert === null || dataToConvert === void 0 ? void 0 : (_dataToConvert$applic2 = dataToConvert.applicationData) === null || _dataToConvert$applic2 === void 0 ? void 0 : _dataToConvert$applic2.serviceType), true, undefined, t)).then(function (convertAppData) {
52437
+ return Promise.resolve(convertApplicationData(dataToConvert, (resolvedServiceType === null || resolvedServiceType === void 0 ? void 0 : resolvedServiceType.toUpperCase()) || (dataToConvert === null || dataToConvert === void 0 ? void 0 : (_dataToConvert$applic2 = dataToConvert.applicationData) === null || _dataToConvert$applic2 === void 0 ? void 0 : _dataToConvert$applic2.serviceType), true, undefined, t)).then(function (convertAppData) {
52009
52438
  setSessionFormData(prev => _extends({}, prev, convertAppData));
52010
52439
  sessionStorage.setItem("IsDetailsExists", JSON.stringify(true));
52011
52440
  });
@@ -52016,10 +52445,52 @@ const MutationApplication = () => {
52016
52445
  return Promise.reject(e);
52017
52446
  }
52018
52447
  };
52019
- if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a2 = applicationDetails.applicationData) !== null && _applicationDetails$a2 !== void 0 && _applicationDetails$a2.id && !(sessionFormData !== null && sessionFormData !== void 0 && sessionFormData.applicationData)) {
52448
+ if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a3 = applicationDetails.applicationData) !== null && _applicationDetails$a3 !== void 0 && _applicationDetails$a3.id && !(sessionFormData !== null && sessionFormData !== void 0 && sessionFormData.applicationData)) {
52020
52449
  fetchAppData();
52021
52450
  }
52022
- }, [applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a3 = applicationDetails.applicationData) === null || _applicationDetails$a3 === void 0 ? void 0 : _applicationDetails$a3.id]);
52451
+ }, [applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a4 = applicationDetails.applicationData) === null || _applicationDetails$a4 === void 0 ? void 0 : _applicationDetails$a4.id]);
52452
+ useEffect(() => {
52453
+ const isCitizen = window.location.href.includes("/citizen/");
52454
+ if (isCitizen && isEditFlow && applicationDetails !== null && applicationDetails !== void 0 && applicationDetails.applicationData) {
52455
+ const data = applicationDetails.applicationData;
52456
+ const holders = (data === null || data === void 0 ? void 0 : data.connectionHolders) || [];
52457
+ const primaryHolder = holders.find(h => h.isPrimaryOwner) || holders[0] || {};
52458
+ const additionalDetails = (data === null || data === void 0 ? void 0 : data.additionalDetails) || {};
52459
+ const documents = (data === null || data === void 0 ? void 0 : data.documents) || [];
52460
+ setFormData(prev => {
52461
+ if (Object.keys(prev).length > 0) return prev;
52462
+ const identityDoc = documents.find(d => {
52463
+ var _d$documentType;
52464
+ return ["AADHAAR", "VOTERID", "VOTER_ID", "PAN", "DRIVING_LICENSE", "PASSPORT"].includes((_d$documentType = d.documentType) === null || _d$documentType === void 0 ? void 0 : _d$documentType.toUpperCase());
52465
+ });
52466
+ const mutationDoc = documents.find(d => d.documentType === "REGISTERED_SALE_DEED" || d.documentType === "SALE_DEED" || d.documentType === "GIFT_DEED" || d.documentType === "WILL");
52467
+ return {
52468
+ proposedNewConsumerName: primaryHolder.name || "",
52469
+ gender: primaryHolder.gender ? {
52470
+ code: primaryHolder.gender,
52471
+ i18nKey: primaryHolder.gender
52472
+ } : null,
52473
+ newOwnerMobileNumber: primaryHolder.mobileNumber || "",
52474
+ newOwnerEmailAddress: primaryHolder.emailId || "",
52475
+ reasonForNameChange: additionalDetails.reasonForNameChange ? {
52476
+ code: additionalDetails.reasonForNameChange,
52477
+ i18nKey: additionalDetails.reasonForNameChange
52478
+ } : null,
52479
+ relationshipWithExistingConsumer: additionalDetails.relationshipWithExistingConsumer ? {
52480
+ code: additionalDetails.relationshipWithExistingConsumer,
52481
+ i18nKey: additionalDetails.relationshipWithExistingConsumer
52482
+ } : null,
52483
+ saleDeedDocumentId: (mutationDoc === null || mutationDoc === void 0 ? void 0 : mutationDoc.fileStoreId) || additionalDetails.saleDeedDocumentId || "",
52484
+ identityProofDocumentId: (identityDoc === null || identityDoc === void 0 ? void 0 : identityDoc.fileStoreId) || "",
52485
+ identityProofType: identityDoc !== null && identityDoc !== void 0 && identityDoc.documentType ? {
52486
+ code: identityDoc.documentType,
52487
+ i18nKey: identityDoc.documentType
52488
+ } : null,
52489
+ documentNumber: additionalDetails.identityProofNumber || (identityDoc === null || identityDoc === void 0 ? void 0 : identityDoc.documentUid) || ""
52490
+ };
52491
+ });
52492
+ }
52493
+ }, [applicationDetails, isEditFlow]);
52023
52494
  useEffect(() => {
52024
52495
  var _propertyDetails$Prop;
52025
52496
  if (propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop = propertyDetails.Properties) !== null && _propertyDetails$Prop !== void 0 && _propertyDetails$Prop[0]) {
@@ -52043,18 +52514,18 @@ const MutationApplication = () => {
52043
52514
  sewerageUpdateMutation = _Digit$Hooks$ws$useWS2.mutate;
52044
52515
  const handleNextStep2 = data => {
52045
52516
  setFormData(prev => _extends({}, prev, data));
52046
- setCompletedSteps(prev => new Set([...prev, 2]));
52047
- setCurrentStep(3);
52517
+ setCompletedSteps(prev => new Set([...prev, 3]));
52518
+ setCurrentStep(4);
52048
52519
  };
52049
52520
  const handleNextStep3 = data => {
52050
52521
  setFormData(prev => _extends({}, prev, data));
52051
- setCompletedSteps(prev => new Set([...prev, 3]));
52052
- setCurrentStep(4);
52522
+ setCompletedSteps(prev => new Set([...prev, 4]));
52523
+ setCurrentStep(5);
52053
52524
  };
52054
52525
  const submitApplication = function () {
52055
52526
  try {
52056
52527
  setIsSubmitting(true);
52057
- const _temp2 = _catch(function () {
52528
+ return Promise.resolve(_catch(function () {
52058
52529
  var _finalData$cpt;
52059
52530
  let finalData = _extends({}, sessionFormData);
52060
52531
  if (!(finalData !== null && finalData !== void 0 && (_finalData$cpt = finalData.cpt) !== null && _finalData$cpt !== void 0 && _finalData$cpt.details)) {
@@ -52088,7 +52559,7 @@ const MutationApplication = () => {
52088
52559
  const sessionDetails = sessionStorage.getItem("WS_EDIT_APPLICATION_DETAILS") ? JSON.parse(sessionStorage.getItem("WS_EDIT_APPLICATION_DETAILS")) : {};
52089
52560
  return Promise.resolve(convertModifyApplicationDetails(finalData, sessionDetails, "INITIATE")).then(function (convertAppData) {
52090
52561
  if (!convertAppData.dateEffectiveFrom) {
52091
- convertAppData.dateEffectiveFrom = Date.now();
52562
+ convertAppData.dateEffectiveFrom = Date.now() + 86400000;
52092
52563
  }
52093
52564
  if (finalData !== null && finalData !== void 0 && finalData.MutationApplicantDetails) {
52094
52565
  var _mutDetails$reasonFor;
@@ -52123,8 +52594,67 @@ const MutationApplication = () => {
52123
52594
  });
52124
52595
  }
52125
52596
  }
52126
- convertAppData.applicationType = serviceType == "WATER" ? "MUTATION_WATER_CONNECTION" : "MUTATION_SEWERAGE_CONNECTION";
52127
- const reqDetails = serviceType == "WATER" ? {
52597
+ convertAppData.applicationType = resolvedServiceType === "WATER" ? "MUTATION_WATER_CONNECTION" : "MUTATION_SEWERAGE_CONNECTION";
52598
+ if (isEditFlow) {
52599
+ var _applicationDetails$a5, _applicationDetails$a6, _Digit, _Digit$Customizations, _Digit$Customizations2;
52600
+ let updatePayload = _extends({}, convertAppData, {
52601
+ id: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a5 = applicationDetails.applicationData) === null || _applicationDetails$a5 === void 0 ? void 0 : _applicationDetails$a5.id,
52602
+ applicationNo: editApplicationNumber,
52603
+ processInstance: _extends({}, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a6 = applicationDetails.applicationData) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.processInstance, convertAppData === null || convertAppData === void 0 ? void 0 : convertAppData.processInstance, {
52604
+ action: "RESUBMIT_APPLICATION"
52605
+ })
52606
+ });
52607
+ if ((_Digit = Digit) !== null && _Digit !== void 0 && (_Digit$Customizations = _Digit.Customizations) !== null && _Digit$Customizations !== void 0 && (_Digit$Customizations2 = _Digit$Customizations.WS) !== null && _Digit$Customizations2 !== void 0 && _Digit$Customizations2.customiseUpdatePayloadOfWS) {
52608
+ updatePayload = Digit.Customizations.WS.customiseUpdatePayloadOfWS((applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData) || {}, updatePayload, resolvedServiceType);
52609
+ }
52610
+ const updateMutation = resolvedServiceType === "WATER" ? waterUpdateMutation : sewerageUpdateMutation;
52611
+ let reqDetailsUpdate = resolvedServiceType === "WATER" ? {
52612
+ WaterConnection: updatePayload,
52613
+ reconnectRequest: false,
52614
+ disconnectRequest: false
52615
+ } : {
52616
+ SewerageConnection: updatePayload,
52617
+ reconnectRequest: false,
52618
+ disconnectRequest: false
52619
+ };
52620
+ updateMutation(reqDetailsUpdate, {
52621
+ onError: error => {
52622
+ var _error$response, _error$response$data, _error$response$data$, _error$response$data$2;
52623
+ setIsSubmitting(false);
52624
+ setShowToast({
52625
+ key: "error",
52626
+ message: (error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : (_error$response$data$ = _error$response$data.Errors) === null || _error$response$data$ === void 0 ? void 0 : (_error$response$data$2 = _error$response$data$[0]) === null || _error$response$data$2 === void 0 ? void 0 : _error$response$data$2.message) || "Failed to update application"
52627
+ });
52628
+ },
52629
+ onSuccess: updateData => {
52630
+ var _updateData$response, _updateData$response$, _updateData$WaterConn, _updateData$WaterConn2, _updateData$SewerageC, _updateData$SewerageC2;
52631
+ setIsSubmitting(false);
52632
+ if (updateData instanceof Error || updateData !== null && updateData !== void 0 && updateData.isAxiosError || updateData !== null && updateData !== void 0 && (_updateData$response = updateData.response) !== null && _updateData$response !== void 0 && (_updateData$response$ = _updateData$response.data) !== null && _updateData$response$ !== void 0 && _updateData$response$.Errors) {
52633
+ var _updateData$response2, _updateData$response3, _apiErrors$;
52634
+ const apiErrors = updateData === null || updateData === void 0 ? void 0 : (_updateData$response2 = updateData.response) === null || _updateData$response2 === void 0 ? void 0 : (_updateData$response3 = _updateData$response2.data) === null || _updateData$response3 === void 0 ? void 0 : _updateData$response3.Errors;
52635
+ const errorMessage = (apiErrors === null || apiErrors === void 0 ? void 0 : (_apiErrors$ = apiErrors[0]) === null || _apiErrors$ === void 0 ? void 0 : _apiErrors$.message) || (updateData === null || updateData === void 0 ? void 0 : updateData.message) || "Failed to update application";
52636
+ setShowToast({
52637
+ key: "error",
52638
+ message: errorMessage
52639
+ });
52640
+ return;
52641
+ }
52642
+ if (updateData !== null && updateData !== void 0 && updateData.Errors && updateData.Errors.length > 0) {
52643
+ setShowToast({
52644
+ key: "error",
52645
+ message: updateData.Errors[0].message || "Failed to update application"
52646
+ });
52647
+ return;
52648
+ }
52649
+ clearSessionFormData();
52650
+ const newAppNo = resolvedServiceType === "WATER" ? updateData === null || updateData === void 0 ? void 0 : (_updateData$WaterConn = updateData.WaterConnection) === null || _updateData$WaterConn === void 0 ? void 0 : (_updateData$WaterConn2 = _updateData$WaterConn[0]) === null || _updateData$WaterConn2 === void 0 ? void 0 : _updateData$WaterConn2.applicationNo : updateData === null || updateData === void 0 ? void 0 : (_updateData$SewerageC = updateData.SewerageConnections) === null || _updateData$SewerageC === void 0 ? void 0 : (_updateData$SewerageC2 = _updateData$SewerageC[0]) === null || _updateData$SewerageC2 === void 0 ? void 0 : _updateData$SewerageC2.applicationNo;
52651
+ setGeneratedAppNo(newAppNo);
52652
+ setCurrentStep(6);
52653
+ }
52654
+ });
52655
+ return;
52656
+ }
52657
+ const reqDetails = resolvedServiceType === "WATER" ? {
52128
52658
  WaterConnection: convertAppData,
52129
52659
  reconnectRequest: false,
52130
52660
  disconnectRequest: false
@@ -52133,23 +52663,23 @@ const MutationApplication = () => {
52133
52663
  reconnectRequest: false,
52134
52664
  disconnectRequest: false
52135
52665
  };
52136
- const mutation = serviceType == "WATER" ? waterMutation : sewerageMutation;
52666
+ const mutation = resolvedServiceType === "WATER" ? waterMutation : sewerageMutation;
52137
52667
  return Promise.resolve(mutation(reqDetails, {
52138
52668
  onError: error => {
52139
- var _error$response, _error$response$data, _error$response$data$, _error$response$data$2;
52669
+ var _error$response2, _error$response2$data, _error$response2$data2, _error$response2$data3;
52140
52670
  setIsSubmitting(false);
52141
52671
  setShowToast({
52142
52672
  key: "error",
52143
- message: (error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : (_error$response$data$ = _error$response$data.Errors) === null || _error$response$data$ === void 0 ? void 0 : (_error$response$data$2 = _error$response$data$[0]) === null || _error$response$data$2 === void 0 ? void 0 : _error$response$data$2.message) || "Failed to submit application"
52673
+ message: (error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : (_error$response2$data2 = _error$response2$data.Errors) === null || _error$response2$data2 === void 0 ? void 0 : (_error$response2$data3 = _error$response2$data2[0]) === null || _error$response2$data3 === void 0 ? void 0 : _error$response2$data3.message) || "Failed to submit application"
52144
52674
  });
52145
52675
  },
52146
52676
  onSuccess: data => {
52147
52677
  var _data$response, _data$response$data;
52148
52678
  if (data instanceof Error || data !== null && data !== void 0 && data.isAxiosError || data !== null && data !== void 0 && (_data$response = data.response) !== null && _data$response !== void 0 && (_data$response$data = _data$response.data) !== null && _data$response$data !== void 0 && _data$response$data.Errors) {
52149
- var _data$response2, _data$response2$data, _apiErrors$;
52679
+ var _data$response2, _data$response2$data, _apiErrors$2;
52150
52680
  setIsSubmitting(false);
52151
52681
  const apiErrors = data === null || data === void 0 ? void 0 : (_data$response2 = data.response) === null || _data$response2 === void 0 ? void 0 : (_data$response2$data = _data$response2.data) === null || _data$response2$data === void 0 ? void 0 : _data$response2$data.Errors;
52152
- const errorMessage = (apiErrors === null || apiErrors === void 0 ? void 0 : (_apiErrors$ = apiErrors[0]) === null || _apiErrors$ === void 0 ? void 0 : _apiErrors$.message) || (data === null || data === void 0 ? void 0 : data.message) || "Failed to submit application";
52682
+ const errorMessage = (apiErrors === null || apiErrors === void 0 ? void 0 : (_apiErrors$2 = apiErrors[0]) === null || _apiErrors$2 === void 0 ? void 0 : _apiErrors$2.message) || (data === null || data === void 0 ? void 0 : data.message) || "Failed to submit application";
52153
52683
  setShowToast({
52154
52684
  key: "error",
52155
52685
  message: errorMessage
@@ -52163,19 +52693,19 @@ const MutationApplication = () => {
52163
52693
  message: data.Errors[0].message || "Failed to submit application"
52164
52694
  });
52165
52695
  } else {
52166
- var _data$WaterConnection, _data$SewerageConnect, _Digit, _Digit$Customizations, _Digit$Customizations2;
52167
- const updateMutation = serviceType == "WATER" ? waterUpdateMutation : sewerageUpdateMutation;
52168
- const createdConnection = serviceType == "WATER" ? data === null || data === void 0 ? void 0 : (_data$WaterConnection = data.WaterConnection) === null || _data$WaterConnection === void 0 ? void 0 : _data$WaterConnection[0] : data === null || data === void 0 ? void 0 : (_data$SewerageConnect = data.SewerageConnections) === null || _data$SewerageConnect === void 0 ? void 0 : _data$SewerageConnect[0];
52696
+ var _data$WaterConnection, _data$SewerageConnect, _Digit2, _Digit2$Customization, _Digit2$Customization2;
52697
+ const updateMutation = resolvedServiceType === "WATER" ? waterUpdateMutation : sewerageUpdateMutation;
52698
+ const createdConnection = resolvedServiceType === "WATER" ? data === null || data === void 0 ? void 0 : (_data$WaterConnection = data.WaterConnection) === null || _data$WaterConnection === void 0 ? void 0 : _data$WaterConnection[0] : data === null || data === void 0 ? void 0 : (_data$SewerageConnect = data.SewerageConnections) === null || _data$SewerageConnect === void 0 ? void 0 : _data$SewerageConnect[0];
52169
52699
  let updatePayload = _extends({}, createdConnection, {
52170
52700
  dateEffectiveFrom: (createdConnection === null || createdConnection === void 0 ? void 0 : createdConnection.dateEffectiveFrom) || Date.now(),
52171
52701
  processInstance: _extends({}, createdConnection === null || createdConnection === void 0 ? void 0 : createdConnection.processInstance, {
52172
52702
  action: "APPLY_MUTATION"
52173
52703
  })
52174
52704
  });
52175
- if ((_Digit = Digit) !== null && _Digit !== void 0 && (_Digit$Customizations = _Digit.Customizations) !== null && _Digit$Customizations !== void 0 && (_Digit$Customizations2 = _Digit$Customizations.WS) !== null && _Digit$Customizations2 !== void 0 && _Digit$Customizations2.customiseUpdatePayloadOfWS) {
52176
- updatePayload = Digit.Customizations.WS.customiseUpdatePayloadOfWS(createdConnection, updatePayload, serviceType);
52705
+ if ((_Digit2 = Digit) !== null && _Digit2 !== void 0 && (_Digit2$Customization = _Digit2.Customizations) !== null && _Digit2$Customization !== void 0 && (_Digit2$Customization2 = _Digit2$Customization.WS) !== null && _Digit2$Customization2 !== void 0 && _Digit2$Customization2.customiseUpdatePayloadOfWS) {
52706
+ updatePayload = Digit.Customizations.WS.customiseUpdatePayloadOfWS(createdConnection, updatePayload, resolvedServiceType);
52177
52707
  }
52178
- let reqDetailsUpdate = serviceType == "WATER" ? {
52708
+ let reqDetailsUpdate = resolvedServiceType === "WATER" ? {
52179
52709
  WaterConnection: updatePayload,
52180
52710
  reconnectRequest: false,
52181
52711
  disconnectRequest: false
@@ -52186,20 +52716,20 @@ const MutationApplication = () => {
52186
52716
  };
52187
52717
  updateMutation(reqDetailsUpdate, {
52188
52718
  onError: error => {
52189
- var _error$response2, _error$response2$data, _error$response2$data2, _error$response2$data3;
52719
+ var _error$response3, _error$response3$data, _error$response3$data2, _error$response3$data3;
52190
52720
  setIsSubmitting(false);
52191
52721
  setShowToast({
52192
52722
  key: "error",
52193
- message: (error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : (_error$response2$data2 = _error$response2$data.Errors) === null || _error$response2$data2 === void 0 ? void 0 : (_error$response2$data3 = _error$response2$data2[0]) === null || _error$response2$data3 === void 0 ? void 0 : _error$response2$data3.message) || "Failed to update workflow"
52723
+ message: (error === null || error === void 0 ? void 0 : (_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : (_error$response3$data = _error$response3.data) === null || _error$response3$data === void 0 ? void 0 : (_error$response3$data2 = _error$response3$data.Errors) === null || _error$response3$data2 === void 0 ? void 0 : (_error$response3$data3 = _error$response3$data2[0]) === null || _error$response3$data3 === void 0 ? void 0 : _error$response3$data3.message) || "Failed to update workflow"
52194
52724
  });
52195
52725
  },
52196
52726
  onSuccess: updateData => {
52197
- var _updateData$response, _updateData$response$, _updateData$WaterConn, _updateData$WaterConn2, _updateData$SewerageC, _updateData$SewerageC2;
52727
+ var _updateData$response4, _updateData$response5, _updateData$WaterConn3, _updateData$WaterConn4, _updateData$SewerageC3, _updateData$SewerageC4;
52198
52728
  setIsSubmitting(false);
52199
- if (updateData instanceof Error || updateData !== null && updateData !== void 0 && updateData.isAxiosError || updateData !== null && updateData !== void 0 && (_updateData$response = updateData.response) !== null && _updateData$response !== void 0 && (_updateData$response$ = _updateData$response.data) !== null && _updateData$response$ !== void 0 && _updateData$response$.Errors) {
52200
- var _updateData$response2, _updateData$response3, _apiErrors$2;
52201
- const apiErrors = updateData === null || updateData === void 0 ? void 0 : (_updateData$response2 = updateData.response) === null || _updateData$response2 === void 0 ? void 0 : (_updateData$response3 = _updateData$response2.data) === null || _updateData$response3 === void 0 ? void 0 : _updateData$response3.Errors;
52202
- const errorMessage = (apiErrors === null || apiErrors === void 0 ? void 0 : (_apiErrors$2 = apiErrors[0]) === null || _apiErrors$2 === void 0 ? void 0 : _apiErrors$2.message) || (updateData === null || updateData === void 0 ? void 0 : updateData.message) || "Failed to update workflow";
52729
+ if (updateData instanceof Error || updateData !== null && updateData !== void 0 && updateData.isAxiosError || updateData !== null && updateData !== void 0 && (_updateData$response4 = updateData.response) !== null && _updateData$response4 !== void 0 && (_updateData$response5 = _updateData$response4.data) !== null && _updateData$response5 !== void 0 && _updateData$response5.Errors) {
52730
+ var _updateData$response6, _updateData$response7, _apiErrors$3;
52731
+ const apiErrors = updateData === null || updateData === void 0 ? void 0 : (_updateData$response6 = updateData.response) === null || _updateData$response6 === void 0 ? void 0 : (_updateData$response7 = _updateData$response6.data) === null || _updateData$response7 === void 0 ? void 0 : _updateData$response7.Errors;
52732
+ const errorMessage = (apiErrors === null || apiErrors === void 0 ? void 0 : (_apiErrors$3 = apiErrors[0]) === null || _apiErrors$3 === void 0 ? void 0 : _apiErrors$3.message) || (updateData === null || updateData === void 0 ? void 0 : updateData.message) || "Failed to update workflow";
52203
52733
  setShowToast({
52204
52734
  key: "error",
52205
52735
  message: errorMessage
@@ -52214,9 +52744,9 @@ const MutationApplication = () => {
52214
52744
  return;
52215
52745
  }
52216
52746
  clearSessionFormData();
52217
- const newAppNo = serviceType == "WATER" ? updateData === null || updateData === void 0 ? void 0 : (_updateData$WaterConn = updateData.WaterConnection) === null || _updateData$WaterConn === void 0 ? void 0 : (_updateData$WaterConn2 = _updateData$WaterConn[0]) === null || _updateData$WaterConn2 === void 0 ? void 0 : _updateData$WaterConn2.applicationNo : updateData === null || updateData === void 0 ? void 0 : (_updateData$SewerageC = updateData.SewerageConnections) === null || _updateData$SewerageC === void 0 ? void 0 : (_updateData$SewerageC2 = _updateData$SewerageC[0]) === null || _updateData$SewerageC2 === void 0 ? void 0 : _updateData$SewerageC2.applicationNo;
52747
+ const newAppNo = resolvedServiceType === "WATER" ? updateData === null || updateData === void 0 ? void 0 : (_updateData$WaterConn3 = updateData.WaterConnection) === null || _updateData$WaterConn3 === void 0 ? void 0 : (_updateData$WaterConn4 = _updateData$WaterConn3[0]) === null || _updateData$WaterConn4 === void 0 ? void 0 : _updateData$WaterConn4.applicationNo : updateData === null || updateData === void 0 ? void 0 : (_updateData$SewerageC3 = updateData.SewerageConnections) === null || _updateData$SewerageC3 === void 0 ? void 0 : (_updateData$SewerageC4 = _updateData$SewerageC3[0]) === null || _updateData$SewerageC4 === void 0 ? void 0 : _updateData$SewerageC4.applicationNo;
52218
52748
  setGeneratedAppNo(newAppNo);
52219
- setCurrentStep(5);
52749
+ setCurrentStep(6);
52220
52750
  }
52221
52751
  });
52222
52752
  }
@@ -52230,8 +52760,7 @@ const MutationApplication = () => {
52230
52760
  key: "error",
52231
52761
  message: "Failed to submit application"
52232
52762
  });
52233
- });
52234
- return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
52763
+ }));
52235
52764
  } catch (e) {
52236
52765
  return Promise.reject(e);
52237
52766
  }
@@ -52251,6 +52780,10 @@ const MutationApplication = () => {
52251
52780
  }
52252
52781
  };
52253
52782
  const timelineConfig = [{
52783
+ sectionId: "search",
52784
+ route: "search-connection",
52785
+ actions: "Authentication"
52786
+ }, {
52254
52787
  sectionId: "application",
52255
52788
  route: "application-selection",
52256
52789
  actions: "Existing Connection"
@@ -52272,12 +52805,12 @@ const MutationApplication = () => {
52272
52805
  currentStep: index + 1
52273
52806
  }]
52274
52807
  }));
52275
- if (isDetailsLoading || propertyId && isPropertyLoading) {
52808
+ if (isDetailsLoading || propertyId && isPropertyLoading || isWorkflowLoading) {
52276
52809
  return /*#__PURE__*/React.createElement(Loader, null);
52277
52810
  }
52278
52811
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
52279
52812
  className: "employee-form-section-wrapper"
52280
- }, currentStep !== 5 && /*#__PURE__*/React.createElement(VerticalTimeline, {
52813
+ }, currentStep !== 6 && !isMobile && /*#__PURE__*/React.createElement(VerticalTimeline, {
52281
52814
  config: timelineConfig,
52282
52815
  currentActiveIndex: currentStep - 1,
52283
52816
  showFinalStep: false,
@@ -52285,52 +52818,53 @@ const MutationApplication = () => {
52285
52818
  }), /*#__PURE__*/React.createElement("div", {
52286
52819
  style: {
52287
52820
  flex: "1",
52821
+ overflowY: "auto",
52288
52822
  minWidth: 0
52289
52823
  }
52290
- }, currentStep === 1 && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Step1_ExistingConnection, {
52824
+ }, currentStep === 1 && /*#__PURE__*/React.createElement(Step1_SearchConnection, {
52291
52825
  t: t,
52292
- applicationDetails: applicationDetails,
52293
- propertyId: propertyId
52294
- }), /*#__PURE__*/React.createElement("div", {
52295
- style: {
52296
- display: "flex",
52297
- justifyContent: "flex-end"
52298
- }
52299
- }, /*#__PURE__*/React.createElement("button", {
52300
- onClick: () => {
52826
+ defaultKNumber: isEditFlow ? applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a7 = applicationDetails.applicationData) === null || _applicationDetails$a7 === void 0 ? void 0 : _applicationDetails$a7.connectionNo : "",
52827
+ onNext: _ref => {
52828
+ let kNumber = _ref.kNumber,
52829
+ mobileNumber = _ref.mobileNumber,
52830
+ detectedServiceType = _ref.serviceType;
52831
+ setAuthKNumber(kNumber);
52832
+ setAuthMobileNumber(mobileNumber);
52833
+ if (detectedServiceType) setAuthServiceType(detectedServiceType);
52301
52834
  setCompletedSteps(prev => new Set([...prev, 1]));
52302
52835
  setCurrentStep(2);
52303
- },
52304
- style: {
52305
- padding: "10px 24px",
52306
- backgroundColor: "#00497e",
52307
- color: "white",
52308
- border: "none",
52309
- borderRadius: "4px",
52310
- cursor: "pointer",
52311
- fontWeight: "bold"
52312
52836
  }
52313
- }, "Proceed to New Consumer Details \u2192"))), currentStep === 2 && /*#__PURE__*/React.createElement(Step2_NewConsumerDetails, {
52837
+ }), currentStep === 2 && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Step1_ExistingConnection, {
52838
+ t: t,
52839
+ applicationDetails: applicationDetails,
52840
+ propertyId: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a8 = applicationDetails.applicationData) === null || _applicationDetails$a8 === void 0 ? void 0 : _applicationDetails$a8.propertyId,
52841
+ mobileNumber: authMobileNumber,
52842
+ onVerify: () => {
52843
+ setCompletedSteps(prev => new Set([...prev, 2]));
52844
+ setCurrentStep(3);
52845
+ }
52846
+ })), currentStep === 3 && /*#__PURE__*/React.createElement(Step2_NewConsumerDetails, {
52314
52847
  t: t,
52315
52848
  defaultValues: formData,
52316
52849
  onNext: handleNextStep2,
52317
- onBack: () => setCurrentStep(1)
52318
- }), currentStep === 3 && /*#__PURE__*/React.createElement(Step3_UploadDocuments, {
52850
+ onBack: () => setCurrentStep(2)
52851
+ }), currentStep === 4 && /*#__PURE__*/React.createElement(Step3_UploadDocuments, {
52319
52852
  t: t,
52320
52853
  defaultValues: formData,
52321
52854
  onNext: handleNextStep3,
52322
- onBack: () => setCurrentStep(2)
52323
- }), currentStep === 4 && /*#__PURE__*/React.createElement(Step4_Preview, {
52855
+ onBack: () => setCurrentStep(3)
52856
+ }), currentStep === 5 && /*#__PURE__*/React.createElement(Step4_Preview, {
52324
52857
  t: t,
52325
52858
  formData: formData,
52326
52859
  applicationDetails: applicationDetails,
52327
- onBack: () => setCurrentStep(3),
52860
+ resolvedServiceType: resolvedServiceType,
52861
+ onBack: () => setCurrentStep(4),
52328
52862
  onSubmit: submitApplication,
52329
52863
  isLoading: isSubmitting
52330
- }), currentStep === 5 && /*#__PURE__*/React.createElement(Step5_Submission, {
52864
+ }), currentStep === 6 && /*#__PURE__*/React.createElement(Step5_Submission, {
52331
52865
  t: t,
52332
52866
  applicationNumber: generatedAppNo,
52333
- serviceType: serviceType || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a4 = applicationDetails.applicationData) === null || _applicationDetails$a4 === void 0 ? void 0 : _applicationDetails$a4.serviceType)
52867
+ serviceType: resolvedServiceType
52334
52868
  }), showToast && /*#__PURE__*/React.createElement(Toast, {
52335
52869
  error: (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error",
52336
52870
  warning: (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "warning",
@@ -55201,6 +55735,9 @@ const WSLinks = _ref2 => {
55201
55735
  }, {
55202
55736
  link: matchPath + "/my-connections",
55203
55737
  i18nKey: t("ACTION_TEXT_WS_MY_CONNECTION")
55738
+ }, {
55739
+ link: matchPath + "/mutation-application",
55740
+ i18nKey: t("WS_APPLY_MUTATION")
55204
55741
  }];
55205
55742
  return /*#__PURE__*/React.createElement(CitizenHomeCard, {
55206
55743
  header: t("ACTION_TEST_WATER_AND_SEWERAGE"),