@mseva/digit-ui-module-ndc 1.0.75 → 1.0.77

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.
@@ -2319,7 +2319,7 @@ function NewApplicationTimeline({
2319
2319
  }, /*#__PURE__*/React.createElement("h3", {
2320
2320
  className: "custom-action-title"
2321
2321
  }, t("Action")), /*#__PURE__*/React.createElement("div", {
2322
- className: "custom-status-text"
2322
+ className: `custom-status-text ${(item === null || item === void 0 ? void 0 : item.performedAction) === "OBSERVATION" ? "chb-slot-status--unavailable" : ""}`
2323
2323
  }, t((item === null || item === void 0 ? void 0 : item.performedAction) || "CS_COMMON_NA")))), (item === null || item === void 0 ? void 0 : item.wfComment) && (item === null || item === void 0 ? void 0 : (_item$wfComment = item.wfComment) === null || _item$wfComment === void 0 ? void 0 : _item$wfComment.length) > 0 && (item === null || item === void 0 ? void 0 : (_item$wfComment2 = item.wfComment) === null || _item$wfComment2 === void 0 ? void 0 : _item$wfComment2.some(c => c === null || c === void 0 ? void 0 : c.trim())) && /*#__PURE__*/React.createElement("div", {
2324
2324
  className: "custom-comments-section container-full-width"
2325
2325
  }, /*#__PURE__*/React.createElement("div", {
@@ -2389,11 +2389,11 @@ const getAcknowledgementData = async (application, formattedAddress, tenantInfo,
2389
2389
  const applicationNumber = (appData === null || appData === void 0 ? void 0 : appData.applicationNo) || "NA";
2390
2390
  const ptObj = appData === null || appData === void 0 ? void 0 : (_appData$NdcDetails2 = appData.NdcDetails) === null || _appData$NdcDetails2 === void 0 ? void 0 : _appData$NdcDetails2.find(item => item.businessService === 'PT');
2391
2391
  const propertyId = ptObj === null || ptObj === void 0 ? void 0 : ptObj.consumerCode;
2392
- console.log('ptObj', ptObj);
2393
2392
  const propertyType = add !== null && add !== void 0 && add.propertyType ? t(add.propertyType) : "NA";
2394
2393
  const applicantName = (owner === null || owner === void 0 ? void 0 : owner.name) || "NA";
2395
2394
  const address = (appData === null || appData === void 0 ? void 0 : (_appData$NdcDetails3 = appData.NdcDetails) === null || _appData$NdcDetails3 === void 0 ? void 0 : (_appData$NdcDetails3$ = _appData$NdcDetails3[0]) === null || _appData$NdcDetails3$ === void 0 ? void 0 : (_appData$NdcDetails3$2 = _appData$NdcDetails3$.additionalDetails) === null || _appData$NdcDetails3$2 === void 0 ? void 0 : _appData$NdcDetails3$2.propertyAddress) || (owner === null || owner === void 0 ? void 0 : owner.permanentAddress) || (owner === null || owner === void 0 ? void 0 : owner.correspondenceAddress) || "NA";
2396
2395
  const remarks = (appData === null || appData === void 0 ? void 0 : (_appData$NdcDetails4 = appData.NdcDetails) === null || _appData$NdcDetails4 === void 0 ? void 0 : (_appData$NdcDetails4$ = _appData$NdcDetails4[0]) === null || _appData$NdcDetails4$ === void 0 ? void 0 : (_appData$NdcDetails4$2 = _appData$NdcDetails4$.additionalDetails) === null || _appData$NdcDetails4$2 === void 0 ? void 0 : _appData$NdcDetails4$2.remarks) || null;
2396
+ const reason = t(appData === null || appData === void 0 ? void 0 : appData.reason) || null;
2397
2397
  const ulbName = (tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.name) || (appData === null || appData === void 0 ? void 0 : appData.tenantId) || "NA";
2398
2398
  const ownerNames = ((application === null || application === void 0 ? void 0 : application.propertyOwnerNames) || []).join(", ") || "NA";
2399
2399
  console.log(appData, "APPDATA");
@@ -2448,7 +2448,7 @@ const getAcknowledgementData = async (application, formattedAddress, tenantInfo,
2448
2448
  bold: true,
2449
2449
  fontSize: 9
2450
2450
  }, {
2451
- text: " (s/o, d/o) ",
2451
+ text: " (s/o, d/o, w/o) ",
2452
2452
  bold: false,
2453
2453
  fontSize: 9
2454
2454
  }, {
@@ -2463,13 +2463,21 @@ const getAcknowledgementData = async (application, formattedAddress, tenantInfo,
2463
2463
  text: `${address}.\n`,
2464
2464
  bold: true,
2465
2465
  fontSize: 9
2466
+ }, {
2467
+ text: " Reason For Applying: ",
2468
+ bold: false,
2469
+ fontSize: 9
2470
+ }, {
2471
+ text: `${reason}.\n`,
2472
+ bold: true,
2473
+ fontSize: 9
2466
2474
  }, {
2467
2475
  text: [{
2468
2476
  text: `• This is to certify that, as per the records and data with ${ulbName}, all applicable municipal dues related to the above mentioned property have been duly recovered/deposited. `,
2469
2477
  bold: true,
2470
2478
  fontSize: 9
2471
2479
  }, {
2472
- text: `${t("NDC_CERTIFY_NOTE_ONE_PB")} ${ulbName} ${t("NDC_CERTIFY_NOTE_TWO_PB")}\n`,
2480
+ text: `ਇਹ ਪ੍ਰਮਾਣਿਤ ਕੀਤਾ ਜਾਂਦਾ ਹੈ ਕਿ ਉਪਰੋਕਤ ਉਲਲੇਖਿਤ ਸੰਪਤੀ ਨਾਲ ਸਬੰਧਿਤ ਸਾਰੇ ਲਾਗੂ ਨਗਰ ਨਿਗਮ ਦੇ ਬਕਾਇਆ, ${ulbName} ਦੇ ਅਭਿਲੇਖਾਂ ਅਤੇ ਡਾਟਾ ਅਨੁਸਾਰ, ਪੂਰੀ ਤਰ੍ਹਾਂ ਵਸੂਲ/ਜਮਾ ਕਰਵਾ ਦਿੱਤੇ ਗਏ ਹਨ।\n`,
2473
2481
  bold: false,
2474
2482
  fontSize: 9
2475
2483
  }]
@@ -2479,7 +2487,7 @@ const getAcknowledgementData = async (application, formattedAddress, tenantInfo,
2479
2487
  bold: true,
2480
2488
  fontSize: 9
2481
2489
  }, {
2482
- text: `${t("NDC_VALIDITY_NOTE_PB")}\n`,
2490
+ text: `ਇਹ ਨੋ ਡਿਊਜ਼ ਸਰਟੀਫਿਕੇਟ ਜਾਰੀ ਕਰਨ ਦੀ ਤਾਰੀਖ ਤੋਂ ਇੱਕ ਮਹੀਨੇ ਲਈ ਹੀ ਵੈਧ ਹੋਵੇਗਾ।\n`,
2483
2491
  bold: false,
2484
2492
  fontSize: 9
2485
2493
  }]
@@ -2489,7 +2497,7 @@ const getAcknowledgementData = async (application, formattedAddress, tenantInfo,
2489
2497
  bold: true,
2490
2498
  fontSize: 9
2491
2499
  }, {
2492
- text: `${t("NDC_BUILDING_NOTE_PB")}\n`,
2500
+ text: `ਇਹ ਕੇਵਲ ਮੌਜੂਦਾ ਤਾਰੀਖ ਤੱਕ ਦੇ ਨਗਰ ਨਿਗਮ ਦੇ ਬਕਾਇਆ ਲਈ ਨੋ ਡਿਊਜ਼ ਸਰਟੀਫਿਕੇਟ ਹੈ ਅਤੇ ਇਹ ਇਮਾਰਤੀ ਨਿਯਮਾਂ ਦੀ ਪਾਲਣਾ, ਭੂਮੀ ਉਪਯੋਗ ਵਿੱਚ ਬਦਲਾਅ, ਕੋਈ ਵੀ ਅੱਗ ਸੁਰੱਖਿਆ ਨਿਯਮ ਜਾਂ ਕਿਸੇ ਵੀ ਕਾਨੂੰਨ/ਨਿਯਮਾਂ ਅਧੀਨ ਹੋਣ ਵਾਲੀ ਹੋਰ ਪਾਲਣਾ ਨੂੰ ਨਿਯੰਤਰਿਤ ਨਹੀਂ ਕਰਦਾ।\n`,
2493
2501
  bold: false,
2494
2502
  fontSize: 9
2495
2503
  }]
@@ -2499,7 +2507,7 @@ const getAcknowledgementData = async (application, formattedAddress, tenantInfo,
2499
2507
  bold: true,
2500
2508
  fontSize: 9
2501
2509
  }, {
2502
- text: `${t("NDC_AUTHORITY_NOTE_PB")}\n`,
2510
+ text: `ਇਹ ਨੋ ਡਿਊਜ਼ ਸਰਟੀਫਿਕੇਟ ਕਿਸੇ ਵੀ ਯੋਗ ਅਧਿਕਾਰੀ ਨੂੰ ਆਪਣੇ ਲਾਗੂ ਕਾਨੂੰਨ/ਨਿਯਮਾਂ ਅਧੀਨ ਕਾਰਵਾਈ ਕਰਨ ਤੋਂ ਨਹੀਂ ਰੋਕਦਾ।\n`,
2503
2511
  bold: false,
2504
2512
  fontSize: 9
2505
2513
  }]
@@ -2509,7 +2517,7 @@ const getAcknowledgementData = async (application, formattedAddress, tenantInfo,
2509
2517
  bold: true,
2510
2518
  fontSize: 9
2511
2519
  }, {
2512
- text: `${t("NDC_DISCREPANCY_NOTE_PB")}\n`,
2520
+ text: `ਜੇ ਕਿਸੇ ਵੀ ਪੜਾਅ ‘ਤੇ ਨਗਰ ਨਿਗਮ/ਕੌਂਸਲ ਵੱਲੋਂ ਜਮ੍ਹਾਂ ਕਰਵਾਈ ਗਈ ਰਕਮ ਵਿੱਚ ਕੋਈ ਵੀ ਗੜਬੜ ਪਾਈ ਜਾਂਦੀ ਹੈ, ਤਾਂ ਨਗਰ ਨਿਗਮ/ਕੌਂਸਲ ਵੱਲੋਂ ਸੂਚਿਤ ਕੀਤੀ ਗਈ ਬਕਾਇਆ ਰਕਮ ਜਮ੍ਹਾਂ ਕਰਵਾਉਣ ਦੀ ਜ਼ਿੰਮੇਵਾਰੀ ਮਾਲਕ ਦੀ ਹੋਵੇਗੀ ਅਤੇ ਨਗਰ ਨਿਗਮ/ਕੌਂਸਲ ਨੂੰ ਇਸਦੀ ਵਸੂਲੀ ਦਾ ਪੂਰਾ ਅਧਿਕਾਰ ਹੋਵੇਗਾ।\n`,
2513
2521
  bold: false,
2514
2522
  fontSize: 9
2515
2523
  }]
@@ -2519,7 +2527,7 @@ const getAcknowledgementData = async (application, formattedAddress, tenantInfo,
2519
2527
  bold: true,
2520
2528
  fontSize: 9
2521
2529
  }, {
2522
- text: `${t("NDC_OWNERSHIP_NOTE_PB")}\n`,
2530
+ text: `ਇਹ ਸਰਟੀਫਿਕੇਟ ਕੇਵਲ ਨਗਰ ਨਿਗਮ ਦੇ ਬਕਾਇਆ ਲਈ ਜਾਰੀ ਕੀਤਾ ਗਿਆ ਹੈ ਅਤੇ ਇਹ ਮਲਕੀਅਤ ਦਾ ਕੋਈ ਸਬੂਤ ਨਹੀਂ ਹੈ।\n`,
2523
2531
  bold: false,
2524
2532
  fontSize: 9
2525
2533
  }]
@@ -2557,7 +2565,7 @@ const availableOptions = [{
2557
2565
  name: "No"
2558
2566
  }];
2559
2567
  const ApplicationOverview = () => {
2560
- var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _applicationDetails$A2, _applicationDetails$A3, _applicationDetails$A4, _applicationDetails$A5, _user, _user$info, _user$info$roles, _user2, _user2$info, _user2$info$roles$fin, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetailsTemp$, _workflowDetailsTemp$2, _propertyDetailsFetch3, _Object$entries, _displayData$NdcDetai2, _displayData$Document, _applicationDetails$A24, _applicationDetails$A25, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _applicationDetails$A26, _applicationDetails$A27, _workflowDetails$data12;
2568
+ var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _applicationDetails$A2, _applicationDetails$A3, _applicationDetails$A4, _applicationDetails$A5, _user, _user$info, _user$info$roles, _user2, _user2$info, _user2$info$roles$fin, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetailsTemp$, _workflowDetailsTemp$2, _applicationDetails$A10, _applicationDetails$A11, _propertyDetailsFetch3, _Object$entries, _displayData$NdcDetai2, _displayData$Document, _applicationDetails$A26, _applicationDetails$A27, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _applicationDetails$A28, _applicationDetails$A29, _workflowDetails$data12;
2561
2569
  const {
2562
2570
  id
2563
2571
  } = useParams();
@@ -2659,14 +2667,17 @@ const ApplicationOverview = () => {
2659
2667
  };
2660
2668
  useEffect(() => {
2661
2669
  let WorkflowService = null;
2662
- (async (_WorkflowService, _WorkflowService$Busi, _WorkflowService$Busi2) => {
2670
+ (async (_WorkflowService, _WorkflowService$Busi, _WorkflowService$Busi2, _WorkflowService2, _WorkflowService2$Bus, _WorkflowService2$Bus2) => {
2663
2671
  setLoader(true);
2664
2672
  WorkflowService = await Digit.WorkflowService.init(tenantId, "ndc-services");
2665
2673
  setLoader(false);
2666
- setWorkflowService((_WorkflowService = WorkflowService) === null || _WorkflowService === void 0 ? void 0 : (_WorkflowService$Busi = _WorkflowService.BusinessServices) === null || _WorkflowService$Busi === void 0 ? void 0 : (_WorkflowService$Busi2 = _WorkflowService$Busi[0]) === null || _WorkflowService$Busi2 === void 0 ? void 0 : _WorkflowService$Busi2.states);
2674
+ console.log("WorkflowService====", (_WorkflowService = WorkflowService) === null || _WorkflowService === void 0 ? void 0 : (_WorkflowService$Busi = _WorkflowService.BusinessServices) === null || _WorkflowService$Busi === void 0 ? void 0 : (_WorkflowService$Busi2 = _WorkflowService$Busi[0]) === null || _WorkflowService$Busi2 === void 0 ? void 0 : _WorkflowService$Busi2.states);
2675
+ setWorkflowService((_WorkflowService2 = WorkflowService) === null || _WorkflowService2 === void 0 ? void 0 : (_WorkflowService2$Bus = _WorkflowService2.BusinessServices) === null || _WorkflowService2$Bus === void 0 ? void 0 : (_WorkflowService2$Bus2 = _WorkflowService2$Bus[0]) === null || _WorkflowService2$Bus2 === void 0 ? void 0 : _WorkflowService2$Bus2.states);
2667
2676
  })();
2668
2677
  }, [tenantId]);
2669
2678
  const empData = EmployeeData(tenantId, approver);
2679
+ console.log("approver for ndc", approver);
2680
+ console.log("officerData", empData);
2670
2681
  const {
2671
2682
  data: reciept_data,
2672
2683
  isLoading: recieptDataLoading
@@ -2737,7 +2748,7 @@ const ApplicationOverview = () => {
2737
2748
  user = userInfo === null || userInfo === void 0 ? void 0 : userInfo.value;
2738
2749
  }
2739
2750
  const userRoles = (_user = user) === null || _user === void 0 ? void 0 : (_user$info = _user.info) === null || _user$info === void 0 ? void 0 : (_user$info$roles = _user$info.roles) === null || _user$info$roles === void 0 ? void 0 : _user$info$roles.map(e => e.code);
2740
- const isCemp = (_user2 = user) === null || _user2 === void 0 ? void 0 : (_user2$info = _user2.info) === null || _user2$info === void 0 ? void 0 : (_user2$info$roles$fin = _user2$info.roles.find(role => role.code == "NDCCEMP")) === null || _user2$info$roles$fin === void 0 ? void 0 : _user2$info$roles$fin.code;
2751
+ const isCemp = (_user2 = user) === null || _user2 === void 0 ? void 0 : (_user2$info = _user2.info) === null || _user2$info === void 0 ? void 0 : (_user2$info$roles$fin = _user2$info.roles.find(role => role.code === "NDCCEMP")) === null || _user2$info$roles$fin === void 0 ? void 0 : _user2$info$roles$fin.code;
2741
2752
  let actions = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data6 = workflowDetails.data) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6.actionState) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.nextActions) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.filter(e => {
2742
2753
  return (userRoles === null || userRoles === void 0 ? void 0 : userRoles.some(role => {
2743
2754
  var _e$roles;
@@ -2815,15 +2826,18 @@ const ApplicationOverview = () => {
2815
2826
  const owners = (propertyDetailsFetch === null || propertyDetailsFetch === void 0 ? void 0 : (_propertyDetailsFetch = propertyDetailsFetch.Properties) === null || _propertyDetailsFetch === void 0 ? void 0 : (_propertyDetailsFetch2 = _propertyDetailsFetch[0]) === null || _propertyDetailsFetch2 === void 0 ? void 0 : _propertyDetailsFetch2.owners) || [];
2816
2827
  const propertyOwnerNames = owners.map(owner => owner === null || owner === void 0 ? void 0 : owner.name).filter(Boolean);
2817
2828
  Property.propertyOwnerNames = propertyOwnerNames;
2829
+ console.log("propertyOwnerNames", propertyOwnerNames);
2818
2830
  const tenantInfo = tenants === null || tenants === void 0 ? void 0 : tenants.find(tenant => {
2819
2831
  var _Property$Application, _Property$Application2;
2820
2832
  return (tenant === null || tenant === void 0 ? void 0 : tenant.code) === (Property === null || Property === void 0 ? void 0 : (_Property$Application = Property.Applications) === null || _Property$Application === void 0 ? void 0 : (_Property$Application2 = _Property$Application[0]) === null || _Property$Application2 === void 0 ? void 0 : _Property$Application2.tenantId);
2821
2833
  });
2834
+ console.log("tenantInfo", tenantInfo);
2822
2835
  const ulbType = tenantInfo === null || tenantInfo === void 0 ? void 0 : (_tenantInfo$city = tenantInfo.city) === null || _tenantInfo$city === void 0 ? void 0 : _tenantInfo$city.ulbType;
2823
2836
  let acknowledgementData;
2824
2837
  if (empData) {
2825
2838
  acknowledgementData = await getAcknowledgementData(Property, formattedAddress, tenantInfo, t, approver, ulbType, empData, approverStatement);
2826
2839
  }
2840
+ console.log("acknowledgementData", acknowledgementData);
2827
2841
  setTimeout(() => {
2828
2842
  Digit.Utils.pdf.generateNDC(acknowledgementData);
2829
2843
  setLoader(false);
@@ -2834,16 +2848,23 @@ const ApplicationOverview = () => {
2834
2848
  }
2835
2849
  };
2836
2850
  function onActionSelect(action) {
2837
- var _applicationDetails$A8, _applicationDetails$A9, _action$state, _action$state$actions, _filterRoles$, _displayData$applican;
2851
+ var _action$state, _applicationDetails$A8, _applicationDetails$A9, _action$state2, _action$state2$action, _filterNexState$, _filterRoles$, _displayData$applican;
2852
+ console.log("action====||?", action === null || action === void 0 ? void 0 : (_action$state = action.state) === null || _action$state === void 0 ? void 0 : _action$state.actions);
2838
2853
  const ndcDetails = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A8 = applicationDetails.Applications) === null || _applicationDetails$A8 === void 0 ? void 0 : (_applicationDetails$A9 = _applicationDetails$A8[0]) === null || _applicationDetails$A9 === void 0 ? void 0 : _applicationDetails$A9.NdcDetails) || [];
2839
2854
  const hasDuePending = ndcDetails === null || ndcDetails === void 0 ? void 0 : ndcDetails.some(item => item.isDuePending === true);
2840
- const filterNexState = action === null || action === void 0 ? void 0 : (_action$state = action.state) === null || _action$state === void 0 ? void 0 : (_action$state$actions = _action$state.actions) === null || _action$state$actions === void 0 ? void 0 : _action$state$actions.filter(item => item.action == (action === null || action === void 0 ? void 0 : action.action));
2855
+ console.log("hasDuePending", hasDuePending);
2856
+ const filterNexState = action === null || action === void 0 ? void 0 : (_action$state2 = action.state) === null || _action$state2 === void 0 ? void 0 : (_action$state2$action = _action$state2.actions) === null || _action$state2$action === void 0 ? void 0 : _action$state2$action.filter(item => item.action == (action === null || action === void 0 ? void 0 : action.action));
2857
+ console.log("filterNexState====||?", (_filterNexState$ = filterNexState[0]) === null || _filterNexState$ === void 0 ? void 0 : _filterNexState$.nextState);
2841
2858
  const filterRoles = getWorkflowService === null || getWorkflowService === void 0 ? void 0 : getWorkflowService.filter(item => {
2842
- var _filterNexState$;
2843
- return (item === null || item === void 0 ? void 0 : item.uuid) == ((_filterNexState$ = filterNexState[0]) === null || _filterNexState$ === void 0 ? void 0 : _filterNexState$.nextState);
2859
+ var _filterNexState$2;
2860
+ return (item === null || item === void 0 ? void 0 : item.uuid) == ((_filterNexState$2 = filterNexState[0]) === null || _filterNexState$2 === void 0 ? void 0 : _filterNexState$2.nextState);
2844
2861
  });
2862
+ console.log("filterRoles====||?", filterRoles);
2863
+ console.log("action test", action === null || action === void 0 ? void 0 : action.action);
2845
2864
  const checkactionApp = (action === null || action === void 0 ? void 0 : action.action) == "APPROVE";
2865
+ console.log("filterRoles && checkactionApp", filterRoles && checkactionApp, checkactionApp, filterRoles);
2846
2866
  if (hasDuePending && checkactionApp) {
2867
+ console.log("alwasy coming appprve");
2847
2868
  setLable("You Can Not Approve This Application, Because It Has Pending Dues. Please Send It To Required Department");
2848
2869
  setError(true);
2849
2870
  setShowToast(true);
@@ -2969,6 +2990,7 @@ const ApplicationOverview = () => {
2969
2990
  enabled: getPropertyId ? true : false,
2970
2991
  privacy: Digit.Utils.getPrivacyObject()
2971
2992
  });
2993
+ console.log("applicationDetails", applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A10 = applicationDetails.Applications) === null || _applicationDetails$A10 === void 0 ? void 0 : (_applicationDetails$A11 = _applicationDetails$A10[0]) === null || _applicationDetails$A11 === void 0 ? void 0 : _applicationDetails$A11.NdcDetails);
2972
2994
  useEffect(() => {
2973
2995
  const handleClickOutside = event => {
2974
2996
  if (toastRef.current && !toastRef.current.contains(event.target)) {
@@ -3012,7 +3034,7 @@ const ApplicationOverview = () => {
3012
3034
  label: t(`${key === null || key === void 0 ? void 0 : key.toUpperCase()}`),
3013
3035
  text: Array.isArray(value) ? value.map(item => typeof item === "object" ? t((item === null || item === void 0 ? void 0 : item.code) || "N/A") : t(item || "N/A")).join(", ") : typeof value === "object" ? t((value === null || value === void 0 ? void 0 : value.code) || "N/A") : t(value || "N/A")
3014
3036
  }))))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("NDC_APPLICATION_NDC_DETAILS_OVERVIEW")), displayData === null || displayData === void 0 ? void 0 : (_displayData$NdcDetai2 = displayData.NdcDetails) === null || _displayData$NdcDetai2 === void 0 ? void 0 : _displayData$NdcDetai2.map((detail, index) => {
3015
- var _applicationDetails$A10, _applicationDetails$A11, _applicationDetails$A12, _applicationDetails$A13, _applicationDetails$A14, _applicationDetails$A15, _applicationDetails$A16, _applicationDetails$A17, _applicationDetails$A18, _propertyDetailsFetch4, _propertyDetailsFetch5, _propertyDetailsFetch6, _propertyDetailsFetch7, _propertyDetailsFetch8, _propertyDetailsFetch9, _propertyDetailsFetch0, _propertyDetailsFetch1, _propertyDetailsFetch10, _propertyDetailsFetch11, _propertyDetailsFetch12, _propertyDetailsFetch13, _propertyDetailsFetch14, _propertyDetailsFetch15, _propertyDetailsFetch16, _propertyDetailsFetch17, _propertyDetailsFetch18, _propertyDetailsFetch19, _propertyDetailsFetch20, _propertyDetailsFetch21, _applicationDetails$A19, _applicationDetails$A20, _applicationDetails$A21, _applicationDetails$A22, _applicationDetails$A23;
3037
+ var _applicationDetails$A12, _applicationDetails$A13, _applicationDetails$A14, _applicationDetails$A15, _applicationDetails$A16, _applicationDetails$A17, _applicationDetails$A18, _applicationDetails$A19, _applicationDetails$A20, _propertyDetailsFetch4, _propertyDetailsFetch5, _propertyDetailsFetch6, _propertyDetailsFetch7, _propertyDetailsFetch8, _propertyDetailsFetch9, _propertyDetailsFetch0, _propertyDetailsFetch1, _propertyDetailsFetch10, _propertyDetailsFetch11, _propertyDetailsFetch12, _propertyDetailsFetch13, _propertyDetailsFetch14, _propertyDetailsFetch15, _propertyDetailsFetch16, _propertyDetailsFetch17, _propertyDetailsFetch18, _propertyDetailsFetch19, _propertyDetailsFetch20, _propertyDetailsFetch21, _applicationDetails$A21, _applicationDetails$A22, _applicationDetails$A23, _applicationDetails$A24, _applicationDetails$A25;
3016
3038
  const isPT = (detail === null || detail === void 0 ? void 0 : detail.businessService) === "NDC_PROPERTY_TAX";
3017
3039
  const isSW = (detail === null || detail === void 0 ? void 0 : detail.businessService) === "NDC_SEWERAGE_SERVICE_CONNECTION";
3018
3040
  const isWS = (detail === null || detail === void 0 ? void 0 : detail.businessService) === "NDC_WATER_SERVICE_CONNECTION";
@@ -3071,7 +3093,7 @@ const ApplicationOverview = () => {
3071
3093
  text: t(detail.propertyType) || detail.propertyType
3072
3094
  }), isPT && (propertyDetailsFetch === null || propertyDetailsFetch === void 0 ? void 0 : propertyDetailsFetch.Properties) && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Row, {
3073
3095
  label: t("CHB_DISCOUNT_REASON"),
3074
- text: t(`${(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A10 = applicationDetails.Applications) === null || _applicationDetails$A10 === void 0 ? void 0 : (_applicationDetails$A11 = _applicationDetails$A10[0]) === null || _applicationDetails$A11 === void 0 ? void 0 : _applicationDetails$A11.reason) == "OTHERS" ? applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A12 = applicationDetails.Applications) === null || _applicationDetails$A12 === void 0 ? void 0 : (_applicationDetails$A13 = _applicationDetails$A12[0]) === null || _applicationDetails$A13 === void 0 ? void 0 : (_applicationDetails$A14 = _applicationDetails$A13.NdcDetails) === null || _applicationDetails$A14 === void 0 ? void 0 : (_applicationDetails$A15 = _applicationDetails$A14.find(item => (item === null || item === void 0 ? void 0 : item.businessService) === "PT")) === null || _applicationDetails$A15 === void 0 ? void 0 : (_applicationDetails$A16 = _applicationDetails$A15.additionalDetails) === null || _applicationDetails$A16 === void 0 ? void 0 : _applicationDetails$A16.reason : applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A17 = applicationDetails.Applications) === null || _applicationDetails$A17 === void 0 ? void 0 : (_applicationDetails$A18 = _applicationDetails$A17[0]) === null || _applicationDetails$A18 === void 0 ? void 0 : _applicationDetails$A18.reason}`)
3096
+ text: t(`${(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A12 = applicationDetails.Applications) === null || _applicationDetails$A12 === void 0 ? void 0 : (_applicationDetails$A13 = _applicationDetails$A12[0]) === null || _applicationDetails$A13 === void 0 ? void 0 : _applicationDetails$A13.reason) == "OTHERS" ? applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A14 = applicationDetails.Applications) === null || _applicationDetails$A14 === void 0 ? void 0 : (_applicationDetails$A15 = _applicationDetails$A14[0]) === null || _applicationDetails$A15 === void 0 ? void 0 : (_applicationDetails$A16 = _applicationDetails$A15.NdcDetails) === null || _applicationDetails$A16 === void 0 ? void 0 : (_applicationDetails$A17 = _applicationDetails$A16.find(item => (item === null || item === void 0 ? void 0 : item.businessService) === "PT")) === null || _applicationDetails$A17 === void 0 ? void 0 : (_applicationDetails$A18 = _applicationDetails$A17.additionalDetails) === null || _applicationDetails$A18 === void 0 ? void 0 : _applicationDetails$A18.reason : applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A19 = applicationDetails.Applications) === null || _applicationDetails$A19 === void 0 ? void 0 : (_applicationDetails$A20 = _applicationDetails$A19[0]) === null || _applicationDetails$A20 === void 0 ? void 0 : _applicationDetails$A20.reason}`)
3075
3097
  }), /*#__PURE__*/React.createElement(Row, {
3076
3098
  label: t("City"),
3077
3099
  text: propertyDetailsFetch === null || propertyDetailsFetch === void 0 ? void 0 : (_propertyDetailsFetch4 = propertyDetailsFetch.Properties) === null || _propertyDetailsFetch4 === void 0 ? void 0 : (_propertyDetailsFetch5 = _propertyDetailsFetch4[0]) === null || _propertyDetailsFetch5 === void 0 ? void 0 : (_propertyDetailsFetch6 = _propertyDetailsFetch5.address) === null || _propertyDetailsFetch6 === void 0 ? void 0 : _propertyDetailsFetch6.city
@@ -3095,7 +3117,7 @@ const ApplicationOverview = () => {
3095
3117
  text: propertyDetailsFetch === null || propertyDetailsFetch === void 0 ? void 0 : (_propertyDetailsFetch19 = propertyDetailsFetch.Properties) === null || _propertyDetailsFetch19 === void 0 ? void 0 : (_propertyDetailsFetch20 = _propertyDetailsFetch19[0]) === null || _propertyDetailsFetch20 === void 0 ? void 0 : (_propertyDetailsFetch21 = _propertyDetailsFetch20.additionalDetails) === null || _propertyDetailsFetch21 === void 0 ? void 0 : _propertyDetailsFetch21.yearConstruction
3096
3118
  }), /*#__PURE__*/React.createElement(Row, {
3097
3119
  label: t("Remarks"),
3098
- text: (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A19 = applicationDetails.Applications) === null || _applicationDetails$A19 === void 0 ? void 0 : (_applicationDetails$A20 = _applicationDetails$A19[0]) === null || _applicationDetails$A20 === void 0 ? void 0 : (_applicationDetails$A21 = _applicationDetails$A20.NdcDetails) === null || _applicationDetails$A21 === void 0 ? void 0 : (_applicationDetails$A22 = _applicationDetails$A21.find(item => (item === null || item === void 0 ? void 0 : item.businessService) === "PT")) === null || _applicationDetails$A22 === void 0 ? void 0 : (_applicationDetails$A23 = _applicationDetails$A22.additionalDetails) === null || _applicationDetails$A23 === void 0 ? void 0 : _applicationDetails$A23.remarks) || "N/A"
3120
+ text: (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A21 = applicationDetails.Applications) === null || _applicationDetails$A21 === void 0 ? void 0 : (_applicationDetails$A22 = _applicationDetails$A21[0]) === null || _applicationDetails$A22 === void 0 ? void 0 : (_applicationDetails$A23 = _applicationDetails$A22.NdcDetails) === null || _applicationDetails$A23 === void 0 ? void 0 : (_applicationDetails$A24 = _applicationDetails$A23.find(item => (item === null || item === void 0 ? void 0 : item.businessService) === "PT")) === null || _applicationDetails$A24 === void 0 ? void 0 : (_applicationDetails$A25 = _applicationDetails$A24.additionalDetails) === null || _applicationDetails$A25 === void 0 ? void 0 : _applicationDetails$A25.remarks) || "N/A"
3099
3121
  }))), canRaiseFlag && /*#__PURE__*/React.createElement("div", {
3100
3122
  className: "mychallan-custom"
3101
3123
  }, /*#__PURE__*/React.createElement(CardLabel, {
@@ -3123,7 +3145,7 @@ const ApplicationOverview = () => {
3123
3145
  }) : /*#__PURE__*/React.createElement("div", null, t("TL_NO_DOCUMENTS_MSG")))), /*#__PURE__*/React.createElement(NewApplicationTimeline, {
3124
3146
  workflowDetails: workflowDetails,
3125
3147
  t: t
3126
- }), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A24 = applicationDetails.Applications) === null || _applicationDetails$A24 === void 0 ? void 0 : (_applicationDetails$A25 = _applicationDetails$A24[0]) === null || _applicationDetails$A25 === void 0 ? void 0 : _applicationDetails$A25.applicationStatus) !== "INITIATED" && (actions === null || actions === void 0 ? void 0 : actions.length) && /*#__PURE__*/React.createElement(ActionBar, null, displayMenu && (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data1 = workflowDetails.data) !== null && _workflowDetails$data1 !== void 0 && (_workflowDetails$data10 = _workflowDetails$data1.actionState) !== null && _workflowDetails$data10 !== void 0 && _workflowDetails$data10.nextActions || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data11 = workflowDetails.data) !== null && _workflowDetails$data11 !== void 0 && _workflowDetails$data11.nextActions) ? /*#__PURE__*/React.createElement(Menu, {
3148
+ }), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A26 = applicationDetails.Applications) === null || _applicationDetails$A26 === void 0 ? void 0 : (_applicationDetails$A27 = _applicationDetails$A26[0]) === null || _applicationDetails$A27 === void 0 ? void 0 : _applicationDetails$A27.applicationStatus) !== "INITIATED" && (actions === null || actions === void 0 ? void 0 : actions.length) && /*#__PURE__*/React.createElement(ActionBar, null, displayMenu && (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data1 = workflowDetails.data) !== null && _workflowDetails$data1 !== void 0 && (_workflowDetails$data10 = _workflowDetails$data1.actionState) !== null && _workflowDetails$data10 !== void 0 && _workflowDetails$data10.nextActions || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data11 = workflowDetails.data) !== null && _workflowDetails$data11 !== void 0 && _workflowDetails$data11.nextActions) ? /*#__PURE__*/React.createElement(Menu, {
3127
3149
  localeKeyPrefix: `WF_EDITRENEWAL`,
3128
3150
  options: actions,
3129
3151
  optionKey: "action",
@@ -3133,11 +3155,11 @@ const ApplicationOverview = () => {
3133
3155
  ref: menuRef,
3134
3156
  label: t("WF_TAKE_ACTION"),
3135
3157
  onSubmit: () => setDisplayMenu(!displayMenu)
3136
- })), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A26 = applicationDetails.Applications) === null || _applicationDetails$A26 === void 0 ? void 0 : (_applicationDetails$A27 = _applicationDetails$A26[0]) === null || _applicationDetails$A27 === void 0 ? void 0 : _applicationDetails$A27.applicationStatus) == "INITIATED" && /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar$1, {
3158
+ })), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A28 = applicationDetails.Applications) === null || _applicationDetails$A28 === void 0 ? void 0 : (_applicationDetails$A29 = _applicationDetails$A28[0]) === null || _applicationDetails$A29 === void 0 ? void 0 : _applicationDetails$A29.applicationStatus) == "INITIATED" && /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar$1, {
3137
3159
  label: t("COMMON_EDIT"),
3138
3160
  onSubmit: () => {
3139
- var _applicationDetails$A28, _applicationDetails$A29;
3140
- const id = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A28 = applicationDetails.Applications) === null || _applicationDetails$A28 === void 0 ? void 0 : (_applicationDetails$A29 = _applicationDetails$A28[0]) === null || _applicationDetails$A29 === void 0 ? void 0 : _applicationDetails$A29.applicationNo;
3161
+ var _applicationDetails$A30, _applicationDetails$A31;
3162
+ const id = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A30 = applicationDetails.Applications) === null || _applicationDetails$A30 === void 0 ? void 0 : (_applicationDetails$A31 = _applicationDetails$A30[0]) === null || _applicationDetails$A31 === void 0 ? void 0 : _applicationDetails$A31.applicationNo;
3141
3163
  history.push(`/digit-ui/employee/ndc/create/${id}`);
3142
3164
  }
3143
3165
  })), showModal ? /*#__PURE__*/React.createElement(NDCModal, {
@@ -10678,6 +10700,7 @@ const CitizenApplicationOverview = () => {
10678
10700
  if (empData) {
10679
10701
  acknowledgementData = await getAcknowledgementData(Property, formattedAddress, tenantInfo, t, approver, ulbType, empData, approverStatement);
10680
10702
  }
10703
+ console.log("acknowledgementData", acknowledgementData);
10681
10704
  setTimeout(() => {
10682
10705
  Digit.Utils.pdf.generateNDC(acknowledgementData);
10683
10706
  }, 0);
@@ -12487,27 +12510,23 @@ const NewNDCStepFormOne = ({
12487
12510
  } else createApplication(data);
12488
12511
  }
12489
12512
  const createApplication = async data => {
12490
- var _Digit$UserService$ge, _data$cpt, _data$cpt$details, _ref, _data$PropertyDetails5, _ref2, _data$PropertyDetails7, _data$PropertyDetails9, _data$PropertyDetails0, _data$NDCReason2;
12513
+ var _Digit$UserService$ge, _ref, _data$cpt, _data$cpt$details, _ref2, _data$PropertyDetails5, _ref3, _data$PropertyDetails7, _data$PropertyDetails9, _data$PropertyDetails0, _data$NDCReason2;
12491
12514
  const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
12492
12515
  const applicantId = applicant === null || applicant === void 0 ? void 0 : applicant.uuid;
12493
- const owners = ((data === null || data === void 0 ? void 0 : (_data$cpt = data.cpt) === null || _data$cpt === void 0 ? void 0 : (_data$cpt$details = _data$cpt.details) === null || _data$cpt$details === void 0 ? void 0 : _data$cpt$details.owners) || []).map(({
12494
- status,
12495
- ...rest
12496
- }) => {
12497
- var _rest$name, _rest$name$trim, _data$PropertyDetails, _data$PropertyDetails2, _data$PropertyDetails3;
12498
- if ((rest === null || rest === void 0 ? void 0 : (_rest$name = rest.name) === null || _rest$name === void 0 ? void 0 : (_rest$name$trim = _rest$name.trim()) === null || _rest$name$trim === void 0 ? void 0 : _rest$name$trim.toLowerCase()) === (data === null || data === void 0 ? void 0 : (_data$PropertyDetails = data.PropertyDetails) === null || _data$PropertyDetails === void 0 ? void 0 : (_data$PropertyDetails2 = _data$PropertyDetails.firstName) === null || _data$PropertyDetails2 === void 0 ? void 0 : (_data$PropertyDetails3 = _data$PropertyDetails2.trim()) === null || _data$PropertyDetails3 === void 0 ? void 0 : _data$PropertyDetails3.toLowerCase())) {
12516
+ const owners = (_ref = (data === null || data === void 0 ? void 0 : (_data$cpt = data.cpt) === null || _data$cpt === void 0 ? void 0 : (_data$cpt$details = _data$cpt.details) === null || _data$cpt$details === void 0 ? void 0 : _data$cpt$details.owners) || []) === null || _ref === void 0 ? void 0 : _ref.map(owner => {
12517
+ var _newOwner$name, _newOwner$name$trim, _data$PropertyDetails, _data$PropertyDetails2, _data$PropertyDetails3;
12518
+ const newOwner = JSON.parse(JSON.stringify(owner));
12519
+ delete newOwner.status;
12520
+ if ((newOwner === null || newOwner === void 0 ? void 0 : (_newOwner$name = newOwner.name) === null || _newOwner$name === void 0 ? void 0 : (_newOwner$name$trim = _newOwner$name.trim()) === null || _newOwner$name$trim === void 0 ? void 0 : _newOwner$name$trim.toLowerCase()) === (data === null || data === void 0 ? void 0 : (_data$PropertyDetails = data.PropertyDetails) === null || _data$PropertyDetails === void 0 ? void 0 : (_data$PropertyDetails2 = _data$PropertyDetails.firstName) === null || _data$PropertyDetails2 === void 0 ? void 0 : (_data$PropertyDetails3 = _data$PropertyDetails2.trim()) === null || _data$PropertyDetails3 === void 0 ? void 0 : _data$PropertyDetails3.toLowerCase())) {
12499
12521
  var _data$PropertyDetails4;
12500
- return {
12501
- ...rest,
12502
- emailId: data === null || data === void 0 ? void 0 : (_data$PropertyDetails4 = data.PropertyDetails) === null || _data$PropertyDetails4 === void 0 ? void 0 : _data$PropertyDetails4.email,
12503
- isPrimaryOwner: true
12504
- };
12522
+ newOwner.emailId = data === null || data === void 0 ? void 0 : (_data$PropertyDetails4 = data.PropertyDetails) === null || _data$PropertyDetails4 === void 0 ? void 0 : _data$PropertyDetails4.email;
12523
+ newOwner.isPrimaryOwner = true;
12505
12524
  }
12506
- return rest;
12525
+ return newOwner;
12507
12526
  });
12508
12527
  console.log("checkData==", data);
12509
12528
  const ndcDetails = [];
12510
- (_ref = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails5 = data.PropertyDetails) === null || _data$PropertyDetails5 === void 0 ? void 0 : _data$PropertyDetails5.waterConnection) || []) === null || _ref === void 0 ? void 0 : _ref.forEach(wc => {
12529
+ (_ref2 = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails5 = data.PropertyDetails) === null || _data$PropertyDetails5 === void 0 ? void 0 : _data$PropertyDetails5.waterConnection) || []) === null || _ref2 === void 0 ? void 0 : _ref2.forEach(wc => {
12511
12530
  var _wc$billData, _data$PropertyDetails6, _data$cpt2, _data$cpt2$details, _wc$billData2, _wc$billData3;
12512
12531
  ndcDetails.push({
12513
12532
  uuid: wc === null || wc === void 0 ? void 0 : (_wc$billData = wc.billData) === null || _wc$billData === void 0 ? void 0 : _wc$billData.id,
@@ -12522,7 +12541,7 @@ const NewNDCStepFormOne = ({
12522
12541
  status: wc === null || wc === void 0 ? void 0 : (_wc$billData3 = wc.billData) === null || _wc$billData3 === void 0 ? void 0 : _wc$billData3.status
12523
12542
  });
12524
12543
  });
12525
- (_ref2 = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails7 = data.PropertyDetails) === null || _data$PropertyDetails7 === void 0 ? void 0 : _data$PropertyDetails7.sewerageConnection) || []) === null || _ref2 === void 0 ? void 0 : _ref2.forEach(sc => {
12544
+ (_ref3 = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails7 = data.PropertyDetails) === null || _data$PropertyDetails7 === void 0 ? void 0 : _data$PropertyDetails7.sewerageConnection) || []) === null || _ref3 === void 0 ? void 0 : _ref3.forEach(sc => {
12526
12545
  var _sc$billData, _data$PropertyDetails8, _data$cpt3, _data$cpt3$details, _sc$billData2, _sc$billData3;
12527
12546
  ndcDetails.push({
12528
12547
  uuid: sc === null || sc === void 0 ? void 0 : (_sc$billData = sc.billData) === null || _sc$billData === void 0 ? void 0 : _sc$billData.id,
@@ -12602,8 +12621,8 @@ const NewNDCStepFormOne = ({
12602
12621
  if ((checkFormData === null || checkFormData === void 0 ? void 0 : (_checkFormData$respon5 = checkFormData.responseData) === null || _checkFormData$respon5 === void 0 ? void 0 : (_checkFormData$respon6 = _checkFormData$respon5[0]) === null || _checkFormData$respon6 === void 0 ? void 0 : (_checkFormData$respon7 = _checkFormData$respon6.NdcDetails) === null || _checkFormData$respon7 === void 0 ? void 0 : _checkFormData$respon7.length) > 0) {
12603
12622
  ndcDetails = checkFormData.responseData[0].NdcDetails;
12604
12623
  } else {
12605
- var _ref3, _data$PropertyDetails13, _ref4, _data$PropertyDetails15, _data$PropertyDetails17, _data$PropertyDetails18;
12606
- (_ref3 = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails13 = data.PropertyDetails) === null || _data$PropertyDetails13 === void 0 ? void 0 : _data$PropertyDetails13.waterConnection) || []) === null || _ref3 === void 0 ? void 0 : _ref3.forEach(wc => {
12624
+ var _ref4, _data$PropertyDetails13, _ref5, _data$PropertyDetails15, _data$PropertyDetails17, _data$PropertyDetails18;
12625
+ (_ref4 = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails13 = data.PropertyDetails) === null || _data$PropertyDetails13 === void 0 ? void 0 : _data$PropertyDetails13.waterConnection) || []) === null || _ref4 === void 0 ? void 0 : _ref4.forEach(wc => {
12607
12626
  var _wc$billData4, _data$PropertyDetails14, _data$cpt7, _data$cpt7$details, _wc$billData5, _wc$billData6;
12608
12627
  ndcDetails.push({
12609
12628
  uuid: wc === null || wc === void 0 ? void 0 : (_wc$billData4 = wc.billData) === null || _wc$billData4 === void 0 ? void 0 : _wc$billData4.id,
@@ -12618,7 +12637,7 @@ const NewNDCStepFormOne = ({
12618
12637
  status: wc === null || wc === void 0 ? void 0 : (_wc$billData6 = wc.billData) === null || _wc$billData6 === void 0 ? void 0 : _wc$billData6.status
12619
12638
  });
12620
12639
  });
12621
- (_ref4 = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails15 = data.PropertyDetails) === null || _data$PropertyDetails15 === void 0 ? void 0 : _data$PropertyDetails15.sewerageConnection) || []) === null || _ref4 === void 0 ? void 0 : _ref4.forEach(sc => {
12640
+ (_ref5 = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails15 = data.PropertyDetails) === null || _data$PropertyDetails15 === void 0 ? void 0 : _data$PropertyDetails15.sewerageConnection) || []) === null || _ref5 === void 0 ? void 0 : _ref5.forEach(sc => {
12622
12641
  var _sc$billData4, _data$PropertyDetails16, _data$cpt8, _data$cpt8$details, _sc$billData5, _sc$billData6;
12623
12642
  ndcDetails.push({
12624
12643
  uuid: sc === null || sc === void 0 ? void 0 : (_sc$billData4 = sc.billData) === null || _sc$billData4 === void 0 ? void 0 : _sc$billData4.id,
@@ -14652,10 +14671,11 @@ const NDCNewFormSummaryStepThreeCitizen = ({
14652
14671
  var _Digit$UserService$ge, _ref, _inputData$apiData, _inputData$apiData$Ap, _inputData$apiData$Ap2, _formData$responseDat, _formData$apiData, _formData$apiData$App, _inputData$DocummentD, _inputData$DocummentD2;
14653
14672
  const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
14654
14673
  console.log("inputData", inputData);
14655
- const owners = (_ref = (inputData === null || inputData === void 0 ? void 0 : (_inputData$apiData = inputData.apiData) === null || _inputData$apiData === void 0 ? void 0 : (_inputData$apiData$Ap = _inputData$apiData.Applications) === null || _inputData$apiData$Ap === void 0 ? void 0 : (_inputData$apiData$Ap2 = _inputData$apiData$Ap[0]) === null || _inputData$apiData$Ap2 === void 0 ? void 0 : _inputData$apiData$Ap2.owners) || []) === null || _ref === void 0 ? void 0 : _ref.map(({
14656
- status,
14657
- ...rest
14658
- }) => rest);
14674
+ const owners = (_ref = (inputData === null || inputData === void 0 ? void 0 : (_inputData$apiData = inputData.apiData) === null || _inputData$apiData === void 0 ? void 0 : (_inputData$apiData$Ap = _inputData$apiData.Applications) === null || _inputData$apiData$Ap === void 0 ? void 0 : (_inputData$apiData$Ap2 = _inputData$apiData$Ap[0]) === null || _inputData$apiData$Ap2 === void 0 ? void 0 : _inputData$apiData$Ap2.owners) || []) === null || _ref === void 0 ? void 0 : _ref.map(item => {
14675
+ const obj = JSON.parse(JSON.stringify(item));
14676
+ delete obj.status;
14677
+ return obj;
14678
+ });
14659
14679
  const baseApplication = (formData === null || formData === void 0 ? void 0 : (_formData$responseDat = formData.responseData) === null || _formData$responseDat === void 0 ? void 0 : _formData$responseDat[0]) || (formData === null || formData === void 0 ? void 0 : (_formData$apiData = formData.apiData) === null || _formData$apiData === void 0 ? void 0 : (_formData$apiData$App = _formData$apiData.Applications) === null || _formData$apiData$App === void 0 ? void 0 : _formData$apiData$App[0]) || {};
14660
14680
  console.log("baseApplication", baseApplication);
14661
14681
  const updatedApplication = {
@@ -14746,7 +14766,7 @@ const PayWSBillModal = ({
14746
14766
  d: "M0 0h24v24H0V0z",
14747
14767
  fill: "none"
14748
14768
  }), /*#__PURE__*/React.createElement("path", {
14749
- d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
14769
+ d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 \r 17.59 19 19 17.59 13.41 12 19 6.41z"
14750
14770
  }));
14751
14771
  const CloseBtn = ({
14752
14772
  onClick
@@ -15075,24 +15095,20 @@ const NewNDCStepFormOne$1 = ({
15075
15095
  onGoNext();
15076
15096
  }
15077
15097
  const createApplication = async data => {
15078
- var _Digit$UserService$ge, _data$cpt2, _data$cpt2$details, _data$PropertyDetails5, _data$PropertyDetails7, _data$PropertyDetails9, _data$PropertyDetails1, _data$PropertyDetails10, _data$NDCReason2;
15098
+ var _Digit$UserService$ge, _ref, _data$cpt2, _data$cpt2$details, _data$PropertyDetails5, _data$PropertyDetails7, _data$PropertyDetails9, _data$PropertyDetails1, _data$PropertyDetails10, _data$NDCReason2;
15079
15099
  setLoader(true);
15080
15100
  const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
15081
15101
  const applicantId = applicant === null || applicant === void 0 ? void 0 : applicant.uuid;
15082
- const owners = ((data === null || data === void 0 ? void 0 : (_data$cpt2 = data.cpt) === null || _data$cpt2 === void 0 ? void 0 : (_data$cpt2$details = _data$cpt2.details) === null || _data$cpt2$details === void 0 ? void 0 : _data$cpt2$details.owners) || []).map(({
15083
- status,
15084
- ...rest
15085
- }) => {
15086
- var _rest$name, _rest$name$trim, _data$PropertyDetails, _data$PropertyDetails2, _data$PropertyDetails3;
15087
- if ((rest === null || rest === void 0 ? void 0 : (_rest$name = rest.name) === null || _rest$name === void 0 ? void 0 : (_rest$name$trim = _rest$name.trim()) === null || _rest$name$trim === void 0 ? void 0 : _rest$name$trim.toLowerCase()) === (data === null || data === void 0 ? void 0 : (_data$PropertyDetails = data.PropertyDetails) === null || _data$PropertyDetails === void 0 ? void 0 : (_data$PropertyDetails2 = _data$PropertyDetails.firstName) === null || _data$PropertyDetails2 === void 0 ? void 0 : (_data$PropertyDetails3 = _data$PropertyDetails2.trim()) === null || _data$PropertyDetails3 === void 0 ? void 0 : _data$PropertyDetails3.toLowerCase())) {
15102
+ const owners = (_ref = (data === null || data === void 0 ? void 0 : (_data$cpt2 = data.cpt) === null || _data$cpt2 === void 0 ? void 0 : (_data$cpt2$details = _data$cpt2.details) === null || _data$cpt2$details === void 0 ? void 0 : _data$cpt2$details.owners) || []) === null || _ref === void 0 ? void 0 : _ref.map(owner => {
15103
+ var _newOwner$name, _newOwner$name$trim, _data$PropertyDetails, _data$PropertyDetails2, _data$PropertyDetails3;
15104
+ const newOwner = JSON.parse(JSON.stringify(owner));
15105
+ delete newOwner.status;
15106
+ if ((newOwner === null || newOwner === void 0 ? void 0 : (_newOwner$name = newOwner.name) === null || _newOwner$name === void 0 ? void 0 : (_newOwner$name$trim = _newOwner$name.trim()) === null || _newOwner$name$trim === void 0 ? void 0 : _newOwner$name$trim.toLowerCase()) === (data === null || data === void 0 ? void 0 : (_data$PropertyDetails = data.PropertyDetails) === null || _data$PropertyDetails === void 0 ? void 0 : (_data$PropertyDetails2 = _data$PropertyDetails.firstName) === null || _data$PropertyDetails2 === void 0 ? void 0 : (_data$PropertyDetails3 = _data$PropertyDetails2.trim()) === null || _data$PropertyDetails3 === void 0 ? void 0 : _data$PropertyDetails3.toLowerCase())) {
15088
15107
  var _data$PropertyDetails4;
15089
- return {
15090
- ...rest,
15091
- emailId: data === null || data === void 0 ? void 0 : (_data$PropertyDetails4 = data.PropertyDetails) === null || _data$PropertyDetails4 === void 0 ? void 0 : _data$PropertyDetails4.email,
15092
- isPrimaryOwner: true
15093
- };
15108
+ newOwner.emailId = data === null || data === void 0 ? void 0 : (_data$PropertyDetails4 = data.PropertyDetails) === null || _data$PropertyDetails4 === void 0 ? void 0 : _data$PropertyDetails4.email;
15109
+ newOwner.isPrimaryOwner = true;
15094
15110
  }
15095
- return rest;
15111
+ return newOwner;
15096
15112
  });
15097
15113
  const ndcDetails = [];
15098
15114
  ((data === null || data === void 0 ? void 0 : (_data$PropertyDetails5 = data.PropertyDetails) === null || _data$PropertyDetails5 === void 0 ? void 0 : _data$PropertyDetails5.waterConnection) || []).forEach(wc => {
@@ -15369,10 +15385,11 @@ const NDCNewFormSummaryStepThreeEmployee = ({
15369
15385
  var _Digit$UserService$ge, _ref, _inputData$apiData, _inputData$apiData$Ap, _inputData$apiData$Ap2, _formData$responseDat, _formData$apiData, _formData$apiData$App, _inputData$DocummentD, _inputData$DocummentD2;
15370
15386
  const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
15371
15387
  console.log("checkFormData", formData);
15372
- const owners = (_ref = (inputData === null || inputData === void 0 ? void 0 : (_inputData$apiData = inputData.apiData) === null || _inputData$apiData === void 0 ? void 0 : (_inputData$apiData$Ap = _inputData$apiData.Applications) === null || _inputData$apiData$Ap === void 0 ? void 0 : (_inputData$apiData$Ap2 = _inputData$apiData$Ap[0]) === null || _inputData$apiData$Ap2 === void 0 ? void 0 : _inputData$apiData$Ap2.owners) || []) === null || _ref === void 0 ? void 0 : _ref.map(({
15373
- status,
15374
- ...rest
15375
- }) => rest);
15388
+ const owners = (_ref = (inputData === null || inputData === void 0 ? void 0 : (_inputData$apiData = inputData.apiData) === null || _inputData$apiData === void 0 ? void 0 : (_inputData$apiData$Ap = _inputData$apiData.Applications) === null || _inputData$apiData$Ap === void 0 ? void 0 : (_inputData$apiData$Ap2 = _inputData$apiData$Ap[0]) === null || _inputData$apiData$Ap2 === void 0 ? void 0 : _inputData$apiData$Ap2.owners) || []) === null || _ref === void 0 ? void 0 : _ref.map(item => {
15389
+ const obj = JSON.parse(JSON.stringify(item));
15390
+ delete obj.status;
15391
+ return obj;
15392
+ });
15376
15393
  const baseApplication = (formData === null || formData === void 0 ? void 0 : (_formData$responseDat = formData.responseData) === null || _formData$responseDat === void 0 ? void 0 : _formData$responseDat[0]) || (formData === null || formData === void 0 ? void 0 : (_formData$apiData = formData.apiData) === null || _formData$apiData === void 0 ? void 0 : (_formData$apiData$App = _formData$apiData.Applications) === null || _formData$apiData$App === void 0 ? void 0 : _formData$apiData$App[0]) || {};
15377
15394
  const updatedApplication = {
15378
15395
  ...baseApplication,