@djb25/digit-ui-module-wt 1.0.64 → 1.0.66

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.
@@ -3083,7 +3083,7 @@ const SearchApplication = ({
3083
3083
  return /*#__PURE__*/React.createElement("form", {
3084
3084
  id: "search-form",
3085
3085
  onSubmit: handleSubmit(onSubmitInput),
3086
- className: "search-form-wrapper search-complaint-container"
3086
+ className: " search-complaint-container"
3087
3087
  }, /*#__PURE__*/React.createElement(React.Fragment, null, (type === "mobile" || mobileView) && /*#__PURE__*/React.createElement("div", {
3088
3088
  className: "complaint-header"
3089
3089
  }, /*#__PURE__*/React.createElement("h2", null, t("ES_COMMON_SEARCH_BY")), /*#__PURE__*/React.createElement("span", {
@@ -3490,13 +3490,7 @@ const WTDesktopInbox = ({
3490
3490
  flex: 1
3491
3491
  }
3492
3492
  }, !props.isSearch && /*#__PURE__*/React.createElement("div", {
3493
- className: "summary-cards-container",
3494
- style: {
3495
- display: "flex",
3496
- gap: "12px",
3497
- flexWrap: "wrap",
3498
- width: "100%"
3499
- }
3493
+ className: "summary-cards-container"
3500
3494
  }, ((_props$searchParams, _props$searchParams$s, _data$4, _props$searchParams2) => {
3501
3495
  const getCount = statusList => {
3502
3496
  var _data$3;
@@ -8705,6 +8699,12 @@ const SearchFillingPointAddress = () => {
8705
8699
  }
8706
8700
  });
8707
8701
  };
8702
+ const getLocalityTranslation = (localityCode, tenantId, t) => {
8703
+ if (!localityCode) return "";
8704
+ const tenant = tenantId || Digit.ULBService.getCurrentTenantId() || "djb";
8705
+ const prefix = tenant.replace(".", "_").toUpperCase();
8706
+ return t(`${prefix}_REVENUE_${localityCode}`);
8707
+ };
8708
8708
  const columns = React.useMemo(() => {
8709
8709
  if (selectedTab === "FIXED_POINT") {
8710
8710
  return [{
@@ -8742,7 +8742,7 @@ const SearchFillingPointAddress = () => {
8742
8742
  Header: t("WT_LOCALITY"),
8743
8743
  accessor: row => {
8744
8744
  var _row$address;
8745
- return (row === null || row === void 0 ? void 0 : (_row$address = row.address) === null || _row$address === void 0 ? void 0 : _row$address.locality) || "NA";
8745
+ return getLocalityTranslation(row === null || row === void 0 ? void 0 : (_row$address = row.address) === null || _row$address === void 0 ? void 0 : _row$address.locality, tenantId, t) || "NA";
8746
8746
  },
8747
8747
  id: "locality"
8748
8748
  }, {
@@ -8826,14 +8826,15 @@ const SearchFillingPointAddress = () => {
8826
8826
  row
8827
8827
  }) => {
8828
8828
  var _row$original, _row$original$filling5, _row$original2, _row$original2$addres;
8829
- const localities = ((_row$original = row.original) === null || _row$original === void 0 ? void 0 : (_row$original$filling5 = _row$original.fillingPointLocalityCodes) === null || _row$original$filling5 === void 0 ? void 0 : _row$original$filling5.length) > 0 ? row.original.fillingPointLocalityCodes.join(", ") : ((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : (_row$original2$addres = _row$original2.address) === null || _row$original2$addres === void 0 ? void 0 : _row$original2$addres.locality) || "NA";
8829
+ const codes = ((_row$original = row.original) === null || _row$original === void 0 ? void 0 : (_row$original$filling5 = _row$original.fillingPointLocalityCodes) === null || _row$original$filling5 === void 0 ? void 0 : _row$original$filling5.length) > 0 ? row.original.fillingPointLocalityCodes : (_row$original2 = row.original) !== null && _row$original2 !== void 0 && (_row$original2$addres = _row$original2.address) !== null && _row$original2$addres !== void 0 && _row$original2$addres.locality ? [row.original.address.locality] : [];
8830
+ const translated = codes.length > 0 ? codes.map(code => getLocalityTranslation(code, tenantId, t)).join(", ") : "NA";
8830
8831
  return /*#__PURE__*/React.createElement("div", {
8831
8832
  style: {
8832
8833
  display: "flex",
8833
8834
  alignItems: "center",
8834
8835
  gap: "8px"
8835
8836
  }
8836
- }, /*#__PURE__*/React.createElement("span", null, localities));
8837
+ }, /*#__PURE__*/React.createElement("span", null, translated));
8837
8838
  }
8838
8839
  }, {
8839
8840
  Header: t("WT_ADD_LOCALITY"),
@@ -8968,7 +8969,7 @@ const SearchFillingPointAddress = () => {
8968
8969
  Header: t("WT_LOCALITY"),
8969
8970
  exportAccessor: row => {
8970
8971
  var _row$address4;
8971
- return (row === null || row === void 0 ? void 0 : (_row$address4 = row.address) === null || _row$address4 === void 0 ? void 0 : _row$address4.locality) || "NA";
8972
+ return getLocalityTranslation(row === null || row === void 0 ? void 0 : (_row$address4 = row.address) === null || _row$address4 === void 0 ? void 0 : _row$address4.locality, tenantId, t) || "NA";
8972
8973
  }
8973
8974
  }, {
8974
8975
  Header: t("WT_LATITUDE"),
@@ -9034,7 +9035,8 @@ const SearchFillingPointAddress = () => {
9034
9035
  Header: t("WT_LOCALITY"),
9035
9036
  exportAccessor: row => {
9036
9037
  var _row$fillingPointLoca, _row$address7;
9037
- return (row === null || row === void 0 ? void 0 : (_row$fillingPointLoca = row.fillingPointLocalityCodes) === null || _row$fillingPointLoca === void 0 ? void 0 : _row$fillingPointLoca.length) > 0 ? row.fillingPointLocalityCodes.join(", ") : (row === null || row === void 0 ? void 0 : (_row$address7 = row.address) === null || _row$address7 === void 0 ? void 0 : _row$address7.locality) || "NA";
9038
+ const codes = (row === null || row === void 0 ? void 0 : (_row$fillingPointLoca = row.fillingPointLocalityCodes) === null || _row$fillingPointLoca === void 0 ? void 0 : _row$fillingPointLoca.length) > 0 ? row.fillingPointLocalityCodes : row !== null && row !== void 0 && (_row$address7 = row.address) !== null && _row$address7 !== void 0 && _row$address7.locality ? [row.address.locality] : [];
9039
+ return codes.length > 0 ? codes.map(code => getLocalityTranslation(code, tenantId, t)).join(", ") : "NA";
9038
9040
  }
9039
9041
  }];
9040
9042
  }, [selectedTab, t]);
@@ -18668,6 +18670,181 @@ const WTEditApplicationModal = ({
18668
18670
  }))))));
18669
18671
  };
18670
18672
 
18673
+ const TripImages = ({
18674
+ startFileStoreId,
18675
+ endFileStoreId
18676
+ }) => {
18677
+ const {
18678
+ t
18679
+ } = useTranslation();
18680
+ const [modalImage, setModalImage] = useState(null);
18681
+ const [startImageUrl, setStartImageUrl] = useState(null);
18682
+ const [endImageUrl, setEndImageUrl] = useState(null);
18683
+ const tenantId = Digit.ULBService.getCurrentTenantId();
18684
+ useEffect(() => {
18685
+ const fetchImages = async () => {
18686
+ try {
18687
+ if (startFileStoreId) {
18688
+ var _resStart$data;
18689
+ const resStart = await Digit.UploadServices.Filefetch([startFileStoreId], tenantId);
18690
+ if (resStart !== null && resStart !== void 0 && (_resStart$data = resStart.data) !== null && _resStart$data !== void 0 && _resStart$data[startFileStoreId]) {
18691
+ setStartImageUrl(resStart.data[startFileStoreId].split(",")[0]);
18692
+ }
18693
+ }
18694
+ if (endFileStoreId) {
18695
+ var _resEnd$data;
18696
+ const resEnd = await Digit.UploadServices.Filefetch([endFileStoreId], tenantId);
18697
+ if (resEnd !== null && resEnd !== void 0 && (_resEnd$data = resEnd.data) !== null && _resEnd$data !== void 0 && _resEnd$data[endFileStoreId]) {
18698
+ setEndImageUrl(resEnd.data[endFileStoreId].split(",")[0]);
18699
+ }
18700
+ }
18701
+ } catch (err) {
18702
+ console.error("Error fetching trip images", err);
18703
+ }
18704
+ };
18705
+ fetchImages();
18706
+ }, [startFileStoreId, endFileStoreId, tenantId]);
18707
+ if (!startFileStoreId && !endFileStoreId) return null;
18708
+ return /*#__PURE__*/React.createElement("div", {
18709
+ style: {
18710
+ display: "flex",
18711
+ gap: "24px",
18712
+ marginTop: "16px",
18713
+ marginBottom: "16px"
18714
+ }
18715
+ }, modalImage && /*#__PURE__*/React.createElement(Modal, {
18716
+ hideSubmit: true,
18717
+ popmoduleClassName: "wt-trip-image-modal",
18718
+ headerBarMain: /*#__PURE__*/React.createElement("h1", {
18719
+ className: "heading-m"
18720
+ }, t("WT_TRIP_IMAGE")),
18721
+ headerBarEnd: /*#__PURE__*/React.createElement("div", {
18722
+ onClick: () => setModalImage(null),
18723
+ style: {
18724
+ cursor: "pointer",
18725
+ fontSize: "1.5rem"
18726
+ }
18727
+ }, "\xD7"),
18728
+ actionCancelLabel: t("CS_COMMON_CANCEL"),
18729
+ actionCancelOnSubmit: () => setModalImage(null),
18730
+ formId: "modal-action"
18731
+ }, /*#__PURE__*/React.createElement(Card, {
18732
+ style: {
18733
+ display: "flex",
18734
+ justifyContent: "center",
18735
+ padding: "16px"
18736
+ }
18737
+ }, /*#__PURE__*/React.createElement("img", {
18738
+ src: modalImage,
18739
+ alt: "Trip Image",
18740
+ style: {
18741
+ maxWidth: "100%",
18742
+ maxHeight: "60vh",
18743
+ objectFit: "contain"
18744
+ }
18745
+ }))), startImageUrl && /*#__PURE__*/React.createElement("div", {
18746
+ style: {
18747
+ display: "flex",
18748
+ flexDirection: "column",
18749
+ alignItems: "center"
18750
+ }
18751
+ }, /*#__PURE__*/React.createElement("p", {
18752
+ style: {
18753
+ fontWeight: "bold",
18754
+ marginBottom: "8px",
18755
+ fontSize: "16px"
18756
+ }
18757
+ }, t("WT_START_TRIP_IMAGE")), /*#__PURE__*/React.createElement("div", {
18758
+ style: {
18759
+ position: "relative",
18760
+ width: "120px",
18761
+ height: "120px",
18762
+ border: "1px solid #ccc",
18763
+ borderRadius: "4px",
18764
+ overflow: "hidden"
18765
+ }
18766
+ }, /*#__PURE__*/React.createElement("img", {
18767
+ src: startImageUrl,
18768
+ alt: "Start Trip",
18769
+ style: {
18770
+ width: "100%",
18771
+ height: "100%",
18772
+ objectFit: "cover"
18773
+ }
18774
+ }), /*#__PURE__*/React.createElement("div", {
18775
+ onClick: () => setModalImage(startImageUrl),
18776
+ style: {
18777
+ position: "absolute",
18778
+ top: "50%",
18779
+ left: "50%",
18780
+ transform: "translate(-50%, -50%)",
18781
+ background: "rgba(0,0,0,0.6)",
18782
+ borderRadius: "50%",
18783
+ padding: "8px",
18784
+ cursor: "pointer",
18785
+ display: "flex",
18786
+ alignItems: "center",
18787
+ justifyContent: "center"
18788
+ }
18789
+ }, /*#__PURE__*/React.createElement(ViewsIcon, {
18790
+ fill: "#ffffff",
18791
+ style: {
18792
+ width: "24px",
18793
+ height: "24px"
18794
+ }
18795
+ })))), endImageUrl && /*#__PURE__*/React.createElement("div", {
18796
+ style: {
18797
+ display: "flex",
18798
+ flexDirection: "column",
18799
+ alignItems: "center"
18800
+ }
18801
+ }, /*#__PURE__*/React.createElement("p", {
18802
+ style: {
18803
+ fontWeight: "bold",
18804
+ marginBottom: "8px",
18805
+ fontSize: "16px"
18806
+ }
18807
+ }, t("WT_END_TRIP_IMAGE")), /*#__PURE__*/React.createElement("div", {
18808
+ style: {
18809
+ position: "relative",
18810
+ width: "120px",
18811
+ height: "120px",
18812
+ border: "1px solid #ccc",
18813
+ borderRadius: "4px",
18814
+ overflow: "hidden"
18815
+ }
18816
+ }, /*#__PURE__*/React.createElement("img", {
18817
+ src: endImageUrl,
18818
+ alt: "End Trip",
18819
+ style: {
18820
+ width: "100%",
18821
+ height: "100%",
18822
+ objectFit: "cover"
18823
+ }
18824
+ }), /*#__PURE__*/React.createElement("div", {
18825
+ onClick: () => setModalImage(endImageUrl),
18826
+ style: {
18827
+ position: "absolute",
18828
+ top: "50%",
18829
+ left: "50%",
18830
+ transform: "translate(-50%, -50%)",
18831
+ background: "rgba(0,0,0,0.6)",
18832
+ borderRadius: "50%",
18833
+ padding: "8px",
18834
+ cursor: "pointer",
18835
+ display: "flex",
18836
+ alignItems: "center",
18837
+ justifyContent: "center"
18838
+ }
18839
+ }, /*#__PURE__*/React.createElement(ViewsIcon, {
18840
+ fill: "#ffffff",
18841
+ style: {
18842
+ width: "24px",
18843
+ height: "24px"
18844
+ }
18845
+ })))));
18846
+ };
18847
+
18671
18848
  const configPTApproverApplication = ({
18672
18849
  t,
18673
18850
  action,
@@ -19003,9 +19180,7 @@ const configWSApproverApplication = ({
19003
19180
  error
19004
19181
  }) => {
19005
19182
  var _action$action;
19006
- let checkCondtions = true;
19007
- if (action !== null && action !== void 0 && (_action$action = action.action) !== null && _action$action !== void 0 && _action$action.includes("SEND_BACK") || (action === null || action === void 0 ? void 0 : action.action) == "APPROVE_FOR_CONNECTION") checkCondtions = false;
19008
- if (action.isTerminateState) checkCondtions = false;
19183
+ if (action !== null && action !== void 0 && (_action$action = action.action) !== null && _action$action !== void 0 && _action$action.includes("SEND_BACK") || (action === null || action === void 0 ? void 0 : action.action) == "APPROVE_FOR_CONNECTION") ;
19009
19184
  return {
19010
19185
  label: {
19011
19186
  heading: `WF_${action === null || action === void 0 ? void 0 : action.action}_APPLICATION`,
@@ -19014,18 +19189,6 @@ const configWSApproverApplication = ({
19014
19189
  },
19015
19190
  form: [{
19016
19191
  body: [{
19017
- label: !checkCondtions ? null : t("WF_ASSIGNEE_NAME_LABEL"),
19018
- placeholder: !checkCondtions ? null : t("WF_ASSIGNEE_NAME_PLACEHOLDER"),
19019
- type: "dropdown",
19020
- populators: !checkCondtions ? null : /*#__PURE__*/React.createElement(Dropdown, {
19021
- option: approvers,
19022
- autoComplete: "off",
19023
- optionKey: "name",
19024
- id: "fieldInspector",
19025
- select: setSelectedApprover,
19026
- selected: selectedApprover
19027
- })
19028
- }, {
19029
19192
  label: t("WF_COMMON_COMMENTS"),
19030
19193
  type: "textarea",
19031
19194
  populators: {
@@ -19065,10 +19228,8 @@ const configWSDisConnectApplication = ({
19065
19228
  error
19066
19229
  }) => {
19067
19230
  var _action$action;
19068
- let checkCondtions = true,
19069
- isDatePickerDisplay = false;
19070
- if (action !== null && action !== void 0 && (_action$action = action.action) !== null && _action$action !== void 0 && _action$action.includes("SEND_BACK") || (action === null || action === void 0 ? void 0 : action.action) == "APPROVE_FOR_DISCONNECTION" || (action === null || action === void 0 ? void 0 : action.action) == "RESUBMIT_APPLICATION") checkCondtions = false;
19071
- if (action.isTerminateState) checkCondtions = false;
19231
+ let isDatePickerDisplay = false;
19232
+ if (action !== null && action !== void 0 && (_action$action = action.action) !== null && _action$action !== void 0 && _action$action.includes("SEND_BACK") || (action === null || action === void 0 ? void 0 : action.action) == "APPROVE_FOR_DISCONNECTION" || (action === null || action === void 0 ? void 0 : action.action) == "RESUBMIT_APPLICATION") ;
19072
19233
  if ((action === null || action === void 0 ? void 0 : action.action) == "EXECUTE_DISCONNECTION" || (action === null || action === void 0 ? void 0 : action.action) == "DISCONNECTION_EXECUTED") isDatePickerDisplay = true;
19073
19234
  return {
19074
19235
  label: {
@@ -19077,19 +19238,7 @@ const configWSDisConnectApplication = ({
19077
19238
  cancel: "CS_COMMON_CANCEL"
19078
19239
  },
19079
19240
  form: [{
19080
- body: [{
19081
- label: !checkCondtions ? null : t("WF_ASSIGNEE_NAME_LABEL"),
19082
- placeholder: !checkCondtions ? null : t("WF_ASSIGNEE_NAME_PLACEHOLDER"),
19083
- type: "dropdown",
19084
- populators: !checkCondtions ? null : /*#__PURE__*/React.createElement(Dropdown, {
19085
- option: approvers,
19086
- autoComplete: "off",
19087
- optionKey: "name",
19088
- id: "fieldInspector",
19089
- select: setSelectedApprover,
19090
- selected: selectedApprover
19091
- })
19092
- }, isDatePickerDisplay && {
19241
+ body: [isDatePickerDisplay && {
19093
19242
  label: t("ES_FSM_ACTION_SERVICE_DATE"),
19094
19243
  isMandatory: isDatePickerDisplay ? true : false,
19095
19244
  type: "custom",
@@ -23451,7 +23600,7 @@ function PropertyDocuments({
23451
23600
  }));
23452
23601
  };
23453
23602
  const renderDocumentRow = (value, index) => {
23454
- var _pdfFiles$value$fileS;
23603
+ var _pdfFiles$value$fileS, _value$originalDoc, _value$originalDoc2, _value$originalDoc3;
23455
23604
  const fileUrl = (_pdfFiles$value$fileS = pdfFiles[value.fileStoreId]) === null || _pdfFiles$value$fileS === void 0 ? void 0 : _pdfFiles$value$fileS.split(",")[0];
23456
23605
  const docSubType = getDocSubType(value === null || value === void 0 ? void 0 : value.documentType);
23457
23606
  const docUid = (value === null || value === void 0 ? void 0 : value.documentUid) || "";
@@ -23534,11 +23683,18 @@ function PropertyDocuments({
23534
23683
  margin: 0
23535
23684
  }
23536
23685
  }, /*#__PURE__*/React.createElement("input", {
23686
+ key: `chk-${value === null || value === void 0 ? void 0 : (_value$originalDoc = value.originalDoc) === null || _value$originalDoc === void 0 ? void 0 : _value$originalDoc.id}-${value === null || value === void 0 ? void 0 : (_value$originalDoc2 = value.originalDoc) === null || _value$originalDoc2 === void 0 ? void 0 : _value$originalDoc2.isVerified}`,
23537
23687
  type: "checkbox",
23538
23688
  style: {
23539
23689
  width: "18px",
23540
23690
  height: "18px",
23541
23691
  accentColor: "#F47738"
23692
+ },
23693
+ defaultChecked: value === null || value === void 0 ? void 0 : (_value$originalDoc3 = value.originalDoc) === null || _value$originalDoc3 === void 0 ? void 0 : _value$originalDoc3.isVerified,
23694
+ onChange: e => {
23695
+ if (value !== null && value !== void 0 && value.originalDoc) {
23696
+ value.originalDoc.isVerified = e.target.checked;
23697
+ }
23542
23698
  }
23543
23699
  }), "Check Verified"))
23544
23700
  })));
@@ -26695,11 +26851,12 @@ const ApplicationDetails$1 = () => {
26695
26851
  };
26696
26852
  useEffect(() => {
26697
26853
  if (applicationDetails) {
26698
- var _details$applicationD, _details$applicationD2, _details$applicationD3, _details$applicationD4;
26854
+ var _details$applicationD, _details$applicationD2, _details$applicationD3, _details$applicationD6, _details$applicationD9, _details$applicationD0, _details$applicationD1;
26699
26855
  let details = lodash.cloneDeep(applicationDetails);
26700
26856
  const bookingStatus = details === null || details === void 0 ? void 0 : (_details$applicationD = details.applicationData) === null || _details$applicationD === void 0 ? void 0 : (_details$applicationD2 = _details$applicationD.applicationData) === null || _details$applicationD2 === void 0 ? void 0 : _details$applicationD2.bookingStatus;
26701
26857
  const isDelivered = bookingStatus === "DELIVERED" || bookingStatus === "TANKER_DELIVERED";
26702
26858
  if ((details === null || details === void 0 ? void 0 : (_details$applicationD3 = details.applicationDetails) === null || _details$applicationD3 === void 0 ? void 0 : _details$applicationD3.length) > 0 && !isDelivered && isFixedPoint) {
26859
+ var _details$applicationD4, _details$applicationD5;
26703
26860
  details.applicationDetails[0].Component = () => /*#__PURE__*/React.createElement("div", {
26704
26861
  onClick: () => setShowEditModal(true),
26705
26862
  style: {
@@ -26727,8 +26884,56 @@ const ApplicationDetails$1 = () => {
26727
26884
  fontSize: "14px"
26728
26885
  }
26729
26886
  }, t("WT_EDIT_FIELDS")));
26730
- } else if ((details === null || details === void 0 ? void 0 : (_details$applicationD4 = details.applicationDetails) === null || _details$applicationD4 === void 0 ? void 0 : _details$applicationD4.length) > 0) {
26887
+ if ((details === null || details === void 0 ? void 0 : (_details$applicationD4 = details.applicationData) === null || _details$applicationD4 === void 0 ? void 0 : (_details$applicationD5 = _details$applicationD4.applicationDetails) === null || _details$applicationD5 === void 0 ? void 0 : _details$applicationD5.length) > 0) {
26888
+ details.applicationData.applicationDetails[0].Component = details.applicationDetails[0].Component;
26889
+ }
26890
+ } else if ((details === null || details === void 0 ? void 0 : (_details$applicationD6 = details.applicationDetails) === null || _details$applicationD6 === void 0 ? void 0 : _details$applicationD6.length) > 0) {
26891
+ var _details$applicationD7, _details$applicationD8;
26731
26892
  delete details.applicationDetails[0].Component;
26893
+ if ((details === null || details === void 0 ? void 0 : (_details$applicationD7 = details.applicationData) === null || _details$applicationD7 === void 0 ? void 0 : (_details$applicationD8 = _details$applicationD7.applicationDetails) === null || _details$applicationD8 === void 0 ? void 0 : _details$applicationD8.length) > 0) {
26894
+ delete details.applicationData.applicationDetails[0].Component;
26895
+ }
26896
+ }
26897
+ const tripReport = details === null || details === void 0 ? void 0 : (_details$applicationD9 = details.applicationData) === null || _details$applicationD9 === void 0 ? void 0 : (_details$applicationD0 = _details$applicationD9.applicationData) === null || _details$applicationD0 === void 0 ? void 0 : (_details$applicationD1 = _details$applicationD0.driverTripReport) === null || _details$applicationD1 === void 0 ? void 0 : _details$applicationD1[0];
26898
+ if (tripReport && bookingStatus === "TANKER_DELIVERED") {
26899
+ var _tripReport$startLati, _tripReport$startLong, _tripReport$endLatitu, _tripReport$endLongit, _details$applicationD10;
26900
+ const newSection = {
26901
+ title: "WT_DRIVER_TRIP_REPORT",
26902
+ asSectionHeader: true,
26903
+ values: [{
26904
+ title: "WT_START_LATITUDE",
26905
+ value: (tripReport === null || tripReport === void 0 ? void 0 : (_tripReport$startLati = tripReport.startLatitude) === null || _tripReport$startLati === void 0 ? void 0 : _tripReport$startLati.toString()) || t("CS_NA")
26906
+ }, {
26907
+ title: "WT_START_LONGITUDE",
26908
+ value: (tripReport === null || tripReport === void 0 ? void 0 : (_tripReport$startLong = tripReport.startLongitude) === null || _tripReport$startLong === void 0 ? void 0 : _tripReport$startLong.toString()) || t("CS_NA")
26909
+ }, {
26910
+ title: "WT_END_LATITUDE",
26911
+ value: (tripReport === null || tripReport === void 0 ? void 0 : (_tripReport$endLatitu = tripReport.endLatitude) === null || _tripReport$endLatitu === void 0 ? void 0 : _tripReport$endLatitu.toString()) || t("CS_NA")
26912
+ }, {
26913
+ title: "WT_END_LONGITUDE",
26914
+ value: (tripReport === null || tripReport === void 0 ? void 0 : (_tripReport$endLongit = tripReport.endLongitude) === null || _tripReport$endLongit === void 0 ? void 0 : _tripReport$endLongit.toString()) || t("CS_NA")
26915
+ }],
26916
+ belowComponent: () => /*#__PURE__*/React.createElement(TripImages, {
26917
+ startFileStoreId: tripReport === null || tripReport === void 0 ? void 0 : tripReport.startFileStoreId,
26918
+ endFileStoreId: tripReport === null || tripReport === void 0 ? void 0 : tripReport.endFileStoreId
26919
+ })
26920
+ };
26921
+ if (details !== null && details !== void 0 && details.applicationDetails) {
26922
+ const vehicleIndex = details.applicationDetails.findIndex(sec => sec.title === "WT_VEHICLE_DETAILS");
26923
+ if (vehicleIndex !== -1) {
26924
+ details.applicationDetails.splice(vehicleIndex + 1, 0, newSection);
26925
+ } else {
26926
+ details.applicationDetails.push(newSection);
26927
+ }
26928
+ }
26929
+ if (details !== null && details !== void 0 && (_details$applicationD10 = details.applicationData) !== null && _details$applicationD10 !== void 0 && _details$applicationD10.applicationDetails) {
26930
+ const vehicleIndex = details.applicationData.applicationDetails.findIndex(sec => sec.title === "WT_VEHICLE_DETAILS");
26931
+ if (vehicleIndex !== -1) {
26932
+ details.applicationData.applicationDetails.splice(vehicleIndex + 1, 0, newSection);
26933
+ } else {
26934
+ details.applicationData.applicationDetails.push(newSection);
26935
+ }
26936
+ }
26732
26937
  }
26733
26938
  setAppDetailsToShow(details);
26734
26939
  }