@djb25/digit-ui-module-ws 1.0.107 → 1.0.109
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 +813 -715
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +813 -715
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -13250,7 +13250,7 @@ const WSConnectionDetails = _ref => {
|
|
|
13250
13250
|
if ((formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD2 = formData.ConnectionDetails) === null || _formData$ConnectionD2 === void 0 ? void 0 : _formData$ConnectionD2.length) > 0) {
|
|
13251
13251
|
const incoming = formData.ConnectionDetails[0];
|
|
13252
13252
|
const current = connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails[0];
|
|
13253
|
-
if (!
|
|
13253
|
+
if (!lodash.isEqual(current, incoming)) {
|
|
13254
13254
|
setConnectionDetails([incoming]);
|
|
13255
13255
|
}
|
|
13256
13256
|
}
|
|
@@ -13323,9 +13323,6 @@ const WSConnectionDetails = _ref => {
|
|
|
13323
13323
|
}, [commonMastersData]);
|
|
13324
13324
|
useEffect(() => {
|
|
13325
13325
|
var _connectionDetails$, _connectionDetails$2;
|
|
13326
|
-
if (userType === "employee") {
|
|
13327
|
-
onSelect(config.key, connectionDetails);
|
|
13328
|
-
}
|
|
13329
13326
|
if (connectionDetails !== null && connectionDetails !== void 0 && (_connectionDetails$ = connectionDetails[0]) !== null && _connectionDetails$ !== void 0 && _connectionDetails$.water) setWaterSewarageSelection({
|
|
13330
13327
|
water: true,
|
|
13331
13328
|
sewerage: false
|
|
@@ -13336,7 +13333,7 @@ const WSConnectionDetails = _ref => {
|
|
|
13336
13333
|
});
|
|
13337
13334
|
}, [connectionDetails]);
|
|
13338
13335
|
useEffect(() => {
|
|
13339
|
-
if (!(formData !== null && formData !== void 0 && formData.ConnectionDetails)) {
|
|
13336
|
+
if (!(formData !== null && formData !== void 0 && formData.ConnectionDetails) && (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.length) === 0) {
|
|
13340
13337
|
setConnectionDetails([createConnectionDetails()]);
|
|
13341
13338
|
}
|
|
13342
13339
|
}, [formData === null || formData === void 0 ? void 0 : formData.ConnectionDetails]);
|
|
@@ -13892,8 +13889,10 @@ const WSRoadCuttingDetails = _ref => {
|
|
|
13892
13889
|
})) : setRoadCuttingDetails(prev => prev.filter(o => o.key != roadCutt.key));
|
|
13893
13890
|
};
|
|
13894
13891
|
useEffect(() => {
|
|
13895
|
-
|
|
13896
|
-
|
|
13892
|
+
if (!lodash.isEqual(formData === null || formData === void 0 ? void 0 : formData[config === null || config === void 0 ? void 0 : config.key], roadCuttingDetails)) {
|
|
13893
|
+
onSelect(config === null || config === void 0 ? void 0 : config.key, roadCuttingDetails);
|
|
13894
|
+
}
|
|
13895
|
+
}, [roadCuttingDetails, config === null || config === void 0 ? void 0 : config.key]);
|
|
13897
13896
|
const commonProps = {
|
|
13898
13897
|
focusIndex,
|
|
13899
13898
|
allRoadCuttingDetails: roadCuttingDetails,
|
|
@@ -14315,18 +14314,11 @@ const WSConnectionHolderDetails = _ref => {
|
|
|
14315
14314
|
const data = connectionHolderDetails.map(e => {
|
|
14316
14315
|
return e;
|
|
14317
14316
|
});
|
|
14318
|
-
|
|
14319
|
-
|
|
14320
|
-
|
|
14321
|
-
useEffect(() => {
|
|
14322
|
-
if (userType === "employee") {
|
|
14323
|
-
var _formData$config$key;
|
|
14324
|
-
onSelect(config.key, [{
|
|
14325
|
-
...((_formData$config$key = formData[config.key]) === null || _formData$config$key === void 0 ? void 0 : _formData$config$key[0]),
|
|
14326
|
-
...(connectionHolderDetails === null || connectionHolderDetails === void 0 ? void 0 : connectionHolderDetails[0])
|
|
14327
|
-
}]);
|
|
14317
|
+
if (!lodash.isEqual(formData === null || formData === void 0 ? void 0 : formData[config === null || config === void 0 ? void 0 : config.key], data)) {
|
|
14318
|
+
onSelect(config === null || config === void 0 ? void 0 : config.key, data);
|
|
14319
|
+
}
|
|
14328
14320
|
}
|
|
14329
|
-
}, [connectionHolderDetails]);
|
|
14321
|
+
}, [connectionHolderDetails, config === null || config === void 0 ? void 0 : config.key]);
|
|
14330
14322
|
function ispagereloadingenabled(eyeclick) {
|
|
14331
14323
|
var _Object$values, _formData$ConnectionH2;
|
|
14332
14324
|
if ((window.location.href.includes("edit") || window.location.href.includes("modify")) && formData !== null && formData !== void 0 && formData.ConnectionHolderDetails && ((_Object$values = Object.values(formData === null || formData === void 0 ? void 0 : (_formData$ConnectionH2 = formData.ConnectionHolderDetails) === null || _formData$ConnectionH2 === void 0 ? void 0 : _formData$ConnectionH2[0])) === null || _Object$values === void 0 ? void 0 : _Object$values.length) > 1) {
|
|
@@ -16460,8 +16452,10 @@ const WSActivationPlumberDetails = _ref => {
|
|
|
16460
16452
|
const data = plumberDetails.length && plumberDetails.map(e => {
|
|
16461
16453
|
return e;
|
|
16462
16454
|
});
|
|
16463
|
-
|
|
16464
|
-
|
|
16455
|
+
if (data && !lodash.isEqual(formData === null || formData === void 0 ? void 0 : formData[config === null || config === void 0 ? void 0 : config.key], data)) {
|
|
16456
|
+
onSelect(config === null || config === void 0 ? void 0 : config.key, data);
|
|
16457
|
+
}
|
|
16458
|
+
}, [plumberDetails, formData === null || formData === void 0 ? void 0 : (_formData$connectionD = formData.connectionDetails) === null || _formData$connectionD === void 0 ? void 0 : (_formData$connectionD2 = _formData$connectionD[0]) === null || _formData$connectionD2 === void 0 ? void 0 : _formData$connectionD2.connectionType, config === null || config === void 0 ? void 0 : config.key]);
|
|
16465
16459
|
const commonProps = {
|
|
16466
16460
|
focusIndex,
|
|
16467
16461
|
allOwners: plumberDetails,
|
|
@@ -18911,9 +18905,12 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18911
18905
|
};
|
|
18912
18906
|
onSelect(config.key, documentStep);
|
|
18913
18907
|
} else {
|
|
18914
|
-
|
|
18908
|
+
const docPayload = {
|
|
18915
18909
|
documents: removeDuplicateOtherDocuments(documents)
|
|
18916
|
-
}
|
|
18910
|
+
};
|
|
18911
|
+
if (!lodash.isEqual(formData === null || formData === void 0 ? void 0 : formData[config.key], docPayload)) {
|
|
18912
|
+
onSelect(config.key, docPayload);
|
|
18913
|
+
}
|
|
18917
18914
|
}
|
|
18918
18915
|
};
|
|
18919
18916
|
const downloadDocument = function () {
|
|
@@ -25854,7 +25851,7 @@ const WSDjbEmployee = _ref => {
|
|
|
25854
25851
|
};
|
|
25855
25852
|
|
|
25856
25853
|
const WSDivyangjan = _ref => {
|
|
25857
|
-
var _formData$disability, _formData$additionalD;
|
|
25854
|
+
var _formData$disability, _formData$additionalD, _formData$config$key2;
|
|
25858
25855
|
let {
|
|
25859
25856
|
config,
|
|
25860
25857
|
onSelect,
|
|
@@ -25883,11 +25880,16 @@ const WSDivyangjan = _ref => {
|
|
|
25883
25880
|
}, [onSelect]);
|
|
25884
25881
|
useEffect(() => {
|
|
25885
25882
|
if (userType === "employee") {
|
|
25886
|
-
|
|
25887
|
-
|
|
25888
|
-
|
|
25883
|
+
var _formData$config$key;
|
|
25884
|
+
const currentVal = formData === null || formData === void 0 ? void 0 : (_formData$config$key = formData[config.key]) === null || _formData$config$key === void 0 ? void 0 : _formData$config$key.isDivyangjan;
|
|
25885
|
+
const newVal = !!formValue.isDivyangjan;
|
|
25886
|
+
if (currentVal !== newVal) {
|
|
25887
|
+
onSelectRef.current(config.key, {
|
|
25888
|
+
isDivyangjan: newVal
|
|
25889
|
+
});
|
|
25890
|
+
}
|
|
25889
25891
|
}
|
|
25890
|
-
}, [config.key, formValue.isDivyangjan, userType]);
|
|
25892
|
+
}, [config.key, formValue.isDivyangjan, userType, formData === null || formData === void 0 ? void 0 : (_formData$config$key2 = formData[config.key]) === null || _formData$config$key2 === void 0 ? void 0 : _formData$config$key2.isDivyangjan]);
|
|
25891
25893
|
const content = /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
25892
25894
|
title: t("Are you a Divyangjan/Person with Disability?"),
|
|
25893
25895
|
defaultOpen: true
|
|
@@ -29491,11 +29493,7 @@ const WSCard = () => {
|
|
|
29491
29493
|
setTotalCount(waterCount);
|
|
29492
29494
|
}
|
|
29493
29495
|
}, [wsData]);
|
|
29494
|
-
let links = [
|
|
29495
|
-
label: t("WS_APPLY_NEW_CONNECTION_HOME_CARD_LABEL"),
|
|
29496
|
-
link: `/digit-ui/employee/ws/info`,
|
|
29497
|
-
roles: ["WS_CEMP", "SW_CEMP"]
|
|
29498
|
-
}];
|
|
29496
|
+
let links = [];
|
|
29499
29497
|
links = links.filter(link => link.roles ? checkForEmployee(link.roles) : true);
|
|
29500
29498
|
const propsForModuleCard = {
|
|
29501
29499
|
Icon: /*#__PURE__*/React.createElement(WSICon, null),
|
|
@@ -29513,43 +29511,43 @@ const WSCard = () => {
|
|
|
29513
29511
|
count: isWSInboxLoading ? "-" : wsData === null || wsData === void 0 ? void 0 : wsData.totalCount,
|
|
29514
29512
|
label: t("WATER_INBOX"),
|
|
29515
29513
|
link: `/digit-ui/employee/ws/water/inbox`,
|
|
29516
|
-
roles: ["WS_CEMP", "
|
|
29514
|
+
roles: ["WS_CEMP", "WS_ZRO", "EE"]
|
|
29517
29515
|
}, {
|
|
29518
29516
|
label: t("WS_BILL_AMENDMENT_INBOX", "Bill Amendment Inbox"),
|
|
29519
29517
|
link: `/digit-ui/employee/ws/water/bill-amendment/inbox`,
|
|
29520
|
-
roles: ["WS_CEMP", "
|
|
29518
|
+
roles: ["WS_CEMP", "WS_ZRO", "EE"]
|
|
29521
29519
|
}, {
|
|
29522
29520
|
label: t("WS_BILL_AMENDMENT_APPLICATION_SEARCH", "Search Bill Amendment Application"),
|
|
29523
29521
|
link: `/digit-ui/employee/ws/water/bill-amendment/search-application`,
|
|
29524
|
-
roles: ["WS_CEMP", "
|
|
29522
|
+
roles: ["WS_CEMP", "WS_ZRO", "EE"]
|
|
29525
29523
|
}, ...links, {
|
|
29526
29524
|
label: t("WS_WATER_CONNECTION_SEARCH_LABEL"),
|
|
29527
29525
|
link: `/digit-ui/employee/ws/water/search-connection`,
|
|
29528
|
-
roles: ["WS_CEMP", "
|
|
29526
|
+
roles: ["WS_CEMP", "WS_ZRO", "EE"]
|
|
29529
29527
|
}, {
|
|
29530
29528
|
label: t("WS_WATER_APPLICATION_SEARCH"),
|
|
29531
29529
|
link: `/digit-ui/employee/ws/water/search-application`,
|
|
29532
|
-
roles: ["WS_CEMP", "
|
|
29530
|
+
roles: ["WS_CEMP", "WS_ZRO", "EE"]
|
|
29533
29531
|
}, {
|
|
29534
29532
|
label: t("WS_CALCULATION"),
|
|
29535
29533
|
link: `/digit-ui/employee/ws/water/calculation`,
|
|
29536
|
-
roles: ["WS_CEMP", "
|
|
29534
|
+
roles: ["WS_CEMP", "WS_ZRO"]
|
|
29537
29535
|
}, {
|
|
29538
29536
|
label: t("WS_APPLY_MUTATION"),
|
|
29539
29537
|
link: `/digit-ui/employee/ws/mutation-application`,
|
|
29540
|
-
roles: [
|
|
29538
|
+
roles: []
|
|
29541
29539
|
}, {
|
|
29542
29540
|
label: t("WS_ZRO_VERIFICATION"),
|
|
29543
29541
|
link: `/digit-ui/employee/ws/zro-application`,
|
|
29544
|
-
roles: ["WS_CEMP", "
|
|
29542
|
+
roles: ["WS_CEMP", "WS_ZRO"]
|
|
29545
29543
|
}, {
|
|
29546
29544
|
label: t("WS_DISCONNECTION"),
|
|
29547
29545
|
link: `/digit-ui/employee/ws/new-disconnection`,
|
|
29548
|
-
roles: [
|
|
29546
|
+
roles: []
|
|
29549
29547
|
}, {
|
|
29550
29548
|
label: t("WS_RECONNECTION"),
|
|
29551
29549
|
link: `/digit-ui/employee/ws/new-restoration`,
|
|
29552
|
-
roles: [
|
|
29550
|
+
roles: []
|
|
29553
29551
|
}].filter(link => link.roles ? checkForEmployee(link.roles) : true)
|
|
29554
29552
|
};
|
|
29555
29553
|
return /*#__PURE__*/React.createElement(EmployeeModuleCard, propsForModuleCard);
|
|
@@ -29598,11 +29596,7 @@ const SWCard = () => {
|
|
|
29598
29596
|
setTotalCount(sewerageCount);
|
|
29599
29597
|
}
|
|
29600
29598
|
}, [swData]);
|
|
29601
|
-
let links = [
|
|
29602
|
-
label: t("WS_APPLY_NEW_CONNECTION_HOME_CARD_LABEL"),
|
|
29603
|
-
link: `/digit-ui/employee/ws/create-application`,
|
|
29604
|
-
roles: ["WS_CEMP", "SW_CEMP"]
|
|
29605
|
-
}];
|
|
29599
|
+
let links = [];
|
|
29606
29600
|
links = links.filter(link => link.roles ? checkForEmployee(link.roles) : true);
|
|
29607
29601
|
const propsForModuleCard = {
|
|
29608
29602
|
Icon: /*#__PURE__*/React.createElement(WSICon, null),
|
|
@@ -36973,10 +36967,122 @@ const ConsumptionDetails = _ref => {
|
|
|
36973
36967
|
});
|
|
36974
36968
|
};
|
|
36975
36969
|
const consumption = (currentReading, lastReading) => {
|
|
36976
|
-
if (currentReading && lastReading) {
|
|
36970
|
+
if (currentReading !== null && currentReading !== undefined && lastReading !== null && lastReading !== undefined && currentReading !== "" && lastReading !== "") {
|
|
36977
36971
|
return Number(currentReading - lastReading);
|
|
36978
36972
|
} else return t("NA");
|
|
36979
36973
|
};
|
|
36974
|
+
const columns = useMemo(() => [{
|
|
36975
|
+
Header: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
36976
|
+
accessor: "connectionNo",
|
|
36977
|
+
disableSortBy: true,
|
|
36978
|
+
Cell: _ref2 => {
|
|
36979
|
+
var _row$original;
|
|
36980
|
+
let {
|
|
36981
|
+
row
|
|
36982
|
+
} = _ref2;
|
|
36983
|
+
return /*#__PURE__*/React.createElement("span", null, ((_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.connectionNo) || t("NA"));
|
|
36984
|
+
}
|
|
36985
|
+
}, {
|
|
36986
|
+
Header: t("WS_VIEW_BILL_BILLING_PERIOD_LABEL"),
|
|
36987
|
+
accessor: "billingPeriod",
|
|
36988
|
+
disableSortBy: true,
|
|
36989
|
+
Cell: _ref3 => {
|
|
36990
|
+
var _row$original2;
|
|
36991
|
+
let {
|
|
36992
|
+
row
|
|
36993
|
+
} = _ref3;
|
|
36994
|
+
return /*#__PURE__*/React.createElement("span", null, ((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.billingPeriod) || t("NA"));
|
|
36995
|
+
}
|
|
36996
|
+
}, {
|
|
36997
|
+
Header: t("WS_READING_QUALITY_CODE"),
|
|
36998
|
+
accessor: "readingQualityCode",
|
|
36999
|
+
disableSortBy: true,
|
|
37000
|
+
Cell: _ref4 => {
|
|
37001
|
+
var _row$original3;
|
|
37002
|
+
let {
|
|
37003
|
+
row
|
|
37004
|
+
} = _ref4;
|
|
37005
|
+
return /*#__PURE__*/React.createElement("span", null, ((_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.readingQualityCode) || t("NA"));
|
|
37006
|
+
}
|
|
37007
|
+
}, {
|
|
37008
|
+
Header: t("WS_CONSUMPTION_DETAILS_LAST_READING_LABEL"),
|
|
37009
|
+
accessor: "lastReading",
|
|
37010
|
+
disableSortBy: true,
|
|
37011
|
+
Cell: _ref5 => {
|
|
37012
|
+
var _row$original4, _row$original5, _row$original6;
|
|
37013
|
+
let {
|
|
37014
|
+
row
|
|
37015
|
+
} = _ref5;
|
|
37016
|
+
return /*#__PURE__*/React.createElement("span", null, ((_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4.lastReading) !== undefined && ((_row$original5 = row.original) === null || _row$original5 === void 0 ? void 0 : _row$original5.lastReading) !== null ? (_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : _row$original6.lastReading : t("NA"));
|
|
37017
|
+
}
|
|
37018
|
+
}, {
|
|
37019
|
+
Header: t("WS_CONSUMPTION_DETAILS_LAST_READING_DATE_LABEL"),
|
|
37020
|
+
accessor: "lastReadingDate",
|
|
37021
|
+
disableSortBy: true,
|
|
37022
|
+
Cell: _ref6 => {
|
|
37023
|
+
var _row$original7, _row$original8;
|
|
37024
|
+
let {
|
|
37025
|
+
row
|
|
37026
|
+
} = _ref6;
|
|
37027
|
+
return /*#__PURE__*/React.createElement("span", null, (_row$original7 = row.original) !== null && _row$original7 !== void 0 && _row$original7.lastReadingDate ? Digit.DateUtils.ConvertEpochToDate((_row$original8 = row.original) === null || _row$original8 === void 0 ? void 0 : _row$original8.lastReadingDate) : t("NA"));
|
|
37028
|
+
}
|
|
37029
|
+
}, {
|
|
37030
|
+
Header: t("WS_SERV_DETAIL_CUR_METER_READ"),
|
|
37031
|
+
accessor: "currentReading",
|
|
37032
|
+
disableSortBy: true,
|
|
37033
|
+
Cell: _ref7 => {
|
|
37034
|
+
var _row$original9, _row$original0, _row$original1;
|
|
37035
|
+
let {
|
|
37036
|
+
row
|
|
37037
|
+
} = _ref7;
|
|
37038
|
+
return /*#__PURE__*/React.createElement("span", null, ((_row$original9 = row.original) === null || _row$original9 === void 0 ? void 0 : _row$original9.currentReading) !== undefined && ((_row$original0 = row.original) === null || _row$original0 === void 0 ? void 0 : _row$original0.currentReading) !== null ? (_row$original1 = row.original) === null || _row$original1 === void 0 ? void 0 : _row$original1.currentReading : t("NA"));
|
|
37039
|
+
}
|
|
37040
|
+
}, {
|
|
37041
|
+
Header: t("WS_CONSUMPTION_DETAILS_CURRENT_READING_DATE_LABEL"),
|
|
37042
|
+
accessor: "currentReadingDate",
|
|
37043
|
+
disableSortBy: true,
|
|
37044
|
+
Cell: _ref8 => {
|
|
37045
|
+
var _row$original10, _row$original11;
|
|
37046
|
+
let {
|
|
37047
|
+
row
|
|
37048
|
+
} = _ref8;
|
|
37049
|
+
return /*#__PURE__*/React.createElement("span", null, (_row$original10 = row.original) !== null && _row$original10 !== void 0 && _row$original10.currentReadingDate ? Digit.DateUtils.ConvertEpochToDate((_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : _row$original11.currentReadingDate) : t("NA"));
|
|
37050
|
+
}
|
|
37051
|
+
}, {
|
|
37052
|
+
Header: t("WS_CONSUMPTION_DETAILS_CONSUMPTION_LABEL"),
|
|
37053
|
+
id: "consumption",
|
|
37054
|
+
disableSortBy: true,
|
|
37055
|
+
Cell: _ref9 => {
|
|
37056
|
+
var _row$original12, _row$original13;
|
|
37057
|
+
let {
|
|
37058
|
+
row
|
|
37059
|
+
} = _ref9;
|
|
37060
|
+
return /*#__PURE__*/React.createElement("span", null, consumption((_row$original12 = row.original) === null || _row$original12 === void 0 ? void 0 : _row$original12.currentReading, (_row$original13 = row.original) === null || _row$original13 === void 0 ? void 0 : _row$original13.lastReading));
|
|
37061
|
+
}
|
|
37062
|
+
}, {
|
|
37063
|
+
Header: t("WS_COMMON_TABLE_COL_ACTION_LABEL"),
|
|
37064
|
+
id: "action",
|
|
37065
|
+
disableSortBy: true,
|
|
37066
|
+
Cell: _ref0 => {
|
|
37067
|
+
let {
|
|
37068
|
+
row
|
|
37069
|
+
} = _ref0;
|
|
37070
|
+
return /*#__PURE__*/React.createElement(SubmitBar, {
|
|
37071
|
+
style: {
|
|
37072
|
+
backgroundColor: "#0A4275",
|
|
37073
|
+
color: "#FFFFFF",
|
|
37074
|
+
minWidth: "auto",
|
|
37075
|
+
padding: "6px 14px",
|
|
37076
|
+
fontSize: "12px",
|
|
37077
|
+
height: "auto",
|
|
37078
|
+
margin: "0px",
|
|
37079
|
+
whiteSpace: "nowrap"
|
|
37080
|
+
},
|
|
37081
|
+
label: t("VIEW_METER_READING_DETAILS"),
|
|
37082
|
+
onSubmit: () => handleViewMeterReadingDetails(row.original)
|
|
37083
|
+
});
|
|
37084
|
+
}
|
|
37085
|
+
}], [t]);
|
|
36980
37086
|
if (isLoading) {
|
|
36981
37087
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
36982
37088
|
}
|
|
@@ -36984,90 +37090,32 @@ const ConsumptionDetails = _ref => {
|
|
|
36984
37090
|
meterReadings
|
|
36985
37091
|
} = data || {};
|
|
36986
37092
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
36987
|
-
className: "employee-form-section-wrapper",
|
|
36988
|
-
style: {
|
|
36989
|
-
display: "flex",
|
|
36990
|
-
gap: "16px",
|
|
36991
|
-
width: "100%"
|
|
36992
|
-
}
|
|
36993
|
-
}, /*#__PURE__*/React.createElement(VerticalTimeline, {
|
|
36994
|
-
config: [{
|
|
36995
|
-
timeLine: [{
|
|
36996
|
-
actions: "WS_VIEW_CONSUMPTION",
|
|
36997
|
-
currentStep: 1
|
|
36998
|
-
}]
|
|
36999
|
-
}],
|
|
37000
|
-
showFinalStep: false
|
|
37001
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
37002
37093
|
style: {
|
|
37003
37094
|
flex: 1,
|
|
37004
37095
|
display: "flex",
|
|
37005
37096
|
flexDirection: "column",
|
|
37006
|
-
gap: "16px"
|
|
37007
|
-
|
|
37008
|
-
|
|
37009
|
-
key: index
|
|
37010
|
-
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
|
|
37011
|
-
style: {
|
|
37012
|
-
display: "flex",
|
|
37013
|
-
justifyContent: "flex-end",
|
|
37014
|
-
marginBottom: "16px",
|
|
37015
|
-
marginTop: "8px",
|
|
37016
|
-
marginRight: "8px"
|
|
37097
|
+
gap: "16px",
|
|
37098
|
+
minWidth: 0,
|
|
37099
|
+
overflowX: "auto"
|
|
37017
37100
|
}
|
|
37018
|
-
}, /*#__PURE__*/React.createElement(
|
|
37019
|
-
|
|
37020
|
-
|
|
37021
|
-
|
|
37022
|
-
|
|
37023
|
-
|
|
37024
|
-
|
|
37025
|
-
|
|
37026
|
-
|
|
37027
|
-
|
|
37028
|
-
|
|
37029
|
-
|
|
37030
|
-
|
|
37031
|
-
|
|
37032
|
-
|
|
37033
|
-
|
|
37034
|
-
|
|
37035
|
-
}), /*#__PURE__*/React.createElement(
|
|
37036
|
-
key: t("WS_CONSUMPTION_DETAILS_METER_STATUS_LABEL"),
|
|
37037
|
-
label: `${t("WS_CONSUMPTION_DETAILS_METER_STATUS_LABEL")}`,
|
|
37038
|
-
text: (application === null || application === void 0 ? void 0 : application.meterStatus) || t("NA"),
|
|
37039
|
-
className: "border-none"
|
|
37040
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
37041
|
-
key: t("WS_READING_QUALITY_CODE"),
|
|
37042
|
-
label: `${t("WS_READING_QUALITY_CODE")}`,
|
|
37043
|
-
text: (application === null || application === void 0 ? void 0 : application.readingQualityCode) || t("NA"),
|
|
37044
|
-
className: "border-none"
|
|
37045
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
37046
|
-
key: t("WS_CONSUMPTION_DETAILS_LAST_READING_LABEL"),
|
|
37047
|
-
label: `${t("WS_CONSUMPTION_DETAILS_LAST_READING_LABEL")}`,
|
|
37048
|
-
text: (application === null || application === void 0 ? void 0 : application.lastReading) || t("NA"),
|
|
37049
|
-
className: "border-none"
|
|
37050
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
37051
|
-
key: t("WS_CONSUMPTION_DETAILS_LAST_READING_DATE_LABEL"),
|
|
37052
|
-
label: `${t("WS_CONSUMPTION_DETAILS_LAST_READING_DATE_LABEL")}`,
|
|
37053
|
-
text: application !== null && application !== void 0 && application.lastReadingDate ? Digit.DateUtils.ConvertEpochToDate(application === null || application === void 0 ? void 0 : application.lastReadingDate) : t("NA"),
|
|
37054
|
-
className: "border-none"
|
|
37055
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
37056
|
-
key: t("WS_SERV_DETAIL_CUR_METER_READ"),
|
|
37057
|
-
label: `${t("WS_SERV_DETAIL_CUR_METER_READ")}`,
|
|
37058
|
-
text: (application === null || application === void 0 ? void 0 : application.currentReading) || t("NA"),
|
|
37059
|
-
className: "border-none"
|
|
37060
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
37061
|
-
key: t("WS_CONSUMPTION_DETAILS_CURRENT_READING_DATE_LABEL"),
|
|
37062
|
-
label: `${t("WS_CONSUMPTION_DETAILS_CURRENT_READING_DATE_LABEL")}`,
|
|
37063
|
-
text: application !== null && application !== void 0 && application.currentReadingDate ? Digit.DateUtils.ConvertEpochToDate(application === null || application === void 0 ? void 0 : application.currentReadingDate) : t("NA"),
|
|
37064
|
-
className: "border-none"
|
|
37065
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
37066
|
-
key: t("WS_CONSUMPTION_DETAILS_CONSUMPTION_LABEL"),
|
|
37067
|
-
label: `${t("WS_CONSUMPTION_DETAILS_CONSUMPTION_LABEL")}`,
|
|
37068
|
-
text: consumption(application === null || application === void 0 ? void 0 : application.currentReading, application === null || application === void 0 ? void 0 : application.lastReading),
|
|
37069
|
-
className: "border-none"
|
|
37070
|
-
}))))), !(meterReadings !== null && meterReadings !== void 0 && meterReadings.length) > 0 && /*#__PURE__*/React.createElement("p", {
|
|
37101
|
+
}, (meterReadings === null || meterReadings === void 0 ? void 0 : meterReadings.length) > 0 ? /*#__PURE__*/React.createElement(Table, {
|
|
37102
|
+
t: t,
|
|
37103
|
+
data: meterReadings,
|
|
37104
|
+
columns: columns,
|
|
37105
|
+
totalRecords: meterReadings === null || meterReadings === void 0 ? void 0 : meterReadings.length,
|
|
37106
|
+
manualPagination: false,
|
|
37107
|
+
isPaginationRequired: true,
|
|
37108
|
+
pageSizeLimit: 10,
|
|
37109
|
+
disableSort: true,
|
|
37110
|
+
autoSort: false,
|
|
37111
|
+
getCellProps: () => ({
|
|
37112
|
+
style: {
|
|
37113
|
+
whiteSpace: "nowrap",
|
|
37114
|
+
padding: "16px 14px",
|
|
37115
|
+
fontSize: "14px"
|
|
37116
|
+
}
|
|
37117
|
+
})
|
|
37118
|
+
}) : /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("p", {
|
|
37071
37119
|
style: {
|
|
37072
37120
|
marginLeft: "16px",
|
|
37073
37121
|
marginTop: "16px"
|
|
@@ -40209,7 +40257,7 @@ const config$2 = [{
|
|
|
40209
40257
|
}];
|
|
40210
40258
|
|
|
40211
40259
|
const WNSMyBills = _ref => {
|
|
40212
|
-
var _Digit$UserService$ge, _Digit$
|
|
40260
|
+
var _location$state, _Digit$SessionStorage, _Digit$UserService$ge, _Digit$UserService$ge2, _Digit$UserService$ge3, _Digit$UserService$ge4, _location$state2, _Digit$UserService$ge5, _userInfo$userName, _searchResults, _searchResults2, _searchResults3;
|
|
40213
40261
|
let {
|
|
40214
40262
|
template,
|
|
40215
40263
|
header,
|
|
@@ -40223,25 +40271,26 @@ const WNSMyBills = _ref => {
|
|
|
40223
40271
|
const {
|
|
40224
40272
|
tenantId: _tenantId
|
|
40225
40273
|
} = Digit.Hooks.useQueryParams();
|
|
40226
|
-
|
|
40227
|
-
|
|
40228
|
-
|
|
40229
|
-
tenantId
|
|
40230
|
-
}
|
|
40231
|
-
|
|
40232
|
-
if (!tenantId && !(location !== null && location !== void 0 && (_location$state = location.state) !== null && _location$state !== void 0 && _location$state.fromSearchResults)) {
|
|
40274
|
+
const queryTenantId = _tenantId || (location === null || location === void 0 ? void 0 : (_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.tenantId);
|
|
40275
|
+
let tenantId = queryTenantId || ((_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code) || ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : (_Digit$UserService$ge2 = _Digit$UserService$ge.info) === null || _Digit$UserService$ge2 === void 0 ? void 0 : _Digit$UserService$ge2.permanentCity) || ((_Digit$UserService$ge3 = Digit.UserService.getUser()) === null || _Digit$UserService$ge3 === void 0 ? void 0 : (_Digit$UserService$ge4 = _Digit$UserService$ge3.info) === null || _Digit$UserService$ge4 === void 0 ? void 0 : _Digit$UserService$ge4.tenantId) || Digit.ULBService.getCurrentTenantId();
|
|
40276
|
+
if (!tenantId || tenantId === "dl") {
|
|
40277
|
+
tenantId = "dl.djb";
|
|
40278
|
+
}
|
|
40279
|
+
if (!tenantId && !(location !== null && location !== void 0 && (_location$state2 = location.state) !== null && _location$state2 !== void 0 && _location$state2.fromSearchResults)) {
|
|
40233
40280
|
history.replace(`/digit-ui/citizen/login`, {
|
|
40234
|
-
from:
|
|
40281
|
+
from: location.pathname
|
|
40235
40282
|
});
|
|
40236
40283
|
}
|
|
40237
40284
|
let filters = {};
|
|
40238
|
-
const userInfo = ((_Digit$UserService$
|
|
40285
|
+
const userInfo = ((_Digit$UserService$ge5 = Digit.UserService.getUser()) === null || _Digit$UserService$ge5 === void 0 ? void 0 : _Digit$UserService$ge5.info) || {};
|
|
40239
40286
|
const mobileNumber = userInfo !== null && userInfo !== void 0 && (_userInfo$userName = userInfo.userName) !== null && _userInfo$userName !== void 0 && _userInfo$userName.match(/^[0-9]{10}$/) ? userInfo === null || userInfo === void 0 ? void 0 : userInfo.userName : userInfo === null || userInfo === void 0 ? void 0 : userInfo.mobileNumber;
|
|
40240
40287
|
filters = {
|
|
40241
40288
|
...filters,
|
|
40242
|
-
searchType: "CONNECTION"
|
|
40289
|
+
searchType: "CONNECTION",
|
|
40290
|
+
tenantId
|
|
40243
40291
|
};
|
|
40244
40292
|
const params = {
|
|
40293
|
+
tenantId,
|
|
40245
40294
|
mobileNumber,
|
|
40246
40295
|
...filters
|
|
40247
40296
|
};
|
|
@@ -40271,8 +40320,8 @@ const WNSMyBills = _ref => {
|
|
|
40271
40320
|
const onSubmit = data => {
|
|
40272
40321
|
history.push(`/digit-ui/citizen/payment/my-bills/${data === null || data === void 0 ? void 0 : data.ConsumerNumber.split("/")[0]}/${stringReplaceAll(data === null || data === void 0 ? void 0 : data.ConsumerNumber, "/", "+")}?workflow=WNS&tenantId=${tenantId}&ConsumerName=${data === null || data === void 0 ? void 0 : data.ConsumerName}`);
|
|
40273
40322
|
};
|
|
40274
|
-
let searchResults = Waterresult
|
|
40275
|
-
searchResults = (_searchResults = searchResults) === null || _searchResults === void 0 ? void 0 : _searchResults.filter(ob => (ob === null || ob === void 0 ? void 0 : ob.
|
|
40323
|
+
let searchResults = (Waterresult || []).concat(Sewarageresult || []);
|
|
40324
|
+
searchResults = (_searchResults = searchResults) === null || _searchResults === void 0 ? void 0 : _searchResults.filter(ob => (ob === null || ob === void 0 ? void 0 : ob.ConsumerNumber) && (ob === null || ob === void 0 ? void 0 : ob.hasBill) !== false);
|
|
40276
40325
|
return /*#__PURE__*/React.createElement("div", {
|
|
40277
40326
|
style: {
|
|
40278
40327
|
marginTop: "16px"
|
|
@@ -40611,7 +40660,6 @@ const WSInfoPage = () => {
|
|
|
40611
40660
|
className: "ws-info-container"
|
|
40612
40661
|
}, /*#__PURE__*/React.createElement("style", null, `
|
|
40613
40662
|
.ws-info-container {
|
|
40614
|
-
margin: 0 auto;
|
|
40615
40663
|
padding: 8px 4px 32px 4px;
|
|
40616
40664
|
color: #0b0c0c;
|
|
40617
40665
|
box-sizing: border-box;
|
|
@@ -40632,27 +40680,27 @@ const WSInfoPage = () => {
|
|
|
40632
40680
|
flex-wrap: wrap;
|
|
40633
40681
|
gap: 10px;
|
|
40634
40682
|
align-items: center;
|
|
40635
|
-
margin-bottom:
|
|
40683
|
+
margin-bottom: 20px;
|
|
40636
40684
|
}
|
|
40637
40685
|
.ws-service-tag {
|
|
40638
|
-
background: #
|
|
40639
|
-
color: #
|
|
40640
|
-
font-size:
|
|
40686
|
+
background: #e0f2fe;
|
|
40687
|
+
color: #0369a1;
|
|
40688
|
+
font-size: 11.5px;
|
|
40641
40689
|
font-weight: 700;
|
|
40642
40690
|
text-transform: uppercase;
|
|
40643
40691
|
letter-spacing: 0.5px;
|
|
40644
|
-
padding:
|
|
40645
|
-
border-radius:
|
|
40646
|
-
border: 1px solid #
|
|
40692
|
+
padding: 5px 14px;
|
|
40693
|
+
border-radius: 20px;
|
|
40694
|
+
border: 1px solid #bae6fd;
|
|
40647
40695
|
}
|
|
40648
40696
|
.ws-portal-tag {
|
|
40649
|
-
background: #
|
|
40650
|
-
color: #
|
|
40651
|
-
font-size:
|
|
40697
|
+
background: #f1f5f9;
|
|
40698
|
+
color: #475569;
|
|
40699
|
+
font-size: 11.5px;
|
|
40652
40700
|
font-weight: 600;
|
|
40653
|
-
padding:
|
|
40654
|
-
border-radius:
|
|
40655
|
-
border: 1px solid #
|
|
40701
|
+
padding: 5px 14px;
|
|
40702
|
+
border-radius: 20px;
|
|
40703
|
+
border: 1px solid #e2e8f0;
|
|
40656
40704
|
}
|
|
40657
40705
|
.ws-page-title {
|
|
40658
40706
|
font-size: 26px;
|
|
@@ -40715,57 +40763,61 @@ const WSInfoPage = () => {
|
|
|
40715
40763
|
}
|
|
40716
40764
|
.ws-card {
|
|
40717
40765
|
background: #ffffff;
|
|
40718
|
-
border: 1px solid #
|
|
40766
|
+
border: 1px solid #e2e8f0;
|
|
40719
40767
|
border-radius: 12px;
|
|
40720
|
-
padding: 24px;
|
|
40721
|
-
margin-bottom:
|
|
40722
|
-
box-shadow: 0 2px 10px rgba(
|
|
40768
|
+
padding: 24px 28px;
|
|
40769
|
+
margin-bottom: 20px;
|
|
40770
|
+
box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
|
|
40723
40771
|
}
|
|
40724
40772
|
.ws-step-header {
|
|
40725
40773
|
display: flex;
|
|
40726
40774
|
align-items: flex-start;
|
|
40727
|
-
gap:
|
|
40728
|
-
margin-bottom:
|
|
40729
|
-
padding-bottom:
|
|
40730
|
-
border-bottom: 1px solid #
|
|
40775
|
+
gap: 16px;
|
|
40776
|
+
margin-bottom: 20px;
|
|
40777
|
+
padding-bottom: 18px;
|
|
40778
|
+
border-bottom: 1px solid #f1f5f9;
|
|
40731
40779
|
}
|
|
40732
40780
|
.ws-step-num-badge {
|
|
40733
|
-
background: #1a67a3;
|
|
40781
|
+
background: linear-gradient(135deg, #1a67a3 0%, #0c4a79 100%);
|
|
40734
40782
|
color: #ffffff;
|
|
40735
|
-
font-size:
|
|
40783
|
+
font-size: 15px;
|
|
40736
40784
|
font-weight: 700;
|
|
40737
|
-
width:
|
|
40738
|
-
height:
|
|
40785
|
+
width: 34px;
|
|
40786
|
+
height: 34px;
|
|
40739
40787
|
border-radius: 50%;
|
|
40740
40788
|
display: flex;
|
|
40741
40789
|
align-items: center;
|
|
40742
40790
|
justify-content: center;
|
|
40743
40791
|
flex-shrink: 0;
|
|
40744
|
-
box-shadow: 0 2px
|
|
40792
|
+
box-shadow: 0 2px 6px rgba(26, 103, 163, 0.25);
|
|
40745
40793
|
}
|
|
40746
40794
|
.ws-step-title {
|
|
40747
|
-
font-size:
|
|
40795
|
+
font-size: 18px;
|
|
40748
40796
|
font-weight: 700;
|
|
40749
|
-
color: #
|
|
40797
|
+
color: #0f172a;
|
|
40750
40798
|
margin: 0 0 4px 0;
|
|
40751
40799
|
}
|
|
40752
40800
|
.ws-step-subtitle {
|
|
40753
|
-
font-size:
|
|
40754
|
-
color: #
|
|
40801
|
+
font-size: 13.5px;
|
|
40802
|
+
color: #475569;
|
|
40755
40803
|
margin: 0;
|
|
40756
40804
|
line-height: 1.5;
|
|
40757
40805
|
}
|
|
40758
40806
|
.ws-question-container {
|
|
40759
40807
|
background: #f8fafc;
|
|
40760
40808
|
border: 1px solid #e2e8f0;
|
|
40761
|
-
border-radius:
|
|
40762
|
-
padding: 18px
|
|
40809
|
+
border-radius: 10px;
|
|
40810
|
+
padding: 18px 22px;
|
|
40763
40811
|
margin-bottom: 20px;
|
|
40812
|
+
transition: border-color 0.2s ease;
|
|
40813
|
+
}
|
|
40814
|
+
.ws-question-container:hover {
|
|
40815
|
+
border-color: #cbd5e1;
|
|
40764
40816
|
}
|
|
40765
40817
|
.ws-question-label {
|
|
40766
|
-
font-size:
|
|
40818
|
+
font-size: 15px;
|
|
40767
40819
|
font-weight: 700;
|
|
40768
|
-
color: #
|
|
40820
|
+
color: #0f172a;
|
|
40769
40821
|
display: block;
|
|
40770
40822
|
margin-bottom: 12px;
|
|
40771
40823
|
}
|
|
@@ -41143,39 +41195,67 @@ const WSInfoPage = () => {
|
|
|
41143
41195
|
white-space: nowrap;
|
|
41144
41196
|
}
|
|
41145
41197
|
.ws-digilocker-box {
|
|
41198
|
+
display: flex;
|
|
41199
|
+
align-items: center;
|
|
41200
|
+
justify-content: space-between;
|
|
41201
|
+
gap: 20px;
|
|
41202
|
+
flex-wrap: wrap;
|
|
41146
41203
|
background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
|
|
41147
41204
|
border: 1px solid #bae6fd;
|
|
41148
|
-
border-radius:
|
|
41149
|
-
padding: 18px;
|
|
41150
|
-
margin-
|
|
41205
|
+
border-radius: 12px;
|
|
41206
|
+
padding: 18px 24px;
|
|
41207
|
+
margin-bottom: 20px;
|
|
41208
|
+
box-shadow: 0 2px 8px rgba(3, 105, 161, 0.06);
|
|
41151
41209
|
}
|
|
41152
|
-
.ws-digilocker-
|
|
41210
|
+
.ws-digilocker-content {
|
|
41153
41211
|
display: flex;
|
|
41154
|
-
|
|
41155
|
-
|
|
41156
|
-
|
|
41212
|
+
align-items: center;
|
|
41213
|
+
gap: 14px;
|
|
41214
|
+
flex: 1;
|
|
41215
|
+
min-width: 280px;
|
|
41157
41216
|
}
|
|
41158
41217
|
.ws-dl-icon-circle {
|
|
41159
|
-
width:
|
|
41160
|
-
height:
|
|
41218
|
+
width: 44px;
|
|
41219
|
+
height: 44px;
|
|
41161
41220
|
background: #ffffff;
|
|
41221
|
+
border: 1px solid #bae6fd;
|
|
41162
41222
|
border-radius: 50%;
|
|
41163
41223
|
display: flex;
|
|
41164
41224
|
align-items: center;
|
|
41165
41225
|
justify-content: center;
|
|
41166
41226
|
flex-shrink: 0;
|
|
41167
|
-
box-shadow: 0
|
|
41227
|
+
box-shadow: 0 2px 4px rgba(3, 105, 161, 0.1);
|
|
41228
|
+
}
|
|
41229
|
+
.ws-dl-info {
|
|
41230
|
+
display: flex;
|
|
41231
|
+
flex-direction: column;
|
|
41232
|
+
gap: 3px;
|
|
41233
|
+
}
|
|
41234
|
+
.ws-dl-title-wrap {
|
|
41235
|
+
display: flex;
|
|
41236
|
+
align-items: center;
|
|
41237
|
+
gap: 10px;
|
|
41168
41238
|
}
|
|
41169
41239
|
.ws-dl-title {
|
|
41170
|
-
font-size:
|
|
41240
|
+
font-size: 15.5px;
|
|
41171
41241
|
font-weight: 700;
|
|
41172
41242
|
color: #0369a1;
|
|
41173
|
-
margin
|
|
41243
|
+
margin: 0;
|
|
41244
|
+
}
|
|
41245
|
+
.ws-dl-pill {
|
|
41246
|
+
background: #0284c7;
|
|
41247
|
+
color: #ffffff;
|
|
41248
|
+
font-size: 10px;
|
|
41249
|
+
font-weight: 700;
|
|
41250
|
+
letter-spacing: 0.5px;
|
|
41251
|
+
padding: 2px 8px;
|
|
41252
|
+
border-radius: 10px;
|
|
41174
41253
|
}
|
|
41175
41254
|
.ws-dl-sub {
|
|
41176
|
-
font-size:
|
|
41255
|
+
font-size: 13px;
|
|
41177
41256
|
color: #334155;
|
|
41178
41257
|
line-height: 1.45;
|
|
41258
|
+
margin: 0;
|
|
41179
41259
|
}
|
|
41180
41260
|
.ws-btn {
|
|
41181
41261
|
display: inline-flex;
|
|
@@ -41217,10 +41297,26 @@ const WSInfoPage = () => {
|
|
|
41217
41297
|
.ws-btn-digilocker {
|
|
41218
41298
|
background: #003366;
|
|
41219
41299
|
color: #ffffff;
|
|
41220
|
-
width:
|
|
41300
|
+
width: auto;
|
|
41301
|
+
padding: 11px 22px;
|
|
41302
|
+
border-radius: 8px;
|
|
41303
|
+
font-size: 14px;
|
|
41304
|
+
font-weight: 600;
|
|
41305
|
+
display: inline-flex;
|
|
41306
|
+
align-items: center;
|
|
41307
|
+
justify-content: center;
|
|
41308
|
+
gap: 8px;
|
|
41309
|
+
cursor: pointer;
|
|
41310
|
+
white-space: nowrap;
|
|
41311
|
+
box-shadow: 0 2px 6px rgba(0, 51, 102, 0.2);
|
|
41312
|
+
transition: all 0.2s ease;
|
|
41313
|
+
flex-shrink: 0;
|
|
41314
|
+
border: none;
|
|
41221
41315
|
}
|
|
41222
41316
|
.ws-btn-digilocker:hover {
|
|
41223
41317
|
background: #002244;
|
|
41318
|
+
transform: translateY(-1px);
|
|
41319
|
+
box-shadow: 0 4px 10px rgba(0, 51, 102, 0.3);
|
|
41224
41320
|
}
|
|
41225
41321
|
.ws-btn:disabled {
|
|
41226
41322
|
opacity: 0.55;
|
|
@@ -41228,11 +41324,11 @@ const WSInfoPage = () => {
|
|
|
41228
41324
|
}
|
|
41229
41325
|
.ws-action-card {
|
|
41230
41326
|
background: #ffffff;
|
|
41231
|
-
border: 1px solid #
|
|
41327
|
+
border: 1px solid #e2e8f0;
|
|
41232
41328
|
border-radius: 12px;
|
|
41233
41329
|
padding: 18px 24px;
|
|
41234
41330
|
margin-top: 10px;
|
|
41235
|
-
box-shadow: 0 4px
|
|
41331
|
+
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
|
|
41236
41332
|
}
|
|
41237
41333
|
.ws-action-content {
|
|
41238
41334
|
display: flex;
|
|
@@ -41243,34 +41339,75 @@ const WSInfoPage = () => {
|
|
|
41243
41339
|
}
|
|
41244
41340
|
.ws-action-hint {
|
|
41245
41341
|
flex: 1;
|
|
41246
|
-
min-width:
|
|
41342
|
+
min-width: 280px;
|
|
41247
41343
|
}
|
|
41248
|
-
.ws-hint-
|
|
41249
|
-
|
|
41250
|
-
|
|
41344
|
+
.ws-hint-badge {
|
|
41345
|
+
display: inline-flex;
|
|
41346
|
+
align-items: center;
|
|
41347
|
+
gap: 10px;
|
|
41348
|
+
font-size: 13.5px;
|
|
41349
|
+
font-weight: 500;
|
|
41350
|
+
padding: 9px 16px;
|
|
41351
|
+
border-radius: 8px;
|
|
41352
|
+
line-height: 1.4;
|
|
41251
41353
|
}
|
|
41252
41354
|
.ws-hint-warning {
|
|
41253
|
-
|
|
41355
|
+
background: #fffbeb;
|
|
41356
|
+
color: #92400e;
|
|
41357
|
+
border: 1px solid #fde68a;
|
|
41358
|
+
}
|
|
41359
|
+
.ws-hint-warning svg {
|
|
41360
|
+
color: #d97706;
|
|
41361
|
+
flex-shrink: 0;
|
|
41362
|
+
}
|
|
41363
|
+
.ws-hint-info {
|
|
41364
|
+
background: #eff6ff;
|
|
41365
|
+
color: #1e40af;
|
|
41366
|
+
border: 1px solid #bfdbfe;
|
|
41367
|
+
}
|
|
41368
|
+
.ws-hint-info svg {
|
|
41369
|
+
color: #2563eb;
|
|
41370
|
+
flex-shrink: 0;
|
|
41254
41371
|
}
|
|
41255
41372
|
.ws-hint-success {
|
|
41256
|
-
|
|
41373
|
+
background: #f0fdf4;
|
|
41374
|
+
color: #166534;
|
|
41375
|
+
border: 1px solid #bbf7d0;
|
|
41376
|
+
}
|
|
41377
|
+
.ws-hint-success svg {
|
|
41378
|
+
color: #16a34a;
|
|
41379
|
+
flex-shrink: 0;
|
|
41257
41380
|
}
|
|
41258
41381
|
.ws-btn-next {
|
|
41259
|
-
|
|
41382
|
+
display: inline-flex;
|
|
41383
|
+
align-items: center;
|
|
41384
|
+
gap: 8px;
|
|
41385
|
+
padding: 12px 26px;
|
|
41386
|
+
font-size: 14.5px;
|
|
41387
|
+
font-weight: 600;
|
|
41388
|
+
border-radius: 8px;
|
|
41389
|
+
border: none;
|
|
41390
|
+
cursor: pointer;
|
|
41391
|
+
white-space: nowrap;
|
|
41392
|
+
transition: all 0.2s ease;
|
|
41393
|
+
}
|
|
41394
|
+
.ws-btn-next:not(:disabled) {
|
|
41395
|
+
background: linear-gradient(135deg, #1a67a3 0%, #0d4a75 100%);
|
|
41260
41396
|
color: #ffffff;
|
|
41261
|
-
|
|
41262
|
-
padding: 12px 28px;
|
|
41263
|
-
border-radius: 6px;
|
|
41264
|
-
box-shadow: 0 2px 4px rgba(0, 112, 60, 0.2);
|
|
41397
|
+
box-shadow: 0 4px 12px rgba(26, 103, 163, 0.25);
|
|
41265
41398
|
}
|
|
41266
|
-
.ws-btn-next:
|
|
41267
|
-
background: #
|
|
41399
|
+
.ws-btn-next:not(:disabled):hover {
|
|
41400
|
+
background: linear-gradient(135deg, #155587 0%, #09375a 100%);
|
|
41401
|
+
box-shadow: 0 6px 16px rgba(26, 103, 163, 0.35);
|
|
41402
|
+
transform: translateY(-1px);
|
|
41268
41403
|
}
|
|
41269
41404
|
.ws-btn-disabled {
|
|
41270
|
-
background: #
|
|
41271
|
-
color: #
|
|
41405
|
+
background: #e2e8f0 !important;
|
|
41406
|
+
color: #94a3b8 !important;
|
|
41272
41407
|
cursor: not-allowed !important;
|
|
41273
41408
|
box-shadow: none !important;
|
|
41409
|
+
border: 1px solid #cbd5e1 !important;
|
|
41410
|
+
transform: none !important;
|
|
41274
41411
|
}
|
|
41275
41412
|
@media (max-width: 900px) {
|
|
41276
41413
|
.ws-checklist-grid {
|
|
@@ -41540,314 +41677,121 @@ const WSInfoPage = () => {
|
|
|
41540
41677
|
type: "button",
|
|
41541
41678
|
onClick: handleCreateProperty
|
|
41542
41679
|
}, t("Register New Property")))), /*#__PURE__*/React.createElement("div", {
|
|
41543
|
-
className: "ws-
|
|
41544
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41545
|
-
className: "ws-checklist-header"
|
|
41680
|
+
className: "ws-digilocker-box"
|
|
41546
41681
|
}, /*#__PURE__*/React.createElement("div", {
|
|
41547
|
-
className: "ws-
|
|
41548
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
41549
|
-
className: "ws-section-badge"
|
|
41550
|
-
}, t("Application Checklist")), /*#__PURE__*/React.createElement("h2", {
|
|
41551
|
-
className: "ws-checklist-title"
|
|
41552
|
-
}, t("What You Will Need During The Application"))), /*#__PURE__*/React.createElement("div", {
|
|
41553
|
-
className: "ws-confused-user-explainer"
|
|
41682
|
+
className: "ws-digilocker-content"
|
|
41554
41683
|
}, /*#__PURE__*/React.createElement("div", {
|
|
41555
|
-
className: "ws-
|
|
41684
|
+
className: "ws-dl-icon-circle"
|
|
41556
41685
|
}, /*#__PURE__*/React.createElement("svg", {
|
|
41557
41686
|
width: "22",
|
|
41558
41687
|
height: "22",
|
|
41559
41688
|
viewBox: "0 0 24 24",
|
|
41560
41689
|
fill: "none",
|
|
41561
|
-
stroke: "#
|
|
41562
|
-
strokeWidth: "2"
|
|
41563
|
-
|
|
41564
|
-
|
|
41565
|
-
}, /*#__PURE__*/React.createElement("
|
|
41566
|
-
|
|
41567
|
-
cy: "12",
|
|
41568
|
-
r: "10"
|
|
41569
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
41570
|
-
d: "M12 16v-4"
|
|
41571
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
41572
|
-
d: "M12 8h.01"
|
|
41573
|
-
}))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", {
|
|
41574
|
-
className: "ws-explainer-desc"
|
|
41575
|
-
}, t("The items below outline the exact information you will enter and the supporting documents you will upload in the upcoming application screens. You do NOT need to fill them in on this screen—this checklist helps you gather all details and keep scanned copies ready in advance for a fast, hassle-free submission."))))), /*#__PURE__*/React.createElement("div", {
|
|
41576
|
-
className: "ws-checklist-grid"
|
|
41690
|
+
stroke: "#003366",
|
|
41691
|
+
strokeWidth: "2"
|
|
41692
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
41693
|
+
d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"
|
|
41694
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
41695
|
+
className: "ws-dl-info"
|
|
41577
41696
|
}, /*#__PURE__*/React.createElement("div", {
|
|
41578
|
-
className: "ws-
|
|
41697
|
+
className: "ws-dl-title-wrap"
|
|
41698
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
41699
|
+
className: "ws-dl-title"
|
|
41700
|
+
}, t("Fast-Track with DigiLocker")), /*#__PURE__*/React.createElement("span", {
|
|
41701
|
+
className: "ws-dl-pill"
|
|
41702
|
+
}, t("RECOMMENDED"))), /*#__PURE__*/React.createElement("p", {
|
|
41703
|
+
className: "ws-dl-sub"
|
|
41704
|
+
}, t("Fetch your verified Aadhaar, Electricity Bill, and Identity documents directly without manual upload.")))), /*#__PURE__*/React.createElement("button", {
|
|
41705
|
+
type: "button",
|
|
41706
|
+
className: "ws-btn ws-btn-digilocker",
|
|
41707
|
+
onClick: handleDigiLockerLogin
|
|
41708
|
+
}, /*#__PURE__*/React.createElement("span", null, "\uD83D\uDD10"), /*#__PURE__*/React.createElement("span", null, t("DigiLocker Consent")))), /*#__PURE__*/React.createElement("div", {
|
|
41709
|
+
className: "ws-action-card"
|
|
41579
41710
|
}, /*#__PURE__*/React.createElement("div", {
|
|
41580
|
-
className: "ws-
|
|
41711
|
+
className: "ws-action-content"
|
|
41581
41712
|
}, /*#__PURE__*/React.createElement("div", {
|
|
41582
|
-
className: "ws-
|
|
41583
|
-
|
|
41584
|
-
|
|
41585
|
-
color: "#0369a1"
|
|
41586
|
-
}
|
|
41713
|
+
className: "ws-action-hint"
|
|
41714
|
+
}, !hasProperty ? /*#__PURE__*/React.createElement("div", {
|
|
41715
|
+
className: "ws-hint-badge ws-hint-warning"
|
|
41587
41716
|
}, /*#__PURE__*/React.createElement("svg", {
|
|
41588
|
-
width: "
|
|
41589
|
-
height: "
|
|
41717
|
+
width: "18",
|
|
41718
|
+
height: "18",
|
|
41590
41719
|
viewBox: "0 0 24 24",
|
|
41591
41720
|
fill: "none",
|
|
41592
41721
|
stroke: "currentColor",
|
|
41593
41722
|
strokeWidth: "2"
|
|
41594
|
-
}, /*#__PURE__*/React.createElement("
|
|
41595
|
-
|
|
41596
|
-
|
|
41597
|
-
|
|
41598
|
-
})
|
|
41599
|
-
|
|
41600
|
-
|
|
41601
|
-
|
|
41602
|
-
|
|
41603
|
-
|
|
41604
|
-
|
|
41605
|
-
|
|
41606
|
-
|
|
41607
|
-
|
|
41608
|
-
}, /*#__PURE__*/React.createElement("span", null, "
|
|
41609
|
-
className: "ws-
|
|
41610
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
41611
|
-
className: "ws-tag-item"
|
|
41612
|
-
}, t("Request Type")), /*#__PURE__*/React.createElement("span", {
|
|
41613
|
-
className: "ws-tag-item"
|
|
41614
|
-
}, t("Applicant Type")), /*#__PURE__*/React.createElement("span", {
|
|
41615
|
-
className: "ws-tag-item"
|
|
41616
|
-
}, t("Is Divyangjan / Person with Disability?")))), /*#__PURE__*/React.createElement("div", {
|
|
41617
|
-
className: "ws-group-card"
|
|
41618
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41619
|
-
className: "ws-group-title"
|
|
41620
|
-
}, /*#__PURE__*/React.createElement("span", null, "\uD83D\uDC64"), /*#__PURE__*/React.createElement("span", null, t("Connection Holder Details"))), /*#__PURE__*/React.createElement("div", {
|
|
41621
|
-
className: "ws-tag-grid"
|
|
41622
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
41623
|
-
className: "ws-tag-item"
|
|
41624
|
-
}, t("Name")), /*#__PURE__*/React.createElement("span", {
|
|
41625
|
-
className: "ws-tag-item"
|
|
41626
|
-
}, t("Middle Name")), /*#__PURE__*/React.createElement("span", {
|
|
41627
|
-
className: "ws-tag-item"
|
|
41628
|
-
}, t("Last Name")), /*#__PURE__*/React.createElement("span", {
|
|
41629
|
-
className: "ws-tag-item"
|
|
41630
|
-
}, t("Gender")), /*#__PURE__*/React.createElement("span", {
|
|
41631
|
-
className: "ws-tag-item"
|
|
41632
|
-
}, t("Mobile Number")), /*#__PURE__*/React.createElement("span", {
|
|
41633
|
-
className: "ws-tag-item"
|
|
41634
|
-
}, t("Email ID")))), /*#__PURE__*/React.createElement("div", {
|
|
41635
|
-
className: "ws-group-card"
|
|
41636
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41637
|
-
className: "ws-group-title"
|
|
41638
|
-
}, /*#__PURE__*/React.createElement("span", null, "\uD83D\uDCCD"), /*#__PURE__*/React.createElement("span", null, t("Property Address & Location"))), /*#__PURE__*/React.createElement("div", {
|
|
41639
|
-
className: "ws-tag-grid"
|
|
41640
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
41641
|
-
className: "ws-tag-item"
|
|
41642
|
-
}, t("Address Type")), /*#__PURE__*/React.createElement("span", {
|
|
41643
|
-
className: "ws-tag-item"
|
|
41644
|
-
}, t("City")), /*#__PURE__*/React.createElement("span", {
|
|
41645
|
-
className: "ws-tag-item"
|
|
41646
|
-
}, t("Pincode")), /*#__PURE__*/React.createElement("span", {
|
|
41647
|
-
className: "ws-tag-item"
|
|
41648
|
-
}, t("Locality")), /*#__PURE__*/React.createElement("span", {
|
|
41649
|
-
className: "ws-tag-item"
|
|
41650
|
-
}, t("Sub-Locality")), /*#__PURE__*/React.createElement("span", {
|
|
41651
|
-
className: "ws-tag-item"
|
|
41652
|
-
}, t("Street Name / Gali")), /*#__PURE__*/React.createElement("span", {
|
|
41653
|
-
className: "ws-tag-item"
|
|
41654
|
-
}, t("Address Line 1")), /*#__PURE__*/React.createElement("span", {
|
|
41655
|
-
className: "ws-tag-item"
|
|
41656
|
-
}, t("Address Line 2")), /*#__PURE__*/React.createElement("span", {
|
|
41657
|
-
className: "ws-tag-item"
|
|
41658
|
-
}, t("House No.")), /*#__PURE__*/React.createElement("span", {
|
|
41659
|
-
className: "ws-tag-item"
|
|
41660
|
-
}, t("Latitude")), /*#__PURE__*/React.createElement("span", {
|
|
41661
|
-
className: "ws-tag-item"
|
|
41662
|
-
}, t("Longitude")), /*#__PURE__*/React.createElement("span", {
|
|
41663
|
-
className: "ws-tag-item"
|
|
41664
|
-
}, t("Assembly")), /*#__PURE__*/React.createElement("span", {
|
|
41665
|
-
className: "ws-tag-item"
|
|
41666
|
-
}, t("Ward")), /*#__PURE__*/React.createElement("span", {
|
|
41667
|
-
className: "ws-tag-item"
|
|
41668
|
-
}, t("Zone")), /*#__PURE__*/React.createElement("span", {
|
|
41669
|
-
className: "ws-tag-item"
|
|
41670
|
-
}, t("Landmark")))), /*#__PURE__*/React.createElement("div", {
|
|
41671
|
-
className: "ws-group-card"
|
|
41672
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41673
|
-
className: "ws-group-title"
|
|
41674
|
-
}, /*#__PURE__*/React.createElement("span", null, "\uD83C\uDFE2"), /*#__PURE__*/React.createElement("span", null, t("Property & Connection Usage"))), /*#__PURE__*/React.createElement("div", {
|
|
41675
|
-
className: "ws-tag-grid"
|
|
41676
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
41677
|
-
className: "ws-tag-item"
|
|
41678
|
-
}, t("Category Type")), /*#__PURE__*/React.createElement("span", {
|
|
41679
|
-
className: "ws-tag-item"
|
|
41680
|
-
}, t("Property Category")), /*#__PURE__*/React.createElement("span", {
|
|
41681
|
-
className: "ws-tag-item"
|
|
41682
|
-
}, t("Property Type")), /*#__PURE__*/React.createElement("span", {
|
|
41683
|
-
className: "ws-tag-item"
|
|
41684
|
-
}, t("Water Usage Type")), /*#__PURE__*/React.createElement("span", {
|
|
41685
|
-
className: "ws-tag-item"
|
|
41686
|
-
}, t("Number of Floors")), /*#__PURE__*/React.createElement("span", {
|
|
41687
|
-
className: "ws-tag-item"
|
|
41688
|
-
}, t("Plot Area")), /*#__PURE__*/React.createElement("span", {
|
|
41689
|
-
className: "ws-tag-item"
|
|
41690
|
-
}, t("Built-up Area")), /*#__PURE__*/React.createElement("span", {
|
|
41691
|
-
className: "ws-tag-item"
|
|
41692
|
-
}, t("Year of Construction")), /*#__PURE__*/React.createElement("span", {
|
|
41693
|
-
className: "ws-tag-item"
|
|
41694
|
-
}, t("Dwelling Units")))), /*#__PURE__*/React.createElement("div", {
|
|
41695
|
-
className: "ws-group-card"
|
|
41696
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41697
|
-
className: "ws-group-title"
|
|
41698
|
-
}, /*#__PURE__*/React.createElement("span", null, "\uD83C\uDFDB\uFE0F"), /*#__PURE__*/React.createElement("span", null, t("DJB Employee Details (if applicable)"))), /*#__PURE__*/React.createElement("div", {
|
|
41699
|
-
className: "ws-tag-grid"
|
|
41700
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
41701
|
-
className: "ws-tag-item"
|
|
41702
|
-
}, t("Employee ID")), /*#__PURE__*/React.createElement("span", {
|
|
41703
|
-
className: "ws-tag-item"
|
|
41704
|
-
}, t("Employee Designation")))))), /*#__PURE__*/React.createElement("div", {
|
|
41705
|
-
className: "ws-checklist-column"
|
|
41706
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41707
|
-
className: "ws-col-header"
|
|
41708
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41709
|
-
className: "ws-col-icon-wrap",
|
|
41710
|
-
style: {
|
|
41711
|
-
background: "#fef3c7",
|
|
41712
|
-
color: "#b45309"
|
|
41713
|
-
}
|
|
41723
|
+
}, /*#__PURE__*/React.createElement("circle", {
|
|
41724
|
+
cx: "12",
|
|
41725
|
+
cy: "12",
|
|
41726
|
+
r: "10"
|
|
41727
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
41728
|
+
x1: "12",
|
|
41729
|
+
y1: "8",
|
|
41730
|
+
x2: "12",
|
|
41731
|
+
y2: "12"
|
|
41732
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
41733
|
+
x1: "12",
|
|
41734
|
+
y1: "16",
|
|
41735
|
+
x2: "12.01",
|
|
41736
|
+
y2: "16"
|
|
41737
|
+
})), /*#__PURE__*/React.createElement("span", null, t("Please select whether you have an existing property in Step 1 to continue."))) : (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty ? /*#__PURE__*/React.createElement("div", {
|
|
41738
|
+
className: "ws-hint-badge ws-hint-warning"
|
|
41714
41739
|
}, /*#__PURE__*/React.createElement("svg", {
|
|
41715
|
-
width: "
|
|
41716
|
-
height: "
|
|
41740
|
+
width: "18",
|
|
41741
|
+
height: "18",
|
|
41717
41742
|
viewBox: "0 0 24 24",
|
|
41718
41743
|
fill: "none",
|
|
41719
41744
|
stroke: "currentColor",
|
|
41720
41745
|
strokeWidth: "2"
|
|
41721
|
-
}, /*#__PURE__*/React.createElement("
|
|
41722
|
-
|
|
41723
|
-
|
|
41724
|
-
|
|
41746
|
+
}, /*#__PURE__*/React.createElement("circle", {
|
|
41747
|
+
cx: "12",
|
|
41748
|
+
cy: "12",
|
|
41749
|
+
r: "10"
|
|
41725
41750
|
}), /*#__PURE__*/React.createElement("line", {
|
|
41726
|
-
x1: "
|
|
41727
|
-
y1: "
|
|
41728
|
-
x2: "
|
|
41729
|
-
y2: "
|
|
41751
|
+
x1: "12",
|
|
41752
|
+
y1: "8",
|
|
41753
|
+
x2: "12",
|
|
41754
|
+
y2: "12"
|
|
41730
41755
|
}), /*#__PURE__*/React.createElement("line", {
|
|
41731
|
-
x1: "
|
|
41732
|
-
y1: "
|
|
41733
|
-
x2: "
|
|
41734
|
-
y2: "
|
|
41735
|
-
}))
|
|
41736
|
-
className: "ws-
|
|
41737
|
-
}, t("2. Documents to Upload")), /*#__PURE__*/React.createElement("p", {
|
|
41738
|
-
className: "ws-col-subtitle"
|
|
41739
|
-
}, t("Keep clear scanned files ready (PDF/JPG/PNG, ≤ 5MB)")))), /*#__PURE__*/React.createElement("div", {
|
|
41740
|
-
className: "ws-docs-cards-list"
|
|
41741
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41742
|
-
className: "ws-doc-item-card"
|
|
41743
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41744
|
-
className: "ws-doc-badge"
|
|
41745
|
-
}, "\uD83E\uDEAA"), /*#__PURE__*/React.createElement("div", {
|
|
41746
|
-
className: "ws-doc-info"
|
|
41747
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41748
|
-
className: "ws-doc-name"
|
|
41749
|
-
}, t("Proof of Identity")), /*#__PURE__*/React.createElement("div", {
|
|
41750
|
-
className: "ws-doc-desc"
|
|
41751
|
-
}, t("Aadhaar Card, Voter ID, PAN Card, or Passport"))), /*#__PURE__*/React.createElement("span", {
|
|
41752
|
-
className: "ws-req-pill"
|
|
41753
|
-
}, t("Mandatory"))), /*#__PURE__*/React.createElement("div", {
|
|
41754
|
-
className: "ws-doc-item-card"
|
|
41755
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41756
|
-
className: "ws-doc-badge"
|
|
41757
|
-
}, "\uD83C\uDFE0"), /*#__PURE__*/React.createElement("div", {
|
|
41758
|
-
className: "ws-doc-info"
|
|
41759
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41760
|
-
className: "ws-doc-name"
|
|
41761
|
-
}, t("Proof of Address / Ownership")), /*#__PURE__*/React.createElement("div", {
|
|
41762
|
-
className: "ws-doc-desc"
|
|
41763
|
-
}, t("Registered Sale Deed, Conveyance Deed, or Allotment Letter"))), /*#__PURE__*/React.createElement("span", {
|
|
41764
|
-
className: "ws-req-pill"
|
|
41765
|
-
}, t("Mandatory"))), /*#__PURE__*/React.createElement("div", {
|
|
41766
|
-
className: "ws-doc-item-card"
|
|
41767
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41768
|
-
className: "ws-doc-badge"
|
|
41769
|
-
}, "\u26A1"), /*#__PURE__*/React.createElement("div", {
|
|
41770
|
-
className: "ws-doc-info"
|
|
41771
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41772
|
-
className: "ws-doc-name"
|
|
41773
|
-
}, t("Electricity Bill")), /*#__PURE__*/React.createElement("div", {
|
|
41774
|
-
className: "ws-doc-desc"
|
|
41775
|
-
}, t("Latest paid electricity bill of the premises"))), /*#__PURE__*/React.createElement("span", {
|
|
41776
|
-
className: "ws-req-pill"
|
|
41777
|
-
}, t("Mandatory"))), /*#__PURE__*/React.createElement("div", {
|
|
41778
|
-
className: "ws-doc-item-card"
|
|
41779
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41780
|
-
className: "ws-doc-badge"
|
|
41781
|
-
}, "\uD83D\uDD27"), /*#__PURE__*/React.createElement("div", {
|
|
41782
|
-
className: "ws-doc-info"
|
|
41783
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41784
|
-
className: "ws-doc-name"
|
|
41785
|
-
}, t("Plumber Report")), /*#__PURE__*/React.createElement("div", {
|
|
41786
|
-
className: "ws-doc-desc"
|
|
41787
|
-
}, t("Completion certificate from a licensed plumber"))), /*#__PURE__*/React.createElement("span", {
|
|
41788
|
-
className: "ws-opt-pill"
|
|
41789
|
-
}, t("As Applicable"))), /*#__PURE__*/React.createElement("div", {
|
|
41790
|
-
className: "ws-doc-item-card"
|
|
41791
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41792
|
-
className: "ws-doc-badge"
|
|
41793
|
-
}, "\uD83D\uDCD0"), /*#__PURE__*/React.createElement("div", {
|
|
41794
|
-
className: "ws-doc-info"
|
|
41795
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41796
|
-
className: "ws-doc-name"
|
|
41797
|
-
}, t("Building Plan")), /*#__PURE__*/React.createElement("div", {
|
|
41798
|
-
className: "ws-doc-desc"
|
|
41799
|
-
}, t("Sanctioned / approved layout plan of the structure"))), /*#__PURE__*/React.createElement("span", {
|
|
41800
|
-
className: "ws-opt-pill"
|
|
41801
|
-
}, t("As Applicable"))), /*#__PURE__*/React.createElement("div", {
|
|
41802
|
-
className: "ws-doc-item-card"
|
|
41803
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41804
|
-
className: "ws-doc-badge"
|
|
41805
|
-
}, "\uD83E\uDDFE"), /*#__PURE__*/React.createElement("div", {
|
|
41806
|
-
className: "ws-doc-info"
|
|
41807
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41808
|
-
className: "ws-doc-name"
|
|
41809
|
-
}, t("Property Tax Receipt")), /*#__PURE__*/React.createElement("div", {
|
|
41810
|
-
className: "ws-doc-desc"
|
|
41811
|
-
}, t("Latest property tax receipt / assessment notice"))), /*#__PURE__*/React.createElement("span", {
|
|
41812
|
-
className: "ws-opt-pill"
|
|
41813
|
-
}, t("As Applicable")))), /*#__PURE__*/React.createElement("div", {
|
|
41814
|
-
className: "ws-digilocker-box"
|
|
41815
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41816
|
-
className: "ws-digilocker-header"
|
|
41817
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41818
|
-
className: "ws-dl-icon-circle"
|
|
41756
|
+
x1: "12",
|
|
41757
|
+
y1: "16",
|
|
41758
|
+
x2: "12.01",
|
|
41759
|
+
y2: "16"
|
|
41760
|
+
})), /*#__PURE__*/React.createElement("span", null, t("Please verify your mobile number and select a property from the dropdown to proceed."))) : (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "NO" ? /*#__PURE__*/React.createElement("div", {
|
|
41761
|
+
className: "ws-hint-badge ws-hint-info"
|
|
41819
41762
|
}, /*#__PURE__*/React.createElement("svg", {
|
|
41820
|
-
width: "
|
|
41821
|
-
height: "
|
|
41763
|
+
width: "18",
|
|
41764
|
+
height: "18",
|
|
41822
41765
|
viewBox: "0 0 24 24",
|
|
41823
41766
|
fill: "none",
|
|
41824
|
-
stroke: "
|
|
41767
|
+
stroke: "currentColor",
|
|
41825
41768
|
strokeWidth: "2"
|
|
41826
|
-
}, /*#__PURE__*/React.createElement("
|
|
41827
|
-
|
|
41828
|
-
|
|
41829
|
-
|
|
41830
|
-
}
|
|
41831
|
-
|
|
41832
|
-
|
|
41833
|
-
|
|
41834
|
-
|
|
41835
|
-
|
|
41836
|
-
|
|
41837
|
-
|
|
41838
|
-
|
|
41839
|
-
|
|
41840
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41841
|
-
className: "ws-
|
|
41842
|
-
},
|
|
41843
|
-
|
|
41844
|
-
|
|
41845
|
-
|
|
41846
|
-
|
|
41847
|
-
|
|
41848
|
-
|
|
41849
|
-
|
|
41850
|
-
|
|
41769
|
+
}, /*#__PURE__*/React.createElement("circle", {
|
|
41770
|
+
cx: "12",
|
|
41771
|
+
cy: "12",
|
|
41772
|
+
r: "10"
|
|
41773
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
41774
|
+
x1: "12",
|
|
41775
|
+
y1: "16",
|
|
41776
|
+
x2: "12",
|
|
41777
|
+
y2: "12"
|
|
41778
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
41779
|
+
x1: "12",
|
|
41780
|
+
y1: "8",
|
|
41781
|
+
x2: "12.01",
|
|
41782
|
+
y2: "8"
|
|
41783
|
+
})), /*#__PURE__*/React.createElement("span", null, t("Please register your property using the button in Step 1 before applying."))) : /*#__PURE__*/React.createElement("div", {
|
|
41784
|
+
className: "ws-hint-badge ws-hint-success"
|
|
41785
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
41786
|
+
width: "18",
|
|
41787
|
+
height: "18",
|
|
41788
|
+
viewBox: "0 0 24 24",
|
|
41789
|
+
fill: "none",
|
|
41790
|
+
stroke: "currentColor",
|
|
41791
|
+
strokeWidth: "2.5"
|
|
41792
|
+
}, /*#__PURE__*/React.createElement("polyline", {
|
|
41793
|
+
points: "20 6 9 17 4 12"
|
|
41794
|
+
})), /*#__PURE__*/React.createElement("span", null, t("All prerequisites verified! You are ready to start the application form.")))), /*#__PURE__*/React.createElement("div", {
|
|
41851
41795
|
className: "ws-action-buttons"
|
|
41852
41796
|
}, /*#__PURE__*/React.createElement("button", {
|
|
41853
41797
|
type: "button",
|
|
@@ -55571,7 +55515,7 @@ const EditApplication$1 = () => {
|
|
|
55571
55515
|
};
|
|
55572
55516
|
|
|
55573
55517
|
const ConsumptionDetails$1 = _ref => {
|
|
55574
|
-
var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsBillingPeriod$Md3,
|
|
55518
|
+
var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsBillingPeriod$Md3, _details$4, _details$5, _meterReadingDetailsD, _meterReadingDetailsD2, _meterReadingDetailsD3, _meterReadingDetailsD4, _meterReadingDetailsD5, _meterReadingDetailsD6, _meterReadingDetailsD7, _meterReadingDetailsD8, _meterReadingDetailsD9, _meterReadingDetailsD0, _meterReadingDetailsD1, _meterReadingDetailsD10, _meterReadingDetailsD11, _meterReadingDetailsD12, _meterReadingDetailsD13, _meterReadingDetailsD14, _meterReadingDetailsD15, _meterReadingDetailsD16, _meterReadingDetailsD17, _meterReadingDetailsD18, _meterReadingDetailsD19, _meterReadingDetailsD20, _meterReadingDetailsD21, _meterReadingDetailsD22, _meterReadingDetailsD23, _meterReadingDetailsD24, _meterReadingDetailsD25, _meterReadingDetailsD26, _meterReadingDetailsD27, _meterReadingDetailsD28, _meterReadingDetailsD29, _meterReadingDetailsD30, _meterReadingDetailsD31, _meterReadingDetailsD32, _meterReadingDetailsD33, _meterReadingDetailsD34, _meterReadingDetailsD35, _meterReadingDetailsD36, _meterReadingDetailsD37, _meterReadingDetailsD38, _meterReadingDetailsD39, _meterReadingDetailsD40, _meterReadingDetailsD41, _meterReadingDetailsD42, _meterReadingDetailsD43, _meterReadingDetailsD44, _meterReadingDetailsD45, _meterReadingDetailsD46, _meterReadingDetailsD47, _meterReadingDetailsD48, _meterReadingDetailsD49, _meterReadingDetailsD50, _meterReadingDetailsD51, _meterReadingDetailsD52, _meterReadingDetailsD53, _meterReadingDetailsD54, _meterReadingDetailsD55, _meterReadingDetailsD56, _meterReadingDetailsD57, _meterReadingDetailsD58, _meterReadingDetailsD59, _meterReadingDetailsD60, _meterReadingDetailsD61, _meterReadingDetailsD62, _meterReadingDetailsD63, _meterReadingDetailsD64, _meterReadingDetailsD65, _meterReadingDetailsD66, _meterReadingDetailsD67, _meterReadingDetailsD68, _meterReadingDetailsD69, _meterReadingDetailsD70, _meterReadingDetailsD71, _meterReadingDetailsD72, _meterReadingDetailsD73, _meterReadingDetailsD74, _meterReadingDetailsD75, _meterReadingDetailsD76, _meterReadingDetailsD77, _meterReadingDetailsD78, _meterReadingDetailsD79, _meterReadingDetailsD80, _meterReadingDetailsD81, _meterReadingDetailsD82;
|
|
55575
55519
|
const {
|
|
55576
55520
|
t
|
|
55577
55521
|
} = useTranslation();
|
|
@@ -55708,17 +55652,30 @@ const ConsumptionDetails$1 = _ref => {
|
|
|
55708
55652
|
};
|
|
55709
55653
|
const getBillingPeriodFromMdms = mdmsBillingPeriod === null || mdmsBillingPeriod === void 0 ? void 0 : (_mdmsBillingPeriod$Md = mdmsBillingPeriod.MdmsRes) === null || _mdmsBillingPeriod$Md === void 0 ? void 0 : (_mdmsBillingPeriod$Md2 = _mdmsBillingPeriod$Md["ws-services-masters"]) === null || _mdmsBillingPeriod$Md2 === void 0 ? void 0 : (_mdmsBillingPeriod$Md3 = _mdmsBillingPeriod$Md2.billingPeriod) === null || _mdmsBillingPeriod$Md3 === void 0 ? void 0 : _mdmsBillingPeriod$Md3.filter(e => e.connectionType === "Metered");
|
|
55710
55654
|
const popUp = () => {
|
|
55711
|
-
var _response$meterReadin
|
|
55655
|
+
var _response$meterReadin;
|
|
55712
55656
|
setOpenModal(true);
|
|
55713
|
-
|
|
55714
|
-
|
|
55715
|
-
|
|
55716
|
-
|
|
55717
|
-
|
|
55718
|
-
|
|
55657
|
+
const firstReading = response === null || response === void 0 ? void 0 : (_response$meterReadin = response.meterReadings) === null || _response$meterReadin === void 0 ? void 0 : _response$meterReadin[0];
|
|
55658
|
+
setMeterDetails(firstReading);
|
|
55659
|
+
const initialStatus = firstReading !== null && firstReading !== void 0 && firstReading.meterStatus ? {
|
|
55660
|
+
code: firstReading === null || firstReading === void 0 ? void 0 : firstReading.meterStatus,
|
|
55661
|
+
i18nKey: `WS_SERVICES_CALCULATION_METERSTATUS_${Digit.Utils.locale.getTransformedLocale(firstReading === null || firstReading === void 0 ? void 0 : firstReading.meterStatus)}`
|
|
55662
|
+
} : "";
|
|
55663
|
+
setSelectMeterStatus(initialStatus);
|
|
55664
|
+
setBillingPeriod(`${getDate(firstReading === null || firstReading === void 0 ? void 0 : firstReading.currentReadingDate)} - ${getDate(convertDateToEpoch(Digit.Utils.date.getDate()))}`);
|
|
55665
|
+
if (((initialStatus === null || initialStatus === void 0 ? void 0 : initialStatus.code) || "").toLowerCase() === "working") {
|
|
55666
|
+
const okOption = ReadingQualityCodeList === null || ReadingQualityCodeList === void 0 ? void 0 : ReadingQualityCodeList.find(item => ((item === null || item === void 0 ? void 0 : item.code) || "").toLowerCase() === "ok");
|
|
55667
|
+
setSelectReadingQualityCode(okOption || {
|
|
55668
|
+
code: "OK",
|
|
55669
|
+
i18nKey: `WS_SERVICES_CALCULATION_DJBREADINGQUALITYCODE_${Digit.Utils.locale.getTransformedLocale("OK")}`
|
|
55670
|
+
});
|
|
55671
|
+
} else {
|
|
55672
|
+
setSelectReadingQualityCode("");
|
|
55673
|
+
}
|
|
55719
55674
|
};
|
|
55720
55675
|
const closeModal = () => {
|
|
55721
55676
|
setOpenModal(false);
|
|
55677
|
+
setSelectMeterStatus("");
|
|
55678
|
+
setSelectReadingQualityCode("");
|
|
55722
55679
|
};
|
|
55723
55680
|
const closeToast = () => {
|
|
55724
55681
|
setShowToast(false);
|
|
@@ -55729,7 +55686,16 @@ const ConsumptionDetails$1 = _ref => {
|
|
|
55729
55686
|
let fromDate = parseInt(meterDetails === null || meterDetails === void 0 ? void 0 : meterDetails.currentReadingDate);
|
|
55730
55687
|
let selectedDate = parseInt(convertDateToEpoch(data === null || data === void 0 ? void 0 : data.currentReadingDate));
|
|
55731
55688
|
let toDate = parseInt(convertDateToEpoch(Digit.Utils.date.getDate()));
|
|
55732
|
-
if ((
|
|
55689
|
+
if (!(selectReadingQualityCode !== null && selectReadingQualityCode !== void 0 && selectReadingQualityCode.code)) {
|
|
55690
|
+
setShowToast({
|
|
55691
|
+
key: "error",
|
|
55692
|
+
message: t("ERR_READING_QUALITY_CODE_REQUIRED")
|
|
55693
|
+
});
|
|
55694
|
+
setError(t("ERR_READING_QUALITY_CODE_REQUIRED"));
|
|
55695
|
+
setTimeout(closeToast, 5000);
|
|
55696
|
+
return Promise.resolve();
|
|
55697
|
+
}
|
|
55698
|
+
if (isWorkingMeter) {
|
|
55733
55699
|
var _details$;
|
|
55734
55700
|
if (!(data !== null && data !== void 0 && data.currentReading) || (data === null || data === void 0 ? void 0 : data.currentReading) == null || (data === null || data === void 0 ? void 0 : data.currentReading) === "") {
|
|
55735
55701
|
setShowToast({
|
|
@@ -55813,19 +55779,52 @@ const ConsumptionDetails$1 = _ref => {
|
|
|
55813
55779
|
return Promise.reject(e);
|
|
55814
55780
|
}
|
|
55815
55781
|
};
|
|
55816
|
-
|
|
55817
|
-
|
|
55818
|
-
|
|
55819
|
-
|
|
55820
|
-
|
|
55821
|
-
|
|
55822
|
-
|
|
55823
|
-
|
|
55824
|
-
|
|
55825
|
-
};
|
|
55826
|
-
});
|
|
55782
|
+
const isWorkingMeter = ((selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code) || "").toLowerCase() === "working";
|
|
55783
|
+
const optionsList = useMemo(() => {
|
|
55784
|
+
var _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _mdmsMeterStatus$Mdms3, _mdmsMeterStatus$Mdms4;
|
|
55785
|
+
return (mdmsMeterStatus === null || mdmsMeterStatus === void 0 ? void 0 : (_mdmsMeterStatus$Mdms = mdmsMeterStatus.MdmsRes) === null || _mdmsMeterStatus$Mdms === void 0 ? void 0 : (_mdmsMeterStatus$Mdms2 = _mdmsMeterStatus$Mdms["ws-services-calculation"]) === null || _mdmsMeterStatus$Mdms2 === void 0 ? void 0 : (_mdmsMeterStatus$Mdms3 = _mdmsMeterStatus$Mdms2.MeterStatus) === null || _mdmsMeterStatus$Mdms3 === void 0 ? void 0 : (_mdmsMeterStatus$Mdms4 = _mdmsMeterStatus$Mdms3.filter(status => typeof status === "object" ? (status === null || status === void 0 ? void 0 : status.active) === true || (status === null || status === void 0 ? void 0 : status.active) === "true" : true)) === null || _mdmsMeterStatus$Mdms4 === void 0 ? void 0 : _mdmsMeterStatus$Mdms4.map(status => {
|
|
55786
|
+
const statusCode = typeof status === "object" ? status.name || status.code : status;
|
|
55787
|
+
return {
|
|
55788
|
+
code: statusCode,
|
|
55789
|
+
i18nKey: `WS_SERVICES_CALCULATION_METERSTATUS_${Digit.Utils.locale.getTransformedLocale(statusCode)}`
|
|
55790
|
+
};
|
|
55791
|
+
})) || [];
|
|
55792
|
+
}, [mdmsMeterStatus]);
|
|
55793
|
+
const ReadingQualityCodeList = useMemo(() => {
|
|
55794
|
+
var _DJBReadingQualityCod, _DJBReadingQualityCod2, _DJBReadingQualityCod3, _DJBReadingQualityCod4;
|
|
55795
|
+
return (DJBReadingQualityCode === null || DJBReadingQualityCode === void 0 ? void 0 : (_DJBReadingQualityCod = DJBReadingQualityCode.MdmsRes) === null || _DJBReadingQualityCod === void 0 ? void 0 : (_DJBReadingQualityCod2 = _DJBReadingQualityCod["ws-services-calculation"]) === null || _DJBReadingQualityCod2 === void 0 ? void 0 : (_DJBReadingQualityCod3 = _DJBReadingQualityCod2.DJBReadingQualityCode) === null || _DJBReadingQualityCod3 === void 0 ? void 0 : (_DJBReadingQualityCod4 = _DJBReadingQualityCod3.filter(status => typeof status === "object" ? (status === null || status === void 0 ? void 0 : status.active) === true || (status === null || status === void 0 ? void 0 : status.active) === "true" : true)) === null || _DJBReadingQualityCod4 === void 0 ? void 0 : _DJBReadingQualityCod4.map(status => {
|
|
55796
|
+
const statusCode = typeof status === "object" ? status.code || status.name : status;
|
|
55797
|
+
return {
|
|
55798
|
+
code: statusCode,
|
|
55799
|
+
i18nKey: `WS_SERVICES_CALCULATION_DJBREADINGQUALITYCODE_${Digit.Utils.locale.getTransformedLocale(statusCode)}`
|
|
55800
|
+
};
|
|
55801
|
+
})) || [];
|
|
55802
|
+
}, [DJBReadingQualityCode]);
|
|
55803
|
+
const filteredReadingQualityCodeList = useMemo(() => {
|
|
55804
|
+
if (!ReadingQualityCodeList || ReadingQualityCodeList.length === 0) return [];
|
|
55805
|
+
if (isWorkingMeter) {
|
|
55806
|
+
return ReadingQualityCodeList.filter(item => ((item === null || item === void 0 ? void 0 : item.code) || "").toLowerCase() === "ok");
|
|
55807
|
+
}
|
|
55808
|
+
if (selectMeterStatus !== null && selectMeterStatus !== void 0 && selectMeterStatus.code) {
|
|
55809
|
+
return ReadingQualityCodeList.filter(item => ((item === null || item === void 0 ? void 0 : item.code) || "").toLowerCase() !== "ok");
|
|
55810
|
+
}
|
|
55811
|
+
return ReadingQualityCodeList;
|
|
55812
|
+
}, [ReadingQualityCodeList, isWorkingMeter, selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code]);
|
|
55813
|
+
useEffect(() => {
|
|
55814
|
+
if (!openModal) return;
|
|
55815
|
+
if (isWorkingMeter) {
|
|
55816
|
+
const okOption = ReadingQualityCodeList === null || ReadingQualityCodeList === void 0 ? void 0 : ReadingQualityCodeList.find(item => ((item === null || item === void 0 ? void 0 : item.code) || "").toLowerCase() === "ok");
|
|
55817
|
+
if (okOption && ((selectReadingQualityCode === null || selectReadingQualityCode === void 0 ? void 0 : selectReadingQualityCode.code) || "").toLowerCase() !== "ok") {
|
|
55818
|
+
setSelectReadingQualityCode(okOption);
|
|
55819
|
+
}
|
|
55820
|
+
} else if (selectMeterStatus !== null && selectMeterStatus !== void 0 && selectMeterStatus.code) {
|
|
55821
|
+
if (((selectReadingQualityCode === null || selectReadingQualityCode === void 0 ? void 0 : selectReadingQualityCode.code) || "").toLowerCase() === "ok") {
|
|
55822
|
+
setSelectReadingQualityCode("");
|
|
55823
|
+
}
|
|
55824
|
+
}
|
|
55825
|
+
}, [openModal, isWorkingMeter, selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code, ReadingQualityCodeList]);
|
|
55827
55826
|
const onFormValueChange = (setValue, formData, formState) => {
|
|
55828
|
-
if (
|
|
55827
|
+
if (isWorkingMeter) {
|
|
55829
55828
|
var _details$2;
|
|
55830
55829
|
setCurrentReading(formData === null || formData === void 0 ? void 0 : formData.currentReading);
|
|
55831
55830
|
setBillingPeriod(`${getDate(meterDetails === null || meterDetails === void 0 ? void 0 : meterDetails.currentReadingDate)} - ${getDate(formData === null || formData === void 0 ? void 0 : formData.currentReadingDate)}`);
|
|
@@ -55873,6 +55872,15 @@ const ConsumptionDetails$1 = _ref => {
|
|
|
55873
55872
|
select: e => {
|
|
55874
55873
|
setSelectMeterStatus(e);
|
|
55875
55874
|
setConsumption("");
|
|
55875
|
+
if (((e === null || e === void 0 ? void 0 : e.code) || "").toLowerCase() === "working") {
|
|
55876
|
+
const okOption = ReadingQualityCodeList === null || ReadingQualityCodeList === void 0 ? void 0 : ReadingQualityCodeList.find(item => ((item === null || item === void 0 ? void 0 : item.code) || "").toLowerCase() === "ok");
|
|
55877
|
+
setSelectReadingQualityCode(okOption || {
|
|
55878
|
+
code: "OK",
|
|
55879
|
+
i18nKey: `WS_SERVICES_CALCULATION_DJBREADINGQUALITYCODE_${Digit.Utils.locale.getTransformedLocale("OK")}`
|
|
55880
|
+
});
|
|
55881
|
+
} else {
|
|
55882
|
+
setSelectReadingQualityCode("");
|
|
55883
|
+
}
|
|
55876
55884
|
},
|
|
55877
55885
|
selected: selectMeterStatus,
|
|
55878
55886
|
t: t
|
|
@@ -55893,24 +55901,24 @@ const ConsumptionDetails$1 = _ref => {
|
|
|
55893
55901
|
}))
|
|
55894
55902
|
}, {
|
|
55895
55903
|
label: t("WS_CONSUMPTION_DETAILS_CURRENT_READING_LABEL"),
|
|
55896
|
-
isMandatory:
|
|
55897
|
-
disable:
|
|
55904
|
+
isMandatory: isWorkingMeter ? true : false,
|
|
55905
|
+
disable: isWorkingMeter ? false : true,
|
|
55898
55906
|
type: "number",
|
|
55899
55907
|
populators: {
|
|
55900
55908
|
name: "currentReading",
|
|
55901
|
-
...(tempObj =
|
|
55909
|
+
...(tempObj = isWorkingMeter ? {} : {
|
|
55902
55910
|
value: ""
|
|
55903
55911
|
})
|
|
55904
55912
|
}
|
|
55905
55913
|
}, {
|
|
55906
55914
|
label: t("WS_CONSUMPTION_DETAILS_CURRENT_READING_DATE_LABEL"),
|
|
55907
|
-
isMandatory:
|
|
55908
|
-
disable:
|
|
55915
|
+
isMandatory: isWorkingMeter ? true : false,
|
|
55916
|
+
disable: isWorkingMeter ? false : true,
|
|
55909
55917
|
type: "custom",
|
|
55910
55918
|
populators: {
|
|
55911
55919
|
name: "currentReadingDate",
|
|
55912
55920
|
validation: {
|
|
55913
|
-
required:
|
|
55921
|
+
required: isWorkingMeter ? true : false
|
|
55914
55922
|
},
|
|
55915
55923
|
customProps: {},
|
|
55916
55924
|
defaultValue: Digit.Utils.date.getDate(),
|
|
@@ -55918,7 +55926,7 @@ const ConsumptionDetails$1 = _ref => {
|
|
|
55918
55926
|
onChange: props.onChange,
|
|
55919
55927
|
date: props.value
|
|
55920
55928
|
}, customProps, {
|
|
55921
|
-
disabled:
|
|
55929
|
+
disabled: isWorkingMeter ? false : true
|
|
55922
55930
|
}))
|
|
55923
55931
|
}
|
|
55924
55932
|
}, {
|
|
@@ -55926,7 +55934,7 @@ const ConsumptionDetails$1 = _ref => {
|
|
|
55926
55934
|
isMandatory: true,
|
|
55927
55935
|
type: "dropdown",
|
|
55928
55936
|
populators: /*#__PURE__*/React.createElement(Dropdown, {
|
|
55929
|
-
option:
|
|
55937
|
+
option: filteredReadingQualityCodeList,
|
|
55930
55938
|
autoComplete: "off",
|
|
55931
55939
|
optionKey: "i18nKey",
|
|
55932
55940
|
id: "readingQualityCode",
|
|
@@ -55940,9 +55948,9 @@ const ConsumptionDetails$1 = _ref => {
|
|
|
55940
55948
|
label: t("WS_SERV_DETAIL_CONSUMP"),
|
|
55941
55949
|
isMandatory: false,
|
|
55942
55950
|
type: "number",
|
|
55943
|
-
disable:
|
|
55951
|
+
disable: isWorkingMeter ? true : false,
|
|
55944
55952
|
populators: {
|
|
55945
|
-
...(tempObj1 =
|
|
55953
|
+
...(tempObj1 = isWorkingMeter ? {
|
|
55946
55954
|
name: "consumption",
|
|
55947
55955
|
value: selectedConsumtion
|
|
55948
55956
|
} : {
|
|
@@ -55974,10 +55982,122 @@ const ConsumptionDetails$1 = _ref => {
|
|
|
55974
55982
|
}, /*#__PURE__*/React.createElement(Close, null));
|
|
55975
55983
|
};
|
|
55976
55984
|
const consumption = (currentReading, lastReading) => {
|
|
55977
|
-
if (currentReading && lastReading) {
|
|
55985
|
+
if (currentReading !== null && currentReading !== undefined && lastReading !== null && lastReading !== undefined && currentReading !== "" && lastReading !== "") {
|
|
55978
55986
|
return Number(currentReading - lastReading);
|
|
55979
55987
|
} else return t("NA");
|
|
55980
55988
|
};
|
|
55989
|
+
const columns = useMemo(() => [{
|
|
55990
|
+
Header: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
55991
|
+
accessor: "connectionNo",
|
|
55992
|
+
disableSortBy: true,
|
|
55993
|
+
Cell: _ref2 => {
|
|
55994
|
+
var _row$original;
|
|
55995
|
+
let {
|
|
55996
|
+
row
|
|
55997
|
+
} = _ref2;
|
|
55998
|
+
return /*#__PURE__*/React.createElement("span", null, ((_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.connectionNo) || t("NA"));
|
|
55999
|
+
}
|
|
56000
|
+
}, {
|
|
56001
|
+
Header: t("WS_VIEW_BILL_BILLING_PERIOD_LABEL"),
|
|
56002
|
+
accessor: "billingPeriod",
|
|
56003
|
+
disableSortBy: true,
|
|
56004
|
+
Cell: _ref3 => {
|
|
56005
|
+
var _row$original2;
|
|
56006
|
+
let {
|
|
56007
|
+
row
|
|
56008
|
+
} = _ref3;
|
|
56009
|
+
return /*#__PURE__*/React.createElement("span", null, ((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.billingPeriod) || t("NA"));
|
|
56010
|
+
}
|
|
56011
|
+
}, {
|
|
56012
|
+
Header: t("WS_READING_QUALITY_CODE"),
|
|
56013
|
+
accessor: "readingQualityCode",
|
|
56014
|
+
disableSortBy: true,
|
|
56015
|
+
Cell: _ref4 => {
|
|
56016
|
+
var _row$original3;
|
|
56017
|
+
let {
|
|
56018
|
+
row
|
|
56019
|
+
} = _ref4;
|
|
56020
|
+
return /*#__PURE__*/React.createElement("span", null, ((_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.readingQualityCode) || t("NA"));
|
|
56021
|
+
}
|
|
56022
|
+
}, {
|
|
56023
|
+
Header: t("WS_CONSUMPTION_DETAILS_LAST_READING_LABEL"),
|
|
56024
|
+
accessor: "lastReading",
|
|
56025
|
+
disableSortBy: true,
|
|
56026
|
+
Cell: _ref5 => {
|
|
56027
|
+
var _row$original4, _row$original5, _row$original6;
|
|
56028
|
+
let {
|
|
56029
|
+
row
|
|
56030
|
+
} = _ref5;
|
|
56031
|
+
return /*#__PURE__*/React.createElement("span", null, ((_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4.lastReading) !== undefined && ((_row$original5 = row.original) === null || _row$original5 === void 0 ? void 0 : _row$original5.lastReading) !== null ? (_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : _row$original6.lastReading : t("NA"));
|
|
56032
|
+
}
|
|
56033
|
+
}, {
|
|
56034
|
+
Header: t("WS_CONSUMPTION_DETAILS_LAST_READING_DATE_LABEL"),
|
|
56035
|
+
accessor: "lastReadingDate",
|
|
56036
|
+
disableSortBy: true,
|
|
56037
|
+
Cell: _ref6 => {
|
|
56038
|
+
var _row$original7, _row$original8;
|
|
56039
|
+
let {
|
|
56040
|
+
row
|
|
56041
|
+
} = _ref6;
|
|
56042
|
+
return /*#__PURE__*/React.createElement("span", null, (_row$original7 = row.original) !== null && _row$original7 !== void 0 && _row$original7.lastReadingDate ? Digit.DateUtils.ConvertEpochToDate((_row$original8 = row.original) === null || _row$original8 === void 0 ? void 0 : _row$original8.lastReadingDate) : t("NA"));
|
|
56043
|
+
}
|
|
56044
|
+
}, {
|
|
56045
|
+
Header: t("WS_SERV_DETAIL_CUR_METER_READ"),
|
|
56046
|
+
accessor: "currentReading",
|
|
56047
|
+
disableSortBy: true,
|
|
56048
|
+
Cell: _ref7 => {
|
|
56049
|
+
var _row$original9, _row$original0, _row$original1;
|
|
56050
|
+
let {
|
|
56051
|
+
row
|
|
56052
|
+
} = _ref7;
|
|
56053
|
+
return /*#__PURE__*/React.createElement("span", null, ((_row$original9 = row.original) === null || _row$original9 === void 0 ? void 0 : _row$original9.currentReading) !== undefined && ((_row$original0 = row.original) === null || _row$original0 === void 0 ? void 0 : _row$original0.currentReading) !== null ? (_row$original1 = row.original) === null || _row$original1 === void 0 ? void 0 : _row$original1.currentReading : t("NA"));
|
|
56054
|
+
}
|
|
56055
|
+
}, {
|
|
56056
|
+
Header: t("WS_CONSUMPTION_DETAILS_CURRENT_READING_DATE_LABEL"),
|
|
56057
|
+
accessor: "currentReadingDate",
|
|
56058
|
+
disableSortBy: true,
|
|
56059
|
+
Cell: _ref8 => {
|
|
56060
|
+
var _row$original10, _row$original11;
|
|
56061
|
+
let {
|
|
56062
|
+
row
|
|
56063
|
+
} = _ref8;
|
|
56064
|
+
return /*#__PURE__*/React.createElement("span", null, (_row$original10 = row.original) !== null && _row$original10 !== void 0 && _row$original10.currentReadingDate ? Digit.DateUtils.ConvertEpochToDate((_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : _row$original11.currentReadingDate) : t("NA"));
|
|
56065
|
+
}
|
|
56066
|
+
}, {
|
|
56067
|
+
Header: t("WS_CONSUMPTION_DETAILS_CONSUMPTION_LABEL"),
|
|
56068
|
+
id: "consumption",
|
|
56069
|
+
disableSortBy: true,
|
|
56070
|
+
Cell: _ref9 => {
|
|
56071
|
+
var _row$original12, _row$original13;
|
|
56072
|
+
let {
|
|
56073
|
+
row
|
|
56074
|
+
} = _ref9;
|
|
56075
|
+
return /*#__PURE__*/React.createElement("span", null, consumption((_row$original12 = row.original) === null || _row$original12 === void 0 ? void 0 : _row$original12.currentReading, (_row$original13 = row.original) === null || _row$original13 === void 0 ? void 0 : _row$original13.lastReading));
|
|
56076
|
+
}
|
|
56077
|
+
}, {
|
|
56078
|
+
Header: t("WS_COMMON_TABLE_COL_ACTION_LABEL"),
|
|
56079
|
+
id: "action",
|
|
56080
|
+
disableSortBy: true,
|
|
56081
|
+
Cell: _ref0 => {
|
|
56082
|
+
let {
|
|
56083
|
+
row
|
|
56084
|
+
} = _ref0;
|
|
56085
|
+
return /*#__PURE__*/React.createElement(SubmitBar, {
|
|
56086
|
+
style: {
|
|
56087
|
+
backgroundColor: "#0A4275",
|
|
56088
|
+
color: "#FFFFFF",
|
|
56089
|
+
minWidth: "auto",
|
|
56090
|
+
padding: "6px 14px",
|
|
56091
|
+
fontSize: "12px",
|
|
56092
|
+
height: "auto",
|
|
56093
|
+
margin: "0px",
|
|
56094
|
+
whiteSpace: "nowrap"
|
|
56095
|
+
},
|
|
56096
|
+
label: t("VIEW_METER_READING_DETAILS"),
|
|
56097
|
+
onSubmit: () => handleViewMeterReadingDetails(row.original)
|
|
56098
|
+
});
|
|
56099
|
+
}
|
|
56100
|
+
}], [t]);
|
|
55981
56101
|
if (isLoading || isConnectionDetailsLoading) {
|
|
55982
56102
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
55983
56103
|
}
|
|
@@ -55985,89 +56105,40 @@ const ConsumptionDetails$1 = _ref => {
|
|
|
55985
56105
|
meterReadings
|
|
55986
56106
|
} = response || {};
|
|
55987
56107
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
55988
|
-
className: "employee-form-section-wrapper"
|
|
55989
|
-
}, /*#__PURE__*/React.createElement(VerticalTimeline, {
|
|
55990
|
-
config: [{
|
|
55991
|
-
timeLine: [{
|
|
55992
|
-
actions: "WS_VIEW_CONSUMPTION",
|
|
55993
|
-
currentStep: 1
|
|
55994
|
-
}]
|
|
55995
|
-
}],
|
|
55996
|
-
showFinalStep: false
|
|
55997
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
55998
56108
|
style: {
|
|
55999
56109
|
flex: 1,
|
|
56000
56110
|
display: "flex",
|
|
56001
56111
|
flexDirection: "column",
|
|
56002
|
-
gap: "16px"
|
|
56003
|
-
|
|
56004
|
-
|
|
56005
|
-
key: index
|
|
56006
|
-
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
|
|
56007
|
-
style: {
|
|
56008
|
-
display: "flex",
|
|
56009
|
-
justifyContent: "flex-end",
|
|
56010
|
-
marginBottom: "16px",
|
|
56011
|
-
marginTop: "8px",
|
|
56012
|
-
marginRight: "8px"
|
|
56112
|
+
gap: "16px",
|
|
56113
|
+
minWidth: 0,
|
|
56114
|
+
overflowX: "auto"
|
|
56013
56115
|
}
|
|
56014
|
-
}, /*#__PURE__*/React.createElement(
|
|
56015
|
-
|
|
56016
|
-
|
|
56017
|
-
|
|
56018
|
-
|
|
56019
|
-
|
|
56020
|
-
|
|
56021
|
-
|
|
56022
|
-
|
|
56023
|
-
|
|
56024
|
-
|
|
56025
|
-
|
|
56026
|
-
|
|
56027
|
-
|
|
56028
|
-
|
|
56029
|
-
|
|
56030
|
-
|
|
56031
|
-
|
|
56032
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
56033
|
-
key: t("WS_READING_QUALITY_CODE"),
|
|
56034
|
-
label: `${t("WS_READING_QUALITY_CODE")}`,
|
|
56035
|
-
text: (application === null || application === void 0 ? void 0 : application.readingQualityCode) || t("NA"),
|
|
56036
|
-
className: "border-none"
|
|
56037
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
56038
|
-
key: t("WS_CONSUMPTION_DETAILS_LAST_READING_LABEL"),
|
|
56039
|
-
label: `${t("WS_CONSUMPTION_DETAILS_LAST_READING_LABEL")}`,
|
|
56040
|
-
text: (application === null || application === void 0 ? void 0 : application.lastReading) || t("NA"),
|
|
56041
|
-
className: "border-none"
|
|
56042
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
56043
|
-
key: t("WS_CONSUMPTION_DETAILS_LAST_READING_DATE_LABEL"),
|
|
56044
|
-
label: `${t("WS_CONSUMPTION_DETAILS_LAST_READING_DATE_LABEL")}`,
|
|
56045
|
-
text: application !== null && application !== void 0 && application.lastReadingDate ? Digit.DateUtils.ConvertEpochToDate(application === null || application === void 0 ? void 0 : application.lastReadingDate) : t("NA"),
|
|
56046
|
-
className: "border-none"
|
|
56047
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
56048
|
-
key: t("WS_SERV_DETAIL_CUR_METER_READ"),
|
|
56049
|
-
label: `${t("WS_SERV_DETAIL_CUR_METER_READ")}`,
|
|
56050
|
-
text: (application === null || application === void 0 ? void 0 : application.currentReading) || t("NA"),
|
|
56051
|
-
className: "border-none"
|
|
56052
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
56053
|
-
key: t("WS_CONSUMPTION_DETAILS_CURRENT_READING_DATE_LABEL"),
|
|
56054
|
-
label: `${t("WS_CONSUMPTION_DETAILS_CURRENT_READING_DATE_LABEL")}`,
|
|
56055
|
-
text: application !== null && application !== void 0 && application.currentReadingDate ? Digit.DateUtils.ConvertEpochToDate(application === null || application === void 0 ? void 0 : application.currentReadingDate) : t("NA"),
|
|
56056
|
-
className: "border-none"
|
|
56057
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
56058
|
-
key: t("WS_CONSUMPTION_DETAILS_CONSUMPTION_LABEL"),
|
|
56059
|
-
label: `${t("WS_CONSUMPTION_DETAILS_CONSUMPTION_LABEL")}`,
|
|
56060
|
-
text: consumption(application === null || application === void 0 ? void 0 : application.currentReading, application === null || application === void 0 ? void 0 : application.lastReading),
|
|
56061
|
-
className: "border-none"
|
|
56062
|
-
}))))), !(meterReadings !== null && meterReadings !== void 0 && meterReadings.length) > 0 && /*#__PURE__*/React.createElement("p", {
|
|
56116
|
+
}, (meterReadings === null || meterReadings === void 0 ? void 0 : meterReadings.length) > 0 ? /*#__PURE__*/React.createElement(Table, {
|
|
56117
|
+
t: t,
|
|
56118
|
+
data: meterReadings,
|
|
56119
|
+
columns: columns,
|
|
56120
|
+
totalRecords: meterReadings === null || meterReadings === void 0 ? void 0 : meterReadings.length,
|
|
56121
|
+
manualPagination: false,
|
|
56122
|
+
isPaginationRequired: true,
|
|
56123
|
+
pageSizeLimit: 10,
|
|
56124
|
+
disableSort: true,
|
|
56125
|
+
autoSort: false,
|
|
56126
|
+
getCellProps: () => ({
|
|
56127
|
+
style: {
|
|
56128
|
+
whiteSpace: "nowrap",
|
|
56129
|
+
padding: "16px 14px",
|
|
56130
|
+
fontSize: "14px"
|
|
56131
|
+
}
|
|
56132
|
+
})
|
|
56133
|
+
}) : /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("p", {
|
|
56063
56134
|
style: {
|
|
56064
56135
|
marginLeft: "16px",
|
|
56065
56136
|
marginTop: "16px"
|
|
56066
56137
|
}
|
|
56067
|
-
}, t("WS_NO_CONSUMPTION_FOUND"))), isLoading || meterStatusLoading || billingPeriodLoading || !isUserAllowedToAddMeterReading ? null : /*#__PURE__*/React.createElement("div", null, isAddMeterReadingButtonEnable && /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
56138
|
+
}, t("WS_NO_CONSUMPTION_FOUND")))), isLoading || meterStatusLoading || billingPeriodLoading || !isUserAllowedToAddMeterReading ? null : /*#__PURE__*/React.createElement("div", null, isAddMeterReadingButtonEnable && /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
56068
56139
|
label: t("WS_CONSUMPTION_BUTTON_METER_READING_LABEL"),
|
|
56069
56140
|
onSubmit: popUp
|
|
56070
|
-
})))
|
|
56141
|
+
}))), openModal && /*#__PURE__*/React.createElement(Modal, {
|
|
56071
56142
|
headerBarMain: /*#__PURE__*/React.createElement(Heading, {
|
|
56072
56143
|
label: t(config.label.heading)
|
|
56073
56144
|
}),
|
|
@@ -62347,9 +62418,6 @@ const OLDApplication = () => {
|
|
|
62347
62418
|
const [canSubmit, setSubmitValve] = useState(false);
|
|
62348
62419
|
const [isEnableLoader, setIsEnableLoader] = useState(false);
|
|
62349
62420
|
const [showToast, setShowToast] = useState(null);
|
|
62350
|
-
const [config, setConfig] = useState({
|
|
62351
|
-
body: []
|
|
62352
|
-
});
|
|
62353
62421
|
const [showCheckPage, setShowCheckPage] = useState(false);
|
|
62354
62422
|
const isCitizen = ((_Digit$UserService$ge = Digit.UserService.getType()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.toUpperCase()) === "CITIZEN";
|
|
62355
62423
|
const timelineConfig = [{
|
|
@@ -62383,15 +62451,21 @@ const OLDApplication = () => {
|
|
|
62383
62451
|
tenantId = (_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code;
|
|
62384
62452
|
}
|
|
62385
62453
|
const stateId = Digit.ULBService.getStateId();
|
|
62454
|
+
const mdmsOptions = useMemo(() => ({}), []);
|
|
62386
62455
|
let {
|
|
62387
|
-
data: newConfig,
|
|
62456
|
+
data: newConfig$1,
|
|
62388
62457
|
isLoading
|
|
62389
|
-
} = Digit.Hooks.ws.useWSConfigMDMS.WSCreateConfig(stateId,
|
|
62458
|
+
} = Digit.Hooks.ws.useWSConfigMDMS.WSCreateConfig(stateId, mdmsOptions);
|
|
62390
62459
|
const requestedPropertyId = new URLSearchParams(location.search).get("propertyId");
|
|
62391
62460
|
const [propertyId, setPropertyId] = useState(requestedPropertyId);
|
|
62392
62461
|
const initialPropertyId = useRef(requestedPropertyId);
|
|
62393
62462
|
const verifiedPropertyId = useRef(sessionStorage.getItem("WS_OTP_VERIFIED_PROPERTY_ID"));
|
|
62394
62463
|
const [sessionFormData, setSessionFormData, clearSessionFormData] = Digit.Hooks.useSessionStorage("PT_CREATE_EMP_WS_NEW_FORM", {});
|
|
62464
|
+
const formDataRef = useRef(sessionFormData || {});
|
|
62465
|
+
const sessionSaveTimeoutRef = useRef(null);
|
|
62466
|
+
const defaultValues = useMemo(() => {
|
|
62467
|
+
return sessionFormData && Object.keys(sessionFormData).length > 0 ? sessionFormData : Digit.SessionStorage.get("PT_CREATE_EMP_WS_NEW_FORM") || {};
|
|
62468
|
+
}, []);
|
|
62395
62469
|
const {
|
|
62396
62470
|
data: propertyDetails
|
|
62397
62471
|
} = Digit.Hooks.pt.usePropertySearch({
|
|
@@ -62416,102 +62490,106 @@ const OLDApplication = () => {
|
|
|
62416
62490
|
useEffect(() => {
|
|
62417
62491
|
sessionStorage.removeItem("FORMSTATE_ERRORS");
|
|
62418
62492
|
}, []);
|
|
62419
|
-
|
|
62420
|
-
|
|
62421
|
-
|
|
62422
|
-
|
|
62423
|
-
|
|
62424
|
-
|
|
62425
|
-
|
|
62426
|
-
|
|
62427
|
-
|
|
62428
|
-
|
|
62429
|
-
|
|
62430
|
-
|
|
62431
|
-
|
|
62432
|
-
|
|
62433
|
-
|
|
62434
|
-
|
|
62435
|
-
|
|
62436
|
-
|
|
62437
|
-
|
|
62438
|
-
|
|
62439
|
-
|
|
62440
|
-
|
|
62441
|
-
|
|
62442
|
-
|
|
62443
|
-
|
|
62444
|
-
|
|
62445
|
-
|
|
62446
|
-
|
|
62447
|
-
|
|
62448
|
-
}
|
|
62449
|
-
}
|
|
62450
|
-
|
|
62451
|
-
|
|
62452
|
-
isCreateConnection: true,
|
|
62453
|
-
body: [{
|
|
62454
|
-
type: "component",
|
|
62455
|
-
key: "useDetails",
|
|
62456
|
-
component: "PropertyWaterConnection",
|
|
62457
|
-
withoutLabel: true,
|
|
62458
|
-
isAutomaticFill: true
|
|
62459
|
-
}]
|
|
62460
|
-
});
|
|
62461
|
-
} else if (compName === "WSDeclaration") {
|
|
62462
|
-
reorderedBody.push({
|
|
62463
|
-
isCreateConnection: true,
|
|
62464
|
-
body: [{
|
|
62465
|
-
type: "component",
|
|
62466
|
-
key: "declarationData",
|
|
62467
|
-
component: "WSDeclaration",
|
|
62468
|
-
withoutLabel: true
|
|
62469
|
-
}]
|
|
62470
|
-
});
|
|
62471
|
-
} else if (compName === "WSDjbEmployee") {
|
|
62472
|
-
reorderedBody.push({
|
|
62473
|
-
isCreateConnection: true,
|
|
62474
|
-
body: [{
|
|
62475
|
-
type: "component",
|
|
62476
|
-
key: "djbEmployee",
|
|
62477
|
-
component: "WSDjbEmployee",
|
|
62478
|
-
withoutLabel: true
|
|
62479
|
-
}]
|
|
62480
|
-
});
|
|
62481
|
-
} else if (compName === "WSDivyangjan") {
|
|
62482
|
-
reorderedBody.push({
|
|
62483
|
-
isCreateConnection: true,
|
|
62484
|
-
body: [{
|
|
62485
|
-
type: "component",
|
|
62486
|
-
key: "disability",
|
|
62487
|
-
component: "WSDivyangjan",
|
|
62488
|
-
withoutLabel: true,
|
|
62489
|
-
texts: {
|
|
62490
|
-
header: "Divyangjan/Person with Disability?"
|
|
62491
|
-
}
|
|
62492
|
-
}]
|
|
62493
|
-
});
|
|
62494
|
-
}
|
|
62493
|
+
const config = useMemo(() => {
|
|
62494
|
+
var _configCopy$body;
|
|
62495
|
+
const rawConfigs = newConfig$1 && Array.isArray(newConfig$1) && newConfig$1.length > 0 ? newConfig$1 : newConfig;
|
|
62496
|
+
const foundConfig = rawConfigs === null || rawConfigs === void 0 ? void 0 : rawConfigs.find(conf => conf.hideInCitizen && conf.isCreate);
|
|
62497
|
+
if (!foundConfig) return {
|
|
62498
|
+
body: []
|
|
62499
|
+
};
|
|
62500
|
+
const configCopy = cloneDeep_1(foundConfig);
|
|
62501
|
+
const allCreateSections = (configCopy === null || configCopy === void 0 ? void 0 : (_configCopy$body = configCopy.body) === null || _configCopy$body === void 0 ? void 0 : _configCopy$body.filter(section => section === null || section === void 0 ? void 0 : section.isCreateConnection)) || [];
|
|
62502
|
+
const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSDivyangjan", "WSDjbEmployee", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSDocumentsEmployee"];
|
|
62503
|
+
const reorderedBody = [];
|
|
62504
|
+
desiredComponentOrder.forEach(compName => {
|
|
62505
|
+
const section = allCreateSections.find(s => {
|
|
62506
|
+
var _s$body, _s$body$;
|
|
62507
|
+
const bodyComp = (_s$body = s.body) === null || _s$body === void 0 ? void 0 : (_s$body$ = _s$body[0]) === null || _s$body$ === void 0 ? void 0 : _s$body$.component;
|
|
62508
|
+
return bodyComp === compName || compName === "WSConnectionDetails" && bodyComp === "WSConnectionDetails";
|
|
62509
|
+
});
|
|
62510
|
+
if (section) {
|
|
62511
|
+
reorderedBody.push(section);
|
|
62512
|
+
} else if (compName === "WSPropertyLocationDetails") {
|
|
62513
|
+
reorderedBody.push({
|
|
62514
|
+
isCreateConnection: true,
|
|
62515
|
+
body: [{
|
|
62516
|
+
type: "component",
|
|
62517
|
+
key: "propertyAddress",
|
|
62518
|
+
component: "WSPropertyLocationDetails",
|
|
62519
|
+
withoutLabel: true,
|
|
62520
|
+
isAutomaticFill: true,
|
|
62521
|
+
texts: {
|
|
62522
|
+
header: `${t("PT_LOCATION_DETAILS_AUTOMATIC_FILL_BY_PROPERTY")}`
|
|
62523
|
+
},
|
|
62524
|
+
defaultOpen: false
|
|
62525
|
+
}]
|
|
62495
62526
|
});
|
|
62496
|
-
|
|
62497
|
-
|
|
62498
|
-
|
|
62499
|
-
|
|
62500
|
-
|
|
62501
|
-
|
|
62502
|
-
|
|
62503
|
-
|
|
62504
|
-
|
|
62527
|
+
} else if (compName === "PropertyWaterConnection") {
|
|
62528
|
+
reorderedBody.push({
|
|
62529
|
+
isCreateConnection: true,
|
|
62530
|
+
body: [{
|
|
62531
|
+
type: "component",
|
|
62532
|
+
key: "useDetails",
|
|
62533
|
+
component: "PropertyWaterConnection",
|
|
62534
|
+
withoutLabel: true,
|
|
62535
|
+
isAutomaticFill: true
|
|
62536
|
+
}]
|
|
62537
|
+
});
|
|
62538
|
+
} else if (compName === "WSDeclaration") {
|
|
62539
|
+
reorderedBody.push({
|
|
62540
|
+
isCreateConnection: true,
|
|
62541
|
+
body: [{
|
|
62542
|
+
type: "component",
|
|
62543
|
+
key: "declarationData",
|
|
62544
|
+
component: "WSDeclaration",
|
|
62545
|
+
withoutLabel: true
|
|
62546
|
+
}]
|
|
62547
|
+
});
|
|
62548
|
+
} else if (compName === "WSDjbEmployee") {
|
|
62549
|
+
reorderedBody.push({
|
|
62550
|
+
isCreateConnection: true,
|
|
62551
|
+
body: [{
|
|
62552
|
+
type: "component",
|
|
62553
|
+
key: "djbEmployee",
|
|
62554
|
+
component: "WSDjbEmployee",
|
|
62555
|
+
withoutLabel: true
|
|
62556
|
+
}]
|
|
62557
|
+
});
|
|
62558
|
+
} else if (compName === "WSDivyangjan") {
|
|
62559
|
+
reorderedBody.push({
|
|
62560
|
+
isCreateConnection: true,
|
|
62561
|
+
body: [{
|
|
62562
|
+
type: "component",
|
|
62563
|
+
key: "disability",
|
|
62564
|
+
component: "WSDivyangjan",
|
|
62565
|
+
withoutLabel: true,
|
|
62566
|
+
texts: {
|
|
62567
|
+
header: "Divyangjan/Person with Disability?"
|
|
62568
|
+
}
|
|
62569
|
+
}]
|
|
62505
62570
|
});
|
|
62506
|
-
config.body = reorderedBody;
|
|
62507
|
-
setConfig(config);
|
|
62508
62571
|
}
|
|
62509
|
-
}
|
|
62510
|
-
|
|
62572
|
+
});
|
|
62573
|
+
allCreateSections.forEach(section => {
|
|
62574
|
+
var _section$body, _section$body$;
|
|
62575
|
+
const bodyComp = (_section$body = section.body) === null || _section$body === void 0 ? void 0 : (_section$body$ = _section$body[0]) === null || _section$body$ === void 0 ? void 0 : _section$body$.component;
|
|
62576
|
+
if (bodyComp !== "CPTPropertySearchNSummary" && !reorderedBody.find(r => {
|
|
62577
|
+
var _r$body, _r$body$;
|
|
62578
|
+
return ((_r$body = r.body) === null || _r$body === void 0 ? void 0 : (_r$body$ = _r$body[0]) === null || _r$body$ === void 0 ? void 0 : _r$body$.component) === bodyComp;
|
|
62579
|
+
})) {
|
|
62580
|
+
reorderedBody.push(section);
|
|
62581
|
+
}
|
|
62582
|
+
});
|
|
62583
|
+
configCopy.body = reorderedBody;
|
|
62584
|
+
return configCopy;
|
|
62585
|
+
}, [newConfig$1, t]);
|
|
62511
62586
|
useEffect(() => {
|
|
62512
|
-
var _sessionFormData$cpt, _sessionFormData$cpt$,
|
|
62513
|
-
|
|
62514
|
-
|
|
62587
|
+
var _sessionFormData$cpt, _sessionFormData$cpt$, _Digit$SessionStorage2, _Digit$SessionStorage3, _Digit$SessionStorage4;
|
|
62588
|
+
const cptId = (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$cpt = sessionFormData.cpt) === null || _sessionFormData$cpt === void 0 ? void 0 : (_sessionFormData$cpt$ = _sessionFormData$cpt.details) === null || _sessionFormData$cpt$ === void 0 ? void 0 : _sessionFormData$cpt$.propertyId) || ((_Digit$SessionStorage2 = Digit.SessionStorage.get("PT_CREATE_EMP_WS_NEW_FORM")) === null || _Digit$SessionStorage2 === void 0 ? void 0 : (_Digit$SessionStorage3 = _Digit$SessionStorage2.cpt) === null || _Digit$SessionStorage3 === void 0 ? void 0 : (_Digit$SessionStorage4 = _Digit$SessionStorage3.details) === null || _Digit$SessionStorage4 === void 0 ? void 0 : _Digit$SessionStorage4.propertyId);
|
|
62589
|
+
if (!propertyId && cptId) {
|
|
62590
|
+
setPropertyId(cptId);
|
|
62591
|
+
}
|
|
62592
|
+
}, [sessionFormData === null || sessionFormData === void 0 ? void 0 : sessionFormData.cpt, propertyId]);
|
|
62515
62593
|
const {
|
|
62516
62594
|
isLoading: creatingWaterApplicationLoading,
|
|
62517
62595
|
mutate: waterMutation
|
|
@@ -62529,29 +62607,42 @@ const OLDApplication = () => {
|
|
|
62529
62607
|
mutate: sewerageUpdateMutation
|
|
62530
62608
|
} = Digit.Hooks.ws.useWSApplicationActions("SEWERAGE");
|
|
62531
62609
|
const onFormValueChange = (setValue, formData, formState) => {
|
|
62532
|
-
var _djbData$document,
|
|
62533
|
-
|
|
62534
|
-
...
|
|
62610
|
+
var _formData$cpt, _formData$cpt$details, _formDataRef$current, _formDataRef$current2, _djbData$document, _formDataRef$current3, _formDataRef$current4, _formDataRef$current5, _propertyDetails$Prop, _propertyDetails$Prop2;
|
|
62611
|
+
formDataRef.current = {
|
|
62612
|
+
...formDataRef.current,
|
|
62535
62613
|
...formData
|
|
62536
62614
|
};
|
|
62537
|
-
|
|
62538
|
-
|
|
62539
|
-
setSessionFormData(cleanedFormData);
|
|
62615
|
+
if (sessionSaveTimeoutRef.current) {
|
|
62616
|
+
clearTimeout(sessionSaveTimeoutRef.current);
|
|
62540
62617
|
}
|
|
62618
|
+
sessionSaveTimeoutRef.current = setTimeout(() => {
|
|
62619
|
+
Digit.SessionStorage.set("PT_CREATE_EMP_WS_NEW_FORM", formDataRef.current);
|
|
62620
|
+
}, 300);
|
|
62541
62621
|
sessionStorage.setItem("FORMSTATE_ERRORS", JSON.stringify((formState === null || formState === void 0 ? void 0 : formState.errors) || {}));
|
|
62542
|
-
const
|
|
62622
|
+
const cptPropId = formData === null || formData === void 0 ? void 0 : (_formData$cpt = formData.cpt) === null || _formData$cpt === void 0 ? void 0 : (_formData$cpt$details = _formData$cpt.details) === null || _formData$cpt$details === void 0 ? void 0 : _formData$cpt$details.propertyId;
|
|
62623
|
+
if (!propertyId && cptPropId) {
|
|
62624
|
+
setPropertyId(cptPropId);
|
|
62625
|
+
}
|
|
62626
|
+
const djbData = ((_formDataRef$current = formDataRef.current) === null || _formDataRef$current === void 0 ? void 0 : _formDataRef$current.djbEmployee) || ((_formDataRef$current2 = formDataRef.current) === null || _formDataRef$current2 === void 0 ? void 0 : _formDataRef$current2.additionalDetails);
|
|
62543
62627
|
const isDjbEmp = (djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === true || String(djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === "true";
|
|
62544
62628
|
const isDjbEmpInvalid = isDjbEmp && (!(djbData !== null && djbData !== void 0 && djbData.employeeId) || !String(djbData === null || djbData === void 0 ? void 0 : djbData.employeeId).trim() || !(djbData !== null && djbData !== void 0 && djbData.designation) || !String(djbData === null || djbData === void 0 ? void 0 : djbData.designation).trim() || !(djbData !== null && djbData !== void 0 && (_djbData$document = djbData.document) !== null && _djbData$document !== void 0 && _djbData$document.fileStoreId || typeof (djbData === null || djbData === void 0 ? void 0 : djbData.document) === "string" && djbData !== null && djbData !== void 0 && djbData.document.trim() || djbData !== null && djbData !== void 0 && djbData.document));
|
|
62545
62629
|
const hasErrors = Object.keys((formState === null || formState === void 0 ? void 0 : formState.errors) || {}).length > 0 || isDjbEmpInvalid;
|
|
62546
|
-
const hasProperty = (
|
|
62547
|
-
|
|
62630
|
+
const hasProperty = ((_formDataRef$current3 = formDataRef.current) === null || _formDataRef$current3 === void 0 ? void 0 : (_formDataRef$current4 = _formDataRef$current3.cpt) === null || _formDataRef$current4 === void 0 ? void 0 : (_formDataRef$current5 = _formDataRef$current4.details) === null || _formDataRef$current5 === void 0 ? void 0 : _formDataRef$current5.propertyId) || sessionStorage.getItem("WS_OTP_VERIFIED_PROPERTY_ID") || propertyId || (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop = propertyDetails.Properties) === null || _propertyDetails$Prop === void 0 ? void 0 : (_propertyDetails$Prop2 = _propertyDetails$Prop[0]) === null || _propertyDetails$Prop2 === void 0 ? void 0 : _propertyDetails$Prop2.propertyId);
|
|
62631
|
+
const canSubmitNow = !hasErrors && !!hasProperty;
|
|
62632
|
+
setSubmitValve(prev => prev !== canSubmitNow ? canSubmitNow : prev);
|
|
62548
62633
|
};
|
|
62549
62634
|
const onFormSubmit = data => {
|
|
62550
|
-
var
|
|
62551
|
-
const
|
|
62635
|
+
var _combinedData$cpt, _combinedData$cpt$det, _propertyDetails$Prop3, _propertyDetails$Prop4, _combinedData$cpt2, _propertyDetails$Prop5, _djbData$document2;
|
|
62636
|
+
const combinedData = {
|
|
62637
|
+
...formDataRef.current,
|
|
62638
|
+
...data
|
|
62639
|
+
};
|
|
62640
|
+
formDataRef.current = combinedData;
|
|
62641
|
+
Digit.SessionStorage.set("PT_CREATE_EMP_WS_NEW_FORM", combinedData);
|
|
62642
|
+
const hasProperty = (combinedData === null || combinedData === void 0 ? void 0 : (_combinedData$cpt = combinedData.cpt) === null || _combinedData$cpt === void 0 ? void 0 : (_combinedData$cpt$det = _combinedData$cpt.details) === null || _combinedData$cpt$det === void 0 ? void 0 : _combinedData$cpt$det.propertyId) || sessionStorage.getItem("WS_OTP_VERIFIED_PROPERTY_ID") || propertyId || (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop3 = propertyDetails.Properties) === null || _propertyDetails$Prop3 === void 0 ? void 0 : (_propertyDetails$Prop4 = _propertyDetails$Prop3[0]) === null || _propertyDetails$Prop4 === void 0 ? void 0 : _propertyDetails$Prop4.propertyId);
|
|
62552
62643
|
if (!hasProperty) {
|
|
62553
62644
|
console.warn("[WS] onSubmit EXIT: invalid property", {
|
|
62554
|
-
cpt:
|
|
62645
|
+
cpt: combinedData === null || combinedData === void 0 ? void 0 : combinedData.cpt,
|
|
62555
62646
|
propertyDetails
|
|
62556
62647
|
});
|
|
62557
62648
|
setShowToast({
|
|
@@ -62560,11 +62651,11 @@ const OLDApplication = () => {
|
|
|
62560
62651
|
});
|
|
62561
62652
|
return;
|
|
62562
62653
|
}
|
|
62563
|
-
if (!(
|
|
62564
|
-
var
|
|
62565
|
-
if (!(
|
|
62654
|
+
if (!(combinedData !== null && combinedData !== void 0 && (_combinedData$cpt2 = combinedData.cpt) !== null && _combinedData$cpt2 !== void 0 && _combinedData$cpt2.id) && !(propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop5 = propertyDetails.Properties) !== null && _propertyDetails$Prop5 !== void 0 && _propertyDetails$Prop5[0])) {
|
|
62655
|
+
var _combinedData$cpt3;
|
|
62656
|
+
if (!(combinedData !== null && combinedData !== void 0 && (_combinedData$cpt3 = combinedData.cpt) !== null && _combinedData$cpt3 !== void 0 && _combinedData$cpt3.details) || !propertyDetails) {
|
|
62566
62657
|
console.warn("[WS] onSubmit EXIT: invalid property", {
|
|
62567
|
-
cpt:
|
|
62658
|
+
cpt: combinedData === null || combinedData === void 0 ? void 0 : combinedData.cpt,
|
|
62568
62659
|
propertyDetails
|
|
62569
62660
|
});
|
|
62570
62661
|
setShowToast({
|
|
@@ -62574,7 +62665,7 @@ const OLDApplication = () => {
|
|
|
62574
62665
|
return;
|
|
62575
62666
|
}
|
|
62576
62667
|
}
|
|
62577
|
-
const djbData = (
|
|
62668
|
+
const djbData = (combinedData === null || combinedData === void 0 ? void 0 : combinedData.djbEmployee) || (combinedData === null || combinedData === void 0 ? void 0 : combinedData.additionalDetails);
|
|
62578
62669
|
const isDjbEmp = (djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === true || String(djbData === null || djbData === void 0 ? void 0 : djbData.isDjbEmployee) === "true";
|
|
62579
62670
|
const isDjbEmpInvalid = isDjbEmp && (!(djbData !== null && djbData !== void 0 && djbData.employeeId) || !String(djbData === null || djbData === void 0 ? void 0 : djbData.employeeId).trim() || !(djbData !== null && djbData !== void 0 && djbData.designation) || !String(djbData === null || djbData === void 0 ? void 0 : djbData.designation).trim() || !(djbData !== null && djbData !== void 0 && (_djbData$document2 = djbData.document) !== null && _djbData$document2 !== void 0 && _djbData$document2.fileStoreId || typeof (djbData === null || djbData === void 0 ? void 0 : djbData.document) === "string" && djbData !== null && djbData !== void 0 && djbData.document.trim() || djbData !== null && djbData !== void 0 && djbData.document));
|
|
62580
62671
|
if (isDjbEmpInvalid) {
|
|
@@ -62588,7 +62679,7 @@ const OLDApplication = () => {
|
|
|
62588
62679
|
};
|
|
62589
62680
|
const processSubmission = function (data) {
|
|
62590
62681
|
try {
|
|
62591
|
-
var _data$useDetails, _data$ConnectionDetai, _data$ConnectionDetai2, _data$DocumentsRequir, _data$
|
|
62682
|
+
var _data$useDetails, _data$ConnectionDetai, _data$ConnectionDetai2, _data$DocumentsRequir, _data$cpt, _Digit$UserService$ge2, _data$ConnectionHolde, _data$ConnectionHolde2, _data$ConnectionHolde3, _data$ConnectionHolde4, _data$ConnectionHolde5, _propertyDetails$Prop7, _propertyDetails$Prop8, _propertyDetails$Prop9, _propertyDetails$Prop0, _data$ConnectionHolde6, _data$ConnectionHolde7, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2;
|
|
62592
62683
|
const basePath = window.location.href.includes("/employee") ? "/digit-ui/employee/ws" : "/digit-ui/citizen/ws";
|
|
62593
62684
|
if (data !== null && data !== void 0 && (_data$useDetails = data.useDetails) !== null && _data$useDetails !== void 0 && _data$useDetails.useDetails) {
|
|
62594
62685
|
data.useDetails = {
|
|
@@ -62685,7 +62776,7 @@ const OLDApplication = () => {
|
|
|
62685
62776
|
data.declarationData.agree = data.declaration.agree;
|
|
62686
62777
|
data.declarationData.declarations = data.declaration.declarations;
|
|
62687
62778
|
}
|
|
62688
|
-
if (!(data !== null && data !== void 0 && (_data$
|
|
62779
|
+
if (!(data !== null && data !== void 0 && (_data$cpt = data.cpt) !== null && _data$cpt !== void 0 && _data$cpt.details)) {
|
|
62689
62780
|
var _propertyDetails$Prop6;
|
|
62690
62781
|
data.cpt = {
|
|
62691
62782
|
details: propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop6 = propertyDetails.Properties) === null || _propertyDetails$Prop6 === void 0 ? void 0 : _propertyDetails$Prop6[0]
|
|
@@ -62710,7 +62801,7 @@ const OLDApplication = () => {
|
|
|
62710
62801
|
departmentType: connDetail === null || connDetail === void 0 ? void 0 : connDetail.departmentType,
|
|
62711
62802
|
temporaryConnection: connDetail === null || connDetail === void 0 ? void 0 : connDetail.temporaryType,
|
|
62712
62803
|
waterDemandType: connDetail === null || connDetail === void 0 ? void 0 : connDetail.waterDemandType,
|
|
62713
|
-
ownerContactNumber: (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde6 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde6 === void 0 ? void 0 : (_data$ConnectionHolde7 = _data$ConnectionHolde6[0]) === null || _data$ConnectionHolde7 === void 0 ? void 0 : _data$ConnectionHolde7.mobileNumber) || (data === null || data === void 0 ? void 0 : (_data$
|
|
62804
|
+
ownerContactNumber: (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde6 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde6 === void 0 ? void 0 : (_data$ConnectionHolde7 = _data$ConnectionHolde6[0]) === null || _data$ConnectionHolde7 === void 0 ? void 0 : _data$ConnectionHolde7.mobileNumber) || (data === null || data === void 0 ? void 0 : (_data$cpt2 = data.cpt) === null || _data$cpt2 === void 0 ? void 0 : (_data$cpt2$details = _data$cpt2.details) === null || _data$cpt2$details === void 0 ? void 0 : (_data$cpt2$details$ow = _data$cpt2$details.owners) === null || _data$cpt2$details$ow === void 0 ? void 0 : (_data$cpt2$details$ow2 = _data$cpt2$details$ow[0]) === null || _data$cpt2$details$ow2 === void 0 ? void 0 : _data$cpt2$details$ow2.mobileNumber)
|
|
62714
62805
|
};
|
|
62715
62806
|
return Promise.resolve(createPayloadOfWS(data)).then(function (payload) {
|
|
62716
62807
|
if (!(payload !== null && payload !== void 0 && payload.water) && !(payload !== null && payload !== void 0 && payload.sewerage)) {
|
|
@@ -62957,8 +63048,8 @@ const OLDApplication = () => {
|
|
|
62957
63048
|
currentActiveIndex: 9,
|
|
62958
63049
|
showFinalStep: false
|
|
62959
63050
|
}), /*#__PURE__*/React.createElement(CheckPage$4, {
|
|
62960
|
-
data: sessionFormData,
|
|
62961
|
-
onSubmit: finalData => processSubmission(finalData || sessionFormData),
|
|
63051
|
+
data: formDataRef.current || sessionFormData,
|
|
63052
|
+
onSubmit: finalData => processSubmission(finalData || formDataRef.current || sessionFormData),
|
|
62962
63053
|
onEdit: () => setShowCheckPage(false)
|
|
62963
63054
|
})));
|
|
62964
63055
|
}
|
|
@@ -62975,7 +63066,7 @@ const OLDApplication = () => {
|
|
|
62975
63066
|
isDisabled: !canSubmit,
|
|
62976
63067
|
label: creatingWaterApplicationLoading || creatingSewerageApplicationLoading || updatingWaterApplicationLoading || updatingSewerageApplicationLoading ? t("CS_COMMON_SUBMITTING") : t("CS_COMMON_NEXT"),
|
|
62977
63068
|
onSubmit: onFormSubmit,
|
|
62978
|
-
defaultValues:
|
|
63069
|
+
defaultValues: defaultValues,
|
|
62979
63070
|
noCard: true,
|
|
62980
63071
|
noBreakLine: true,
|
|
62981
63072
|
cardFormWrapperClassName: "new-application-card"
|
|
@@ -63064,19 +63155,26 @@ const FitterSandbox = _ref => {
|
|
|
63064
63155
|
status: "ACTIVE",
|
|
63065
63156
|
isVerified: false
|
|
63066
63157
|
}];
|
|
63067
|
-
|
|
63068
|
-
|
|
63158
|
+
const currentDate = Date.now();
|
|
63159
|
+
const actionToExecute = (action === null || action === void 0 ? void 0 : action.action) || (typeof action === "string" ? action : "EXECUTE_DISCONNECTION");
|
|
63160
|
+
payload.connectionExecutionDate = currentDate;
|
|
63161
|
+
payload.disconnectionExecutionDate = currentDate;
|
|
63162
|
+
payload.action = actionToExecute;
|
|
63069
63163
|
payload.wfDocuments = docArray;
|
|
63070
63164
|
payload.documents = [...(payload.documents || []), ...docArray];
|
|
63071
63165
|
payload.additionalDetails = {
|
|
63072
63166
|
...payload.additionalDetails,
|
|
63073
63167
|
finalMeterReading: meterReading,
|
|
63168
|
+
disconnectionExecutionDate: currentDate,
|
|
63074
63169
|
disconnectionGpsLocation: gpsLocation.replace(/<[^>]*>?/gm, ""),
|
|
63075
63170
|
disconnectionTimestamp: timestamp.replace(/<[^>]*>?/gm, "")
|
|
63076
63171
|
};
|
|
63172
|
+
if (Array.isArray(payload.disConnectionDetails) && payload.disConnectionDetails.length > 0) {
|
|
63173
|
+
payload.disConnectionDetails[0].disconnectionExecutionDate = currentDate;
|
|
63174
|
+
}
|
|
63077
63175
|
payload.processInstance = {
|
|
63078
63176
|
...payload.processInstance,
|
|
63079
|
-
action:
|
|
63177
|
+
action: actionToExecute,
|
|
63080
63178
|
comment: `Meter Reading: ${meterReading} m3`,
|
|
63081
63179
|
documents: docArray
|
|
63082
63180
|
};
|