@mseva/upyog-ui-module-chb 1.1.63 → 1.1.65
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +206 -212
- package/dist/index.modern.js.map +1 -1
- package/package.json +3 -3
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TickMark, CardSubHeader, Modal as Modal$1, CardLabelDesc, CardLabel, CardText, Card, FormStep, Dropdown, TextArea, Loader as Loader$1, TextInput, MobileNumber, Toast, LabelFieldPair, UploadFile, Table, KeyNote, SubmitBar, CardHeader, InfoIcon, Calender, CheckPoint, ConnectingCheckPoints, AppContainer, BackButton, PrivateRoute, PDFSvg as PDFSvg$
|
|
1
|
+
import { TickMark, CardSubHeader, Modal as Modal$1, CardLabelDesc, CardLabel, CardText, Card, FormStep, Dropdown, TextArea, Loader as Loader$1, TextInput, MobileNumber, Toast, LabelFieldPair, UploadFile, Table, KeyNote, SubmitBar, CardHeader, InfoIcon, Calender, CheckPoint, ConnectingCheckPoints, AppContainer, BackButton, PrivateRoute, PDFSvg as PDFSvg$1, StatusTable, Row, CardSectionHeader, CheckBox, LinkButton, Banner, Header, MultiLink, TelePhone, DisplayPhotos, SearchField, FilterFormField, RadioButtons, ComplaintIcon, InboxComposer, SearchForm, CardLabelError, DatePicker, EmployeeModuleCard, CloseSvg, Localities, RemoveableTag, FormComposer, ActionBar, Menu, OTPInput, Rating, CitizenHomeCard } from '@mseva/digit-ui-react-components';
|
|
2
2
|
import React, { useState, useEffect, useRef, useMemo, useCallback, Fragment as Fragment$1, useReducer } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { useLocation, useRouteMatch, useHistory, Switch, Route, Redirect, Link, useParams } from 'react-router-dom';
|
|
@@ -542,6 +542,10 @@ function createCommonjsModule(fn, module) {
|
|
|
542
542
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
543
543
|
}
|
|
544
544
|
|
|
545
|
+
function getCjsExportFromNamespace (n) {
|
|
546
|
+
return n && n['default'] || n;
|
|
547
|
+
}
|
|
548
|
+
|
|
545
549
|
var jquery = createCommonjsModule(function (module) {
|
|
546
550
|
(function (global, factory) {
|
|
547
551
|
|
|
@@ -17655,13 +17659,20 @@ const CommunityHallSearch = ({
|
|
|
17655
17659
|
}));
|
|
17656
17660
|
};
|
|
17657
17661
|
|
|
17658
|
-
const getTimelineAcknowledgementData = (workflowDetails, tenantInfo, t) => {
|
|
17662
|
+
const getTimelineAcknowledgementData = (workflowDetails, tenantInfo, pdfFiles = {}, t) => {
|
|
17659
17663
|
var _workflowDetails$data, _workflowDetails$data2, _processInstances$, _processInstances$2, _processInstances$3, _timeline$, _timeline$2, _timeline$3, _timeline$4;
|
|
17664
|
+
console.log('pdfFiles', pdfFiles);
|
|
17660
17665
|
const timeline = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : _workflowDetails$data.timeline) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.timeline) || [];
|
|
17661
17666
|
const processInstances = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data2 = workflowDetails.data) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.processInstances) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.processInstances) || [];
|
|
17662
17667
|
const businessId = (processInstances === null || processInstances === void 0 ? void 0 : (_processInstances$ = processInstances[0]) === null || _processInstances$ === void 0 ? void 0 : _processInstances$.businessId) || "N/A";
|
|
17663
17668
|
const businessService = (processInstances === null || processInstances === void 0 ? void 0 : (_processInstances$2 = processInstances[0]) === null || _processInstances$2 === void 0 ? void 0 : _processInstances$2.businessService) || "N/A";
|
|
17664
17669
|
const moduleName = (processInstances === null || processInstances === void 0 ? void 0 : (_processInstances$3 = processInstances[0]) === null || _processInstances$3 === void 0 ? void 0 : _processInstances$3.moduleName) || "N/A";
|
|
17670
|
+
const pdfDownloadLink = (documents, fileStoreId) => {
|
|
17671
|
+
var _downloadLink$split;
|
|
17672
|
+
const downloadLink = (documents === null || documents === void 0 ? void 0 : documents[fileStoreId]) || "";
|
|
17673
|
+
const formats = (downloadLink === null || downloadLink === void 0 ? void 0 : (_downloadLink$split = downloadLink.split(",")) === null || _downloadLink$split === void 0 ? void 0 : _downloadLink$split.filter(Boolean)) || [];
|
|
17674
|
+
return (formats === null || formats === void 0 ? void 0 : formats.find(link => !(link !== null && link !== void 0 && link.includes("large")) && !(link !== null && link !== void 0 && link.includes("medium")) && !(link !== null && link !== void 0 && link.includes("small")))) || (formats === null || formats === void 0 ? void 0 : formats[0]) || "";
|
|
17675
|
+
};
|
|
17665
17676
|
const timelineRows = timeline.map((item, index) => {
|
|
17666
17677
|
var _item$auditDetails, _item$auditDetails2, _item$assigner, _item$assigner2, _item$assigner3, _item$wfComment;
|
|
17667
17678
|
const createdDate = (item === null || item === void 0 ? void 0 : (_item$auditDetails = item.auditDetails) === null || _item$auditDetails === void 0 ? void 0 : _item$auditDetails.created) || "N/A";
|
|
@@ -17688,7 +17699,8 @@ const getTimelineAcknowledgementData = (workflowDetails, tenantInfo, t) => {
|
|
|
17688
17699
|
documents: documents.map(doc => ({
|
|
17689
17700
|
name: (doc === null || doc === void 0 ? void 0 : doc.fileName) || (doc === null || doc === void 0 ? void 0 : doc.documentType) || "Document",
|
|
17690
17701
|
type: (doc === null || doc === void 0 ? void 0 : doc.documentType) || "Document",
|
|
17691
|
-
fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId
|
|
17702
|
+
fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
|
|
17703
|
+
link: pdfDownloadLink(pdfFiles, doc === null || doc === void 0 ? void 0 : doc.fileStoreId)
|
|
17692
17704
|
})),
|
|
17693
17705
|
hasDocuments: documents.length > 0
|
|
17694
17706
|
};
|
|
@@ -17872,18 +17884,30 @@ const ApplicationTimeline = ({
|
|
|
17872
17884
|
workflowDetails,
|
|
17873
17885
|
t
|
|
17874
17886
|
}) => {
|
|
17875
|
-
var _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _timeline$;
|
|
17887
|
+
var _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _timeline$;
|
|
17876
17888
|
const details = (workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.data) || workflowDetails;
|
|
17877
17889
|
const timeline = useMemo(() => normalizeTimeline({
|
|
17878
17890
|
data: details
|
|
17879
17891
|
}), [details]);
|
|
17880
17892
|
const currentState = workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data2 = workflowDetails.data) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2.timeline) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3[0]) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.state;
|
|
17893
|
+
const {
|
|
17894
|
+
isLoading,
|
|
17895
|
+
data
|
|
17896
|
+
} = Digit.Hooks.ads.useADSDocumentSearch({
|
|
17897
|
+
value: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data5 = workflowDetails.data) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.timeline) === null || _workflowDetails$data6 === void 0 ? void 0 : _workflowDetails$data6.flatMap(item => item === null || item === void 0 ? void 0 : item.wfDocuments)) || []
|
|
17898
|
+
}, {
|
|
17899
|
+
value: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data7 = workflowDetails.data) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.timeline) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.flatMap(item => item === null || item === void 0 ? void 0 : item.wfDocuments)) || []
|
|
17900
|
+
}, null, 0);
|
|
17901
|
+
console.log('data of doc hook', data);
|
|
17881
17902
|
const handleDownloadPDF = useCallback(() => {
|
|
17882
|
-
|
|
17883
|
-
|
|
17884
|
-
|
|
17885
|
-
|
|
17903
|
+
if (!isLoading) {
|
|
17904
|
+
const tenantInfo = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY") || {};
|
|
17905
|
+
const acknowledgementData = getTimelineAcknowledgementData(workflowDetails, tenantInfo, (data === null || data === void 0 ? void 0 : data.pdfFiles) || {}, t);
|
|
17906
|
+
Digit.Utils.pdf.generateTimelinePDF(acknowledgementData);
|
|
17907
|
+
}
|
|
17908
|
+
}, [workflowDetails, data, t]);
|
|
17886
17909
|
if (!(timeline !== null && timeline !== void 0 && timeline.length)) return null;
|
|
17910
|
+
if (isLoading) return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
17887
17911
|
return /*#__PURE__*/React.createElement("div", {
|
|
17888
17912
|
className: "timeline-hoc-container"
|
|
17889
17913
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -18220,6 +18244,9 @@ function CHBDocument({
|
|
|
18220
18244
|
const {
|
|
18221
18245
|
t
|
|
18222
18246
|
} = useTranslation();
|
|
18247
|
+
const tenantId = window.location.href.includes("employee") ? Digit.ULBService.getCurrentPermanentCity() : localStorage.getItem("CITIZEN.CITY");
|
|
18248
|
+
console.log("value==", value);
|
|
18249
|
+
console.log("Code==", Code);
|
|
18223
18250
|
const {
|
|
18224
18251
|
isLoading,
|
|
18225
18252
|
isError,
|
|
@@ -18240,14 +18267,16 @@ function CHBDocument({
|
|
|
18240
18267
|
if (isLoading) {
|
|
18241
18268
|
return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
18242
18269
|
}
|
|
18243
|
-
console.log("
|
|
18270
|
+
console.log("data====", data);
|
|
18271
|
+
console.log("documents====", documents);
|
|
18244
18272
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
18245
18273
|
style: {
|
|
18246
18274
|
display: "flex",
|
|
18247
18275
|
flexWrap: "wrap"
|
|
18248
18276
|
}
|
|
18249
|
-
}, documents.map((document, index) => {
|
|
18250
|
-
|
|
18277
|
+
}, documents === null || documents === void 0 ? void 0 : documents.map((document, index) => {
|
|
18278
|
+
const fileId = document.fileStoreId || document.filestoreId;
|
|
18279
|
+
let documentLink = pdfDownloadLink$1(data.pdfFiles, fileId);
|
|
18251
18280
|
return /*#__PURE__*/React.createElement("a", {
|
|
18252
18281
|
target: "_",
|
|
18253
18282
|
href: documentLink,
|
|
@@ -18255,7 +18284,7 @@ function CHBDocument({
|
|
|
18255
18284
|
minWidth: "160px"
|
|
18256
18285
|
},
|
|
18257
18286
|
key: index
|
|
18258
|
-
}, /*#__PURE__*/React.createElement(PDFSvg$
|
|
18287
|
+
}, /*#__PURE__*/React.createElement(PDFSvg$1, null), showFileName ? /*#__PURE__*/React.createElement("p", {
|
|
18259
18288
|
style: {
|
|
18260
18289
|
marginTop: "8px"
|
|
18261
18290
|
}
|
|
@@ -41885,13 +41914,20 @@ const CHBApplicationDetails = () => {
|
|
|
41885
41914
|
return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
41886
41915
|
}
|
|
41887
41916
|
const getChbAcknowledgement = async () => {
|
|
41888
|
-
|
|
41889
|
-
|
|
41890
|
-
|
|
41891
|
-
|
|
41892
|
-
|
|
41893
|
-
|
|
41894
|
-
|
|
41917
|
+
try {
|
|
41918
|
+
setLoading(true);
|
|
41919
|
+
const applications = application || {};
|
|
41920
|
+
console.log("applications for chbb", applications);
|
|
41921
|
+
const tenantInfo = tenants.find(tenant => tenant.code === applications.tenantId);
|
|
41922
|
+
const acknowldgementDataAPI = await getChbAcknowledgementData({
|
|
41923
|
+
...applications
|
|
41924
|
+
}, tenantInfo, t);
|
|
41925
|
+
Digit.Utils.pdf.generate(acknowldgementDataAPI);
|
|
41926
|
+
} catch (err) {
|
|
41927
|
+
console.error(err);
|
|
41928
|
+
} finally {
|
|
41929
|
+
setLoading(false);
|
|
41930
|
+
}
|
|
41895
41931
|
};
|
|
41896
41932
|
let documentDate = t("CS_NA");
|
|
41897
41933
|
if (chb_details !== null && chb_details !== void 0 && (_chb_details$addition = chb_details.additionalDetails) !== null && _chb_details$addition !== void 0 && _chb_details$addition.documentDate) {
|
|
@@ -41905,64 +41941,78 @@ const CHBApplicationDetails = () => {
|
|
|
41905
41941
|
payments,
|
|
41906
41942
|
...params
|
|
41907
41943
|
}) {
|
|
41908
|
-
|
|
41909
|
-
|
|
41910
|
-
|
|
41911
|
-
|
|
41912
|
-
|
|
41913
|
-
|
|
41914
|
-
|
|
41915
|
-
|
|
41916
|
-
|
|
41917
|
-
|
|
41918
|
-
|
|
41919
|
-
|
|
41920
|
-
|
|
41921
|
-
|
|
41922
|
-
|
|
41923
|
-
|
|
41924
|
-
|
|
41925
|
-
|
|
41926
|
-
|
|
41927
|
-
|
|
41944
|
+
try {
|
|
41945
|
+
var _data$hallsBookingApp;
|
|
41946
|
+
setLoading(true);
|
|
41947
|
+
let application = data === null || data === void 0 ? void 0 : (_data$hallsBookingApp = data.hallsBookingApplication) === null || _data$hallsBookingApp === void 0 ? void 0 : _data$hallsBookingApp[0];
|
|
41948
|
+
let fileStoreId = application === null || application === void 0 ? void 0 : application.paymentReceiptFilestoreId;
|
|
41949
|
+
if (!fileStoreId) {
|
|
41950
|
+
var _response, _response2;
|
|
41951
|
+
let response = {
|
|
41952
|
+
filestoreIds: [payments === null || payments === void 0 ? void 0 : payments.fileStoreId]
|
|
41953
|
+
};
|
|
41954
|
+
response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
41955
|
+
Payments: [{
|
|
41956
|
+
...payments,
|
|
41957
|
+
...application
|
|
41958
|
+
}]
|
|
41959
|
+
}, "chbservice-receipt");
|
|
41960
|
+
const updatedApplication = {
|
|
41961
|
+
...application,
|
|
41962
|
+
paymentReceiptFilestoreId: (_response = response) === null || _response === void 0 ? void 0 : _response.filestoreIds[0]
|
|
41963
|
+
};
|
|
41964
|
+
await mutation.mutateAsync({
|
|
41965
|
+
hallsBookingApplication: updatedApplication
|
|
41966
|
+
});
|
|
41967
|
+
fileStoreId = (_response2 = response) === null || _response2 === void 0 ? void 0 : _response2.filestoreIds[0];
|
|
41968
|
+
refetch();
|
|
41969
|
+
}
|
|
41970
|
+
const fileStore = await Digit.PaymentService.printReciept(tenantId, {
|
|
41971
|
+
fileStoreIds: fileStoreId
|
|
41928
41972
|
});
|
|
41929
|
-
fileStoreId
|
|
41930
|
-
|
|
41973
|
+
window.open(fileStore[fileStoreId], "_blank");
|
|
41974
|
+
} catch (error) {
|
|
41975
|
+
console.error("Sanction Letter download error:", error);
|
|
41976
|
+
} finally {
|
|
41977
|
+
setLoading(false);
|
|
41931
41978
|
}
|
|
41932
|
-
const fileStore = await Digit.PaymentService.printReciept(tenantId, {
|
|
41933
|
-
fileStoreIds: fileStoreId
|
|
41934
|
-
});
|
|
41935
|
-
window.open(fileStore[fileStoreId], "_blank");
|
|
41936
41979
|
}
|
|
41937
41980
|
async function getPermissionLetter({
|
|
41938
41981
|
tenantId,
|
|
41939
41982
|
payments,
|
|
41940
41983
|
...params
|
|
41941
41984
|
}) {
|
|
41942
|
-
|
|
41943
|
-
|
|
41944
|
-
|
|
41945
|
-
|
|
41946
|
-
|
|
41947
|
-
|
|
41948
|
-
|
|
41949
|
-
|
|
41950
|
-
|
|
41951
|
-
|
|
41952
|
-
|
|
41953
|
-
|
|
41954
|
-
|
|
41955
|
-
|
|
41956
|
-
|
|
41957
|
-
|
|
41958
|
-
|
|
41959
|
-
|
|
41960
|
-
|
|
41985
|
+
try {
|
|
41986
|
+
setLoading(true);
|
|
41987
|
+
let application = {
|
|
41988
|
+
hallsBookingApplication: ((data === null || data === void 0 ? void 0 : data.hallsBookingApplication) || []).map(app => {
|
|
41989
|
+
return {
|
|
41990
|
+
...app,
|
|
41991
|
+
bookingSlotDetails: [...(app.bookingSlotDetails || [])].sort((a, b) => {
|
|
41992
|
+
return new Date(a.bookingDate) - new Date(b.bookingDate);
|
|
41993
|
+
})
|
|
41994
|
+
};
|
|
41995
|
+
})
|
|
41996
|
+
};
|
|
41997
|
+
let fileStoreId = payments === null || payments === void 0 ? void 0 : payments.fileStoreId;
|
|
41998
|
+
if (!fileStoreId) {
|
|
41999
|
+
const response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
42000
|
+
Payments: [{
|
|
42001
|
+
...payments,
|
|
42002
|
+
...application
|
|
42003
|
+
}]
|
|
42004
|
+
}, "chb-permissionletter");
|
|
42005
|
+
fileStoreId = response === null || response === void 0 ? void 0 : response.filestoreIds[0];
|
|
42006
|
+
}
|
|
42007
|
+
const fileStore = await Digit.PaymentService.printReciept(tenantId, {
|
|
42008
|
+
fileStoreIds: fileStoreId
|
|
42009
|
+
});
|
|
42010
|
+
window.open(fileStore[fileStoreId], "_blank");
|
|
42011
|
+
} catch (error) {
|
|
42012
|
+
console.error("Sanction Letter download error:", error);
|
|
42013
|
+
} finally {
|
|
42014
|
+
setLoading(false);
|
|
41961
42015
|
}
|
|
41962
|
-
const fileStore = await Digit.PaymentService.printReciept(tenantId, {
|
|
41963
|
-
fileStoreIds: fileStoreId
|
|
41964
|
-
});
|
|
41965
|
-
window.open(fileStore[fileStoreId], "_blank");
|
|
41966
42016
|
}
|
|
41967
42017
|
let dowloadOptions = [];
|
|
41968
42018
|
dowloadOptions.push({
|
|
@@ -42014,6 +42064,7 @@ const CHBApplicationDetails = () => {
|
|
|
42014
42064
|
bookingDate: slot.bookingDate,
|
|
42015
42065
|
bookingStatus: t(`WF_CHB_${slot === null || slot === void 0 ? void 0 : slot.status}`)
|
|
42016
42066
|
}))) || [];
|
|
42067
|
+
console.log("docs===", docs);
|
|
42017
42068
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
42018
42069
|
className: "cardHeaderWithOptions",
|
|
42019
42070
|
style: {
|
|
@@ -42024,7 +42075,7 @@ const CHBApplicationDetails = () => {
|
|
|
42024
42075
|
styles: {
|
|
42025
42076
|
fontSize: "32px"
|
|
42026
42077
|
}
|
|
42027
|
-
}, t("CHB_BOOKING_DETAILS")), dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement(MultiLink, {
|
|
42078
|
+
}, t("CHB_BOOKING_DETAILS")), loading && /*#__PURE__*/React.createElement(Loader$1, null), dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement(MultiLink, {
|
|
42028
42079
|
className: "multilinkWrapper",
|
|
42029
42080
|
onHeadClick: () => setShowOptions(!showOptions),
|
|
42030
42081
|
displayOptions: showOptions,
|
|
@@ -42429,7 +42480,7 @@ const useInboxMobileCardsData = ({
|
|
|
42429
42480
|
};
|
|
42430
42481
|
return {
|
|
42431
42482
|
data: dataForMobileInboxCards,
|
|
42432
|
-
linkPrefix: `${parentRoute}/
|
|
42483
|
+
linkPrefix: `${parentRoute}/applicationsearch/application-details/`,
|
|
42433
42484
|
serviceRequestIdKey: t("NOC_HOME_SEARCH_RESULTS_APP_NO_LABEL"),
|
|
42434
42485
|
MobileSortFormValues
|
|
42435
42486
|
};
|
|
@@ -45033,60 +45084,59 @@ const StepWrapper = ({
|
|
|
45033
45084
|
const {
|
|
45034
45085
|
t
|
|
45035
45086
|
} = useTranslation();
|
|
45036
|
-
const stepStyle = isActive => ({
|
|
45087
|
+
const stepStyle = (isActive, isLast) => ({
|
|
45037
45088
|
display: "flex",
|
|
45038
45089
|
alignItems: "center",
|
|
45039
45090
|
justifyContent: "flex-end",
|
|
45040
|
-
flex:
|
|
45041
|
-
color: isActive ? "#
|
|
45042
|
-
padding: "
|
|
45043
|
-
width: "260px"
|
|
45091
|
+
flex: "0 0 auto",
|
|
45092
|
+
color: isActive ? "#0D43A7" : "#9CA3AF",
|
|
45093
|
+
padding: "14px 12px",
|
|
45094
|
+
width: "260px",
|
|
45095
|
+
marginBottom: isLast ? "6px" : "18px"
|
|
45044
45096
|
});
|
|
45045
45097
|
const circleStyle = stepNumber => {
|
|
45046
|
-
|
|
45047
|
-
if (stepNumber <= _currentStep) {
|
|
45048
|
-
backgroundColor = "#0D43A7";
|
|
45049
|
-
} else {
|
|
45050
|
-
backgroundColor = "#FFFFFF";
|
|
45051
|
-
}
|
|
45098
|
+
const completed = stepNumber <= _currentStep;
|
|
45052
45099
|
return {
|
|
45053
|
-
width: "
|
|
45054
|
-
height: "
|
|
45100
|
+
width: "56px",
|
|
45101
|
+
height: "56px",
|
|
45055
45102
|
borderRadius: "50%",
|
|
45056
|
-
|
|
45057
|
-
color:
|
|
45103
|
+
background: completed ? "linear-gradient(135deg,#2563eb,#7c3aed)" : "#ffffff",
|
|
45104
|
+
color: completed ? "#ffffff" : "#0f172a",
|
|
45058
45105
|
display: "flex",
|
|
45059
45106
|
alignItems: "center",
|
|
45060
45107
|
justifyContent: "center",
|
|
45061
|
-
marginBottom: "
|
|
45062
|
-
fontWeight:
|
|
45108
|
+
marginBottom: "8px",
|
|
45109
|
+
fontWeight: 600,
|
|
45063
45110
|
fontSize: "18px",
|
|
45064
|
-
border:
|
|
45111
|
+
border: completed ? "none" : "1px solid rgba(15,23,42,0.08)",
|
|
45112
|
+
boxShadow: completed ? "0 6px 18px rgba(37,99,235,0.18)" : "0 2px 6px rgba(2,6,23,0.04)",
|
|
45065
45113
|
position: "relative"
|
|
45066
45114
|
};
|
|
45067
45115
|
};
|
|
45068
45116
|
const labelStyle = {
|
|
45069
|
-
fontSize: "
|
|
45070
|
-
color: "#
|
|
45071
|
-
fontWeight:
|
|
45072
|
-
fontFamily: "Noto Sans,sans-serif",
|
|
45073
|
-
marginRight: "
|
|
45117
|
+
fontSize: "16px",
|
|
45118
|
+
color: "#0f172a",
|
|
45119
|
+
fontWeight: 600,
|
|
45120
|
+
fontFamily: "Noto Sans, sans-serif",
|
|
45121
|
+
marginRight: "8px",
|
|
45122
|
+
textAlign: "right"
|
|
45074
45123
|
};
|
|
45075
45124
|
const stepNumberStyle = {
|
|
45076
|
-
fontSize: "
|
|
45077
|
-
color: "#
|
|
45078
|
-
fontWeight:
|
|
45079
|
-
fontFamily: "Noto Sans,sans-serif",
|
|
45080
|
-
margin: "
|
|
45125
|
+
fontSize: "14px",
|
|
45126
|
+
color: "#6b7280",
|
|
45127
|
+
fontWeight: 500,
|
|
45128
|
+
fontFamily: "Noto Sans, sans-serif",
|
|
45129
|
+
margin: "0 6px 0 0"
|
|
45081
45130
|
};
|
|
45082
45131
|
const lineStyle = {
|
|
45083
45132
|
position: "absolute",
|
|
45084
|
-
width: "
|
|
45085
|
-
height: "
|
|
45086
|
-
backgroundColor: "
|
|
45133
|
+
width: "3px",
|
|
45134
|
+
height: "56px",
|
|
45135
|
+
backgroundColor: "rgba(15,23,42,0.06)",
|
|
45087
45136
|
left: "50%",
|
|
45088
45137
|
top: "100%",
|
|
45089
|
-
transform: "translateX(-50%)"
|
|
45138
|
+
transform: "translateX(-50%)",
|
|
45139
|
+
borderRadius: "2px"
|
|
45090
45140
|
};
|
|
45091
45141
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
45092
45142
|
const totalSteps = _stepsList.length;
|
|
@@ -45096,22 +45146,25 @@ const StepWrapper = ({
|
|
|
45096
45146
|
width: "100%",
|
|
45097
45147
|
display: "flex",
|
|
45098
45148
|
flexDirection: "row",
|
|
45099
|
-
alignItems: "
|
|
45100
|
-
justifyContent: "flex-start"
|
|
45149
|
+
alignItems: "flex-start",
|
|
45150
|
+
justifyContent: "flex-start",
|
|
45151
|
+
gap: "24px"
|
|
45101
45152
|
}
|
|
45102
45153
|
}, /*#__PURE__*/React.createElement("div", {
|
|
45103
45154
|
className: "stepper-navigation-bar",
|
|
45104
45155
|
style: {
|
|
45105
45156
|
display: "flex",
|
|
45106
45157
|
flexDirection: "column",
|
|
45107
|
-
|
|
45108
|
-
|
|
45158
|
+
alignItems: "center",
|
|
45159
|
+
padding: "18px",
|
|
45160
|
+
minWidth: "120px",
|
|
45161
|
+
maxWidth: "320px",
|
|
45109
45162
|
marginBottom: "20px"
|
|
45110
45163
|
}
|
|
45111
45164
|
}, [...Array(totalSteps)].map((_, index) => /*#__PURE__*/React.createElement("div", {
|
|
45112
45165
|
className: "step-content",
|
|
45113
45166
|
key: index,
|
|
45114
|
-
style: stepStyle(index + 1 <= _currentStep)
|
|
45167
|
+
style: stepStyle(index + 1 <= _currentStep, index === totalSteps - 1)
|
|
45115
45168
|
}, /*#__PURE__*/React.createElement("div", {
|
|
45116
45169
|
className: "step-sub-content",
|
|
45117
45170
|
style: {
|
|
@@ -45135,7 +45188,8 @@ const StepWrapper = ({
|
|
|
45135
45188
|
className: "stepper-body",
|
|
45136
45189
|
style: {
|
|
45137
45190
|
width: "100%",
|
|
45138
|
-
marginBottom: "20px"
|
|
45191
|
+
marginBottom: "20px",
|
|
45192
|
+
background: "transparent"
|
|
45139
45193
|
}
|
|
45140
45194
|
}, children));
|
|
45141
45195
|
};
|
|
@@ -47183,6 +47237,8 @@ var reactLifecyclesCompat_es = {
|
|
|
47183
47237
|
polyfill: polyfill
|
|
47184
47238
|
};
|
|
47185
47239
|
|
|
47240
|
+
var _reactLifecyclesCompat = getCjsExportFromNamespace(reactLifecyclesCompat_es);
|
|
47241
|
+
|
|
47186
47242
|
var Modal_1 = createCommonjsModule(function (module, exports) {
|
|
47187
47243
|
|
|
47188
47244
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -47471,7 +47527,7 @@ var Modal_1 = createCommonjsModule(function (module, exports) {
|
|
|
47471
47527
|
padding: "20px"
|
|
47472
47528
|
}
|
|
47473
47529
|
};
|
|
47474
|
-
(0,
|
|
47530
|
+
(0, _reactLifecyclesCompat.polyfill)(Modal);
|
|
47475
47531
|
if (process.env.NODE_ENV !== "production") {
|
|
47476
47532
|
Modal.setCreateHTMLElement = function (fn) {
|
|
47477
47533
|
return createHTMLElement = fn;
|
|
@@ -47512,6 +47568,7 @@ const CitizenConsent = ({
|
|
|
47512
47568
|
const user = Digit.UserService.getUser();
|
|
47513
47569
|
const ownername = user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : _user$info.name;
|
|
47514
47570
|
const ownermobileNumber = user === null || user === void 0 ? void 0 : user.info.mobileNumber;
|
|
47571
|
+
const isCitizen = window.location.href.includes("citizen");
|
|
47515
47572
|
const {
|
|
47516
47573
|
id
|
|
47517
47574
|
} = useParams();
|
|
@@ -47663,6 +47720,10 @@ const CitizenConsent = ({
|
|
|
47663
47720
|
const formatted = `${map.day} ${map.month} ${map.year} ${map.weekday} ${map.hour}:${map.minute}:${map.second} ${map.dayPeriod} ${map.timeZoneName}`;
|
|
47664
47721
|
setOTPVerifiedTimestamp(formatted);
|
|
47665
47722
|
sessionStorage.setItem("otpVerifiedTimestampcitizen", formatted);
|
|
47723
|
+
if (isCitizen) setUser({
|
|
47724
|
+
info,
|
|
47725
|
+
...tokens
|
|
47726
|
+
});
|
|
47666
47727
|
setSetOtpLoading(false);
|
|
47667
47728
|
setShowOTPInput(false);
|
|
47668
47729
|
setIsOTPVerified(true);
|
|
@@ -47673,6 +47734,7 @@ const CitizenConsent = ({
|
|
|
47673
47734
|
return "";
|
|
47674
47735
|
}
|
|
47675
47736
|
} catch (error) {
|
|
47737
|
+
console.log("error===", error);
|
|
47676
47738
|
setOTPError(t("Error verifying OTP"));
|
|
47677
47739
|
setSetOtpLoading(false);
|
|
47678
47740
|
return "";
|
|
@@ -47752,6 +47814,7 @@ const CitizenConsent = ({
|
|
|
47752
47814
|
if (!userSelected) {
|
|
47753
47815
|
return;
|
|
47754
47816
|
}
|
|
47817
|
+
console.log("userSelected===", userSelected);
|
|
47755
47818
|
Digit.SessionStorage.set("citizen.userRequestObject", userSelected);
|
|
47756
47819
|
Digit.UserService.setUser(userSelected);
|
|
47757
47820
|
setCitizenDetail(userSelected === null || userSelected === void 0 ? void 0 : userSelected.info, userSelected === null || userSelected === void 0 ? void 0 : userSelected.access_token, stateCode);
|
|
@@ -47912,11 +47975,11 @@ const CHBCitizenDetailsNew = ({
|
|
|
47912
47975
|
currentStepData,
|
|
47913
47976
|
onGoBack
|
|
47914
47977
|
}) => {
|
|
47915
|
-
var _user$info, _user$info2, _user$info3, _user$info4;
|
|
47916
47978
|
const tenantId = window.location.href.includes("citizen") ? window.localStorage.getItem("CITIZEN.CITY") : window.localStorage.getItem("Employee.tenant-id");
|
|
47917
47979
|
const isCitizen = window.location.href.includes("citizen");
|
|
47918
47980
|
const stateId = Digit.ULBService.getStateId();
|
|
47919
47981
|
const user = Digit.UserService.getUser();
|
|
47982
|
+
const userInfoData = JSON.parse(sessionStorage.getItem("userInfoData") || "{}");
|
|
47920
47983
|
const [loader, setLoader] = useState(false);
|
|
47921
47984
|
const [showTermsPopup, setShowTermsPopup] = useState(false);
|
|
47922
47985
|
const [getModalData, setModalData] = useState();
|
|
@@ -47927,6 +47990,11 @@ const CHBCitizenDetailsNew = ({
|
|
|
47927
47990
|
address: false
|
|
47928
47991
|
});
|
|
47929
47992
|
const [getShowOtp, setShowOtp] = useState(false);
|
|
47993
|
+
const {
|
|
47994
|
+
mobileNumber,
|
|
47995
|
+
emailId,
|
|
47996
|
+
name
|
|
47997
|
+
} = user === null || user === void 0 ? void 0 : user.info;
|
|
47930
47998
|
const {
|
|
47931
47999
|
control,
|
|
47932
48000
|
handleSubmit,
|
|
@@ -47940,10 +48008,10 @@ const CHBCitizenDetailsNew = ({
|
|
|
47940
48008
|
mode: "onChange",
|
|
47941
48009
|
reValidateMode: "onChange",
|
|
47942
48010
|
defaultValues: {
|
|
47943
|
-
name: isCitizen && (
|
|
47944
|
-
emailId: isCitizen && (
|
|
47945
|
-
mobileNumber: isCitizen && (
|
|
47946
|
-
address: isCitizen && (
|
|
48011
|
+
name: isCitizen && ((userInfoData === null || userInfoData === void 0 ? void 0 : userInfoData.name) || name) || "",
|
|
48012
|
+
emailId: isCitizen && ((userInfoData === null || userInfoData === void 0 ? void 0 : userInfoData.emailId) || emailId) || "",
|
|
48013
|
+
mobileNumber: isCitizen && ((userInfoData === null || userInfoData === void 0 ? void 0 : userInfoData.mobileNumber) || mobileNumber) || "",
|
|
48014
|
+
address: isCitizen && (userInfoData === null || userInfoData === void 0 ? void 0 : userInfoData.permanentAddress) || ""
|
|
47947
48015
|
}
|
|
47948
48016
|
});
|
|
47949
48017
|
const onSubmit = async data => {
|
|
@@ -47952,7 +48020,7 @@ const CHBCitizenDetailsNew = ({
|
|
|
47952
48020
|
if (currentStepData !== null && currentStepData !== void 0 && (_currentStepData$venu = currentStepData.venueDetails) !== null && _currentStepData$venu !== void 0 && (_currentStepData$venu2 = _currentStepData$venu[0]) !== null && _currentStepData$venu2 !== void 0 && _currentStepData$venu2.bookingNo) {
|
|
47953
48021
|
goNext(currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.venueDetails);
|
|
47954
48022
|
} else {
|
|
47955
|
-
var _currentStepData$owne, _user$
|
|
48023
|
+
var _currentStepData$owne, _user$info, _baseApplication$purp, _baseApplication$purp2;
|
|
47956
48024
|
const baseApplication = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$owne = currentStepData.ownerDetails) === null || _currentStepData$owne === void 0 ? void 0 : _currentStepData$owne.hallsBookingApplication) || {};
|
|
47957
48025
|
if (!isCitizenDeclared) {
|
|
47958
48026
|
alert("Please upload Self Certificate");
|
|
@@ -47963,7 +48031,7 @@ const CHBCitizenDetailsNew = ({
|
|
|
47963
48031
|
applicantName: data === null || data === void 0 ? void 0 : data.name,
|
|
47964
48032
|
applicantMobileNo: data === null || data === void 0 ? void 0 : data.mobileNumber,
|
|
47965
48033
|
applicantEmailId: data === null || data === void 0 ? void 0 : data.emailId,
|
|
47966
|
-
type: user === null || user === void 0 ? void 0 : (_user$
|
|
48034
|
+
type: user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : _user$info.type
|
|
47967
48035
|
};
|
|
47968
48036
|
const additionalDetails = {
|
|
47969
48037
|
...(baseApplication === null || baseApplication === void 0 ? void 0 : baseApplication.additionalDetails),
|
|
@@ -47985,7 +48053,7 @@ const CHBCitizenDetailsNew = ({
|
|
|
47985
48053
|
address,
|
|
47986
48054
|
owners,
|
|
47987
48055
|
purpose: {
|
|
47988
|
-
purpose: baseApplication === null || baseApplication === void 0 ? void 0 : (_baseApplication$purp = baseApplication.purpose) === null || _baseApplication$purp === void 0 ? void 0 : (_baseApplication$purp2 = _baseApplication$purp.purpose) === null || _baseApplication$purp2 === void 0 ? void 0 : _baseApplication$purp2.
|
|
48056
|
+
purpose: baseApplication === null || baseApplication === void 0 ? void 0 : (_baseApplication$purp = baseApplication.purpose) === null || _baseApplication$purp === void 0 ? void 0 : (_baseApplication$purp2 = _baseApplication$purp.purpose) === null || _baseApplication$purp2 === void 0 ? void 0 : _baseApplication$purp2.name
|
|
47989
48057
|
},
|
|
47990
48058
|
additionalDetails
|
|
47991
48059
|
}
|
|
@@ -48277,12 +48345,7 @@ const CHBCitizenDetailsNew = ({
|
|
|
48277
48345
|
color: "red"
|
|
48278
48346
|
}
|
|
48279
48347
|
}, errors.termsAccepted.message)), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
48280
|
-
|
|
48281
|
-
background: " white",
|
|
48282
|
-
color: "black",
|
|
48283
|
-
border: "1px solid",
|
|
48284
|
-
marginRight: "10px"
|
|
48285
|
-
},
|
|
48348
|
+
className: "submit-bar-back",
|
|
48286
48349
|
label: "Back",
|
|
48287
48350
|
onSubmit: onGoBack
|
|
48288
48351
|
}), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
@@ -48417,85 +48480,12 @@ const NewADSStepFormThree = ({
|
|
|
48417
48480
|
}));
|
|
48418
48481
|
};
|
|
48419
48482
|
|
|
48420
|
-
const PDFSvg$1 = ({
|
|
48421
|
-
width: _width = 20,
|
|
48422
|
-
height: _height = 20,
|
|
48423
|
-
style
|
|
48424
|
-
}) => /*#__PURE__*/React.createElement("svg", {
|
|
48425
|
-
style: style,
|
|
48426
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
48427
|
-
width: _width,
|
|
48428
|
-
height: _height,
|
|
48429
|
-
viewBox: "0 0 20 20",
|
|
48430
|
-
fill: "gray"
|
|
48431
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
48432
|
-
d: "M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5v3zm4-3H19v1h1.5V11H19v2h-1.5V7h3v1.5zM9 9.5h1v-1H9v1zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm10 5.5h1v-3h-1v3z"
|
|
48433
|
-
}));
|
|
48434
|
-
function CHBDocument$1({
|
|
48435
|
-
value = {},
|
|
48436
|
-
Code,
|
|
48437
|
-
index
|
|
48438
|
-
}) {
|
|
48439
|
-
const {
|
|
48440
|
-
t
|
|
48441
|
-
} = useTranslation();
|
|
48442
|
-
const {
|
|
48443
|
-
isLoading,
|
|
48444
|
-
isError,
|
|
48445
|
-
error,
|
|
48446
|
-
data
|
|
48447
|
-
} = Digit.Hooks.ads.useADSDocumentSearch({
|
|
48448
|
-
value
|
|
48449
|
-
}, {
|
|
48450
|
-
value
|
|
48451
|
-
}, Code, index);
|
|
48452
|
-
console.log("dataInNDCDocument", data);
|
|
48453
|
-
const documents = value !== null && value !== void 0 && value.documents ? value.documents.documents.filter(doc => doc.documentType === Code).map(doc => ({
|
|
48454
|
-
...doc,
|
|
48455
|
-
documentType: doc.documentType.replace(/\./g, "_")
|
|
48456
|
-
})) : value.filter(doc => doc.documentType === Code).map(doc => ({
|
|
48457
|
-
...doc,
|
|
48458
|
-
documentType: doc.documentType.replace(/\./g, "_")
|
|
48459
|
-
}));
|
|
48460
|
-
if (isLoading) {
|
|
48461
|
-
return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
48462
|
-
}
|
|
48463
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
48464
|
-
style: {
|
|
48465
|
-
marginTop: "19px"
|
|
48466
|
-
}
|
|
48467
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, (data === null || data === void 0 ? void 0 : data.pdfFiles) && /*#__PURE__*/React.createElement("div", {
|
|
48468
|
-
style: {
|
|
48469
|
-
display: "flex",
|
|
48470
|
-
flexWrap: "wrap"
|
|
48471
|
-
}
|
|
48472
|
-
}, documents === null || documents === void 0 ? void 0 : documents.map((document, index) => {
|
|
48473
|
-
let documentLink = pdfDownloadLink$1(data.pdfFiles, document === null || document === void 0 ? void 0 : document.fileStoreId);
|
|
48474
|
-
return /*#__PURE__*/React.createElement("a", {
|
|
48475
|
-
target: "_",
|
|
48476
|
-
href: documentLink,
|
|
48477
|
-
style: {
|
|
48478
|
-
minWidth: "100px",
|
|
48479
|
-
marginRight: "10px"
|
|
48480
|
-
},
|
|
48481
|
-
key: index
|
|
48482
|
-
}, /*#__PURE__*/React.createElement(PDFSvg$1, {
|
|
48483
|
-
width: 85,
|
|
48484
|
-
height: 100,
|
|
48485
|
-
style: {
|
|
48486
|
-
background: "#f6f6f6",
|
|
48487
|
-
padding: "8px"
|
|
48488
|
-
}
|
|
48489
|
-
}));
|
|
48490
|
-
}))));
|
|
48491
|
-
}
|
|
48492
|
-
|
|
48493
48483
|
function CHBSummary({
|
|
48494
48484
|
formData,
|
|
48495
48485
|
goNext,
|
|
48496
48486
|
onGoBack
|
|
48497
48487
|
}) {
|
|
48498
|
-
var _formData$documents, _formData$documents$d, _formData$apiData, _formData$apiData$App, _formData$apiData$App2, _formData$
|
|
48488
|
+
var _formData$venueDetail, _formData$venueDetail2, _formData$documents, _formData$documents$d, _formData$documents2, _formData$documents2$, _formData$apiData, _formData$apiData$App, _formData$apiData$App2, _formData$venueDetail3, _formData$venueDetail4, _user$info, _user$info$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _formData$venueDetail5, _formData$venueDetail6, _formData$venueDetail7, _formData$venueDetail10, _formData$venueDetail11, _formData$venueDetail12, _formData$venueDetail13, _formData$venueDetail14, _formData$venueDetail15, _formData$venueDetail16, _formData$venueDetail17, _formData$venueDetail18, _formData$venueDetail19, _formData$venueDetail20, _formData$venueDetail21, _formData$ownerDetail, _formData$ownerDetail2, _formData$ownerDetail3, _formData$ownerDetail4, _formData$ownerDetail5, _formData$ownerDetail6, _formData$ownerDetail7, _formData$ownerDetail8, _formData$ownerDetail9, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8;
|
|
48499
48489
|
const {
|
|
48500
48490
|
pathname: url
|
|
48501
48491
|
} = useLocation();
|
|
@@ -48523,8 +48513,13 @@ function CHBSummary({
|
|
|
48523
48513
|
Header: `${t("PT_COMMON_TABLE_COL_STATUS_LABEL")}`,
|
|
48524
48514
|
accessor: "bookingStatus"
|
|
48525
48515
|
}];
|
|
48526
|
-
|
|
48527
|
-
|
|
48516
|
+
const bookingId = formData === null || formData === void 0 ? void 0 : (_formData$venueDetail = formData.venueDetails) === null || _formData$venueDetail === void 0 ? void 0 : (_formData$venueDetail2 = _formData$venueDetail[0]) === null || _formData$venueDetail2 === void 0 ? void 0 : _formData$venueDetail2.bookingId;
|
|
48517
|
+
console.log("docs===??", formData === null || formData === void 0 ? void 0 : (_formData$documents = formData.documents) === null || _formData$documents === void 0 ? void 0 : (_formData$documents$d = _formData$documents.documents) === null || _formData$documents$d === void 0 ? void 0 : _formData$documents$d.documents);
|
|
48518
|
+
let docs = ((formData === null || formData === void 0 ? void 0 : (_formData$documents2 = formData.documents) === null || _formData$documents2 === void 0 ? void 0 : (_formData$documents2$ = _formData$documents2.documents) === null || _formData$documents2$ === void 0 ? void 0 : _formData$documents2$.documents) || []).map(doc => ({
|
|
48519
|
+
...doc,
|
|
48520
|
+
bookingId
|
|
48521
|
+
}));
|
|
48522
|
+
const appId = (formData === null || formData === void 0 ? void 0 : (_formData$apiData = formData.apiData) === null || _formData$apiData === void 0 ? void 0 : (_formData$apiData$App = _formData$apiData.Applications) === null || _formData$apiData$App === void 0 ? void 0 : (_formData$apiData$App2 = _formData$apiData$App[0]) === null || _formData$apiData$App2 === void 0 ? void 0 : _formData$apiData$App2.uuid) || (formData === null || formData === void 0 ? void 0 : (_formData$venueDetail3 = formData.venueDetails) === null || _formData$venueDetail3 === void 0 ? void 0 : (_formData$venueDetail4 = _formData$venueDetail3[0]) === null || _formData$venueDetail4 === void 0 ? void 0 : _formData$venueDetail4.bookingNo);
|
|
48528
48523
|
const tenantId = window.location.href.includes("citizen") ? window.localStorage.getItem("CITIZEN.CITY") : window.localStorage.getItem("Employee.tenant-id");
|
|
48529
48524
|
const isCitizen = window.location.href.includes("citizen");
|
|
48530
48525
|
const [getData, setData] = useState();
|
|
@@ -48590,16 +48585,17 @@ function CHBSummary({
|
|
|
48590
48585
|
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
48591
48586
|
style: boldLabelStyle
|
|
48592
48587
|
}, label), /*#__PURE__*/React.createElement("div", null, t(value) || "NA"));
|
|
48593
|
-
const slotlistRows = (formData === null || formData === void 0 ? void 0 : (_formData$
|
|
48594
|
-
var _formData$
|
|
48588
|
+
const slotlistRows = (formData === null || formData === void 0 ? void 0 : (_formData$venueDetail5 = formData.venueDetails) === null || _formData$venueDetail5 === void 0 ? void 0 : (_formData$venueDetail6 = _formData$venueDetail5[0]) === null || _formData$venueDetail6 === void 0 ? void 0 : (_formData$venueDetail7 = _formData$venueDetail6.bookingSlotDetails) === null || _formData$venueDetail7 === void 0 ? void 0 : _formData$venueDetail7.map(slot => {
|
|
48589
|
+
var _formData$venueDetail8, _formData$venueDetail9, _formData$venueDetail0, _formData$venueDetail1;
|
|
48595
48590
|
return {
|
|
48596
|
-
communityHallCode: `${t(formData === null || formData === void 0 ? void 0 : (_formData$
|
|
48597
|
-
hallName: formData === null || formData === void 0 ? void 0 : (_formData$
|
|
48591
|
+
communityHallCode: `${t(formData === null || formData === void 0 ? void 0 : (_formData$venueDetail8 = formData.venueDetails) === null || _formData$venueDetail8 === void 0 ? void 0 : (_formData$venueDetail9 = _formData$venueDetail8[0]) === null || _formData$venueDetail9 === void 0 ? void 0 : _formData$venueDetail9.communityHallCode)}`,
|
|
48592
|
+
hallName: formData === null || formData === void 0 ? void 0 : (_formData$venueDetail0 = formData.venueDetails) === null || _formData$venueDetail0 === void 0 ? void 0 : (_formData$venueDetail1 = _formData$venueDetail0[0]) === null || _formData$venueDetail1 === void 0 ? void 0 : _formData$venueDetail1.communityHallName,
|
|
48598
48593
|
hallCode: slot.hallCode + " - " + slot.capacity,
|
|
48599
48594
|
bookingDate: slot.bookingDate,
|
|
48600
48595
|
bookingStatus: t(`WF_CHB_${slot === null || slot === void 0 ? void 0 : slot.status}`)
|
|
48601
48596
|
};
|
|
48602
48597
|
})) || [];
|
|
48598
|
+
console.log("docs===", docs);
|
|
48603
48599
|
return /*#__PURE__*/React.createElement("div", {
|
|
48604
48600
|
style: pageStyle
|
|
48605
48601
|
}, /*#__PURE__*/React.createElement("h2", {
|
|
@@ -48610,7 +48606,7 @@ function CHBSummary({
|
|
|
48610
48606
|
style: {
|
|
48611
48607
|
fontSize: "24px"
|
|
48612
48608
|
}
|
|
48613
|
-
}, t("CHB_APPLICANT_DETAILS")), renderLabel(t("BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$
|
|
48609
|
+
}, t("CHB_APPLICANT_DETAILS")), renderLabel(t("BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail10 = formData.venueDetails) === null || _formData$venueDetail10 === void 0 ? void 0 : (_formData$venueDetail11 = _formData$venueDetail10[0]) === null || _formData$venueDetail11 === void 0 ? void 0 : (_formData$venueDetail12 = _formData$venueDetail11.applicantDetail) === null || _formData$venueDetail12 === void 0 ? void 0 : _formData$venueDetail12.applicantName), renderLabel(t("NOC_APPLICANT_MOBILE_NO_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail13 = formData.venueDetails) === null || _formData$venueDetail13 === void 0 ? void 0 : (_formData$venueDetail14 = _formData$venueDetail13[0]) === null || _formData$venueDetail14 === void 0 ? void 0 : (_formData$venueDetail15 = _formData$venueDetail14.applicantDetail) === null || _formData$venueDetail15 === void 0 ? void 0 : _formData$venueDetail15.applicantMobileNo), renderLabel(t("NOC_APPLICANT_EMAIL_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail16 = formData.venueDetails) === null || _formData$venueDetail16 === void 0 ? void 0 : (_formData$venueDetail17 = _formData$venueDetail16[0]) === null || _formData$venueDetail17 === void 0 ? void 0 : (_formData$venueDetail18 = _formData$venueDetail17.applicantDetail) === null || _formData$venueDetail18 === void 0 ? void 0 : _formData$venueDetail18.applicantEmailId), renderLabel(t("PT_COMMON_COL_ADDRESS"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail19 = formData.venueDetails) === null || _formData$venueDetail19 === void 0 ? void 0 : (_formData$venueDetail20 = _formData$venueDetail19[0]) === null || _formData$venueDetail20 === void 0 ? void 0 : (_formData$venueDetail21 = _formData$venueDetail20.address) === null || _formData$venueDetail21 === void 0 ? void 0 : _formData$venueDetail21.addressLine1)), /*#__PURE__*/React.createElement("div", {
|
|
48614
48610
|
style: sectionStyle
|
|
48615
48611
|
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
48616
48612
|
style: {
|
|
@@ -48641,7 +48637,9 @@ function CHBSummary({
|
|
|
48641
48637
|
flexDirection: "row",
|
|
48642
48638
|
gap: "30px"
|
|
48643
48639
|
}
|
|
48644
|
-
}, docs === null || docs === void 0 ? void 0 : docs.map((doc, index) => /*#__PURE__*/React.createElement(React.Fragment,
|
|
48640
|
+
}, (docs === null || docs === void 0 ? void 0 : docs.length) > 0 ? docs === null || docs === void 0 ? void 0 : docs.map((doc, index) => /*#__PURE__*/React.createElement(React.Fragment, {
|
|
48641
|
+
key: index
|
|
48642
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CHBDocument, {
|
|
48645
48643
|
value: docs,
|
|
48646
48644
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
48647
48645
|
index: index
|
|
@@ -48650,13 +48648,8 @@ function CHBSummary({
|
|
|
48650
48648
|
marginTop: "10px",
|
|
48651
48649
|
fontSize: "15px"
|
|
48652
48650
|
}
|
|
48653
|
-
}, t(doc === null || doc === void 0 ? void 0 : doc.documentType))))))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
48654
|
-
|
|
48655
|
-
background: " white",
|
|
48656
|
-
color: "black",
|
|
48657
|
-
border: "1px solid",
|
|
48658
|
-
marginRight: "10px"
|
|
48659
|
-
},
|
|
48651
|
+
}, t(doc === null || doc === void 0 ? void 0 : doc.documentType))))) : /*#__PURE__*/React.createElement("h5", null, t("CS_NO_DOCUMENTS_UPLOADED")))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
48652
|
+
className: "submit-bar-back",
|
|
48660
48653
|
label: "Back",
|
|
48661
48654
|
onSubmit: onGoBack
|
|
48662
48655
|
}), displayMenu && (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data6 = workflowDetails.data) !== null && _workflowDetails$data6 !== void 0 && (_workflowDetails$data7 = _workflowDetails$data6.actionState) !== null && _workflowDetails$data7 !== void 0 && _workflowDetails$data7.nextActions || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data8 = workflowDetails.data) !== null && _workflowDetails$data8 !== void 0 && _workflowDetails$data8.nextActions) ? /*#__PURE__*/React.createElement(Menu, {
|
|
@@ -48746,6 +48739,7 @@ const NewADSStepFormFour = ({
|
|
|
48746
48739
|
});
|
|
48747
48740
|
setLoader(false);
|
|
48748
48741
|
dispatch(RESET_CHB_APPLICATION_FORM());
|
|
48742
|
+
sessionStorage.removeItem("CitizenConsentdocFilestoreidCHB");
|
|
48749
48743
|
if ((response === null || response === void 0 ? void 0 : (_response$responseInf = response.responseInfo) === null || _response$responseInf === void 0 ? void 0 : _response$responseInf.status) == "SUCCESSFUL") {
|
|
48750
48744
|
return {
|
|
48751
48745
|
isSuccess: true,
|