@mseva/upyog-ui-module-chb 1.1.64 → 1.1.66
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 +101 -148
- 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
|
|
|
@@ -18240,6 +18244,9 @@ function CHBDocument({
|
|
|
18240
18244
|
const {
|
|
18241
18245
|
t
|
|
18242
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);
|
|
18243
18250
|
const {
|
|
18244
18251
|
isLoading,
|
|
18245
18252
|
isError,
|
|
@@ -18260,14 +18267,16 @@ function CHBDocument({
|
|
|
18260
18267
|
if (isLoading) {
|
|
18261
18268
|
return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
18262
18269
|
}
|
|
18263
|
-
console.log("
|
|
18270
|
+
console.log("data====", data);
|
|
18271
|
+
console.log("documents====", documents);
|
|
18264
18272
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
18265
18273
|
style: {
|
|
18266
18274
|
display: "flex",
|
|
18267
18275
|
flexWrap: "wrap"
|
|
18268
18276
|
}
|
|
18269
|
-
}, documents.map((document, index) => {
|
|
18270
|
-
|
|
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);
|
|
18271
18280
|
return /*#__PURE__*/React.createElement("a", {
|
|
18272
18281
|
target: "_",
|
|
18273
18282
|
href: documentLink,
|
|
@@ -18275,7 +18284,7 @@ function CHBDocument({
|
|
|
18275
18284
|
minWidth: "160px"
|
|
18276
18285
|
},
|
|
18277
18286
|
key: index
|
|
18278
|
-
}, /*#__PURE__*/React.createElement(PDFSvg$
|
|
18287
|
+
}, /*#__PURE__*/React.createElement(PDFSvg$1, null), showFileName ? /*#__PURE__*/React.createElement("p", {
|
|
18279
18288
|
style: {
|
|
18280
18289
|
marginTop: "8px"
|
|
18281
18290
|
}
|
|
@@ -42055,6 +42064,7 @@ const CHBApplicationDetails = () => {
|
|
|
42055
42064
|
bookingDate: slot.bookingDate,
|
|
42056
42065
|
bookingStatus: t(`WF_CHB_${slot === null || slot === void 0 ? void 0 : slot.status}`)
|
|
42057
42066
|
}))) || [];
|
|
42067
|
+
console.log("docs===", docs);
|
|
42058
42068
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
42059
42069
|
className: "cardHeaderWithOptions",
|
|
42060
42070
|
style: {
|
|
@@ -42470,7 +42480,7 @@ const useInboxMobileCardsData = ({
|
|
|
42470
42480
|
};
|
|
42471
42481
|
return {
|
|
42472
42482
|
data: dataForMobileInboxCards,
|
|
42473
|
-
linkPrefix: `${parentRoute}/
|
|
42483
|
+
linkPrefix: `${parentRoute}/applicationsearch/application-details/`,
|
|
42474
42484
|
serviceRequestIdKey: t("NOC_HOME_SEARCH_RESULTS_APP_NO_LABEL"),
|
|
42475
42485
|
MobileSortFormValues
|
|
42476
42486
|
};
|
|
@@ -45074,60 +45084,59 @@ const StepWrapper = ({
|
|
|
45074
45084
|
const {
|
|
45075
45085
|
t
|
|
45076
45086
|
} = useTranslation();
|
|
45077
|
-
const stepStyle = isActive => ({
|
|
45087
|
+
const stepStyle = (isActive, isLast) => ({
|
|
45078
45088
|
display: "flex",
|
|
45079
45089
|
alignItems: "center",
|
|
45080
45090
|
justifyContent: "flex-end",
|
|
45081
|
-
flex:
|
|
45082
|
-
color: isActive ? "#
|
|
45083
|
-
padding: "
|
|
45084
|
-
width: "260px"
|
|
45091
|
+
flex: "0 0 auto",
|
|
45092
|
+
color: isActive ? "#0D43A7" : "#9CA3AF",
|
|
45093
|
+
padding: "14px 12px",
|
|
45094
|
+
width: "260px",
|
|
45095
|
+
marginBottom: isLast ? "6px" : "18px"
|
|
45085
45096
|
});
|
|
45086
45097
|
const circleStyle = stepNumber => {
|
|
45087
|
-
|
|
45088
|
-
if (stepNumber <= _currentStep) {
|
|
45089
|
-
backgroundColor = "#0D43A7";
|
|
45090
|
-
} else {
|
|
45091
|
-
backgroundColor = "#FFFFFF";
|
|
45092
|
-
}
|
|
45098
|
+
const completed = stepNumber <= _currentStep;
|
|
45093
45099
|
return {
|
|
45094
|
-
width: "
|
|
45095
|
-
height: "
|
|
45100
|
+
width: "56px",
|
|
45101
|
+
height: "56px",
|
|
45096
45102
|
borderRadius: "50%",
|
|
45097
|
-
|
|
45098
|
-
color:
|
|
45103
|
+
background: completed ? "linear-gradient(135deg,#2563eb,#7c3aed)" : "#ffffff",
|
|
45104
|
+
color: completed ? "#ffffff" : "#0f172a",
|
|
45099
45105
|
display: "flex",
|
|
45100
45106
|
alignItems: "center",
|
|
45101
45107
|
justifyContent: "center",
|
|
45102
|
-
marginBottom: "
|
|
45103
|
-
fontWeight:
|
|
45108
|
+
marginBottom: "8px",
|
|
45109
|
+
fontWeight: 600,
|
|
45104
45110
|
fontSize: "18px",
|
|
45105
|
-
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)",
|
|
45106
45113
|
position: "relative"
|
|
45107
45114
|
};
|
|
45108
45115
|
};
|
|
45109
45116
|
const labelStyle = {
|
|
45110
|
-
fontSize: "
|
|
45111
|
-
color: "#
|
|
45112
|
-
fontWeight:
|
|
45113
|
-
fontFamily: "Noto Sans,sans-serif",
|
|
45114
|
-
marginRight: "
|
|
45117
|
+
fontSize: "16px",
|
|
45118
|
+
color: "#0f172a",
|
|
45119
|
+
fontWeight: 600,
|
|
45120
|
+
fontFamily: "Noto Sans, sans-serif",
|
|
45121
|
+
marginRight: "8px",
|
|
45122
|
+
textAlign: "right"
|
|
45115
45123
|
};
|
|
45116
45124
|
const stepNumberStyle = {
|
|
45117
|
-
fontSize: "
|
|
45118
|
-
color: "#
|
|
45119
|
-
fontWeight:
|
|
45120
|
-
fontFamily: "Noto Sans,sans-serif",
|
|
45121
|
-
margin: "
|
|
45125
|
+
fontSize: "14px",
|
|
45126
|
+
color: "#6b7280",
|
|
45127
|
+
fontWeight: 500,
|
|
45128
|
+
fontFamily: "Noto Sans, sans-serif",
|
|
45129
|
+
margin: "0 6px 0 0"
|
|
45122
45130
|
};
|
|
45123
45131
|
const lineStyle = {
|
|
45124
45132
|
position: "absolute",
|
|
45125
|
-
width: "
|
|
45126
|
-
height: "
|
|
45127
|
-
backgroundColor: "
|
|
45133
|
+
width: "3px",
|
|
45134
|
+
height: "56px",
|
|
45135
|
+
backgroundColor: "rgba(15,23,42,0.06)",
|
|
45128
45136
|
left: "50%",
|
|
45129
45137
|
top: "100%",
|
|
45130
|
-
transform: "translateX(-50%)"
|
|
45138
|
+
transform: "translateX(-50%)",
|
|
45139
|
+
borderRadius: "2px"
|
|
45131
45140
|
};
|
|
45132
45141
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
45133
45142
|
const totalSteps = _stepsList.length;
|
|
@@ -45137,22 +45146,25 @@ const StepWrapper = ({
|
|
|
45137
45146
|
width: "100%",
|
|
45138
45147
|
display: "flex",
|
|
45139
45148
|
flexDirection: "row",
|
|
45140
|
-
alignItems: "
|
|
45141
|
-
justifyContent: "flex-start"
|
|
45149
|
+
alignItems: "flex-start",
|
|
45150
|
+
justifyContent: "flex-start",
|
|
45151
|
+
gap: "24px"
|
|
45142
45152
|
}
|
|
45143
45153
|
}, /*#__PURE__*/React.createElement("div", {
|
|
45144
45154
|
className: "stepper-navigation-bar",
|
|
45145
45155
|
style: {
|
|
45146
45156
|
display: "flex",
|
|
45147
45157
|
flexDirection: "column",
|
|
45148
|
-
|
|
45149
|
-
|
|
45158
|
+
alignItems: "center",
|
|
45159
|
+
padding: "18px",
|
|
45160
|
+
minWidth: "120px",
|
|
45161
|
+
maxWidth: "320px",
|
|
45150
45162
|
marginBottom: "20px"
|
|
45151
45163
|
}
|
|
45152
45164
|
}, [...Array(totalSteps)].map((_, index) => /*#__PURE__*/React.createElement("div", {
|
|
45153
45165
|
className: "step-content",
|
|
45154
45166
|
key: index,
|
|
45155
|
-
style: stepStyle(index + 1 <= _currentStep)
|
|
45167
|
+
style: stepStyle(index + 1 <= _currentStep, index === totalSteps - 1)
|
|
45156
45168
|
}, /*#__PURE__*/React.createElement("div", {
|
|
45157
45169
|
className: "step-sub-content",
|
|
45158
45170
|
style: {
|
|
@@ -45176,7 +45188,8 @@ const StepWrapper = ({
|
|
|
45176
45188
|
className: "stepper-body",
|
|
45177
45189
|
style: {
|
|
45178
45190
|
width: "100%",
|
|
45179
|
-
marginBottom: "20px"
|
|
45191
|
+
marginBottom: "20px",
|
|
45192
|
+
background: "transparent"
|
|
45180
45193
|
}
|
|
45181
45194
|
}, children));
|
|
45182
45195
|
};
|
|
@@ -47224,6 +47237,8 @@ var reactLifecyclesCompat_es = {
|
|
|
47224
47237
|
polyfill: polyfill
|
|
47225
47238
|
};
|
|
47226
47239
|
|
|
47240
|
+
var _reactLifecyclesCompat = getCjsExportFromNamespace(reactLifecyclesCompat_es);
|
|
47241
|
+
|
|
47227
47242
|
var Modal_1 = createCommonjsModule(function (module, exports) {
|
|
47228
47243
|
|
|
47229
47244
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -47512,7 +47527,7 @@ var Modal_1 = createCommonjsModule(function (module, exports) {
|
|
|
47512
47527
|
padding: "20px"
|
|
47513
47528
|
}
|
|
47514
47529
|
};
|
|
47515
|
-
(0,
|
|
47530
|
+
(0, _reactLifecyclesCompat.polyfill)(Modal);
|
|
47516
47531
|
if (process.env.NODE_ENV !== "production") {
|
|
47517
47532
|
Modal.setCreateHTMLElement = function (fn) {
|
|
47518
47533
|
return createHTMLElement = fn;
|
|
@@ -47553,6 +47568,7 @@ const CitizenConsent = ({
|
|
|
47553
47568
|
const user = Digit.UserService.getUser();
|
|
47554
47569
|
const ownername = user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : _user$info.name;
|
|
47555
47570
|
const ownermobileNumber = user === null || user === void 0 ? void 0 : user.info.mobileNumber;
|
|
47571
|
+
const isCitizen = window.location.href.includes("citizen");
|
|
47556
47572
|
const {
|
|
47557
47573
|
id
|
|
47558
47574
|
} = useParams();
|
|
@@ -47704,6 +47720,10 @@ const CitizenConsent = ({
|
|
|
47704
47720
|
const formatted = `${map.day} ${map.month} ${map.year} ${map.weekday} ${map.hour}:${map.minute}:${map.second} ${map.dayPeriod} ${map.timeZoneName}`;
|
|
47705
47721
|
setOTPVerifiedTimestamp(formatted);
|
|
47706
47722
|
sessionStorage.setItem("otpVerifiedTimestampcitizen", formatted);
|
|
47723
|
+
if (isCitizen) setUser({
|
|
47724
|
+
info,
|
|
47725
|
+
...tokens
|
|
47726
|
+
});
|
|
47707
47727
|
setSetOtpLoading(false);
|
|
47708
47728
|
setShowOTPInput(false);
|
|
47709
47729
|
setIsOTPVerified(true);
|
|
@@ -47714,6 +47734,7 @@ const CitizenConsent = ({
|
|
|
47714
47734
|
return "";
|
|
47715
47735
|
}
|
|
47716
47736
|
} catch (error) {
|
|
47737
|
+
console.log("error===", error);
|
|
47717
47738
|
setOTPError(t("Error verifying OTP"));
|
|
47718
47739
|
setSetOtpLoading(false);
|
|
47719
47740
|
return "";
|
|
@@ -47793,6 +47814,7 @@ const CitizenConsent = ({
|
|
|
47793
47814
|
if (!userSelected) {
|
|
47794
47815
|
return;
|
|
47795
47816
|
}
|
|
47817
|
+
console.log("userSelected===", userSelected);
|
|
47796
47818
|
Digit.SessionStorage.set("citizen.userRequestObject", userSelected);
|
|
47797
47819
|
Digit.UserService.setUser(userSelected);
|
|
47798
47820
|
setCitizenDetail(userSelected === null || userSelected === void 0 ? void 0 : userSelected.info, userSelected === null || userSelected === void 0 ? void 0 : userSelected.access_token, stateCode);
|
|
@@ -47953,11 +47975,11 @@ const CHBCitizenDetailsNew = ({
|
|
|
47953
47975
|
currentStepData,
|
|
47954
47976
|
onGoBack
|
|
47955
47977
|
}) => {
|
|
47956
|
-
var _user$info, _user$info2, _user$info3, _user$info4;
|
|
47957
47978
|
const tenantId = window.location.href.includes("citizen") ? window.localStorage.getItem("CITIZEN.CITY") : window.localStorage.getItem("Employee.tenant-id");
|
|
47958
47979
|
const isCitizen = window.location.href.includes("citizen");
|
|
47959
47980
|
const stateId = Digit.ULBService.getStateId();
|
|
47960
47981
|
const user = Digit.UserService.getUser();
|
|
47982
|
+
const userInfoData = JSON.parse(sessionStorage.getItem("userInfoData") || "{}");
|
|
47961
47983
|
const [loader, setLoader] = useState(false);
|
|
47962
47984
|
const [showTermsPopup, setShowTermsPopup] = useState(false);
|
|
47963
47985
|
const [getModalData, setModalData] = useState();
|
|
@@ -47968,6 +47990,11 @@ const CHBCitizenDetailsNew = ({
|
|
|
47968
47990
|
address: false
|
|
47969
47991
|
});
|
|
47970
47992
|
const [getShowOtp, setShowOtp] = useState(false);
|
|
47993
|
+
const {
|
|
47994
|
+
mobileNumber,
|
|
47995
|
+
emailId,
|
|
47996
|
+
name
|
|
47997
|
+
} = user === null || user === void 0 ? void 0 : user.info;
|
|
47971
47998
|
const {
|
|
47972
47999
|
control,
|
|
47973
48000
|
handleSubmit,
|
|
@@ -47981,10 +48008,10 @@ const CHBCitizenDetailsNew = ({
|
|
|
47981
48008
|
mode: "onChange",
|
|
47982
48009
|
reValidateMode: "onChange",
|
|
47983
48010
|
defaultValues: {
|
|
47984
|
-
name: isCitizen && (
|
|
47985
|
-
emailId: isCitizen && (
|
|
47986
|
-
mobileNumber: isCitizen && (
|
|
47987
|
-
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) || ""
|
|
47988
48015
|
}
|
|
47989
48016
|
});
|
|
47990
48017
|
const onSubmit = async data => {
|
|
@@ -47993,7 +48020,7 @@ const CHBCitizenDetailsNew = ({
|
|
|
47993
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) {
|
|
47994
48021
|
goNext(currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.venueDetails);
|
|
47995
48022
|
} else {
|
|
47996
|
-
var _currentStepData$owne, _user$
|
|
48023
|
+
var _currentStepData$owne, _user$info, _baseApplication$purp, _baseApplication$purp2;
|
|
47997
48024
|
const baseApplication = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$owne = currentStepData.ownerDetails) === null || _currentStepData$owne === void 0 ? void 0 : _currentStepData$owne.hallsBookingApplication) || {};
|
|
47998
48025
|
if (!isCitizenDeclared) {
|
|
47999
48026
|
alert("Please upload Self Certificate");
|
|
@@ -48004,7 +48031,7 @@ const CHBCitizenDetailsNew = ({
|
|
|
48004
48031
|
applicantName: data === null || data === void 0 ? void 0 : data.name,
|
|
48005
48032
|
applicantMobileNo: data === null || data === void 0 ? void 0 : data.mobileNumber,
|
|
48006
48033
|
applicantEmailId: data === null || data === void 0 ? void 0 : data.emailId,
|
|
48007
|
-
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
|
|
48008
48035
|
};
|
|
48009
48036
|
const additionalDetails = {
|
|
48010
48037
|
...(baseApplication === null || baseApplication === void 0 ? void 0 : baseApplication.additionalDetails),
|
|
@@ -48026,7 +48053,7 @@ const CHBCitizenDetailsNew = ({
|
|
|
48026
48053
|
address,
|
|
48027
48054
|
owners,
|
|
48028
48055
|
purpose: {
|
|
48029
|
-
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
|
|
48030
48057
|
},
|
|
48031
48058
|
additionalDetails
|
|
48032
48059
|
}
|
|
@@ -48318,12 +48345,7 @@ const CHBCitizenDetailsNew = ({
|
|
|
48318
48345
|
color: "red"
|
|
48319
48346
|
}
|
|
48320
48347
|
}, errors.termsAccepted.message)), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
48321
|
-
|
|
48322
|
-
background: " white",
|
|
48323
|
-
color: "black",
|
|
48324
|
-
border: "1px solid",
|
|
48325
|
-
marginRight: "10px"
|
|
48326
|
-
},
|
|
48348
|
+
className: "submit-bar-back",
|
|
48327
48349
|
label: "Back",
|
|
48328
48350
|
onSubmit: onGoBack
|
|
48329
48351
|
}), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
@@ -48458,85 +48480,12 @@ const NewADSStepFormThree = ({
|
|
|
48458
48480
|
}));
|
|
48459
48481
|
};
|
|
48460
48482
|
|
|
48461
|
-
const PDFSvg$1 = ({
|
|
48462
|
-
width: _width = 20,
|
|
48463
|
-
height: _height = 20,
|
|
48464
|
-
style
|
|
48465
|
-
}) => /*#__PURE__*/React.createElement("svg", {
|
|
48466
|
-
style: style,
|
|
48467
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
48468
|
-
width: _width,
|
|
48469
|
-
height: _height,
|
|
48470
|
-
viewBox: "0 0 20 20",
|
|
48471
|
-
fill: "gray"
|
|
48472
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
48473
|
-
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"
|
|
48474
|
-
}));
|
|
48475
|
-
function CHBDocument$1({
|
|
48476
|
-
value = {},
|
|
48477
|
-
Code,
|
|
48478
|
-
index
|
|
48479
|
-
}) {
|
|
48480
|
-
const {
|
|
48481
|
-
t
|
|
48482
|
-
} = useTranslation();
|
|
48483
|
-
const {
|
|
48484
|
-
isLoading,
|
|
48485
|
-
isError,
|
|
48486
|
-
error,
|
|
48487
|
-
data
|
|
48488
|
-
} = Digit.Hooks.ads.useADSDocumentSearch({
|
|
48489
|
-
value
|
|
48490
|
-
}, {
|
|
48491
|
-
value
|
|
48492
|
-
}, Code, index);
|
|
48493
|
-
console.log("dataInNDCDocument", data);
|
|
48494
|
-
const documents = value !== null && value !== void 0 && value.documents ? value.documents.documents.filter(doc => doc.documentType === Code).map(doc => ({
|
|
48495
|
-
...doc,
|
|
48496
|
-
documentType: doc.documentType.replace(/\./g, "_")
|
|
48497
|
-
})) : value.filter(doc => doc.documentType === Code).map(doc => ({
|
|
48498
|
-
...doc,
|
|
48499
|
-
documentType: doc.documentType.replace(/\./g, "_")
|
|
48500
|
-
}));
|
|
48501
|
-
if (isLoading) {
|
|
48502
|
-
return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
48503
|
-
}
|
|
48504
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
48505
|
-
style: {
|
|
48506
|
-
marginTop: "19px"
|
|
48507
|
-
}
|
|
48508
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, (data === null || data === void 0 ? void 0 : data.pdfFiles) && /*#__PURE__*/React.createElement("div", {
|
|
48509
|
-
style: {
|
|
48510
|
-
display: "flex",
|
|
48511
|
-
flexWrap: "wrap"
|
|
48512
|
-
}
|
|
48513
|
-
}, documents === null || documents === void 0 ? void 0 : documents.map((document, index) => {
|
|
48514
|
-
let documentLink = pdfDownloadLink$1(data.pdfFiles, document === null || document === void 0 ? void 0 : document.fileStoreId);
|
|
48515
|
-
return /*#__PURE__*/React.createElement("a", {
|
|
48516
|
-
target: "_",
|
|
48517
|
-
href: documentLink,
|
|
48518
|
-
style: {
|
|
48519
|
-
minWidth: "100px",
|
|
48520
|
-
marginRight: "10px"
|
|
48521
|
-
},
|
|
48522
|
-
key: index
|
|
48523
|
-
}, /*#__PURE__*/React.createElement(PDFSvg$1, {
|
|
48524
|
-
width: 85,
|
|
48525
|
-
height: 100,
|
|
48526
|
-
style: {
|
|
48527
|
-
background: "#f6f6f6",
|
|
48528
|
-
padding: "8px"
|
|
48529
|
-
}
|
|
48530
|
-
}));
|
|
48531
|
-
}))));
|
|
48532
|
-
}
|
|
48533
|
-
|
|
48534
48483
|
function CHBSummary({
|
|
48535
48484
|
formData,
|
|
48536
48485
|
goNext,
|
|
48537
48486
|
onGoBack
|
|
48538
48487
|
}) {
|
|
48539
|
-
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;
|
|
48540
48489
|
const {
|
|
48541
48490
|
pathname: url
|
|
48542
48491
|
} = useLocation();
|
|
@@ -48564,8 +48513,13 @@ function CHBSummary({
|
|
|
48564
48513
|
Header: `${t("PT_COMMON_TABLE_COL_STATUS_LABEL")}`,
|
|
48565
48514
|
accessor: "bookingStatus"
|
|
48566
48515
|
}];
|
|
48567
|
-
|
|
48568
|
-
|
|
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);
|
|
48569
48523
|
const tenantId = window.location.href.includes("citizen") ? window.localStorage.getItem("CITIZEN.CITY") : window.localStorage.getItem("Employee.tenant-id");
|
|
48570
48524
|
const isCitizen = window.location.href.includes("citizen");
|
|
48571
48525
|
const [getData, setData] = useState();
|
|
@@ -48631,16 +48585,17 @@ function CHBSummary({
|
|
|
48631
48585
|
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
48632
48586
|
style: boldLabelStyle
|
|
48633
48587
|
}, label), /*#__PURE__*/React.createElement("div", null, t(value) || "NA"));
|
|
48634
|
-
const slotlistRows = (formData === null || formData === void 0 ? void 0 : (_formData$
|
|
48635
|
-
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;
|
|
48636
48590
|
return {
|
|
48637
|
-
communityHallCode: `${t(formData === null || formData === void 0 ? void 0 : (_formData$
|
|
48638
|
-
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,
|
|
48639
48593
|
hallCode: slot.hallCode + " - " + slot.capacity,
|
|
48640
48594
|
bookingDate: slot.bookingDate,
|
|
48641
48595
|
bookingStatus: t(`WF_CHB_${slot === null || slot === void 0 ? void 0 : slot.status}`)
|
|
48642
48596
|
};
|
|
48643
48597
|
})) || [];
|
|
48598
|
+
console.log("docs===", docs);
|
|
48644
48599
|
return /*#__PURE__*/React.createElement("div", {
|
|
48645
48600
|
style: pageStyle
|
|
48646
48601
|
}, /*#__PURE__*/React.createElement("h2", {
|
|
@@ -48651,7 +48606,7 @@ function CHBSummary({
|
|
|
48651
48606
|
style: {
|
|
48652
48607
|
fontSize: "24px"
|
|
48653
48608
|
}
|
|
48654
|
-
}, 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", {
|
|
48655
48610
|
style: sectionStyle
|
|
48656
48611
|
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
48657
48612
|
style: {
|
|
@@ -48682,7 +48637,9 @@ function CHBSummary({
|
|
|
48682
48637
|
flexDirection: "row",
|
|
48683
48638
|
gap: "30px"
|
|
48684
48639
|
}
|
|
48685
|
-
}, 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, {
|
|
48686
48643
|
value: docs,
|
|
48687
48644
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
48688
48645
|
index: index
|
|
@@ -48691,13 +48648,8 @@ function CHBSummary({
|
|
|
48691
48648
|
marginTop: "10px",
|
|
48692
48649
|
fontSize: "15px"
|
|
48693
48650
|
}
|
|
48694
|
-
}, t(doc === null || doc === void 0 ? void 0 : doc.documentType))))))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
48695
|
-
|
|
48696
|
-
background: " white",
|
|
48697
|
-
color: "black",
|
|
48698
|
-
border: "1px solid",
|
|
48699
|
-
marginRight: "10px"
|
|
48700
|
-
},
|
|
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",
|
|
48701
48653
|
label: "Back",
|
|
48702
48654
|
onSubmit: onGoBack
|
|
48703
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, {
|
|
@@ -48787,6 +48739,7 @@ const NewADSStepFormFour = ({
|
|
|
48787
48739
|
});
|
|
48788
48740
|
setLoader(false);
|
|
48789
48741
|
dispatch(RESET_CHB_APPLICATION_FORM());
|
|
48742
|
+
sessionStorage.removeItem("CitizenConsentdocFilestoreidCHB");
|
|
48790
48743
|
if ((response === null || response === void 0 ? void 0 : (_response$responseInf = response.responseInfo) === null || _response$responseInf === void 0 ? void 0 : _response$responseInf.status) == "SUCCESSFUL") {
|
|
48791
48744
|
return {
|
|
48792
48745
|
isSuccess: true,
|