@djb25/digit-ui-module-ws 1.0.77 → 1.0.78

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
@@ -1596,19 +1596,59 @@ const convertApplicationData = function (data, serviceType, modify, editByConfig
1596
1596
  sessionStorage.setItem("WS_EDIT_APPLICATION_DETAILS", JSON.stringify(data));
1597
1597
  return payload;
1598
1598
  };
1599
+ const mapExistingDocIdsToPayload = function (uploadingDocs, existingDocs) {
1600
+ if (uploadingDocs === void 0) {
1601
+ uploadingDocs = [];
1602
+ }
1603
+ if (existingDocs === void 0) {
1604
+ existingDocs = [];
1605
+ }
1606
+ if (!Array.isArray(uploadingDocs) || uploadingDocs.length === 0) return uploadingDocs;
1607
+ if (!Array.isArray(existingDocs) || existingDocs.length === 0) return uploadingDocs;
1608
+ return uploadingDocs.map(doc => {
1609
+ if (doc !== null && doc !== void 0 && doc.id) return doc;
1610
+ const uploadType = doc === null || doc === void 0 ? void 0 : doc.documentType;
1611
+ if (!uploadType) return doc;
1612
+ const normUpload = String(uploadType).trim().toUpperCase();
1613
+ const uploadParts = normUpload.split(".");
1614
+ const uploadCode = uploadParts[uploadParts.length - 1];
1615
+ const matchedDoc = existingDocs.find(exDoc => {
1616
+ if (!(exDoc !== null && exDoc !== void 0 && exDoc.id) || !(exDoc !== null && exDoc !== void 0 && exDoc.documentType)) return false;
1617
+ const normExisting = String(exDoc.documentType).trim().toUpperCase();
1618
+ const existingParts = normExisting.split(".");
1619
+ const existingCode = existingParts[existingParts.length - 1];
1620
+ if (normExisting === normUpload) return true;
1621
+ if (existingCode === uploadCode) return true;
1622
+ if (normExisting.endsWith("." + normUpload) || normUpload.endsWith("." + normExisting)) return true;
1623
+ if (normExisting.includes(normUpload) || normUpload.includes(normExisting)) return true;
1624
+ return false;
1625
+ });
1626
+ if (matchedDoc && matchedDoc.id) {
1627
+ return _extends({}, doc, {
1628
+ id: matchedDoc.id
1629
+ });
1630
+ }
1631
+ return doc;
1632
+ });
1633
+ };
1599
1634
  const convertEditApplicationDetails = function (data, appData, actionData) {
1600
1635
  try {
1601
- var _data$cpt30, _data$cpt30$details, _data$cpt30$details$o, _data$cpt31, _data$cpt31$details, _data$ConnectionDetai3, _data$ConnectionDetai4, _data$ConnectionDetai5, _data$ConnectionDetai6, _data$ConnectionDetai7, _data$ConnectionDetai8, _data$ConnectionDetai9, _data$ConnectionDetai0, _data$ConnectionDetai1, _data$ConnectionDetai10, _data$ConnectionDetai11, _data$ConnectionDetai12, _data$ConnectionDetai13, _data$ConnectionDetai14, _data$ConnectionDetai15, _data$ConnectionDetai16, _data$ConnectionDetai17, _data$ConnectionDetai18, _data$ConnectionHolde58, _data$ConnectionHolde59, _appData$applicationD, _appData$applicationD2, _data$ConnectionHolde60, _data$ConnectionHolde61, _data$ConnectionHolde62, _data$ConnectionHolde63, _data$ConnectionHolde64, _data$ConnectionHolde65, _data$ConnectionHolde66, _data$ConnectionHolde67, _data$ConnectionHolde68, _data$ConnectionHolde69, _data$ConnectionHolde70, _data$ConnectionHolde71, _data$ConnectionHolde72, _data$ConnectionHolde73, _data$ConnectionHolde74, _data$ConnectionHolde75, _data$ConnectionHolde76, _data$ConnectionHolde77, _data$ConnectionHolde78, _data$ConnectionHolde79, _data$ConnectionHolde80, _data$ConnectionHolde81, _data$ConnectionHolde82, _data$ConnectionHolde83, _data$ConnectionHolde84, _data$ConnectionHolde85, _data$ConnectionHolde86, _data$cpt32, _data$DocumentsRequir;
1636
+ var _data$cpt30, _data$cpt30$details, _data$cpt30$details$o, _appData$applicationD, _data$DocumentsRequir, _data$cpt31, _data$cpt31$details, _data$ConnectionDetai3, _data$ConnectionDetai4, _data$ConnectionDetai5, _data$ConnectionDetai6, _data$ConnectionDetai7, _data$ConnectionDetai8, _data$ConnectionDetai9, _data$ConnectionDetai0, _data$ConnectionDetai1, _data$ConnectionDetai10, _data$ConnectionDetai11, _data$ConnectionDetai12, _data$ConnectionDetai13, _data$ConnectionDetai14, _data$ConnectionDetai15, _data$ConnectionDetai16, _data$ConnectionDetai17, _data$ConnectionDetai18, _data$ConnectionHolde58, _data$ConnectionHolde59, _appData$applicationD2, _appData$applicationD3, _data$ConnectionHolde60, _data$ConnectionHolde61, _data$ConnectionHolde62, _data$ConnectionHolde63, _data$ConnectionHolde64, _data$ConnectionHolde65, _data$ConnectionHolde66, _data$ConnectionHolde67, _data$ConnectionHolde68, _data$ConnectionHolde69, _data$ConnectionHolde70, _data$ConnectionHolde71, _data$ConnectionHolde72, _data$ConnectionHolde73, _data$ConnectionHolde74, _data$ConnectionHolde75, _data$ConnectionHolde76, _data$ConnectionHolde77, _data$ConnectionHolde78, _data$ConnectionHolde79, _data$ConnectionHolde80, _data$ConnectionHolde81, _data$ConnectionHolde82, _data$ConnectionHolde83, _data$ConnectionHolde84, _data$ConnectionHolde85, _data$ConnectionHolde86, _data$cpt32;
1602
1637
  data === null || data === void 0 ? void 0 : (_data$cpt30 = data.cpt) === null || _data$cpt30 === void 0 ? void 0 : (_data$cpt30$details = _data$cpt30.details) === null || _data$cpt30$details === void 0 ? void 0 : (_data$cpt30$details$o = _data$cpt30$details.owners) === null || _data$cpt30$details$o === void 0 ? void 0 : _data$cpt30$details$o.forEach(owner => {
1603
1638
  if (owner !== null && owner !== void 0 && owner.permanentAddress) owner.correspondenceAddress = owner === null || owner === void 0 ? void 0 : owner.permanentAddress;
1604
1639
  });
1640
+ const existingDocs = (appData === null || appData === void 0 ? void 0 : (_appData$applicationD = appData.applicationData) === null || _appData$applicationD === void 0 ? void 0 : _appData$applicationD.documents) || (appData === null || appData === void 0 ? void 0 : appData.documents) || [];
1641
+ let docs = (data === null || data === void 0 ? void 0 : (_data$DocumentsRequir = data.DocumentsRequired) === null || _data$DocumentsRequir === void 0 ? void 0 : _data$DocumentsRequir.documents) || [];
1642
+ if (docs && docs.length > 0 && existingDocs && existingDocs.length > 0) {
1643
+ docs = mapExistingDocIdsToPayload(docs, existingDocs);
1644
+ }
1605
1645
  let payload = _extends({}, appData.applicationData, {
1606
1646
  propertyId: data === null || data === void 0 ? void 0 : (_data$cpt31 = data.cpt) === null || _data$cpt31 === void 0 ? void 0 : (_data$cpt31$details = _data$cpt31.details) === null || _data$cpt31$details === void 0 ? void 0 : _data$cpt31$details.propertyId,
1607
1647
  proposedTaps: (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai3 = data.ConnectionDetails) === null || _data$ConnectionDetai3 === void 0 ? void 0 : (_data$ConnectionDetai4 = _data$ConnectionDetai3[0]) === null || _data$ConnectionDetai4 === void 0 ? void 0 : _data$ConnectionDetai4.proposedTaps) && Number(data === null || data === void 0 ? void 0 : (_data$ConnectionDetai5 = data.ConnectionDetails) === null || _data$ConnectionDetai5 === void 0 ? void 0 : (_data$ConnectionDetai6 = _data$ConnectionDetai5[0]) === null || _data$ConnectionDetai6 === void 0 ? void 0 : _data$ConnectionDetai6.proposedTaps),
1608
1648
  proposedPipeSize: (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai7 = data.ConnectionDetails) === null || _data$ConnectionDetai7 === void 0 ? void 0 : (_data$ConnectionDetai8 = _data$ConnectionDetai7[0]) === null || _data$ConnectionDetai8 === void 0 ? void 0 : (_data$ConnectionDetai9 = _data$ConnectionDetai8.proposedPipeSize) === null || _data$ConnectionDetai9 === void 0 ? void 0 : _data$ConnectionDetai9.size) && Number(data === null || data === void 0 ? void 0 : (_data$ConnectionDetai0 = data.ConnectionDetails) === null || _data$ConnectionDetai0 === void 0 ? void 0 : (_data$ConnectionDetai1 = _data$ConnectionDetai0[0]) === null || _data$ConnectionDetai1 === void 0 ? void 0 : (_data$ConnectionDetai10 = _data$ConnectionDetai1.proposedPipeSize) === null || _data$ConnectionDetai10 === void 0 ? void 0 : _data$ConnectionDetai10.size),
1609
1649
  proposedWaterClosets: (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai11 = data.ConnectionDetails) === null || _data$ConnectionDetai11 === void 0 ? void 0 : (_data$ConnectionDetai12 = _data$ConnectionDetai11[0]) === null || _data$ConnectionDetai12 === void 0 ? void 0 : _data$ConnectionDetai12.proposedWaterClosets) && Number(data === null || data === void 0 ? void 0 : (_data$ConnectionDetai13 = data.ConnectionDetails) === null || _data$ConnectionDetai13 === void 0 ? void 0 : (_data$ConnectionDetai14 = _data$ConnectionDetai13[0]) === null || _data$ConnectionDetai14 === void 0 ? void 0 : _data$ConnectionDetai14.proposedWaterClosets),
1610
1650
  proposedToilets: (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai15 = data.ConnectionDetails) === null || _data$ConnectionDetai15 === void 0 ? void 0 : (_data$ConnectionDetai16 = _data$ConnectionDetai15[0]) === null || _data$ConnectionDetai16 === void 0 ? void 0 : _data$ConnectionDetai16.proposedToilets) && Number(data === null || data === void 0 ? void 0 : (_data$ConnectionDetai17 = data.ConnectionDetails) === null || _data$ConnectionDetai17 === void 0 ? void 0 : (_data$ConnectionDetai18 = _data$ConnectionDetai17[0]) === null || _data$ConnectionDetai18 === void 0 ? void 0 : _data$ConnectionDetai18.proposedToilets),
1611
- connectionHolders: !(data !== null && data !== void 0 && (_data$ConnectionHolde58 = data.ConnectionHolderDetails) !== null && _data$ConnectionHolde58 !== void 0 && (_data$ConnectionHolde59 = _data$ConnectionHolde58[0]) !== null && _data$ConnectionHolde59 !== void 0 && _data$ConnectionHolde59.sameAsOwnerDetails) ? [_extends({}, appData === null || appData === void 0 ? void 0 : (_appData$applicationD = appData.applicationData) === null || _appData$applicationD === void 0 ? void 0 : (_appData$applicationD2 = _appData$applicationD.connectionHolders) === null || _appData$applicationD2 === void 0 ? void 0 : _appData$applicationD2[0], {
1651
+ connectionHolders: !(data !== null && data !== void 0 && (_data$ConnectionHolde58 = data.ConnectionHolderDetails) !== null && _data$ConnectionHolde58 !== void 0 && (_data$ConnectionHolde59 = _data$ConnectionHolde58[0]) !== null && _data$ConnectionHolde59 !== void 0 && _data$ConnectionHolde59.sameAsOwnerDetails) ? [_extends({}, appData === null || appData === void 0 ? void 0 : (_appData$applicationD2 = appData.applicationData) === null || _appData$applicationD2 === void 0 ? void 0 : (_appData$applicationD3 = _appData$applicationD2.connectionHolders) === null || _appData$applicationD3 === void 0 ? void 0 : _appData$applicationD3[0], {
1612
1652
  correspondenceAddress: (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde60 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde60 === void 0 ? void 0 : (_data$ConnectionHolde61 = _data$ConnectionHolde60[0]) === null || _data$ConnectionHolde61 === void 0 ? void 0 : _data$ConnectionHolde61.address) || "",
1613
1653
  fatherOrHusbandName: (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde62 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde62 === void 0 ? void 0 : (_data$ConnectionHolde63 = _data$ConnectionHolde62[0]) === null || _data$ConnectionHolde63 === void 0 ? void 0 : _data$ConnectionHolde63.guardian) || "",
1614
1654
  gender: (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde64 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde64 === void 0 ? void 0 : (_data$ConnectionHolde65 = _data$ConnectionHolde64[0]) === null || _data$ConnectionHolde65 === void 0 ? void 0 : (_data$ConnectionHolde66 = _data$ConnectionHolde65.gender) === null || _data$ConnectionHolde66 === void 0 ? void 0 : _data$ConnectionHolde66.code) || "",
@@ -1627,7 +1667,7 @@ const convertEditApplicationDetails = function (data, appData, actionData) {
1627
1667
  action: actionData ? actionData : "RESUBMIT_APPLICATION"
1628
1668
  },
1629
1669
  action: actionData ? actionData : "RESUBMIT_APPLICATION",
1630
- documents: data === null || data === void 0 ? void 0 : (_data$DocumentsRequir = data.DocumentsRequired) === null || _data$DocumentsRequir === void 0 ? void 0 : _data$DocumentsRequir.documents
1670
+ documents: docs
1631
1671
  });
1632
1672
  return Promise.resolve(payload);
1633
1673
  } catch (e) {
@@ -1690,13 +1730,13 @@ const convertDisonnectApplicationData = function (data, serviceType, editByConfi
1690
1730
  };
1691
1731
  const convertDisonnectEditApplicationDetails = function (data, appData, actionData) {
1692
1732
  try {
1693
- var _data$plumberDetails7, _data$plumberDetails8, _data$plumberDetails9, _data$plumberDetails0, _data$plumberDetails1, _data$plumberDetails10, _appData$applicationD5, _appData$applicationD6, _appData$applicationD7, _data$disConnectionDe, _data$disConnectionDe2, _data$disConnectionDe3, _data$disConnectionDe4, _data$DocumentsRequir2, _data$disConnectionDe5, _data$disConnectionDe6;
1733
+ var _data$plumberDetails7, _data$plumberDetails8, _data$plumberDetails9, _data$plumberDetails0, _data$plumberDetails1, _data$plumberDetails10, _appData$applicationD6, _appData$applicationD7, _appData$applicationD8, _data$disConnectionDe, _data$disConnectionDe2, _data$disConnectionDe3, _data$disConnectionDe4, _data$DocumentsRequir2, _data$disConnectionDe5, _data$disConnectionDe6;
1694
1734
  const docs = sessionStorage.getItem("DISCONNECTION_EDIT_DOCS");
1695
1735
  const docsData = docs ? JSON.parse(docs) : "";
1696
1736
  const documentsData = [];
1697
1737
  docsData === null || docsData === void 0 ? void 0 : docsData.map(data => {
1698
- var _appData$applicationD3, _appData$applicationD4, _doc$, _doc$2;
1699
- const doc = appData === null || appData === void 0 ? void 0 : (_appData$applicationD3 = appData.applicationData) === null || _appData$applicationD3 === void 0 ? void 0 : (_appData$applicationD4 = _appData$applicationD3.documents) === null || _appData$applicationD4 === void 0 ? void 0 : _appData$applicationD4.filter(appDoc => {
1738
+ var _appData$applicationD4, _appData$applicationD5, _doc$, _doc$2;
1739
+ const doc = appData === null || appData === void 0 ? void 0 : (_appData$applicationD4 = appData.applicationData) === null || _appData$applicationD4 === void 0 ? void 0 : (_appData$applicationD5 = _appData$applicationD4.documents) === null || _appData$applicationD5 === void 0 ? void 0 : _appData$applicationD5.filter(appDoc => {
1700
1740
  var _appDoc$documentType, _appDoc$documentType$, _appDoc$documentType2, _appDoc$documentType3, _data$documentType3, _data$documentType3$s, _data$documentType4, _data$documentType4$s;
1701
1741
  return (appDoc === null || appDoc === void 0 ? void 0 : (_appDoc$documentType = appDoc.documentType) === null || _appDoc$documentType === void 0 ? void 0 : (_appDoc$documentType$ = _appDoc$documentType.split(".")) === null || _appDoc$documentType$ === void 0 ? void 0 : _appDoc$documentType$[0]) + "." + (appDoc === null || appDoc === void 0 ? void 0 : (_appDoc$documentType2 = appDoc.documentType) === null || _appDoc$documentType2 === void 0 ? void 0 : (_appDoc$documentType3 = _appDoc$documentType2.split(".")) === null || _appDoc$documentType3 === void 0 ? void 0 : _appDoc$documentType3[1]) == (data === null || data === void 0 ? void 0 : (_data$documentType3 = data.documentType) === null || _data$documentType3 === void 0 ? void 0 : (_data$documentType3$s = _data$documentType3.split(".")) === null || _data$documentType3$s === void 0 ? void 0 : _data$documentType3$s[0]) + "." + (data === null || data === void 0 ? void 0 : (_data$documentType4 = data.documentType) === null || _data$documentType4 === void 0 ? void 0 : (_data$documentType4$s = _data$documentType4.split(".")) === null || _data$documentType4$s === void 0 ? void 0 : _data$documentType4$s[1]);
1702
1742
  });
@@ -1714,7 +1754,7 @@ const convertDisonnectEditApplicationDetails = function (data, appData, actionDa
1714
1754
  licenseNo: data === null || data === void 0 ? void 0 : (_data$plumberDetails7 = data.plumberDetails) === null || _data$plumberDetails7 === void 0 ? void 0 : (_data$plumberDetails8 = _data$plumberDetails7[0]) === null || _data$plumberDetails8 === void 0 ? void 0 : _data$plumberDetails8.plumberLicenseNo,
1715
1755
  mobileNumber: data === null || data === void 0 ? void 0 : (_data$plumberDetails9 = data.plumberDetails) === null || _data$plumberDetails9 === void 0 ? void 0 : (_data$plumberDetails0 = _data$plumberDetails9[0]) === null || _data$plumberDetails0 === void 0 ? void 0 : _data$plumberDetails0.plumberMobileNo,
1716
1756
  name: data === null || data === void 0 ? void 0 : (_data$plumberDetails1 = data.plumberDetails) === null || _data$plumberDetails1 === void 0 ? void 0 : (_data$plumberDetails10 = _data$plumberDetails1[0]) === null || _data$plumberDetails10 === void 0 ? void 0 : _data$plumberDetails10.plumberName,
1717
- id: appData === null || appData === void 0 ? void 0 : (_appData$applicationD5 = appData.applicationData) === null || _appData$applicationD5 === void 0 ? void 0 : (_appData$applicationD6 = _appData$applicationD5.plumberInfo) === null || _appData$applicationD6 === void 0 ? void 0 : (_appData$applicationD7 = _appData$applicationD6[0]) === null || _appData$applicationD7 === void 0 ? void 0 : _appData$applicationD7.id
1757
+ id: appData === null || appData === void 0 ? void 0 : (_appData$applicationD6 = appData.applicationData) === null || _appData$applicationD6 === void 0 ? void 0 : (_appData$applicationD7 = _appData$applicationD6.plumberInfo) === null || _appData$applicationD7 === void 0 ? void 0 : (_appData$applicationD8 = _appData$applicationD7[0]) === null || _appData$applicationD8 === void 0 ? void 0 : _appData$applicationD8.id
1718
1758
  }];
1719
1759
  const _temp5 = (data === null || data === void 0 ? void 0 : (_data$disConnectionDe = data.disConnectionDetails) === null || _data$disConnectionDe === void 0 ? void 0 : (_data$disConnectionDe2 = _data$disConnectionDe[0]) === null || _data$disConnectionDe2 === void 0 ? void 0 : _data$disConnectionDe2.disConnectionReason) || "",
1720
1760
  _temp4 = (data === null || data === void 0 ? void 0 : (_data$disConnectionDe3 = data.disConnectionDetails) === null || _data$disConnectionDe3 === void 0 ? void 0 : (_data$disConnectionDe4 = _data$disConnectionDe3[0]) === null || _data$disConnectionDe4 === void 0 ? void 0 : _data$disConnectionDe4.disConnectionType) == "TEMPORARY" ? true : false,
@@ -1771,11 +1811,15 @@ const convertModifyApplicationDetails = function (data, appData, actionData) {
1771
1811
  var _data$activationDetai5, _data$activationDetai6, _data$activationDetai7, _data$activationDetai8;
1772
1812
  function _temp9() {
1773
1813
  function _temp7() {
1774
- var _data$DocumentsRequir3, _data$DocumentsRequir4, _data$DocumentsRequir5, _data$ConnectionHolde87, _data$ConnectionHolde88, _Digit$UserService$ge12, _Digit$UserService$ge13, _Digit$UserService$ge14, _data$DocumentsRequir6, _data$cpt33;
1814
+ var _data$DocumentsRequir3, _data$DocumentsRequir4, _data$DocumentsRequir5, _appData$applicationD9, _data$ConnectionHolde87, _data$ConnectionHolde88, _Digit$UserService$ge12, _Digit$UserService$ge13, _Digit$UserService$ge14, _data$DocumentsRequir6, _data$cpt33;
1775
1815
  if (data !== null && data !== void 0 && (_data$DocumentsRequir3 = data.DocumentsRequired) !== null && _data$DocumentsRequir3 !== void 0 && (_data$DocumentsRequir4 = _data$DocumentsRequir3.documents) !== null && _data$DocumentsRequir4 !== void 0 && _data$DocumentsRequir4.length) formData.documents = data === null || data === void 0 ? void 0 : (_data$DocumentsRequir5 = data.DocumentsRequired) === null || _data$DocumentsRequir5 === void 0 ? void 0 : _data$DocumentsRequir5.documents;else formData.documents = null;
1816
+ const existingDocs = (appData === null || appData === void 0 ? void 0 : (_appData$applicationD9 = appData.applicationData) === null || _appData$applicationD9 === void 0 ? void 0 : _appData$applicationD9.documents) || (appData === null || appData === void 0 ? void 0 : appData.documents) || [];
1817
+ if (formData.documents && formData.documents.length > 0 && existingDocs && existingDocs.length > 0) {
1818
+ formData.documents = mapExistingDocIdsToPayload(formData.documents, existingDocs);
1819
+ }
1776
1820
  if (!(data !== null && data !== void 0 && (_data$ConnectionHolde87 = data.ConnectionHolderDetails) !== null && _data$ConnectionHolde87 !== void 0 && (_data$ConnectionHolde88 = _data$ConnectionHolde87[0]) !== null && _data$ConnectionHolde88 !== void 0 && _data$ConnectionHolde88.sameAsOwnerDetails)) {
1777
- var _appData$applicationD8, _appData$applicationD9, _data$ConnectionHolde89, _data$ConnectionHolde90, _data$ConnectionHolde91, _data$ConnectionHolde92, _data$ConnectionHolde93, _data$ConnectionHolde94, _data$ConnectionHolde95, _data$ConnectionHolde96, _data$ConnectionHolde97, _data$ConnectionHolde98, _data$ConnectionHolde99, _data$ConnectionHolde100, _data$ConnectionHolde101, _data$ConnectionHolde102, _data$ConnectionHolde103, _data$ConnectionHolde104, _data$ConnectionHolde105, _data$ConnectionHolde106, _data$ConnectionHolde107, _data$ConnectionHolde108, _data$ConnectionHolde109, _data$ConnectionHolde110, _data$ConnectionHolde111, _data$ConnectionHolde112, _data$ConnectionHolde113, _data$ConnectionHolde114, _data$ConnectionHolde115;
1778
- formData.connectionHolders = [_extends({}, appData === null || appData === void 0 ? void 0 : (_appData$applicationD8 = appData.applicationData) === null || _appData$applicationD8 === void 0 ? void 0 : (_appData$applicationD9 = _appData$applicationD8.connectionHolders) === null || _appData$applicationD9 === void 0 ? void 0 : _appData$applicationD9[0], {
1821
+ var _appData$applicationD0, _appData$applicationD1, _data$ConnectionHolde89, _data$ConnectionHolde90, _data$ConnectionHolde91, _data$ConnectionHolde92, _data$ConnectionHolde93, _data$ConnectionHolde94, _data$ConnectionHolde95, _data$ConnectionHolde96, _data$ConnectionHolde97, _data$ConnectionHolde98, _data$ConnectionHolde99, _data$ConnectionHolde100, _data$ConnectionHolde101, _data$ConnectionHolde102, _data$ConnectionHolde103, _data$ConnectionHolde104, _data$ConnectionHolde105, _data$ConnectionHolde106, _data$ConnectionHolde107, _data$ConnectionHolde108, _data$ConnectionHolde109, _data$ConnectionHolde110, _data$ConnectionHolde111, _data$ConnectionHolde112, _data$ConnectionHolde113, _data$ConnectionHolde114, _data$ConnectionHolde115;
1822
+ formData.connectionHolders = [_extends({}, appData === null || appData === void 0 ? void 0 : (_appData$applicationD0 = appData.applicationData) === null || _appData$applicationD0 === void 0 ? void 0 : (_appData$applicationD1 = _appData$applicationD0.connectionHolders) === null || _appData$applicationD1 === void 0 ? void 0 : _appData$applicationD1[0], {
1779
1823
  correspondenceAddress: (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde89 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde89 === void 0 ? void 0 : (_data$ConnectionHolde90 = _data$ConnectionHolde89[0]) === null || _data$ConnectionHolde90 === void 0 ? void 0 : _data$ConnectionHolde90.address) || "",
1780
1824
  fatherOrHusbandName: (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde91 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde91 === void 0 ? void 0 : (_data$ConnectionHolde92 = _data$ConnectionHolde91[0]) === null || _data$ConnectionHolde92 === void 0 ? void 0 : _data$ConnectionHolde92.guardian) || "",
1781
1825
  gender: (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde93 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde93 === void 0 ? void 0 : (_data$ConnectionHolde94 = _data$ConnectionHolde93[0]) === null || _data$ConnectionHolde94 === void 0 ? void 0 : (_data$ConnectionHolde95 = _data$ConnectionHolde94.gender) === null || _data$ConnectionHolde95 === void 0 ? void 0 : _data$ConnectionHolde95.code) || "",
@@ -7746,7 +7790,7 @@ var lodash = createCommonjsModule(function (module, exports) {
7746
7790
  });
7747
7791
 
7748
7792
  const WSApplication = _ref => {
7749
- var _user$info, _user$info$userName, _user$info2, _user$info3, _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$applicat6, _application$applicat7, _application$connecti, _application$property, _application$property2, _application$property3, _application$property4, _application$property5, _application$property6, _application$applicat8, _application$connecti2, _application$connecti3, _PTData$Properties, _PTData$Properties$, _PTData$Properties$$o, _application$applicat9, _application$applicat0;
7793
+ var _user$info, _user$info$userName, _user$info2, _user$info3, _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$applicat6, _application$connecti, _application$property, _application$property2, _application$property3, _application$property4, _application$property5, _application$property6, _application$applicat7, _application$connecti2, _application$connecti3, _PTData$Properties, _PTData$Properties$, _PTData$Properties$$o, _application$applicat8, _application$applicat9;
7750
7794
  let application = _ref.application;
7751
7795
  const _useTranslation = reactI18next.useTranslation(),
7752
7796
  t = _useTranslation.t;
@@ -7777,9 +7821,10 @@ const WSApplication = _ref => {
7777
7821
  privacy: Digit.Utils.getPrivacyObject()
7778
7822
  }),
7779
7823
  PTData = _Digit$Hooks$pt$usePr.data;
7780
- const businessService = application !== null && application !== void 0 && (_application$applicat2 = application.applicationNo) !== null && _application$applicat2 !== void 0 && _application$applicat2.includes("SW") ? application !== null && application !== void 0 && (_application$applicat3 = application.applicationNo) !== null && _application$applicat3 !== void 0 && _application$applicat3.includes("DC") ? "SW" : application !== null && application !== void 0 && (_application$applicat4 = application.applicationNo) !== null && _application$applicat4 !== void 0 && _application$applicat4.includes("MUT") ? "SW.MUTATION" : "SW.ONE_TIME_FEE" : application !== null && application !== void 0 && (_application$applicat5 = application.applicationNo) !== null && _application$applicat5 !== void 0 && _application$applicat5.includes("DC") ? "WS" : application !== null && application !== void 0 && (_application$applicat6 = application.applicationNo) !== null && _application$applicat6 !== void 0 && _application$applicat6.includes("MUT") ? "WS.MUTATION" : "WS.ONE_TIME_FEE";
7824
+ const isMutation = application === null || application === void 0 ? void 0 : (_application$applicat2 = application.applicationType) === null || _application$applicat2 === void 0 ? void 0 : _application$applicat2.includes("MUTATION");
7825
+ const businessService = application !== null && application !== void 0 && (_application$applicat3 = application.applicationNo) !== null && _application$applicat3 !== void 0 && _application$applicat3.includes("SW") ? application !== null && application !== void 0 && (_application$applicat4 = application.applicationNo) !== null && _application$applicat4 !== void 0 && _application$applicat4.includes("DC") ? "SW" : isMutation ? "SW.MUTATION" : "SW.ONE_TIME_FEE" : application !== null && application !== void 0 && (_application$applicat5 = application.applicationNo) !== null && _application$applicat5 !== void 0 && _application$applicat5.includes("DC") ? "WS" : isMutation ? "WS.MUTATION" : "WS.ONE_TIME_FEE";
7781
7826
  const fetchBillParams = {
7782
- consumerCode: application !== null && application !== void 0 && (_application$applicat7 = application.applicationNo) !== null && _application$applicat7 !== void 0 && _application$applicat7.includes("DC") ? application === null || application === void 0 ? void 0 : application.connectionNo : application === null || application === void 0 ? void 0 : application.connectionNo
7827
+ consumerCode: application !== null && application !== void 0 && (_application$applicat6 = application.applicationNo) !== null && _application$applicat6 !== void 0 && _application$applicat6.includes("DC") ? application === null || application === void 0 ? void 0 : application.connectionNo : application === null || application === void 0 ? void 0 : application.connectionNo
7783
7828
  };
7784
7829
  if (isLoading) {
7785
7830
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
@@ -7834,8 +7879,8 @@ const WSApplication = _ref => {
7834
7879
  label: t("WS_VIEW_DETAILS_LABEL")
7835
7880
  })), (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
7836
7881
  to: {
7837
- pathname: "/digit-ui/citizen/payment/my-bills/" + businessService + "/" + (application !== null && application !== void 0 && (_application$applicat8 = application.applicationNo) !== null && _application$applicat8 !== void 0 && _application$applicat8.includes("DC") ? stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") : stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+")),
7838
- search: "?workflow=WNS&tenantId=" + (application === null || application === void 0 ? void 0 : application.tenantId) + "&ConsumerName=" + ((application === null || application === void 0 ? void 0 : (_application$connecti2 = application.connectionHolders) === null || _application$connecti2 === void 0 ? void 0 : _application$connecti2.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$connecti3 = application.connectionHolders) === null || _application$connecti3 === void 0 ? void 0 : _application$connecti3.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : (_PTData$Properties$$o = _PTData$Properties$.owners) === null || _PTData$Properties$$o === void 0 ? void 0 : _PTData$Properties$$o.map(owner => owner.name).join(","))) + "&isDisoconnectFlow=" + (application !== null && application !== void 0 && (_application$applicat9 = application.applicationNo) !== null && _application$applicat9 !== void 0 && _application$applicat9.includes("DC") ? true : false) + "&consumerCode=" + (application !== null && application !== void 0 && (_application$applicat0 = application.applicationNo) !== null && _application$applicat0 !== void 0 && _application$applicat0.includes("DC") ? application === null || application === void 0 ? void 0 : application.connectionNo : application === null || application === void 0 ? void 0 : application.applicationNo),
7882
+ pathname: "/digit-ui/citizen/payment/my-bills/" + businessService + "/" + (application !== null && application !== void 0 && (_application$applicat7 = application.applicationNo) !== null && _application$applicat7 !== void 0 && _application$applicat7.includes("DC") ? stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") : stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+")),
7883
+ search: "?workflow=WNS&tenantId=" + (application === null || application === void 0 ? void 0 : application.tenantId) + "&ConsumerName=" + ((application === null || application === void 0 ? void 0 : (_application$connecti2 = application.connectionHolders) === null || _application$connecti2 === void 0 ? void 0 : _application$connecti2.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$connecti3 = application.connectionHolders) === null || _application$connecti3 === void 0 ? void 0 : _application$connecti3.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : (_PTData$Properties$$o = _PTData$Properties$.owners) === null || _PTData$Properties$$o === void 0 ? void 0 : _PTData$Properties$$o.map(owner => owner.name).join(","))) + "&isDisoconnectFlow=" + (application !== null && application !== void 0 && (_application$applicat8 = application.applicationNo) !== null && _application$applicat8 !== void 0 && _application$applicat8.includes("DC") ? true : false) + "&consumerCode=" + (application !== null && application !== void 0 && (_application$applicat9 = application.applicationNo) !== null && _application$applicat9 !== void 0 && _application$applicat9.includes("DC") ? application === null || application === void 0 ? void 0 : application.connectionNo : application === null || application === void 0 ? void 0 : application.applicationNo),
7839
7884
  state: {}
7840
7885
  }
7841
7886
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -8038,15 +8083,17 @@ const WSMyApplications = () => {
8038
8083
  Header: t("MAKE_PAYMENT"),
8039
8084
  disableSortBy: true,
8040
8085
  Cell: _ref8 => {
8041
- var _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$connecti, _application$connecti2, _application$property, _application$property2, _application$applicat5;
8086
+ var _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$connecti, _application$property, _application$property2, _application$applicat6, _application$applicat7;
8042
8087
  let row = _ref8.row;
8043
8088
  const application = row.original;
8044
- const businessService = application !== null && application !== void 0 && (_application$applicat = application.applicationNo) !== null && _application$applicat !== void 0 && _application$applicat.includes("SW") ? application !== null && application !== void 0 && (_application$applicat2 = application.applicationNo) !== null && _application$applicat2 !== void 0 && _application$applicat2.includes("DC") ? "SW" : "SW.ONE_TIME_FEE" : application !== null && application !== void 0 && (_application$applicat3 = application.applicationNo) !== null && _application$applicat3 !== void 0 && _application$applicat3.includes("DC") ? "WS" : "WS.ONE_TIME_FEE";
8089
+ const isMutation = application === null || application === void 0 ? void 0 : (_application$applicat = application.applicationType) === null || _application$applicat === void 0 ? void 0 : _application$applicat.includes("MUTATION");
8090
+ const businessService = application !== null && application !== void 0 && (_application$applicat2 = application.applicationNo) !== null && _application$applicat2 !== void 0 && _application$applicat2.includes("SW") ? application !== null && application !== void 0 && (_application$applicat3 = application.applicationNo) !== null && _application$applicat3 !== void 0 && _application$applicat3.includes("DC") ? "SW" : isMutation ? "SW.MUTATION" : "SW.ONE_TIME_FEE" : application !== null && application !== void 0 && (_application$applicat4 = application.applicationNo) !== null && _application$applicat4 !== void 0 && _application$applicat4.includes("DC") ? "WS" : isMutation ? "WS.MUTATION" : "WS.ONE_TIME_FEE";
8045
8091
  return (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement("span", {
8046
8092
  className: "link"
8047
8093
  }, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
8048
8094
  to: {
8049
- pathname: "/digit-ui/citizen/payment/my-bills/" + businessService + "/" + (application !== null && application !== void 0 && (_application$applicat4 = application.applicationNo) !== null && _application$applicat4 !== void 0 && _application$applicat4.includes("DC") ? stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") : stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+")) + "?workflow=WNS&tenantId=" + (application === null || application === void 0 ? void 0 : application.tenantId) + "&ConsumerName=" + ((application === null || application === void 0 ? void 0 : (_application$connecti = application.connectionHolders) === null || _application$connecti === void 0 ? void 0 : _application$connecti.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$connecti2 = application.connectionHolders) === null || _application$connecti2 === void 0 ? void 0 : _application$connecti2.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$property = application.property) === null || _application$property === void 0 ? void 0 : (_application$property2 = _application$property.owners) === null || _application$property2 === void 0 ? void 0 : _application$property2.map(owner => owner.name).join(","))) + "&isDisoconnectFlow=" + (application !== null && application !== void 0 && (_application$applicat5 = application.applicationNo) !== null && _application$applicat5 !== void 0 && _application$applicat5.includes("DC") ? true : false),
8095
+ pathname: "/digit-ui/citizen/payment/my-bills/" + businessService + "/" + (application !== null && application !== void 0 && (_application$applicat5 = application.applicationNo) !== null && _application$applicat5 !== void 0 && _application$applicat5.includes("DC") ? stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") : stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+")),
8096
+ search: "?workflow=WNS&tenantId=" + (application === null || application === void 0 ? void 0 : application.tenantId) + "&ConsumerName=" + ((application === null || application === void 0 ? void 0 : (_application$connecti = application.connectionHolders) === null || _application$connecti === void 0 ? void 0 : _application$connecti.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$property = application.property) === null || _application$property === void 0 ? void 0 : (_application$property2 = _application$property.owners) === null || _application$property2 === void 0 ? void 0 : _application$property2.map(owner => owner.name).join(","))) + "&isDisoconnectFlow=" + (application !== null && application !== void 0 && (_application$applicat6 = application.applicationNo) !== null && _application$applicat6 !== void 0 && _application$applicat6.includes("DC") ? true : false) + "&consumerCode=" + (application !== null && application !== void 0 && (_application$applicat7 = application.applicationNo) !== null && _application$applicat7 !== void 0 && _application$applicat7.includes("DC") ? application === null || application === void 0 ? void 0 : application.connectionNo : application === null || application === void 0 ? void 0 : application.applicationNo),
8050
8097
  state: {
8051
8098
  fromMyApplications: true
8052
8099
  }
@@ -11271,7 +11318,9 @@ const App$1 = _ref2 => {
11271
11318
  component: WSEditApplicationByConfig
11272
11319
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
11273
11320
  path: path + "/disconnection-details",
11274
- component: WSGetDisconnectionDetails
11321
+ component: () => /*#__PURE__*/React__default.createElement(digitUiReactComponents.LayoutWrapper, {
11322
+ layoutClass: "action"
11323
+ }, /*#__PURE__*/React__default.createElement(WSGetDisconnectionDetails, null))
11275
11324
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
11276
11325
  path: path + "/water/bill-amendment/inbox",
11277
11326
  component: props => /*#__PURE__*/React__default.createElement(WSBillIAmendMentInbox, _extends({}, props, {
@@ -18201,6 +18250,7 @@ function SelectDocument(_ref2) {
18201
18250
  fileStoreId: uploadedFile,
18202
18251
  fileName: (file === null || file === void 0 ? void 0 : file.name) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || "",
18203
18252
  documentUid: documentUid,
18253
+ documentNumber: documentUid,
18204
18254
  i18nKey: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
18205
18255
  id: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.id,
18206
18256
  status: "ACTIVE"
@@ -21115,22 +21165,18 @@ const WSDisconnectionForm = _ref => {
21115
21165
  config: config,
21116
21166
  onSelect: handleSubmit,
21117
21167
  onSkip: onSkip,
21118
- t: t
21119
- }, /*#__PURE__*/React__default.createElement("div", {
21120
- style: {
21121
- padding: "0px 10px 10px 10px"
21122
- }
21123
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, null, isReSubmit ? t("RESUBMIT_DISCONNECTION_FORM") : t("WS_APPLICATION_FORM")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
21168
+ t: t,
21169
+ title: isReSubmit ? t("RESUBMIT_DISCONNECTION_FORM") : t("WS_APPLICATION_FORM")
21170
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
21124
21171
  key: t("PDF_STATIC_LABEL_CONSUMER_NUMBER_LABEL"),
21125
21172
  label: "" + t("PDF_STATIC_LABEL_CONSUMER_NUMBER_LABEL"),
21126
21173
  text: applicationData === null || applicationData === void 0 ? void 0 : applicationData.connectionNo,
21127
21174
  className: "border-none"
21128
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
21129
- className: "card-label-smaller",
21130
- style: {
21131
- display: "inline"
21132
- }
21133
- }, t("WS_DISCONNECTION_TYPE") + "*"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.RadioButtons, {
21175
+ })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
21176
+ className: "card-label-smaller"
21177
+ }, t("WS_DISCONNECTION_TYPE") + "*"), /*#__PURE__*/React__default.createElement("div", {
21178
+ className: "field"
21179
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.RadioButtons, {
21134
21180
  t: t,
21135
21181
  options: disconnectionTypeList,
21136
21182
  optionsKey: "i18nKey",
@@ -21145,11 +21191,8 @@ const WSDisconnectionForm = _ref => {
21145
21191
  inputStyle: isMobile ? {
21146
21192
  marginLeft: "unset"
21147
21193
  } : {}
21148
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
21149
- className: "card-label-smaller",
21150
- style: {
21151
- display: "inline"
21152
- }
21194
+ }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
21195
+ className: "card-label-smaller"
21153
21196
  }, t("WS_DISCONNECTION_PROPOSED_DATE") + "*", /*#__PURE__*/React__default.createElement("div", {
21154
21197
  className: "tooltip",
21155
21198
  style: {
@@ -21171,11 +21214,8 @@ const WSDisconnectionForm = _ref => {
21171
21214
  date: date
21172
21215
  }));
21173
21216
  }
21174
- })), ((_disconnectionData$ty4 = disconnectionData.type) === null || _disconnectionData$ty4 === void 0 ? void 0 : (_disconnectionData$ty5 = _disconnectionData$ty4.value) === null || _disconnectionData$ty5 === void 0 ? void 0 : _disconnectionData$ty5.code) === "Temporary" ? /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
21175
- className: "card-label-smaller",
21176
- style: {
21177
- display: "inline"
21178
- }
21217
+ }))), ((_disconnectionData$ty4 = disconnectionData.type) === null || _disconnectionData$ty4 === void 0 ? void 0 : (_disconnectionData$ty5 = _disconnectionData$ty4.value) === null || _disconnectionData$ty5 === void 0 ? void 0 : _disconnectionData$ty5.code) === "Temporary" ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
21218
+ className: "card-label-smaller"
21179
21219
  }, t("WS_DISCONNECTION_PROPOSED_END_DATE") + "*", /*#__PURE__*/React__default.createElement("div", {
21180
21220
  className: "tooltip",
21181
21221
  style: {
@@ -21198,11 +21238,10 @@ const WSDisconnectionForm = _ref => {
21198
21238
  }));
21199
21239
  }
21200
21240
  }))) : "", /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
21201
- className: "card-label-smaller",
21202
- style: {
21203
- display: "inline"
21204
- }
21205
- }, t("WS_DISCONNECTION_REASON") + "*"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
21241
+ className: "card-label-smaller"
21242
+ }, t("WS_DISCONNECTION_REASON") + "*"), /*#__PURE__*/React__default.createElement("div", {
21243
+ className: "field"
21244
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
21206
21245
  option: disconnectionReasonList,
21207
21246
  isMandatory: false,
21208
21247
  optionKey: "i18nKey",
@@ -21215,7 +21254,14 @@ const WSDisconnectionForm = _ref => {
21215
21254
  code: "reason",
21216
21255
  value: e
21217
21256
  })
21218
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
21257
+ }))), /*#__PURE__*/React__default.createElement("div", {
21258
+ style: {
21259
+ display: "flex",
21260
+ justifyContent: "flex-end",
21261
+ width: "100%",
21262
+ gridColumn: "1 / -1"
21263
+ }
21264
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
21219
21265
  label: t("CS_COMMON_NEXT"),
21220
21266
  onSubmit: () => {
21221
21267
  var _disconnectionData$ty6, _disconnectionData$ty7;
@@ -21243,11 +21289,11 @@ const WSDisconnectionForm = _ref => {
21243
21289
  }
21244
21290
  },
21245
21291
  disabled: (disconnectionData === null || disconnectionData === void 0 ? void 0 : (_disconnectionData$re5 = disconnectionData.reason) === null || _disconnectionData$re5 === void 0 ? void 0 : _disconnectionData$re5.value) === "" || (disconnectionData === null || disconnectionData === void 0 ? void 0 : disconnectionData.reason) === "" || (disconnectionData === null || disconnectionData === void 0 ? void 0 : disconnectionData.date) === "" || (disconnectionData === null || disconnectionData === void 0 ? void 0 : disconnectionData.type) === "" ? true : false
21246
- }), error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
21292
+ })), error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
21247
21293
  error: (error === null || error === void 0 ? void 0 : error.key) === "error" ? true : false,
21248
21294
  label: t(error === null || error === void 0 ? void 0 : error.message),
21249
21295
  onClose: () => setError(null)
21250
- })))));
21296
+ }))));
21251
21297
  }
21252
21298
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormStep, {
21253
21299
  config: config,
@@ -22008,7 +22054,7 @@ function WSDisconnectionDocumentsForm(_ref) {
22008
22054
  t: t,
22009
22055
  config: config,
22010
22056
  onSelect: handleSubmit
22011
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, null, t("WS_DISCONNECTION_UPLOAD_DOCUMENTS")), wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Disconnection = wsDocs.DisconnectionDocuments) === null || _wsDocs$Disconnection === void 0 ? void 0 : _wsDocs$Disconnection.map((document, index) => {
22057
+ }, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Disconnection = wsDocs.DisconnectionDocuments) === null || _wsDocs$Disconnection === void 0 ? void 0 : _wsDocs$Disconnection.map((document, index) => {
22012
22058
  return /*#__PURE__*/React__default.createElement(SelectDocument$2, {
22013
22059
  key: index,
22014
22060
  document: document,
@@ -22019,20 +22065,28 @@ function WSDisconnectionDocumentsForm(_ref) {
22019
22065
  documents: documents,
22020
22066
  setCheckRequiredFields: setCheckRequiredFields
22021
22067
  });
22022
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
22068
+ }), /*#__PURE__*/React__default.createElement("div", {
22069
+ style: {
22070
+ display: "flex",
22071
+ justifyContent: "flex-end",
22072
+ width: "100%",
22073
+ gridColumn: "1 / -1",
22074
+ marginTop: "1rem"
22075
+ }
22076
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
22023
22077
  label: t("CS_COMMON_NEXT"),
22024
22078
  onSubmit: () => {
22025
22079
  history.push(match.path.replace("documents-upload", "check"));
22026
22080
  },
22027
22081
  disabled: documents.length < 2 ? true : false
22028
- }), error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
22082
+ })), error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
22029
22083
  error: (error === null || error === void 0 ? void 0 : error.key) === "error" ? true : false,
22030
22084
  label: t(error === null || error === void 0 ? void 0 : error.message),
22031
22085
  onClose: () => setError(null)
22032
22086
  })));
22033
22087
  }
22034
22088
  function SelectDocument$2(_ref2) {
22035
- var _doc$dropdownData;
22089
+ var _doc$dropdownData, _selectedDocument$cod2, _selectedDocument$cod3, _selectedDocument$cod4, _selectedDocument$cod5, _selectedDocument$cod6, _selectedDocument$cod7, _selectedDocument$cod8, _selectedDocument$cod9, _selectedDocument$cod0, _selectedDocument$cod1, _selectedDocument$cod10, _selectedDocument$cod11, _selectedDocument$cod12, _selectedDocument$cod13, _selectedDocument$cod14, _selectedDocument$cod15;
22036
22090
  let t = _ref2.t,
22037
22091
  key = _ref2.key,
22038
22092
  doc = _ref2.document,
@@ -22059,6 +22113,32 @@ function SelectDocument$2(_ref2) {
22059
22113
  const _useState6 = React.useState(() => (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileStoreId) || null),
22060
22114
  uploadedFile = _useState6[0],
22061
22115
  setUploadedFile = _useState6[1];
22116
+ const _useState7 = React.useState(() => filteredDocument !== null && filteredDocument !== void 0 && filteredDocument.documentUid && (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentUid) !== (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileStoreId) ? filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentUid : ""),
22117
+ documentNumber = _useState7[0],
22118
+ setDocumentNumber = _useState7[1];
22119
+ const _useState8 = React.useState(null),
22120
+ docNumberError = _useState8[0],
22121
+ setDocNumberError = _useState8[1];
22122
+ const validateDocumentNumber = (value, docTypeCode, isReq, hasFile) => {
22123
+ if (!isReq && !hasFile && (!value || !value.trim())) return null;
22124
+ if (!value || !value.trim()) return t("WS_DOCUMENT_NUMBER_REQUIRED") || "Document number is required";
22125
+ const trimmed = value.trim();
22126
+ const upperCode = (docTypeCode || "").toUpperCase();
22127
+ if (upperCode.includes("AADHAAR") || upperCode.includes("AADHAR")) {
22128
+ if (!/^\d{12}$/.test(trimmed)) return t("WS_AADHAAR_VALIDATION_ERROR") || "Aadhaar number must be exactly 12 digits";
22129
+ } else if (upperCode.includes("PAN")) {
22130
+ if (!/^[A-Z]{5}[0-9]{4}[A-Z]{1}$/.test(trimmed.toUpperCase())) return t("WS_PAN_VALIDATION_ERROR") || "PAN must be in format ABCDE1234F";
22131
+ } else if (upperCode.includes("VOTER") || upperCode.includes("VOTERID")) {
22132
+ if (!/^[A-Z]{3}\d{7}$/.test(trimmed.toUpperCase())) return t("WS_VOTERID_VALIDATION_ERROR") || "Voter ID must be in format ABC1234567";
22133
+ } else if (upperCode.includes("DRIVING") || upperCode.includes("DRVLC")) {
22134
+ if (!/^[A-Z]{2}\d{13}$/.test(trimmed.toUpperCase())) return t("WS_DRIVING_LICENSE_VALIDATION_ERROR") || "Driving License must be 15 characters (e.g. MH1420110012345)";
22135
+ } else if (upperCode.includes("PASSPORT")) {
22136
+ if (!/^[A-Z]{1}\d{7}$/.test(trimmed.toUpperCase())) return t("WS_PASSPORT_VALIDATION_ERROR") || "Passport must be 8 characters (e.g. A1234567)";
22137
+ } else {
22138
+ if (trimmed.length < 3) return t("WS_DOC_NO_MIN_LENGTH") || "Document number must be at least 3 characters";
22139
+ }
22140
+ return null;
22141
+ };
22062
22142
  const handleSelectDocument = value => setSelectedDocument(value);
22063
22143
  function selectfile(e) {
22064
22144
  setFile(e.target.files[0]);
@@ -22069,18 +22149,24 @@ function SelectDocument$2(_ref2) {
22069
22149
  const filteredDocumentsByDocumentType = prev === null || prev === void 0 ? void 0 : prev.filter(item => (item === null || item === void 0 ? void 0 : item.documentType) !== (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code));
22070
22150
  if ((uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.length) === 0 || uploadedFile === null) return filteredDocumentsByDocumentType;
22071
22151
  const filteredDocumentsByFileStoreId = filteredDocumentsByDocumentType === null || filteredDocumentsByDocumentType === void 0 ? void 0 : filteredDocumentsByDocumentType.filter(item => (item === null || item === void 0 ? void 0 : item.fileStoreId) !== uploadedFile);
22152
+ const err = validateDocumentNumber(documentNumber, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, true, !!uploadedFile);
22153
+ setDocNumberError(err);
22154
+ if (err) {
22155
+ return filteredDocumentsByFileStoreId;
22156
+ }
22072
22157
  return [...filteredDocumentsByFileStoreId, {
22073
22158
  documentType: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
22074
22159
  fileStoreId: uploadedFile,
22075
22160
  id: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.id,
22076
22161
  i18nKey: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
22077
- documentUid: selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.documentUid ? selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.documentUid : uploadedFile,
22162
+ documentUid: documentNumber ? documentNumber : selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.documentUid ? selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.documentUid : uploadedFile,
22163
+ documentNumber: documentNumber ? documentNumber : selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.documentNumber ? selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.documentNumber : "",
22078
22164
  fileName: (file === null || file === void 0 ? void 0 : file.name) || "",
22079
22165
  status: "ACTIVE"
22080
22166
  }];
22081
22167
  });
22082
22168
  }
22083
- }, [uploadedFile, selectedDocument]);
22169
+ }, [uploadedFile, selectedDocument, documentNumber]);
22084
22170
  React.useEffect(() => {
22085
22171
  (function () {
22086
22172
  try {
@@ -22128,27 +22214,109 @@ function SelectDocument$2(_ref2) {
22128
22214
  }, [file]);
22129
22215
  return /*#__PURE__*/React__default.createElement("div", {
22130
22216
  style: {
22131
- marginBottom: "24px"
22217
+ gridColumn: "span 2",
22218
+ display: "grid",
22219
+ gridTemplateColumns: "repeat(2, minmax(0, 1fr))",
22220
+ gap: "20px",
22221
+ width: "100%",
22222
+ marginBottom: "20px"
22132
22223
  }
22133
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t(doc === null || doc === void 0 ? void 0 : doc.i18nKey) + "*"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
22224
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
22225
+ className: "card-label-smaller",
22226
+ style: {
22227
+ marginBottom: "8px"
22228
+ }
22229
+ }, t(doc === null || doc === void 0 ? void 0 : doc.i18nKey) + "*"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
22134
22230
  t: t,
22135
22231
  isMandatory: false,
22136
22232
  option: doc === null || doc === void 0 ? void 0 : doc.dropdownData,
22137
22233
  selected: selectedDocument,
22138
22234
  optionKey: "i18nKey",
22139
22235
  select: handleSelectDocument
22140
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
22236
+ })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
22237
+ className: "card-label-smaller",
22238
+ style: {
22239
+ marginBottom: "8px"
22240
+ }
22241
+ }, t(doc === null || doc === void 0 ? void 0 : doc.i18nKey) + " Document Number"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
22242
+ type: "text",
22243
+ value: documentNumber,
22244
+ onChange: e => {
22245
+ var _selectedDocument$cod;
22246
+ let val = e.target.value;
22247
+ const upperCode = (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod = selectedDocument.code) === null || _selectedDocument$cod === void 0 ? void 0 : _selectedDocument$cod.toUpperCase()) || "";
22248
+ const maxLen = upperCode.includes("AADHAAR") || upperCode.includes("AADHAR") ? 12 : upperCode.includes("PAN") ? 10 : upperCode.includes("VOTER") || upperCode.includes("VOTERID") ? 10 : upperCode.includes("DRIVING") || upperCode.includes("DRVLC") ? 15 : upperCode.includes("PASSPORT") ? 8 : 64;
22249
+ if (val.length > maxLen) {
22250
+ val = val.substring(0, maxLen);
22251
+ }
22252
+ setDocumentNumber(val);
22253
+ setDocNumberError(null);
22254
+ },
22255
+ onBlur: () => {
22256
+ setDocNumberError(validateDocumentNumber(documentNumber, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, true, !!uploadedFile));
22257
+ },
22258
+ placeholder: t("WS_DOCUMENT_NO_PLACEHOLDER") || "Enter Document Number",
22259
+ style: docNumberError ? {
22260
+ border: "1px solid #d32f2f"
22261
+ } : {},
22262
+ maxLength: selectedDocument !== null && selectedDocument !== void 0 && (_selectedDocument$cod2 = selectedDocument.code) !== null && _selectedDocument$cod2 !== void 0 && _selectedDocument$cod2.toUpperCase().includes("AADHAAR") || selectedDocument !== null && selectedDocument !== void 0 && (_selectedDocument$cod3 = selectedDocument.code) !== null && _selectedDocument$cod3 !== void 0 && _selectedDocument$cod3.toUpperCase().includes("AADHAR") ? 12 : selectedDocument !== null && selectedDocument !== void 0 && (_selectedDocument$cod4 = selectedDocument.code) !== null && _selectedDocument$cod4 !== void 0 && _selectedDocument$cod4.toUpperCase().includes("PAN") ? 10 : selectedDocument !== null && selectedDocument !== void 0 && (_selectedDocument$cod5 = selectedDocument.code) !== null && _selectedDocument$cod5 !== void 0 && _selectedDocument$cod5.toUpperCase().includes("VOTER") || selectedDocument !== null && selectedDocument !== void 0 && (_selectedDocument$cod6 = selectedDocument.code) !== null && _selectedDocument$cod6 !== void 0 && _selectedDocument$cod6.toUpperCase().includes("VOTERID") ? 10 : selectedDocument !== null && selectedDocument !== void 0 && (_selectedDocument$cod7 = selectedDocument.code) !== null && _selectedDocument$cod7 !== void 0 && _selectedDocument$cod7.toUpperCase().includes("DRIVING") || selectedDocument !== null && selectedDocument !== void 0 && (_selectedDocument$cod8 = selectedDocument.code) !== null && _selectedDocument$cod8 !== void 0 && _selectedDocument$cod8.toUpperCase().includes("DRVLC") ? 15 : selectedDocument !== null && selectedDocument !== void 0 && (_selectedDocument$cod9 = selectedDocument.code) !== null && _selectedDocument$cod9 !== void 0 && _selectedDocument$cod9.toUpperCase().includes("PASSPORT") ? 8 : 64
22263
+ }), docNumberError && /*#__PURE__*/React__default.createElement("div", {
22264
+ style: {
22265
+ fontSize: "12px",
22266
+ color: "#d32f2f",
22267
+ marginTop: "4px"
22268
+ }
22269
+ }, docNumberError), ((selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod0 = selectedDocument.code) === null || _selectedDocument$cod0 === void 0 ? void 0 : _selectedDocument$cod0.toUpperCase().includes("AADHAAR")) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod1 = selectedDocument.code) === null || _selectedDocument$cod1 === void 0 ? void 0 : _selectedDocument$cod1.toUpperCase().includes("AADHAR"))) && !docNumberError && /*#__PURE__*/React__default.createElement("div", {
22270
+ style: {
22271
+ fontSize: "11px",
22272
+ color: "#000000",
22273
+ marginTop: "4px"
22274
+ }
22275
+ }, t("WS_AADHAAR_VALIDATION_ERROR") || "Format: 12-digit numeric (e.g. 123456789012)"), (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod10 = selectedDocument.code) === null || _selectedDocument$cod10 === void 0 ? void 0 : _selectedDocument$cod10.toUpperCase().includes("PAN")) && !docNumberError && /*#__PURE__*/React__default.createElement("div", {
22276
+ style: {
22277
+ fontSize: "11px",
22278
+ color: "#000000",
22279
+ marginTop: "4px"
22280
+ }
22281
+ }, t("WS_PAN_VALIDATION_ERROR") || "Format: ABCDE1234F"), ((selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod11 = selectedDocument.code) === null || _selectedDocument$cod11 === void 0 ? void 0 : _selectedDocument$cod11.toUpperCase().includes("VOTER")) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod12 = selectedDocument.code) === null || _selectedDocument$cod12 === void 0 ? void 0 : _selectedDocument$cod12.toUpperCase().includes("VOTERID"))) && !docNumberError && /*#__PURE__*/React__default.createElement("div", {
22282
+ style: {
22283
+ fontSize: "11px",
22284
+ color: "#000000",
22285
+ marginTop: "4px"
22286
+ }
22287
+ }, t("WS_VOTERID_VALIDATION_ERROR") || "Format: ABC1234567"), ((selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod13 = selectedDocument.code) === null || _selectedDocument$cod13 === void 0 ? void 0 : _selectedDocument$cod13.toUpperCase().includes("DRIVING")) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod14 = selectedDocument.code) === null || _selectedDocument$cod14 === void 0 ? void 0 : _selectedDocument$cod14.toUpperCase().includes("DRVLC"))) && !docNumberError && /*#__PURE__*/React__default.createElement("div", {
22288
+ style: {
22289
+ fontSize: "11px",
22290
+ color: "#000000",
22291
+ marginTop: "4px"
22292
+ }
22293
+ }, t("WS_DRIVING_LICENSE_VALIDATION_ERROR") || "Format: MH1420110012345"), (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod15 = selectedDocument.code) === null || _selectedDocument$cod15 === void 0 ? void 0 : _selectedDocument$cod15.toUpperCase().includes("PASSPORT")) && !docNumberError && /*#__PURE__*/React__default.createElement("div", {
22294
+ style: {
22295
+ fontSize: "11px",
22296
+ color: "#000000",
22297
+ marginTop: "4px"
22298
+ }
22299
+ }, t("WS_PASSPORT_VALIDATION_ERROR") || "Format: A1234567")), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
22300
+ className: "card-label-smaller",
22301
+ style: {
22302
+ marginBottom: "8px"
22303
+ }
22304
+ }, "Upload " + t(doc === null || doc === void 0 ? void 0 : doc.i18nKey) + " Document*"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
22141
22305
  id: "noc-doc-" + key,
22142
22306
  extraStyleName: "propertyCreate",
22143
22307
  accept: "image/*, .pdf, .png, .jpeg, .jpg",
22144
22308
  onUpload: selectfile,
22145
22309
  onDelete: () => {
22310
+ var _doc$dropdownData2;
22146
22311
  setUploadedFile(null);
22312
+ setFile(null);
22313
+ setDocumentNumber("");
22314
+ setSelectedDocument((doc === null || doc === void 0 ? void 0 : (_doc$dropdownData2 = doc.dropdownData) === null || _doc$dropdownData2 === void 0 ? void 0 : _doc$dropdownData2.length) === 1 ? doc === null || doc === void 0 ? void 0 : doc.dropdownData[0] : {});
22147
22315
  setCheckRequiredFields(true);
22148
22316
  },
22149
22317
  message: uploadedFile ? "1 " + t("CS_ACTION_FILEUPLOADED") : t("ES_NO_FILE_SELECTED_LABEL"),
22150
22318
  error: error
22151
- }));
22319
+ })));
22152
22320
  }
22153
22321
 
22154
22322
  const BannerPicker = props => {
@@ -31055,7 +31223,11 @@ function WSDocument(_ref) {
31055
31223
  style: {
31056
31224
  marginTop: "8px"
31057
31225
  }
31058
- }, t(Code === null || Code === void 0 ? void 0 : Code.split('.').slice(0, 3).join('_'))) : null);
31226
+ }, t(Code === null || Code === void 0 ? void 0 : Code.split('.').slice(0, 3).join('_'))) : null, document !== null && document !== void 0 && document.documentNumber ? /*#__PURE__*/React__default.createElement("p", {
31227
+ style: {
31228
+ marginTop: "8px"
31229
+ }
31230
+ }, document === null || document === void 0 ? void 0 : document.documentNumber) : "N/A");
31059
31231
  }))));
31060
31232
  }
31061
31233
 
@@ -35788,19 +35960,7 @@ const CheckPage$1 = () => {
35788
35960
  style: {
35789
35961
  width: "100%"
35790
35962
  }
35791
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, {
35792
- styles: {
35793
- fontSize: "32px"
35794
- }
35795
- }, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
35796
- style: {
35797
- paddingRight: "16px"
35798
- }
35799
- }, /*#__PURE__*/React__default.createElement("div", {
35800
- style: {
35801
- display: "inline"
35802
- }
35803
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
35963
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
35804
35964
  styles: {
35805
35965
  fontSize: "28px"
35806
35966
  }
@@ -35818,7 +35978,7 @@ const CheckPage$1 = () => {
35818
35978
  display: "inline"
35819
35979
  },
35820
35980
  onClick: () => routeTo(routeLink + "/application-form")
35821
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
35981
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
35822
35982
  className: "border-none",
35823
35983
  label: t("WS_DISCONNECTION_CONSUMER_NUMBER"),
35824
35984
  text: value.connectionNo
@@ -35838,15 +35998,7 @@ const CheckPage$1 = () => {
35838
35998
  className: "border-none",
35839
35999
  label: t("WS_DISCONNECTION_REASON"),
35840
36000
  text: t(value.WSDisconnectionForm.reason.value.i18nKey)
35841
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
35842
- style: {
35843
- paddingRight: "16px"
35844
- }
35845
- }, /*#__PURE__*/React__default.createElement("div", {
35846
- style: {
35847
- display: "inline"
35848
- }
35849
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
36001
+ })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
35850
36002
  styles: {
35851
36003
  fontSize: "28px"
35852
36004
  }
@@ -35864,11 +36016,15 @@ const CheckPage$1 = () => {
35864
36016
  display: "inline"
35865
36017
  },
35866
36018
  onClick: () => routeTo(routeLink + "/documents-upload")
35867
- })), documents && (documents === null || documents === void 0 ? void 0 : documents.map((doc, index) => {
36019
+ }), documents && (documents === null || documents === void 0 ? void 0 : documents.map((doc, index) => {
35868
36020
  var _doc$documentType;
35869
36021
  return /*#__PURE__*/React__default.createElement("div", {
35870
36022
  key: "doc-" + index
35871
- }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split('.').slice(0, 2).join('_'))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
36023
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split('.').slice(0, 2).join('_'))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
36024
+ className: "border-none",
36025
+ label: t("WS_DOCUMENT_NUMBER"),
36026
+ text: (doc === null || doc === void 0 ? void 0 : doc.documentNumber) || (doc === null || doc === void 0 ? void 0 : doc.documentUid) || t("NA")
36027
+ }), /*#__PURE__*/React__default.createElement(WSDocument, {
35872
36028
  value: {
35873
36029
  documents: value.WSDisconnectionForm
35874
36030
  },
@@ -35884,10 +36040,17 @@ const CheckPage$1 = () => {
35884
36040
  marginBottom: "20px"
35885
36041
  }
35886
36042
  }) : null)));
35887
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
36043
+ })), /*#__PURE__*/React__default.createElement("div", {
36044
+ style: {
36045
+ display: "flex",
36046
+ justifyContent: "flex-end",
36047
+ width: "100%",
36048
+ gridColumn: "1 / -1"
36049
+ }
36050
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
35888
36051
  label: t("CS_COMMON_SUBMIT"),
35889
36052
  onSubmit: () => onSubmit(value === null || value === void 0 ? void 0 : value.WSDisconnectionForm)
35890
- })))));
36053
+ }))))));
35891
36054
  };
35892
36055
 
35893
36056
  const CheckPage$2 = () => {
@@ -45297,7 +45460,7 @@ function PropertyDocuments(_ref) {
45297
45460
  var _pdfFiles$value$fileS;
45298
45461
  const fileUrl = (_pdfFiles$value$fileS = pdfFiles[value.fileStoreId]) === null || _pdfFiles$value$fileS === void 0 ? void 0 : _pdfFiles$value$fileS.split(",")[0];
45299
45462
  const docSubType = getDocSubType(value === null || value === void 0 ? void 0 : value.documentType);
45300
- const docUid = (value === null || value === void 0 ? void 0 : value.documentUid) || "";
45463
+ const docUid = (value === null || value === void 0 ? void 0 : value.documentNumber) || (value === null || value === void 0 ? void 0 : value.documentUid) || "";
45301
45464
  const isPhoto = value === null || value === void 0 ? void 0 : value.isPhoto;
45302
45465
  let typeLabel = "";
45303
45466
  let numLabel = "";
@@ -46493,6 +46656,7 @@ const RenewPopup = _ref => {
46493
46656
  };
46494
46657
 
46495
46658
  const DueVerification = _ref => {
46659
+ var _window, _window$Digit, _window$Digit$ULBServ, _window2, _window2$Digit, _window2$Digit$Hooks, _window2$Digit$Hooks$;
46496
46660
  let applicationData = _ref.applicationData;
46497
46661
  const _useTranslation = reactI18next.useTranslation(),
46498
46662
  t = _useTranslation.t;
@@ -46561,23 +46725,67 @@ const DueVerification = _ref => {
46561
46725
  setTableData(applicationData.dueVerification);
46562
46726
  }
46563
46727
  }, [applicationData]);
46564
- const handleAdd = () => {
46565
- if (kno) {
46566
- const mockData = {
46567
- kno: kno,
46568
- fullName: "John Doe",
46569
- fullAddress: "123 Main St, New Delhi, Delhi 110001",
46570
- dueAmount: "1500",
46571
- totalAmount: "1500",
46572
- remarks: remarks
46573
- };
46574
- const newTableData = [...tableData, mockData];
46575
- setTableData(newTableData);
46576
- if (applicationData) {
46577
- applicationData.dueVerification = newTableData;
46578
- }
46579
- setKno("");
46580
- setRemarks("");
46728
+ const tenantId = ((_window = window) === null || _window === void 0 ? void 0 : (_window$Digit = _window.Digit) === null || _window$Digit === void 0 ? void 0 : (_window$Digit$ULBServ = _window$Digit.ULBService) === null || _window$Digit$ULBServ === void 0 ? void 0 : _window$Digit$ULBServ.getCurrentTenantId()) || "dl.djb";
46729
+ const _window$Digit$Hooks$w = (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$Digit = _window2.Digit) === null || _window2$Digit === void 0 ? void 0 : (_window2$Digit$Hooks = _window2$Digit.Hooks) === null || _window2$Digit$Hooks === void 0 ? void 0 : (_window2$Digit$Hooks$ = _window2$Digit$Hooks.ws) === null || _window2$Digit$Hooks$ === void 0 ? void 0 : _window2$Digit$Hooks$.useDueVerification(tenantId),
46730
+ checkDueVerification = _window$Digit$Hooks$w.mutateAsync;
46731
+ const _useState4 = React.useState(null),
46732
+ showToast = _useState4[0],
46733
+ setShowToast = _useState4[1];
46734
+ const handleAdd = function () {
46735
+ try {
46736
+ return Promise.resolve(function () {
46737
+ if (kno) {
46738
+ return _catch(function () {
46739
+ return Promise.resolve(checkDueVerification({
46740
+ DueVerification: {
46741
+ kno: kno
46742
+ }
46743
+ })).then(function (response) {
46744
+ var _response$response, _response$response$da, _response$response2, _response$response2$d, _response$response2$d2;
46745
+ if (response !== null && response !== void 0 && (_response$response = response.response) !== null && _response$response !== void 0 && (_response$response$da = _response$response.data) !== null && _response$response$da !== void 0 && _response$response$da.Errors && (response === null || response === void 0 ? void 0 : (_response$response2 = response.response) === null || _response$response2 === void 0 ? void 0 : (_response$response2$d = _response$response2.data) === null || _response$response2$d === void 0 ? void 0 : (_response$response2$d2 = _response$response2$d.Errors) === null || _response$response2$d2 === void 0 ? void 0 : _response$response2$d2.length) > 0) {
46746
+ setShowToast({
46747
+ isError: true,
46748
+ message: response.response.data.Errors[0].message || t("CS_SOMETHING_WENT_WRONG")
46749
+ });
46750
+ return;
46751
+ }
46752
+ const dueVerifications = Array.isArray(response) ? response : (response === null || response === void 0 ? void 0 : response.DueVerifications) || (response === null || response === void 0 ? void 0 : response.dueVerifications) || (response === null || response === void 0 ? void 0 : response.dueVerification) || [];
46753
+ if (dueVerifications && dueVerifications.length > 0) {
46754
+ const newEntries = dueVerifications.map(dueVerificationData => ({
46755
+ kno: dueVerificationData.kno || kno,
46756
+ fullName: dueVerificationData.fullName || "NA",
46757
+ fullAddress: dueVerificationData.fullAddress || "NA",
46758
+ dueAmount: dueVerificationData.dueAmount || "0",
46759
+ totalAmount: dueVerificationData.totalAmount || "0",
46760
+ remarks: dueVerificationData.remarks || remarks
46761
+ }));
46762
+ const newTableData = [...tableData, ...newEntries];
46763
+ setTableData(newTableData);
46764
+ if (applicationData) {
46765
+ applicationData.dueVerification = newTableData;
46766
+ }
46767
+ setKno("");
46768
+ setRemarks("");
46769
+ } else {
46770
+ var _response$Errors, _response$Errors$;
46771
+ setShowToast({
46772
+ isError: true,
46773
+ message: (response === null || response === void 0 ? void 0 : (_response$Errors = response.Errors) === null || _response$Errors === void 0 ? void 0 : (_response$Errors$ = _response$Errors[0]) === null || _response$Errors$ === void 0 ? void 0 : _response$Errors$.message) || t("CS_NO_DATA_FOUND") || "No data found for this K No."
46774
+ });
46775
+ }
46776
+ });
46777
+ }, function (error) {
46778
+ var _error$response, _error$response$data, _error$response$data$, _error$response$data$2;
46779
+ console.error("Error fetching due verification data:", error);
46780
+ setShowToast({
46781
+ isError: true,
46782
+ message: (error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : (_error$response$data$ = _error$response$data.Errors) === null || _error$response$data$ === void 0 ? void 0 : (_error$response$data$2 = _error$response$data$[0]) === null || _error$response$data$2 === void 0 ? void 0 : _error$response$data$2.message) || (error === null || error === void 0 ? void 0 : error.message) || t("CS_SOMETHING_WENT_WRONG") || "Something went wrong."
46783
+ });
46784
+ });
46785
+ }
46786
+ }());
46787
+ } catch (e) {
46788
+ return Promise.reject(e);
46581
46789
  }
46582
46790
  };
46583
46791
  return /*#__PURE__*/React__default.createElement("div", {
@@ -46613,7 +46821,7 @@ const DueVerification = _ref => {
46613
46821
  color: "red"
46614
46822
  }
46615
46823
  }, "*")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
46616
- type: "number",
46824
+ type: "text",
46617
46825
  value: kno,
46618
46826
  onChange: e => setKno(e.target.value),
46619
46827
  style: {
@@ -46650,7 +46858,12 @@ const DueVerification = _ref => {
46650
46858
  isPaginationRequired: true,
46651
46859
  data: tableData,
46652
46860
  columns: columns
46653
- })));
46861
+ })), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
46862
+ error: showToast.isError,
46863
+ label: showToast.message,
46864
+ onClose: () => setShowToast(null),
46865
+ isDleteBtn: true
46866
+ }));
46654
46867
  };
46655
46868
 
46656
46869
  const InspectionInformation = _ref => {
@@ -50701,9 +50914,11 @@ const Step1_SearchConnection = _ref => {
50701
50914
  return Promise.reject(e);
50702
50915
  }
50703
50916
  };
50917
+ const isMobileView = window.innerWidth < 768;
50704
50918
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
50705
50919
  style: {
50706
- marginBottom: "20px"
50920
+ marginBottom: "20px",
50921
+ padding: isMobileView ? "12px" : undefined
50707
50922
  }
50708
50923
  }, /*#__PURE__*/React__default.createElement("div", {
50709
50924
  style: {
@@ -50715,19 +50930,23 @@ const Step1_SearchConnection = _ref => {
50715
50930
  }
50716
50931
  }, /*#__PURE__*/React__default.createElement("span", {
50717
50932
  style: {
50718
- fontSize: "24px"
50933
+ fontSize: isMobileView ? "20px" : "24px"
50719
50934
  }
50720
50935
  }, "\uD83D\uDD0D"), /*#__PURE__*/React__default.createElement("h2", {
50721
50936
  style: {
50722
- fontSize: "18px",
50937
+ fontSize: isMobileView ? "16px" : "18px",
50723
50938
  fontWeight: "700",
50724
50939
  margin: 0
50725
50940
  }
50726
- }, "1. Connection Authentication")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, "Please enter your K Number to proceed with the mutation application. An OTP will be sent to the registered mobile number."), /*#__PURE__*/React__default.createElement("div", {
50941
+ }, "1. Connection Authentication")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, {
50942
+ style: {
50943
+ fontSize: isMobileView ? "13px" : undefined
50944
+ }
50945
+ }, "Please enter your K Number to proceed with the mutation application. An OTP will be sent to the registered mobile number."), /*#__PURE__*/React__default.createElement("div", {
50727
50946
  style: {
50728
50947
  marginBottom: "24px",
50729
50948
  marginTop: "16px",
50730
- padding: "16px",
50949
+ padding: isMobileView ? "12px" : "16px",
50731
50950
  backgroundColor: "#f9f9f9",
50732
50951
  borderRadius: "8px",
50733
50952
  borderLeft: "4px solid #00497e"
@@ -50739,26 +50958,26 @@ const Step1_SearchConnection = _ref => {
50739
50958
  }, /*#__PURE__*/React__default.createElement("div", {
50740
50959
  style: {
50741
50960
  fontWeight: "bold",
50742
- marginBottom: "8px"
50961
+ marginBottom: "8px",
50962
+ fontSize: isMobileView ? "14px" : undefined
50743
50963
  }
50744
50964
  }, "K Number / Connection ID *"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
50745
50965
  value: kNumber,
50746
50966
  onChange: e => setKNumber(e.target.value),
50747
50967
  placeholder: "Enter K Number",
50748
50968
  style: {
50749
- width: "100%",
50750
- maxWidth: "400px"
50969
+ width: "100%"
50751
50970
  }
50752
50971
  })), /*#__PURE__*/React__default.createElement("div", {
50753
50972
  style: {
50754
50973
  display: "flex",
50755
- justifyContent: "flex-end"
50974
+ justifyContent: isMobileView ? "center" : "flex-end"
50756
50975
  }
50757
50976
  }, /*#__PURE__*/React__default.createElement("button", {
50758
50977
  onClick: handleSendOtp,
50759
50978
  disabled: isLoading,
50760
50979
  style: {
50761
- padding: "10px 20px",
50980
+ padding: isMobileView ? "12px 16px" : "10px 20px",
50762
50981
  backgroundColor: "#00497e",
50763
50982
  color: "white",
50764
50983
  border: "none",
@@ -50766,8 +50985,9 @@ const Step1_SearchConnection = _ref => {
50766
50985
  cursor: "pointer",
50767
50986
  fontWeight: "bold",
50768
50987
  opacity: isLoading ? 0.7 : 1,
50769
- width: "100%",
50770
- maxWidth: "200px"
50988
+ width: isMobileView ? "100%" : "auto",
50989
+ maxWidth: isMobileView ? "100%" : "200px",
50990
+ fontSize: isMobileView ? "14px" : undefined
50771
50991
  }
50772
50992
  }, isLoading ? "Sending OTP..." : "Send OTP →"))), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
50773
50993
  error: showToast.key === "error",
@@ -50863,6 +51083,7 @@ const Step1_ExistingConnection = _ref => {
50863
51083
  return Promise.reject(e);
50864
51084
  }
50865
51085
  };
51086
+ const isMobileView = window.innerWidth < 768;
50866
51087
  const infoItemStyle = {
50867
51088
  display: "flex",
50868
51089
  flexDirection: "column",
@@ -50870,11 +51091,12 @@ const Step1_ExistingConnection = _ref => {
50870
51091
  };
50871
51092
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
50872
51093
  style: {
50873
- marginBottom: "20px"
51094
+ marginBottom: "20px",
51095
+ padding: isMobileView ? "12px" : undefined
50874
51096
  }
50875
51097
  }, /*#__PURE__*/React__default.createElement("div", {
50876
51098
  style: {
50877
- padding: "12px 16px",
51099
+ padding: isMobileView ? "10px 12px" : "12px 16px",
50878
51100
  backgroundColor: "#fff3cd",
50879
51101
  color: "#856404",
50880
51102
  borderRadius: "8px",
@@ -50886,17 +51108,18 @@ const Step1_ExistingConnection = _ref => {
50886
51108
  }
50887
51109
  }, /*#__PURE__*/React__default.createElement("span", {
50888
51110
  style: {
50889
- fontSize: "18px",
51111
+ fontSize: isMobileView ? "16px" : "18px",
50890
51112
  flexShrink: 0
50891
51113
  }
50892
51114
  }, "\u2139\uFE0F"), /*#__PURE__*/React__default.createElement("span", {
50893
51115
  style: {
50894
51116
  fontWeight: "500",
50895
- fontSize: "14px"
51117
+ fontSize: isMobileView ? "12px" : "14px",
51118
+ lineHeight: "1.4"
50896
51119
  }
50897
51120
  }, "Name Change / Mutation is limited to changing the name of the consumer/account holder on the existing water connection. It does not constitute or imply transfer of property ownership.")), missingFields.length > 0 && /*#__PURE__*/React__default.createElement("div", {
50898
51121
  style: {
50899
- padding: "12px 16px",
51122
+ padding: isMobileView ? "10px 12px" : "12px 16px",
50900
51123
  backgroundColor: "#fdecea",
50901
51124
  color: "#611a15",
50902
51125
  borderRadius: "8px",
@@ -50914,7 +51137,7 @@ const Step1_ExistingConnection = _ref => {
50914
51137
  }, "\u26A0\uFE0F"), /*#__PURE__*/React__default.createElement("span", {
50915
51138
  style: {
50916
51139
  fontWeight: "500",
50917
- fontSize: "14px"
51140
+ fontSize: isMobileView ? "12px" : "14px"
50918
51141
  }
50919
51142
  }, "Note: Some connection details are missing (", missingFields.join(", "), "). You may need to update them during the mutation process.")), /*#__PURE__*/React__default.createElement("div", {
50920
51143
  style: {
@@ -50926,17 +51149,17 @@ const Step1_ExistingConnection = _ref => {
50926
51149
  }
50927
51150
  }, /*#__PURE__*/React__default.createElement("span", {
50928
51151
  style: {
50929
- fontSize: "22px"
51152
+ fontSize: isMobileView ? "20px" : "22px"
50930
51153
  }
50931
51154
  }, "\uD83C\uDFE2"), /*#__PURE__*/React__default.createElement("h2", {
50932
51155
  style: {
50933
- fontSize: "18px",
51156
+ fontSize: isMobileView ? "16px" : "18px",
50934
51157
  fontWeight: "700",
50935
51158
  margin: 0
50936
51159
  }
50937
51160
  }, "2. Existing Consumer Details")), /*#__PURE__*/React__default.createElement("div", {
50938
51161
  style: {
50939
- padding: "16px",
51162
+ padding: isMobileView ? "12px" : "16px",
50940
51163
  backgroundColor: "#f9f9f9",
50941
51164
  borderRadius: "8px",
50942
51165
  borderLeft: "4px solid #00497e"
@@ -50944,95 +51167,103 @@ const Step1_ExistingConnection = _ref => {
50944
51167
  }, /*#__PURE__*/React__default.createElement("div", {
50945
51168
  style: {
50946
51169
  display: "grid",
50947
- gridTemplateColumns: "repeat(auto-fill, minmax(150px, 1fr))",
50948
- gap: "16px"
51170
+ gridTemplateColumns: isMobileView ? "1fr 1fr" : "repeat(auto-fill, minmax(150px, 1fr))",
51171
+ gap: isMobileView ? "12px" : "16px"
50949
51172
  }
50950
51173
  }, /*#__PURE__*/React__default.createElement("div", {
50951
51174
  style: infoItemStyle
50952
51175
  }, /*#__PURE__*/React__default.createElement("div", {
50953
51176
  style: {
50954
51177
  color: "#555",
50955
- fontSize: "13px",
51178
+ fontSize: isMobileView ? "11px" : "13px",
50956
51179
  marginBottom: "4px"
50957
51180
  }
50958
51181
  }, "Connection Number"), /*#__PURE__*/React__default.createElement("div", {
50959
51182
  style: {
50960
51183
  fontWeight: "bold",
50961
- wordBreak: "break-all"
51184
+ wordBreak: "break-all",
51185
+ fontSize: isMobileView ? "13px" : undefined
50962
51186
  }
50963
51187
  }, connectionNo)), /*#__PURE__*/React__default.createElement("div", {
50964
51188
  style: infoItemStyle
50965
51189
  }, /*#__PURE__*/React__default.createElement("div", {
50966
51190
  style: {
50967
51191
  color: "#555",
50968
- fontSize: "13px",
51192
+ fontSize: isMobileView ? "11px" : "13px",
50969
51193
  marginBottom: "4px"
50970
51194
  }
50971
51195
  }, "Current Owner Name"), /*#__PURE__*/React__default.createElement("div", {
50972
51196
  style: {
50973
51197
  fontWeight: "bold",
50974
- wordBreak: "break-word"
51198
+ wordBreak: "break-word",
51199
+ fontSize: isMobileView ? "13px" : undefined
50975
51200
  }
50976
51201
  }, registeredName)), /*#__PURE__*/React__default.createElement("div", {
50977
- style: infoItemStyle
51202
+ style: _extends({}, infoItemStyle, {
51203
+ gridColumn: isMobileView ? "1 / -1" : undefined
51204
+ })
50978
51205
  }, /*#__PURE__*/React__default.createElement("div", {
50979
51206
  style: {
50980
51207
  color: "#555",
50981
- fontSize: "13px",
51208
+ fontSize: isMobileView ? "11px" : "13px",
50982
51209
  marginBottom: "4px"
50983
51210
  }
50984
51211
  }, "Property Address"), /*#__PURE__*/React__default.createElement("div", {
50985
51212
  style: {
50986
51213
  fontWeight: "bold",
50987
- wordBreak: "break-word"
51214
+ wordBreak: "break-word",
51215
+ fontSize: isMobileView ? "13px" : undefined
50988
51216
  }
50989
51217
  }, formattedAddress)), /*#__PURE__*/React__default.createElement("div", {
50990
51218
  style: infoItemStyle
50991
51219
  }, /*#__PURE__*/React__default.createElement("div", {
50992
51220
  style: {
50993
51221
  color: "#555",
50994
- fontSize: "13px",
51222
+ fontSize: isMobileView ? "11px" : "13px",
50995
51223
  marginBottom: "4px"
50996
51224
  }
50997
51225
  }, "Connection Status"), /*#__PURE__*/React__default.createElement("div", {
50998
51226
  style: {
50999
51227
  fontWeight: "bold",
51000
- color: (connectionStatus === null || connectionStatus === void 0 ? void 0 : connectionStatus.toLowerCase()) === "active" ? "#28a745" : "#dc3545"
51228
+ color: (connectionStatus === null || connectionStatus === void 0 ? void 0 : connectionStatus.toLowerCase()) === "active" ? "#28a745" : "#dc3545",
51229
+ fontSize: isMobileView ? "13px" : undefined
51001
51230
  }
51002
51231
  }, connectionStatus)), /*#__PURE__*/React__default.createElement("div", {
51003
51232
  style: infoItemStyle
51004
51233
  }, /*#__PURE__*/React__default.createElement("div", {
51005
51234
  style: {
51006
51235
  color: "#555",
51007
- fontSize: "13px",
51236
+ fontSize: isMobileView ? "11px" : "13px",
51008
51237
  marginBottom: "4px"
51009
51238
  }
51010
51239
  }, "Meter Number"), /*#__PURE__*/React__default.createElement("div", {
51011
51240
  style: {
51012
51241
  fontWeight: "bold",
51013
- wordBreak: "break-all"
51242
+ wordBreak: "break-all",
51243
+ fontSize: isMobileView ? "13px" : undefined
51014
51244
  }
51015
51245
  }, meterId)), /*#__PURE__*/React__default.createElement("div", {
51016
51246
  style: infoItemStyle
51017
51247
  }, /*#__PURE__*/React__default.createElement("div", {
51018
51248
  style: {
51019
51249
  color: "#555",
51020
- fontSize: "13px",
51250
+ fontSize: isMobileView ? "11px" : "13px",
51021
51251
  marginBottom: "4px"
51022
51252
  }
51023
51253
  }, "Mobile Number"), /*#__PURE__*/React__default.createElement("div", {
51024
51254
  style: {
51025
- fontWeight: "bold"
51255
+ fontWeight: "bold",
51256
+ fontSize: isMobileView ? "13px" : undefined
51026
51257
  }
51027
51258
  }, registeredPhone)))), /*#__PURE__*/React__default.createElement("div", {
51028
51259
  style: {
51029
- marginTop: "24px",
51260
+ marginTop: isMobileView ? "16px" : "24px",
51030
51261
  borderTop: "1px solid #e0e0e0",
51031
51262
  paddingTop: "16px"
51032
51263
  }
51033
51264
  }, /*#__PURE__*/React__default.createElement("h3", {
51034
51265
  style: {
51035
- fontSize: "16px",
51266
+ fontSize: isMobileView ? "14px" : "16px",
51036
51267
  fontWeight: "bold",
51037
51268
  marginBottom: "16px"
51038
51269
  }
@@ -51041,29 +51272,31 @@ const Step1_ExistingConnection = _ref => {
51041
51272
  display: "flex",
51042
51273
  flexDirection: "column",
51043
51274
  gap: "8px",
51044
- maxWidth: "400px",
51045
51275
  marginBottom: "16px"
51046
51276
  }
51047
51277
  }, /*#__PURE__*/React__default.createElement("label", {
51048
51278
  style: {
51049
51279
  fontWeight: "500",
51050
- fontSize: "14px"
51280
+ fontSize: isMobileView ? "13px" : "14px"
51051
51281
  }
51052
51282
  }, "Enter OTP sent to +91 ", getMaskedPhone(mobileNumber), " *"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
51053
51283
  value: otp,
51054
51284
  onChange: e => setOtp(e.target.value.replace(/\D/g, '').slice(0, 6)),
51055
51285
  placeholder: "Enter 6-digit OTP",
51056
- maxLength: 6
51286
+ maxLength: 6,
51287
+ style: {
51288
+ width: "100%"
51289
+ }
51057
51290
  })), /*#__PURE__*/React__default.createElement("div", {
51058
51291
  style: {
51059
51292
  display: "flex",
51060
- justifyContent: "flex-end"
51293
+ justifyContent: isMobileView ? "center" : "flex-end"
51061
51294
  }
51062
51295
  }, /*#__PURE__*/React__default.createElement("button", {
51063
51296
  onClick: handleVerifyOtp,
51064
51297
  disabled: isLoading || otp.length < 6,
51065
51298
  style: {
51066
- padding: "10px 20px",
51299
+ padding: isMobileView ? "12px 16px" : "10px 20px",
51067
51300
  backgroundColor: "#00497e",
51068
51301
  color: "white",
51069
51302
  border: "none",
@@ -51071,8 +51304,9 @@ const Step1_ExistingConnection = _ref => {
51071
51304
  cursor: isLoading || otp.length < 6 ? "not-allowed" : "pointer",
51072
51305
  fontWeight: "bold",
51073
51306
  opacity: isLoading || otp.length < 6 ? 0.5 : 1,
51074
- width: "100%",
51075
- maxWidth: "200px"
51307
+ width: isMobileView ? "100%" : "auto",
51308
+ maxWidth: isMobileView ? "100%" : "200px",
51309
+ fontSize: isMobileView ? "14px" : undefined
51076
51310
  }
51077
51311
  }, isLoading ? "Verifying..." : "Verify & Proceed →"))), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
51078
51312
  error: (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error",
@@ -51141,6 +51375,7 @@ const Step2_NewConsumerDetails = _ref => {
51141
51375
  code: "OTHER",
51142
51376
  i18nKey: "Other"
51143
51377
  }];
51378
+ const isMobileView = window.innerWidth < 768;
51144
51379
  const errorStyle = {
51145
51380
  width: "100%",
51146
51381
  marginLeft: "0px",
@@ -51189,7 +51424,8 @@ const Step2_NewConsumerDetails = _ref => {
51189
51424
  }, "*");
51190
51425
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
51191
51426
  style: {
51192
- marginBottom: "20px"
51427
+ marginBottom: "20px",
51428
+ padding: isMobileView ? "12px" : undefined
51193
51429
  }
51194
51430
  }, /*#__PURE__*/React__default.createElement("div", {
51195
51431
  style: {
@@ -51201,17 +51437,17 @@ const Step2_NewConsumerDetails = _ref => {
51201
51437
  }
51202
51438
  }, /*#__PURE__*/React__default.createElement("span", {
51203
51439
  style: {
51204
- fontSize: "22px"
51440
+ fontSize: isMobileView ? "20px" : "22px"
51205
51441
  }
51206
51442
  }, "\uD83D\uDC64"), /*#__PURE__*/React__default.createElement("h2", {
51207
51443
  style: {
51208
- fontSize: "18px",
51444
+ fontSize: isMobileView ? "16px" : "18px",
51209
51445
  fontWeight: "700",
51210
51446
  margin: 0
51211
51447
  }
51212
51448
  }, "2. New Consumer Details.")), Object.keys(errors).length > 0 && /*#__PURE__*/React__default.createElement("div", {
51213
51449
  style: {
51214
- padding: "12px 16px",
51450
+ padding: isMobileView ? "10px 12px" : "12px 16px",
51215
51451
  backgroundColor: "#fdecea",
51216
51452
  color: "#611a15",
51217
51453
  borderRadius: "8px",
@@ -51229,7 +51465,7 @@ const Step2_NewConsumerDetails = _ref => {
51229
51465
  }, "\u26A0\uFE0F"), /*#__PURE__*/React__default.createElement("span", {
51230
51466
  style: {
51231
51467
  fontWeight: "500",
51232
- fontSize: "14px"
51468
+ fontSize: isMobileView ? "12px" : "14px"
51233
51469
  }
51234
51470
  }, "Please fill in all required fields marked with ", /*#__PURE__*/React__default.createElement("span", {
51235
51471
  style: {
@@ -51241,8 +51477,8 @@ const Step2_NewConsumerDetails = _ref => {
51241
51477
  }, /*#__PURE__*/React__default.createElement("div", {
51242
51478
  style: {
51243
51479
  display: "grid",
51244
- gridTemplateColumns: "repeat(auto-fill, minmax(240px, 1fr))",
51245
- gap: "20px",
51480
+ gridTemplateColumns: isMobileView ? "1fr" : "repeat(auto-fill, minmax(240px, 1fr))",
51481
+ gap: isMobileView ? "16px" : "20px",
51246
51482
  padding: "8px 0 16px"
51247
51483
  }
51248
51484
  }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
@@ -51438,13 +51674,13 @@ const Step2_NewConsumerDetails = _ref => {
51438
51674
  }, errors === null || errors === void 0 ? void 0 : (_errors$relationshipW = errors.relationshipWithExistingConsumer) === null || _errors$relationshipW === void 0 ? void 0 : _errors$relationshipW.message))), /*#__PURE__*/React__default.createElement("div", {
51439
51675
  style: {
51440
51676
  display: "flex",
51677
+ flexDirection: isMobileView ? "column" : "row",
51441
51678
  justifyContent: "space-between",
51442
- alignItems: "center",
51679
+ alignItems: isMobileView ? "stretch" : "center",
51443
51680
  marginTop: "24px",
51444
- flexWrap: "wrap",
51445
51681
  gap: "12px"
51446
51682
  }
51447
- }, /*#__PURE__*/React__default.createElement("button", {
51683
+ }, !isMobileView && /*#__PURE__*/React__default.createElement("button", {
51448
51684
  type: "button",
51449
51685
  onClick: onBack,
51450
51686
  style: {
@@ -51458,14 +51694,15 @@ const Step2_NewConsumerDetails = _ref => {
51458
51694
  }, "\u2190 Back"), /*#__PURE__*/React__default.createElement("div", {
51459
51695
  style: {
51460
51696
  display: "flex",
51461
- alignItems: "center",
51462
- gap: "12px",
51463
- flexWrap: "wrap"
51697
+ flexDirection: isMobileView ? "column" : "row",
51698
+ alignItems: isMobileView ? "stretch" : "center",
51699
+ gap: "12px"
51464
51700
  }
51465
51701
  }, /*#__PURE__*/React__default.createElement("span", {
51466
51702
  style: {
51467
51703
  fontSize: "12px",
51468
- color: "#999"
51704
+ color: "#999",
51705
+ textAlign: isMobileView ? "center" : undefined
51469
51706
  }
51470
51707
  }, "Fields marked with ", /*#__PURE__*/React__default.createElement("span", {
51471
51708
  style: {
@@ -51474,15 +51711,30 @@ const Step2_NewConsumerDetails = _ref => {
51474
51711
  }, "*"), " are mandatory"), /*#__PURE__*/React__default.createElement("button", {
51475
51712
  type: "submit",
51476
51713
  style: {
51477
- padding: "10px 20px",
51714
+ padding: isMobileView ? "14px 20px" : "10px 20px",
51478
51715
  backgroundColor: "#00497e",
51479
51716
  color: "white",
51480
51717
  border: "none",
51481
51718
  borderRadius: "4px",
51482
51719
  cursor: "pointer",
51483
- fontWeight: "bold"
51720
+ fontWeight: "bold",
51721
+ width: isMobileView ? "100%" : "auto",
51722
+ fontSize: isMobileView ? "14px" : undefined
51723
+ }
51724
+ }, "Save & Proceed to Documents \u2192")), isMobileView && /*#__PURE__*/React__default.createElement("button", {
51725
+ type: "button",
51726
+ onClick: onBack,
51727
+ style: {
51728
+ padding: "12px 20px",
51729
+ backgroundColor: "#e0e0e0",
51730
+ border: "none",
51731
+ borderRadius: "4px",
51732
+ cursor: "pointer",
51733
+ fontWeight: "bold",
51734
+ width: "100%",
51735
+ fontSize: "14px"
51484
51736
  }
51485
- }, "Save & Proceed to Documents \u2192")))), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
51737
+ }, "\u2190 Back"))), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
51486
51738
  error: showToast.key === "error",
51487
51739
  warning: showToast.key === "warning",
51488
51740
  label: t(showToast.message),
@@ -51766,6 +52018,7 @@ const Step3_UploadDocuments = _ref => {
51766
52018
  marginTop: "8px",
51767
52019
  transition: "all 0.2s ease"
51768
52020
  });
52021
+ const isMobileView = window.innerWidth < 768;
51769
52022
  const errorTextStyle = {
51770
52023
  fontSize: "12px",
51771
52024
  color: "#d32f2f",
@@ -51786,7 +52039,8 @@ const Step3_UploadDocuments = _ref => {
51786
52039
  const errorCount = Object.keys(fieldErrors).length;
51787
52040
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
51788
52041
  style: {
51789
- marginBottom: "20px"
52042
+ marginBottom: "20px",
52043
+ padding: isMobileView ? "12px" : undefined
51790
52044
  }
51791
52045
  }, /*#__PURE__*/React__default.createElement("div", {
51792
52046
  style: {
@@ -51796,23 +52050,24 @@ const Step3_UploadDocuments = _ref => {
51796
52050
  }
51797
52051
  }, /*#__PURE__*/React__default.createElement("span", {
51798
52052
  style: {
51799
- fontSize: "24px",
52053
+ fontSize: isMobileView ? "20px" : "24px",
51800
52054
  marginRight: "8px"
51801
52055
  }
51802
52056
  }, "\uD83D\uDCC4"), /*#__PURE__*/React__default.createElement("h2", {
51803
52057
  style: {
51804
- fontSize: "20px",
52058
+ fontSize: isMobileView ? "16px" : "20px",
51805
52059
  fontWeight: "700",
51806
52060
  margin: 0
51807
52061
  }
51808
52062
  }, "3. Upload Verification Documents")), /*#__PURE__*/React__default.createElement("p", {
51809
52063
  style: {
51810
52064
  color: "#666",
51811
- marginBottom: "20px"
52065
+ marginBottom: "20px",
52066
+ fontSize: isMobileView ? "12px" : undefined
51812
52067
  }
51813
52068
  }, "Please upload legible scanned copies or photos (PDF, PNG, JPEG - Max 5MB)."), hasAttemptedSubmit && errorCount > 0 && /*#__PURE__*/React__default.createElement("div", {
51814
52069
  style: {
51815
- padding: "12px 16px",
52070
+ padding: isMobileView ? "10px 12px" : "12px 16px",
51816
52071
  backgroundColor: "#fdecea",
51817
52072
  color: "#611a15",
51818
52073
  borderRadius: "8px",
@@ -51830,13 +52085,13 @@ const Step3_UploadDocuments = _ref => {
51830
52085
  }, "\u26A0\uFE0F"), /*#__PURE__*/React__default.createElement("span", {
51831
52086
  style: {
51832
52087
  fontWeight: "500",
51833
- fontSize: "14px"
52088
+ fontSize: isMobileView ? "12px" : "14px"
51834
52089
  }
51835
52090
  }, errorCount, " required item", errorCount > 1 ? "s" : "", " still need", errorCount === 1 ? "s" : "", " your attention before proceeding.")), /*#__PURE__*/React__default.createElement("div", {
51836
52091
  style: {
51837
52092
  display: "grid",
51838
- gridTemplateColumns: "repeat(auto-fill, minmax(280px, 1fr))",
51839
- gap: "24px"
52093
+ gridTemplateColumns: isMobileView ? "1fr" : "repeat(auto-fill, minmax(280px, 1fr))",
52094
+ gap: isMobileView ? "20px" : "24px"
51840
52095
  }
51841
52096
  }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
51842
52097
  style: {
@@ -52011,13 +52266,13 @@ const Step3_UploadDocuments = _ref => {
52011
52266
  }, "\uD83D\uDCC4"), " View ", mutationFileName)))), /*#__PURE__*/React__default.createElement("div", {
52012
52267
  style: {
52013
52268
  display: "flex",
52269
+ flexDirection: isMobileView ? "column" : "row",
52014
52270
  justifyContent: "space-between",
52015
- alignItems: "center",
52016
- marginTop: "32px",
52017
- flexWrap: "wrap",
52271
+ alignItems: isMobileView ? "stretch" : "center",
52272
+ marginTop: isMobileView ? "24px" : "32px",
52018
52273
  gap: "12px"
52019
52274
  }
52020
- }, /*#__PURE__*/React__default.createElement("button", {
52275
+ }, !isMobileView && /*#__PURE__*/React__default.createElement("button", {
52021
52276
  type: "button",
52022
52277
  onClick: onBack,
52023
52278
  style: {
@@ -52031,29 +52286,45 @@ const Step3_UploadDocuments = _ref => {
52031
52286
  }, "\u2190 Back"), /*#__PURE__*/React__default.createElement("div", {
52032
52287
  style: {
52033
52288
  display: "flex",
52034
- alignItems: "center",
52035
- gap: "12px",
52036
- flexWrap: "wrap"
52289
+ flexDirection: isMobileView ? "column" : "row",
52290
+ alignItems: isMobileView ? "stretch" : "center",
52291
+ gap: "12px"
52037
52292
  }
52038
52293
  }, /*#__PURE__*/React__default.createElement("span", {
52039
52294
  style: {
52040
52295
  fontSize: "12px",
52041
- color: "#999"
52296
+ color: "#999",
52297
+ textAlign: isMobileView ? "center" : undefined
52042
52298
  }
52043
52299
  }, "All documents are mandatory"), /*#__PURE__*/React__default.createElement("button", {
52044
52300
  type: "button",
52045
52301
  onClick: onProceed,
52046
52302
  disabled: isUploading,
52047
52303
  style: {
52048
- padding: "10px 20px",
52304
+ padding: isMobileView ? "14px 20px" : "10px 20px",
52049
52305
  backgroundColor: isUploading ? "#ccc" : "#00497e",
52050
52306
  color: "white",
52051
52307
  border: "none",
52052
52308
  borderRadius: "4px",
52053
52309
  cursor: isUploading ? "not-allowed" : "pointer",
52054
- fontWeight: "bold"
52310
+ fontWeight: "bold",
52311
+ width: isMobileView ? "100%" : "auto",
52312
+ fontSize: isMobileView ? "14px" : undefined
52313
+ }
52314
+ }, isUploading ? "Uploading..." : "Proceed to Preview →")), isMobileView && /*#__PURE__*/React__default.createElement("button", {
52315
+ type: "button",
52316
+ onClick: onBack,
52317
+ style: {
52318
+ padding: "12px 20px",
52319
+ backgroundColor: "#e0e0e0",
52320
+ border: "none",
52321
+ borderRadius: "4px",
52322
+ cursor: "pointer",
52323
+ fontWeight: "bold",
52324
+ width: "100%",
52325
+ fontSize: "14px"
52055
52326
  }
52056
- }, isUploading ? "Uploading..." : "Proceed to Application Preview →"))), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
52327
+ }, "\u2190 Back")), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
52057
52328
  error: showToast.key === "error",
52058
52329
  warning: showToast.key === "warning",
52059
52330
  success: showToast.key === "success",
@@ -52184,24 +52455,25 @@ const Step4_Preview = _ref => {
52184
52455
  };
52185
52456
  calculateStaticFee();
52186
52457
  }, [formData]);
52458
+ const isMobileView = window.innerWidth < 768;
52187
52459
  const sectionStyle = {
52188
52460
  border: "1px solid #e0e0e0",
52189
52461
  borderRadius: "8px",
52190
- padding: "16px",
52462
+ padding: isMobileView ? "12px" : "16px",
52191
52463
  marginBottom: "16px"
52192
52464
  };
52193
52465
  const labelStyle = {
52194
52466
  color: "#666",
52195
- fontSize: "13px",
52467
+ fontSize: isMobileView ? "11px" : "13px",
52196
52468
  marginBottom: "4px"
52197
52469
  };
52198
52470
  const valueStyle = {
52199
52471
  fontWeight: "bold",
52200
- fontSize: "15px",
52472
+ fontSize: isMobileView ? "13px" : "15px",
52201
52473
  wordBreak: "break-word"
52202
52474
  };
52203
52475
  const uploadDocStatusStyle = {
52204
- fontSize: "14px",
52476
+ fontSize: isMobileView ? "12px" : "14px",
52205
52477
  fontWeight: "bold"
52206
52478
  };
52207
52479
  const infoItem = (label, value) => /*#__PURE__*/React__default.createElement("div", {
@@ -52215,7 +52487,8 @@ const Step4_Preview = _ref => {
52215
52487
  }, value));
52216
52488
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
52217
52489
  style: {
52218
- marginBottom: "20px"
52490
+ marginBottom: "20px",
52491
+ padding: isMobileView ? "12px" : undefined
52219
52492
  }
52220
52493
  }, /*#__PURE__*/React__default.createElement("div", {
52221
52494
  style: {
@@ -52227,11 +52500,11 @@ const Step4_Preview = _ref => {
52227
52500
  }
52228
52501
  }, /*#__PURE__*/React__default.createElement("span", {
52229
52502
  style: {
52230
- fontSize: "22px"
52503
+ fontSize: isMobileView ? "20px" : "22px"
52231
52504
  }
52232
52505
  }, "\uD83D\uDCCB"), /*#__PURE__*/React__default.createElement("h2", {
52233
52506
  style: {
52234
- fontSize: "18px",
52507
+ fontSize: isMobileView ? "15px" : "18px",
52235
52508
  fontWeight: "700",
52236
52509
  margin: 0
52237
52510
  }
@@ -52241,7 +52514,7 @@ const Step4_Preview = _ref => {
52241
52514
  })
52242
52515
  }, /*#__PURE__*/React__default.createElement("h3", {
52243
52516
  style: {
52244
- fontSize: "15px",
52517
+ fontSize: isMobileView ? "13px" : "15px",
52245
52518
  fontWeight: "bold",
52246
52519
  color: "#00497e",
52247
52520
  marginBottom: "12px"
@@ -52249,8 +52522,8 @@ const Step4_Preview = _ref => {
52249
52522
  }, "Property & Connection Summary"), /*#__PURE__*/React__default.createElement("div", {
52250
52523
  style: {
52251
52524
  display: "grid",
52252
- gridTemplateColumns: "repeat(auto-fill, minmax(150px, 1fr))",
52253
- gap: "16px"
52525
+ gridTemplateColumns: isMobileView ? "1fr 1fr" : "repeat(auto-fill, minmax(150px, 1fr))",
52526
+ gap: isMobileView ? "12px" : "16px"
52254
52527
  }
52255
52528
  }, infoItem("Connection No", connectionNo), infoItem("Meter Number", meterId), infoItem("Property ID", propertyId))), /*#__PURE__*/React__default.createElement("div", {
52256
52529
  style: _extends({}, sectionStyle, {
@@ -52258,16 +52531,16 @@ const Step4_Preview = _ref => {
52258
52531
  })
52259
52532
  }, /*#__PURE__*/React__default.createElement("h3", {
52260
52533
  style: {
52261
- fontSize: "15px",
52534
+ fontSize: isMobileView ? "13px" : "15px",
52262
52535
  fontWeight: "bold",
52263
52536
  color: "#f29c1f",
52264
52537
  marginBottom: "12px"
52265
52538
  }
52266
- }, "\uD83D\uDD12 Existing / Previous Owner Details (Masked Information)"), /*#__PURE__*/React__default.createElement("div", {
52539
+ }, "\uD83D\uDD12 Existing / Previous Owner Details (Masked)"), /*#__PURE__*/React__default.createElement("div", {
52267
52540
  style: {
52268
52541
  display: "grid",
52269
- gridTemplateColumns: "repeat(auto-fill, minmax(150px, 1fr))",
52270
- gap: "16px",
52542
+ gridTemplateColumns: isMobileView ? "1fr" : "repeat(auto-fill, minmax(150px, 1fr))",
52543
+ gap: isMobileView ? "12px" : "16px",
52271
52544
  marginBottom: "12px"
52272
52545
  }
52273
52546
  }, infoItem("Registered Name:", oldName), infoItem("Registered Phone:", oldPhone)), infoItem("Registered Address:", oldAddress)), /*#__PURE__*/React__default.createElement("div", {
@@ -52276,7 +52549,7 @@ const Step4_Preview = _ref => {
52276
52549
  })
52277
52550
  }, /*#__PURE__*/React__default.createElement("h3", {
52278
52551
  style: {
52279
- fontSize: "15px",
52552
+ fontSize: isMobileView ? "13px" : "15px",
52280
52553
  fontWeight: "bold",
52281
52554
  color: "#00497e",
52282
52555
  marginBottom: "12px"
@@ -52284,8 +52557,8 @@ const Step4_Preview = _ref => {
52284
52557
  }, "\uD83D\uDC64 Transferee (New Owner) Summary"), /*#__PURE__*/React__default.createElement("div", {
52285
52558
  style: {
52286
52559
  display: "grid",
52287
- gridTemplateColumns: "repeat(auto-fill, minmax(150px, 1fr))",
52288
- gap: "16px"
52560
+ gridTemplateColumns: isMobileView ? "1fr 1fr" : "repeat(auto-fill, minmax(150px, 1fr))",
52561
+ gap: isMobileView ? "12px" : "16px"
52289
52562
  }
52290
52563
  }, infoItem("New Owner Name", proposedNewConsumerName), infoItem("Mobile Number", newOwnerMobileNumber), infoItem("Relation Type", getRelationshipName(relationshipWithExistingConsumer)), infoItem("Transfer Reason", getReasonName(reasonForNameChange)))), /*#__PURE__*/React__default.createElement("div", {
52291
52564
  style: _extends({}, sectionStyle, {
@@ -52293,7 +52566,7 @@ const Step4_Preview = _ref => {
52293
52566
  })
52294
52567
  }, /*#__PURE__*/React__default.createElement("h3", {
52295
52568
  style: {
52296
- fontSize: "15px",
52569
+ fontSize: isMobileView ? "13px" : "15px",
52297
52570
  fontWeight: "bold",
52298
52571
  color: "#17a2b8",
52299
52572
  marginBottom: "12px"
@@ -52301,8 +52574,8 @@ const Step4_Preview = _ref => {
52301
52574
  }, "Uploaded Documents"), /*#__PURE__*/React__default.createElement("div", {
52302
52575
  style: {
52303
52576
  display: "grid",
52304
- gridTemplateColumns: "repeat(auto-fill, minmax(150px, 1fr))",
52305
- gap: "16px"
52577
+ gridTemplateColumns: isMobileView ? "1fr" : "repeat(auto-fill, minmax(150px, 1fr))",
52578
+ gap: isMobileView ? "12px" : "16px"
52306
52579
  }
52307
52580
  }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
52308
52581
  style: labelStyle
@@ -52324,7 +52597,7 @@ const Step4_Preview = _ref => {
52324
52597
  border: "none",
52325
52598
  textDecoration: "underline",
52326
52599
  cursor: "pointer",
52327
- fontSize: "14px",
52600
+ fontSize: isMobileView ? "12px" : "14px",
52328
52601
  fontWeight: "bold",
52329
52602
  padding: 0
52330
52603
  }
@@ -52352,7 +52625,7 @@ const Step4_Preview = _ref => {
52352
52625
  border: "none",
52353
52626
  textDecoration: "underline",
52354
52627
  cursor: "pointer",
52355
- fontSize: "14px",
52628
+ fontSize: isMobileView ? "12px" : "14px",
52356
52629
  fontWeight: "bold",
52357
52630
  padding: 0
52358
52631
  }
@@ -52364,7 +52637,7 @@ const Step4_Preview = _ref => {
52364
52637
  })
52365
52638
  }, /*#__PURE__*/React__default.createElement("h3", {
52366
52639
  style: {
52367
- fontSize: "15px",
52640
+ fontSize: isMobileView ? "13px" : "15px",
52368
52641
  fontWeight: "bold",
52369
52642
  color: "#28a745",
52370
52643
  marginBottom: "12px"
@@ -52379,7 +52652,7 @@ const Step4_Preview = _ref => {
52379
52652
  display: "flex",
52380
52653
  justifyContent: "space-between",
52381
52654
  marginBottom: "8px",
52382
- maxWidth: "400px"
52655
+ maxWidth: isMobileView ? "100%" : "400px"
52383
52656
  }
52384
52657
  }, /*#__PURE__*/React__default.createElement("div", {
52385
52658
  style: labelStyle
@@ -52389,13 +52662,13 @@ const Step4_Preview = _ref => {
52389
52662
  style: {
52390
52663
  borderTop: "1px solid #c3e6cb",
52391
52664
  margin: "12px 0",
52392
- maxWidth: "400px"
52665
+ maxWidth: isMobileView ? "100%" : "400px"
52393
52666
  }
52394
52667
  })), /*#__PURE__*/React__default.createElement("div", {
52395
52668
  style: {
52396
52669
  display: "flex",
52397
52670
  justifyContent: "space-between",
52398
- maxWidth: "400px",
52671
+ maxWidth: isMobileView ? "100%" : "400px",
52399
52672
  flexWrap: "wrap",
52400
52673
  gap: "8px"
52401
52674
  }
@@ -52404,7 +52677,7 @@ const Step4_Preview = _ref => {
52404
52677
  }, "Total Amount Payable:"), /*#__PURE__*/React__default.createElement("div", {
52405
52678
  style: _extends({}, valueStyle, {
52406
52679
  color: "#28a745",
52407
- fontSize: "20px"
52680
+ fontSize: isMobileView ? "18px" : "20px"
52408
52681
  })
52409
52682
  }, "\u20B9 ", fee, ".00")), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
52410
52683
  style: labelStyle
@@ -52414,14 +52687,14 @@ const Step4_Preview = _ref => {
52414
52687
  backgroundColor: "#d1ecf1",
52415
52688
  color: "#0c5460",
52416
52689
  borderRadius: "16px",
52417
- fontSize: "12px",
52690
+ fontSize: isMobileView ? "10px" : "12px",
52418
52691
  fontWeight: "bold",
52419
52692
  display: "inline-block",
52420
52693
  marginTop: "4px"
52421
52694
  }
52422
52695
  }, "PAYABLE POST VERIFICATION")))), /*#__PURE__*/React__default.createElement("div", {
52423
52696
  style: {
52424
- padding: "16px",
52697
+ padding: isMobileView ? "12px" : "16px",
52425
52698
  backgroundColor: "#fffbeb",
52426
52699
  border: "1px solid #ffeeba",
52427
52700
  borderRadius: "8px",
@@ -52430,8 +52703,47 @@ const Step4_Preview = _ref => {
52430
52703
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
52431
52704
  label: "I want to go ahead with submitting this application. I confirm that the details and information provided by me are true and correct to the best of my knowledge.",
52432
52705
  onChange: e => setAgreed(e.target.checked),
52433
- checked: agreed
52434
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement("button", {
52706
+ checked: agreed,
52707
+ style: isMobileView ? {
52708
+ fontSize: "12px"
52709
+ } : undefined
52710
+ })), isMobileView ? /*#__PURE__*/React__default.createElement("div", {
52711
+ style: {
52712
+ display: "flex",
52713
+ flexDirection: "column",
52714
+ gap: "12px",
52715
+ marginBottom: "16px"
52716
+ }
52717
+ }, /*#__PURE__*/React__default.createElement("button", {
52718
+ type: "button",
52719
+ onClick: onSubmit,
52720
+ disabled: !agreed || isLoading,
52721
+ style: {
52722
+ padding: "14px 20px",
52723
+ backgroundColor: !agreed || isLoading ? "#ccc" : "#00497e",
52724
+ color: "white",
52725
+ border: "none",
52726
+ borderRadius: "4px",
52727
+ cursor: !agreed || isLoading ? "not-allowed" : "pointer",
52728
+ fontWeight: "bold",
52729
+ fontSize: "15px",
52730
+ width: "100%",
52731
+ opacity: !agreed || isLoading ? 0.6 : 1
52732
+ }
52733
+ }, isLoading ? "Submitting..." : "Submit Mutation Application"), /*#__PURE__*/React__default.createElement("button", {
52734
+ type: "button",
52735
+ onClick: onBack,
52736
+ style: {
52737
+ padding: "12px 20px",
52738
+ backgroundColor: "#e0e0e0",
52739
+ border: "none",
52740
+ borderRadius: "4px",
52741
+ cursor: "pointer",
52742
+ fontWeight: "bold",
52743
+ width: "100%",
52744
+ fontSize: "14px"
52745
+ }
52746
+ }, "\u2190 Edit Information")) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement("button", {
52435
52747
  type: "button",
52436
52748
  onClick: onBack,
52437
52749
  style: {
@@ -52463,9 +52775,10 @@ const Step5_Submission = _ref => {
52463
52775
  const goHome = () => {
52464
52776
  history.push("/digit-ui/employee");
52465
52777
  };
52778
+ const isMobileView = window.innerWidth < 768;
52466
52779
  return /*#__PURE__*/React__default.createElement("div", {
52467
52780
  style: {
52468
- padding: "16px 0"
52781
+ padding: isMobileView ? "8px 0" : "16px 0"
52469
52782
  }
52470
52783
  }, /*#__PURE__*/React__default.createElement("div", {
52471
52784
  style: {
@@ -52473,18 +52786,18 @@ const Step5_Submission = _ref => {
52473
52786
  border: "1px solid #d4edda",
52474
52787
  borderTop: "4px solid #28a745",
52475
52788
  borderRadius: "8px",
52476
- padding: "20px",
52789
+ padding: isMobileView ? "16px" : "20px",
52477
52790
  display: "flex",
52791
+ flexDirection: isMobileView ? "column" : "row",
52478
52792
  justifyContent: "space-between",
52479
- alignItems: "flex-start",
52480
- flexWrap: "wrap",
52793
+ alignItems: isMobileView ? "stretch" : "flex-start",
52481
52794
  gap: "12px",
52482
52795
  marginBottom: "20px"
52483
52796
  }
52484
52797
  }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("h2", {
52485
52798
  style: {
52486
52799
  color: "#28a745",
52487
- fontSize: "18px",
52800
+ fontSize: isMobileView ? "15px" : "18px",
52488
52801
  fontWeight: "bold",
52489
52802
  margin: "0 0 4px",
52490
52803
  display: "flex",
@@ -52492,24 +52805,28 @@ const Step5_Submission = _ref => {
52492
52805
  flexWrap: "wrap",
52493
52806
  gap: "6px"
52494
52807
  }
52495
- }, /*#__PURE__*/React__default.createElement("span", null, "\u2705"), " Your application has been submitted successfully to the respective Zonal Officer !"), /*#__PURE__*/React__default.createElement("div", {
52808
+ }, /*#__PURE__*/React__default.createElement("span", null, "\u2705"), " Your application has been submitted successfully to the respective Zonal Officer!"), /*#__PURE__*/React__default.createElement("div", {
52496
52809
  style: {
52497
52810
  color: "#666",
52498
52811
  marginTop: "4px",
52499
- fontSize: "14px",
52812
+ fontSize: isMobileView ? "13px" : "14px",
52500
52813
  wordBreak: "break-all"
52501
52814
  }
52502
52815
  }, "Your SRN Reference No. is: ", /*#__PURE__*/React__default.createElement("strong", {
52503
52816
  style: {
52504
52817
  color: "#00497e"
52505
52818
  }
52506
- }, applicationNumber))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("span", {
52819
+ }, applicationNumber))), /*#__PURE__*/React__default.createElement("div", {
52820
+ style: {
52821
+ alignSelf: isMobileView ? "flex-start" : undefined
52822
+ }
52823
+ }, /*#__PURE__*/React__default.createElement("span", {
52507
52824
  style: {
52508
52825
  padding: "6px 12px",
52509
52826
  backgroundColor: "#fff3cd",
52510
52827
  color: "#856404",
52511
52828
  borderRadius: "16px",
52512
- fontSize: "12px",
52829
+ fontSize: isMobileView ? "11px" : "12px",
52513
52830
  fontWeight: "bold",
52514
52831
  whiteSpace: "nowrap"
52515
52832
  }
@@ -52521,7 +52838,7 @@ const Step5_Submission = _ref => {
52521
52838
  }, /*#__PURE__*/React__default.createElement("button", {
52522
52839
  onClick: goHome,
52523
52840
  style: {
52524
- padding: "12px 28px",
52841
+ padding: isMobileView ? "14px 28px" : "12px 28px",
52525
52842
  backgroundColor: "#00497e",
52526
52843
  color: "white",
52527
52844
  border: "none",
@@ -52529,7 +52846,7 @@ const Step5_Submission = _ref => {
52529
52846
  cursor: "pointer",
52530
52847
  fontWeight: "bold",
52531
52848
  fontSize: "15px",
52532
- width: "100%",
52849
+ width: isMobileView ? "100%" : "auto",
52533
52850
  maxWidth: "280px"
52534
52851
  }
52535
52852
  }, "Go to Home")), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
@@ -52541,7 +52858,7 @@ const Step5_Submission = _ref => {
52541
52858
  };
52542
52859
 
52543
52860
  const MutationApplication = () => {
52544
- var _Digit$SessionStorage, _user$info, _state, _user$info2, _user$info2$userName, _user$info3, _user$info4, _details$applicationD, _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a4, _applicationDetails$a7, _applicationDetails$a8;
52861
+ var _Digit$SessionStorage, _user$info, _state, _user$info2, _user$info2$userName, _user$info3, _user$info4, _details$applicationD, _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a4, _applicationDetails$a8, _applicationDetails$a9;
52545
52862
  const _useTranslation = reactI18next.useTranslation(),
52546
52863
  t = _useTranslation.t;
52547
52864
  let _useLocation = reactRouterDom.useLocation(),
@@ -52793,7 +53110,7 @@ const MutationApplication = () => {
52793
53110
  try {
52794
53111
  setIsSubmitting(true);
52795
53112
  return Promise.resolve(_catch(function () {
52796
- var _finalData$cpt;
53113
+ var _finalData$cpt, _applicationDetails$a5, _applicationDetails$W, _applicationDetails$W2, _applicationDetails$S, _applicationDetails$S2, _details$applicationD2;
52797
53114
  let finalData = _extends({}, sessionFormData);
52798
53115
  if (!(finalData !== null && finalData !== void 0 && (_finalData$cpt = finalData.cpt) !== null && _finalData$cpt !== void 0 && _finalData$cpt.details)) {
52799
53116
  var _propertyDetails$Prop3;
@@ -52824,7 +53141,9 @@ const MutationApplication = () => {
52824
53141
  })];
52825
53142
  }
52826
53143
  const sessionDetails = sessionStorage.getItem("WS_EDIT_APPLICATION_DETAILS") ? JSON.parse(sessionStorage.getItem("WS_EDIT_APPLICATION_DETAILS")) : {};
53144
+ const existingDocs = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a5 = applicationDetails.applicationData) === null || _applicationDetails$a5 === void 0 ? void 0 : _applicationDetails$a5.documents) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$W = applicationDetails.WaterConnection) === null || _applicationDetails$W === void 0 ? void 0 : (_applicationDetails$W2 = _applicationDetails$W[0]) === null || _applicationDetails$W2 === void 0 ? void 0 : _applicationDetails$W2.documents) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$S = applicationDetails.SewerageConnections) === null || _applicationDetails$S === void 0 ? void 0 : (_applicationDetails$S2 = _applicationDetails$S[0]) === null || _applicationDetails$S2 === void 0 ? void 0 : _applicationDetails$S2.documents) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.documents) || (details === null || details === void 0 ? void 0 : (_details$applicationD2 = details.applicationData) === null || _details$applicationD2 === void 0 ? void 0 : _details$applicationD2.documents) || (details === null || details === void 0 ? void 0 : details.documents) || [];
52827
53145
  return Promise.resolve(convertModifyApplicationDetails(finalData, sessionDetails, "INITIATE")).then(function (convertAppData) {
53146
+ var _convertAppData$docum;
52828
53147
  if (!convertAppData.dateEffectiveFrom) {
52829
53148
  convertAppData.dateEffectiveFrom = Date.now() + 86400000;
52830
53149
  }
@@ -52865,16 +53184,22 @@ const MutationApplication = () => {
52865
53184
  convertAppData.additionalDetails.identityProofDocumentId = mutDetails.identityProofDocumentId || "";
52866
53185
  }
52867
53186
  }
53187
+ if ((convertAppData === null || convertAppData === void 0 ? void 0 : (_convertAppData$docum = convertAppData.documents) === null || _convertAppData$docum === void 0 ? void 0 : _convertAppData$docum.length) > 0 && existingDocs.length > 0) {
53188
+ convertAppData.documents = mapExistingDocIdsToPayload(convertAppData.documents, existingDocs);
53189
+ }
52868
53190
  convertAppData.applicationType = resolvedServiceType === "WATER" ? "MUTATION_WATER_CONNECTION" : "MUTATION_SEWERAGE_CONNECTION";
52869
53191
  if (isEditFlow) {
52870
- var _applicationDetails$a5, _applicationDetails$a6, _Digit, _Digit$Customizations, _Digit$Customizations2;
53192
+ var _applicationDetails$a6, _applicationDetails$a7, _updatePayload, _updatePayload$docume, _Digit, _Digit$Customizations, _Digit$Customizations2;
52871
53193
  let updatePayload = _extends({}, convertAppData, {
52872
- id: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a5 = applicationDetails.applicationData) === null || _applicationDetails$a5 === void 0 ? void 0 : _applicationDetails$a5.id,
53194
+ id: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a6 = applicationDetails.applicationData) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.id,
52873
53195
  applicationNo: editApplicationNumber,
52874
- processInstance: _extends({}, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a6 = applicationDetails.applicationData) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.processInstance, convertAppData === null || convertAppData === void 0 ? void 0 : convertAppData.processInstance, {
53196
+ processInstance: _extends({}, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a7 = applicationDetails.applicationData) === null || _applicationDetails$a7 === void 0 ? void 0 : _applicationDetails$a7.processInstance, convertAppData === null || convertAppData === void 0 ? void 0 : convertAppData.processInstance, {
52875
53197
  action: "RESUBMIT_APPLICATION"
52876
53198
  })
52877
53199
  });
53200
+ if (((_updatePayload = updatePayload) === null || _updatePayload === void 0 ? void 0 : (_updatePayload$docume = _updatePayload.documents) === null || _updatePayload$docume === void 0 ? void 0 : _updatePayload$docume.length) > 0 && existingDocs.length > 0) {
53201
+ updatePayload.documents = mapExistingDocIdsToPayload(updatePayload.documents, existingDocs);
53202
+ }
52878
53203
  if ((_Digit = Digit) !== null && _Digit !== void 0 && (_Digit$Customizations = _Digit.Customizations) !== null && _Digit$Customizations !== void 0 && (_Digit$Customizations2 = _Digit$Customizations.WS) !== null && _Digit$Customizations2 !== void 0 && _Digit$Customizations2.customiseUpdatePayloadOfWS) {
52879
53204
  updatePayload = Digit.Customizations.WS.customiseUpdatePayloadOfWS((applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData) || {}, updatePayload, resolvedServiceType);
52880
53205
  }
@@ -52964,7 +53289,7 @@ const MutationApplication = () => {
52964
53289
  message: data.Errors[0].message || "Failed to submit application"
52965
53290
  });
52966
53291
  } else {
52967
- var _data$WaterConnection, _data$SewerageConnect, _Digit2, _Digit2$Customization, _Digit2$Customization2;
53292
+ var _data$WaterConnection, _data$SewerageConnect, _updatePayload2, _updatePayload2$docum, _Digit2, _Digit2$Customization, _Digit2$Customization2;
52968
53293
  const updateMutation = resolvedServiceType === "WATER" ? waterUpdateMutation : sewerageUpdateMutation;
52969
53294
  const createdConnection = resolvedServiceType === "WATER" ? data === null || data === void 0 ? void 0 : (_data$WaterConnection = data.WaterConnection) === null || _data$WaterConnection === void 0 ? void 0 : _data$WaterConnection[0] : data === null || data === void 0 ? void 0 : (_data$SewerageConnect = data.SewerageConnections) === null || _data$SewerageConnect === void 0 ? void 0 : _data$SewerageConnect[0];
52970
53295
  let updatePayload = _extends({}, createdConnection, {
@@ -52973,6 +53298,10 @@ const MutationApplication = () => {
52973
53298
  action: "APPLY_MUTATION"
52974
53299
  })
52975
53300
  });
53301
+ const combinedExistingDocs = [...existingDocs, ...((createdConnection === null || createdConnection === void 0 ? void 0 : createdConnection.documents) || [])];
53302
+ if (((_updatePayload2 = updatePayload) === null || _updatePayload2 === void 0 ? void 0 : (_updatePayload2$docum = _updatePayload2.documents) === null || _updatePayload2$docum === void 0 ? void 0 : _updatePayload2$docum.length) > 0 && combinedExistingDocs.length > 0) {
53303
+ updatePayload.documents = mapExistingDocIdsToPayload(updatePayload.documents, combinedExistingDocs);
53304
+ }
52976
53305
  if ((_Digit2 = Digit) !== null && _Digit2 !== void 0 && (_Digit2$Customization = _Digit2.Customizations) !== null && _Digit2$Customization !== void 0 && (_Digit2$Customization2 = _Digit2$Customization.WS) !== null && _Digit2$Customization2 !== void 0 && _Digit2$Customization2.customiseUpdatePayloadOfWS) {
52977
53306
  updatePayload = Digit.Customizations.WS.customiseUpdatePayloadOfWS(createdConnection, updatePayload, resolvedServiceType);
52978
53307
  }
@@ -53094,7 +53423,7 @@ const MutationApplication = () => {
53094
53423
  }
53095
53424
  }, currentStep === 1 && /*#__PURE__*/React__default.createElement(Step1_SearchConnection, {
53096
53425
  t: t,
53097
- defaultKNumber: isEditFlow ? applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a7 = applicationDetails.applicationData) === null || _applicationDetails$a7 === void 0 ? void 0 : _applicationDetails$a7.connectionNo : "",
53426
+ defaultKNumber: isEditFlow ? applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a8 = applicationDetails.applicationData) === null || _applicationDetails$a8 === void 0 ? void 0 : _applicationDetails$a8.connectionNo : "",
53098
53427
  onNext: _ref => {
53099
53428
  let kNumber = _ref.kNumber,
53100
53429
  mobileNumber = _ref.mobileNumber,
@@ -53108,7 +53437,7 @@ const MutationApplication = () => {
53108
53437
  }), currentStep === 2 && /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(Step1_ExistingConnection, {
53109
53438
  t: t,
53110
53439
  applicationDetails: applicationDetails,
53111
- propertyId: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a8 = applicationDetails.applicationData) === null || _applicationDetails$a8 === void 0 ? void 0 : _applicationDetails$a8.propertyId,
53440
+ propertyId: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a9 = applicationDetails.applicationData) === null || _applicationDetails$a9 === void 0 ? void 0 : _applicationDetails$a9.propertyId,
53112
53441
  mobileNumber: authMobileNumber,
53113
53442
  onVerify: () => {
53114
53443
  setCompletedSteps(prev => new Set([...prev, 2]));