@djb25/digit-ui-module-commonpt 1.0.1 → 1.0.2

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.
@@ -1,4 +1,4 @@
1
- import { Loader, Header, FormComposer, Toast, Card, CardText, StatusTable, Row, SubmitBar, Banner, RadioButtons, Dropdown, InfoBannerIcon, Localities, ResponseComposer, Modal, KeyNote, OTPInput, CardLabelError, FormStep, UploadFile, DatePicker, CardSubHeader, PDFSvg, LabelFieldPair, CardLabel, MultiUploadWrapper, CardHeader, CardSectionHeader, CheckBox, TextInput, LinkButton, Close as Close$e, BreakLine, Table, TelePhone, DisplayPhotos, EditIcon, ViewsIcon, CheckPoint, ConnectingCheckPoints, ActionBar, Menu, ButtonSelector, AppContainer, BackButton, PrivateRoute, BreadCrumb, DeleteIcon, MobileNumber, TextArea, RadioOrSelect, SearchForm, SearchField, DetailsCard, TickMark, PropertyHouse, EmployeeModuleCard, CitizenHomeCard, PTIcon } from '@djb25/digit-ui-react-components';
1
+ import { Loader, Header, FormComposer, Toast, Card, CardText, StatusTable, Row, SubmitBar, Banner, RadioButtons, Dropdown, InfoBannerIcon, Localities, ResponseComposer, Modal, KeyNote, OTPInput, CardLabelError, FormStep, UploadFile, DatePicker, CardSubHeader, PDFSvg, LabelFieldPair, CardLabel, MultiUploadWrapper, CardHeader, CardSectionHeader, CheckBox, TextInput, LinkButton, Close as Close$e, BreakLine, Table, TelePhone, DisplayPhotos, EditIcon, ViewsIcon, CheckPoint, ConnectingCheckPoints, ActionBar, Menu, ButtonSelector, AppContainer, BackButton, PrivateRoute, BreadCrumb, DeleteIcon, MobileNumber, TextArea, RadioOrSelect, SearchForm, SearchField, DetailsCard, TickMark, Label, PropertyHouse, EmployeeModuleCard, CitizenHomeCard, PTIcon } from '@djb25/digit-ui-react-components';
2
2
  import React, { useState, useEffect, useLayoutEffect, useMemo, useRef, Fragment as Fragment$1, memo, useCallback } from 'react';
3
3
  import { useTranslation } from 'react-i18next';
4
4
  import { useLocation, useHistory, useRouteMatch, Switch, Route, Link, useParams } from 'react-router-dom';
@@ -11772,7 +11772,11 @@ const ActionModal$5 = ({
11772
11772
  actionData,
11773
11773
  applicationData,
11774
11774
  businessService,
11775
- moduleCode
11775
+ moduleCode,
11776
+ cardClassName,
11777
+ cardFormWrapperClassName,
11778
+ cardFormClassName,
11779
+ formClassName
11776
11780
  }) => {
11777
11781
  var _action$assigneeRoles, _action$assigneeRoles2;
11778
11782
  const {
@@ -12020,7 +12024,11 @@ const ActionModal$5 = ({
12020
12024
  childrenAtTheBottom: true,
12021
12025
  onSubmit: submit,
12022
12026
  defaultValues: defaultValues,
12023
- formId: "modal-action"
12027
+ formId: "modal-action",
12028
+ cardFormClassName: cardFormClassName,
12029
+ cardFormWrapperClassName: cardFormWrapperClassName,
12030
+ cardClassName: cardClassName,
12031
+ formClassName: formClassName
12024
12032
  })) : /*#__PURE__*/React.createElement(Loader, null);
12025
12033
  };
12026
12034
 
@@ -12204,7 +12212,11 @@ const ActionModal$7 = ({
12204
12212
  actionData,
12205
12213
  applicationData,
12206
12214
  businessService,
12207
- moduleCode
12215
+ moduleCode,
12216
+ cardClassName,
12217
+ cardFormWrapperClassName,
12218
+ cardFormClassName,
12219
+ formClassName
12208
12220
  }) => {
12209
12221
  var _action$roles, _action$roles$, _action$roles$$map;
12210
12222
  const {
@@ -12284,7 +12296,11 @@ const ActionModal$7 = ({
12284
12296
  childrenAtTheBottom: true,
12285
12297
  onSubmit: submit,
12286
12298
  defaultValues: defaultValues,
12287
- formId: "modal-action"
12299
+ formId: "modal-action",
12300
+ cardFormClassName: cardFormClassName,
12301
+ cardFormWrapperClassName: cardFormWrapperClassName,
12302
+ cardClassName: cardClassName,
12303
+ formClassName: formClassName
12288
12304
  })) : /*#__PURE__*/React.createElement(Loader, null);
12289
12305
  };
12290
12306
 
@@ -12770,7 +12786,7 @@ const configWTApproverApplication = ({
12770
12786
  required: true
12771
12787
  }
12772
12788
  }
12773
- }, (action === null || action === void 0 ? void 0 : action.state) === "PENDING_FOR_VEHICLE_DRIVER_ASSIGN" ? {
12789
+ }, (action === null || action === void 0 ? void 0 : action.state) === "PENDING_FOR_VEHICLE_DRIVER_ASSIGN" && (action === null || action === void 0 ? void 0 : action.action) !== "ASSIGN_VEHICLE_DRIVER" ? {
12774
12790
  label: t("RS_ASSIGN"),
12775
12791
  type: "dropdown",
12776
12792
  populators: /*#__PURE__*/React.createElement(Dropdown, {
@@ -12780,7 +12796,7 @@ const configWTApproverApplication = ({
12780
12796
  select: setSelectedVendor,
12781
12797
  selected: selectedVendor
12782
12798
  })
12783
- } : "null", (action === null || action === void 0 ? void 0 : action.state) === "DELIVERY_PENDING" ? {
12799
+ } : "null", (action === null || action === void 0 ? void 0 : action.state) === "DELIVERY_PENDING" || (action === null || action === void 0 ? void 0 : action.action) === "ASSIGN_VEHICLE_DRIVER" ? {
12784
12800
  label: t("RS_REGISTRATION_NUMBER"),
12785
12801
  type: "dropdown",
12786
12802
  populators: /*#__PURE__*/React.createElement(Dropdown, {
@@ -12837,9 +12853,13 @@ const ActionModal$b = ({
12837
12853
  actionData,
12838
12854
  applicationData,
12839
12855
  businessService,
12840
- moduleCode
12856
+ moduleCode,
12857
+ cardClassName,
12858
+ cardFormWrapperClassName,
12859
+ cardFormClassName,
12860
+ formClassName
12841
12861
  }) => {
12842
- var _action$assigneeRoles, _action$assigneeRoles2, _dsoData$vendor, _vehicleData$vehicle;
12862
+ var _action$assigneeRoles, _action$assigneeRoles2, _dsoData$vendor, _vehicleData$vehicle, _vehicleData$vehicle$;
12843
12863
  const {
12844
12864
  data: approverData,
12845
12865
  isLoading: PTALoading
@@ -12860,17 +12880,19 @@ const ActionModal$b = ({
12860
12880
  } = Digit.Hooks.fsm.useVendorSearch({
12861
12881
  tenantId,
12862
12882
  config: {
12863
- enabled: (action === null || action === void 0 ? void 0 : action.state) === "PENDING_FOR_VEHICLE_DRIVER_ASSIGN"
12883
+ enabled: (action === null || action === void 0 ? void 0 : action.state) === "PENDING_FOR_VEHICLE_DRIVER_ASSIGN" || (action === null || action === void 0 ? void 0 : action.action) === "ASSIGN_VEHICLE_DRIVER"
12864
12884
  }
12865
12885
  });
12866
12886
  let vendorDescription = [];
12867
- dsoData === null || dsoData === void 0 ? void 0 : (_dsoData$vendor = dsoData.vendor) === null || _dsoData$vendor === void 0 ? void 0 : _dsoData$vendor.map(item => {
12868
- var _item$additionalDetai;
12869
- if ((item === null || item === void 0 ? void 0 : (_item$additionalDetai = item.additionalDetails) === null || _item$additionalDetai === void 0 ? void 0 : _item$additionalDetai.description) === "WT") {
12887
+ dsoData === null || dsoData === void 0 ? void 0 : (_dsoData$vendor = dsoData.vendor) === null || _dsoData$vendor === void 0 ? void 0 : _dsoData$vendor.forEach(item => {
12888
+ var _item$additionalDetai, _item$additionalDetai2;
12889
+ if ((item === null || item === void 0 ? void 0 : (_item$additionalDetai = item.additionalDetails) === null || _item$additionalDetai === void 0 ? void 0 : _item$additionalDetai.description) === "WT" || (item === null || item === void 0 ? void 0 : (_item$additionalDetai2 = item.additionalDetails) === null || _item$additionalDetai2 === void 0 ? void 0 : _item$additionalDetai2.serviceType) === "WT") {
12890
+ var _item$owner;
12891
+ const displayLabel = `${item === null || item === void 0 ? void 0 : item.name} (${item === null || item === void 0 ? void 0 : (_item$owner = item.owner) === null || _item$owner === void 0 ? void 0 : _item$owner.mobileNumber})`;
12870
12892
  vendorDescription.push({
12871
12893
  code: item === null || item === void 0 ? void 0 : item.name,
12872
- name: item === null || item === void 0 ? void 0 : item.name,
12873
- i18nKey: item === null || item === void 0 ? void 0 : item.name,
12894
+ name: displayLabel,
12895
+ i18nKey: displayLabel,
12874
12896
  vendorId: item === null || item === void 0 ? void 0 : item.id
12875
12897
  });
12876
12898
  }
@@ -12881,17 +12903,22 @@ const ActionModal$b = ({
12881
12903
  } = Digit.Hooks.fsm.useVehiclesSearch({
12882
12904
  tenantId,
12883
12905
  config: {
12884
- enabled: (action === null || action === void 0 ? void 0 : action.state) === "DELIVERY_PENDING"
12906
+ enabled: (action === null || action === void 0 ? void 0 : action.state) === "DELIVERY_PENDING" || (action === null || action === void 0 ? void 0 : action.action) === "ASSIGN_VEHICLE_DRIVER"
12885
12907
  }
12886
12908
  });
12887
12909
  let vehicleDescription = [];
12888
- vehicleData === null || vehicleData === void 0 ? void 0 : (_vehicleData$vehicle = vehicleData.vehicle) === null || _vehicleData$vehicle === void 0 ? void 0 : _vehicleData$vehicle.map(item => {
12910
+ vehicleData === null || vehicleData === void 0 ? void 0 : (_vehicleData$vehicle = vehicleData.vehicle) === null || _vehicleData$vehicle === void 0 ? void 0 : (_vehicleData$vehicle$ = _vehicleData$vehicle.filter(item => {
12911
+ var _item$driverData, _item$driver;
12912
+ return (item === null || item === void 0 ? void 0 : (_item$driverData = item.driverData) === null || _item$driverData === void 0 ? void 0 : _item$driverData.id) || (item === null || item === void 0 ? void 0 : (_item$driver = item.driver) === null || _item$driver === void 0 ? void 0 : _item$driver.id);
12913
+ })) === null || _vehicleData$vehicle$ === void 0 ? void 0 : _vehicleData$vehicle$.map(item => {
12914
+ var _item$driverData2, _item$driver2;
12889
12915
  vehicleDescription.push({
12890
12916
  code: item === null || item === void 0 ? void 0 : item.registrationNumber,
12891
12917
  name: item === null || item === void 0 ? void 0 : item.registrationNumber,
12892
12918
  i18nKey: item === null || item === void 0 ? void 0 : item.registrationNumber,
12893
12919
  tankerCapacity: item === null || item === void 0 ? void 0 : item.tankCapacity,
12894
- vehicleId: item === null || item === void 0 ? void 0 : item.id
12920
+ vehicleId: item === null || item === void 0 ? void 0 : item.id,
12921
+ driverId: (item === null || item === void 0 ? void 0 : (_item$driverData2 = item.driverData) === null || _item$driverData2 === void 0 ? void 0 : _item$driverData2.ownerId) || (item === null || item === void 0 ? void 0 : (_item$driver2 = item.driver) === null || _item$driver2 === void 0 ? void 0 : _item$driver2.ownerId)
12895
12922
  });
12896
12923
  });
12897
12924
  const [config, setConfig] = useState({});
@@ -12956,6 +12983,10 @@ const ActionModal$b = ({
12956
12983
  if ((action === null || action === void 0 ? void 0 : action.state) === "DELIVERY_PENDING") {
12957
12984
  applicationData.vehicleId = selectVehicle === null || selectVehicle === void 0 ? void 0 : selectVehicle.vehicleId;
12958
12985
  }
12986
+ if ((action === null || action === void 0 ? void 0 : action.action) === "ASSIGN_VEHICLE_DRIVER") {
12987
+ applicationData.vehicleId = selectVehicle === null || selectVehicle === void 0 ? void 0 : selectVehicle.vehicleId;
12988
+ applicationData.driverId = selectVehicle === null || selectVehicle === void 0 ? void 0 : selectVehicle.driverId;
12989
+ }
12959
12990
  let requestPayload = businessService === "watertanker" ? {
12960
12991
  waterTankerBookingDetail: {
12961
12992
  ...applicationData,
@@ -12980,7 +13011,7 @@ const ActionModal$b = ({
12980
13011
  selectedVendor,
12981
13012
  setSelectedVendor,
12982
13013
  vendorDescription: dsoData ? vendorDescription : undefined,
12983
- vehicleDescription: vehicleData ? vehicleDescription : undefined,
13014
+ vehicleDescription: vehicleData || (action === null || action === void 0 ? void 0 : action.action) === "ASSIGN_VEHICLE_DRIVER" ? vehicleDescription : undefined,
12984
13015
  selectVehicle,
12985
13016
  setSelectVehicle
12986
13017
  }));
@@ -13005,7 +13036,11 @@ const ActionModal$b = ({
13005
13036
  childrenAtTheBottom: true,
13006
13037
  onSubmit: submit,
13007
13038
  defaultValues: defaultValues,
13008
- formId: "modal-action"
13039
+ formId: "modal-action",
13040
+ cardFormClassName: cardFormClassName,
13041
+ cardFormWrapperClassName: cardFormWrapperClassName,
13042
+ cardClassName: cardClassName,
13043
+ formClassName: formClassName
13009
13044
  })) : /*#__PURE__*/React.createElement(Loader, null);
13010
13045
  };
13011
13046
 
@@ -14554,8 +14589,9 @@ const TLCaption = ({
14554
14589
  }), /*#__PURE__*/React.createElement("p", null, "\xA0\xA0\xA0\xA0")), data.source && /*#__PURE__*/React.createElement("p", null, t("ES_APPLICATION_DETAILS_APPLICATION_CHANNEL_" + data.source.toUpperCase())), data.comment && /*#__PURE__*/React.createElement(Reason, {
14555
14590
  otherComment: data === null || data === void 0 ? void 0 : data.otherComment,
14556
14591
  headComment: data === null || data === void 0 ? void 0 : data.comment
14557
- }), data !== null && data !== void 0 && data.wfComment ? /*#__PURE__*/React.createElement("div", null, data === null || data === void 0 ? void 0 : (_data$wfComment = data.wfComment) === null || _data$wfComment === void 0 ? void 0 : _data$wfComment.map(e => /*#__PURE__*/React.createElement("div", {
14558
- className: "TLComments"
14592
+ }), data !== null && data !== void 0 && data.wfComment ? /*#__PURE__*/React.createElement("div", null, data === null || data === void 0 ? void 0 : (_data$wfComment = data.wfComment) === null || _data$wfComment === void 0 ? void 0 : _data$wfComment.map((e, index) => /*#__PURE__*/React.createElement("div", {
14593
+ className: "TLComments",
14594
+ key: index
14559
14595
  }, /*#__PURE__*/React.createElement("h3", null, t("WF_COMMON_COMMENTS")), /*#__PURE__*/React.createElement("p", {
14560
14596
  style: {
14561
14597
  overflowX: "scroll"
@@ -14760,7 +14796,7 @@ const WSAdditonalDetails = ({
14760
14796
  connectionDetails: [],
14761
14797
  plumberDetails: []
14762
14798
  };
14763
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
14799
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
14764
14800
  style: {
14765
14801
  lineHeight: "19px",
14766
14802
  maxWidth: "950px",
@@ -14771,7 +14807,9 @@ const WSAdditonalDetails = ({
14771
14807
  }, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
14772
14808
  className: "connection-details-new-value-wrapper"
14773
14809
  }, connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.map((value, index) => {
14774
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, {
14810
+ return /*#__PURE__*/React.createElement("div", {
14811
+ key: index
14812
+ }, /*#__PURE__*/React.createElement(Row, {
14775
14813
  className: "border-none",
14776
14814
  key: `${value.title}`,
14777
14815
  label: `${t(`${value.title}`)}`,
@@ -14793,9 +14831,10 @@ const WSAdditonalDetails = ({
14793
14831
  style: cardSubHeaderStyles()
14794
14832
  }, t("WS_ROAD_CUTTING_DETAILS")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
14795
14833
  className: "plumber-details-new-value-wrapper"
14796
- }, roadCuttingDetails === null || roadCuttingDetails === void 0 ? void 0 : roadCuttingDetails.map(value => {
14834
+ }, roadCuttingDetails === null || roadCuttingDetails === void 0 ? void 0 : roadCuttingDetails.map((value, index) => {
14797
14835
  var _value$values;
14798
14836
  return /*#__PURE__*/React.createElement("div", {
14837
+ key: index,
14799
14838
  style: (roadCuttingDetails === null || roadCuttingDetails === void 0 ? void 0 : roadCuttingDetails.length) > 1 ? {
14800
14839
  border: "1px solid #D6D5D4",
14801
14840
  background: "#FAFAFA",
@@ -15761,7 +15800,7 @@ function ApplicationDetailsContent({
15761
15800
  oldValue,
15762
15801
  isInfoLabel = false
15763
15802
  }) {
15764
- var _applicationDetails$a, _applicationDetails$a2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data19, _workflowDetails$data20;
15803
+ var _applicationDetails$a2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data19, _workflowDetails$data20;
15765
15804
  const {
15766
15805
  t
15767
15806
  } = useTranslation();
@@ -15773,8 +15812,6 @@ function ApplicationDetailsContent({
15773
15812
  let {
15774
15813
  id: applicationNo
15775
15814
  } = useParams();
15776
- const ownersSequences = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.owners;
15777
- console.log("ownersSequences:- ", ownersSequences);
15778
15815
  function OpenImage(imageSource, index, thumbnailsToShow) {
15779
15816
  var _thumbnailsToShow$ful;
15780
15817
  window.open(thumbnailsToShow === null || thumbnailsToShow === void 0 ? void 0 : (_thumbnailsToShow$ful = thumbnailsToShow.fullImage) === null || _thumbnailsToShow$ful === void 0 ? void 0 : _thumbnailsToShow$ful[0], "_blank");
@@ -15983,7 +16020,6 @@ function ApplicationDetailsContent({
15983
16020
  const openFilePDF = fileId => {
15984
16021
  Digit.UploadServices.Filefetch([fileId], Digit.ULBService.getStateId()).then(res => {
15985
16022
  var _res$data, _res$data$fileStoreId, _res$data$fileStoreId2;
15986
- console.log("Response of file:", res);
15987
16023
  const concatenatedUrls = res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$fileStoreId = _res$data.fileStoreIds) === null || _res$data$fileStoreId === void 0 ? void 0 : (_res$data$fileStoreId2 = _res$data$fileStoreId[0]) === null || _res$data$fileStoreId2 === void 0 ? void 0 : _res$data$fileStoreId2.url;
15988
16024
  if (concatenatedUrls) {
15989
16025
  const urlArray = concatenatedUrls.split(",");
@@ -16017,18 +16053,18 @@ function ApplicationDetailsContent({
16017
16053
  infoClickInfoLabel: getClickInfoDetails(),
16018
16054
  infoClickInfoLabel1: getClickInfoDetails1()
16019
16055
  }) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationDetails) === null || _applicationDetails$a2 === void 0 ? void 0 : _applicationDetails$a2.map((detail, index) => {
16020
- var _detail$values, _detail$additionalDet, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _detail$additionalDet2, _applicationDetails$a6, _applicationDetails$a7, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet0, _detail$additionalDet1, _workflowDetails$data, _workflowDetails$data2, _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;
16056
+ var _detail$title, _detail$values, _detail$additionalDet, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _detail$additionalDet2, _applicationDetails$a6, _applicationDetails$a7, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet0, _detail$additionalDet1, _workflowDetails$data, _workflowDetails$data2, _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;
16021
16057
  return /*#__PURE__*/React.createElement(React.Fragment, {
16022
16058
  key: index
16023
16059
  }, /*#__PURE__*/React.createElement("div", {
16024
16060
  style: getMainDivStyles()
16025
- }, index === 0 && !detail.asSectionHeader ? /*#__PURE__*/React.createElement(CardSubHeader, {
16061
+ }, (detail === null || detail === void 0 ? void 0 : (_detail$title = detail.title) === null || _detail$title === void 0 ? void 0 : _detail$title.trim()) && (index === 0 && !detail.asSectionHeader ? /*#__PURE__*/React.createElement(CardSubHeader, {
16026
16062
  style: {
16027
16063
  marginBottom: "16px",
16028
16064
  fontSize: "24px"
16029
16065
  }
16030
- }, t(detail.title)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
16031
- style: index == 0 && checkLocation ? {
16066
+ }, t(detail.title)) : /*#__PURE__*/React.createElement(CardSectionHeader, {
16067
+ style: index === 0 && checkLocation ? {
16032
16068
  marginBottom: "16px",
16033
16069
  fontSize: "24px"
16034
16070
  } : {
@@ -16036,26 +16072,28 @@ function ApplicationDetailsContent({
16036
16072
  marginTop: "32px",
16037
16073
  fontSize: "24px"
16038
16074
  }
16039
- }, isNocLocation ? `${t(detail.title)}` : t(detail.title), detail !== null && detail !== void 0 && detail.Component ? /*#__PURE__*/React.createElement(detail.Component, null) : null)), (detail === null || detail === void 0 ? void 0 : detail.isTable) && /*#__PURE__*/React.createElement("table", {
16075
+ }, t(detail.title), detail !== null && detail !== void 0 && detail.Component ? /*#__PURE__*/React.createElement(detail.Component, null) : null)), (detail === null || detail === void 0 ? void 0 : detail.isTable) && /*#__PURE__*/React.createElement("table", {
16040
16076
  style: {
16041
16077
  tableLayout: "fixed",
16042
16078
  width: "100%",
16043
16079
  borderCollapse: "collapse",
16044
- borderCollapse: "collapse",
16045
16080
  border: "1px solid black"
16046
16081
  }
16047
16082
  }, /*#__PURE__*/React.createElement("tr", {
16048
16083
  style: {
16049
16084
  textAlign: "left"
16050
16085
  }
16051
- }, detail === null || detail === void 0 ? void 0 : detail.headers.map(header => /*#__PURE__*/React.createElement("th", {
16086
+ }, detail === null || detail === void 0 ? void 0 : detail.headers.map((header, index) => /*#__PURE__*/React.createElement("th", {
16052
16087
  style: {
16053
16088
  padding: "10px",
16054
16089
  paddingLeft: "5px",
16055
16090
  border: "1px solid black"
16056
- }
16091
+ },
16092
+ key: index
16057
16093
  }, t(header)))), detail === null || detail === void 0 ? void 0 : detail.tableRows.map((row, index) => {
16058
- return /*#__PURE__*/React.createElement("tr", null, row.map((element, idx) => Array.isArray(element) && element.length > 1 && detail.isMaintenance === true ? /*#__PURE__*/React.createElement("td", {
16094
+ return /*#__PURE__*/React.createElement("tr", {
16095
+ key: index
16096
+ }, row.map((element, idx) => Array.isArray(element) && element.length > 1 && detail.isMaintenance === true ? /*#__PURE__*/React.createElement("td", {
16059
16097
  style: {
16060
16098
  paddingTop: "20px",
16061
16099
  textAlign: "left",
@@ -16069,7 +16107,9 @@ function ApplicationDetailsContent({
16069
16107
  flexWrap: "nowrap",
16070
16108
  gap: "5px"
16071
16109
  }
16072
- }, element.map((file, fileIndex) => /*#__PURE__*/React.createElement("a", {
16110
+ }, element.map((file, fileIndex) =>
16111
+ /*#__PURE__*/
16112
+ React.createElement("a", {
16073
16113
  key: fileIndex,
16074
16114
  onClick: () => openFilePDF(file.fileStoreId),
16075
16115
  rel: "noopener noreferrer",
@@ -16091,7 +16131,7 @@ function ApplicationDetailsContent({
16091
16131
  border: "1px solid black",
16092
16132
  verticalAlign: "middle"
16093
16133
  }
16094
- }, console.log("Comming Maintainaince data row:- ", element.data), element && element.editButton === true ? /*#__PURE__*/React.createElement("span", {
16134
+ }, element && element.editButton === true ? /*#__PURE__*/React.createElement("span", {
16095
16135
  style: {
16096
16136
  display: "inline-flex",
16097
16137
  gap: "10px",
@@ -16132,7 +16172,7 @@ function ApplicationDetailsContent({
16132
16172
  })
16133
16173
  });
16134
16174
  }
16135
- if ((value === null || value === void 0 ? void 0 : value.isLink) == true) {
16175
+ if ((value === null || value === void 0 ? void 0 : value.isLink) === true) {
16136
16176
  var _detail$values2;
16137
16177
  return /*#__PURE__*/React.createElement(Row, {
16138
16178
  key: t(value.title),
@@ -16168,7 +16208,9 @@ function ApplicationDetailsContent({
16168
16208
  }
16169
16209
  });
16170
16210
  }
16171
- return /*#__PURE__*/React.createElement("div", null, window.location.href.includes("modify") ? /*#__PURE__*/React.createElement(Row, {
16211
+ return /*#__PURE__*/React.createElement("div", {
16212
+ key: index
16213
+ }, window.location.href.includes("modify") ? /*#__PURE__*/React.createElement(Row, {
16172
16214
  className: "border-none",
16173
16215
  key: `${value.title}`,
16174
16216
  label: `${t(`${value.title}`)}`,
@@ -16285,7 +16327,7 @@ function ApplicationDetailsContent({
16285
16327
  let timelineStatusPostfix = "";
16286
16328
  if (window.location.href.includes("/obps/")) {
16287
16329
  var _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17;
16288
- if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data12 = workflowDetails.data) !== null && _workflowDetails$data12 !== void 0 && (_workflowDetails$data13 = _workflowDetails$data12.timeline[index - 1]) !== null && _workflowDetails$data13 !== void 0 && (_workflowDetails$data14 = _workflowDetails$data13.state) !== null && _workflowDetails$data14 !== void 0 && _workflowDetails$data14.includes("BACK_FROM") || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data15 = workflowDetails.data) !== null && _workflowDetails$data15 !== void 0 && (_workflowDetails$data16 = _workflowDetails$data15.timeline[index - 1]) !== null && _workflowDetails$data16 !== void 0 && (_workflowDetails$data17 = _workflowDetails$data16.state) !== null && _workflowDetails$data17 !== void 0 && _workflowDetails$data17.includes("SEND_TO_CITIZEN")) timelineStatusPostfix = `_NOT_DONE`;else if ((checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "SEND_TO_ARCHITECT") timelineStatusPostfix = `_BY_ARCHITECT_DONE`;else timelineStatusPostfix = index == 0 ? "" : `_DONE`;
16330
+ if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data12 = workflowDetails.data) !== null && _workflowDetails$data12 !== void 0 && (_workflowDetails$data13 = _workflowDetails$data12.timeline[index - 1]) !== null && _workflowDetails$data13 !== void 0 && (_workflowDetails$data14 = _workflowDetails$data13.state) !== null && _workflowDetails$data14 !== void 0 && _workflowDetails$data14.includes("BACK_FROM") || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data15 = workflowDetails.data) !== null && _workflowDetails$data15 !== void 0 && (_workflowDetails$data16 = _workflowDetails$data15.timeline[index - 1]) !== null && _workflowDetails$data16 !== void 0 && (_workflowDetails$data17 = _workflowDetails$data16.state) !== null && _workflowDetails$data17 !== void 0 && _workflowDetails$data17.includes("SEND_TO_CITIZEN")) timelineStatusPostfix = `_NOT_DONE`;else if ((checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "SEND_TO_ARCHITECT") timelineStatusPostfix = `_BY_ARCHITECT_DONE`;else timelineStatusPostfix = index === 0 ? "" : `_DONE`;
16289
16331
  }
16290
16332
  return /*#__PURE__*/React.createElement(React.Fragment, {
16291
16333
  key: index
@@ -16815,7 +16857,8 @@ const ApplicationDetails = props => {
16815
16857
  actionData: workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : _workflowDetails$data.timeline,
16816
16858
  businessService: businessService,
16817
16859
  workflowDetails: workflowDetails,
16818
- moduleCode: moduleCode
16860
+ moduleCode: moduleCode,
16861
+ cardFormWrapperClassName: "modal-form"
16819
16862
  }) : null, isWarningPop ? /*#__PURE__*/React.createElement(ApplicationDetailsWarningPopup, {
16820
16863
  action: selectedAction,
16821
16864
  workflowDetails: workflowDetails,
@@ -19139,14 +19182,14 @@ const PropertySearchNSummary = ({
19139
19182
  return getOwnersList ? getOwnersList : t("NA");
19140
19183
  };
19141
19184
  if (window.location.href.includes("/ws/")) ;
19142
- return /*#__PURE__*/React.createElement(React.Fragment, null, (window.location.href.includes("/tl/") ? !((formData === null || formData === void 0 ? void 0 : (_formData$tradedetils = formData.tradedetils) === null || _formData$tradedetils === void 0 ? void 0 : (_formData$tradedetils2 = _formData$tradedetils[0]) === null || _formData$tradedetils2 === void 0 ? void 0 : (_formData$tradedetils3 = _formData$tradedetils2.structureType) === null || _formData$tradedetils3 === void 0 ? void 0 : _formData$tradedetils3.code) === "MOVABLE") && (isEmpNewApplication || isEmpRenewLicense) : true) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
19143
- className: "card-label-smaller",
19185
+ return /*#__PURE__*/React.createElement(Card, {
19186
+ className: "no-shadow"
19187
+ }, (window.location.href.includes("/tl/") ? !((formData === null || formData === void 0 ? void 0 : (_formData$tradedetils = formData.tradedetils) === null || _formData$tradedetils === void 0 ? void 0 : (_formData$tradedetils2 = _formData$tradedetils[0]) === null || _formData$tradedetils2 === void 0 ? void 0 : (_formData$tradedetils3 = _formData$tradedetils2.structureType) === null || _formData$tradedetils3 === void 0 ? void 0 : _formData$tradedetils3.code) === "MOVABLE") && (isEmpNewApplication || isEmpRenewLicense) : true) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(Label, {
19144
19188
  style: getInputStyles()
19145
19189
  }, `${t(`PROPERTY_ID`)}`), /*#__PURE__*/React.createElement("div", {
19146
- className: "field",
19147
19190
  style: {
19148
- marginTop: "20px",
19149
- display: "flex"
19191
+ display: "flex",
19192
+ gap: "12px"
19150
19193
  }
19151
19194
  }, /*#__PURE__*/React.createElement(TextInput, {
19152
19195
  key: config.key,
@@ -19159,8 +19202,7 @@ const PropertySearchNSummary = ({
19159
19202
  },
19160
19203
  style: {
19161
19204
  width: "80%",
19162
- float: "left",
19163
- marginRight: "20px"
19205
+ float: "left"
19164
19206
  }
19165
19207
  }), /*#__PURE__*/React.createElement("button", {
19166
19208
  className: "submit-bar",
@@ -19196,9 +19238,8 @@ const PropertySearchNSummary = ({
19196
19238
  marginTop: "20px"
19197
19239
  }
19198
19240
  }, t("PT_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement("div", {
19199
- style: isMobile ? {} : {
19200
- maxWidth: "60%"
19201
- }
19241
+ className: "formcomposer-section-grid",
19242
+ style: isMobile ? {} : {}
19202
19243
  }, /*#__PURE__*/React.createElement(Row, {
19203
19244
  className: "border-none",
19204
19245
  labelStyle: isMobile ? {