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

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.
package/dist/index.js CHANGED
@@ -1340,7 +1340,12 @@ const checkForEmployee = roles => {
1340
1340
  });
1341
1341
  return rolesArray === null || rolesArray === void 0 ? void 0 : rolesArray.length;
1342
1342
  };
1343
- const getBusinessService = data => {
1343
+ const getBusinessService = (data, applicationDetails) => {
1344
+ var _applicationDetails$a, _data$serviceType;
1345
+ const appType = (data === null || data === void 0 ? void 0 : data.applicationType) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.applicationType) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationType);
1346
+ if (appType !== null && appType !== void 0 && appType.includes("MUTATION") || data !== null && data !== void 0 && (_data$serviceType = data.serviceType) !== null && _data$serviceType !== void 0 && _data$serviceType.includes("MUTATION") || (data === null || data === void 0 ? void 0 : data.businessService) === "WS.MUTATION") {
1347
+ return (data === null || data === void 0 ? void 0 : data.service) === "SEWERAGE" || (data === null || data === void 0 ? void 0 : data.serviceType) === "SEWERAGE" ? "SW.MUTATION" : "WS.MUTATION";
1348
+ }
1344
1349
  if ((data === null || data === void 0 ? void 0 : data.service) == "WATER") return "WS.ONE_TIME_FEE";else return "SW.ONE_TIME_FEE";
1345
1350
  };
1346
1351
  const convertApplicationData = function (data, serviceType, modify, editByConfig, t) {
@@ -17385,16 +17390,7 @@ const WSDisconnectionDocsRequired = _ref => {
17385
17390
  }
17386
17391
  })));
17387
17392
  }
17388
- return /*#__PURE__*/React__default.createElement("div", {
17389
- style: {
17390
- margin: "16px"
17391
- }
17392
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, {
17393
- styles: {
17394
- fontSize: "32px",
17395
- marginLeft: "18px"
17396
- }
17397
- }, t("WS_WATER_AND_SEWERAGE_DISCONNECTION")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, wsDocsLoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement("div", {
17393
+ return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, wsDocsLoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement("div", {
17398
17394
  id: "documents-div"
17399
17395
  }, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Disconnection2 = wsDocs.DisconnectionDocuments) === null || _wsDocs$Disconnection2 === void 0 ? void 0 : _wsDocs$Disconnection2.map((doc, index) => {
17400
17396
  var _doc$dropdownData3;
@@ -19007,17 +19003,20 @@ const WSDisconnectionForm = _ref => {
19007
19003
  const _useState3 = React.useState(null),
19008
19004
  error = _useState3[0],
19009
19005
  setError = _useState3[1];
19010
- const _useState4 = React.useState([]),
19011
- disconnectionTypeList = _useState4[0],
19012
- setDisconnectionTypeList = _useState4[1];
19006
+ const _useState4 = React.useState(null),
19007
+ docError = _useState4[0],
19008
+ setDocError = _useState4[1];
19013
19009
  const _useState5 = React.useState([]),
19014
- disconnectionReasonList = _useState5[0],
19015
- setDisconnectionReasonList = _useState5[1];
19016
- const _useState6 = React.useState(false),
19017
- setCheckRequiredFields = _useState6[1];
19010
+ disconnectionTypeList = _useState5[0],
19011
+ setDisconnectionTypeList = _useState5[1];
19012
+ const _useState6 = React.useState([]),
19013
+ disconnectionReasonList = _useState6[0],
19014
+ setDisconnectionReasonList = _useState6[1];
19018
19015
  const _useState7 = React.useState(false),
19019
- isEnableLoader = _useState7[0],
19020
- setIsEnableLoader = _useState7[1];
19016
+ setCheckRequiredFields = _useState7[1];
19017
+ const _useState8 = React.useState(false),
19018
+ isEnableLoader = _useState8[0],
19019
+ setIsEnableLoader = _useState8[1];
19021
19020
  const _Digit$Hooks$ws$useMD = Digit.Hooks.ws.useMDMS(stateCode, "ws-services-masters", ["disconnectionType"]),
19022
19021
  isMdmsLoading = _Digit$Hooks$ws$useMD.isMdmsLoading,
19023
19022
  mdmsData = _Digit$Hooks$ws$useMD.data;
@@ -19045,7 +19044,7 @@ const WSDisconnectionForm = _ref => {
19045
19044
  };
19046
19045
  React.useEffect(() => {
19047
19046
  const oldData = _extends({}, disconnectionData);
19048
- oldData['documents'] = documents;
19047
+ oldData["documents"] = documents;
19049
19048
  setDisconnectionData(oldData);
19050
19049
  }, [documents]);
19051
19050
  React.useEffect(() => {
@@ -19090,25 +19089,29 @@ const WSDisconnectionForm = _ref => {
19090
19089
  const onSubmit = function (data) {
19091
19090
  try {
19092
19091
  const appDate = new Date();
19093
- const proposedDate = format(addDays(appDate, slaData === null || slaData === void 0 ? void 0 : slaData.slaDays), 'yyyy-MM-dd').toString();
19092
+ const slaDays = (slaData === null || slaData === void 0 ? void 0 : slaData.slaDays) || 0;
19093
+ const proposedDate = format(addDays(appDate, slaDays), "yyyy-MM-dd").toString();
19094
+ const selectedDateEpoch = data !== null && data !== void 0 && data.date ? convertDateToEpoch(data.date) : null;
19095
+ const proposedDateEpoch = convertDateToEpoch(proposedDate);
19096
+ const selectedDateIsInvalid = !(data !== null && data !== void 0 && data.date) || typeof selectedDateEpoch !== "number" || selectedDateEpoch < proposedDateEpoch;
19094
19097
  const _temp7 = function () {
19095
- if (convertDateToEpoch(data === null || data === void 0 ? void 0 : data.date) <= convertDateToEpoch(proposedDate)) {
19098
+ if (selectedDateIsInvalid) {
19096
19099
  setError({
19097
19100
  key: "error",
19098
19101
  message: "PROPOSED_DISCONNECTION_INVALID_DATE"
19099
19102
  });
19100
19103
  setTimeout(() => {
19101
- setError(false);
19104
+ setError(null);
19102
19105
  }, 3000);
19103
19106
  } else {
19104
19107
  const _temp6 = function (_data$type, _data$type$value) {
19105
- if ((data === null || data === void 0 ? void 0 : (_data$type = data.type) === null || _data$type === void 0 ? void 0 : (_data$type$value = _data$type.value) === null || _data$type$value === void 0 ? void 0 : _data$type$value.name) == "Temporary" && convertDateToEpoch(data === null || data === void 0 ? void 0 : data.endDate) <= convertDateToEpoch(data === null || data === void 0 ? void 0 : data.date)) {
19108
+ if ((data === null || data === void 0 ? void 0 : (_data$type = data.type) === null || _data$type === void 0 ? void 0 : (_data$type$value = _data$type.value) === null || _data$type$value === void 0 ? void 0 : _data$type$value.code) === "Temporary" && convertDateToEpoch(data === null || data === void 0 ? void 0 : data.endDate) <= convertDateToEpoch(data === null || data === void 0 ? void 0 : data.date)) {
19106
19109
  setError({
19107
19110
  key: "error",
19108
19111
  message: "PROPOSED_DISCONNECTION_INVALID_END_DATE"
19109
19112
  });
19110
19113
  setTimeout(() => {
19111
- setError(false);
19114
+ setError(null);
19112
19115
  }, 3000);
19113
19116
  } else {
19114
19117
  const _temp5 = function (_disconnectionData$re) {
@@ -19118,7 +19121,7 @@ const WSDisconnectionForm = _ref => {
19118
19121
  message: "PLEASE_FILL_MANDATORY_DETAILS"
19119
19122
  });
19120
19123
  setTimeout(() => {
19121
- setError(false);
19124
+ setError(null);
19122
19125
  }, 3000);
19123
19126
  } else {
19124
19127
  var _applicationData$appl;
@@ -19249,7 +19252,7 @@ const WSDisconnectionForm = _ref => {
19249
19252
  }
19250
19253
  };
19251
19254
  if (isMdmsLoading || wsDocsLoading || isEnableLoader || slaLoading) return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
19252
- if (userType === 'citizen') {
19255
+ if (userType === "citizen") {
19253
19256
  var _disconnectionData$ty, _disconnectionData$ty2, _disconnectionData$ty3, _disconnectionData$ty4, _disconnectionData$ty5, _disconnectionData$re2, _disconnectionData$re3, _disconnectionData$re4, _disconnectionData$re5;
19254
19257
  return /*#__PURE__*/React__default.createElement("div", null, userType === "citizen" && /*#__PURE__*/React__default.createElement(DisconnectTimeline, {
19255
19258
  currentStep: 1
@@ -19362,8 +19365,8 @@ const WSDisconnectionForm = _ref => {
19362
19365
  onSubmit: () => {
19363
19366
  var _disconnectionData$ty6, _disconnectionData$ty7;
19364
19367
  const appDate = new Date();
19365
- const proposedDate = format(addDays(appDate, slaData === null || slaData === void 0 ? void 0 : slaData.slaDays), 'yyyy-MM-dd').toString();
19366
- if (convertDateToEpoch(disconnectionData === null || disconnectionData === void 0 ? void 0 : disconnectionData.date) <= convertDateToEpoch(proposedDate)) {
19368
+ const proposedDate = format(addDays(appDate, slaData === null || slaData === void 0 ? void 0 : slaData.slaDays), "yyyy-MM-dd").toString();
19369
+ if (convertDateToEpoch(disconnectionData === null || disconnectionData === void 0 ? void 0 : disconnectionData.date) < convertDateToEpoch(proposedDate)) {
19367
19370
  setError({
19368
19371
  key: "error",
19369
19372
  message: "PROPOSED_DISCONNECTION_INVALID_DATE"
@@ -19400,26 +19403,11 @@ const WSDisconnectionForm = _ref => {
19400
19403
  info: t("CS_COMMON_INFO")
19401
19404
  }));
19402
19405
  }
19403
- return /*#__PURE__*/React__default.createElement("div", {
19404
- style: {
19405
- margin: "16px"
19406
- }
19407
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, {
19408
- styles: {
19409
- fontSize: "32px",
19410
- marginLeft: "18px"
19411
- }
19412
- }, t("WS_WATER_AND_SEWERAGE_DISCONNECTION")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormStep, {
19406
+ return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormStep, {
19413
19407
  config: config,
19414
19408
  onSelect: handleEmployeeSubmit,
19415
19409
  onSkip: onSkip,
19416
19410
  t: t
19417
- }, /*#__PURE__*/React__default.createElement("div", {
19418
- style: {
19419
- padding: "10px",
19420
- paddingTop: "20px",
19421
- marginTop: "10px"
19422
- }
19423
19411
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t("CS_TITLE_APPLICATION_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
19424
19412
  key: t("PDF_STATIC_LABEL_CONSUMER_NUMBER_LABEL"),
19425
19413
  label: "" + t("PDF_STATIC_LABEL_CONSUMER_NUMBER_LABEL"),
@@ -19543,18 +19531,23 @@ const WSDisconnectionForm = _ref => {
19543
19531
  key: index,
19544
19532
  document: document,
19545
19533
  t: t,
19546
- error: error,
19547
- setError: setError,
19534
+ error: docError,
19535
+ setError: setDocError,
19548
19536
  setDocuments: setDocuments,
19549
19537
  documents: documents,
19550
19538
  setCheckRequiredFields: setCheckRequiredFields
19551
19539
  });
19540
+ }), docError && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
19541
+ error: (docError === null || docError === void 0 ? void 0 : docError.key) === "error" ? true : false,
19542
+ label: t(docError === null || docError === void 0 ? void 0 : docError.message),
19543
+ warning: docError === null || docError === void 0 ? void 0 : docError.warning,
19544
+ onClose: () => setDocError(null)
19552
19545
  }), error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
19553
19546
  error: (error === null || error === void 0 ? void 0 : error.key) === "error" ? true : false,
19554
19547
  label: t(error === null || error === void 0 ? void 0 : error.message),
19555
19548
  warning: error === null || error === void 0 ? void 0 : error.warning,
19556
19549
  onClose: () => setError(null)
19557
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
19550
+ })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
19558
19551
  style: {
19559
19552
  display: "flex",
19560
19553
  justifyContent: "flex-end",
@@ -19574,7 +19567,6 @@ function SelectDocument$1(_ref2) {
19574
19567
  key = _ref2.key,
19575
19568
  doc = _ref2.document,
19576
19569
  setDocuments = _ref2.setDocuments,
19577
- error = _ref2.error,
19578
19570
  setError = _ref2.setError,
19579
19571
  documents = _ref2.documents,
19580
19572
  setCheckRequiredFields = _ref2.setCheckRequiredFields;
@@ -19583,19 +19575,19 @@ function SelectDocument$1(_ref2) {
19583
19575
  return item === null || item === void 0 ? void 0 : (_item$documentType = item.documentType) === null || _item$documentType === void 0 ? void 0 : _item$documentType.includes(doc === null || doc === void 0 ? void 0 : doc.code);
19584
19576
  })[0];
19585
19577
  const tenantId = Digit.ULBService.getCurrentTenantId();
19586
- const _useState8 = React.useState(filteredDocument ? _extends({}, filteredDocument, {
19578
+ const _useState9 = React.useState(filteredDocument ? _extends({}, filteredDocument, {
19587
19579
  active: true,
19588
19580
  code: filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentType,
19589
19581
  i18nKey: filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentType
19590
19582
  }) : (doc === null || doc === void 0 ? void 0 : (_doc$dropdownData = doc.dropdownData) === null || _doc$dropdownData === void 0 ? void 0 : _doc$dropdownData.length) === 1 ? doc === null || doc === void 0 ? void 0 : doc.dropdownData[0] : {}),
19591
- selectedDocument = _useState8[0],
19592
- setSelectedDocument = _useState8[1];
19593
- const _useState9 = React.useState(null),
19594
- file = _useState9[0],
19595
- setFile = _useState9[1];
19596
- const _useState0 = React.useState(() => (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileStoreId) || null),
19597
- uploadedFile = _useState0[0],
19598
- setUploadedFile = _useState0[1];
19583
+ selectedDocument = _useState9[0],
19584
+ setSelectedDocument = _useState9[1];
19585
+ const _useState0 = React.useState(null),
19586
+ file = _useState0[0],
19587
+ setFile = _useState0[1];
19588
+ const _useState1 = React.useState(() => (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileStoreId) || null),
19589
+ uploadedFile = _useState1[0],
19590
+ setUploadedFile = _useState1[1];
19599
19591
  const handleSelectDocument = value => setSelectedDocument(value);
19600
19592
  function selectfile(e) {
19601
19593
  setFile(e.target.files[0]);
@@ -19618,9 +19610,9 @@ function SelectDocument$1(_ref2) {
19618
19610
  React.useEffect(() => {
19619
19611
  (function () {
19620
19612
  try {
19621
- setError(null);
19622
19613
  const _temp0 = function () {
19623
19614
  if (file) {
19615
+ setError(null);
19624
19616
  const _temp9 = function () {
19625
19617
  if (file.size >= 5242880) {
19626
19618
  setError({
@@ -19689,8 +19681,7 @@ function SelectDocument$1(_ref2) {
19689
19681
  setUploadedFile(null);
19690
19682
  setCheckRequiredFields(true);
19691
19683
  },
19692
- message: uploadedFile ? "1 " + t("CS_ACTION_FILEUPLOADED") : t("ES_NO_FILE_SELECTED_LABEL"),
19693
- error: error
19684
+ message: uploadedFile ? "1 " + t("CS_ACTION_FILEUPLOADED") : t("ES_NO_FILE_SELECTED_LABEL")
19694
19685
  }))));
19695
19686
  }
19696
19687
 
@@ -28966,7 +28957,7 @@ const ActionButton = _ref3 => {
28966
28957
  }, label));
28967
28958
  };
28968
28959
  const WSWFApplicationTimeline = props => {
28969
- var _props$application, _props$application2, _data$timeline, _data$timeline2, _data$timeline3, _data$timeline4;
28960
+ var _props$application, _props$application2, _props$application8, _props$application8$a, _props$application9, _props$application0, _data$timeline, _data$timeline2, _data$timeline3, _data$timeline4;
28970
28961
  const _useTranslation = reactI18next.useTranslation(),
28971
28962
  t = _useTranslation.t;
28972
28963
  const businessService = (_props$application = props.application) === null || _props$application === void 0 ? void 0 : _props$application.applicationNo.split("_")[0];
@@ -29026,6 +29017,8 @@ const WSWFApplicationTimeline = props => {
29026
29017
  });
29027
29018
  }
29028
29019
  };
29020
+ const isMutation = (_props$application8 = props.application) === null || _props$application8 === void 0 ? void 0 : (_props$application8$a = _props$application8.applicationType) === null || _props$application8$a === void 0 ? void 0 : _props$application8$a.includes("MUTATION");
29021
+ const payBusinessService = isMutation ? ((_props$application9 = props.application) === null || _props$application9 === void 0 ? void 0 : _props$application9.serviceType) === "SEWERAGE" || ((_props$application0 = props.application) === null || _props$application0 === void 0 ? void 0 : _props$application0.service) === "SEWERAGE" ? "SW.MUTATION" : "WS.MUTATION" : businessService;
29029
29022
  const showNextActions = nextActions => {
29030
29023
  var _nextAction;
29031
29024
  if (!(nextActions !== null && nextActions !== void 0 && nextActions.length)) return null;
@@ -29040,7 +29033,7 @@ const WSWFApplicationTimeline = props => {
29040
29033
  case "PAY":
29041
29034
  if ((props === null || props === void 0 ? void 0 : props.paymentbuttonenabled) !== false) return /*#__PURE__*/React__default.createElement(ActionButton, {
29042
29035
  label: t("CS_APPLICATION_DETAILS_MAKE_PAYMENT"),
29043
- to: "/digit-ui/citizen/payment/collect/" + businessService + "/" + props.id + "?consumerCode=" + props.id + "&&workflow=WNS",
29036
+ to: "/digit-ui/citizen/payment/collect/" + payBusinessService + "/" + props.id + "?consumerCode=" + props.id + "&&workflow=WNS",
29044
29037
  state: {
29045
29038
  tenantId: props.application.tenantId
29046
29039
  }
@@ -43172,9 +43165,9 @@ function PropertyDocuments(_ref) {
43172
43165
  var _document$values;
43173
43166
  document === null || document === void 0 ? void 0 : (_document$values = document.values) === null || _document$values === void 0 ? void 0 : _document$values.forEach(value => {
43174
43167
  if (!value.isPhoto) {
43175
- var _ref2, _checkedMap$value$ori, _value$originalDoc, _value$originalDoc2;
43168
+ var _ref2, _checkedMap$value$fil, _value$originalDoc;
43176
43169
  requiredDocsCount++;
43177
- const isChecked = (_ref2 = (_checkedMap$value$ori = checkedMap[value === null || value === void 0 ? void 0 : (_value$originalDoc = value.originalDoc) === null || _value$originalDoc === void 0 ? void 0 : _value$originalDoc.id]) != null ? _checkedMap$value$ori : value === null || value === void 0 ? void 0 : (_value$originalDoc2 = value.originalDoc) === null || _value$originalDoc2 === void 0 ? void 0 : _value$originalDoc2.isVerified) != null ? _ref2 : false;
43170
+ const isChecked = (_ref2 = (_checkedMap$value$fil = checkedMap[value === null || value === void 0 ? void 0 : value.fileStoreId]) != null ? _checkedMap$value$fil : value === null || value === void 0 ? void 0 : (_value$originalDoc = value.originalDoc) === null || _value$originalDoc === void 0 ? void 0 : _value$originalDoc.isVerified) != null ? _ref2 : false;
43178
43171
  if (isChecked) {
43179
43172
  checkedCount++;
43180
43173
  }
@@ -43418,7 +43411,7 @@ function PropertyDocuments(_ref) {
43418
43411
  style: {
43419
43412
  cursor: "pointer"
43420
43413
  }
43421
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null)), !isPhoto && ((_ref3, _checkedMap$value$ori2, _value$originalDoc3, _value$originalDoc4, _value$originalDoc5, _value$originalDoc6, _value$originalDoc7) => {
43414
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null)), !isPhoto && ((_ref3, _checkedMap$value$ori, _value$originalDoc2, _value$originalDoc3, _value$originalDoc4, _value$originalDoc5) => {
43422
43415
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
43423
43416
  onClick: () => {
43424
43417
  if (fileUrl) {
@@ -43460,7 +43453,7 @@ function PropertyDocuments(_ref) {
43460
43453
  margin: 0
43461
43454
  }
43462
43455
  }, /*#__PURE__*/React__default.createElement("input", {
43463
- key: "chk-" + (value === null || value === void 0 ? void 0 : (_value$originalDoc5 = value.originalDoc) === null || _value$originalDoc5 === void 0 ? void 0 : _value$originalDoc5.id) + "-" + (value === null || value === void 0 ? void 0 : (_value$originalDoc6 = value.originalDoc) === null || _value$originalDoc6 === void 0 ? void 0 : _value$originalDoc6.isVerified),
43456
+ key: "chk-" + (value === null || value === void 0 ? void 0 : value.fileStoreId) + "-" + (value === null || value === void 0 ? void 0 : (_value$originalDoc4 = value.originalDoc) === null || _value$originalDoc4 === void 0 ? void 0 : _value$originalDoc4.isVerified),
43464
43457
  type: "checkbox",
43465
43458
  className: "verify-doc-checkbox",
43466
43459
  style: {
@@ -43470,16 +43463,15 @@ function PropertyDocuments(_ref) {
43470
43463
  cursor: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" ? "not-allowed" : "pointer"
43471
43464
  },
43472
43465
  disabled: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION",
43473
- defaultChecked: value === null || value === void 0 ? void 0 : (_value$originalDoc7 = value.originalDoc) === null || _value$originalDoc7 === void 0 ? void 0 : _value$originalDoc7.isVerified,
43466
+ defaultChecked: value === null || value === void 0 ? void 0 : (_value$originalDoc5 = value.originalDoc) === null || _value$originalDoc5 === void 0 ? void 0 : _value$originalDoc5.isVerified,
43474
43467
  onChange: e => {
43475
- var _value$originalDoc8;
43476
43468
  const checked = e.target.checked;
43477
43469
  if (value !== null && value !== void 0 && value.originalDoc) {
43478
43470
  value.originalDoc.isVerified = checked;
43479
43471
  }
43480
- if (value !== null && value !== void 0 && (_value$originalDoc8 = value.originalDoc) !== null && _value$originalDoc8 !== void 0 && _value$originalDoc8.id) {
43472
+ if (value !== null && value !== void 0 && value.fileStoreId) {
43481
43473
  setCheckedMap(prev => _extends({}, prev, {
43482
- [value.originalDoc.id]: checked
43474
+ [value.fileStoreId]: checked
43483
43475
  }));
43484
43476
  }
43485
43477
  }
@@ -45530,7 +45522,7 @@ function ApplicationDetailsActionBar(_ref) {
45530
45522
  if (typeof window !== "undefined" && typeof window.isDocumentsVerified !== "undefined") {
45531
45523
  return !window.isDocumentsVerified;
45532
45524
  }
45533
- return false;
45525
+ return true;
45534
45526
  }),
45535
45527
  isSubmitDisabled = _React$useState[0],
45536
45528
  setIsSubmitDisabled = _React$useState[1];
@@ -45543,7 +45535,10 @@ function ApplicationDetailsActionBar(_ref) {
45543
45535
  };
45544
45536
  if (typeof window !== "undefined") {
45545
45537
  window.addEventListener("DOCUMENTS_VERIFIED", handleDocVerification);
45546
- return () => window.removeEventListener("DOCUMENTS_VERIFIED", handleDocVerification);
45538
+ return () => {
45539
+ window.removeEventListener("DOCUMENTS_VERIFIED", handleDocVerification);
45540
+ delete window.isDocumentsVerified;
45541
+ };
45547
45542
  }
45548
45543
  }, []);
45549
45544
  if (window.location.href.includes("/obps") || window.location.href.includes("/noc")) {
@@ -46281,7 +46276,7 @@ const ApplicationDetails$1 = () => {
46281
46276
  };
46282
46277
  } else {
46283
46278
  action.redirectionUrll = {
46284
- pathname: getBusinessService(filters) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "?tenantId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "&ISWSAPP&applicationNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo),
46279
+ pathname: getBusinessService(filters, applicationDetails) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "?tenantId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "&ISWSAPP&applicationNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo),
46285
46280
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
46286
46281
  };
46287
46282
  }
@@ -46302,7 +46297,7 @@ const ApplicationDetails$1 = () => {
46302
46297
  };
46303
46298
  } else {
46304
46299
  action.redirectionUrll = {
46305
- pathname: getBusinessService(filters) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "?tenantId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "&ISWSAPP&applicationNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo),
46300
+ pathname: getBusinessService(filters, applicationDetails) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "?tenantId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "&ISWSAPP&applicationNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo),
46306
46301
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
46307
46302
  };
46308
46303
  }
@@ -46784,19 +46779,15 @@ const GetConnectionDetails = () => {
46784
46779
  onClick: props.onClick
46785
46780
  }, /*#__PURE__*/React__default.createElement(Close, null));
46786
46781
  };
46787
- return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
46788
- className: "employee-application-details",
46789
- style: {
46790
- marginBottom: "15px"
46791
- }
46792
- }, /*#__PURE__*/React__default.createElement("style", null, ".multilinkWrapper employee-mulitlink-main-divNew { max-width:100%; maegin-top:-20px}"), /*#__PURE__*/React__default.createElement("div", {
46782
+ return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
46793
46783
  style: {
46794
- display: "flex"
46784
+ position: "relative"
46795
46785
  }
46796
46786
  }, dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React__default.createElement("div", {
46797
46787
  style: {
46798
- maxWidth: "100% !imnportant",
46799
- zIndex: "10"
46788
+ position: "absolute",
46789
+ right: "24px",
46790
+ zIndex: 11
46800
46791
  }
46801
46792
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.MultiLink, {
46802
46793
  className: "multilinkWrapper employee-mulitlink-main-divNew",
@@ -46805,11 +46796,8 @@ const GetConnectionDetails = () => {
46805
46796
  options: dowloadOptions,
46806
46797
  downloadBtnClassName: "employee-download-btn-className",
46807
46798
  optionsClassName: "employee-options-btn-className",
46808
- ref: menuRef,
46809
- style: {
46810
- maxWidth: "100%"
46811
- }
46812
- })))), /*#__PURE__*/React__default.createElement(ApplicationDetails, {
46799
+ ref: menuRef
46800
+ })), /*#__PURE__*/React__default.createElement(ApplicationDetails, {
46813
46801
  applicationDetails: applicationDetails,
46814
46802
  isLoading: isLoading,
46815
46803
  isDataLoading: isLoading,
@@ -46824,7 +46812,7 @@ const GetConnectionDetails = () => {
46824
46812
  labelComponent: /*#__PURE__*/React__default.createElement(WSInfoLabel, {
46825
46813
  t: t
46826
46814
  })
46827
- }), ifUserRoleExists("WS_CEMP") && checkApplicationStatus && !(applicationDetails !== null && applicationDetails !== void 0 && applicationDetails.isDisconnectionDone) ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, displayMenu ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Menu, {
46815
+ })), ifUserRoleExists("WS_CEMP") && checkApplicationStatus && !(applicationDetails !== null && applicationDetails !== void 0 && applicationDetails.isDisconnectionDone) ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, displayMenu ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Menu, {
46828
46816
  options: showAction,
46829
46817
  localeKeyPrefix: "WS",
46830
46818
  t: t,
@@ -46893,7 +46881,7 @@ const GetConnectionDetails = () => {
46893
46881
  error: showActionToast.key,
46894
46882
  label: t("" + showActionToast.label),
46895
46883
  onClose: closeBillToast
46896
- })));
46884
+ }));
46897
46885
  };
46898
46886
 
46899
46887
  const ActivateConnection = () => {
@@ -49779,6 +49767,9 @@ const GetDisconnectionDetails = () => {
49779
49767
  const _useState2 = React.useState(null),
49780
49768
  showToast = _useState2[0],
49781
49769
  setShowToast = _useState2[1];
49770
+ const _React$useState = React__default.useState(typeof window !== "undefined" ? window.innerWidth < 768 : false),
49771
+ hideTimeline = _React$useState[0],
49772
+ setHideTimeline = _React$useState[1];
49782
49773
  const tenantId = Digit.ULBService.getCurrentTenantId();
49783
49774
  const applicationNumber = filters === null || filters === void 0 ? void 0 : filters.applicationNumber;
49784
49775
  const serviceType = filters === null || filters === void 0 ? void 0 : filters.service;
@@ -49915,23 +49906,34 @@ const GetDisconnectionDetails = () => {
49915
49906
  dowloadOptions.sort(function (a, b) {
49916
49907
  return a.order - b.order;
49917
49908
  });
49918
- return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
49919
- className: "employee-application-details",
49909
+ return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
49910
+ className: "employee-main-application-details",
49920
49911
  style: {
49921
- marginBottom: "15px"
49912
+ display: "flex",
49913
+ gap: "20px"
49922
49914
  }
49923
49915
  }, /*#__PURE__*/React__default.createElement("div", {
49916
+ className: "workflow-timeline-wrapper no-scrollbar " + (hideTimeline ? "hide-workflow" : ""),
49924
49917
  style: {
49925
- display: "flex"
49918
+ flex: "1 1 300px",
49919
+ maxWidth: hideTimeline ? "fit-content" : "400px",
49920
+ transition: "max-width 0.3s"
49926
49921
  }
49927
- }, /*#__PURE__*/React__default.createElement("div", {
49922
+ }, /*#__PURE__*/React__default.createElement(WorkflowTimeline, {
49923
+ workflowDetails: workflowDetails,
49924
+ hideTimeline: hideTimeline,
49925
+ setHideTimeline: setHideTimeline
49926
+ })), /*#__PURE__*/React__default.createElement("div", {
49928
49927
  style: {
49929
- width: "70%"
49928
+ flex: "2 1 500px",
49929
+ minWidth: "300px",
49930
+ position: "relative"
49930
49931
  }
49931
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, null, t("WS_APPLICATION_DETAILS"), " ")), /*#__PURE__*/React__default.createElement("div", {
49932
+ }, /*#__PURE__*/React__default.createElement("div", {
49932
49933
  style: {
49933
- width: "30%",
49934
- zIndex: "10"
49934
+ position: "absolute",
49935
+ right: "24px",
49936
+ zIndex: 11
49935
49937
  }
49936
49938
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.MultiLink, {
49937
49939
  className: "multilinkWrapper employee-mulitlink-main-divNew",
@@ -49941,7 +49943,7 @@ const GetDisconnectionDetails = () => {
49941
49943
  downloadBtnClassName: "employee-download-btn-className",
49942
49944
  optionsClassName: "employee-options-btn-className",
49943
49945
  ref: menuRef
49944
- })))), /*#__PURE__*/React__default.createElement(ApplicationDetails, {
49946
+ })), /*#__PURE__*/React__default.createElement(ApplicationDetails, {
49945
49947
  applicationDetails: applicationDetails,
49946
49948
  isLoading: isLoading || isServicesMasterLoading,
49947
49949
  isDataLoading: isLoading || isServicesMasterLoading,
@@ -49954,8 +49956,9 @@ const GetDisconnectionDetails = () => {
49954
49956
  setShowToast: setShowToast,
49955
49957
  closeToast: closeToast,
49956
49958
  timelineStatusPrefix: "WF_" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p8 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p8 === void 0 ? void 0 : (_applicationDetails$p9 = _applicationDetails$p8[0]) === null || _applicationDetails$p9 === void 0 ? void 0 : (_applicationDetails$p0 = _applicationDetails$p9.businessService) === null || _applicationDetails$p0 === void 0 ? void 0 : _applicationDetails$p0.toUpperCase()) + "_",
49957
- isInfoLabel: sessionStorage.getItem("isPrivacyEnabled") === "true" ? true : false
49958
- })));
49959
+ isInfoLabel: sessionStorage.getItem("isPrivacyEnabled") === "true" ? true : false,
49960
+ showTimeLine: false
49961
+ }))));
49959
49962
  };
49960
49963
 
49961
49964
  const ModifyApplicationDetails = () => {
@@ -50102,7 +50105,7 @@ const ModifyApplicationDetails = () => {
50102
50105
  workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data29 = workflowDetails.data) === null || _workflowDetails$data29 === void 0 ? void 0 : (_workflowDetails$data30 = _workflowDetails$data29.nextActions) === null || _workflowDetails$data30 === void 0 ? void 0 : _workflowDetails$data30.forEach(action => {
50103
50106
  if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
50104
50107
  action.redirectionUrll = {
50105
- pathname: getBusinessService(filters) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "?tenantId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "&ISWSAPP&applicationNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo),
50108
+ pathname: getBusinessService(filters, applicationDetails) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "?tenantId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "&ISWSAPP&applicationNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo),
50106
50109
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
50107
50110
  };
50108
50111
  }
@@ -50110,7 +50113,7 @@ const ModifyApplicationDetails = () => {
50110
50113
  workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data31 = workflowDetails.data) === null || _workflowDetails$data31 === void 0 ? void 0 : (_workflowDetails$data32 = _workflowDetails$data31.actionState) === null || _workflowDetails$data32 === void 0 ? void 0 : (_workflowDetails$data33 = _workflowDetails$data32.nextActions) === null || _workflowDetails$data33 === void 0 ? void 0 : _workflowDetails$data33.forEach(action => {
50111
50114
  if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
50112
50115
  action.redirectionUrll = {
50113
- pathname: getBusinessService(filters) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "?tenantId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "&ISWSAPP&applicationNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo),
50116
+ pathname: getBusinessService(filters, applicationDetails) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "?tenantId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "&ISWSAPP&applicationNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo),
50114
50117
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
50115
50118
  };
50116
50119
  }