@djb25/digit-ui-module-ws 1.0.44 → 1.0.46
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 +1390 -896
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1391 -897
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15496,7 +15496,7 @@ function SelectDocument(_ref2) {
|
|
|
15496
15496
|
const _useState6 = React.useState(() => (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileStoreId) || null),
|
|
15497
15497
|
uploadedFile = _useState6[0],
|
|
15498
15498
|
setUploadedFile = _useState6[1];
|
|
15499
|
-
const _useState7 = React.useState(() => (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentUid) || ""),
|
|
15499
|
+
const _useState7 = React.useState(() => (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentUid) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentNumber) || ""),
|
|
15500
15500
|
documentUid = _useState7[0],
|
|
15501
15501
|
setDocumentUid = _useState7[1];
|
|
15502
15502
|
const _useState8 = React.useState(false),
|
|
@@ -20478,8 +20478,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
20478
20478
|
}),
|
|
20479
20479
|
control = _useForm.control,
|
|
20480
20480
|
register = _useForm.register,
|
|
20481
|
-
|
|
20482
|
-
errors = _useForm$formState.errors,
|
|
20481
|
+
errors = _useForm.formState.errors,
|
|
20483
20482
|
watch = _useForm.watch,
|
|
20484
20483
|
setValue = _useForm.setValue;
|
|
20485
20484
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
@@ -20508,6 +20507,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
20508
20507
|
const watchCategoryType = watch("useDetails.categoryType");
|
|
20509
20508
|
const watchPropertyType = watch("useDetails.propertyType");
|
|
20510
20509
|
const watchPropertyCategory = watch("useDetails.propertyCategory");
|
|
20510
|
+
const watchWaterConnectionUsageType = watch("useDetails.WaterConnectionUsageType");
|
|
20511
20511
|
const isHospitalProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOSPITAL_NURSING_HOME" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HospitalNursingHome";
|
|
20512
20512
|
const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
|
|
20513
20513
|
const yearOptions = React.useMemo(() => {
|
|
@@ -20567,11 +20567,29 @@ const PropertyWaterConnection = _ref => {
|
|
|
20567
20567
|
}, [watchPropertyCategory, propertyTypeOptions, setValue, watchPropertyType]);
|
|
20568
20568
|
const usageTypeOptions = React.useMemo(() => {
|
|
20569
20569
|
var _ptServicesMastersDat5, _ptServicesMastersDat6;
|
|
20570
|
-
|
|
20570
|
+
let options = (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat5 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat5 === void 0 ? void 0 : (_ptServicesMastersDat6 = _ptServicesMastersDat5.PropertyNewUsageType) === null || _ptServicesMastersDat6 === void 0 ? void 0 : _ptServicesMastersDat6.filter(item => item.active)) || [];
|
|
20571
|
+
if (watchPropertyCategory !== null && watchPropertyCategory !== void 0 && watchPropertyCategory.code) {
|
|
20572
|
+
var _watchPropertyCategor3;
|
|
20573
|
+
if ((watchPropertyCategory === null || watchPropertyCategory === void 0 ? void 0 : (_watchPropertyCategor3 = watchPropertyCategory.code) === null || _watchPropertyCategor3 === void 0 ? void 0 : _watchPropertyCategor3.toUpperCase()) !== "MIXED") {
|
|
20574
|
+
options = options.filter(item => {
|
|
20575
|
+
var _item$type2, _watchPropertyCategor4;
|
|
20576
|
+
return ((_item$type2 = item.type) === null || _item$type2 === void 0 ? void 0 : _item$type2.toUpperCase()) === ((_watchPropertyCategor4 = watchPropertyCategory.code) === null || _watchPropertyCategor4 === void 0 ? void 0 : _watchPropertyCategor4.toUpperCase());
|
|
20577
|
+
});
|
|
20578
|
+
}
|
|
20579
|
+
}
|
|
20580
|
+
return options.map(item => ({
|
|
20571
20581
|
code: item.code,
|
|
20572
20582
|
name: item.name
|
|
20573
20583
|
}));
|
|
20574
|
-
}, [ptServicesMastersData]);
|
|
20584
|
+
}, [ptServicesMastersData, watchPropertyCategory]);
|
|
20585
|
+
React.useEffect(() => {
|
|
20586
|
+
if (watchPropertyType && watchWaterConnectionUsageType) {
|
|
20587
|
+
const isUsageTypeValid = usageTypeOptions.some(opt => opt.code === watchWaterConnectionUsageType.code);
|
|
20588
|
+
if (!isUsageTypeValid) {
|
|
20589
|
+
setValue("useDetails.WaterConnectionUsageType", null);
|
|
20590
|
+
}
|
|
20591
|
+
}
|
|
20592
|
+
}, [watchPropertyType, usageTypeOptions, setValue, watchWaterConnectionUsageType]);
|
|
20575
20593
|
const floorOptions = React.useMemo(() => {
|
|
20576
20594
|
var _ptServicesMastersDat7, _ptServicesMastersDat8;
|
|
20577
20595
|
return ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat7 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat7 === void 0 ? void 0 : (_ptServicesMastersDat8 = _ptServicesMastersDat7.NoOfFloors) === null || _ptServicesMastersDat8 === void 0 ? void 0 : _ptServicesMastersDat8.filter(item => item.active).map(item => ({
|
|
@@ -20645,8 +20663,8 @@ const PropertyWaterConnection = _ref => {
|
|
|
20645
20663
|
marginTop: "-21px"
|
|
20646
20664
|
};
|
|
20647
20665
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
|
|
20648
|
-
title: t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " (Automatic Fill by Property
|
|
20649
|
-
defaultOpen:
|
|
20666
|
+
title: t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " " + t("(Automatic Fill by Property)") : ""),
|
|
20667
|
+
defaultOpen: false,
|
|
20650
20668
|
style: props.style
|
|
20651
20669
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20652
20670
|
className: "formcomposer-section-grid"
|
|
@@ -27625,35 +27643,382 @@ const CitizenSearchResults = () => {
|
|
|
27625
27643
|
})));
|
|
27626
27644
|
};
|
|
27627
27645
|
|
|
27628
|
-
const
|
|
27646
|
+
const TOKEN = {
|
|
27647
|
+
textPri: "#1e293b",
|
|
27648
|
+
textSec: "#475569",
|
|
27649
|
+
textMut: "#94a3b8",
|
|
27650
|
+
active: "#0284c7",
|
|
27651
|
+
border: "#dde4f0",
|
|
27652
|
+
surface: "#f0f9ff",
|
|
27653
|
+
quote: "#eff6ff"
|
|
27654
|
+
};
|
|
27655
|
+
const MetaRow = _ref => {
|
|
27656
|
+
let icon = _ref.icon,
|
|
27657
|
+
children = _ref.children;
|
|
27658
|
+
return children ? /*#__PURE__*/React__default.createElement("div", {
|
|
27659
|
+
style: {
|
|
27660
|
+
display: "flex",
|
|
27661
|
+
alignItems: "center",
|
|
27662
|
+
gap: "7px",
|
|
27663
|
+
marginBottom: "6px"
|
|
27664
|
+
}
|
|
27665
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
27666
|
+
style: {
|
|
27667
|
+
fontSize: "14px",
|
|
27668
|
+
opacity: 0.6
|
|
27669
|
+
}
|
|
27670
|
+
}, icon), /*#__PURE__*/React__default.createElement("span", {
|
|
27671
|
+
style: {
|
|
27672
|
+
fontSize: "12px",
|
|
27673
|
+
color: TOKEN.textSec
|
|
27674
|
+
}
|
|
27675
|
+
}, children)) : null;
|
|
27676
|
+
};
|
|
27677
|
+
const WSWFCaption = _ref2 => {
|
|
27629
27678
|
var _data$wfComment, _data$thumbnailsToSho, _data$thumbnailsToSho2;
|
|
27630
|
-
let data =
|
|
27631
|
-
OpenImage =
|
|
27679
|
+
let data = _ref2.data,
|
|
27680
|
+
OpenImage = _ref2.OpenImage;
|
|
27632
27681
|
const _useTranslation = reactI18next.useTranslation(),
|
|
27633
27682
|
t = _useTranslation.t;
|
|
27634
|
-
|
|
27683
|
+
if (!data) return null;
|
|
27684
|
+
const hasComments = (data === null || data === void 0 ? void 0 : (_data$wfComment = data.wfComment) === null || _data$wfComment === void 0 ? void 0 : _data$wfComment.length) > 0;
|
|
27685
|
+
const hasThumbs = (data === null || data === void 0 ? void 0 : (_data$thumbnailsToSho = data.thumbnailsToShow) === null || _data$thumbnailsToSho === void 0 ? void 0 : (_data$thumbnailsToSho2 = _data$thumbnailsToSho.thumbs) === null || _data$thumbnailsToSho2 === void 0 ? void 0 : _data$thumbnailsToSho2.length) > 0;
|
|
27686
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
27687
|
+
style: {
|
|
27688
|
+
display: "flex",
|
|
27689
|
+
flexDirection: "column",
|
|
27690
|
+
gap: "4px"
|
|
27691
|
+
}
|
|
27692
|
+
}, data.date && /*#__PURE__*/React__default.createElement(MetaRow, {
|
|
27693
|
+
icon: "\uD83D\uDD50"
|
|
27694
|
+
}, typeof data.date === "number" ? (() => {
|
|
27695
|
+
try {
|
|
27696
|
+
return Digit.DateUtils.ConvertTimestampToDate(data.date);
|
|
27697
|
+
} catch (_unused) {
|
|
27698
|
+
return null;
|
|
27699
|
+
}
|
|
27700
|
+
})() : data.date), data.name && /*#__PURE__*/React__default.createElement(MetaRow, {
|
|
27701
|
+
icon: "\uD83D\uDC64"
|
|
27702
|
+
}, data.name), data.mobileNumber && /*#__PURE__*/React__default.createElement("div", {
|
|
27703
|
+
style: {
|
|
27704
|
+
display: "flex",
|
|
27705
|
+
alignItems: "center",
|
|
27706
|
+
gap: "7px",
|
|
27707
|
+
marginBottom: "6px"
|
|
27708
|
+
}
|
|
27709
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
27710
|
+
style: {
|
|
27711
|
+
fontSize: "14px",
|
|
27712
|
+
opacity: 0.6
|
|
27713
|
+
}
|
|
27714
|
+
}, "\uD83D\uDCDE"), /*#__PURE__*/React__default.createElement("span", {
|
|
27715
|
+
style: {
|
|
27716
|
+
fontSize: "12px",
|
|
27717
|
+
color: TOKEN.textSec
|
|
27718
|
+
}
|
|
27719
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TelePhone, {
|
|
27635
27720
|
mobile: data.mobileNumber
|
|
27636
|
-
})
|
|
27637
|
-
|
|
27638
|
-
|
|
27639
|
-
}), data !== null && data !== void 0 && data.wfComment ? /*#__PURE__*/React__default.createElement("div", null, data === null || data === void 0 ? void 0 : (_data$wfComment = data.wfComment) === null || _data$wfComment === void 0 ? void 0 : _data$wfComment.map(e => /*#__PURE__*/React__default.createElement("div", {
|
|
27640
|
-
className: "TLComments"
|
|
27641
|
-
}, /*#__PURE__*/React__default.createElement("h3", null, t("WF_COMMON_COMMENTS")), /*#__PURE__*/React__default.createElement("p", {
|
|
27721
|
+
}))), data.source && /*#__PURE__*/React__default.createElement(MetaRow, {
|
|
27722
|
+
icon: "\uD83D\uDCE1"
|
|
27723
|
+
}, t("ES_APPLICATION_DETAILS_APPLICATION_CHANNEL_" + data.source.toUpperCase())), data.comment && /*#__PURE__*/React__default.createElement("p", {
|
|
27642
27724
|
style: {
|
|
27643
|
-
|
|
27725
|
+
margin: "0 0 6px",
|
|
27726
|
+
fontSize: "12px",
|
|
27727
|
+
color: TOKEN.textSec
|
|
27644
27728
|
}
|
|
27645
|
-
},
|
|
27646
|
-
|
|
27647
|
-
|
|
27648
|
-
srcs: data === null || data === void 0 ? void 0 : data.thumbnailsToShow.thumbs,
|
|
27649
|
-
onClick: (src, index) => {
|
|
27650
|
-
OpenImage(src, index, data === null || data === void 0 ? void 0 : data.thumbnailsToShow);
|
|
27729
|
+
}, data.comment), hasComments && /*#__PURE__*/React__default.createElement("div", {
|
|
27730
|
+
style: {
|
|
27731
|
+
marginTop: "8px"
|
|
27651
27732
|
}
|
|
27652
|
-
}
|
|
27733
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
27734
|
+
style: {
|
|
27735
|
+
display: "flex",
|
|
27736
|
+
alignItems: "center",
|
|
27737
|
+
gap: "6px",
|
|
27738
|
+
marginBottom: "6px"
|
|
27739
|
+
}
|
|
27740
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
27741
|
+
style: {
|
|
27742
|
+
width: "3px",
|
|
27743
|
+
height: "14px",
|
|
27744
|
+
borderRadius: "2px",
|
|
27745
|
+
background: TOKEN.active,
|
|
27746
|
+
flexShrink: 0
|
|
27747
|
+
}
|
|
27748
|
+
}), /*#__PURE__*/React__default.createElement("span", {
|
|
27749
|
+
style: {
|
|
27750
|
+
fontSize: "11px",
|
|
27751
|
+
fontWeight: 700,
|
|
27752
|
+
letterSpacing: "0.07em",
|
|
27753
|
+
textTransform: "uppercase",
|
|
27754
|
+
color: TOKEN.active
|
|
27755
|
+
}
|
|
27756
|
+
}, t("WF_COMMON_COMMENTS"))), data.wfComment.map((comment, i) => /*#__PURE__*/React__default.createElement("div", {
|
|
27757
|
+
key: i,
|
|
27758
|
+
style: {
|
|
27759
|
+
position: "relative",
|
|
27760
|
+
background: TOKEN.quote,
|
|
27761
|
+
border: "1px solid " + TOKEN.border,
|
|
27762
|
+
borderLeft: "3px solid " + TOKEN.active,
|
|
27763
|
+
borderRadius: "0 8px 8px 0",
|
|
27764
|
+
padding: "8px 12px",
|
|
27765
|
+
marginBottom: "6px",
|
|
27766
|
+
overflowX: "auto"
|
|
27767
|
+
}
|
|
27768
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
27769
|
+
style: {
|
|
27770
|
+
position: "absolute",
|
|
27771
|
+
top: "4px",
|
|
27772
|
+
left: "6px",
|
|
27773
|
+
fontSize: "22px",
|
|
27774
|
+
opacity: 0.15,
|
|
27775
|
+
lineHeight: 1,
|
|
27776
|
+
color: TOKEN.active,
|
|
27777
|
+
userSelect: "none"
|
|
27778
|
+
}
|
|
27779
|
+
}, "\""), /*#__PURE__*/React__default.createElement("p", {
|
|
27780
|
+
style: {
|
|
27781
|
+
margin: "0",
|
|
27782
|
+
fontSize: "12px",
|
|
27783
|
+
color: TOKEN.textPri,
|
|
27784
|
+
lineHeight: "1.6",
|
|
27785
|
+
paddingLeft: "8px",
|
|
27786
|
+
wordBreak: "break-word"
|
|
27787
|
+
}
|
|
27788
|
+
}, comment)))), hasThumbs && /*#__PURE__*/React__default.createElement("div", {
|
|
27789
|
+
style: {
|
|
27790
|
+
marginTop: "10px"
|
|
27791
|
+
}
|
|
27792
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
27793
|
+
style: {
|
|
27794
|
+
display: "flex",
|
|
27795
|
+
alignItems: "center",
|
|
27796
|
+
gap: "6px",
|
|
27797
|
+
marginBottom: "8px"
|
|
27798
|
+
}
|
|
27799
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
27800
|
+
style: {
|
|
27801
|
+
width: "3px",
|
|
27802
|
+
height: "14px",
|
|
27803
|
+
borderRadius: "2px",
|
|
27804
|
+
background: "#ff9800",
|
|
27805
|
+
flexShrink: 0
|
|
27806
|
+
}
|
|
27807
|
+
}), /*#__PURE__*/React__default.createElement("span", {
|
|
27808
|
+
style: {
|
|
27809
|
+
fontSize: "11px",
|
|
27810
|
+
fontWeight: 700,
|
|
27811
|
+
letterSpacing: "0.07em",
|
|
27812
|
+
textTransform: "uppercase",
|
|
27813
|
+
color: "#ff9800"
|
|
27814
|
+
}
|
|
27815
|
+
}, t("CS_COMMON_ATTACHMENTS"))), /*#__PURE__*/React__default.createElement("div", {
|
|
27816
|
+
style: {
|
|
27817
|
+
background: TOKEN.surface,
|
|
27818
|
+
border: "1px solid " + TOKEN.border,
|
|
27819
|
+
borderRadius: "8px",
|
|
27820
|
+
padding: "8px"
|
|
27821
|
+
}
|
|
27822
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.DisplayPhotos, {
|
|
27823
|
+
srcs: data.thumbnailsToShow.thumbs,
|
|
27824
|
+
onClick: (src, index) => OpenImage === null || OpenImage === void 0 ? void 0 : OpenImage(src, index, data.thumbnailsToShow)
|
|
27825
|
+
}))));
|
|
27653
27826
|
};
|
|
27654
27827
|
|
|
27828
|
+
const safeDate = ts => {
|
|
27829
|
+
if (!ts || isNaN(Number(ts)) || Number(ts) <= 0) return null;
|
|
27830
|
+
try {
|
|
27831
|
+
return Digit.DateUtils.ConvertTimestampToDate(Number(ts));
|
|
27832
|
+
} catch (_unused) {
|
|
27833
|
+
return null;
|
|
27834
|
+
}
|
|
27835
|
+
};
|
|
27836
|
+
const TOKEN$1 = {
|
|
27837
|
+
surface: "#f8faff",
|
|
27838
|
+
surfaceHov: "#eef4ff",
|
|
27839
|
+
border: "#dde4f0",
|
|
27840
|
+
borderAct: "#0284c7",
|
|
27841
|
+
active: "#0284c7",
|
|
27842
|
+
done: "#16a34a",
|
|
27843
|
+
textPri: "#1e293b",
|
|
27844
|
+
textSec: "#475569",
|
|
27845
|
+
textMut: "#94a3b8",
|
|
27846
|
+
accent: "linear-gradient(135deg,#7c3aed,#0284c7)"
|
|
27847
|
+
};
|
|
27848
|
+
const StatusPill = _ref => {
|
|
27849
|
+
let label = _ref.label,
|
|
27850
|
+
isActive = _ref.isActive;
|
|
27851
|
+
return /*#__PURE__*/React__default.createElement("span", {
|
|
27852
|
+
style: {
|
|
27853
|
+
display: "inline-block",
|
|
27854
|
+
fontSize: "10px",
|
|
27855
|
+
fontWeight: 700,
|
|
27856
|
+
letterSpacing: "0.06em",
|
|
27857
|
+
textTransform: "uppercase",
|
|
27858
|
+
padding: "2px 10px",
|
|
27859
|
+
borderRadius: "999px",
|
|
27860
|
+
background: isActive ? "rgba(0,195,255,0.15)" : "rgba(0,230,118,0.12)",
|
|
27861
|
+
color: isActive ? TOKEN$1.active : TOKEN$1.done,
|
|
27862
|
+
border: "1px solid " + (isActive ? TOKEN$1.active : TOKEN$1.done),
|
|
27863
|
+
lineHeight: "18px"
|
|
27864
|
+
}
|
|
27865
|
+
}, label);
|
|
27866
|
+
};
|
|
27867
|
+
const StepCard = _ref2 => {
|
|
27868
|
+
var _checkpoint$auditDeta, _checkpoint$auditDeta2;
|
|
27869
|
+
let checkpoint = _ref2.checkpoint,
|
|
27870
|
+
isActive = _ref2.isActive,
|
|
27871
|
+
t = _ref2.t,
|
|
27872
|
+
getTimelineCaptions = _ref2.getTimelineCaptions;
|
|
27873
|
+
const _useState = React.useState(isActive),
|
|
27874
|
+
expanded = _useState[0],
|
|
27875
|
+
setExpanded = _useState[1];
|
|
27876
|
+
const stateLabel = checkpoint.state ? t("CS_" + checkpoint.state) : "NA";
|
|
27877
|
+
const dotColor = isActive ? TOKEN$1.active : TOKEN$1.done;
|
|
27878
|
+
const glowColor = isActive ? "0 0 14px rgba(0,195,255,0.5)" : "0 0 10px rgba(0,230,118,0.35)";
|
|
27879
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
27880
|
+
style: {
|
|
27881
|
+
display: "flex",
|
|
27882
|
+
gap: "0",
|
|
27883
|
+
alignItems: "flex-start",
|
|
27884
|
+
position: "relative"
|
|
27885
|
+
}
|
|
27886
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
27887
|
+
style: {
|
|
27888
|
+
display: "flex",
|
|
27889
|
+
flexDirection: "column",
|
|
27890
|
+
alignItems: "center",
|
|
27891
|
+
width: "36px",
|
|
27892
|
+
flexShrink: 0
|
|
27893
|
+
}
|
|
27894
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
27895
|
+
style: {
|
|
27896
|
+
width: "18px",
|
|
27897
|
+
height: "18px",
|
|
27898
|
+
borderRadius: "50%",
|
|
27899
|
+
background: dotColor,
|
|
27900
|
+
boxShadow: glowColor,
|
|
27901
|
+
border: "2px solid " + dotColor,
|
|
27902
|
+
zIndex: 1,
|
|
27903
|
+
flexShrink: 0,
|
|
27904
|
+
marginTop: "16px"
|
|
27905
|
+
}
|
|
27906
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
27907
|
+
style: {
|
|
27908
|
+
width: "2px",
|
|
27909
|
+
flex: 1,
|
|
27910
|
+
minHeight: "24px",
|
|
27911
|
+
background: "linear-gradient(to bottom, " + dotColor + ", " + TOKEN$1.border + ")",
|
|
27912
|
+
marginTop: "2px"
|
|
27913
|
+
}
|
|
27914
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
27915
|
+
style: {
|
|
27916
|
+
flex: 1,
|
|
27917
|
+
marginLeft: "12px",
|
|
27918
|
+
marginBottom: "16px",
|
|
27919
|
+
borderRadius: "12px",
|
|
27920
|
+
border: "1px solid " + (expanded ? TOKEN$1.borderAct : TOKEN$1.border),
|
|
27921
|
+
background: TOKEN$1.surface,
|
|
27922
|
+
boxShadow: expanded ? "0 2px 12px rgba(2,132,199,0.10)" : "0 1px 4px rgba(0,0,0,0.06)",
|
|
27923
|
+
overflow: "hidden",
|
|
27924
|
+
transition: "all 0.3s ease"
|
|
27925
|
+
}
|
|
27926
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
27927
|
+
onClick: () => setExpanded(v => !v),
|
|
27928
|
+
style: {
|
|
27929
|
+
padding: "12px 16px",
|
|
27930
|
+
cursor: "pointer",
|
|
27931
|
+
display: "flex",
|
|
27932
|
+
justifyContent: "space-between",
|
|
27933
|
+
alignItems: "center",
|
|
27934
|
+
gap: "8px"
|
|
27935
|
+
}
|
|
27936
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
27937
|
+
style: {
|
|
27938
|
+
display: "flex",
|
|
27939
|
+
flexDirection: "column",
|
|
27940
|
+
gap: "4px"
|
|
27941
|
+
}
|
|
27942
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
27943
|
+
style: {
|
|
27944
|
+
fontWeight: 600,
|
|
27945
|
+
fontSize: "13px",
|
|
27946
|
+
color: TOKEN$1.textPri,
|
|
27947
|
+
letterSpacing: "0.01em"
|
|
27948
|
+
}
|
|
27949
|
+
}, stateLabel), safeDate(checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta = checkpoint.auditDetails) === null || _checkpoint$auditDeta === void 0 ? void 0 : _checkpoint$auditDeta.lastModified) && /*#__PURE__*/React__default.createElement("span", {
|
|
27950
|
+
style: {
|
|
27951
|
+
fontSize: "11px",
|
|
27952
|
+
color: TOKEN$1.textSec
|
|
27953
|
+
}
|
|
27954
|
+
}, safeDate(checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta2 = checkpoint.auditDetails) === null || _checkpoint$auditDeta2 === void 0 ? void 0 : _checkpoint$auditDeta2.lastModified))), /*#__PURE__*/React__default.createElement("div", {
|
|
27955
|
+
style: {
|
|
27956
|
+
display: "flex",
|
|
27957
|
+
alignItems: "center",
|
|
27958
|
+
gap: "8px",
|
|
27959
|
+
flexShrink: 0
|
|
27960
|
+
}
|
|
27961
|
+
}, /*#__PURE__*/React__default.createElement(StatusPill, {
|
|
27962
|
+
label: isActive ? "Active" : "Done",
|
|
27963
|
+
isActive: isActive
|
|
27964
|
+
}), /*#__PURE__*/React__default.createElement("span", {
|
|
27965
|
+
style: {
|
|
27966
|
+
color: TOKEN$1.textMut,
|
|
27967
|
+
fontSize: "16px",
|
|
27968
|
+
transform: expanded ? "rotate(180deg)" : "rotate(0deg)",
|
|
27969
|
+
transition: "transform 0.25s",
|
|
27970
|
+
lineHeight: 1,
|
|
27971
|
+
userSelect: "none"
|
|
27972
|
+
}
|
|
27973
|
+
}, "\u25BE"))), expanded && /*#__PURE__*/React__default.createElement("div", {
|
|
27974
|
+
style: {
|
|
27975
|
+
padding: "0 16px 14px",
|
|
27976
|
+
borderTop: "1px solid " + TOKEN$1.border,
|
|
27977
|
+
background: "#fff"
|
|
27978
|
+
}
|
|
27979
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
27980
|
+
style: {
|
|
27981
|
+
paddingTop: "12px"
|
|
27982
|
+
}
|
|
27983
|
+
}, getTimelineCaptions(checkpoint)))));
|
|
27984
|
+
};
|
|
27985
|
+
const ActionButton = _ref3 => {
|
|
27986
|
+
let label = _ref3.label,
|
|
27987
|
+
to = _ref3.to,
|
|
27988
|
+
state = _ref3.state;
|
|
27989
|
+
return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
27990
|
+
to: {
|
|
27991
|
+
pathname: to,
|
|
27992
|
+
state
|
|
27993
|
+
}
|
|
27994
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
27995
|
+
style: {
|
|
27996
|
+
width: "100%",
|
|
27997
|
+
marginTop: "8px",
|
|
27998
|
+
padding: "13px 20px",
|
|
27999
|
+
borderRadius: "10px",
|
|
28000
|
+
border: "none",
|
|
28001
|
+
cursor: "pointer",
|
|
28002
|
+
background: TOKEN$1.accent,
|
|
28003
|
+
color: "#fff",
|
|
28004
|
+
fontWeight: 700,
|
|
28005
|
+
fontSize: "14px",
|
|
28006
|
+
letterSpacing: "0.04em",
|
|
28007
|
+
boxShadow: "0 4px 20px rgba(124,58,237,0.4)",
|
|
28008
|
+
transition: "opacity 0.2s, transform 0.2s"
|
|
28009
|
+
},
|
|
28010
|
+
onMouseEnter: e => {
|
|
28011
|
+
e.currentTarget.style.opacity = "0.88";
|
|
28012
|
+
e.currentTarget.style.transform = "translateY(-1px)";
|
|
28013
|
+
},
|
|
28014
|
+
onMouseLeave: e => {
|
|
28015
|
+
e.currentTarget.style.opacity = "1";
|
|
28016
|
+
e.currentTarget.style.transform = "translateY(0)";
|
|
28017
|
+
}
|
|
28018
|
+
}, label));
|
|
28019
|
+
};
|
|
27655
28020
|
const WSWFApplicationTimeline = props => {
|
|
27656
|
-
var _props$application, _props$application2, _data$timeline, _data$timeline2, _data$
|
|
28021
|
+
var _props$application, _props$application2, _data$timeline, _data$timeline2, _data$timeline3, _data$timeline4;
|
|
27657
28022
|
const _useTranslation = reactI18next.useTranslation(),
|
|
27658
28023
|
t = _useTranslation.t;
|
|
27659
28024
|
const businessService = (_props$application = props.application) === null || _props$application === void 0 ? void 0 : _props$application.applicationNo.split("_")[0];
|
|
@@ -27667,9 +28032,9 @@ const WSWFApplicationTimeline = props => {
|
|
|
27667
28032
|
}),
|
|
27668
28033
|
isLoading = _Digit$Hooks$useWorkf.isLoading,
|
|
27669
28034
|
data = _Digit$Hooks$useWorkf.data;
|
|
27670
|
-
const
|
|
27671
|
-
showAllTimeline =
|
|
27672
|
-
setShowAllTimeline =
|
|
28035
|
+
const _useState2 = React.useState(true),
|
|
28036
|
+
showAllTimeline = _useState2[0],
|
|
28037
|
+
setShowAllTimeline = _useState2[1];
|
|
27673
28038
|
function OpenImage(imageSource, index, thumbnailsToShow) {
|
|
27674
28039
|
var _thumbnailsToShow$ful;
|
|
27675
28040
|
window.open(thumbnailsToShow === null || thumbnailsToShow === void 0 ? void 0 : (_thumbnailsToShow$ful = thumbnailsToShow.fullImage) === null || _thumbnailsToShow$ful === void 0 ? void 0 : _thumbnailsToShow$ful[0], "_blank");
|
|
@@ -27678,7 +28043,7 @@ const WSWFApplicationTimeline = props => {
|
|
|
27678
28043
|
if (checkpoint.state === "OPEN") {
|
|
27679
28044
|
var _props$application3, _props$application3$a, _props$application4;
|
|
27680
28045
|
const caption = {
|
|
27681
|
-
date:
|
|
28046
|
+
date: safeDate((_props$application3 = props.application) === null || _props$application3 === void 0 ? void 0 : (_props$application3$a = _props$application3.auditDetails) === null || _props$application3$a === void 0 ? void 0 : _props$application3$a.createdTime),
|
|
27682
28047
|
source: ((_props$application4 = props.application) === null || _props$application4 === void 0 ? void 0 : _props$application4.channel) || ""
|
|
27683
28048
|
};
|
|
27684
28049
|
return /*#__PURE__*/React__default.createElement(WSWFCaption, {
|
|
@@ -27688,12 +28053,19 @@ const WSWFApplicationTimeline = props => {
|
|
|
27688
28053
|
var _props$application5, _props$application6;
|
|
27689
28054
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
27690
28055
|
to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + (props === null || props === void 0 ? void 0 : (_props$application5 = props.application) === null || _props$application5 === void 0 ? void 0 : _props$application5.propertyId) + "&tenantId=" + (props === null || props === void 0 ? void 0 : (_props$application6 = props.application) === null || _props$application6 === void 0 ? void 0 : _props$application6.tenantId)
|
|
27691
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
28056
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
28057
|
+
style: {
|
|
28058
|
+
color: TOKEN$1.active,
|
|
28059
|
+
fontSize: "13px",
|
|
28060
|
+
textDecoration: "underline",
|
|
28061
|
+
cursor: "pointer"
|
|
28062
|
+
}
|
|
28063
|
+
}, t("PT_VIEW_PROPERTY_DETAILS"))));
|
|
27692
28064
|
} else {
|
|
27693
|
-
var _props$application7, _checkpoint$
|
|
28065
|
+
var _props$application7, _checkpoint$auditDeta3, _checkpoint$assignes, _checkpoint$assignes$, _checkpoint$assignes2, _checkpoint$assignes3;
|
|
27694
28066
|
const caption = {
|
|
27695
28067
|
source: ((_props$application7 = props.application) === null || _props$application7 === void 0 ? void 0 : _props$application7.channel) || "",
|
|
27696
|
-
date: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$
|
|
28068
|
+
date: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta3 = checkpoint.auditDetails) === null || _checkpoint$auditDeta3 === void 0 ? void 0 : _checkpoint$auditDeta3.lastModified,
|
|
27697
28069
|
name: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes = checkpoint.assignes) === null || _checkpoint$assignes === void 0 ? void 0 : (_checkpoint$assignes$ = _checkpoint$assignes[0]) === null || _checkpoint$assignes$ === void 0 ? void 0 : _checkpoint$assignes$.name,
|
|
27698
28070
|
mobileNumber: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes2 = checkpoint.assignes) === null || _checkpoint$assignes2 === void 0 ? void 0 : (_checkpoint$assignes3 = _checkpoint$assignes2[0]) === null || _checkpoint$assignes3 === void 0 ? void 0 : _checkpoint$assignes3.mobileNumber,
|
|
27699
28071
|
comment: t(checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.comment),
|
|
@@ -27708,92 +28080,110 @@ const WSWFApplicationTimeline = props => {
|
|
|
27708
28080
|
};
|
|
27709
28081
|
const showNextActions = nextActions => {
|
|
27710
28082
|
var _nextAction;
|
|
28083
|
+
if (!(nextActions !== null && nextActions !== void 0 && nextActions.length)) return null;
|
|
27711
28084
|
let nextAction = nextActions[0];
|
|
27712
28085
|
const next = nextActions.map(action => action.action);
|
|
27713
28086
|
if (next.includes("PAY") || next.includes("EDIT")) {
|
|
27714
28087
|
let currentIndex = next.indexOf("EDIT") || next.indexOf("PAY");
|
|
27715
|
-
currentIndex = currentIndex
|
|
28088
|
+
currentIndex = currentIndex !== -1 ? currentIndex : next.indexOf("PAY");
|
|
27716
28089
|
nextAction = nextActions[currentIndex];
|
|
27717
28090
|
}
|
|
27718
28091
|
switch ((_nextAction = nextAction) === null || _nextAction === void 0 ? void 0 : _nextAction.action) {
|
|
27719
28092
|
case "PAY":
|
|
27720
|
-
{
|
|
27721
|
-
|
|
27722
|
-
|
|
27723
|
-
|
|
27724
|
-
|
|
27725
|
-
width: "100%",
|
|
27726
|
-
marginBottom: "1.2em"
|
|
27727
|
-
}
|
|
27728
|
-
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
27729
|
-
to: {
|
|
27730
|
-
pathname: "/digit-ui/citizen/payment/collect/" + businessService + "/" + props.id + "?consumerCode=" + props.id + "&&workflow=WNS",
|
|
27731
|
-
state: {
|
|
27732
|
-
tenantId: props.application.tenantId
|
|
27733
|
-
}
|
|
27734
|
-
}
|
|
27735
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
27736
|
-
label: t("CS_APPLICATION_DETAILS_MAKE_PAYMENT")
|
|
27737
|
-
})));
|
|
27738
|
-
break;
|
|
27739
|
-
}
|
|
27740
|
-
case "EDIT":
|
|
27741
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
27742
|
-
style: {
|
|
27743
|
-
marginTop: "1em",
|
|
27744
|
-
bottom: "0px",
|
|
27745
|
-
width: "100%",
|
|
27746
|
-
marginBottom: "1.2em"
|
|
28093
|
+
if ((props === null || props === void 0 ? void 0 : props.paymentbuttonenabled) !== false) return /*#__PURE__*/React__default.createElement(ActionButton, {
|
|
28094
|
+
label: t("CS_APPLICATION_DETAILS_MAKE_PAYMENT"),
|
|
28095
|
+
to: "/digit-ui/citizen/payment/collect/" + businessService + "/" + props.id + "?consumerCode=" + props.id + "&&workflow=WNS",
|
|
28096
|
+
state: {
|
|
28097
|
+
tenantId: props.application.tenantId
|
|
27747
28098
|
}
|
|
27748
|
-
}
|
|
27749
|
-
|
|
27750
|
-
|
|
27751
|
-
|
|
27752
|
-
|
|
27753
|
-
|
|
28099
|
+
});
|
|
28100
|
+
break;
|
|
28101
|
+
case "EDIT":
|
|
28102
|
+
return businessService !== "PT.MUTATION" ? /*#__PURE__*/React__default.createElement(ActionButton, {
|
|
28103
|
+
label: t("CS_APPLICATION_DETAILS_EDIT"),
|
|
28104
|
+
to: "/digit-ui/citizen/pt/property/edit-application/action=edit-" + businessService + "/" + props.id,
|
|
28105
|
+
state: {
|
|
28106
|
+
tenantId: props.application.tenantId
|
|
27754
28107
|
}
|
|
27755
|
-
}
|
|
27756
|
-
label: t("CS_APPLICATION_DETAILS_EDIT")
|
|
27757
|
-
})));
|
|
28108
|
+
}) : null;
|
|
27758
28109
|
case "SUBMIT_FEEDBACK":
|
|
27759
|
-
return /*#__PURE__*/React__default.createElement(
|
|
27760
|
-
|
|
27761
|
-
marginTop: "24px"
|
|
27762
|
-
}
|
|
27763
|
-
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
28110
|
+
return /*#__PURE__*/React__default.createElement(ActionButton, {
|
|
28111
|
+
label: t("CS_APPLICATION_DETAILS_RATE"),
|
|
27764
28112
|
to: "/digit-ui/citizen/fsm/rate/" + props.id
|
|
27765
|
-
}
|
|
27766
|
-
|
|
27767
|
-
|
|
28113
|
+
});
|
|
28114
|
+
default:
|
|
28115
|
+
return null;
|
|
27768
28116
|
}
|
|
27769
28117
|
};
|
|
27770
|
-
if (isLoading)
|
|
27771
|
-
|
|
27772
|
-
|
|
27773
|
-
const toggleTimeline = () => {
|
|
27774
|
-
setShowAllTimeline(prev => !prev);
|
|
27775
|
-
};
|
|
27776
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, !isLoading && /*#__PURE__*/React__default.createElement(React.Fragment, null, (data === null || data === void 0 ? void 0 : (_data$timeline = data.timeline) === null || _data$timeline === void 0 ? void 0 : _data$timeline.length) > 0 && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
28118
|
+
if (isLoading) return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
28119
|
+
const visibleTimeline = data !== null && data !== void 0 && data.timeline ? data.timeline.slice(0, showAllTimeline ? data.timeline.length : 2) : [];
|
|
28120
|
+
return /*#__PURE__*/React__default.createElement(React.Fragment, null, !isLoading && /*#__PURE__*/React__default.createElement("div", {
|
|
27777
28121
|
style: {
|
|
27778
|
-
|
|
28122
|
+
fontFamily: "'Inter', system-ui, sans-serif"
|
|
27779
28123
|
}
|
|
27780
|
-
},
|
|
27781
|
-
|
|
27782
|
-
|
|
27783
|
-
|
|
27784
|
-
|
|
27785
|
-
|
|
27786
|
-
|
|
27787
|
-
|
|
27788
|
-
|
|
27789
|
-
|
|
27790
|
-
|
|
27791
|
-
|
|
27792
|
-
|
|
27793
|
-
|
|
27794
|
-
|
|
27795
|
-
|
|
27796
|
-
|
|
28124
|
+
}, (data === null || data === void 0 ? void 0 : (_data$timeline = data.timeline) === null || _data$timeline === void 0 ? void 0 : _data$timeline.length) > 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
28125
|
+
style: {
|
|
28126
|
+
display: "flex",
|
|
28127
|
+
alignItems: "center",
|
|
28128
|
+
gap: "10px",
|
|
28129
|
+
marginBottom: "20px"
|
|
28130
|
+
}
|
|
28131
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
28132
|
+
style: {
|
|
28133
|
+
width: "4px",
|
|
28134
|
+
height: "22px",
|
|
28135
|
+
borderRadius: "2px",
|
|
28136
|
+
background: TOKEN$1.accent,
|
|
28137
|
+
flexShrink: 0
|
|
28138
|
+
}
|
|
28139
|
+
}), /*#__PURE__*/React__default.createElement("span", {
|
|
28140
|
+
style: {
|
|
28141
|
+
fontWeight: 700,
|
|
28142
|
+
fontSize: "15px",
|
|
28143
|
+
color: TOKEN$1.textPri,
|
|
28144
|
+
letterSpacing: "0.02em"
|
|
28145
|
+
}
|
|
28146
|
+
}, t("CS_APPLICATION_DETAILS_APPLICATION_TIMELINE"))), (data === null || data === void 0 ? void 0 : (_data$timeline2 = data.timeline) === null || _data$timeline2 === void 0 ? void 0 : _data$timeline2.length) === 1 && /*#__PURE__*/React__default.createElement(StepCard, {
|
|
28147
|
+
checkpoint: data.timeline[0],
|
|
28148
|
+
index: 0,
|
|
28149
|
+
isActive: true,
|
|
28150
|
+
t: t,
|
|
28151
|
+
getTimelineCaptions: getTimelineCaptions
|
|
28152
|
+
}), (data === null || data === void 0 ? void 0 : (_data$timeline3 = data.timeline) === null || _data$timeline3 === void 0 ? void 0 : _data$timeline3.length) > 1 && /*#__PURE__*/React__default.createElement("div", {
|
|
28153
|
+
style: {
|
|
28154
|
+
position: "relative"
|
|
28155
|
+
}
|
|
28156
|
+
}, visibleTimeline.map((checkpoint, index) => /*#__PURE__*/React__default.createElement(StepCard, {
|
|
28157
|
+
key: index,
|
|
28158
|
+
checkpoint: checkpoint,
|
|
28159
|
+
index: index,
|
|
28160
|
+
isActive: index === 0,
|
|
28161
|
+
t: t,
|
|
28162
|
+
getTimelineCaptions: getTimelineCaptions
|
|
28163
|
+
}))), (data === null || data === void 0 ? void 0 : (_data$timeline4 = data.timeline) === null || _data$timeline4 === void 0 ? void 0 : _data$timeline4.length) > 2 && /*#__PURE__*/React__default.createElement("div", {
|
|
28164
|
+
onClick: () => setShowAllTimeline(prev => !prev),
|
|
28165
|
+
style: {
|
|
28166
|
+
marginTop: "4px",
|
|
28167
|
+
marginBottom: "4px",
|
|
28168
|
+
display: "inline-flex",
|
|
28169
|
+
alignItems: "center",
|
|
28170
|
+
gap: "6px",
|
|
28171
|
+
cursor: "pointer",
|
|
28172
|
+
fontSize: "12px",
|
|
28173
|
+
fontWeight: 600,
|
|
28174
|
+
color: TOKEN$1.active,
|
|
28175
|
+
letterSpacing: "0.04em",
|
|
28176
|
+
padding: "6px 0",
|
|
28177
|
+
userSelect: "none"
|
|
28178
|
+
}
|
|
28179
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
28180
|
+
style: {
|
|
28181
|
+
display: "inline-block",
|
|
28182
|
+
transform: showAllTimeline ? "rotate(180deg)" : "rotate(0deg)",
|
|
28183
|
+
transition: "transform 0.25s",
|
|
28184
|
+
lineHeight: 1
|
|
28185
|
+
}
|
|
28186
|
+
}, "\u25BE"), showAllTimeline ? t("COLLAPSE") : t("VIEW_TIMELINE")), data && showNextActions(data === null || data === void 0 ? void 0 : data.nextActions)));
|
|
27797
28187
|
};
|
|
27798
28188
|
|
|
27799
28189
|
function WSDocument(_ref) {
|
|
@@ -27985,11 +28375,604 @@ const getWSDisconnectionApplicationForm = function (application, property, tenan
|
|
|
27985
28375
|
}
|
|
27986
28376
|
};
|
|
27987
28377
|
|
|
28378
|
+
const Penality_menu = [{
|
|
28379
|
+
title: "PT_PENDING_DUES_FROM_EARLIER",
|
|
28380
|
+
value: "Pending dues from earlier"
|
|
28381
|
+
}, {
|
|
28382
|
+
title: "PT_MISCALCULATION_OF_EARLIER_ASSESSMENT",
|
|
28383
|
+
value: "Miscalculation of earlier Assessment"
|
|
28384
|
+
}, {
|
|
28385
|
+
title: "PT_ONE_TIME_PENALITY",
|
|
28386
|
+
value: "One time penality"
|
|
28387
|
+
}, {
|
|
28388
|
+
title: "PT_OTHERS",
|
|
28389
|
+
value: "Others"
|
|
28390
|
+
}];
|
|
28391
|
+
const Rebate_menu = [{
|
|
28392
|
+
title: "PT_ADVANCED_PAID_BY_CITIZEN_EARLIER",
|
|
28393
|
+
value: "Advanced Paid By Citizen Earlier"
|
|
28394
|
+
}, {
|
|
28395
|
+
title: "PT_REBATE_PROVIDED_BY_COMMISSIONER_EO",
|
|
28396
|
+
value: "Rebate provided by commissioner/EO"
|
|
28397
|
+
}, {
|
|
28398
|
+
title: "PT_ADDITIONAL_AMOUNT_CHARGED_FROM_THE_CITIZEN",
|
|
28399
|
+
value: "Additional amount charged from the citizen"
|
|
28400
|
+
}, {
|
|
28401
|
+
title: "PT_OTHERS",
|
|
28402
|
+
value: "Others"
|
|
28403
|
+
}];
|
|
28404
|
+
const WSFeeEstimation = _ref => {
|
|
28405
|
+
var _wsAdditionalDetails$, _wsAdditionalDetails$18, _fields$adhocPenaltyR, _fields$adhocRebateRe;
|
|
28406
|
+
let wsAdditionalDetails = _ref.wsAdditionalDetails;
|
|
28407
|
+
const _useTranslation = reactI18next.useTranslation(),
|
|
28408
|
+
t = _useTranslation.t;
|
|
28409
|
+
const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("ADHOC_ADD_REBATE_DATA", {}),
|
|
28410
|
+
sessionFormData = _Digit$Hooks$useSessi[0],
|
|
28411
|
+
setSessionFormData = _Digit$Hooks$useSessi[1];
|
|
28412
|
+
const _Digit$Hooks$useSessi2 = Digit.Hooks.useSessionStorage("ADHOC_BILL_ADD_REBATE_DATA", {}),
|
|
28413
|
+
setSessionBillFormData = _Digit$Hooks$useSessi2[1];
|
|
28414
|
+
const isPaid = wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$ !== void 0 && _wsAdditionalDetails$.isPaid ? true : false;
|
|
28415
|
+
const _useState = React.useState(false),
|
|
28416
|
+
popup = _useState[0],
|
|
28417
|
+
showPopUp = _useState[1];
|
|
28418
|
+
const _useState2 = React.useState(sessionFormData ? sessionFormData : {}),
|
|
28419
|
+
fields = _useState2[0],
|
|
28420
|
+
setFields = _useState2[1];
|
|
28421
|
+
const _useState3 = React.useState(null),
|
|
28422
|
+
showToast = _useState3[0],
|
|
28423
|
+
setShowToast = _useState3[1];
|
|
28424
|
+
const _useState4 = React.useState(wsAdditionalDetails.additionalDetails.data ? wsAdditionalDetails.additionalDetails.data : {}),
|
|
28425
|
+
billDetails = _useState4[0],
|
|
28426
|
+
setBillDetails = _useState4[1];
|
|
28427
|
+
const _useState5 = React.useState(wsAdditionalDetails.additionalDetails.values ? wsAdditionalDetails.additionalDetails.values : []),
|
|
28428
|
+
values = _useState5[0],
|
|
28429
|
+
setValues = _useState5[1];
|
|
28430
|
+
const stateCode = Digit.ULBService.getStateId();
|
|
28431
|
+
const _Digit$Hooks$ws$useMD = Digit.Hooks.ws.useMDMS(stateCode, "BillingService", ["TaxHeadMaster"]);
|
|
28432
|
+
React.useEffect(() => {
|
|
28433
|
+
var _wsAdditionalDetails$2, _wsAdditionalDetails$3, _sessionFormData$bill;
|
|
28434
|
+
const data = _extends({}, wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$2 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : (_wsAdditionalDetails$3 = _wsAdditionalDetails$2.appDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : _wsAdditionalDetails$3.additionalDetails);
|
|
28435
|
+
if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
|
|
28436
|
+
var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0;
|
|
28437
|
+
const billAccountDetails = (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill2 = sessionFormData.billDetails) === null || _sessionFormData$bill2 === void 0 ? void 0 : (_sessionFormData$bill3 = _sessionFormData$bill2[0]) === null || _sessionFormData$bill3 === void 0 ? void 0 : _sessionFormData$bill3.billAccountDetails) || [];
|
|
28438
|
+
const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => ({
|
|
28439
|
+
title: bill === null || bill === void 0 ? void 0 : bill.taxHeadCode,
|
|
28440
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2))
|
|
28441
|
+
})) : [{
|
|
28442
|
+
title: "WS_APPLICATION_FEE_HEADER",
|
|
28443
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill4 = sessionFormData.billDetails) === null || _sessionFormData$bill4 === void 0 ? void 0 : (_sessionFormData$bill5 = _sessionFormData$bill4[0]) === null || _sessionFormData$bill5 === void 0 ? void 0 : _sessionFormData$bill5.fee)
|
|
28444
|
+
}, {
|
|
28445
|
+
title: "WS_SERVICE_FEE_HEADER",
|
|
28446
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill6 = sessionFormData.billDetails) === null || _sessionFormData$bill6 === void 0 ? void 0 : (_sessionFormData$bill7 = _sessionFormData$bill6[0]) === null || _sessionFormData$bill7 === void 0 ? void 0 : _sessionFormData$bill7.charge)
|
|
28447
|
+
}, {
|
|
28448
|
+
title: "WS_TAX_HEADER",
|
|
28449
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill8 = sessionFormData.billDetails) === null || _sessionFormData$bill8 === void 0 ? void 0 : (_sessionFormData$bill9 = _sessionFormData$bill8[0]) === null || _sessionFormData$bill9 === void 0 ? void 0 : _sessionFormData$bill9.taxAmount)
|
|
28450
|
+
}];
|
|
28451
|
+
setValues(values);
|
|
28452
|
+
setBillDetails(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill0 = sessionFormData.billDetails) === null || _sessionFormData$bill0 === void 0 ? void 0 : _sessionFormData$bill0[0]);
|
|
28453
|
+
} else {
|
|
28454
|
+
setSessionFormData(data);
|
|
28455
|
+
setFields(data);
|
|
28456
|
+
}
|
|
28457
|
+
}, []);
|
|
28458
|
+
let validation = {};
|
|
28459
|
+
const Heading = props => {
|
|
28460
|
+
return /*#__PURE__*/React__default.createElement("h1", {
|
|
28461
|
+
className: "heading-m"
|
|
28462
|
+
}, props.label);
|
|
28463
|
+
};
|
|
28464
|
+
const Close = () => /*#__PURE__*/React__default.createElement("svg", {
|
|
28465
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
28466
|
+
viewBox: "0 0 24 24",
|
|
28467
|
+
fill: "#FFFFFF"
|
|
28468
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
28469
|
+
d: "M0 0h24v24H0V0z",
|
|
28470
|
+
fill: "none"
|
|
28471
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
28472
|
+
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
28473
|
+
}));
|
|
28474
|
+
const CloseBtn = props => {
|
|
28475
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
28476
|
+
className: "icon-bg-secondary",
|
|
28477
|
+
onClick: props.onClick
|
|
28478
|
+
}, /*#__PURE__*/React__default.createElement(Close, null));
|
|
28479
|
+
};
|
|
28480
|
+
const closeToast = () => {
|
|
28481
|
+
setShowToast(false);
|
|
28482
|
+
};
|
|
28483
|
+
const addAdhocRebatePenality = e => {
|
|
28484
|
+
const adhocAmount = fields !== null && fields !== void 0 && fields.adhocPenalty ? Number(fields === null || fields === void 0 ? void 0 : fields.adhocPenalty) : 0;
|
|
28485
|
+
const rebateAmount = fields !== null && fields !== void 0 && fields.adhocRebate ? Number(fields === null || fields === void 0 ? void 0 : fields.adhocRebate) : 0;
|
|
28486
|
+
if (adhocAmount || rebateAmount) {
|
|
28487
|
+
var _wsAdditionalDetails$4, _wsAdditionalDetails$5;
|
|
28488
|
+
const totalAmount = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$4 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$4 === void 0 ? void 0 : (_wsAdditionalDetails$5 = _wsAdditionalDetails$4.data) === null || _wsAdditionalDetails$5 === void 0 ? void 0 : _wsAdditionalDetails$5.totalAmount;
|
|
28489
|
+
if (rebateAmount > totalAmount) {
|
|
28490
|
+
setShowToast({
|
|
28491
|
+
isError: false,
|
|
28492
|
+
isWarning: true,
|
|
28493
|
+
key: "error",
|
|
28494
|
+
message: t("ERR_WS_REBATE_GREATER_THAN_AMOUNT")
|
|
28495
|
+
});
|
|
28496
|
+
} else {
|
|
28497
|
+
var _wsAdditionalDetails$0, _wsAdditionalDetails$1, _wsAdditionalDetails$10, _wsAdditionalDetails$11, _wsAdditionalDetails$12, _wsAdditionalDetails$13, _wsAdditionalDetails$14, _wsAdditionalDetails$15, _wsAdditionalDetails$16, _wsAdditionalDetails$17;
|
|
28498
|
+
const applicationNo = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$0 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$0 === void 0 ? void 0 : (_wsAdditionalDetails$1 = _wsAdditionalDetails$0.appDetails) === null || _wsAdditionalDetails$1 === void 0 ? void 0 : _wsAdditionalDetails$1.applicationNo;
|
|
28499
|
+
const tenantId = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$10 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$10 === void 0 ? void 0 : (_wsAdditionalDetails$11 = _wsAdditionalDetails$10.appDetails) === null || _wsAdditionalDetails$11 === void 0 ? void 0 : _wsAdditionalDetails$11.tenantId;
|
|
28500
|
+
const appAdditionalDetails = _extends({}, wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$12 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$12 === void 0 ? void 0 : (_wsAdditionalDetails$13 = _wsAdditionalDetails$12.appDetails) === null || _wsAdditionalDetails$13 === void 0 ? void 0 : _wsAdditionalDetails$13.additionalDetails, fields);
|
|
28501
|
+
wsAdditionalDetails.additionalDetails.appDetails.additionalDetails = appAdditionalDetails;
|
|
28502
|
+
const data = {
|
|
28503
|
+
CalculationCriteria: (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$14 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$14 === void 0 ? void 0 : (_wsAdditionalDetails$15 = _wsAdditionalDetails$14.appDetails) === null || _wsAdditionalDetails$15 === void 0 ? void 0 : _wsAdditionalDetails$15.service) == "WATER" ? [{
|
|
28504
|
+
applicationNo: applicationNo,
|
|
28505
|
+
tenantId: tenantId,
|
|
28506
|
+
waterConnection: wsAdditionalDetails.additionalDetails.appDetails
|
|
28507
|
+
}] : [{
|
|
28508
|
+
applicationNo: applicationNo,
|
|
28509
|
+
tenantId: tenantId,
|
|
28510
|
+
sewerageConnection: wsAdditionalDetails.additionalDetails.appDetails
|
|
28511
|
+
}],
|
|
28512
|
+
isconnectionCalculation: false
|
|
28513
|
+
};
|
|
28514
|
+
let businessService = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$16 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$16 === void 0 ? void 0 : (_wsAdditionalDetails$17 = _wsAdditionalDetails$16.appDetails) === null || _wsAdditionalDetails$17 === void 0 ? void 0 : _wsAdditionalDetails$17.service) == "WATER" ? "WS" : "SW";
|
|
28515
|
+
Digit.WSService.wsCalculationEstimate(data, businessService).then((result, err) => {
|
|
28516
|
+
var _result$Calculation, _result$Calculation$, _result$Calculation$$, _result$Calculation3, _result$Calculation3$, _result$Calculation4, _result$Calculation4$, _result$Calculation5, _result$Calculation5$, _result$Calculation6, _result$Calculation6$, _result$Calculation7, _result$Calculation7$, _result$Calculation8;
|
|
28517
|
+
if ((result === null || result === void 0 ? void 0 : (_result$Calculation = result.Calculation) === null || _result$Calculation === void 0 ? void 0 : (_result$Calculation$ = _result$Calculation[0]) === null || _result$Calculation$ === void 0 ? void 0 : (_result$Calculation$$ = _result$Calculation$.taxHeadEstimates) === null || _result$Calculation$$ === void 0 ? void 0 : _result$Calculation$$.length) > 0) {
|
|
28518
|
+
var _result$Calculation2, _result$Calculation2$, _result$Calculation2$2;
|
|
28519
|
+
result === null || result === void 0 ? void 0 : (_result$Calculation2 = result.Calculation) === null || _result$Calculation2 === void 0 ? void 0 : (_result$Calculation2$ = _result$Calculation2[0]) === null || _result$Calculation2$ === void 0 ? void 0 : (_result$Calculation2$2 = _result$Calculation2$.taxHeadEstimates) === null || _result$Calculation2$2 === void 0 ? void 0 : _result$Calculation2$2.forEach(data => data.amount = data.estimateAmount);
|
|
28520
|
+
}
|
|
28521
|
+
result.Calculation[0].billSlabData = _.groupBy(result === null || result === void 0 ? void 0 : (_result$Calculation3 = result.Calculation) === null || _result$Calculation3 === void 0 ? void 0 : (_result$Calculation3$ = _result$Calculation3[0]) === null || _result$Calculation3$ === void 0 ? void 0 : _result$Calculation3$.taxHeadEstimates, "category");
|
|
28522
|
+
const taxHeadEstimates = (result === null || result === void 0 ? void 0 : (_result$Calculation4 = result.Calculation) === null || _result$Calculation4 === void 0 ? void 0 : (_result$Calculation4$ = _result$Calculation4[0]) === null || _result$Calculation4$ === void 0 ? void 0 : _result$Calculation4$.taxHeadEstimates) || [];
|
|
28523
|
+
const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => ({
|
|
28524
|
+
title: data === null || data === void 0 ? void 0 : data.taxHeadCode,
|
|
28525
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.estimateAmount).toFixed(2))
|
|
28526
|
+
})) : [{
|
|
28527
|
+
title: "WS_APPLICATION_FEE_HEADER",
|
|
28528
|
+
value: (_result$Calculation5 = result.Calculation) === null || _result$Calculation5 === void 0 ? void 0 : (_result$Calculation5$ = _result$Calculation5[0]) === null || _result$Calculation5$ === void 0 ? void 0 : _result$Calculation5$.fee
|
|
28529
|
+
}, {
|
|
28530
|
+
title: "WS_SERVICE_FEE_HEADER",
|
|
28531
|
+
value: (_result$Calculation6 = result.Calculation) === null || _result$Calculation6 === void 0 ? void 0 : (_result$Calculation6$ = _result$Calculation6[0]) === null || _result$Calculation6$ === void 0 ? void 0 : _result$Calculation6$.charge
|
|
28532
|
+
}, {
|
|
28533
|
+
title: "WS_TAX_HEADER",
|
|
28534
|
+
value: (_result$Calculation7 = result.Calculation) === null || _result$Calculation7 === void 0 ? void 0 : (_result$Calculation7$ = _result$Calculation7[0]) === null || _result$Calculation7$ === void 0 ? void 0 : _result$Calculation7$.taxAmount
|
|
28535
|
+
}];
|
|
28536
|
+
setSessionBillFormData(cloneDeep_1(result.Calculation[0]));
|
|
28537
|
+
setBillDetails(result === null || result === void 0 ? void 0 : (_result$Calculation8 = result.Calculation) === null || _result$Calculation8 === void 0 ? void 0 : _result$Calculation8[0]);
|
|
28538
|
+
setValues(values);
|
|
28539
|
+
fields.billDetails = result === null || result === void 0 ? void 0 : result.Calculation;
|
|
28540
|
+
setSessionFormData(fields);
|
|
28541
|
+
showPopUp(false);
|
|
28542
|
+
}).catch(e => {
|
|
28543
|
+
var _e$response, _e$response$data, _e$response$data$Erro, _e$response2, _e$response2$data, _e$response2$data$Err;
|
|
28544
|
+
setShowToast({
|
|
28545
|
+
isError: true,
|
|
28546
|
+
isWarning: false,
|
|
28547
|
+
key: "error",
|
|
28548
|
+
message: e !== null && e !== void 0 && (_e$response = e.response) !== null && _e$response !== void 0 && (_e$response$data = _e$response.data) !== null && _e$response$data !== void 0 && (_e$response$data$Erro = _e$response$data.Errors[0]) !== null && _e$response$data$Erro !== void 0 && _e$response$data$Erro.message ? t("" + (e === null || e === void 0 ? void 0 : (_e$response2 = e.response) === null || _e$response2 === void 0 ? void 0 : (_e$response2$data = _e$response2.data) === null || _e$response2$data === void 0 ? void 0 : (_e$response2$data$Err = _e$response2$data.Errors[0]) === null || _e$response2$data$Err === void 0 ? void 0 : _e$response2$data$Err.code)) : t("PT_COMMON_ADD_REBATE_PENALITY")
|
|
28549
|
+
});
|
|
28550
|
+
});
|
|
28551
|
+
}
|
|
28552
|
+
} else {
|
|
28553
|
+
setShowToast({
|
|
28554
|
+
isError: false,
|
|
28555
|
+
isWarning: true,
|
|
28556
|
+
key: "warning",
|
|
28557
|
+
message: t("ERR_WS_ENTER_ATLEAST_ONE_FIELD")
|
|
28558
|
+
});
|
|
28559
|
+
}
|
|
28560
|
+
};
|
|
28561
|
+
const selectedValuesData = function (value, isDropDownValue, e) {
|
|
28562
|
+
if (isDropDownValue === void 0) {
|
|
28563
|
+
isDropDownValue = false;
|
|
28564
|
+
}
|
|
28565
|
+
let values = _extends({}, fields);
|
|
28566
|
+
if ((value == "adhocPenalty" || value == "adhocRebate") && e.target.value) {
|
|
28567
|
+
var _e$target, _e$target2;
|
|
28568
|
+
const targetValueSign = (e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) == 0 ? 1 : Math.sign(e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value) || -1;
|
|
28569
|
+
if (targetValueSign == 1) {
|
|
28570
|
+
values[value] = e.target.value;
|
|
28571
|
+
} else {
|
|
28572
|
+
values[value] = "";
|
|
28573
|
+
}
|
|
28574
|
+
} else if (isDropDownValue) {
|
|
28575
|
+
values[value + "_data"] = e;
|
|
28576
|
+
values[value] = e.title;
|
|
28577
|
+
if (e.title == "PT_OTHERS" && value == "adhocPenaltyReason") values["adhocPenaltyComment"] = "";
|
|
28578
|
+
if (e.title == "PT_OTHERS" && value == "adhocRebateReason") values["adhocRebateComment"] = "";
|
|
28579
|
+
} else {
|
|
28580
|
+
values[value] = e.target.value;
|
|
28581
|
+
}
|
|
28582
|
+
setFields(values);
|
|
28583
|
+
};
|
|
28584
|
+
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
28585
|
+
style: {
|
|
28586
|
+
lineHeight: "19px",
|
|
28587
|
+
maxWidth: "100%",
|
|
28588
|
+
minWidth: "280px"
|
|
28589
|
+
}
|
|
28590
|
+
}, values && /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement("div", null, values === null || values === void 0 ? void 0 : values.map((value, index) => {
|
|
28591
|
+
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28592
|
+
className: "border-none",
|
|
28593
|
+
key: "" + value.title,
|
|
28594
|
+
label: "" + t("" + value.title),
|
|
28595
|
+
text: value !== null && value !== void 0 && value.value ? value === null || value === void 0 ? void 0 : value.value : ""
|
|
28596
|
+
});
|
|
28597
|
+
})), /*#__PURE__*/React__default.createElement("hr", {
|
|
28598
|
+
style: {
|
|
28599
|
+
border: "1px solid #D6D5D4",
|
|
28600
|
+
color: "#D6D5D4",
|
|
28601
|
+
margin: "16px 0px"
|
|
28602
|
+
}
|
|
28603
|
+
}), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28604
|
+
className: "border-none",
|
|
28605
|
+
key: "WS_COMMON_TOTAL_AMT",
|
|
28606
|
+
label: "" + t("WS_COMMON_TOTAL_AMT"),
|
|
28607
|
+
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", billDetails !== null && billDetails !== void 0 && billDetails.totalAmount ? Number(billDetails === null || billDetails === void 0 ? void 0 : billDetails.totalAmount).toFixed(2) : "0.00"),
|
|
28608
|
+
textStyle: {
|
|
28609
|
+
fontSize: "24px",
|
|
28610
|
+
fontWeight: "700"
|
|
28611
|
+
}
|
|
28612
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28613
|
+
className: "border-none",
|
|
28614
|
+
key: "CS_INBOX_STATUS_FILTER",
|
|
28615
|
+
label: "" + t("CS_INBOX_STATUS_FILTER"),
|
|
28616
|
+
text: isPaid ? t("WS_COMMON_PAID_LABEL") : t("WS_COMMON_NOT_PAID"),
|
|
28617
|
+
textStyle: !isPaid ? {
|
|
28618
|
+
color: "#D83A2F"
|
|
28619
|
+
} : {
|
|
28620
|
+
color: "#2E9E8F"
|
|
28621
|
+
}
|
|
28622
|
+
}))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$18 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$18 !== void 0 && _wsAdditionalDetails$18.isAdhocRebate ? /*#__PURE__*/React__default.createElement("div", {
|
|
28623
|
+
onClick: e => {
|
|
28624
|
+
showPopUp(true);
|
|
28625
|
+
}
|
|
28626
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
28627
|
+
className: "add-details-link hover-button",
|
|
28628
|
+
style: {
|
|
28629
|
+
cursor: "pointer",
|
|
28630
|
+
color: "#a82227"
|
|
28631
|
+
}
|
|
28632
|
+
}, t("WS_PAYMENT_ADD_REBATE_PENALTY"))) : null, popup && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
28633
|
+
headerBarMain: /*#__PURE__*/React__default.createElement(Heading, {
|
|
28634
|
+
label: t("PT_ADD_REBATE_PENALITY")
|
|
28635
|
+
}),
|
|
28636
|
+
headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn, {
|
|
28637
|
+
onClick: () => {
|
|
28638
|
+
setFields(sessionFormData);
|
|
28639
|
+
showPopUp(false);
|
|
28640
|
+
}
|
|
28641
|
+
}),
|
|
28642
|
+
actionCancelLabel: t("PT_CANCEL"),
|
|
28643
|
+
actionCancelOnSubmit: () => {
|
|
28644
|
+
setFields(sessionFormData);
|
|
28645
|
+
showPopUp(false);
|
|
28646
|
+
},
|
|
28647
|
+
actionSaveLabel: t("PT_ADD"),
|
|
28648
|
+
actionSaveOnSubmit: e => addAdhocRebatePenality(),
|
|
28649
|
+
hideSubmit: false,
|
|
28650
|
+
popupStyles: {
|
|
28651
|
+
overflowY: "auto",
|
|
28652
|
+
background: "#f0f3f7"
|
|
28653
|
+
}
|
|
28654
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
28655
|
+
style: {
|
|
28656
|
+
display: "flex",
|
|
28657
|
+
flexDirection: "column",
|
|
28658
|
+
gap: "16px"
|
|
28659
|
+
}
|
|
28660
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
28661
|
+
style: {
|
|
28662
|
+
fontSize: "16px",
|
|
28663
|
+
fontWeight: "700",
|
|
28664
|
+
lineHeight: "18px",
|
|
28665
|
+
padding: "0px",
|
|
28666
|
+
margin: "0px 0px 10px 0px"
|
|
28667
|
+
}
|
|
28668
|
+
}, t("PT_AD_PENALTY")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React__default.createElement("div", {
|
|
28669
|
+
className: "field"
|
|
28670
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
28671
|
+
isMandatory: true,
|
|
28672
|
+
option: Penality_menu,
|
|
28673
|
+
optionKey: "title",
|
|
28674
|
+
select: e => selectedValuesData("adhocPenaltyReason", true, e),
|
|
28675
|
+
selected: (fields === null || fields === void 0 ? void 0 : fields.adhocPenaltyReason_data) || "",
|
|
28676
|
+
isPropertyAssess: true,
|
|
28677
|
+
name: "adhocPenaltyReason_data",
|
|
28678
|
+
t: t
|
|
28679
|
+
}))), (fields === null || fields === void 0 ? void 0 : (_fields$adhocPenaltyR = fields.adhocPenaltyReason_data) === null || _fields$adhocPenaltyR === void 0 ? void 0 : _fields$adhocPenaltyR.title) === "PT_OTHERS" && /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_REASON")), /*#__PURE__*/React__default.createElement("div", {
|
|
28680
|
+
className: "field"
|
|
28681
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
28682
|
+
style: {
|
|
28683
|
+
background: "#FAFAFA"
|
|
28684
|
+
},
|
|
28685
|
+
t: t,
|
|
28686
|
+
type: "text",
|
|
28687
|
+
isMandatory: false,
|
|
28688
|
+
name: "adhocPenaltyComment",
|
|
28689
|
+
value: (fields === null || fields === void 0 ? void 0 : fields.adhocPenaltyComment) || "",
|
|
28690
|
+
onChange: e => selectedValuesData("adhocPenaltyComment", false, e)
|
|
28691
|
+
}, validation = {
|
|
28692
|
+
isRequired: true,
|
|
28693
|
+
pattern: "^[a-zA-Z ]*$",
|
|
28694
|
+
type: "text",
|
|
28695
|
+
title: t("TL_NAME_ERROR_MESSAGE")
|
|
28696
|
+
})))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React__default.createElement("div", {
|
|
28697
|
+
className: "field"
|
|
28698
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
28699
|
+
style: {
|
|
28700
|
+
background: "#FAFAFA"
|
|
28701
|
+
},
|
|
28702
|
+
t: t,
|
|
28703
|
+
type: "number",
|
|
28704
|
+
isMandatory: false,
|
|
28705
|
+
name: "adhocPenalty",
|
|
28706
|
+
value: (fields === null || fields === void 0 ? void 0 : fields.adhocPenalty) || "",
|
|
28707
|
+
onChange: e => selectedValuesData("adhocPenalty", false, e)
|
|
28708
|
+
}, validation = {
|
|
28709
|
+
isRequired: true,
|
|
28710
|
+
pattern: "^[1-9]+[0-9]*$",
|
|
28711
|
+
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
28712
|
+
}))))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
28713
|
+
style: {
|
|
28714
|
+
fontSize: "16px",
|
|
28715
|
+
fontWeight: "700",
|
|
28716
|
+
lineHeight: "18px",
|
|
28717
|
+
padding: "0px",
|
|
28718
|
+
margin: "0px 0px 10px 0px"
|
|
28719
|
+
}
|
|
28720
|
+
}, t("PT_AD_REBATE")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React__default.createElement("div", {
|
|
28721
|
+
className: "field"
|
|
28722
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
28723
|
+
isMandatory: true,
|
|
28724
|
+
option: Rebate_menu,
|
|
28725
|
+
optionKey: "title",
|
|
28726
|
+
select: e => selectedValuesData("adhocRebateReason", true, e),
|
|
28727
|
+
selected: (fields === null || fields === void 0 ? void 0 : fields.adhocRebateReason_data) || "",
|
|
28728
|
+
name: "adhocRebateReason_data",
|
|
28729
|
+
isPropertyAssess: true,
|
|
28730
|
+
t: t
|
|
28731
|
+
}))), (fields === null || fields === void 0 ? void 0 : (_fields$adhocRebateRe = fields.adhocRebateReason_data) === null || _fields$adhocRebateRe === void 0 ? void 0 : _fields$adhocRebateRe.title) === "PT_OTHERS" && /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_REASON")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
28732
|
+
style: {
|
|
28733
|
+
background: "#FAFAFA"
|
|
28734
|
+
},
|
|
28735
|
+
t: t,
|
|
28736
|
+
type: "text",
|
|
28737
|
+
isMandatory: false,
|
|
28738
|
+
name: "adhocRebateComment",
|
|
28739
|
+
value: (fields === null || fields === void 0 ? void 0 : fields.adhocRebateComment) || "",
|
|
28740
|
+
onChange: e => selectedValuesData("adhocRebateComment", false, e)
|
|
28741
|
+
}, validation = {
|
|
28742
|
+
isRequired: true,
|
|
28743
|
+
pattern: "^[a-zA-Z ]*$",
|
|
28744
|
+
type: "text",
|
|
28745
|
+
title: t("TL_NAME_ERROR_MESSAGE")
|
|
28746
|
+
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React__default.createElement("div", {
|
|
28747
|
+
className: "field"
|
|
28748
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
28749
|
+
style: {
|
|
28750
|
+
background: "#FAFAFA"
|
|
28751
|
+
},
|
|
28752
|
+
t: t,
|
|
28753
|
+
type: "number",
|
|
28754
|
+
isMandatory: false,
|
|
28755
|
+
name: "adhocRebate",
|
|
28756
|
+
value: (fields === null || fields === void 0 ? void 0 : fields.adhocRebate) || "",
|
|
28757
|
+
onChange: e => selectedValuesData("adhocRebate", false, e)
|
|
28758
|
+
}, validation = {
|
|
28759
|
+
isRequired: true,
|
|
28760
|
+
pattern: "^[1-9]+[0-9]*$",
|
|
28761
|
+
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
28762
|
+
}))))))), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
28763
|
+
style: {
|
|
28764
|
+
zIndex: "10000"
|
|
28765
|
+
},
|
|
28766
|
+
warning: showToast === null || showToast === void 0 ? void 0 : showToast.isWarning,
|
|
28767
|
+
error: showToast !== null && showToast !== void 0 && showToast.isWarning ? false : true,
|
|
28768
|
+
label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
|
|
28769
|
+
onClose: closeToast,
|
|
28770
|
+
isDleteBtn: true
|
|
28771
|
+
})));
|
|
28772
|
+
};
|
|
28773
|
+
|
|
28774
|
+
const ViewBreakup = _ref => {
|
|
28775
|
+
var _wsAdditionalDetails$, _breakUpData$billSlab, _breakUpData$billSlab2, _breakUpData$billSlab3, _breakUpData$billSlab4, _breakUpData$billSlab5, _breakUpData$billSlab6;
|
|
28776
|
+
let wsAdditionalDetails = _ref.wsAdditionalDetails;
|
|
28777
|
+
const _useTranslation = reactI18next.useTranslation(),
|
|
28778
|
+
t = _useTranslation.t;
|
|
28779
|
+
const _useState = React.useState(false),
|
|
28780
|
+
popup = _useState[0],
|
|
28781
|
+
showPopUp = _useState[1];
|
|
28782
|
+
const _useState2 = React.useState({}),
|
|
28783
|
+
breakUpData = _useState2[0],
|
|
28784
|
+
setBreakUpData = _useState2[1];
|
|
28785
|
+
const Heading = props => {
|
|
28786
|
+
return /*#__PURE__*/React__default.createElement("h1", {
|
|
28787
|
+
className: "heading-m"
|
|
28788
|
+
}, props.label);
|
|
28789
|
+
};
|
|
28790
|
+
const Close = () => /*#__PURE__*/React__default.createElement("svg", {
|
|
28791
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
28792
|
+
viewBox: "0 0 24 24",
|
|
28793
|
+
fill: "#FFFFFF"
|
|
28794
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
28795
|
+
d: "M0 0h24v24H0V0z",
|
|
28796
|
+
fill: "none"
|
|
28797
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
28798
|
+
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
28799
|
+
}));
|
|
28800
|
+
const CloseBtn = props => {
|
|
28801
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
28802
|
+
className: "icon-bg-secondary",
|
|
28803
|
+
onClick: props.onClick
|
|
28804
|
+
}, /*#__PURE__*/React__default.createElement(Close, null));
|
|
28805
|
+
};
|
|
28806
|
+
const onPopupOpen = () => {
|
|
28807
|
+
var _sessionBillFormData$;
|
|
28808
|
+
let breakupData = wsAdditionalDetails.additionalDetails.data || {};
|
|
28809
|
+
const sessionBillData = sessionStorage.getItem("Digit.ADHOC_BILL_ADD_REBATE_DATA");
|
|
28810
|
+
const sessionBillFormData = sessionBillData ? JSON.parse(sessionBillData) : {};
|
|
28811
|
+
if (sessionBillFormData !== null && sessionBillFormData !== void 0 && (_sessionBillFormData$ = sessionBillFormData.value) !== null && _sessionBillFormData$ !== void 0 && _sessionBillFormData$.totalAmount) breakupData = sessionBillFormData === null || sessionBillFormData === void 0 ? void 0 : sessionBillFormData.value;
|
|
28812
|
+
setBreakUpData(breakupData);
|
|
28813
|
+
showPopUp(true);
|
|
28814
|
+
};
|
|
28815
|
+
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
28816
|
+
style: {
|
|
28817
|
+
lineHeight: "19px",
|
|
28818
|
+
maxWidth: "950px",
|
|
28819
|
+
minWidth: "280px"
|
|
28820
|
+
}
|
|
28821
|
+
}, wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$ !== void 0 && _wsAdditionalDetails$.isViewBreakup ? /*#__PURE__*/React__default.createElement("div", {
|
|
28822
|
+
onClick: e => onPopupOpen(),
|
|
28823
|
+
style: {
|
|
28824
|
+
marginTop: "12px"
|
|
28825
|
+
}
|
|
28826
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
28827
|
+
className: "add-details-link hover-button"
|
|
28828
|
+
}, t("WS_PAYMENT_VIEW_BREAKUP"))) : null, popup && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
28829
|
+
headerBarMain: /*#__PURE__*/React__default.createElement(Heading, {
|
|
28830
|
+
label: t("WS_CALCULATION_BREAKUP")
|
|
28831
|
+
}),
|
|
28832
|
+
headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn, {
|
|
28833
|
+
onClick: () => {
|
|
28834
|
+
showPopUp(false);
|
|
28835
|
+
}
|
|
28836
|
+
}),
|
|
28837
|
+
hideSubmit: true,
|
|
28838
|
+
popupStyles: {
|
|
28839
|
+
overflowY: "auto"
|
|
28840
|
+
},
|
|
28841
|
+
headerBarMainStyle: {
|
|
28842
|
+
marginBottom: "0px"
|
|
28843
|
+
},
|
|
28844
|
+
popupModuleMianStyles: {
|
|
28845
|
+
paddingTop: "0px"
|
|
28846
|
+
}
|
|
28847
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
28848
|
+
style: {
|
|
28849
|
+
padding: "10px",
|
|
28850
|
+
paddingTop: "0px"
|
|
28851
|
+
}
|
|
28852
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
28853
|
+
style: {
|
|
28854
|
+
margin: "10px 0px"
|
|
28855
|
+
}
|
|
28856
|
+
}, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab = breakUpData.billSlabData) === null || _breakUpData$billSlab === void 0 ? void 0 : (_breakUpData$billSlab2 = _breakUpData$billSlab.FEE) === null || _breakUpData$billSlab2 === void 0 ? void 0 : _breakUpData$billSlab2.map(data => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28857
|
+
className: "border-none",
|
|
28858
|
+
rowContainerStyle: {
|
|
28859
|
+
margin: "0px"
|
|
28860
|
+
},
|
|
28861
|
+
labelStyle: {
|
|
28862
|
+
width: "50%"
|
|
28863
|
+
},
|
|
28864
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
28865
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
28866
|
+
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
28867
|
+
textStyle: {
|
|
28868
|
+
textAlign: "right"
|
|
28869
|
+
}
|
|
28870
|
+
})), /*#__PURE__*/React__default.createElement("hr", {
|
|
28871
|
+
style: {
|
|
28872
|
+
color: "#cccccc",
|
|
28873
|
+
backgroundColor: "#cccccc",
|
|
28874
|
+
marginBottom: "10px"
|
|
28875
|
+
}
|
|
28876
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28877
|
+
className: "border-none",
|
|
28878
|
+
rowContainerStyle: {
|
|
28879
|
+
margin: "0px"
|
|
28880
|
+
},
|
|
28881
|
+
labelStyle: {
|
|
28882
|
+
width: "50%"
|
|
28883
|
+
},
|
|
28884
|
+
key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT1",
|
|
28885
|
+
label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
28886
|
+
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.fee) || 0),
|
|
28887
|
+
textStyle: {
|
|
28888
|
+
textAlign: "right",
|
|
28889
|
+
fontWeight: "700",
|
|
28890
|
+
fontSize: "24px"
|
|
28891
|
+
}
|
|
28892
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
28893
|
+
style: {
|
|
28894
|
+
margin: "10px 0px"
|
|
28895
|
+
}
|
|
28896
|
+
}, t("WS_SERVICE_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab3 = breakUpData.billSlabData) === null || _breakUpData$billSlab3 === void 0 ? void 0 : (_breakUpData$billSlab4 = _breakUpData$billSlab3.CHARGES) === null || _breakUpData$billSlab4 === void 0 ? void 0 : _breakUpData$billSlab4.map(data => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28897
|
+
className: "border-none",
|
|
28898
|
+
rowContainerStyle: {
|
|
28899
|
+
margin: "0px"
|
|
28900
|
+
},
|
|
28901
|
+
labelStyle: {
|
|
28902
|
+
width: "50%"
|
|
28903
|
+
},
|
|
28904
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
28905
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
28906
|
+
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
28907
|
+
textStyle: {
|
|
28908
|
+
textAlign: "right"
|
|
28909
|
+
}
|
|
28910
|
+
})), /*#__PURE__*/React__default.createElement("hr", {
|
|
28911
|
+
style: {
|
|
28912
|
+
color: "#cccccc",
|
|
28913
|
+
backgroundColor: "#cccccc",
|
|
28914
|
+
marginBottom: "10px"
|
|
28915
|
+
}
|
|
28916
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28917
|
+
className: "border-none",
|
|
28918
|
+
rowContainerStyle: {
|
|
28919
|
+
margin: "0px"
|
|
28920
|
+
},
|
|
28921
|
+
labelStyle: {
|
|
28922
|
+
width: "50%"
|
|
28923
|
+
},
|
|
28924
|
+
key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT2",
|
|
28925
|
+
label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
28926
|
+
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.charge) || 0),
|
|
28927
|
+
textStyle: {
|
|
28928
|
+
textAlign: "right",
|
|
28929
|
+
fontWeight: "700",
|
|
28930
|
+
fontSize: "24px"
|
|
28931
|
+
}
|
|
28932
|
+
}), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab5 = breakUpData.billSlabData) === null || _breakUpData$billSlab5 === void 0 ? void 0 : (_breakUpData$billSlab6 = _breakUpData$billSlab5.TAX) === null || _breakUpData$billSlab6 === void 0 ? void 0 : _breakUpData$billSlab6.map(data => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28933
|
+
className: "border-none",
|
|
28934
|
+
rowContainerStyle: {
|
|
28935
|
+
margin: "0px"
|
|
28936
|
+
},
|
|
28937
|
+
labelStyle: {
|
|
28938
|
+
width: "50%"
|
|
28939
|
+
},
|
|
28940
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
28941
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
28942
|
+
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
28943
|
+
textStyle: {
|
|
28944
|
+
textAlign: "right"
|
|
28945
|
+
}
|
|
28946
|
+
})), /*#__PURE__*/React__default.createElement("hr", {
|
|
28947
|
+
style: {
|
|
28948
|
+
color: "#cccccc",
|
|
28949
|
+
backgroundColor: "#cccccc",
|
|
28950
|
+
marginBottom: "10px"
|
|
28951
|
+
}
|
|
28952
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28953
|
+
className: "border-none",
|
|
28954
|
+
rowContainerStyle: {
|
|
28955
|
+
margin: "0px"
|
|
28956
|
+
},
|
|
28957
|
+
labelStyle: {
|
|
28958
|
+
width: "50%"
|
|
28959
|
+
},
|
|
28960
|
+
key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT3",
|
|
28961
|
+
label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
28962
|
+
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.totalAmount) || 0),
|
|
28963
|
+
textStyle: {
|
|
28964
|
+
textAlign: "right",
|
|
28965
|
+
fontWeight: "700",
|
|
28966
|
+
fontSize: "24px"
|
|
28967
|
+
}
|
|
28968
|
+
})))));
|
|
28969
|
+
};
|
|
28970
|
+
|
|
27988
28971
|
const checkForNA$1 = value => {
|
|
27989
28972
|
return value ? value : "CS_NA";
|
|
27990
28973
|
};
|
|
27991
28974
|
const WSApplicationDetails = () => {
|
|
27992
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$SewerageConnect5, _data$SewerageConnect6, _data$WaterConnection7, _data$WaterConnection8, _data$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$SewerageConnect1, _PTData$Properties, _PTData$Properties$, _data$WaterConnection10, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$SewerageConnect10, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$SewerageConnect17, _data$WaterConnection36, _data$WaterConnection37, _data$SewerageConnect32, _data$SewerageConnect33, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection40, _data$WaterConnection41, _data$SewerageConnect36, _data$SewerageConnect37, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect40, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect41, _data$SewerageConnect42, _data$WaterConnection48, _data$WaterConnection49, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect45, _data$SewerageConnect46, _data$WaterConnection52, _data$WaterConnection53, _data$SewerageConnect47, _data$SewerageConnect48, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect49, _data$SewerageConnect50, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$SewerageConnect57, _data$SewerageConnect58, _data$WaterConnection64, _data$WaterConnection65, _data$SewerageConnect59, _data$SewerageConnect60, _data$WaterConnection66, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$SewerageConnect61, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64,
|
|
28975
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$SewerageConnect5, _data$SewerageConnect6, _data$WaterConnection7, _data$WaterConnection8, _data$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$SewerageConnect1, _PTData$Properties, _PTData$Properties$, _data$WaterConnection10, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$SewerageConnect10, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$SewerageConnect17, _appDetailsData$appli, _data$WaterConnection36, _data$WaterConnection37, _data$SewerageConnect32, _data$SewerageConnect33, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection40, _data$WaterConnection41, _data$SewerageConnect36, _data$SewerageConnect37, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect40, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect41, _data$SewerageConnect42, _data$WaterConnection48, _data$WaterConnection49, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect45, _data$SewerageConnect46, _data$WaterConnection52, _data$WaterConnection53, _data$SewerageConnect47, _data$SewerageConnect48, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect49, _data$SewerageConnect50, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$SewerageConnect57, _data$SewerageConnect58, _data$WaterConnection64, _data$WaterConnection65, _data$SewerageConnect59, _data$SewerageConnect60, _data$WaterConnection66, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$SewerageConnect61, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection70, _data$WaterConnection71, _data$WaterConnection72, _data$SewerageConnect65, _data$SewerageConnect66, _data$SewerageConnect67, _data$WaterConnection73, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$SewerageConnect68, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$WaterConnection77, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$SewerageConnect72, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$WaterConnection81, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$SewerageConnect76, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$WaterConnection85, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$SewerageConnect80, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$WaterConnection89, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$SewerageConnect84, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$WaterConnection93, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$SewerageConnect88, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$WaterConnection97, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$SewerageConnect92, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$WaterConnection101, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$SewerageConnect96, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$WaterConnection105, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$SewerageConnect100, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$WaterConnection109, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$SewerageConnect104, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$WaterConnection113, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$SewerageConnect108, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$WaterConnection117, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$SewerageConnect112, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$WaterConnection121, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$SewerageConnect116, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$WaterConnection125, _data$WaterConnection126, _data$SewerageConnect120, _data$SewerageConnect121, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection127, _data$WaterConnection128, _data$SewerageConnect122, _data$SewerageConnect123, _data$WaterConnection129, _data$WaterConnection130, _data$SewerageConnect124, _data$SewerageConnect125, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$WaterConnection139, _data$WaterConnection140, _data$SewerageConnect134, _data$SewerageConnect135, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _data$WaterConnection141, _data$WaterConnection142, _data$SewerageConnect136, _data$SewerageConnect137, _data$WaterConnection143, _data$WaterConnection144, _data$SewerageConnect138, _data$SewerageConnect139, _data$WaterConnection145, _data$WaterConnection146, _data$SewerageConnect140, _data$SewerageConnect141, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _data$WaterConnection150, _data$WaterConnection151, _data$WaterConnection152, _data$WaterConnection153, _data$SewerageConnect145, _data$SewerageConnect146, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection154, _data$WaterConnection155, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection156, _data$WaterConnection157, _data$SewerageConnect151, _data$SewerageConnect152, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$SewerageConnect156, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect157, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172;
|
|
27993
28976
|
const getDisconnectionNoticeSearch = function () {
|
|
27994
28977
|
try {
|
|
27995
28978
|
var _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect169, _data$SewerageConnect170;
|
|
@@ -28104,7 +29087,14 @@ const WSApplicationDetails = () => {
|
|
|
28104
29087
|
}
|
|
28105
29088
|
}) || false;
|
|
28106
29089
|
const isPaid = (data === null || data === void 0 ? void 0 : (_data$WaterConnection14 = data.WaterConnection) === null || _data$WaterConnection14 === void 0 ? void 0 : (_data$WaterConnection15 = _data$WaterConnection14[0]) === null || _data$WaterConnection15 === void 0 ? void 0 : _data$WaterConnection15.applicationStatus) === "CONNECTION_ACTIVATED" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection16 = data.WaterConnection) === null || _data$WaterConnection16 === void 0 ? void 0 : (_data$WaterConnection17 = _data$WaterConnection16[0]) === null || _data$WaterConnection17 === void 0 ? void 0 : _data$WaterConnection17.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect14 = data.SewerageConnections) === null || _data$SewerageConnect14 === void 0 ? void 0 : (_data$SewerageConnect15 = _data$SewerageConnect14[0]) === null || _data$SewerageConnect15 === void 0 ? void 0 : _data$SewerageConnect15.applicationStatus) === "CONNECTION_ACTIVATED" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect16 = data.SewerageConnections) === null || _data$SewerageConnect16 === void 0 ? void 0 : (_data$SewerageConnect17 = _data$SewerageConnect16[0]) === null || _data$SewerageConnect17 === void 0 ? void 0 : _data$SewerageConnect17.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" ? true : false;
|
|
28107
|
-
|
|
29090
|
+
const _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, applicationNobyData, applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? "SEWERAGE" : "WATER", user),
|
|
29091
|
+
isAppDetailsLoading = _Digit$Hooks$ws$useWS.isLoading,
|
|
29092
|
+
appDetailsData = _Digit$Hooks$ws$useWS.data;
|
|
29093
|
+
const feeEstimationSection = appDetailsData === null || appDetailsData === void 0 ? void 0 : (_appDetailsData$appli = appDetailsData.applicationDetails) === null || _appDetailsData$appli === void 0 ? void 0 : _appDetailsData$appli.find(section => (section === null || section === void 0 ? void 0 : section.title) === "WS_TASK_DETAILS_FEE_ESTIMATE");
|
|
29094
|
+
if (feeEstimationSection && feeEstimationSection.additionalDetails) {
|
|
29095
|
+
feeEstimationSection.additionalDetails.isPaid = isPaid;
|
|
29096
|
+
}
|
|
29097
|
+
if (isLoading || isAppDetailsLoading) {
|
|
28108
29098
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
28109
29099
|
}
|
|
28110
29100
|
const handleDownloadPdf = function () {
|
|
@@ -28328,25 +29318,19 @@ const WSApplicationDetails = () => {
|
|
|
28328
29318
|
textStyle: {
|
|
28329
29319
|
wordBreak: "break-word"
|
|
28330
29320
|
}
|
|
28331
|
-
})),
|
|
28332
|
-
|
|
28333
|
-
|
|
28334
|
-
|
|
28335
|
-
|
|
28336
|
-
label: t(bill === null || bill === void 0 ? void 0 : bill.taxHeadCode),
|
|
28337
|
-
text: "\u20B9" + Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2)
|
|
28338
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28339
|
-
label: t("WS_TOTAL_AMOUNT_DUE"),
|
|
28340
|
-
text: "\u20B9" + Number(isPaid ? 0 : paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data7 = paymentDetails.data) === null || _paymentDetails$data7 === void 0 ? void 0 : (_paymentDetails$data8 = _paymentDetails$data7.Bill) === null || _paymentDetails$data8 === void 0 ? void 0 : (_paymentDetails$data9 = _paymentDetails$data8[0]) === null || _paymentDetails$data9 === void 0 ? void 0 : (_paymentDetails$data0 = _paymentDetails$data9.billDetails) === null || _paymentDetails$data0 === void 0 ? void 0 : (_paymentDetails$data1 = _paymentDetails$data0[0]) === null || _paymentDetails$data1 === void 0 ? void 0 : _paymentDetails$data1.amount).toFixed(2)
|
|
28341
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28342
|
-
label: t("WS_COMMON_TABLE_COL_APPLICATION_STATUS"),
|
|
28343
|
-
text: isPaid || Number(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data10 = paymentDetails.data) === null || _paymentDetails$data10 === void 0 ? void 0 : (_paymentDetails$data11 = _paymentDetails$data10.Bill) === null || _paymentDetails$data11 === void 0 ? void 0 : (_paymentDetails$data12 = _paymentDetails$data11[0]) === null || _paymentDetails$data12 === void 0 ? void 0 : (_paymentDetails$data13 = _paymentDetails$data12.billDetails) === null || _paymentDetails$data13 === void 0 ? void 0 : (_paymentDetails$data14 = _paymentDetails$data13[0]) === null || _paymentDetails$data14 === void 0 ? void 0 : _paymentDetails$data14.amount).toFixed(2) == 0 ? t("WS_COMMON_PAID_LABEL") : t("WS_COMMON_NOT_PAID"),
|
|
28344
|
-
textStyle: isPaid || Number(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data15 = paymentDetails.data) === null || _paymentDetails$data15 === void 0 ? void 0 : (_paymentDetails$data16 = _paymentDetails$data15.Bill) === null || _paymentDetails$data16 === void 0 ? void 0 : (_paymentDetails$data17 = _paymentDetails$data16[0]) === null || _paymentDetails$data17 === void 0 ? void 0 : (_paymentDetails$data18 = _paymentDetails$data17.billDetails) === null || _paymentDetails$data18 === void 0 ? void 0 : (_paymentDetails$data19 = _paymentDetails$data18[0]) === null || _paymentDetails$data19 === void 0 ? void 0 : _paymentDetails$data19.amount).toFixed(2) == 0 ? {
|
|
28345
|
-
color: "darkgreen"
|
|
28346
|
-
} : {
|
|
28347
|
-
color: "red"
|
|
29321
|
+
})), feeEstimationSection && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
29322
|
+
style: {
|
|
29323
|
+
marginBottom: "16px",
|
|
29324
|
+
marginTop: "16px",
|
|
29325
|
+
fontSize: "24px"
|
|
28348
29326
|
}
|
|
28349
|
-
}))
|
|
29327
|
+
}, t(feeEstimationSection.title)), /*#__PURE__*/React__default.createElement(WSFeeEstimation, {
|
|
29328
|
+
wsAdditionalDetails: feeEstimationSection,
|
|
29329
|
+
workflowDetails: null
|
|
29330
|
+
}), /*#__PURE__*/React__default.createElement(ViewBreakup, {
|
|
29331
|
+
wsAdditionalDetails: feeEstimationSection,
|
|
29332
|
+
workflowDetails: null
|
|
29333
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28350
29334
|
styles: {
|
|
28351
29335
|
fontSize: "28px"
|
|
28352
29336
|
}
|
|
@@ -28755,7 +29739,7 @@ const WSApplicationDetails = () => {
|
|
|
28755
29739
|
}) : null)));
|
|
28756
29740
|
})), (data === null || data === void 0 ? void 0 : (_data$WaterConnection139 = data.WaterConnection) === null || _data$WaterConnection139 === void 0 ? void 0 : (_data$WaterConnection140 = _data$WaterConnection139[0]) === null || _data$WaterConnection140 === void 0 ? void 0 : _data$WaterConnection140.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect134 = data.SewerageConnections) === null || _data$SewerageConnect134 === void 0 ? void 0 : (_data$SewerageConnect135 = _data$SewerageConnect134[0]) === null || _data$SewerageConnect135 === void 0 ? void 0 : _data$SewerageConnect135.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
28757
29741
|
to: {
|
|
28758
|
-
pathname: "/digit-ui/citizen/payment/my-bills/" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$
|
|
29742
|
+
pathname: "/digit-ui/citizen/payment/my-bills/" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService) + "/" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$WaterConnection141 = data.WaterConnection) === null || _data$WaterConnection141 === void 0 ? void 0 : (_data$WaterConnection142 = _data$WaterConnection141[0]) === null || _data$WaterConnection142 === void 0 ? void 0 : _data$WaterConnection142.connectionNo, "/", "+") || stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$SewerageConnect136 = data.SewerageConnections) === null || _data$SewerageConnect136 === void 0 ? void 0 : (_data$SewerageConnect137 = _data$SewerageConnect136[0]) === null || _data$SewerageConnect137 === void 0 ? void 0 : _data$SewerageConnect137.connectionNo, "/", "+") : stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$WaterConnection143 = data.WaterConnection) === null || _data$WaterConnection143 === void 0 ? void 0 : (_data$WaterConnection144 = _data$WaterConnection143[0]) === null || _data$WaterConnection144 === void 0 ? void 0 : _data$WaterConnection144.applicationNo, "/", "+") || stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$SewerageConnect138 = data.SewerageConnections) === null || _data$SewerageConnect138 === void 0 ? void 0 : (_data$SewerageConnect139 = _data$SewerageConnect138[0]) === null || _data$SewerageConnect139 === void 0 ? void 0 : _data$SewerageConnect139.applicationNo, "/", "+")) + "?workflow=WNS&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection145 = data.WaterConnection) === null || _data$WaterConnection145 === void 0 ? void 0 : (_data$WaterConnection146 = _data$WaterConnection145[0]) === null || _data$WaterConnection146 === void 0 ? void 0 : _data$WaterConnection146.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect140 = data.SewerageConnections) === null || _data$SewerageConnect140 === void 0 ? void 0 : (_data$SewerageConnect141 = _data$SewerageConnect140[0]) === null || _data$SewerageConnect141 === void 0 ? void 0 : _data$SewerageConnect141.tenantId)) + "&ConsumerName=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection147 = data.WaterConnection) === null || _data$WaterConnection147 === void 0 ? void 0 : (_data$WaterConnection148 = _data$WaterConnection147[0]) === null || _data$WaterConnection148 === void 0 ? void 0 : (_data$WaterConnection149 = _data$WaterConnection148.connectionHolders) === null || _data$WaterConnection149 === void 0 ? void 0 : _data$WaterConnection149.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect142 = data.SewerageConnections) === null || _data$SewerageConnect142 === void 0 ? void 0 : (_data$SewerageConnect143 = _data$SewerageConnect142[0]) === null || _data$SewerageConnect143 === void 0 ? void 0 : (_data$SewerageConnect144 = _data$SewerageConnect143.connectionHolders) === null || _data$SewerageConnect144 === void 0 ? void 0 : _data$SewerageConnect144.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties8 = PTData.Properties) === null || _PTData$Properties8 === void 0 ? void 0 : (_PTData$Properties8$ = _PTData$Properties8[0]) === null || _PTData$Properties8$ === void 0 ? void 0 : (_PTData$Properties8$$ = _PTData$Properties8$.owners) === null || _PTData$Properties8$$ === void 0 ? void 0 : _PTData$Properties8$$.map(owner => owner.name).join(","))) + "&isDisoconnectFlow=" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false),
|
|
28759
29743
|
state: {}
|
|
28760
29744
|
}
|
|
28761
29745
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
@@ -30144,7 +31128,7 @@ const getPath$3 = (path, params) => {
|
|
|
30144
31128
|
};
|
|
30145
31129
|
const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
30146
31130
|
if (waterResult) {
|
|
30147
|
-
var _waterResult$connecti, _waterResult$connecti2, _waterResult$connecti3, _waterResult$connecti4, _waterResult$connecti5, _waterResult$connecti6, _waterResult$connecti7, _waterResult$connecti8, _waterResult$connecti9, _waterResult$connecti0, _waterResult$connecti1, _waterResult$connecti10, _waterResult$connecti11, _waterResult$connecti12, _waterResult$connecti13, _waterResult$connecti14, _waterResult$connecti15, _waterResult$connecti16, _waterResult$connecti17, _waterResult$connecti18, _waterResult$connecti19, _waterResult$connecti20, _waterResult$connecti21, _waterResult$connecti22, _waterResult$connecti23, _waterResult$connecti24, _waterResult$connecti25, _waterResult$connecti26, _waterResult$property, _waterResult$property2, _waterResult$property3, _waterResult$property4, _waterResult$property5, _waterResult$property6, _waterResult$property7, _waterResult$property8, _waterResult$property9, _waterResult$property0, _waterResult$property1, _waterResult$property10, _waterResult$property11, _waterResult$property12, _waterResult$property13, _waterResult$property14, _waterResult$property15, _waterResult$property16, _waterResult$property17, _waterResult$property18, _waterResult$property19, _waterResult$property20, _waterResult$property21, _waterResult$property22, _waterResult$property23, _waterResult$property24, _waterResult$property25, _waterResult$property26, _waterResult$property27, _waterResult$property28, _waterResult$
|
|
31131
|
+
var _waterResult$connecti, _waterResult$connecti2, _waterResult$connecti3, _waterResult$connecti4, _waterResult$connecti5, _waterResult$connecti6, _waterResult$connecti7, _waterResult$connecti8, _waterResult$connecti9, _waterResult$connecti0, _waterResult$connecti1, _waterResult$connecti10, _waterResult$connecti11, _waterResult$connecti12, _waterResult$connecti13, _waterResult$connecti14, _waterResult$connecti15, _waterResult$connecti16, _waterResult$connecti17, _waterResult$connecti18, _waterResult$connecti19, _waterResult$connecti20, _waterResult$connecti21, _waterResult$connecti22, _waterResult$connecti23, _waterResult$connecti24, _waterResult$connecti25, _waterResult$connecti26, _waterResult$connecti27, _waterResult$connecti28, _waterResult$connecti29, _waterResult$connecti30, _waterResult$connecti31, _waterResult$connecti32, _waterResult$property, _waterResult$property2, _waterResult$property3, _waterResult$property4, _waterResult$property5, _waterResult$property6, _waterResult$property7, _waterResult$property8, _waterResult$property9, _waterResult$property0, _waterResult$property1, _waterResult$property10, _waterResult$property11, _waterResult$property12, _waterResult$property13, _waterResult$property14, _waterResult$property15, _waterResult$property16, _waterResult$property17, _waterResult$property18, _waterResult$property19, _waterResult$property20, _waterResult$property21, _waterResult$property22, _waterResult$property23, _waterResult$property24, _waterResult$property25, _waterResult$property26, _waterResult$property27, _waterResult$property28, _waterResult$connecti33, _waterResult$connecti34, _waterResult$connecti35, _waterResult$connecti36, _waterResult$connecti37, _waterResult$connecti38, _waterResult$applicat, _waterResult$addition, _waterResult$addition2, _waterResult$addition3, _waterResult$addition4, _waterResult$addition5, _waterResult$addition6, _waterResult$addition7, _waterResult$addition8, _waterResult$addition9, _waterResult$addition0, _waterResult$addition1, _waterResult$addition10, _waterResult$addition11, _waterResult$addition12, _waterResult$addition13, _waterResult$addition14, _waterResult$addition15, _waterResult$addition16, _waterResult$addition17, _waterResult$addition18, _waterResult$addition19, _waterResult$addition20, _waterResult$addition21, _waterResult$addition22, _waterResult$addition23;
|
|
30148
31132
|
waterResult.ConnectionHolderDetails = waterResult !== null && waterResult !== void 0 && waterResult.connectionHolders ? [_extends({}, waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti = waterResult.connectionHolders) === null || _waterResult$connecti === void 0 ? void 0 : _waterResult$connecti[0], {
|
|
30149
31133
|
address: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti2 = waterResult.connectionHolders) === null || _waterResult$connecti2 === void 0 ? void 0 : (_waterResult$connecti3 = _waterResult$connecti2[0]) === null || _waterResult$connecti3 === void 0 ? void 0 : _waterResult$connecti3.correspondenceAddress,
|
|
30150
31134
|
documentId: "",
|
|
@@ -30157,14 +31141,15 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
|
30157
31141
|
guardian: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti0 = waterResult.connectionHolders) === null || _waterResult$connecti0 === void 0 ? void 0 : (_waterResult$connecti1 = _waterResult$connecti0[0]) === null || _waterResult$connecti1 === void 0 ? void 0 : _waterResult$connecti1.fatherOrHusbandName,
|
|
30158
31142
|
isOwnerSame: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti10 = waterResult.connectionHolders) === null || _waterResult$connecti10 === void 0 ? void 0 : _waterResult$connecti10.length) > 0 ? false : true,
|
|
30159
31143
|
mobileNumber: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti11 = waterResult.connectionHolders) === null || _waterResult$connecti11 === void 0 ? void 0 : (_waterResult$connecti12 = _waterResult$connecti11[0]) === null || _waterResult$connecti12 === void 0 ? void 0 : _waterResult$connecti12.mobileNumber,
|
|
30160
|
-
|
|
30161
|
-
|
|
30162
|
-
|
|
30163
|
-
|
|
31144
|
+
isWatsappSameAsMobile: waterResult !== null && waterResult !== void 0 && (_waterResult$connecti13 = waterResult.connectionHolders) !== null && _waterResult$connecti13 !== void 0 && (_waterResult$connecti14 = _waterResult$connecti13[0]) !== null && _waterResult$connecti14 !== void 0 && _waterResult$connecti14.mobileNumber && (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti15 = waterResult.connectionHolders) === null || _waterResult$connecti15 === void 0 ? void 0 : (_waterResult$connecti16 = _waterResult$connecti15[0]) === null || _waterResult$connecti16 === void 0 ? void 0 : _waterResult$connecti16.mobileNumber) === (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti17 = waterResult.connectionHolders) === null || _waterResult$connecti17 === void 0 ? void 0 : (_waterResult$connecti18 = _waterResult$connecti17[0]) === null || _waterResult$connecti18 === void 0 ? void 0 : _waterResult$connecti18.watsAppMobileNumber) ? true : false,
|
|
31145
|
+
name: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti19 = waterResult.connectionHolders) === null || _waterResult$connecti19 === void 0 ? void 0 : (_waterResult$connecti20 = _waterResult$connecti19[0]) === null || _waterResult$connecti20 === void 0 ? void 0 : _waterResult$connecti20.name,
|
|
31146
|
+
relationship: waterResult !== null && waterResult !== void 0 && (_waterResult$connecti21 = waterResult.connectionHolders) !== null && _waterResult$connecti21 !== void 0 && (_waterResult$connecti22 = _waterResult$connecti21[0]) !== null && _waterResult$connecti22 !== void 0 && _waterResult$connecti22.relationship ? {
|
|
31147
|
+
code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti23 = waterResult.connectionHolders) === null || _waterResult$connecti23 === void 0 ? void 0 : (_waterResult$connecti24 = _waterResult$connecti23[0]) === null || _waterResult$connecti24 === void 0 ? void 0 : _waterResult$connecti24.relationship,
|
|
31148
|
+
i18nKey: "COMMON_MASTERS_OWNERTYPE_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti25 = waterResult.connectionHolders) === null || _waterResult$connecti25 === void 0 ? void 0 : (_waterResult$connecti26 = _waterResult$connecti25[0]) === null || _waterResult$connecti26 === void 0 ? void 0 : _waterResult$connecti26.relationship)
|
|
30164
31149
|
} : null,
|
|
30165
|
-
specialCategoryType: waterResult !== null && waterResult !== void 0 && (_waterResult$
|
|
30166
|
-
code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
30167
|
-
i18nKey: "PROPERTYTAX_OWNERTYPE_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
31150
|
+
specialCategoryType: waterResult !== null && waterResult !== void 0 && (_waterResult$connecti27 = waterResult.connectionHolders) !== null && _waterResult$connecti27 !== void 0 && (_waterResult$connecti28 = _waterResult$connecti27[0]) !== null && _waterResult$connecti28 !== void 0 && _waterResult$connecti28.ownerType ? {
|
|
31151
|
+
code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti29 = waterResult.connectionHolders) === null || _waterResult$connecti29 === void 0 ? void 0 : (_waterResult$connecti30 = _waterResult$connecti29[0]) === null || _waterResult$connecti30 === void 0 ? void 0 : _waterResult$connecti30.ownerType,
|
|
31152
|
+
i18nKey: "PROPERTYTAX_OWNERTYPE_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti31 = waterResult.connectionHolders) === null || _waterResult$connecti31 === void 0 ? void 0 : (_waterResult$connecti32 = _waterResult$connecti31[0]) === null || _waterResult$connecti32 === void 0 ? void 0 : _waterResult$connecti32.ownerType)
|
|
30168
31153
|
} : ""
|
|
30169
31154
|
})] : [{
|
|
30170
31155
|
address: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$property = waterResult.property) === null || _waterResult$property === void 0 ? void 0 : (_waterResult$property2 = _waterResult$property.owners) === null || _waterResult$property2 === void 0 ? void 0 : (_waterResult$property3 = _waterResult$property2[0]) === null || _waterResult$property3 === void 0 ? void 0 : _waterResult$property3.correspondenceAddress,
|
|
@@ -30183,9 +31168,9 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
|
30183
31168
|
code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$property23 = waterResult.property) === null || _waterResult$property23 === void 0 ? void 0 : (_waterResult$property24 = _waterResult$property23.owners) === null || _waterResult$property24 === void 0 ? void 0 : (_waterResult$property25 = _waterResult$property24[0]) === null || _waterResult$property25 === void 0 ? void 0 : _waterResult$property25.relationship,
|
|
30184
31169
|
i18nKey: "COMMON_MASTERS_OWNERTYPE_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$property26 = waterResult.property) === null || _waterResult$property26 === void 0 ? void 0 : (_waterResult$property27 = _waterResult$property26.owners) === null || _waterResult$property27 === void 0 ? void 0 : (_waterResult$property28 = _waterResult$property27[0]) === null || _waterResult$property28 === void 0 ? void 0 : _waterResult$property28.relationship)
|
|
30185
31170
|
} : null,
|
|
30186
|
-
specialCategoryType: waterResult !== null && waterResult !== void 0 && (_waterResult$
|
|
30187
|
-
code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
30188
|
-
i18nKey: "PROPERTYTAX_OWNERTYPE_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
31171
|
+
specialCategoryType: waterResult !== null && waterResult !== void 0 && (_waterResult$connecti33 = waterResult.connectionHolders) !== null && _waterResult$connecti33 !== void 0 && (_waterResult$connecti34 = _waterResult$connecti33[0]) !== null && _waterResult$connecti34 !== void 0 && _waterResult$connecti34.ownerType ? {
|
|
31172
|
+
code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti35 = waterResult.connectionHolders) === null || _waterResult$connecti35 === void 0 ? void 0 : (_waterResult$connecti36 = _waterResult$connecti35[0]) === null || _waterResult$connecti36 === void 0 ? void 0 : _waterResult$connecti36.ownerType,
|
|
31173
|
+
i18nKey: "PROPERTYTAX_OWNERTYPE_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti37 = waterResult.connectionHolders) === null || _waterResult$connecti37 === void 0 ? void 0 : (_waterResult$connecti38 = _waterResult$connecti37[0]) === null || _waterResult$connecti38 === void 0 ? void 0 : _waterResult$connecti38.ownerType)
|
|
30189
31174
|
} : ""
|
|
30190
31175
|
}];
|
|
30191
31176
|
waterResult.WaterConnectionResult = {
|
|
@@ -30197,8 +31182,8 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
|
30197
31182
|
waterResult.cptId = {
|
|
30198
31183
|
id: waterResult === null || waterResult === void 0 ? void 0 : waterResult.propertyId
|
|
30199
31184
|
};
|
|
30200
|
-
waterResult.
|
|
30201
|
-
documents: waterResult === null || waterResult === void 0 ? void 0 : waterResult.documents
|
|
31185
|
+
waterResult.DocumentsRequired = {
|
|
31186
|
+
documents: (waterResult === null || waterResult === void 0 ? void 0 : waterResult.documents) || []
|
|
30202
31187
|
};
|
|
30203
31188
|
waterResult.plumberPreference = {
|
|
30204
31189
|
plumberPreference: {
|
|
@@ -30228,18 +31213,21 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
|
30228
31213
|
code: "WATER",
|
|
30229
31214
|
i18nKey: "WS_APPLICATION_TYPE_WATER"
|
|
30230
31215
|
},
|
|
30231
|
-
connectionType: waterResult !== null && waterResult !== void 0 &&
|
|
30232
|
-
code: waterResult === null || waterResult === void 0 ? void 0 :
|
|
30233
|
-
i18nKey: "WS_CONNECTION_" + (waterResult === null || waterResult === void 0 ? void 0 :
|
|
31216
|
+
connectionType: waterResult !== null && waterResult !== void 0 && waterResult.connectionType ? {
|
|
31217
|
+
code: waterResult === null || waterResult === void 0 ? void 0 : waterResult.connectionType,
|
|
31218
|
+
i18nKey: "WS_CONNECTION_" + (waterResult === null || waterResult === void 0 ? void 0 : waterResult.connectionType)
|
|
31219
|
+
} : null,
|
|
31220
|
+
waterDemandType: waterResult !== null && waterResult !== void 0 && (_waterResult$addition = waterResult.additionalDetails) !== null && _waterResult$addition !== void 0 && _waterResult$addition.waterDemandType ? {
|
|
31221
|
+
code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition2 = waterResult.additionalDetails) === null || _waterResult$addition2 === void 0 ? void 0 : _waterResult$addition2.waterDemandType,
|
|
31222
|
+
i18nKey: "WS_WATER_DEMAND_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition3 = waterResult.additionalDetails) === null || _waterResult$addition3 === void 0 ? void 0 : _waterResult$addition3.waterDemandType)
|
|
30234
31223
|
} : null,
|
|
30235
|
-
|
|
30236
|
-
|
|
30237
|
-
|
|
30238
|
-
i18nKey: "WS_APPLICANT_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition7 = waterResult.additionalDetails) === null || _waterResult$addition7 === void 0 ? void 0 : _waterResult$addition7.applicantType)
|
|
31224
|
+
applicantType: waterResult !== null && waterResult !== void 0 && (_waterResult$addition4 = waterResult.additionalDetails) !== null && _waterResult$addition4 !== void 0 && _waterResult$addition4.applicantType ? {
|
|
31225
|
+
code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition5 = waterResult.additionalDetails) === null || _waterResult$addition5 === void 0 ? void 0 : _waterResult$addition5.applicantType,
|
|
31226
|
+
i18nKey: "WS_APPLICANT_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition6 = waterResult.additionalDetails) === null || _waterResult$addition6 === void 0 ? void 0 : _waterResult$addition6.applicantType)
|
|
30239
31227
|
} : null,
|
|
30240
|
-
categoryType: waterResult !== null && waterResult !== void 0 && (_waterResult$
|
|
30241
|
-
code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
30242
|
-
i18nKey: "WS_CATEGORY_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
31228
|
+
categoryType: waterResult !== null && waterResult !== void 0 && (_waterResult$addition7 = waterResult.additionalDetails) !== null && _waterResult$addition7 !== void 0 && _waterResult$addition7.categoryType ? {
|
|
31229
|
+
code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition8 = waterResult.additionalDetails) === null || _waterResult$addition8 === void 0 ? void 0 : _waterResult$addition8.categoryType,
|
|
31230
|
+
i18nKey: "WS_CATEGORY_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition9 = waterResult.additionalDetails) === null || _waterResult$addition9 === void 0 ? void 0 : _waterResult$addition9.categoryType)
|
|
30243
31231
|
} : null,
|
|
30244
31232
|
proposedPipeSize: waterResult !== null && waterResult !== void 0 && waterResult.proposedPipeSize ? {
|
|
30245
31233
|
code: waterResult === null || waterResult === void 0 ? void 0 : waterResult.proposedPipeSize,
|
|
@@ -30249,21 +31237,21 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
|
30249
31237
|
proposedTaps: waterResult === null || waterResult === void 0 ? void 0 : waterResult.proposedTaps
|
|
30250
31238
|
}];
|
|
30251
31239
|
waterResult.bankDetails = {
|
|
30252
|
-
bankName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
30253
|
-
bankBranchName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
30254
|
-
ifscCode: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
30255
|
-
accountNumber: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
30256
|
-
confirmAccountNumber: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
30257
|
-
accountHolderName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
31240
|
+
bankName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition0 = waterResult.additionalDetails) === null || _waterResult$addition0 === void 0 ? void 0 : _waterResult$addition0.bankName) || "",
|
|
31241
|
+
bankBranchName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition1 = waterResult.additionalDetails) === null || _waterResult$addition1 === void 0 ? void 0 : _waterResult$addition1.bankBranchName) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition10 = waterResult.additionalDetails) === null || _waterResult$addition10 === void 0 ? void 0 : _waterResult$addition10.branchName) || "",
|
|
31242
|
+
ifscCode: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition11 = waterResult.additionalDetails) === null || _waterResult$addition11 === void 0 ? void 0 : _waterResult$addition11.ifscCode) || "",
|
|
31243
|
+
accountNumber: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition12 = waterResult.additionalDetails) === null || _waterResult$addition12 === void 0 ? void 0 : _waterResult$addition12.bankAccountNumber) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition13 = waterResult.additionalDetails) === null || _waterResult$addition13 === void 0 ? void 0 : _waterResult$addition13.accountNumber) || "",
|
|
31244
|
+
confirmAccountNumber: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition14 = waterResult.additionalDetails) === null || _waterResult$addition14 === void 0 ? void 0 : _waterResult$addition14.confirmAccountNumber) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition15 = waterResult.additionalDetails) === null || _waterResult$addition15 === void 0 ? void 0 : _waterResult$addition15.bankAccountNumber) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition16 = waterResult.additionalDetails) === null || _waterResult$addition16 === void 0 ? void 0 : _waterResult$addition16.accountNumber) || "",
|
|
31245
|
+
accountHolderName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition17 = waterResult.additionalDetails) === null || _waterResult$addition17 === void 0 ? void 0 : _waterResult$addition17.accountHolderName) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition18 = waterResult.additionalDetails) === null || _waterResult$addition18 === void 0 ? void 0 : _waterResult$addition18.ownerName) || ""
|
|
30258
31246
|
};
|
|
30259
31247
|
waterResult.djbEmployee = {
|
|
30260
|
-
isDjbEmployee: String(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
30261
|
-
employeeId: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
30262
|
-
designation: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
30263
|
-
dor: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$
|
|
31248
|
+
isDjbEmployee: String(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition19 = waterResult.additionalDetails) === null || _waterResult$addition19 === void 0 ? void 0 : _waterResult$addition19.isDjbEmployee) === "true",
|
|
31249
|
+
employeeId: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition20 = waterResult.additionalDetails) === null || _waterResult$addition20 === void 0 ? void 0 : _waterResult$addition20.employeeId) || "",
|
|
31250
|
+
designation: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition21 = waterResult.additionalDetails) === null || _waterResult$addition21 === void 0 ? void 0 : _waterResult$addition21.designation) || "",
|
|
31251
|
+
dor: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition22 = waterResult.additionalDetails) === null || _waterResult$addition22 === void 0 ? void 0 : _waterResult$addition22.dor) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition23 = waterResult.additionalDetails) === null || _waterResult$addition23 === void 0 ? void 0 : _waterResult$addition23.dorDate) || ""
|
|
30264
31252
|
};
|
|
30265
31253
|
} else if (sewerageresult) {
|
|
30266
|
-
var _sewerageresult$conne, _sewerageresult$conne2, _sewerageresult$conne3, _sewerageresult$conne4, _sewerageresult$conne5, _sewerageresult$conne6, _sewerageresult$conne7, _sewerageresult$conne8, _sewerageresult$conne9, _sewerageresult$conne0, _sewerageresult$conne1, _sewerageresult$conne10, _sewerageresult$conne11, _sewerageresult$conne12, _sewerageresult$conne13, _sewerageresult$conne14, _sewerageresult$conne15, _sewerageresult$conne16, _sewerageresult$conne17, _sewerageresult$conne18, _sewerageresult$conne19, _sewerageresult$conne20, _sewerageresult$conne21, _sewerageresult$conne22, _sewerageresult$conne23, _sewerageresult$conne24, _sewerageresult$conne25, _sewerageresult$conne26, _sewerageresult$prope, _sewerageresult$prope2, _sewerageresult$prope3, _sewerageresult$prope4, _sewerageresult$prope5, _sewerageresult$prope6, _sewerageresult$prope7, _sewerageresult$prope8, _sewerageresult$prope9, _sewerageresult$prope0, _sewerageresult$prope1, _sewerageresult$prope10, _sewerageresult$prope11, _sewerageresult$prope12, _sewerageresult$prope13, _sewerageresult$prope14, _sewerageresult$prope15, _sewerageresult$prope16, _sewerageresult$prope17, _sewerageresult$prope18, _sewerageresult$prope19, _sewerageresult$prope20, _sewerageresult$prope21, _sewerageresult$prope22, _sewerageresult$prope23, _sewerageresult$prope24, _sewerageresult$prope25, _sewerageresult$prope26, _sewerageresult$prope27, _sewerageresult$prope28, _sewerageresult$
|
|
31254
|
+
var _sewerageresult$conne, _sewerageresult$conne2, _sewerageresult$conne3, _sewerageresult$conne4, _sewerageresult$conne5, _sewerageresult$conne6, _sewerageresult$conne7, _sewerageresult$conne8, _sewerageresult$conne9, _sewerageresult$conne0, _sewerageresult$conne1, _sewerageresult$conne10, _sewerageresult$conne11, _sewerageresult$conne12, _sewerageresult$conne13, _sewerageresult$conne14, _sewerageresult$conne15, _sewerageresult$conne16, _sewerageresult$conne17, _sewerageresult$conne18, _sewerageresult$conne19, _sewerageresult$conne20, _sewerageresult$conne21, _sewerageresult$conne22, _sewerageresult$conne23, _sewerageresult$conne24, _sewerageresult$conne25, _sewerageresult$conne26, _sewerageresult$conne27, _sewerageresult$conne28, _sewerageresult$conne29, _sewerageresult$conne30, _sewerageresult$conne31, _sewerageresult$conne32, _sewerageresult$prope, _sewerageresult$prope2, _sewerageresult$prope3, _sewerageresult$prope4, _sewerageresult$prope5, _sewerageresult$prope6, _sewerageresult$prope7, _sewerageresult$prope8, _sewerageresult$prope9, _sewerageresult$prope0, _sewerageresult$prope1, _sewerageresult$prope10, _sewerageresult$prope11, _sewerageresult$prope12, _sewerageresult$prope13, _sewerageresult$prope14, _sewerageresult$prope15, _sewerageresult$prope16, _sewerageresult$prope17, _sewerageresult$prope18, _sewerageresult$prope19, _sewerageresult$prope20, _sewerageresult$prope21, _sewerageresult$prope22, _sewerageresult$prope23, _sewerageresult$prope24, _sewerageresult$prope25, _sewerageresult$prope26, _sewerageresult$prope27, _sewerageresult$prope28, _sewerageresult$conne33, _sewerageresult$conne34, _sewerageresult$conne35, _sewerageresult$conne36, _sewerageresult$conne37, _sewerageresult$conne38, _sewerageresult$addit, _sewerageresult$addit2, _sewerageresult$addit3, _sewerageresult$addit4, _sewerageresult$addit5, _sewerageresult$addit6, _sewerageresult$addit7, _sewerageresult$addit8, _sewerageresult$addit9, _sewerageresult$addit0, _sewerageresult$addit1, _sewerageresult$addit10, _sewerageresult$addit11, _sewerageresult$addit12, _sewerageresult$addit13, _sewerageresult$addit14, _sewerageresult$addit15, _sewerageresult$addit16, _sewerageresult$addit17, _sewerageresult$addit18, _sewerageresult$addit19, _sewerageresult$addit20, _sewerageresult$addit21, _sewerageresult$addit22, _sewerageresult$addit23;
|
|
30267
31255
|
sewerageresult.ConnectionHolderDetails = sewerageresult !== null && sewerageresult !== void 0 && sewerageresult.connectionHolders ? [_extends({}, sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne = sewerageresult.connectionHolders) === null || _sewerageresult$conne === void 0 ? void 0 : _sewerageresult$conne[0], {
|
|
30268
31256
|
address: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne2 = sewerageresult.connectionHolders) === null || _sewerageresult$conne2 === void 0 ? void 0 : (_sewerageresult$conne3 = _sewerageresult$conne2[0]) === null || _sewerageresult$conne3 === void 0 ? void 0 : _sewerageresult$conne3.correspondenceAddress,
|
|
30269
31257
|
documentId: "",
|
|
@@ -30276,14 +31264,15 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
|
30276
31264
|
guardian: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne0 = sewerageresult.connectionHolders) === null || _sewerageresult$conne0 === void 0 ? void 0 : (_sewerageresult$conne1 = _sewerageresult$conne0[0]) === null || _sewerageresult$conne1 === void 0 ? void 0 : _sewerageresult$conne1.fatherOrHusbandName,
|
|
30277
31265
|
isOwnerSame: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne10 = sewerageresult.connectionHolders) === null || _sewerageresult$conne10 === void 0 ? void 0 : _sewerageresult$conne10.length) > 0 ? false : true,
|
|
30278
31266
|
mobileNumber: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne11 = sewerageresult.connectionHolders) === null || _sewerageresult$conne11 === void 0 ? void 0 : (_sewerageresult$conne12 = _sewerageresult$conne11[0]) === null || _sewerageresult$conne12 === void 0 ? void 0 : _sewerageresult$conne12.mobileNumber,
|
|
30279
|
-
|
|
30280
|
-
|
|
30281
|
-
|
|
30282
|
-
|
|
31267
|
+
isWatsappSameAsMobile: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$conne13 = sewerageresult.connectionHolders) !== null && _sewerageresult$conne13 !== void 0 && (_sewerageresult$conne14 = _sewerageresult$conne13[0]) !== null && _sewerageresult$conne14 !== void 0 && _sewerageresult$conne14.mobileNumber && (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne15 = sewerageresult.connectionHolders) === null || _sewerageresult$conne15 === void 0 ? void 0 : (_sewerageresult$conne16 = _sewerageresult$conne15[0]) === null || _sewerageresult$conne16 === void 0 ? void 0 : _sewerageresult$conne16.mobileNumber) === (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne17 = sewerageresult.connectionHolders) === null || _sewerageresult$conne17 === void 0 ? void 0 : (_sewerageresult$conne18 = _sewerageresult$conne17[0]) === null || _sewerageresult$conne18 === void 0 ? void 0 : _sewerageresult$conne18.watsAppMobileNumber) ? true : false,
|
|
31268
|
+
name: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne19 = sewerageresult.connectionHolders) === null || _sewerageresult$conne19 === void 0 ? void 0 : (_sewerageresult$conne20 = _sewerageresult$conne19[0]) === null || _sewerageresult$conne20 === void 0 ? void 0 : _sewerageresult$conne20.name,
|
|
31269
|
+
relationship: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$conne21 = sewerageresult.connectionHolders) !== null && _sewerageresult$conne21 !== void 0 && (_sewerageresult$conne22 = _sewerageresult$conne21[0]) !== null && _sewerageresult$conne22 !== void 0 && _sewerageresult$conne22.relationship ? {
|
|
31270
|
+
code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne23 = sewerageresult.connectionHolders) === null || _sewerageresult$conne23 === void 0 ? void 0 : (_sewerageresult$conne24 = _sewerageresult$conne23[0]) === null || _sewerageresult$conne24 === void 0 ? void 0 : _sewerageresult$conne24.relationship,
|
|
31271
|
+
i18nKey: "COMMON_MASTERS_OWNERTYPE_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne25 = sewerageresult.connectionHolders) === null || _sewerageresult$conne25 === void 0 ? void 0 : (_sewerageresult$conne26 = _sewerageresult$conne25[0]) === null || _sewerageresult$conne26 === void 0 ? void 0 : _sewerageresult$conne26.relationship)
|
|
30283
31272
|
} : null,
|
|
30284
|
-
specialCategoryType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$
|
|
30285
|
-
code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
30286
|
-
i18nKey: "PROPERTYTAX_OWNERTYPE_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
31273
|
+
specialCategoryType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$conne27 = sewerageresult.connectionHolders) !== null && _sewerageresult$conne27 !== void 0 && (_sewerageresult$conne28 = _sewerageresult$conne27[0]) !== null && _sewerageresult$conne28 !== void 0 && _sewerageresult$conne28.ownerType ? {
|
|
31274
|
+
code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne29 = sewerageresult.connectionHolders) === null || _sewerageresult$conne29 === void 0 ? void 0 : (_sewerageresult$conne30 = _sewerageresult$conne29[0]) === null || _sewerageresult$conne30 === void 0 ? void 0 : _sewerageresult$conne30.ownerType,
|
|
31275
|
+
i18nKey: "PROPERTYTAX_OWNERTYPE_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne31 = sewerageresult.connectionHolders) === null || _sewerageresult$conne31 === void 0 ? void 0 : (_sewerageresult$conne32 = _sewerageresult$conne31[0]) === null || _sewerageresult$conne32 === void 0 ? void 0 : _sewerageresult$conne32.ownerType)
|
|
30287
31276
|
} : ""
|
|
30288
31277
|
})] : [{
|
|
30289
31278
|
address: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$prope = sewerageresult.property) === null || _sewerageresult$prope === void 0 ? void 0 : (_sewerageresult$prope2 = _sewerageresult$prope.owners) === null || _sewerageresult$prope2 === void 0 ? void 0 : (_sewerageresult$prope3 = _sewerageresult$prope2[0]) === null || _sewerageresult$prope3 === void 0 ? void 0 : _sewerageresult$prope3.correspondenceAddress,
|
|
@@ -30302,9 +31291,9 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
|
30302
31291
|
code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$prope23 = sewerageresult.property) === null || _sewerageresult$prope23 === void 0 ? void 0 : (_sewerageresult$prope24 = _sewerageresult$prope23.owners) === null || _sewerageresult$prope24 === void 0 ? void 0 : (_sewerageresult$prope25 = _sewerageresult$prope24[0]) === null || _sewerageresult$prope25 === void 0 ? void 0 : _sewerageresult$prope25.relationship,
|
|
30303
31292
|
i18nKey: "COMMON_MASTERS_OWNERTYPE_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$prope26 = sewerageresult.property) === null || _sewerageresult$prope26 === void 0 ? void 0 : (_sewerageresult$prope27 = _sewerageresult$prope26.owners) === null || _sewerageresult$prope27 === void 0 ? void 0 : (_sewerageresult$prope28 = _sewerageresult$prope27[0]) === null || _sewerageresult$prope28 === void 0 ? void 0 : _sewerageresult$prope28.relationship)
|
|
30304
31293
|
} : null,
|
|
30305
|
-
specialCategoryType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$
|
|
30306
|
-
code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
30307
|
-
i18nKey: "PROPERTYTAX_OWNERTYPE_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
31294
|
+
specialCategoryType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$conne33 = sewerageresult.connectionHolders) !== null && _sewerageresult$conne33 !== void 0 && (_sewerageresult$conne34 = _sewerageresult$conne33[0]) !== null && _sewerageresult$conne34 !== void 0 && _sewerageresult$conne34.ownerType ? {
|
|
31295
|
+
code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne35 = sewerageresult.connectionHolders) === null || _sewerageresult$conne35 === void 0 ? void 0 : (_sewerageresult$conne36 = _sewerageresult$conne35[0]) === null || _sewerageresult$conne36 === void 0 ? void 0 : _sewerageresult$conne36.ownerType,
|
|
31296
|
+
i18nKey: "PROPERTYTAX_OWNERTYPE_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne37 = sewerageresult.connectionHolders) === null || _sewerageresult$conne37 === void 0 ? void 0 : (_sewerageresult$conne38 = _sewerageresult$conne37[0]) === null || _sewerageresult$conne38 === void 0 ? void 0 : _sewerageresult$conne38.ownerType)
|
|
30308
31297
|
} : ""
|
|
30309
31298
|
}];
|
|
30310
31299
|
sewerageresult.SewerageConnectionResult = {
|
|
@@ -30316,8 +31305,8 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
|
30316
31305
|
sewerageresult.cptId = {
|
|
30317
31306
|
id: sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.propertyId
|
|
30318
31307
|
};
|
|
30319
|
-
sewerageresult.
|
|
30320
|
-
documents:
|
|
31308
|
+
sewerageresult.DocumentsRequired = {
|
|
31309
|
+
documents: (sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.documents) || []
|
|
30321
31310
|
};
|
|
30322
31311
|
sewerageresult.plumberPreference = {
|
|
30323
31312
|
plumberPreference: {
|
|
@@ -30343,41 +31332,47 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
|
30343
31332
|
code: "SEWERAGE",
|
|
30344
31333
|
i18nKey: "WS_APPLICATION_TYPE_SEWERAGE"
|
|
30345
31334
|
},
|
|
30346
|
-
connectionType: sewerageresult !== null && sewerageresult !== void 0 &&
|
|
30347
|
-
code: sewerageresult === null || sewerageresult === void 0 ? void 0 :
|
|
30348
|
-
i18nKey: "WS_CONNECTION_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 :
|
|
31335
|
+
connectionType: sewerageresult !== null && sewerageresult !== void 0 && sewerageresult.connectionType ? {
|
|
31336
|
+
code: sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.connectionType,
|
|
31337
|
+
i18nKey: "WS_CONNECTION_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.connectionType)
|
|
31338
|
+
} : {
|
|
31339
|
+
code: "Non Metered",
|
|
31340
|
+
i18nKey: "WS_CONNECTION_Non Metered"
|
|
31341
|
+
},
|
|
31342
|
+
waterDemandType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$addit = sewerageresult.additionalDetails) !== null && _sewerageresult$addit !== void 0 && _sewerageresult$addit.waterDemandType ? {
|
|
31343
|
+
code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit2 = sewerageresult.additionalDetails) === null || _sewerageresult$addit2 === void 0 ? void 0 : _sewerageresult$addit2.waterDemandType,
|
|
31344
|
+
i18nKey: "WS_WATER_DEMAND_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit3 = sewerageresult.additionalDetails) === null || _sewerageresult$addit3 === void 0 ? void 0 : _sewerageresult$addit3.waterDemandType)
|
|
30349
31345
|
} : null,
|
|
30350
|
-
|
|
30351
|
-
|
|
30352
|
-
|
|
30353
|
-
i18nKey: "WS_APPLICANT_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit7 = sewerageresult.additionalDetails) === null || _sewerageresult$addit7 === void 0 ? void 0 : _sewerageresult$addit7.applicantType)
|
|
31346
|
+
applicantType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$addit4 = sewerageresult.additionalDetails) !== null && _sewerageresult$addit4 !== void 0 && _sewerageresult$addit4.applicantType ? {
|
|
31347
|
+
code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit5 = sewerageresult.additionalDetails) === null || _sewerageresult$addit5 === void 0 ? void 0 : _sewerageresult$addit5.applicantType,
|
|
31348
|
+
i18nKey: "WS_APPLICANT_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit6 = sewerageresult.additionalDetails) === null || _sewerageresult$addit6 === void 0 ? void 0 : _sewerageresult$addit6.applicantType)
|
|
30354
31349
|
} : null,
|
|
30355
|
-
categoryType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$
|
|
30356
|
-
code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
30357
|
-
i18nKey: "WS_CATEGORY_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
31350
|
+
categoryType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$addit7 = sewerageresult.additionalDetails) !== null && _sewerageresult$addit7 !== void 0 && _sewerageresult$addit7.categoryType ? {
|
|
31351
|
+
code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit8 = sewerageresult.additionalDetails) === null || _sewerageresult$addit8 === void 0 ? void 0 : _sewerageresult$addit8.categoryType,
|
|
31352
|
+
i18nKey: "WS_CATEGORY_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit9 = sewerageresult.additionalDetails) === null || _sewerageresult$addit9 === void 0 ? void 0 : _sewerageresult$addit9.categoryType)
|
|
30358
31353
|
} : null,
|
|
30359
31354
|
proposedToilets: sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.proposedToilets,
|
|
30360
31355
|
proposedWaterClosets: sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.proposedWaterClosets
|
|
30361
31356
|
}];
|
|
30362
31357
|
sewerageresult.bankDetails = {
|
|
30363
|
-
bankName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
30364
|
-
bankBranchName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
30365
|
-
ifscCode: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
30366
|
-
accountNumber: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
30367
|
-
confirmAccountNumber: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
30368
|
-
accountHolderName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
31358
|
+
bankName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit0 = sewerageresult.additionalDetails) === null || _sewerageresult$addit0 === void 0 ? void 0 : _sewerageresult$addit0.bankName) || "",
|
|
31359
|
+
bankBranchName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit1 = sewerageresult.additionalDetails) === null || _sewerageresult$addit1 === void 0 ? void 0 : _sewerageresult$addit1.bankBranchName) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit10 = sewerageresult.additionalDetails) === null || _sewerageresult$addit10 === void 0 ? void 0 : _sewerageresult$addit10.branchName) || "",
|
|
31360
|
+
ifscCode: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit11 = sewerageresult.additionalDetails) === null || _sewerageresult$addit11 === void 0 ? void 0 : _sewerageresult$addit11.ifscCode) || "",
|
|
31361
|
+
accountNumber: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit12 = sewerageresult.additionalDetails) === null || _sewerageresult$addit12 === void 0 ? void 0 : _sewerageresult$addit12.bankAccountNumber) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit13 = sewerageresult.additionalDetails) === null || _sewerageresult$addit13 === void 0 ? void 0 : _sewerageresult$addit13.accountNumber) || "",
|
|
31362
|
+
confirmAccountNumber: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit14 = sewerageresult.additionalDetails) === null || _sewerageresult$addit14 === void 0 ? void 0 : _sewerageresult$addit14.confirmAccountNumber) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit15 = sewerageresult.additionalDetails) === null || _sewerageresult$addit15 === void 0 ? void 0 : _sewerageresult$addit15.bankAccountNumber) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit16 = sewerageresult.additionalDetails) === null || _sewerageresult$addit16 === void 0 ? void 0 : _sewerageresult$addit16.accountNumber) || "",
|
|
31363
|
+
accountHolderName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit17 = sewerageresult.additionalDetails) === null || _sewerageresult$addit17 === void 0 ? void 0 : _sewerageresult$addit17.accountHolderName) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit18 = sewerageresult.additionalDetails) === null || _sewerageresult$addit18 === void 0 ? void 0 : _sewerageresult$addit18.ownerName) || ""
|
|
30369
31364
|
};
|
|
30370
31365
|
sewerageresult.djbEmployee = {
|
|
30371
|
-
isDjbEmployee: String(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
30372
|
-
employeeId: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
30373
|
-
designation: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
30374
|
-
dor: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$
|
|
31366
|
+
isDjbEmployee: String(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit19 = sewerageresult.additionalDetails) === null || _sewerageresult$addit19 === void 0 ? void 0 : _sewerageresult$addit19.isDjbEmployee) === "true",
|
|
31367
|
+
employeeId: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit20 = sewerageresult.additionalDetails) === null || _sewerageresult$addit20 === void 0 ? void 0 : _sewerageresult$addit20.employeeId) || "",
|
|
31368
|
+
designation: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit21 = sewerageresult.additionalDetails) === null || _sewerageresult$addit21 === void 0 ? void 0 : _sewerageresult$addit21.designation) || "",
|
|
31369
|
+
dor: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit22 = sewerageresult.additionalDetails) === null || _sewerageresult$addit22 === void 0 ? void 0 : _sewerageresult$addit22.dor) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit23 = sewerageresult.additionalDetails) === null || _sewerageresult$addit23 === void 0 ? void 0 : _sewerageresult$addit23.dorDate) || ""
|
|
30375
31370
|
};
|
|
30376
31371
|
}
|
|
30377
31372
|
if (waterResult) return _extends({}, waterResult);else return _extends({}, sewerageresult);
|
|
30378
31373
|
};
|
|
30379
31374
|
const EditApplication = _ref => {
|
|
30380
|
-
var _newConfig, _Digit, _Digit$ComponentRegis
|
|
31375
|
+
var _newConfig, _Digit, _Digit$ComponentRegis;
|
|
30381
31376
|
const queryClient = reactQuery.useQueryClient();
|
|
30382
31377
|
let match = reactRouterDom.useRouteMatch();
|
|
30383
31378
|
const _useTranslation = reactI18next.useTranslation(),
|
|
@@ -30385,17 +31380,22 @@ const EditApplication = _ref => {
|
|
|
30385
31380
|
let _useParams = reactRouterDom.useParams(),
|
|
30386
31381
|
tenantId = _useParams.tenantId;
|
|
30387
31382
|
const _useLocation = reactRouterDom.useLocation(),
|
|
30388
|
-
pathname = _useLocation.pathname,
|
|
30389
31383
|
state = _useLocation.state;
|
|
30390
31384
|
const history = reactRouterDom.useHistory();
|
|
30391
31385
|
let applicationNumber = (state === null || state === void 0 ? void 0 : state.id) || sessionStorage.getItem("ApplicationNoState");
|
|
30392
31386
|
let config = [];
|
|
30393
31387
|
let waterapplication = {};
|
|
30394
31388
|
let sewerageapplication = {};
|
|
30395
|
-
const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("
|
|
31389
|
+
const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("WS_EDIT_APPLICATION_V5", {}),
|
|
30396
31390
|
params = _Digit$Hooks$useSessi[0],
|
|
30397
31391
|
setParams = _Digit$Hooks$useSessi[1],
|
|
30398
31392
|
clearParams = _Digit$Hooks$useSessi[2];
|
|
31393
|
+
let initialConfig = [];
|
|
31394
|
+
newConfig === null || newConfig === void 0 ? void 0 : newConfig.forEach(obj => {
|
|
31395
|
+
if (!obj.hideInCitizen) {
|
|
31396
|
+
initialConfig = initialConfig.concat(obj.body.filter(a => !a.hideInCitizen));
|
|
31397
|
+
}
|
|
31398
|
+
});
|
|
30399
31399
|
const stateId = Digit.ULBService.getStateId();
|
|
30400
31400
|
let _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSConfigMDMS.getFormConfig(stateId, {}),
|
|
30401
31401
|
newConfig$1 = _Digit$Hooks$ws$useWS.data,
|
|
@@ -30458,35 +31458,17 @@ const EditApplication = _ref => {
|
|
|
30458
31458
|
setParams(_extends({}, params, EditDetails));
|
|
30459
31459
|
}
|
|
30460
31460
|
}, [Waterresult, Sewarageresult]);
|
|
30461
|
-
const goNext = skipStep => {
|
|
30462
|
-
var _params$cptId, _params$cpt, _params$cpt$details, _params$cpt2, _params$cpt2$details;
|
|
30463
|
-
const currentPath = pathname.split("/").pop();
|
|
30464
|
-
let _config$find = config.find(routeObj => routeObj.route === currentPath),
|
|
30465
|
-
nextStep = _config$find.nextStep;
|
|
30466
|
-
let routeObject = config.find(routeObj => routeObj.route === currentPath && routeObj);
|
|
30467
|
-
if (typeof nextStep == "object" && nextStep != null) {
|
|
30468
|
-
if (nextStep[sessionStorage.getItem("KnowProperty")] && (nextStep[sessionStorage.getItem("KnowProperty")] === "search-property" || nextStep[sessionStorage.getItem("KnowProperty")] === "create-property")) {
|
|
30469
|
-
nextStep = "" + nextStep[sessionStorage.getItem("KnowProperty")];
|
|
30470
|
-
}
|
|
30471
|
-
}
|
|
30472
|
-
if (routeObject[sessionStorage.getItem("serviceName")]) nextStep = routeObject[sessionStorage.getItem("serviceName")];
|
|
30473
|
-
if ((params !== null && params !== void 0 && (_params$cptId = params.cptId) !== null && _params$cptId !== void 0 && _params$cptId.id || params !== null && params !== void 0 && (_params$cpt = params.cpt) !== null && _params$cpt !== void 0 && (_params$cpt$details = _params$cpt.details) !== null && _params$cpt$details !== void 0 && _params$cpt$details.propertyId || isModifyEdit && params !== null && params !== void 0 && (_params$cpt2 = params.cpt) !== null && _params$cpt2 !== void 0 && (_params$cpt2$details = _params$cpt2.details) !== null && _params$cpt2$details !== void 0 && _params$cpt2$details.propertyId) && nextStep === "know-your-property") {
|
|
30474
|
-
nextStep = "property-details";
|
|
30475
|
-
}
|
|
30476
|
-
if (nextStep === "docsrequired" && sessionStorage.getItem("changePropertySelected") === "yes") {
|
|
30477
|
-
nextStep = "property-details";
|
|
30478
|
-
}
|
|
30479
|
-
let redirectWithHistory = history.push;
|
|
30480
|
-
if (nextStep === null) {
|
|
30481
|
-
return redirectWithHistory(getPath$3(match.path, match.params) + "/check");
|
|
30482
|
-
}
|
|
30483
|
-
redirectWithHistory(getPath$3(match.path, match.params) + "/" + nextStep);
|
|
30484
|
-
};
|
|
30485
31461
|
const onSuccess = () => {
|
|
30486
31462
|
queryClient.invalidateQueries("WS_CREATE");
|
|
30487
31463
|
};
|
|
30488
31464
|
const createApplication = function () {
|
|
30489
31465
|
try {
|
|
31466
|
+
var _params$DocumentsRequ;
|
|
31467
|
+
if (params !== null && params !== void 0 && (_params$DocumentsRequ = params.DocumentsRequired) !== null && _params$DocumentsRequ !== void 0 && _params$DocumentsRequ.documents) {
|
|
31468
|
+
params.documents = {
|
|
31469
|
+
documents: params.DocumentsRequired.documents
|
|
31470
|
+
};
|
|
31471
|
+
}
|
|
30490
31472
|
history.push(getPath$3(match.path, match.params) + "/acknowledgement");
|
|
30491
31473
|
return Promise.resolve();
|
|
30492
31474
|
} catch (e) {
|
|
@@ -30497,7 +31479,6 @@ const EditApplication = _ref => {
|
|
|
30497
31479
|
if (isFromCreateApi) setParams(data);else if (key === "") setParams(_extends({}, data));else setParams(_extends({}, params, {
|
|
30498
31480
|
[key]: _extends({}, params[key], data)
|
|
30499
31481
|
}));
|
|
30500
|
-
goNext();
|
|
30501
31482
|
};
|
|
30502
31483
|
const handleSkip = () => {};
|
|
30503
31484
|
newConfig$1 = newConfig;
|
|
@@ -30506,21 +31487,62 @@ const EditApplication = _ref => {
|
|
|
30506
31487
|
config = config.concat(obj.body.filter(a => !a.hideInCitizen));
|
|
30507
31488
|
}
|
|
30508
31489
|
});
|
|
30509
|
-
config.
|
|
30510
|
-
if (
|
|
31490
|
+
const startIndex = config.findIndex(c => c.route === "connection-details");
|
|
31491
|
+
if (startIndex !== -1) {
|
|
31492
|
+
config = config.slice(startIndex);
|
|
31493
|
+
}
|
|
31494
|
+
config = config.filter(c => c.route !== "docsrequired" && c.route !== "check");
|
|
31495
|
+
config.forEach(c => {
|
|
31496
|
+
if (c.component === "WSDocumentDetails") {
|
|
31497
|
+
c.component = "WSDocumentsEmployee";
|
|
31498
|
+
c.key = "DocumentsRequired";
|
|
31499
|
+
}
|
|
31500
|
+
});
|
|
31501
|
+
config = config.map((routeObj, index) => {
|
|
31502
|
+
var _routeObj$texts;
|
|
31503
|
+
return _extends({}, routeObj, {
|
|
31504
|
+
timeLine: [{
|
|
31505
|
+
currentStep: index + 1,
|
|
31506
|
+
actions: ((_routeObj$texts = routeObj.texts) === null || _routeObj$texts === void 0 ? void 0 : _routeObj$texts.header) || routeObj.route
|
|
31507
|
+
}]
|
|
31508
|
+
});
|
|
31509
|
+
});
|
|
31510
|
+
if ((Waterresult && Object.keys(Waterresult).length > 0 || !Sewarageresult) && Waterresult !== null && Waterresult !== void 0 && Waterresult.isLoading || Sewarageresult !== null && Sewarageresult !== void 0 && Sewarageresult.isLoading || configLoading || Object.keys(params).length === 0) {
|
|
30511
31511
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
30512
31512
|
}
|
|
30513
|
-
const
|
|
30514
|
-
|
|
30515
|
-
|
|
31513
|
+
const Acknowledgement = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent("WSAcknowledgement");
|
|
31514
|
+
return /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
31515
|
+
path: getPath$3(match.path, match.params) + "/acknowledgement"
|
|
31516
|
+
}, /*#__PURE__*/React__default.createElement(Acknowledgement, {
|
|
31517
|
+
data: params,
|
|
31518
|
+
onSuccess: onSuccess,
|
|
31519
|
+
clearParams: clearParams
|
|
31520
|
+
})), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, null, /*#__PURE__*/React__default.createElement("div", {
|
|
31521
|
+
className: "citizen-single-screen-edit"
|
|
31522
|
+
}, /*#__PURE__*/React__default.createElement("style", null, "\n .citizen-single-screen-edit .timeline-container { display: none !important; }\n .citizen-single-screen-edit .form-step-footer { display: none !important; }\n "), /*#__PURE__*/React__default.createElement("div", {
|
|
31523
|
+
style: {
|
|
31524
|
+
display: "flex",
|
|
31525
|
+
flexDirection: "row",
|
|
31526
|
+
gap: "24px",
|
|
31527
|
+
alignItems: "flex-start",
|
|
31528
|
+
marginBottom: "2rem"
|
|
31529
|
+
}
|
|
31530
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
31531
|
+
style: {
|
|
31532
|
+
flex: "1",
|
|
31533
|
+
display: "flex",
|
|
31534
|
+
flexDirection: "column",
|
|
31535
|
+
gap: "24px"
|
|
31536
|
+
}
|
|
31537
|
+
}, config.map((routeObj, index) => {
|
|
30516
31538
|
const component = routeObj.component,
|
|
30517
31539
|
texts = routeObj.texts,
|
|
30518
31540
|
inputs = routeObj.inputs,
|
|
30519
31541
|
key = routeObj.key,
|
|
30520
31542
|
isSkipEnabled = routeObj.isSkipEnabled;
|
|
30521
31543
|
const Component = typeof component === "string" ? Digit.ComponentRegistryService.getComponent(component) : component;
|
|
30522
|
-
return /*#__PURE__*/React__default.createElement(
|
|
30523
|
-
|
|
31544
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
31545
|
+
id: "step-" + index,
|
|
30524
31546
|
key: index
|
|
30525
31547
|
}, /*#__PURE__*/React__default.createElement(Component, {
|
|
30526
31548
|
config: {
|
|
@@ -30533,22 +31555,16 @@ const EditApplication = _ref => {
|
|
|
30533
31555
|
onSkip: handleSkip,
|
|
30534
31556
|
t: t,
|
|
30535
31557
|
formData: params,
|
|
30536
|
-
userType: "
|
|
31558
|
+
userType: "employee"
|
|
30537
31559
|
}));
|
|
30538
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
30539
|
-
|
|
30540
|
-
|
|
30541
|
-
|
|
30542
|
-
|
|
30543
|
-
|
|
30544
|
-
|
|
30545
|
-
}
|
|
30546
|
-
data: params,
|
|
30547
|
-
onSuccess: onSuccess,
|
|
30548
|
-
clearParams: clearParams
|
|
30549
|
-
})), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Redirect, {
|
|
30550
|
-
to: getPath$3(match.path, match.params) + "/" + config.indexRoute
|
|
30551
|
-
})));
|
|
31560
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
31561
|
+
style: {
|
|
31562
|
+
marginTop: "24px"
|
|
31563
|
+
}
|
|
31564
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
31565
|
+
label: t("SUBMIT"),
|
|
31566
|
+
onSubmit: createApplication
|
|
31567
|
+
})))))));
|
|
30552
31568
|
};
|
|
30553
31569
|
|
|
30554
31570
|
const getPath$4 = (path, params) => {
|
|
@@ -38583,12 +39599,17 @@ const ActionModal$5 = _ref => {
|
|
|
38583
39599
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat7 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat7 !== void 0 && _parsedAdhocRebateDat7.adhocRebate) applicationData.additionalDetails.adhocRebate = parseInt(parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat8 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat8 === void 0 ? void 0 : _parsedAdhocRebateDat8.adhocRebate) || "";
|
|
38584
39600
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat9 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat9 !== void 0 && _parsedAdhocRebateDat9.adhocRebateComment) applicationData.additionalDetails.adhocRebateComment = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat0 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat0 === void 0 ? void 0 : _parsedAdhocRebateDat0.adhocRebateComment) || "";
|
|
38585
39601
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat1 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat1 !== void 0 && _parsedAdhocRebateDat1.adhocRebateReason) applicationData.additionalDetails.adhocRebateReason = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat10 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat10 === void 0 ? void 0 : _parsedAdhocRebateDat10.adhocRebateReason) || "";
|
|
38586
|
-
const
|
|
38587
|
-
if (
|
|
39602
|
+
const inspectionInformationData = sessionStorage.getItem("Digit.INSPECTION_INFORMATION_DATA");
|
|
39603
|
+
if (inspectionInformationData) {
|
|
38588
39604
|
try {
|
|
38589
|
-
|
|
39605
|
+
const parsedInspectionData = JSON.parse(inspectionInformationData);
|
|
39606
|
+
if (parsedInspectionData !== null && parsedInspectionData !== void 0 && parsedInspectionData.inspectionDate) {
|
|
39607
|
+
const dateVal = parsedInspectionData.inspectionDate;
|
|
39608
|
+
parsedInspectionData.inspectionDate = typeof dateVal === 'string' ? new Date(dateVal).getTime() : dateVal;
|
|
39609
|
+
}
|
|
39610
|
+
applicationData.inspectionInformation = parsedInspectionData;
|
|
38590
39611
|
} catch (e) {
|
|
38591
|
-
console.error("Error parsing
|
|
39612
|
+
console.error("Error parsing inspection information data", e);
|
|
38592
39613
|
}
|
|
38593
39614
|
}
|
|
38594
39615
|
((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.serviceType) == "WATER" ? submitAction({
|
|
@@ -41512,7 +42533,7 @@ const SubOccupancyTable = _ref => {
|
|
|
41512
42533
|
})));
|
|
41513
42534
|
};
|
|
41514
42535
|
|
|
41515
|
-
const Reason
|
|
42536
|
+
const Reason = _ref => {
|
|
41516
42537
|
let headComment = _ref.headComment,
|
|
41517
42538
|
otherComment = _ref.otherComment;
|
|
41518
42539
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -41537,7 +42558,7 @@ const TLCaption = _ref => {
|
|
|
41537
42558
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TelePhone, {
|
|
41538
42559
|
mobile: data.mobileNumber,
|
|
41539
42560
|
privacy: privacy
|
|
41540
|
-
}), /*#__PURE__*/React__default.createElement("p", null, "\xA0\xA0\xA0\xA0")), data.source && /*#__PURE__*/React__default.createElement("p", null, t("ES_APPLICATION_DETAILS_APPLICATION_CHANNEL_" + data.source.toUpperCase())), data.comment && /*#__PURE__*/React__default.createElement(Reason
|
|
42561
|
+
}), /*#__PURE__*/React__default.createElement("p", null, "\xA0\xA0\xA0\xA0")), data.source && /*#__PURE__*/React__default.createElement("p", null, t("ES_APPLICATION_DETAILS_APPLICATION_CHANNEL_" + data.source.toUpperCase())), data.comment && /*#__PURE__*/React__default.createElement(Reason, {
|
|
41541
42562
|
otherComment: data === null || data === void 0 ? void 0 : data.otherComment,
|
|
41542
42563
|
headComment: data === null || data === void 0 ? void 0 : data.comment
|
|
41543
42564
|
}), data !== null && data !== void 0 && data.wfComment ? /*#__PURE__*/React__default.createElement("div", null, data === null || data === void 0 ? void 0 : (_data$wfComment = data.wfComment) === null || _data$wfComment === void 0 ? void 0 : _data$wfComment.map((e, index) => /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -41749,394 +42770,6 @@ const WSAdditonalDetails = _ref => {
|
|
|
41749
42770
|
}))))));
|
|
41750
42771
|
};
|
|
41751
42772
|
|
|
41752
|
-
const Penality_menu = [{
|
|
41753
|
-
title: "PT_PENDING_DUES_FROM_EARLIER",
|
|
41754
|
-
value: "Pending dues from earlier"
|
|
41755
|
-
}, {
|
|
41756
|
-
title: "PT_MISCALCULATION_OF_EARLIER_ASSESSMENT",
|
|
41757
|
-
value: "Miscalculation of earlier Assessment"
|
|
41758
|
-
}, {
|
|
41759
|
-
title: "PT_ONE_TIME_PENALITY",
|
|
41760
|
-
value: "One time penality"
|
|
41761
|
-
}, {
|
|
41762
|
-
title: "PT_OTHERS",
|
|
41763
|
-
value: "Others"
|
|
41764
|
-
}];
|
|
41765
|
-
const Rebate_menu = [{
|
|
41766
|
-
title: "PT_ADVANCED_PAID_BY_CITIZEN_EARLIER",
|
|
41767
|
-
value: "Advanced Paid By Citizen Earlier"
|
|
41768
|
-
}, {
|
|
41769
|
-
title: "PT_REBATE_PROVIDED_BY_COMMISSIONER_EO",
|
|
41770
|
-
value: "Rebate provided by commissioner/EO"
|
|
41771
|
-
}, {
|
|
41772
|
-
title: "PT_ADDITIONAL_AMOUNT_CHARGED_FROM_THE_CITIZEN",
|
|
41773
|
-
value: "Additional amount charged from the citizen"
|
|
41774
|
-
}, {
|
|
41775
|
-
title: "PT_OTHERS",
|
|
41776
|
-
value: "Others"
|
|
41777
|
-
}];
|
|
41778
|
-
const WSFeeEstimation = _ref => {
|
|
41779
|
-
var _wsAdditionalDetails$, _wsAdditionalDetails$18, _fields$adhocPenaltyR, _fields$adhocRebateRe;
|
|
41780
|
-
let wsAdditionalDetails = _ref.wsAdditionalDetails;
|
|
41781
|
-
const _useTranslation = reactI18next.useTranslation(),
|
|
41782
|
-
t = _useTranslation.t;
|
|
41783
|
-
const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("ADHOC_ADD_REBATE_DATA", {}),
|
|
41784
|
-
sessionFormData = _Digit$Hooks$useSessi[0],
|
|
41785
|
-
setSessionFormData = _Digit$Hooks$useSessi[1];
|
|
41786
|
-
const _Digit$Hooks$useSessi2 = Digit.Hooks.useSessionStorage("ADHOC_BILL_ADD_REBATE_DATA", {}),
|
|
41787
|
-
setSessionBillFormData = _Digit$Hooks$useSessi2[1];
|
|
41788
|
-
const isPaid = wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$ !== void 0 && _wsAdditionalDetails$.isPaid ? true : false;
|
|
41789
|
-
const _useState = React.useState(false),
|
|
41790
|
-
popup = _useState[0],
|
|
41791
|
-
showPopUp = _useState[1];
|
|
41792
|
-
const _useState2 = React.useState(sessionFormData ? sessionFormData : {}),
|
|
41793
|
-
fields = _useState2[0],
|
|
41794
|
-
setFields = _useState2[1];
|
|
41795
|
-
const _useState3 = React.useState(null),
|
|
41796
|
-
showToast = _useState3[0],
|
|
41797
|
-
setShowToast = _useState3[1];
|
|
41798
|
-
const _useState4 = React.useState(wsAdditionalDetails.additionalDetails.data ? wsAdditionalDetails.additionalDetails.data : {}),
|
|
41799
|
-
billDetails = _useState4[0],
|
|
41800
|
-
setBillDetails = _useState4[1];
|
|
41801
|
-
const _useState5 = React.useState(wsAdditionalDetails.additionalDetails.values ? wsAdditionalDetails.additionalDetails.values : []),
|
|
41802
|
-
values = _useState5[0],
|
|
41803
|
-
setValues = _useState5[1];
|
|
41804
|
-
const stateCode = Digit.ULBService.getStateId();
|
|
41805
|
-
const _Digit$Hooks$ws$useMD = Digit.Hooks.ws.useMDMS(stateCode, "BillingService", ["TaxHeadMaster"]);
|
|
41806
|
-
React.useEffect(() => {
|
|
41807
|
-
var _wsAdditionalDetails$2, _wsAdditionalDetails$3, _sessionFormData$bill;
|
|
41808
|
-
const data = _extends({}, wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$2 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : (_wsAdditionalDetails$3 = _wsAdditionalDetails$2.appDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : _wsAdditionalDetails$3.additionalDetails);
|
|
41809
|
-
if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
|
|
41810
|
-
var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8;
|
|
41811
|
-
const values = [{
|
|
41812
|
-
title: "WS_APPLICATION_FEE_HEADER",
|
|
41813
|
-
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill2 = sessionFormData.billDetails) === null || _sessionFormData$bill2 === void 0 ? void 0 : (_sessionFormData$bill3 = _sessionFormData$bill2[0]) === null || _sessionFormData$bill3 === void 0 ? void 0 : _sessionFormData$bill3.fee)
|
|
41814
|
-
}, {
|
|
41815
|
-
title: "WS_SERVICE_FEE_HEADER",
|
|
41816
|
-
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill4 = sessionFormData.billDetails) === null || _sessionFormData$bill4 === void 0 ? void 0 : (_sessionFormData$bill5 = _sessionFormData$bill4[0]) === null || _sessionFormData$bill5 === void 0 ? void 0 : _sessionFormData$bill5.charge)
|
|
41817
|
-
}, {
|
|
41818
|
-
title: "WS_TAX_HEADER",
|
|
41819
|
-
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill6 = sessionFormData.billDetails) === null || _sessionFormData$bill6 === void 0 ? void 0 : (_sessionFormData$bill7 = _sessionFormData$bill6[0]) === null || _sessionFormData$bill7 === void 0 ? void 0 : _sessionFormData$bill7.taxAmount)
|
|
41820
|
-
}];
|
|
41821
|
-
setValues(values);
|
|
41822
|
-
setBillDetails(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill8 = sessionFormData.billDetails) === null || _sessionFormData$bill8 === void 0 ? void 0 : _sessionFormData$bill8[0]);
|
|
41823
|
-
} else {
|
|
41824
|
-
setSessionFormData(data);
|
|
41825
|
-
setFields(data);
|
|
41826
|
-
}
|
|
41827
|
-
}, []);
|
|
41828
|
-
let validation = {};
|
|
41829
|
-
const Heading = props => {
|
|
41830
|
-
return /*#__PURE__*/React__default.createElement("h1", {
|
|
41831
|
-
className: "heading-m"
|
|
41832
|
-
}, props.label);
|
|
41833
|
-
};
|
|
41834
|
-
const Close = () => /*#__PURE__*/React__default.createElement("svg", {
|
|
41835
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
41836
|
-
viewBox: "0 0 24 24",
|
|
41837
|
-
fill: "#FFFFFF"
|
|
41838
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
41839
|
-
d: "M0 0h24v24H0V0z",
|
|
41840
|
-
fill: "none"
|
|
41841
|
-
}), /*#__PURE__*/React__default.createElement("path", {
|
|
41842
|
-
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
41843
|
-
}));
|
|
41844
|
-
const CloseBtn = props => {
|
|
41845
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
41846
|
-
className: "icon-bg-secondary",
|
|
41847
|
-
onClick: props.onClick
|
|
41848
|
-
}, /*#__PURE__*/React__default.createElement(Close, null));
|
|
41849
|
-
};
|
|
41850
|
-
const closeToast = () => {
|
|
41851
|
-
setShowToast(false);
|
|
41852
|
-
};
|
|
41853
|
-
const addAdhocRebatePenality = e => {
|
|
41854
|
-
const adhocAmount = fields !== null && fields !== void 0 && fields.adhocPenalty ? Number(fields === null || fields === void 0 ? void 0 : fields.adhocPenalty) : 0;
|
|
41855
|
-
const rebateAmount = fields !== null && fields !== void 0 && fields.adhocRebate ? Number(fields === null || fields === void 0 ? void 0 : fields.adhocRebate) : 0;
|
|
41856
|
-
if (adhocAmount || rebateAmount) {
|
|
41857
|
-
var _wsAdditionalDetails$4, _wsAdditionalDetails$5;
|
|
41858
|
-
const totalAmount = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$4 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$4 === void 0 ? void 0 : (_wsAdditionalDetails$5 = _wsAdditionalDetails$4.data) === null || _wsAdditionalDetails$5 === void 0 ? void 0 : _wsAdditionalDetails$5.totalAmount;
|
|
41859
|
-
if (rebateAmount > totalAmount) {
|
|
41860
|
-
setShowToast({
|
|
41861
|
-
isError: false,
|
|
41862
|
-
isWarning: true,
|
|
41863
|
-
key: "error",
|
|
41864
|
-
message: t("ERR_WS_REBATE_GREATER_THAN_AMOUNT")
|
|
41865
|
-
});
|
|
41866
|
-
} else {
|
|
41867
|
-
var _wsAdditionalDetails$0, _wsAdditionalDetails$1, _wsAdditionalDetails$10, _wsAdditionalDetails$11, _wsAdditionalDetails$12, _wsAdditionalDetails$13, _wsAdditionalDetails$14, _wsAdditionalDetails$15, _wsAdditionalDetails$16, _wsAdditionalDetails$17;
|
|
41868
|
-
const applicationNo = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$0 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$0 === void 0 ? void 0 : (_wsAdditionalDetails$1 = _wsAdditionalDetails$0.appDetails) === null || _wsAdditionalDetails$1 === void 0 ? void 0 : _wsAdditionalDetails$1.applicationNo;
|
|
41869
|
-
const tenantId = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$10 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$10 === void 0 ? void 0 : (_wsAdditionalDetails$11 = _wsAdditionalDetails$10.appDetails) === null || _wsAdditionalDetails$11 === void 0 ? void 0 : _wsAdditionalDetails$11.tenantId;
|
|
41870
|
-
const appAdditionalDetails = _extends({}, wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$12 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$12 === void 0 ? void 0 : (_wsAdditionalDetails$13 = _wsAdditionalDetails$12.appDetails) === null || _wsAdditionalDetails$13 === void 0 ? void 0 : _wsAdditionalDetails$13.additionalDetails, fields);
|
|
41871
|
-
wsAdditionalDetails.additionalDetails.appDetails.additionalDetails = appAdditionalDetails;
|
|
41872
|
-
const data = {
|
|
41873
|
-
CalculationCriteria: (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$14 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$14 === void 0 ? void 0 : (_wsAdditionalDetails$15 = _wsAdditionalDetails$14.appDetails) === null || _wsAdditionalDetails$15 === void 0 ? void 0 : _wsAdditionalDetails$15.service) == "WATER" ? [{
|
|
41874
|
-
applicationNo: applicationNo,
|
|
41875
|
-
tenantId: tenantId,
|
|
41876
|
-
waterConnection: wsAdditionalDetails.additionalDetails.appDetails
|
|
41877
|
-
}] : [{
|
|
41878
|
-
applicationNo: applicationNo,
|
|
41879
|
-
tenantId: tenantId,
|
|
41880
|
-
sewerageConnection: wsAdditionalDetails.additionalDetails.appDetails
|
|
41881
|
-
}],
|
|
41882
|
-
isconnectionCalculation: false
|
|
41883
|
-
};
|
|
41884
|
-
let businessService = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$16 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$16 === void 0 ? void 0 : (_wsAdditionalDetails$17 = _wsAdditionalDetails$16.appDetails) === null || _wsAdditionalDetails$17 === void 0 ? void 0 : _wsAdditionalDetails$17.service) == "WATER" ? "WS" : "SW";
|
|
41885
|
-
Digit.WSService.wsCalculationEstimate(data, businessService).then((result, err) => {
|
|
41886
|
-
var _result$Calculation, _result$Calculation$, _result$Calculation$$, _result$Calculation3, _result$Calculation3$, _result$Calculation4, _result$Calculation4$, _result$Calculation5, _result$Calculation5$, _result$Calculation6, _result$Calculation6$, _result$Calculation7;
|
|
41887
|
-
if ((result === null || result === void 0 ? void 0 : (_result$Calculation = result.Calculation) === null || _result$Calculation === void 0 ? void 0 : (_result$Calculation$ = _result$Calculation[0]) === null || _result$Calculation$ === void 0 ? void 0 : (_result$Calculation$$ = _result$Calculation$.taxHeadEstimates) === null || _result$Calculation$$ === void 0 ? void 0 : _result$Calculation$$.length) > 0) {
|
|
41888
|
-
var _result$Calculation2, _result$Calculation2$, _result$Calculation2$2;
|
|
41889
|
-
result === null || result === void 0 ? void 0 : (_result$Calculation2 = result.Calculation) === null || _result$Calculation2 === void 0 ? void 0 : (_result$Calculation2$ = _result$Calculation2[0]) === null || _result$Calculation2$ === void 0 ? void 0 : (_result$Calculation2$2 = _result$Calculation2$.taxHeadEstimates) === null || _result$Calculation2$2 === void 0 ? void 0 : _result$Calculation2$2.forEach(data => data.amount = data.estimateAmount);
|
|
41890
|
-
}
|
|
41891
|
-
result.Calculation[0].billSlabData = _.groupBy(result === null || result === void 0 ? void 0 : (_result$Calculation3 = result.Calculation) === null || _result$Calculation3 === void 0 ? void 0 : (_result$Calculation3$ = _result$Calculation3[0]) === null || _result$Calculation3$ === void 0 ? void 0 : _result$Calculation3$.taxHeadEstimates, "category");
|
|
41892
|
-
const values = [{
|
|
41893
|
-
title: "WS_APPLICATION_FEE_HEADER",
|
|
41894
|
-
value: (_result$Calculation4 = result.Calculation) === null || _result$Calculation4 === void 0 ? void 0 : (_result$Calculation4$ = _result$Calculation4[0]) === null || _result$Calculation4$ === void 0 ? void 0 : _result$Calculation4$.fee
|
|
41895
|
-
}, {
|
|
41896
|
-
title: "WS_SERVICE_FEE_HEADER",
|
|
41897
|
-
value: (_result$Calculation5 = result.Calculation) === null || _result$Calculation5 === void 0 ? void 0 : (_result$Calculation5$ = _result$Calculation5[0]) === null || _result$Calculation5$ === void 0 ? void 0 : _result$Calculation5$.charge
|
|
41898
|
-
}, {
|
|
41899
|
-
title: "WS_TAX_HEADER",
|
|
41900
|
-
value: (_result$Calculation6 = result.Calculation) === null || _result$Calculation6 === void 0 ? void 0 : (_result$Calculation6$ = _result$Calculation6[0]) === null || _result$Calculation6$ === void 0 ? void 0 : _result$Calculation6$.taxAmount
|
|
41901
|
-
}];
|
|
41902
|
-
setSessionBillFormData(cloneDeep_1(result.Calculation[0]));
|
|
41903
|
-
setBillDetails(result === null || result === void 0 ? void 0 : (_result$Calculation7 = result.Calculation) === null || _result$Calculation7 === void 0 ? void 0 : _result$Calculation7[0]);
|
|
41904
|
-
setValues(values);
|
|
41905
|
-
fields.billDetails = result === null || result === void 0 ? void 0 : result.Calculation;
|
|
41906
|
-
setSessionFormData(fields);
|
|
41907
|
-
showPopUp(false);
|
|
41908
|
-
}).catch(e => {
|
|
41909
|
-
var _e$response, _e$response$data, _e$response$data$Erro, _e$response2, _e$response2$data, _e$response2$data$Err;
|
|
41910
|
-
setShowToast({
|
|
41911
|
-
isError: true,
|
|
41912
|
-
isWarning: false,
|
|
41913
|
-
key: "error",
|
|
41914
|
-
message: e !== null && e !== void 0 && (_e$response = e.response) !== null && _e$response !== void 0 && (_e$response$data = _e$response.data) !== null && _e$response$data !== void 0 && (_e$response$data$Erro = _e$response$data.Errors[0]) !== null && _e$response$data$Erro !== void 0 && _e$response$data$Erro.message ? t("" + (e === null || e === void 0 ? void 0 : (_e$response2 = e.response) === null || _e$response2 === void 0 ? void 0 : (_e$response2$data = _e$response2.data) === null || _e$response2$data === void 0 ? void 0 : (_e$response2$data$Err = _e$response2$data.Errors[0]) === null || _e$response2$data$Err === void 0 ? void 0 : _e$response2$data$Err.code)) : t("PT_COMMON_ADD_REBATE_PENALITY")
|
|
41915
|
-
});
|
|
41916
|
-
});
|
|
41917
|
-
}
|
|
41918
|
-
} else {
|
|
41919
|
-
setShowToast({
|
|
41920
|
-
isError: false,
|
|
41921
|
-
isWarning: true,
|
|
41922
|
-
key: "warning",
|
|
41923
|
-
message: t("ERR_WS_ENTER_ATLEAST_ONE_FIELD")
|
|
41924
|
-
});
|
|
41925
|
-
}
|
|
41926
|
-
};
|
|
41927
|
-
const selectedValuesData = function (value, isDropDownValue, e) {
|
|
41928
|
-
if (isDropDownValue === void 0) {
|
|
41929
|
-
isDropDownValue = false;
|
|
41930
|
-
}
|
|
41931
|
-
let values = _extends({}, fields);
|
|
41932
|
-
if ((value == "adhocPenalty" || value == "adhocRebate") && e.target.value) {
|
|
41933
|
-
var _e$target, _e$target2;
|
|
41934
|
-
const targetValueSign = (e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) == 0 ? 1 : Math.sign(e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value) || -1;
|
|
41935
|
-
if (targetValueSign == 1) {
|
|
41936
|
-
values[value] = e.target.value;
|
|
41937
|
-
} else {
|
|
41938
|
-
values[value] = "";
|
|
41939
|
-
}
|
|
41940
|
-
} else if (isDropDownValue) {
|
|
41941
|
-
values[value + "_data"] = e;
|
|
41942
|
-
values[value] = e.title;
|
|
41943
|
-
if (e.title == "PT_OTHERS" && value == "adhocPenaltyReason") values["adhocPenaltyComment"] = "";
|
|
41944
|
-
if (e.title == "PT_OTHERS" && value == "adhocRebateReason") values["adhocRebateComment"] = "";
|
|
41945
|
-
} else {
|
|
41946
|
-
values[value] = e.target.value;
|
|
41947
|
-
}
|
|
41948
|
-
setFields(values);
|
|
41949
|
-
};
|
|
41950
|
-
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
41951
|
-
style: {
|
|
41952
|
-
lineHeight: "19px",
|
|
41953
|
-
maxWidth: "100%",
|
|
41954
|
-
minWidth: "280px"
|
|
41955
|
-
}
|
|
41956
|
-
}, values && /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement("div", null, values === null || values === void 0 ? void 0 : values.map((value, index) => {
|
|
41957
|
-
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
41958
|
-
className: "border-none",
|
|
41959
|
-
key: "" + value.title,
|
|
41960
|
-
label: "" + t("" + value.title),
|
|
41961
|
-
text: value !== null && value !== void 0 && value.value ? value === null || value === void 0 ? void 0 : value.value : ""
|
|
41962
|
-
});
|
|
41963
|
-
})), /*#__PURE__*/React__default.createElement("hr", {
|
|
41964
|
-
style: {
|
|
41965
|
-
border: "1px solid #D6D5D4",
|
|
41966
|
-
color: "#D6D5D4",
|
|
41967
|
-
margin: "16px 0px"
|
|
41968
|
-
}
|
|
41969
|
-
}), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
41970
|
-
className: "border-none",
|
|
41971
|
-
key: "WS_COMMON_TOTAL_AMT",
|
|
41972
|
-
label: "" + t("WS_COMMON_TOTAL_AMT"),
|
|
41973
|
-
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", (billDetails === null || billDetails === void 0 ? void 0 : billDetails.totalAmount) || 0),
|
|
41974
|
-
textStyle: {
|
|
41975
|
-
fontSize: "24px",
|
|
41976
|
-
fontWeight: "700"
|
|
41977
|
-
}
|
|
41978
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
41979
|
-
className: "border-none",
|
|
41980
|
-
key: "CS_INBOX_STATUS_FILTER",
|
|
41981
|
-
label: "" + t("CS_INBOX_STATUS_FILTER"),
|
|
41982
|
-
text: isPaid ? t("WS_COMMON_PAID_LABEL") : t("WS_COMMON_NOT_PAID"),
|
|
41983
|
-
textStyle: !isPaid ? {
|
|
41984
|
-
color: "#D83A2F"
|
|
41985
|
-
} : {
|
|
41986
|
-
color: "#2E9E8F"
|
|
41987
|
-
}
|
|
41988
|
-
}))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$18 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$18 !== void 0 && _wsAdditionalDetails$18.isAdhocRebate ? /*#__PURE__*/React__default.createElement("div", {
|
|
41989
|
-
onClick: e => {
|
|
41990
|
-
showPopUp(true);
|
|
41991
|
-
}
|
|
41992
|
-
}, /*#__PURE__*/React__default.createElement("span", {
|
|
41993
|
-
className: "add-details-link hover-button",
|
|
41994
|
-
style: {
|
|
41995
|
-
cursor: "pointer",
|
|
41996
|
-
color: "#a82227"
|
|
41997
|
-
}
|
|
41998
|
-
}, t("WS_PAYMENT_ADD_REBATE_PENALTY"))) : null, popup && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
41999
|
-
headerBarMain: /*#__PURE__*/React__default.createElement(Heading, {
|
|
42000
|
-
label: t("PT_ADD_REBATE_PENALITY")
|
|
42001
|
-
}),
|
|
42002
|
-
headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn, {
|
|
42003
|
-
onClick: () => {
|
|
42004
|
-
setFields(sessionFormData);
|
|
42005
|
-
showPopUp(false);
|
|
42006
|
-
}
|
|
42007
|
-
}),
|
|
42008
|
-
actionCancelLabel: t("PT_CANCEL"),
|
|
42009
|
-
actionCancelOnSubmit: () => {
|
|
42010
|
-
setFields(sessionFormData);
|
|
42011
|
-
showPopUp(false);
|
|
42012
|
-
},
|
|
42013
|
-
actionSaveLabel: t("PT_ADD"),
|
|
42014
|
-
actionSaveOnSubmit: e => addAdhocRebatePenality(),
|
|
42015
|
-
hideSubmit: false,
|
|
42016
|
-
popupStyles: {
|
|
42017
|
-
overflowY: "auto",
|
|
42018
|
-
background: "#f0f3f7"
|
|
42019
|
-
}
|
|
42020
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
42021
|
-
style: {
|
|
42022
|
-
display: "flex",
|
|
42023
|
-
flexDirection: "column",
|
|
42024
|
-
gap: "16px"
|
|
42025
|
-
}
|
|
42026
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
42027
|
-
style: {
|
|
42028
|
-
fontSize: "16px",
|
|
42029
|
-
fontWeight: "700",
|
|
42030
|
-
lineHeight: "18px",
|
|
42031
|
-
padding: "0px",
|
|
42032
|
-
margin: "0px 0px 10px 0px"
|
|
42033
|
-
}
|
|
42034
|
-
}, t("PT_AD_PENALTY")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React__default.createElement("div", {
|
|
42035
|
-
className: "field"
|
|
42036
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
42037
|
-
isMandatory: true,
|
|
42038
|
-
option: Penality_menu,
|
|
42039
|
-
optionKey: "title",
|
|
42040
|
-
select: e => selectedValuesData("adhocPenaltyReason", true, e),
|
|
42041
|
-
selected: (fields === null || fields === void 0 ? void 0 : fields.adhocPenaltyReason_data) || "",
|
|
42042
|
-
isPropertyAssess: true,
|
|
42043
|
-
name: "adhocPenaltyReason_data",
|
|
42044
|
-
t: t
|
|
42045
|
-
}))), (fields === null || fields === void 0 ? void 0 : (_fields$adhocPenaltyR = fields.adhocPenaltyReason_data) === null || _fields$adhocPenaltyR === void 0 ? void 0 : _fields$adhocPenaltyR.title) === "PT_OTHERS" && /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_REASON")), /*#__PURE__*/React__default.createElement("div", {
|
|
42046
|
-
className: "field"
|
|
42047
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
42048
|
-
style: {
|
|
42049
|
-
background: "#FAFAFA"
|
|
42050
|
-
},
|
|
42051
|
-
t: t,
|
|
42052
|
-
type: "text",
|
|
42053
|
-
isMandatory: false,
|
|
42054
|
-
name: "adhocPenaltyComment",
|
|
42055
|
-
value: (fields === null || fields === void 0 ? void 0 : fields.adhocPenaltyComment) || "",
|
|
42056
|
-
onChange: e => selectedValuesData("adhocPenaltyComment", false, e)
|
|
42057
|
-
}, validation = {
|
|
42058
|
-
isRequired: true,
|
|
42059
|
-
pattern: "^[a-zA-Z ]*$",
|
|
42060
|
-
type: "text",
|
|
42061
|
-
title: t("TL_NAME_ERROR_MESSAGE")
|
|
42062
|
-
})))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React__default.createElement("div", {
|
|
42063
|
-
className: "field"
|
|
42064
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
42065
|
-
style: {
|
|
42066
|
-
background: "#FAFAFA"
|
|
42067
|
-
},
|
|
42068
|
-
t: t,
|
|
42069
|
-
type: "number",
|
|
42070
|
-
isMandatory: false,
|
|
42071
|
-
name: "adhocPenalty",
|
|
42072
|
-
value: (fields === null || fields === void 0 ? void 0 : fields.adhocPenalty) || "",
|
|
42073
|
-
onChange: e => selectedValuesData("adhocPenalty", false, e)
|
|
42074
|
-
}, validation = {
|
|
42075
|
-
isRequired: true,
|
|
42076
|
-
pattern: "^[1-9]+[0-9]*$",
|
|
42077
|
-
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
42078
|
-
}))))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
42079
|
-
style: {
|
|
42080
|
-
fontSize: "16px",
|
|
42081
|
-
fontWeight: "700",
|
|
42082
|
-
lineHeight: "18px",
|
|
42083
|
-
padding: "0px",
|
|
42084
|
-
margin: "0px 0px 10px 0px"
|
|
42085
|
-
}
|
|
42086
|
-
}, t("PT_AD_REBATE")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React__default.createElement("div", {
|
|
42087
|
-
className: "field"
|
|
42088
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
42089
|
-
isMandatory: true,
|
|
42090
|
-
option: Rebate_menu,
|
|
42091
|
-
optionKey: "title",
|
|
42092
|
-
select: e => selectedValuesData("adhocRebateReason", true, e),
|
|
42093
|
-
selected: (fields === null || fields === void 0 ? void 0 : fields.adhocRebateReason_data) || "",
|
|
42094
|
-
name: "adhocRebateReason_data",
|
|
42095
|
-
isPropertyAssess: true,
|
|
42096
|
-
t: t
|
|
42097
|
-
}))), (fields === null || fields === void 0 ? void 0 : (_fields$adhocRebateRe = fields.adhocRebateReason_data) === null || _fields$adhocRebateRe === void 0 ? void 0 : _fields$adhocRebateRe.title) === "PT_OTHERS" && /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_REASON")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
42098
|
-
style: {
|
|
42099
|
-
background: "#FAFAFA"
|
|
42100
|
-
},
|
|
42101
|
-
t: t,
|
|
42102
|
-
type: "text",
|
|
42103
|
-
isMandatory: false,
|
|
42104
|
-
name: "adhocRebateComment",
|
|
42105
|
-
value: (fields === null || fields === void 0 ? void 0 : fields.adhocRebateComment) || "",
|
|
42106
|
-
onChange: e => selectedValuesData("adhocRebateComment", false, e)
|
|
42107
|
-
}, validation = {
|
|
42108
|
-
isRequired: true,
|
|
42109
|
-
pattern: "^[a-zA-Z ]*$",
|
|
42110
|
-
type: "text",
|
|
42111
|
-
title: t("TL_NAME_ERROR_MESSAGE")
|
|
42112
|
-
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React__default.createElement("div", {
|
|
42113
|
-
className: "field"
|
|
42114
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
42115
|
-
style: {
|
|
42116
|
-
background: "#FAFAFA"
|
|
42117
|
-
},
|
|
42118
|
-
t: t,
|
|
42119
|
-
type: "number",
|
|
42120
|
-
isMandatory: false,
|
|
42121
|
-
name: "adhocRebate",
|
|
42122
|
-
value: (fields === null || fields === void 0 ? void 0 : fields.adhocRebate) || "",
|
|
42123
|
-
onChange: e => selectedValuesData("adhocRebate", false, e)
|
|
42124
|
-
}, validation = {
|
|
42125
|
-
isRequired: true,
|
|
42126
|
-
pattern: "^[1-9]+[0-9]*$",
|
|
42127
|
-
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
42128
|
-
}))))))), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
42129
|
-
style: {
|
|
42130
|
-
zIndex: "10000"
|
|
42131
|
-
},
|
|
42132
|
-
warning: showToast === null || showToast === void 0 ? void 0 : showToast.isWarning,
|
|
42133
|
-
error: showToast !== null && showToast !== void 0 && showToast.isWarning ? false : true,
|
|
42134
|
-
label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
|
|
42135
|
-
onClose: closeToast,
|
|
42136
|
-
isDleteBtn: true
|
|
42137
|
-
})));
|
|
42138
|
-
};
|
|
42139
|
-
|
|
42140
42773
|
const EyeSvgINdex$1 = _ref => {
|
|
42141
42774
|
let style = _ref.style;
|
|
42142
42775
|
return /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement("svg", {
|
|
@@ -42188,203 +42821,6 @@ const InfoDetails = _ref2 => {
|
|
|
42188
42821
|
}), " " + t(infoClickInfoLabel), /*#__PURE__*/React__default.createElement("div", null, " " + t(infoClickInfoLabel1)))));
|
|
42189
42822
|
};
|
|
42190
42823
|
|
|
42191
|
-
const ViewBreakup = _ref => {
|
|
42192
|
-
var _wsAdditionalDetails$, _breakUpData$billSlab, _breakUpData$billSlab2, _breakUpData$billSlab3, _breakUpData$billSlab4, _breakUpData$billSlab5, _breakUpData$billSlab6;
|
|
42193
|
-
let wsAdditionalDetails = _ref.wsAdditionalDetails;
|
|
42194
|
-
const _useTranslation = reactI18next.useTranslation(),
|
|
42195
|
-
t = _useTranslation.t;
|
|
42196
|
-
const _useState = React.useState(false),
|
|
42197
|
-
popup = _useState[0],
|
|
42198
|
-
showPopUp = _useState[1];
|
|
42199
|
-
const _useState2 = React.useState({}),
|
|
42200
|
-
breakUpData = _useState2[0],
|
|
42201
|
-
setBreakUpData = _useState2[1];
|
|
42202
|
-
const Heading = props => {
|
|
42203
|
-
return /*#__PURE__*/React__default.createElement("h1", {
|
|
42204
|
-
className: "heading-m"
|
|
42205
|
-
}, props.label);
|
|
42206
|
-
};
|
|
42207
|
-
const Close = () => /*#__PURE__*/React__default.createElement("svg", {
|
|
42208
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
42209
|
-
viewBox: "0 0 24 24",
|
|
42210
|
-
fill: "#FFFFFF"
|
|
42211
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
42212
|
-
d: "M0 0h24v24H0V0z",
|
|
42213
|
-
fill: "none"
|
|
42214
|
-
}), /*#__PURE__*/React__default.createElement("path", {
|
|
42215
|
-
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
42216
|
-
}));
|
|
42217
|
-
const CloseBtn = props => {
|
|
42218
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
42219
|
-
className: "icon-bg-secondary",
|
|
42220
|
-
onClick: props.onClick
|
|
42221
|
-
}, /*#__PURE__*/React__default.createElement(Close, null));
|
|
42222
|
-
};
|
|
42223
|
-
const onPopupOpen = () => {
|
|
42224
|
-
var _sessionBillFormData$;
|
|
42225
|
-
let breakupData = wsAdditionalDetails.additionalDetails.data || {};
|
|
42226
|
-
const sessionBillData = sessionStorage.getItem("Digit.ADHOC_BILL_ADD_REBATE_DATA");
|
|
42227
|
-
const sessionBillFormData = sessionBillData ? JSON.parse(sessionBillData) : {};
|
|
42228
|
-
if (sessionBillFormData !== null && sessionBillFormData !== void 0 && (_sessionBillFormData$ = sessionBillFormData.value) !== null && _sessionBillFormData$ !== void 0 && _sessionBillFormData$.totalAmount) breakupData = sessionBillFormData === null || sessionBillFormData === void 0 ? void 0 : sessionBillFormData.value;
|
|
42229
|
-
setBreakUpData(breakupData);
|
|
42230
|
-
showPopUp(true);
|
|
42231
|
-
};
|
|
42232
|
-
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
42233
|
-
style: {
|
|
42234
|
-
lineHeight: "19px",
|
|
42235
|
-
maxWidth: "950px",
|
|
42236
|
-
minWidth: "280px"
|
|
42237
|
-
}
|
|
42238
|
-
}, wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$ !== void 0 && _wsAdditionalDetails$.isViewBreakup ? /*#__PURE__*/React__default.createElement("div", {
|
|
42239
|
-
onClick: e => onPopupOpen(),
|
|
42240
|
-
style: {
|
|
42241
|
-
marginTop: "12px"
|
|
42242
|
-
}
|
|
42243
|
-
}, /*#__PURE__*/React__default.createElement("span", {
|
|
42244
|
-
className: "add-details-link hover-button"
|
|
42245
|
-
}, t("WS_PAYMENT_VIEW_BREAKUP"))) : null, popup && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
42246
|
-
headerBarMain: /*#__PURE__*/React__default.createElement(Heading, {
|
|
42247
|
-
label: t("WS_CALCULATION_BREAKUP")
|
|
42248
|
-
}),
|
|
42249
|
-
headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn, {
|
|
42250
|
-
onClick: () => {
|
|
42251
|
-
showPopUp(false);
|
|
42252
|
-
}
|
|
42253
|
-
}),
|
|
42254
|
-
hideSubmit: true,
|
|
42255
|
-
popupStyles: {
|
|
42256
|
-
overflowY: "auto"
|
|
42257
|
-
},
|
|
42258
|
-
headerBarMainStyle: {
|
|
42259
|
-
marginBottom: "0px"
|
|
42260
|
-
},
|
|
42261
|
-
popupModuleMianStyles: {
|
|
42262
|
-
paddingTop: "0px"
|
|
42263
|
-
}
|
|
42264
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
42265
|
-
style: {
|
|
42266
|
-
padding: "10px",
|
|
42267
|
-
paddingTop: "0px"
|
|
42268
|
-
}
|
|
42269
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
42270
|
-
style: {
|
|
42271
|
-
margin: "10px 0px"
|
|
42272
|
-
}
|
|
42273
|
-
}, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab = breakUpData.billSlabData) === null || _breakUpData$billSlab === void 0 ? void 0 : (_breakUpData$billSlab2 = _breakUpData$billSlab.FEE) === null || _breakUpData$billSlab2 === void 0 ? void 0 : _breakUpData$billSlab2.map(data => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
42274
|
-
className: "border-none",
|
|
42275
|
-
rowContainerStyle: {
|
|
42276
|
-
margin: "0px"
|
|
42277
|
-
},
|
|
42278
|
-
labelStyle: {
|
|
42279
|
-
width: "50%"
|
|
42280
|
-
},
|
|
42281
|
-
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
42282
|
-
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
42283
|
-
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
42284
|
-
textStyle: {
|
|
42285
|
-
textAlign: "right"
|
|
42286
|
-
}
|
|
42287
|
-
})), /*#__PURE__*/React__default.createElement("hr", {
|
|
42288
|
-
style: {
|
|
42289
|
-
color: "#cccccc",
|
|
42290
|
-
backgroundColor: "#cccccc",
|
|
42291
|
-
marginBottom: "10px"
|
|
42292
|
-
}
|
|
42293
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
42294
|
-
className: "border-none",
|
|
42295
|
-
rowContainerStyle: {
|
|
42296
|
-
margin: "0px"
|
|
42297
|
-
},
|
|
42298
|
-
labelStyle: {
|
|
42299
|
-
width: "50%"
|
|
42300
|
-
},
|
|
42301
|
-
key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT1",
|
|
42302
|
-
label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
42303
|
-
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.fee) || 0),
|
|
42304
|
-
textStyle: {
|
|
42305
|
-
textAlign: "right",
|
|
42306
|
-
fontWeight: "700",
|
|
42307
|
-
fontSize: "24px"
|
|
42308
|
-
}
|
|
42309
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
42310
|
-
style: {
|
|
42311
|
-
margin: "10px 0px"
|
|
42312
|
-
}
|
|
42313
|
-
}, t("WS_SERVICE_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab3 = breakUpData.billSlabData) === null || _breakUpData$billSlab3 === void 0 ? void 0 : (_breakUpData$billSlab4 = _breakUpData$billSlab3.CHARGES) === null || _breakUpData$billSlab4 === void 0 ? void 0 : _breakUpData$billSlab4.map(data => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
42314
|
-
className: "border-none",
|
|
42315
|
-
rowContainerStyle: {
|
|
42316
|
-
margin: "0px"
|
|
42317
|
-
},
|
|
42318
|
-
labelStyle: {
|
|
42319
|
-
width: "50%"
|
|
42320
|
-
},
|
|
42321
|
-
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
42322
|
-
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
42323
|
-
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
42324
|
-
textStyle: {
|
|
42325
|
-
textAlign: "right"
|
|
42326
|
-
}
|
|
42327
|
-
})), /*#__PURE__*/React__default.createElement("hr", {
|
|
42328
|
-
style: {
|
|
42329
|
-
color: "#cccccc",
|
|
42330
|
-
backgroundColor: "#cccccc",
|
|
42331
|
-
marginBottom: "10px"
|
|
42332
|
-
}
|
|
42333
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
42334
|
-
className: "border-none",
|
|
42335
|
-
rowContainerStyle: {
|
|
42336
|
-
margin: "0px"
|
|
42337
|
-
},
|
|
42338
|
-
labelStyle: {
|
|
42339
|
-
width: "50%"
|
|
42340
|
-
},
|
|
42341
|
-
key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT2",
|
|
42342
|
-
label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
42343
|
-
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.charge) || 0),
|
|
42344
|
-
textStyle: {
|
|
42345
|
-
textAlign: "right",
|
|
42346
|
-
fontWeight: "700",
|
|
42347
|
-
fontSize: "24px"
|
|
42348
|
-
}
|
|
42349
|
-
}), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab5 = breakUpData.billSlabData) === null || _breakUpData$billSlab5 === void 0 ? void 0 : (_breakUpData$billSlab6 = _breakUpData$billSlab5.TAX) === null || _breakUpData$billSlab6 === void 0 ? void 0 : _breakUpData$billSlab6.map(data => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
42350
|
-
className: "border-none",
|
|
42351
|
-
rowContainerStyle: {
|
|
42352
|
-
margin: "0px"
|
|
42353
|
-
},
|
|
42354
|
-
labelStyle: {
|
|
42355
|
-
width: "50%"
|
|
42356
|
-
},
|
|
42357
|
-
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
42358
|
-
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
42359
|
-
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
42360
|
-
textStyle: {
|
|
42361
|
-
textAlign: "right"
|
|
42362
|
-
}
|
|
42363
|
-
})), /*#__PURE__*/React__default.createElement("hr", {
|
|
42364
|
-
style: {
|
|
42365
|
-
color: "#cccccc",
|
|
42366
|
-
backgroundColor: "#cccccc",
|
|
42367
|
-
marginBottom: "10px"
|
|
42368
|
-
}
|
|
42369
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
42370
|
-
className: "border-none",
|
|
42371
|
-
rowContainerStyle: {
|
|
42372
|
-
margin: "0px"
|
|
42373
|
-
},
|
|
42374
|
-
labelStyle: {
|
|
42375
|
-
width: "50%"
|
|
42376
|
-
},
|
|
42377
|
-
key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT3",
|
|
42378
|
-
label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
42379
|
-
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.totalAmount) || 0),
|
|
42380
|
-
textStyle: {
|
|
42381
|
-
textAlign: "right",
|
|
42382
|
-
fontWeight: "700",
|
|
42383
|
-
fontSize: "24px"
|
|
42384
|
-
}
|
|
42385
|
-
})))));
|
|
42386
|
-
};
|
|
42387
|
-
|
|
42388
42824
|
const styles = {
|
|
42389
42825
|
root: {
|
|
42390
42826
|
width: "100%",
|
|
@@ -42660,36 +43096,65 @@ const DueVerification = _ref => {
|
|
|
42660
43096
|
const _useState = React.useState(""),
|
|
42661
43097
|
kno = _useState[0],
|
|
42662
43098
|
setKno = _useState[1];
|
|
42663
|
-
const _useState2 = React.useState(
|
|
42664
|
-
|
|
42665
|
-
|
|
42666
|
-
const
|
|
42667
|
-
|
|
42668
|
-
|
|
42669
|
-
|
|
42670
|
-
|
|
42671
|
-
|
|
42672
|
-
|
|
42673
|
-
|
|
42674
|
-
|
|
42675
|
-
|
|
42676
|
-
|
|
42677
|
-
|
|
42678
|
-
|
|
42679
|
-
|
|
42680
|
-
|
|
42681
|
-
|
|
43099
|
+
const _useState2 = React.useState(""),
|
|
43100
|
+
remarks = _useState2[0],
|
|
43101
|
+
setRemarks = _useState2[1];
|
|
43102
|
+
const _useState3 = React.useState([]),
|
|
43103
|
+
tableData = _useState3[0],
|
|
43104
|
+
setTableData = _useState3[1];
|
|
43105
|
+
const handleRemarkChange = React__default.useCallback((index, value) => {
|
|
43106
|
+
setTableData(prevData => {
|
|
43107
|
+
const newData = [...prevData];
|
|
43108
|
+
newData[index] = _extends({}, newData[index], {
|
|
43109
|
+
remarks: value
|
|
43110
|
+
});
|
|
43111
|
+
if (applicationData) {
|
|
43112
|
+
applicationData.dueVerification = newData;
|
|
43113
|
+
}
|
|
43114
|
+
return newData;
|
|
43115
|
+
});
|
|
43116
|
+
}, [applicationData]);
|
|
43117
|
+
const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION";
|
|
43118
|
+
const columns = React.useMemo(() => {
|
|
43119
|
+
const baseColumns = [{
|
|
43120
|
+
Header: t("K No."),
|
|
43121
|
+
accessor: "kno"
|
|
43122
|
+
}, {
|
|
43123
|
+
Header: t("Full Name"),
|
|
43124
|
+
accessor: "fullName"
|
|
43125
|
+
}, {
|
|
43126
|
+
Header: t("Full Address"),
|
|
43127
|
+
accessor: "fullAddress"
|
|
43128
|
+
}, {
|
|
43129
|
+
Header: t("Due Amount"),
|
|
43130
|
+
accessor: "dueAmount"
|
|
43131
|
+
}, {
|
|
43132
|
+
Header: t("Total Amount"),
|
|
43133
|
+
accessor: "totalAmount"
|
|
43134
|
+
}];
|
|
43135
|
+
if (isPendingApproval) {
|
|
43136
|
+
baseColumns.push({
|
|
43137
|
+
Header: t("Remarks"),
|
|
43138
|
+
accessor: "remarks",
|
|
43139
|
+
Cell: _ref2 => {
|
|
43140
|
+
let row = _ref2.row,
|
|
43141
|
+
value = _ref2.value;
|
|
43142
|
+
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
43143
|
+
style: {
|
|
43144
|
+
marginBottom: "0px",
|
|
43145
|
+
minWidth: "150px"
|
|
43146
|
+
},
|
|
43147
|
+
value: value || "",
|
|
43148
|
+
onChange: e => handleRemarkChange(row.index, e.target.value)
|
|
43149
|
+
});
|
|
43150
|
+
}
|
|
43151
|
+
});
|
|
43152
|
+
}
|
|
43153
|
+
return baseColumns;
|
|
43154
|
+
}, [t, handleRemarkChange, isPendingApproval]);
|
|
42682
43155
|
React.useEffect(() => {
|
|
42683
|
-
|
|
42684
|
-
if (savedData) {
|
|
42685
|
-
try {
|
|
42686
|
-
setTableData(JSON.parse(savedData));
|
|
42687
|
-
} catch (e) {
|
|
42688
|
-
console.error("Error parsing due verification data", e);
|
|
42689
|
-
}
|
|
42690
|
-
} else if (applicationData !== null && applicationData !== void 0 && applicationData.dueVerification && Array.isArray(applicationData.dueVerification)) {
|
|
43156
|
+
if (applicationData !== null && applicationData !== void 0 && applicationData.dueVerification && Array.isArray(applicationData.dueVerification)) {
|
|
42691
43157
|
setTableData(applicationData.dueVerification);
|
|
42692
|
-
sessionStorage.setItem("Digit.DUE_VERIFICATION_DATA", JSON.stringify(applicationData.dueVerification));
|
|
42693
43158
|
}
|
|
42694
43159
|
}, [applicationData]);
|
|
42695
43160
|
const handleAdd = () => {
|
|
@@ -42699,12 +43164,16 @@ const DueVerification = _ref => {
|
|
|
42699
43164
|
fullName: "John Doe",
|
|
42700
43165
|
fullAddress: "123 Main St, New Delhi, Delhi 110001",
|
|
42701
43166
|
dueAmount: "1500",
|
|
42702
|
-
totalAmount: "1500"
|
|
43167
|
+
totalAmount: "1500",
|
|
43168
|
+
remarks: remarks
|
|
42703
43169
|
};
|
|
42704
43170
|
const newTableData = [...tableData, mockData];
|
|
42705
43171
|
setTableData(newTableData);
|
|
42706
|
-
|
|
43172
|
+
if (applicationData) {
|
|
43173
|
+
applicationData.dueVerification = newTableData;
|
|
43174
|
+
}
|
|
42707
43175
|
setKno("");
|
|
43176
|
+
setRemarks("");
|
|
42708
43177
|
}
|
|
42709
43178
|
};
|
|
42710
43179
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -42786,7 +43255,8 @@ const DueVerification = _ref => {
|
|
|
42786
43255
|
})));
|
|
42787
43256
|
};
|
|
42788
43257
|
|
|
42789
|
-
const InspectionInformation =
|
|
43258
|
+
const InspectionInformation = _ref => {
|
|
43259
|
+
let applicationData = _ref.applicationData;
|
|
42790
43260
|
const _useTranslation = reactI18next.useTranslation(),
|
|
42791
43261
|
t = _useTranslation.t;
|
|
42792
43262
|
const _useState = React.useState(null),
|
|
@@ -42798,9 +43268,37 @@ const InspectionInformation = () => {
|
|
|
42798
43268
|
const _useState3 = React.useState(""),
|
|
42799
43269
|
inspectorName = _useState3[0],
|
|
42800
43270
|
setInspectorName = _useState3[1];
|
|
43271
|
+
React.useEffect(() => {
|
|
43272
|
+
const savedData = sessionStorage.getItem("Digit.INSPECTION_INFORMATION_DATA");
|
|
43273
|
+
if (savedData) {
|
|
43274
|
+
try {
|
|
43275
|
+
const parsed = JSON.parse(savedData);
|
|
43276
|
+
setInspectionType(parsed.inspectionType || null);
|
|
43277
|
+
setInspectionDate(parsed.inspectionDate || "");
|
|
43278
|
+
setInspectorName(parsed.inspectorName || "");
|
|
43279
|
+
} catch (e) {
|
|
43280
|
+
console.error("Error parsing inspection information data", e);
|
|
43281
|
+
}
|
|
43282
|
+
} else if (applicationData !== null && applicationData !== void 0 && applicationData.inspectionInformation) {
|
|
43283
|
+
setInspectionType(applicationData.inspectionInformation.inspectionType || null);
|
|
43284
|
+
setInspectionDate(applicationData.inspectionInformation.inspectionDate || "");
|
|
43285
|
+
setInspectorName(applicationData.inspectionInformation.inspectorName || "");
|
|
43286
|
+
sessionStorage.setItem("Digit.INSPECTION_INFORMATION_DATA", JSON.stringify(applicationData.inspectionInformation));
|
|
43287
|
+
}
|
|
43288
|
+
}, [applicationData]);
|
|
43289
|
+
React.useEffect(() => {
|
|
43290
|
+
sessionStorage.setItem("Digit.INSPECTION_INFORMATION_DATA", JSON.stringify({
|
|
43291
|
+
inspectionType,
|
|
43292
|
+
inspectionDate,
|
|
43293
|
+
inspectorName
|
|
43294
|
+
}));
|
|
43295
|
+
}, [inspectionType, inspectionDate, inspectorName]);
|
|
42801
43296
|
const inspectionTypeOptions = [{
|
|
42802
|
-
|
|
43297
|
+
i18nKey: "ES_COMMON_SELECT",
|
|
42803
43298
|
code: ""
|
|
43299
|
+
}, {
|
|
43300
|
+
i18nKey: "New Connection Visit",
|
|
43301
|
+
code: "new_connection_visit"
|
|
42804
43302
|
}];
|
|
42805
43303
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
42806
43304
|
style: {
|
|
@@ -42836,7 +43334,7 @@ const InspectionInformation = () => {
|
|
|
42836
43334
|
}
|
|
42837
43335
|
}, "*")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
42838
43336
|
option: inspectionTypeOptions,
|
|
42839
|
-
optionKey: "
|
|
43337
|
+
optionKey: "i18nKey",
|
|
42840
43338
|
id: "inspectionType",
|
|
42841
43339
|
selected: inspectionType,
|
|
42842
43340
|
select: setInspectionType,
|
|
@@ -43811,6 +44309,14 @@ const ApplicationDetails = props => {
|
|
|
43811
44309
|
function onActionSelect(action) {
|
|
43812
44310
|
sessionStorage.setItem("SELECTED_ACTION", action === null || action === void 0 ? void 0 : action.action);
|
|
43813
44311
|
if (action) {
|
|
44312
|
+
if ((action === null || action === void 0 ? void 0 : action.action) === "PAY" && !(action !== null && action !== void 0 && action.redirectionUrl) && !(action !== null && action !== void 0 && action.redirectionUrll)) {
|
|
44313
|
+
if (window.location.href.includes("/employee")) {
|
|
44314
|
+
history.push("/digit-ui/employee/payment/collect/" + businessService + "/" + applicationNumber + "?tenantId=" + tenantId);
|
|
44315
|
+
} else {
|
|
44316
|
+
history.push("/digit-ui/citizen/payment/my-bills/" + businessService + "/" + applicationNumber + "?tenantId=" + tenantId);
|
|
44317
|
+
}
|
|
44318
|
+
return;
|
|
44319
|
+
}
|
|
43814
44320
|
if (action !== null && action !== void 0 && action.isToast) {
|
|
43815
44321
|
setShowToast({
|
|
43816
44322
|
key: "error",
|
|
@@ -45144,11 +45650,7 @@ const ActivateConnection = () => {
|
|
|
45144
45650
|
if (isEnableLoader || isLoading || isappdetailsLoading) {
|
|
45145
45651
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
45146
45652
|
}
|
|
45147
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
45148
|
-
style: {
|
|
45149
|
-
marginLeft: "15px"
|
|
45150
|
-
}
|
|
45151
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, null, t(config.head))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormComposer, {
|
|
45653
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormComposer, {
|
|
45152
45654
|
config: config.body,
|
|
45153
45655
|
userType: "employee",
|
|
45154
45656
|
defaultValues: defaultValues,
|
|
@@ -45520,7 +46022,7 @@ const EditApplication$1 = () => {
|
|
|
45520
46022
|
propertyIds: propertyId
|
|
45521
46023
|
},
|
|
45522
46024
|
tenantId: tenantId,
|
|
45523
|
-
enabled: propertyId && propertyId
|
|
46025
|
+
enabled: propertyId && propertyId !== "" ? true : false,
|
|
45524
46026
|
privacy: Digit.Utils.getPrivacyObject()
|
|
45525
46027
|
}),
|
|
45526
46028
|
propertyDetails = _Digit$Hooks$pt$usePr.data;
|
|
@@ -45587,7 +46089,7 @@ const EditApplication$1 = () => {
|
|
|
45587
46089
|
if (!lodash.isEqual(sessionFormData, formData)) {
|
|
45588
46090
|
setSessionFormData(_extends({}, sessionFormData, formData));
|
|
45589
46091
|
}
|
|
45590
|
-
if (Object.keys(formState.errors).length > 0 && Object.keys(formState.errors).length
|
|
46092
|
+
if (Object.keys(formState.errors).length > 0 && Object.keys(formState.errors).length === 1 && formState.errors["owners"] && Object.values(formState.errors["owners"].type).filter(ob => ob.type === "required").length === 0 && !(formData !== null && formData !== void 0 && (_formData$cpt = formData.cpt) !== null && _formData$cpt !== void 0 && (_formData$cpt$details = _formData$cpt.details) !== null && _formData$cpt$details !== void 0 && _formData$cpt$details.propertyId)) setSubmitValve(true);else setSubmitValve(!Object.keys(formState.errors).length);
|
|
45591
46093
|
};
|
|
45592
46094
|
const onSubmit = function (data) {
|
|
45593
46095
|
try {
|
|
@@ -45604,7 +46106,7 @@ const EditApplication$1 = () => {
|
|
|
45604
46106
|
const details = sessionStorage.getItem("WS_EDIT_APPLICATION_DETAILS") ? JSON.parse(sessionStorage.getItem("WS_EDIT_APPLICATION_DETAILS")) : {};
|
|
45605
46107
|
return Promise.resolve(convertEditApplicationDetails(data, details, actionData)).then(function (convertAppData) {
|
|
45606
46108
|
var _data$ConnectionDetai, _data$ConnectionDetai2, _details$processInsta, _details$processInsta2, _details$processInsta3, _details$processInsta4;
|
|
45607
|
-
const reqDetails = (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai = data.ConnectionDetails) === null || _data$ConnectionDetai === void 0 ? void 0 : (_data$ConnectionDetai2 = _data$ConnectionDetai[0]) === null || _data$ConnectionDetai2 === void 0 ? void 0 : _data$ConnectionDetai2.serviceName)
|
|
46109
|
+
const reqDetails = (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai = data.ConnectionDetails) === null || _data$ConnectionDetai === void 0 ? void 0 : (_data$ConnectionDetai2 = _data$ConnectionDetai[0]) === null || _data$ConnectionDetai2 === void 0 ? void 0 : _data$ConnectionDetai2.serviceName) === "WATER" ? {
|
|
45608
46110
|
WaterConnection: convertAppData
|
|
45609
46111
|
} : {
|
|
45610
46112
|
SewerageConnection: convertAppData
|
|
@@ -45618,7 +46120,6 @@ const EditApplication$1 = () => {
|
|
|
45618
46120
|
key: "error",
|
|
45619
46121
|
message: error !== null && error !== void 0 && error.message ? error.message : error
|
|
45620
46122
|
});
|
|
45621
|
-
setTimeout(closeToastOfError, 5000);
|
|
45622
46123
|
setSubmitValve(true);
|
|
45623
46124
|
},
|
|
45624
46125
|
onSuccess: (data, variables) => {
|
|
@@ -45650,7 +46151,6 @@ const EditApplication$1 = () => {
|
|
|
45650
46151
|
if (enabledLoader || isConfigLoading) {
|
|
45651
46152
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
45652
46153
|
}
|
|
45653
|
-
console.log(config.body);
|
|
45654
46154
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
45655
46155
|
className: "employee-form-content"
|
|
45656
46156
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormComposer, {
|
|
@@ -48366,7 +48866,7 @@ const BulkBillGeneration = _ref => {
|
|
|
48366
48866
|
}));
|
|
48367
48867
|
};
|
|
48368
48868
|
|
|
48369
|
-
const ActionButton = _ref => {
|
|
48869
|
+
const ActionButton$1 = _ref => {
|
|
48370
48870
|
let onClick = _ref.onClick;
|
|
48371
48871
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
48372
48872
|
label: /*#__PURE__*/React__default.createElement(digitUiReactComponents.EditIcon, {
|
|
@@ -48485,7 +48985,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
48485
48985
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
48486
48986
|
label: t("WS_PROPERTY_ID_LABEL"),
|
|
48487
48987
|
text: "" + t(checkForNA(cpt === null || cpt === void 0 ? void 0 : cpt.propertyId)),
|
|
48488
|
-
actionButton: /*#__PURE__*/React__default.createElement(ActionButton, {
|
|
48988
|
+
actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
|
|
48489
48989
|
onClick: onEdit
|
|
48490
48990
|
})
|
|
48491
48991
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
@@ -48496,7 +48996,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
48496
48996
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
48497
48997
|
label: t("WS_SERVICE_TYPE"),
|
|
48498
48998
|
text: "" + t(checkForNA(((_connectionDetails = connectionDetails) === null || _connectionDetails === void 0 ? void 0 : (_connectionDetails$se = _connectionDetails.serviceType) === null || _connectionDetails$se === void 0 ? void 0 : _connectionDetails$se.i18nKey) || ((_connectionDetails2 = connectionDetails) === null || _connectionDetails2 === void 0 ? void 0 : (_connectionDetails2$s = _connectionDetails2.serviceType) === null || _connectionDetails2$s === void 0 ? void 0 : _connectionDetails2$s.code) || ((_connectionDetails3 = connectionDetails) === null || _connectionDetails3 === void 0 ? void 0 : _connectionDetails3.serviceType))),
|
|
48499
|
-
actionButton: /*#__PURE__*/React__default.createElement(ActionButton, {
|
|
48999
|
+
actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
|
|
48500
49000
|
onClick: onEdit
|
|
48501
49001
|
})
|
|
48502
49002
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
@@ -48543,7 +49043,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
48543
49043
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
48544
49044
|
label: t("WS_OWN_DETAIL_NAME"),
|
|
48545
49045
|
text: "" + t(checkForNA((_holderDetails = holderDetails) === null || _holderDetails === void 0 ? void 0 : _holderDetails.name)),
|
|
48546
|
-
actionButton: /*#__PURE__*/React__default.createElement(ActionButton, {
|
|
49046
|
+
actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
|
|
48547
49047
|
onClick: onEdit
|
|
48548
49048
|
})
|
|
48549
49049
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
@@ -48578,7 +49078,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
48578
49078
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
48579
49079
|
label: t("WS_ZRO_LOCATION"),
|
|
48580
49080
|
text: "" + t(checkForNA(((_propertyAddress = propertyAddress) === null || _propertyAddress === void 0 ? void 0 : (_propertyAddress$zro = _propertyAddress.zro) === null || _propertyAddress$zro === void 0 ? void 0 : _propertyAddress$zro.name) || ((_propertyAddress2 = propertyAddress) === null || _propertyAddress2 === void 0 ? void 0 : _propertyAddress2.zro) || ((_propertyAddress3 = propertyAddress) === null || _propertyAddress3 === void 0 ? void 0 : _propertyAddress3.zroLocation) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zroLocation) || ((_propertyAddress4 = propertyAddress) === null || _propertyAddress4 === void 0 ? void 0 : (_propertyAddress4$add = _propertyAddress4.additionalDetails) === null || _propertyAddress4$add === void 0 ? void 0 : _propertyAddress4$add.zroLocation))),
|
|
48581
|
-
actionButton: /*#__PURE__*/React__default.createElement(ActionButton, {
|
|
49081
|
+
actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
|
|
48582
49082
|
onClick: onEdit
|
|
48583
49083
|
})
|
|
48584
49084
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
@@ -48643,7 +49143,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
48643
49143
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
48644
49144
|
label: t("WS_CATEGORY_TYPE"),
|
|
48645
49145
|
text: "" + t(checkForNA((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT = useDetails.categoryType) === null || _useDetails$categoryT === void 0 ? void 0 : _useDetails$categoryT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT2 = useDetails.categoryType) === null || _useDetails$categoryT2 === void 0 ? void 0 : _useDetails$categoryT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.categoryType))),
|
|
48646
|
-
actionButton: /*#__PURE__*/React__default.createElement(ActionButton, {
|
|
49146
|
+
actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
|
|
48647
49147
|
onClick: onEdit
|
|
48648
49148
|
})
|
|
48649
49149
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
@@ -48678,7 +49178,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
48678
49178
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
48679
49179
|
label: t("WS_DJB_EMPLOYEE"),
|
|
48680
49180
|
text: "" + (djbEmployee !== null && djbEmployee !== void 0 && djbEmployee.isDjbEmployee ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")),
|
|
48681
|
-
actionButton: /*#__PURE__*/React__default.createElement(ActionButton, {
|
|
49181
|
+
actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
|
|
48682
49182
|
onClick: onEdit
|
|
48683
49183
|
})
|
|
48684
49184
|
}), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.isDjbEmployee) && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
@@ -48698,7 +49198,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
48698
49198
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
48699
49199
|
label: t("WS_NAME_OF_BANK"),
|
|
48700
49200
|
text: "" + t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName)),
|
|
48701
|
-
actionButton: /*#__PURE__*/React__default.createElement(ActionButton, {
|
|
49201
|
+
actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
|
|
48702
49202
|
onClick: onEdit
|
|
48703
49203
|
})
|
|
48704
49204
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
@@ -48722,7 +49222,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
48722
49222
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
48723
49223
|
label: t("" + (doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.replaceAll(".", "_"))),
|
|
48724
49224
|
text: checkForNA(doc === null || doc === void 0 ? void 0 : doc.documentUid),
|
|
48725
|
-
actionButton: index === 0 ? /*#__PURE__*/React__default.createElement(ActionButton, {
|
|
49225
|
+
actionButton: index === 0 ? /*#__PURE__*/React__default.createElement(ActionButton$1, {
|
|
48726
49226
|
onClick: onEdit
|
|
48727
49227
|
}) : null
|
|
48728
49228
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
@@ -48745,7 +49245,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
48745
49245
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
48746
49246
|
label: t("WS_SUBMITTED_BY"),
|
|
48747
49247
|
text: "" + t((declaration === null || declaration === void 0 ? void 0 : (_declaration$submitte = declaration.submittedBy) === null || _declaration$submitte === void 0 ? void 0 : _declaration$submitte.name) || (declaration === null || declaration === void 0 ? void 0 : (_declaration$submitte2 = declaration.submittedBy) === null || _declaration$submitte2 === void 0 ? void 0 : _declaration$submitte2.code) || (declaration === null || declaration === void 0 ? void 0 : declaration.submittedBy)),
|
|
48748
|
-
actionButton: /*#__PURE__*/React__default.createElement(ActionButton, {
|
|
49248
|
+
actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
|
|
48749
49249
|
onClick: onEdit
|
|
48750
49250
|
})
|
|
48751
49251
|
}), ((declaration === null || declaration === void 0 ? void 0 : declaration.signatureFileStoreId) || (declaration === null || declaration === void 0 ? void 0 : declaration.signatureFile)) && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
@@ -48927,7 +49427,11 @@ const OLDApplication = () => {
|
|
|
48927
49427
|
key: "propertyAddress",
|
|
48928
49428
|
component: "WSPropertyLocationDetails",
|
|
48929
49429
|
withoutLabel: true,
|
|
48930
|
-
isAutomaticFill: true
|
|
49430
|
+
isAutomaticFill: true,
|
|
49431
|
+
texts: {
|
|
49432
|
+
header: "PT_LOCATION_DETAILS " + t("(Automatic Fill by Property)")
|
|
49433
|
+
},
|
|
49434
|
+
defaultOpen: false
|
|
48931
49435
|
}]
|
|
48932
49436
|
});
|
|
48933
49437
|
} else if (compName === "PropertyWaterConnection") {
|
|
@@ -49012,9 +49516,6 @@ const OLDApplication = () => {
|
|
|
49012
49516
|
sessionStorage.setItem("FORMSTATE_ERRORS", JSON.stringify(formState === null || formState === void 0 ? void 0 : formState.errors));
|
|
49013
49517
|
}
|
|
49014
49518
|
};
|
|
49015
|
-
const closeToastOfError = () => {
|
|
49016
|
-
setShowToast(null);
|
|
49017
|
-
};
|
|
49018
49519
|
const onFormSubmit = data => {
|
|
49019
49520
|
var _data$cpt, _propertyDetails$Prop, _formStateErros$Conne, _Object$keys, _formStateErros$Conne2;
|
|
49020
49521
|
if (!(data !== null && data !== void 0 && (_data$cpt = data.cpt) !== null && _data$cpt !== void 0 && _data$cpt.id) && !(propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop = propertyDetails.Properties) !== null && _propertyDetails$Prop !== void 0 && _propertyDetails$Prop[0])) {
|
|
@@ -49199,7 +49700,6 @@ const OLDApplication = () => {
|
|
|
49199
49700
|
key: "error",
|
|
49200
49701
|
message: (error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : (_error$response$data$ = _error$response$data.Errors) === null || _error$response$data$ === void 0 ? void 0 : (_error$response$data$2 = _error$response$data$[0]) === null || _error$response$data$2 === void 0 ? void 0 : _error$response$data$2.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
|
|
49201
49702
|
});
|
|
49202
|
-
setTimeout(closeToastOfError, 5000);
|
|
49203
49703
|
},
|
|
49204
49704
|
onSuccess: function (waterData) {
|
|
49205
49705
|
try {
|
|
@@ -49218,7 +49718,6 @@ const OLDApplication = () => {
|
|
|
49218
49718
|
key: "error",
|
|
49219
49719
|
message: (error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : (_error$response2$data2 = _error$response2$data.Errors) === null || _error$response2$data2 === void 0 ? void 0 : (_error$response2$data3 = _error$response2$data2[0]) === null || _error$response2$data3 === void 0 ? void 0 : _error$response2$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
|
|
49220
49720
|
});
|
|
49221
|
-
setTimeout(closeToastOfError, 5000);
|
|
49222
49721
|
},
|
|
49223
49722
|
onSuccess: function (waterUpdateData) {
|
|
49224
49723
|
try {
|
|
@@ -49230,7 +49729,6 @@ const OLDApplication = () => {
|
|
|
49230
49729
|
key: "error",
|
|
49231
49730
|
message: (error === null || error === void 0 ? void 0 : (_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : (_error$response3$data = _error$response3.data) === null || _error$response3$data === void 0 ? void 0 : (_error$response3$data2 = _error$response3$data.Errors) === null || _error$response3$data2 === void 0 ? void 0 : (_error$response3$data3 = _error$response3$data2[0]) === null || _error$response3$data3 === void 0 ? void 0 : _error$response3$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
|
|
49232
49731
|
});
|
|
49233
|
-
setTimeout(closeToastOfError, 5000);
|
|
49234
49732
|
},
|
|
49235
49733
|
onSuccess: function (sewerageData) {
|
|
49236
49734
|
try {
|
|
@@ -49249,7 +49747,6 @@ const OLDApplication = () => {
|
|
|
49249
49747
|
key: "error",
|
|
49250
49748
|
message: (error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : (_error$response4$data3 = _error$response4$data2[0]) === null || _error$response4$data3 === void 0 ? void 0 : _error$response4$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
|
|
49251
49749
|
});
|
|
49252
|
-
setTimeout(closeToastOfError, 5000);
|
|
49253
49750
|
},
|
|
49254
49751
|
onSuccess: function (sewerageUpdateData) {
|
|
49255
49752
|
try {
|
|
@@ -49297,7 +49794,6 @@ const OLDApplication = () => {
|
|
|
49297
49794
|
key: "error",
|
|
49298
49795
|
message: (error === null || error === void 0 ? void 0 : (_error$response5 = error.response) === null || _error$response5 === void 0 ? void 0 : (_error$response5$data = _error$response5.data) === null || _error$response5$data === void 0 ? void 0 : (_error$response5$data2 = _error$response5$data.Errors) === null || _error$response5$data2 === void 0 ? void 0 : (_error$response5$data3 = _error$response5$data2[0]) === null || _error$response5$data3 === void 0 ? void 0 : _error$response5$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
|
|
49299
49796
|
});
|
|
49300
|
-
setTimeout(closeToastOfError, 5000);
|
|
49301
49797
|
},
|
|
49302
49798
|
onSuccess: function (data) {
|
|
49303
49799
|
try {
|
|
@@ -49315,7 +49811,6 @@ const OLDApplication = () => {
|
|
|
49315
49811
|
key: "error",
|
|
49316
49812
|
message: (error === null || error === void 0 ? void 0 : (_error$response6 = error.response) === null || _error$response6 === void 0 ? void 0 : (_error$response6$data = _error$response6.data) === null || _error$response6$data === void 0 ? void 0 : (_error$response6$data2 = _error$response6$data.Errors) === null || _error$response6$data2 === void 0 ? void 0 : (_error$response6$data3 = _error$response6$data2[0]) === null || _error$response6$data3 === void 0 ? void 0 : _error$response6$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
|
|
49317
49813
|
});
|
|
49318
|
-
setTimeout(closeToastOfError, 5000);
|
|
49319
49814
|
},
|
|
49320
49815
|
onSuccess: data => {
|
|
49321
49816
|
var _data$WaterConnection2, _data$WaterConnection3;
|
|
@@ -49347,7 +49842,6 @@ const OLDApplication = () => {
|
|
|
49347
49842
|
key: "error",
|
|
49348
49843
|
message: (error === null || error === void 0 ? void 0 : (_error$response7 = error.response) === null || _error$response7 === void 0 ? void 0 : (_error$response7$data = _error$response7.data) === null || _error$response7$data === void 0 ? void 0 : (_error$response7$data2 = _error$response7$data.Errors) === null || _error$response7$data2 === void 0 ? void 0 : (_error$response7$data3 = _error$response7$data2[0]) === null || _error$response7$data3 === void 0 ? void 0 : _error$response7$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
|
|
49349
49844
|
});
|
|
49350
|
-
setTimeout(closeToastOfError, 5000);
|
|
49351
49845
|
},
|
|
49352
49846
|
onSuccess: function (data) {
|
|
49353
49847
|
try {
|
|
@@ -49365,7 +49859,6 @@ const OLDApplication = () => {
|
|
|
49365
49859
|
key: "error",
|
|
49366
49860
|
message: (error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : (_error$response8$data3 = _error$response8$data2[0]) === null || _error$response8$data3 === void 0 ? void 0 : _error$response8$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
|
|
49367
49861
|
});
|
|
49368
|
-
setTimeout(closeToastOfError, 5000);
|
|
49369
49862
|
},
|
|
49370
49863
|
onSuccess: data => {
|
|
49371
49864
|
var _data$SewerageConnect2, _data$SewerageConnect3;
|
|
@@ -49433,6 +49926,7 @@ const OLDApplication = () => {
|
|
|
49433
49926
|
cardFormWrapperClassName: "new-application-card"
|
|
49434
49927
|
}), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
49435
49928
|
isDleteBtn: true,
|
|
49929
|
+
duration: 5000,
|
|
49436
49930
|
error: (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? true : false,
|
|
49437
49931
|
warning: showToast === null || showToast === void 0 ? void 0 : showToast.warning,
|
|
49438
49932
|
label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
|