@mseva/upyog-ui-module-chb 1.0.65 → 1.0.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 +248 -143
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +246 -145
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -25487,7 +25487,7 @@ const CHBApplicationDetails = () => {
|
|
|
25487
25487
|
communityHallCode: "" + t(chb_details === null || chb_details === void 0 ? void 0 : chb_details.communityHallCode),
|
|
25488
25488
|
hallCode: slot.hallCode + " - " + slot.capacity,
|
|
25489
25489
|
bookingDate: slot.bookingDate + " (" + slot.bookingFromTime + " - " + slot.bookingToTime + ")",
|
|
25490
|
-
bookingStatus: "" +
|
|
25490
|
+
bookingStatus: t("WF_NEWTL_" + (slot === null || slot === void 0 ? void 0 : slot.status))
|
|
25491
25491
|
}))) || [];
|
|
25492
25492
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
25493
25493
|
className: "cardHeaderWithOptions",
|
|
@@ -25504,11 +25504,7 @@ const CHBApplicationDetails = () => {
|
|
|
25504
25504
|
onHeadClick: () => setShowOptions(!showOptions),
|
|
25505
25505
|
displayOptions: showOptions,
|
|
25506
25506
|
options: dowloadOptions
|
|
25507
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
25508
|
-
className: "border-none",
|
|
25509
|
-
label: t("CHB_BOOKING_NO"),
|
|
25510
|
-
text: chb_details === null || chb_details === void 0 ? void 0 : chb_details.bookingNo
|
|
25511
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
|
|
25507
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
|
|
25512
25508
|
style: {
|
|
25513
25509
|
fontSize: "24px"
|
|
25514
25510
|
}
|
|
@@ -25524,6 +25520,10 @@ const CHBApplicationDetails = () => {
|
|
|
25524
25520
|
className: "border-none",
|
|
25525
25521
|
label: t("CHB_EMAIL_ID"),
|
|
25526
25522
|
text: (chb_details === null || chb_details === void 0 ? void 0 : (_chb_details$applican3 = chb_details.applicantDetail) === null || _chb_details$applican3 === void 0 ? void 0 : _chb_details$applican3.applicantEmailId) || t("CS_NA")
|
|
25523
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
25524
|
+
className: "border-none",
|
|
25525
|
+
label: t("CHB_BOOKING_NO"),
|
|
25526
|
+
text: chb_details === null || chb_details === void 0 ? void 0 : chb_details.bookingNo
|
|
25527
25527
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
|
|
25528
25528
|
style: {
|
|
25529
25529
|
fontSize: "24px"
|
|
@@ -25531,18 +25531,19 @@ const CHBApplicationDetails = () => {
|
|
|
25531
25531
|
}, t("CHB_EVENT_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
25532
25532
|
className: "border-none",
|
|
25533
25533
|
label: t("CHB_SPECIAL_CATEGORY"),
|
|
25534
|
-
text: (chb_details === null || chb_details === void 0 ? void 0 : (_chb_details$specialC = chb_details.specialCategory) === null || _chb_details$specialC === void 0 ? void 0 : _chb_details$specialC.category) || t("CS_NA")
|
|
25534
|
+
text: t(chb_details === null || chb_details === void 0 ? void 0 : (_chb_details$specialC = chb_details.specialCategory) === null || _chb_details$specialC === void 0 ? void 0 : _chb_details$specialC.category) || t("CS_NA")
|
|
25535
25535
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
25536
25536
|
className: "border-none",
|
|
25537
25537
|
label: t("CHB_PURPOSE"),
|
|
25538
|
-
text: (chb_details === null || chb_details === void 0 ? void 0 : (_chb_details$purpose = chb_details.purpose) === null || _chb_details$purpose === void 0 ? void 0 : _chb_details$purpose.purpose) || t("CS_NA")
|
|
25538
|
+
text: t(chb_details === null || chb_details === void 0 ? void 0 : (_chb_details$purpose = chb_details.purpose) === null || _chb_details$purpose === void 0 ? void 0 : _chb_details$purpose.purpose) || t("CS_NA")
|
|
25539
25539
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
25540
25540
|
className: "border-none",
|
|
25541
25541
|
label: t("CHB_PURPOSE_DESCRIPTION"),
|
|
25542
25542
|
text: (chb_details === null || chb_details === void 0 ? void 0 : chb_details.purposeDescription) || t("CS_NA")
|
|
25543
25543
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
|
|
25544
25544
|
style: {
|
|
25545
|
-
fontSize: "24px"
|
|
25545
|
+
fontSize: "24px",
|
|
25546
|
+
marginTop: "30px"
|
|
25546
25547
|
}
|
|
25547
25548
|
}, t("SLOT_DETAILS")), /*#__PURE__*/React__default.createElement(ApplicationTable, {
|
|
25548
25549
|
t: t,
|
|
@@ -25558,28 +25559,30 @@ const CHBApplicationDetails = () => {
|
|
|
25558
25559
|
}),
|
|
25559
25560
|
isPaginationRequired: false,
|
|
25560
25561
|
totalRecords: slotlistRows.length
|
|
25561
|
-
}), (
|
|
25562
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
|
|
25563
|
+
style: {
|
|
25564
|
+
fontSize: "24px",
|
|
25565
|
+
marginTop: "30px"
|
|
25566
|
+
}
|
|
25567
|
+
}, t("CS_COMMON_DOCUMENTS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
25568
|
+
style: {
|
|
25569
|
+
display: "flex",
|
|
25570
|
+
flexDirection: "row",
|
|
25571
|
+
gap: "30px"
|
|
25572
|
+
}
|
|
25573
|
+
}, (_docs = docs) === null || _docs === void 0 ? void 0 : _docs.map((doc, index) => {
|
|
25562
25574
|
var _doc$documentType;
|
|
25563
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
25564
|
-
style: {
|
|
25565
|
-
fontSize: "24px"
|
|
25566
|
-
}
|
|
25567
|
-
}, t("CHB_DOCUMENTS_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
25568
|
-
style: {
|
|
25569
|
-
display: "flex",
|
|
25570
|
-
flexDirection: "row"
|
|
25571
|
-
}
|
|
25572
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
25573
|
-
key: "doc-" + index,
|
|
25574
|
-
style: {
|
|
25575
|
-
marginRight: "25px"
|
|
25576
|
-
}
|
|
25577
|
-
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t("CHB_" + (doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_")))), /*#__PURE__*/React__default.createElement(CHBDocument, {
|
|
25575
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(CHBDocument, {
|
|
25578
25576
|
value: docs,
|
|
25579
25577
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
25580
25578
|
index: index
|
|
25581
|
-
})
|
|
25582
|
-
|
|
25579
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
25580
|
+
style: {
|
|
25581
|
+
marginTop: "10px",
|
|
25582
|
+
fontSize: "15px"
|
|
25583
|
+
}
|
|
25584
|
+
}, t("CHB_MESSAGE_" + (doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_"))))));
|
|
25585
|
+
}))))));
|
|
25583
25586
|
};
|
|
25584
25587
|
|
|
25585
25588
|
const InboxLinks = _ref => {
|
|
@@ -36350,6 +36353,7 @@ const CHBCitizenSecond = _ref => {
|
|
|
36350
36353
|
const [getHallCodes, setHallCodes] = React.useState([]);
|
|
36351
36354
|
const [getSlots, setSlots] = React.useState([]);
|
|
36352
36355
|
const [loader, setLoader] = React.useState(false);
|
|
36356
|
+
const [showInfo, setShowInfo] = React.useState(false);
|
|
36353
36357
|
const tenantId = window.location.href.includes("employee") ? Digit.ULBService.getCurrentPermanentCity() : localStorage.getItem("CITIZEN.CITY");
|
|
36354
36358
|
const {
|
|
36355
36359
|
control,
|
|
@@ -36362,6 +36366,7 @@ const CHBCitizenSecond = _ref => {
|
|
|
36362
36366
|
getValues
|
|
36363
36367
|
} = reactHookForm.useForm({
|
|
36364
36368
|
defaultValues: {
|
|
36369
|
+
shouldUnregister: false,
|
|
36365
36370
|
halls: [{
|
|
36366
36371
|
startDate: "",
|
|
36367
36372
|
endDate: "",
|
|
@@ -36400,22 +36405,19 @@ const CHBCitizenSecond = _ref => {
|
|
|
36400
36405
|
} = Digit.Hooks.useCustomMDMS("pb", "CHB", [{
|
|
36401
36406
|
name: "HallCode"
|
|
36402
36407
|
}]);
|
|
36408
|
+
console.log("CHBHallCode", CHBHallCode);
|
|
36403
36409
|
const fiterHalls = selected => {
|
|
36404
36410
|
var _CHBDetails$CHB, _CHBDetails$CHB$Commu, _CHBHallCode$CHB;
|
|
36405
|
-
|
|
36406
|
-
const filteredHalls = (CHBDetails === null || CHBDetails === void 0 ? void 0 : (_CHBDetails$CHB = CHBDetails.CHB) === null || _CHBDetails$CHB === void 0 ? void 0 : (_CHBDetails$CHB$Commu = _CHBDetails$CHB.CommunityHalls) === null || _CHBDetails$CHB$Commu === void 0 ? void 0 : _CHBDetails$CHB$Commu.filter(hall => hall.locationCode === selected.code)) || [];
|
|
36411
|
+
const filteredHalls = (CHBDetails === null || CHBDetails === void 0 ? void 0 : (_CHBDetails$CHB = CHBDetails.CHB) === null || _CHBDetails$CHB === void 0 ? void 0 : (_CHBDetails$CHB$Commu = _CHBDetails$CHB.CommunityHalls) === null || _CHBDetails$CHB$Commu === void 0 ? void 0 : _CHBDetails$CHB$Commu.filter(hall => hall.locationCode === (selected === null || selected === void 0 ? void 0 : selected.code))) || [];
|
|
36407
36412
|
setHallDetails(filteredHalls);
|
|
36408
36413
|
const hallInfo = CHBHallCode === null || CHBHallCode === void 0 ? void 0 : (_CHBHallCode$CHB = CHBHallCode.CHB) === null || _CHBHallCode$CHB === void 0 ? void 0 : _CHBHallCode$CHB.HallCode;
|
|
36409
36414
|
const getHallCodesData = hallInfo === null || hallInfo === void 0 ? void 0 : hallInfo.filter(item => (item === null || item === void 0 ? void 0 : item.communityHallId) == (selected === null || selected === void 0 ? void 0 : selected.communityHallId));
|
|
36410
|
-
console.log("getHallCodesData", getHallCodesData);
|
|
36411
36415
|
setHallCodes(getHallCodesData);
|
|
36412
36416
|
};
|
|
36413
36417
|
const slotsSearch = function (data) {
|
|
36414
36418
|
try {
|
|
36415
36419
|
var _getValues, _getValues$siteId, _getValues2, _getValues3;
|
|
36416
36420
|
setLoader(true);
|
|
36417
|
-
console.log("data", data);
|
|
36418
|
-
console.log("getValues", getValues());
|
|
36419
36421
|
const payload = {
|
|
36420
36422
|
tenantId: tenantId,
|
|
36421
36423
|
communityHallCode: (_getValues = getValues()) === null || _getValues === void 0 ? void 0 : (_getValues$siteId = _getValues.siteId) === null || _getValues$siteId === void 0 ? void 0 : _getValues$siteId.code,
|
|
@@ -36424,86 +36426,112 @@ const CHBCitizenSecond = _ref => {
|
|
|
36424
36426
|
bookingEndDate: (_getValues3 = getValues()) === null || _getValues3 === void 0 ? void 0 : _getValues3.startDate,
|
|
36425
36427
|
isTimerRequired: false
|
|
36426
36428
|
};
|
|
36427
|
-
|
|
36428
|
-
|
|
36429
|
-
|
|
36430
|
-
|
|
36429
|
+
return Promise.resolve(_catch(function () {
|
|
36430
|
+
return Promise.resolve(Digit.CHBServices.slot_search({
|
|
36431
|
+
filters: payload
|
|
36432
|
+
})).then(function (response) {
|
|
36433
|
+
setLoader(false);
|
|
36434
|
+
setSlots(response === null || response === void 0 ? void 0 : response.hallSlotAvailabiltityDetails);
|
|
36435
|
+
return response;
|
|
36436
|
+
});
|
|
36437
|
+
}, function () {
|
|
36431
36438
|
setLoader(false);
|
|
36432
|
-
|
|
36433
|
-
console.log("res", response === null || response === void 0 ? void 0 : response.hallSlotAvailabiltityDetails);
|
|
36434
|
-
});
|
|
36439
|
+
}));
|
|
36435
36440
|
} catch (e) {
|
|
36436
36441
|
return Promise.reject(e);
|
|
36437
36442
|
}
|
|
36438
36443
|
};
|
|
36439
|
-
const updateHall = (idx, updates) => {
|
|
36440
|
-
setHallDetails(prev => {
|
|
36441
|
-
const updated = [...prev];
|
|
36442
|
-
updated[idx] = _extends({}, updated[idx], updates);
|
|
36443
|
-
return updated;
|
|
36444
|
-
});
|
|
36445
|
-
};
|
|
36446
36444
|
const onSubmit = data => {
|
|
36447
|
-
var _Digit$UserService$ge;
|
|
36448
|
-
console.log("data
|
|
36445
|
+
var _Digit$UserService$ge, _data$slots, _getHallDetails$, _data$purpose, _data$specialCategory;
|
|
36446
|
+
console.log("data==??", data);
|
|
36449
36447
|
const userInfo = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
|
|
36450
|
-
const
|
|
36451
|
-
|
|
36448
|
+
const now = Date.now();
|
|
36449
|
+
const bookingSlotDetails = data === null || data === void 0 ? void 0 : (_data$slots = data.slots) === null || _data$slots === void 0 ? void 0 : _data$slots.map(slot => {
|
|
36450
|
+
var _CHBHallCode$CHB2, _CHBHallCode$CHB2$Hal;
|
|
36451
|
+
const hallInfo = CHBHallCode === null || CHBHallCode === void 0 ? void 0 : (_CHBHallCode$CHB2 = CHBHallCode.CHB) === null || _CHBHallCode$CHB2 === void 0 ? void 0 : (_CHBHallCode$CHB2$Hal = _CHBHallCode$CHB2.HallCode) === null || _CHBHallCode$CHB2$Hal === void 0 ? void 0 : _CHBHallCode$CHB2$Hal.find(h => h.HallCode === slot.hallCode);
|
|
36452
|
+
const formattedDate = slot !== null && slot !== void 0 && slot.bookingDate ? format(parse(slot.bookingDate, "dd-MM-yyyy", new Date()), "yyyy-MM-dd") : null;
|
|
36452
36453
|
return {
|
|
36453
|
-
bookingDate:
|
|
36454
|
-
bookingEndDate:
|
|
36455
|
-
bookingFromTime:
|
|
36456
|
-
bookingToTime:
|
|
36457
|
-
hallCode:
|
|
36454
|
+
bookingDate: formattedDate,
|
|
36455
|
+
bookingEndDate: formattedDate,
|
|
36456
|
+
bookingFromTime: (slot === null || slot === void 0 ? void 0 : slot.fromTime) || "13:47",
|
|
36457
|
+
bookingToTime: (slot === null || slot === void 0 ? void 0 : slot.toTime) || "14:54",
|
|
36458
|
+
hallCode: slot === null || slot === void 0 ? void 0 : slot.hallCode,
|
|
36458
36459
|
status: "INITIATE",
|
|
36459
|
-
capacity:
|
|
36460
|
+
capacity: (hallInfo === null || hallInfo === void 0 ? void 0 : hallInfo.capacity) || null
|
|
36460
36461
|
};
|
|
36461
36462
|
});
|
|
36462
|
-
|
|
36463
|
+
const payload = {
|
|
36464
|
+
hallsBookingApplication: {
|
|
36465
|
+
tenantId,
|
|
36466
|
+
bookingStatus: "INITIATED",
|
|
36467
|
+
applicationDate: now,
|
|
36468
|
+
communityHallCode: (getHallDetails === null || getHallDetails === void 0 ? void 0 : (_getHallDetails$ = getHallDetails[0]) === null || _getHallDetails$ === void 0 ? void 0 : _getHallDetails$.communityHallId) || "",
|
|
36469
|
+
purpose: {
|
|
36470
|
+
purpose: data === null || data === void 0 ? void 0 : (_data$purpose = data.purpose) === null || _data$purpose === void 0 ? void 0 : _data$purpose.code
|
|
36471
|
+
},
|
|
36472
|
+
specialCategory: {
|
|
36473
|
+
category: data === null || data === void 0 ? void 0 : (_data$specialCategory = data.specialCategory) === null || _data$specialCategory === void 0 ? void 0 : _data$specialCategory.code
|
|
36474
|
+
},
|
|
36475
|
+
purposeDescription: data === null || data === void 0 ? void 0 : data.purposeDescription,
|
|
36476
|
+
bookingSlotDetails,
|
|
36477
|
+
owners: [{
|
|
36478
|
+
name: userInfo === null || userInfo === void 0 ? void 0 : userInfo.name,
|
|
36479
|
+
mobileNumber: userInfo === null || userInfo === void 0 ? void 0 : userInfo.mobileNumber,
|
|
36480
|
+
emailId: userInfo === null || userInfo === void 0 ? void 0 : userInfo.emailId,
|
|
36481
|
+
type: userInfo === null || userInfo === void 0 ? void 0 : userInfo.type
|
|
36482
|
+
}],
|
|
36483
|
+
workflow: {
|
|
36484
|
+
action: "INITIATE",
|
|
36485
|
+
businessService: "CommunityHallBooking",
|
|
36486
|
+
moduleName: "CommunityHallModule"
|
|
36487
|
+
}
|
|
36488
|
+
}
|
|
36489
|
+
};
|
|
36490
|
+
console.log("payload", payload);
|
|
36491
|
+
goNext(payload);
|
|
36463
36492
|
};
|
|
36464
36493
|
React.useEffect(() => {
|
|
36465
36494
|
var _currentStepData$owne;
|
|
36466
36495
|
const formattedData = currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$owne = currentStepData.ownerDetails) === null || _currentStepData$owne === void 0 ? void 0 : _currentStepData$owne.hallsBookingApplication;
|
|
36467
36496
|
if (formattedData) {
|
|
36468
|
-
var _formattedData$bookin3;
|
|
36469
|
-
const
|
|
36497
|
+
var _CHBHallCode$CHB3, _formattedData$bookin3, _formattedData$bookin4;
|
|
36498
|
+
const communityHallsOptions = CHBLocations.CHB.CommunityHalls || [];
|
|
36470
36499
|
const purposeOptions = CHBPurpose.CHB.Purpose || [];
|
|
36471
36500
|
const specialCategoryOptions = SpecialCategory.CHB.SpecialCategory || [];
|
|
36472
|
-
const
|
|
36473
|
-
|
|
36474
|
-
return item.code == (formattedData === null || formattedData === void 0 ? void 0 : (_formattedData$bookin = formattedData.bookingSlotDetails) === null || _formattedData$bookin === void 0 ? void 0 : (_formattedData$bookin2 = _formattedData$bookin[0]) === null || _formattedData$bookin2 === void 0 ? void 0 : _formattedData$bookin2.hallCode);
|
|
36475
|
-
});
|
|
36501
|
+
const hallCodeOptions = CHBHallCode === null || CHBHallCode === void 0 ? void 0 : (_CHBHallCode$CHB3 = CHBHallCode.CHB) === null || _CHBHallCode$CHB3 === void 0 ? void 0 : _CHBHallCode$CHB3.HallCode;
|
|
36502
|
+
const selectedCommHall = communityHallsOptions === null || communityHallsOptions === void 0 ? void 0 : communityHallsOptions.find(item => (item === null || item === void 0 ? void 0 : item.communityHallId) == (formattedData === null || formattedData === void 0 ? void 0 : formattedData.communityHallCode));
|
|
36476
36503
|
const selectedPurpose = purposeOptions === null || purposeOptions === void 0 ? void 0 : purposeOptions.find(item => {
|
|
36477
36504
|
var _formattedData$purpos;
|
|
36478
|
-
return item.code == (formattedData === null || formattedData === void 0 ? void 0 : (_formattedData$purpos = formattedData.purpose) === null || _formattedData$purpos === void 0 ? void 0 : _formattedData$purpos.purpose);
|
|
36505
|
+
return (item === null || item === void 0 ? void 0 : item.code) == (formattedData === null || formattedData === void 0 ? void 0 : (_formattedData$purpos = formattedData.purpose) === null || _formattedData$purpos === void 0 ? void 0 : _formattedData$purpos.purpose);
|
|
36479
36506
|
});
|
|
36480
36507
|
const selectedSpecialCat = specialCategoryOptions === null || specialCategoryOptions === void 0 ? void 0 : specialCategoryOptions.find(item => {
|
|
36481
36508
|
var _formattedData$specia;
|
|
36482
|
-
return item.code == (formattedData === null || formattedData === void 0 ? void 0 : (_formattedData$specia = formattedData.specialCategory) === null || _formattedData$specia === void 0 ? void 0 : _formattedData$specia.category);
|
|
36509
|
+
return (item === null || item === void 0 ? void 0 : item.code) == (formattedData === null || formattedData === void 0 ? void 0 : (_formattedData$specia = formattedData.specialCategory) === null || _formattedData$specia === void 0 ? void 0 : _formattedData$specia.category);
|
|
36483
36510
|
});
|
|
36484
|
-
|
|
36485
|
-
|
|
36486
|
-
|
|
36487
|
-
siteId: selectedLoc || null,
|
|
36488
|
-
purpose: selectedPurpose || null,
|
|
36489
|
-
specialCategory: selectedSpecialCat || null,
|
|
36490
|
-
purposeDescription: formattedData.purposeDescription || "",
|
|
36491
|
-
halls: [{
|
|
36492
|
-
startDate: slot.bookingDate,
|
|
36493
|
-
endDate: slot.bookingEndDate,
|
|
36494
|
-
startTime: slot.bookingFromTime,
|
|
36495
|
-
endTime: slot.bookingToTime
|
|
36496
|
-
}]
|
|
36497
|
-
});
|
|
36498
|
-
updateHall(idx, {
|
|
36499
|
-
startDate: slot.bookingDate,
|
|
36500
|
-
endDate: slot.bookingEndDate,
|
|
36501
|
-
startTime: slot.bookingFromTime,
|
|
36502
|
-
endTime: slot.bookingToTime
|
|
36503
|
-
});
|
|
36511
|
+
const selectHallCode = hallCodeOptions === null || hallCodeOptions === void 0 ? void 0 : hallCodeOptions.find(item => {
|
|
36512
|
+
var _formattedData$bookin, _formattedData$bookin2;
|
|
36513
|
+
return (item === null || item === void 0 ? void 0 : item.HallCode) == (formattedData === null || formattedData === void 0 ? void 0 : (_formattedData$bookin = formattedData.bookingSlotDetails) === null || _formattedData$bookin === void 0 ? void 0 : (_formattedData$bookin2 = _formattedData$bookin[0]) === null || _formattedData$bookin2 === void 0 ? void 0 : _formattedData$bookin2.hallCode);
|
|
36504
36514
|
});
|
|
36515
|
+
console.log("formattedData", formattedData);
|
|
36516
|
+
setValue("siteId", selectedCommHall || null);
|
|
36517
|
+
setValue("hallCode", selectHallCode || null);
|
|
36518
|
+
setValue("startDate", formattedData === null || formattedData === void 0 ? void 0 : (_formattedData$bookin3 = formattedData.bookingSlotDetails) === null || _formattedData$bookin3 === void 0 ? void 0 : (_formattedData$bookin4 = _formattedData$bookin3[0]) === null || _formattedData$bookin4 === void 0 ? void 0 : _formattedData$bookin4.bookingDate);
|
|
36519
|
+
setShowInfo(true);
|
|
36520
|
+
fiterHalls(selectedCommHall);
|
|
36521
|
+
slotsSearch(selectHallCode).then(response => {
|
|
36522
|
+
console.log("response", response);
|
|
36523
|
+
const slotsData = (response === null || response === void 0 ? void 0 : response.hallSlotAvailabiltityDetails) || [];
|
|
36524
|
+
setSlots(slotsData);
|
|
36525
|
+
setValue("slots", slotsData);
|
|
36526
|
+
});
|
|
36527
|
+
setValue("purpose", selectedPurpose || null);
|
|
36528
|
+
setValue("specialCategory", selectedSpecialCat || null);
|
|
36529
|
+
setValue("purposeDescription", formattedData.purposeDescription || "");
|
|
36505
36530
|
}
|
|
36506
36531
|
}, [currentStepData, setValue]);
|
|
36532
|
+
React.useEffect(() => {
|
|
36533
|
+
console.log("getSlots", getSlots);
|
|
36534
|
+
}, [getSlots]);
|
|
36507
36535
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("form", {
|
|
36508
36536
|
onSubmit: handleSubmit(onSubmit)
|
|
36509
36537
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "Select Hall Name ", /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -36514,7 +36542,7 @@ const CHBCitizenSecond = _ref => {
|
|
|
36514
36542
|
control: control,
|
|
36515
36543
|
name: "siteId",
|
|
36516
36544
|
rules: {
|
|
36517
|
-
required: "
|
|
36545
|
+
required: t("HALL_NAME_REQ")
|
|
36518
36546
|
},
|
|
36519
36547
|
render: props => {
|
|
36520
36548
|
var _CHBLocations$CHB;
|
|
@@ -36554,7 +36582,7 @@ const CHBCitizenSecond = _ref => {
|
|
|
36554
36582
|
control: control,
|
|
36555
36583
|
name: "startDate",
|
|
36556
36584
|
rules: {
|
|
36557
|
-
required: "
|
|
36585
|
+
required: t("START_DATE_REQ")
|
|
36558
36586
|
},
|
|
36559
36587
|
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
36560
36588
|
style: {
|
|
@@ -36587,7 +36615,7 @@ const CHBCitizenSecond = _ref => {
|
|
|
36587
36615
|
control: control,
|
|
36588
36616
|
name: "hallCode",
|
|
36589
36617
|
rules: {
|
|
36590
|
-
required: "
|
|
36618
|
+
required: t("HALL_CODE_REQ")
|
|
36591
36619
|
},
|
|
36592
36620
|
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
36593
36621
|
style: {
|
|
@@ -36595,8 +36623,10 @@ const CHBCitizenSecond = _ref => {
|
|
|
36595
36623
|
},
|
|
36596
36624
|
className: "form-field",
|
|
36597
36625
|
select: e => {
|
|
36626
|
+
console.log("e", e);
|
|
36598
36627
|
props.onChange(e);
|
|
36599
36628
|
slotsSearch(e);
|
|
36629
|
+
setShowInfo(true);
|
|
36600
36630
|
},
|
|
36601
36631
|
selected: props.value,
|
|
36602
36632
|
option: getHallCodes,
|
|
@@ -36615,24 +36645,36 @@ const CHBCitizenSecond = _ref => {
|
|
|
36615
36645
|
style: {
|
|
36616
36646
|
color: "red"
|
|
36617
36647
|
}
|
|
36618
|
-
}, "*")), /*#__PURE__*/React__default.createElement(
|
|
36619
|
-
style: {
|
|
36620
|
-
display: "flex",
|
|
36621
|
-
flexDirection: "column",
|
|
36622
|
-
gap: "8px"
|
|
36623
|
-
}
|
|
36624
|
-
}, getSlots === null || getSlots === void 0 ? void 0 : getSlots.map((slot, idx) => /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
36625
|
-
key: idx,
|
|
36648
|
+
}, "*")), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
36626
36649
|
control: control,
|
|
36627
36650
|
name: "slots",
|
|
36628
|
-
|
|
36651
|
+
rules: {
|
|
36652
|
+
validate: value => {
|
|
36653
|
+
if (!value || value.length === 0) {
|
|
36654
|
+
return t("PLEASE_SELECT_AT_LEAST_ONE_SLOT");
|
|
36655
|
+
}
|
|
36656
|
+
return true;
|
|
36657
|
+
}
|
|
36658
|
+
},
|
|
36659
|
+
render: field => /*#__PURE__*/React__default.createElement("div", {
|
|
36660
|
+
style: {
|
|
36661
|
+
display: "flex",
|
|
36662
|
+
flexDirection: "column",
|
|
36663
|
+
gap: "8px"
|
|
36664
|
+
}
|
|
36665
|
+
}, getSlots === null || getSlots === void 0 ? void 0 : getSlots.map((slot, idx) => {
|
|
36629
36666
|
var _field$value;
|
|
36630
36667
|
const isChecked = (_field$value = field.value) === null || _field$value === void 0 ? void 0 : _field$value.some(s => s.hallCode === slot.hallCode);
|
|
36668
|
+
console.log("isChecked", isChecked);
|
|
36669
|
+
console.log("field.value", field);
|
|
36670
|
+
console.log("slot", slot);
|
|
36631
36671
|
return /*#__PURE__*/React__default.createElement("label", {
|
|
36672
|
+
key: idx,
|
|
36632
36673
|
style: {
|
|
36633
36674
|
display: "flex",
|
|
36634
36675
|
alignItems: "center",
|
|
36635
|
-
gap: "8px"
|
|
36676
|
+
gap: "8px",
|
|
36677
|
+
cursor: "pointer"
|
|
36636
36678
|
}
|
|
36637
36679
|
}, /*#__PURE__*/React__default.createElement("input", {
|
|
36638
36680
|
type: "checkbox",
|
|
@@ -36645,8 +36687,16 @@ const CHBCitizenSecond = _ref => {
|
|
|
36645
36687
|
}
|
|
36646
36688
|
}
|
|
36647
36689
|
}), /*#__PURE__*/React__default.createElement("span", null, slot.bookingDate, " (", slot.hallCode, ") \u2013 ", slot.slotStaus));
|
|
36690
|
+
}))
|
|
36691
|
+
}), errors.slots && /*#__PURE__*/React__default.createElement("p", {
|
|
36692
|
+
style: {
|
|
36693
|
+
color: "red"
|
|
36694
|
+
}
|
|
36695
|
+
}, errors.slots.message)), /*#__PURE__*/React__default.createElement("div", {
|
|
36696
|
+
style: {
|
|
36697
|
+
display: showInfo ? "block" : "none"
|
|
36648
36698
|
}
|
|
36649
|
-
}
|
|
36699
|
+
}, " ", /*#__PURE__*/React__default.createElement("div", {
|
|
36650
36700
|
style: {
|
|
36651
36701
|
marginTop: "20px",
|
|
36652
36702
|
marginBottom: "20px"
|
|
@@ -36658,8 +36708,9 @@ const CHBCitizenSecond = _ref => {
|
|
|
36658
36708
|
}, "*")), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
36659
36709
|
control: control,
|
|
36660
36710
|
name: "purpose",
|
|
36711
|
+
defaultValue: null,
|
|
36661
36712
|
rules: {
|
|
36662
|
-
required: "CHB_PURPOSE_REQUIRED"
|
|
36713
|
+
required: t("CHB_PURPOSE_REQUIRED")
|
|
36663
36714
|
},
|
|
36664
36715
|
render: props => {
|
|
36665
36716
|
var _CHBPurpose$CHB;
|
|
@@ -36689,8 +36740,9 @@ const CHBCitizenSecond = _ref => {
|
|
|
36689
36740
|
}, "*")), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
36690
36741
|
control: control,
|
|
36691
36742
|
name: "specialCategory",
|
|
36743
|
+
defaultValue: null,
|
|
36692
36744
|
rules: {
|
|
36693
|
-
required: "CHB_SPECIAL_CATEGORY_REQUIRED"
|
|
36745
|
+
required: t("CHB_SPECIAL_CATEGORY_REQUIRED")
|
|
36694
36746
|
},
|
|
36695
36747
|
render: props => {
|
|
36696
36748
|
var _SpecialCategory$CHB;
|
|
@@ -36720,11 +36772,12 @@ const CHBCitizenSecond = _ref => {
|
|
|
36720
36772
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
36721
36773
|
control: control,
|
|
36722
36774
|
name: "purposeDescription",
|
|
36775
|
+
defaultValue: "",
|
|
36723
36776
|
rules: {
|
|
36724
|
-
required: "CHB_PURPOSE_DESCRIPTION_REQUIRED",
|
|
36777
|
+
required: t("CHB_PURPOSE_DESCRIPTION_REQUIRED"),
|
|
36725
36778
|
minLength: {
|
|
36726
36779
|
value: 5,
|
|
36727
|
-
message: "CHB_PURPOSE_DESCRIPTION_REQUIRED_MIN"
|
|
36780
|
+
message: t("CHB_PURPOSE_DESCRIPTION_REQUIRED_MIN")
|
|
36728
36781
|
}
|
|
36729
36782
|
},
|
|
36730
36783
|
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextArea, {
|
|
@@ -36803,6 +36856,7 @@ const CHBCitizenDetailsNew = _ref => {
|
|
|
36803
36856
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
36804
36857
|
const stateId = Digit.ULBService.getStateId();
|
|
36805
36858
|
const user = Digit.UserService.getUser();
|
|
36859
|
+
const [loader, setLoader] = React.useState(false);
|
|
36806
36860
|
const {
|
|
36807
36861
|
control,
|
|
36808
36862
|
handleSubmit,
|
|
@@ -36820,10 +36874,11 @@ const CHBCitizenDetailsNew = _ref => {
|
|
|
36820
36874
|
});
|
|
36821
36875
|
const onSubmit = function (data) {
|
|
36822
36876
|
try {
|
|
36877
|
+
setLoader(true);
|
|
36823
36878
|
console.log("data", data);
|
|
36824
36879
|
console.log("user", user);
|
|
36825
36880
|
console.log("currentStepData", currentStepData);
|
|
36826
|
-
const
|
|
36881
|
+
const _temp2 = function (_currentStepData$venu, _currentStepData$venu2) {
|
|
36827
36882
|
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) {
|
|
36828
36883
|
goNext(currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.venueDetails);
|
|
36829
36884
|
} else {
|
|
@@ -36846,13 +36901,19 @@ const CHBCitizenDetailsNew = _ref => {
|
|
|
36846
36901
|
})
|
|
36847
36902
|
};
|
|
36848
36903
|
console.log("final payload", payload);
|
|
36849
|
-
|
|
36850
|
-
|
|
36851
|
-
|
|
36904
|
+
const _temp = _catch(function () {
|
|
36905
|
+
return Promise.resolve(Digit.CHBServices.create(payload)).then(function (response) {
|
|
36906
|
+
console.log("response", response);
|
|
36907
|
+
setLoader(false);
|
|
36908
|
+
goNext(response === null || response === void 0 ? void 0 : response.hallsBookingApplication);
|
|
36909
|
+
});
|
|
36910
|
+
}, function () {
|
|
36911
|
+
setLoader(false);
|
|
36852
36912
|
});
|
|
36913
|
+
if (_temp && _temp.then) return _temp.then(function () {});
|
|
36853
36914
|
}
|
|
36854
36915
|
}();
|
|
36855
|
-
return Promise.resolve(
|
|
36916
|
+
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
|
36856
36917
|
} catch (e) {
|
|
36857
36918
|
return Promise.reject(e);
|
|
36858
36919
|
}
|
|
@@ -37021,7 +37082,9 @@ const CHBCitizenDetailsNew = _ref => {
|
|
|
37021
37082
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
37022
37083
|
label: "Next",
|
|
37023
37084
|
submit: "submit"
|
|
37024
|
-
})))
|
|
37085
|
+
}))), loader && /*#__PURE__*/React__default.createElement(Loader, {
|
|
37086
|
+
page: true
|
|
37087
|
+
}));
|
|
37025
37088
|
};
|
|
37026
37089
|
|
|
37027
37090
|
const NewADSStepFormTwo = _ref => {
|
|
@@ -37218,7 +37281,7 @@ function CHBDocument$1(_ref2) {
|
|
|
37218
37281
|
}
|
|
37219
37282
|
|
|
37220
37283
|
function CHBSummary(_ref) {
|
|
37221
|
-
var _formData$documents, _formData$documents$d, _formData$apiData, _formData$apiData$App, _formData$apiData$App2, _formData$venueDetail, _formData$venueDetail2, _user$info, _user$info$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _formData$venueDetail3, _formData$venueDetail4, _formData$venueDetail5, _formData$
|
|
37284
|
+
var _formData$documents, _formData$documents$d, _formData$apiData, _formData$apiData$App, _formData$apiData$App2, _formData$venueDetail, _formData$venueDetail2, _user$info, _user$info$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _formData$venueDetail3, _formData$venueDetail4, _formData$venueDetail5, _formData$venueDetail8, _formData$venueDetail9, _formData$venueDetail0, _formData$venueDetail1, _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$venueDetail22, _formData$venueDetail23, _formData$venueDetail24, _formData$venueDetail25, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9;
|
|
37222
37285
|
let {
|
|
37223
37286
|
formData,
|
|
37224
37287
|
goNext,
|
|
@@ -37236,6 +37299,19 @@ function CHBSummary(_ref) {
|
|
|
37236
37299
|
const mutateScreen = url.includes("/property-mutate/");
|
|
37237
37300
|
let user = Digit.UserService.getUser();
|
|
37238
37301
|
console.log("formData", formData);
|
|
37302
|
+
const columns = [{
|
|
37303
|
+
Header: "" + t("CHB_HALL_NUMBER"),
|
|
37304
|
+
accessor: "communityHallCode"
|
|
37305
|
+
}, {
|
|
37306
|
+
Header: "" + t("CHB_HALL_CODE"),
|
|
37307
|
+
accessor: "hallCode"
|
|
37308
|
+
}, {
|
|
37309
|
+
Header: "" + t("CHB_BOOKING_DATE"),
|
|
37310
|
+
accessor: "bookingDate"
|
|
37311
|
+
}, {
|
|
37312
|
+
Header: "" + t("PT_COMMON_TABLE_COL_STATUS_LABEL"),
|
|
37313
|
+
accessor: "bookingStatus"
|
|
37314
|
+
}];
|
|
37239
37315
|
let 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;
|
|
37240
37316
|
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$venueDetail = formData.venueDetails) === null || _formData$venueDetail === void 0 ? void 0 : (_formData$venueDetail2 = _formData$venueDetail[0]) === null || _formData$venueDetail2 === void 0 ? void 0 : _formData$venueDetail2.bookingNo);
|
|
37241
37317
|
const tenantId = window.location.href.includes("citizen") ? window.localStorage.getItem("CITIZEN.CITY") : window.localStorage.getItem("Employee.tenant-id");
|
|
@@ -37296,21 +37372,6 @@ function CHBSummary(_ref) {
|
|
|
37296
37372
|
padding: "0.5rem 0",
|
|
37297
37373
|
color: "#333"
|
|
37298
37374
|
};
|
|
37299
|
-
const documentsContainerStyle = {
|
|
37300
|
-
display: "flex",
|
|
37301
|
-
flexWrap: "wrap",
|
|
37302
|
-
gap: "1rem"
|
|
37303
|
-
};
|
|
37304
|
-
const documentCardStyle = {
|
|
37305
|
-
flex: isCitizen ? "1 1 18%" : "1 1 22%",
|
|
37306
|
-
minWidth: "200px",
|
|
37307
|
-
maxWidth: "250px",
|
|
37308
|
-
backgroundColor: "#fdfdfd",
|
|
37309
|
-
padding: "0.75rem",
|
|
37310
|
-
border: "1px solid #e0e0e0",
|
|
37311
|
-
borderRadius: "6px",
|
|
37312
|
-
boxShadow: "0 1px 3px rgba(0,0,0,0.05)"
|
|
37313
|
-
};
|
|
37314
37375
|
const boldLabelStyle = {
|
|
37315
37376
|
fontWeight: "bold",
|
|
37316
37377
|
color: "#555"
|
|
@@ -37319,28 +37380,70 @@ function CHBSummary(_ref) {
|
|
|
37319
37380
|
style: labelFieldPairStyle
|
|
37320
37381
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
37321
37382
|
style: boldLabelStyle
|
|
37322
|
-
}, label), /*#__PURE__*/React__default.createElement("div", null, value || "NA"));
|
|
37383
|
+
}, label), /*#__PURE__*/React__default.createElement("div", null, t(value) || "NA"));
|
|
37384
|
+
const slotlistRows = (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$venueDetail5 = _formData$venueDetail4.bookingSlotDetails) === null || _formData$venueDetail5 === void 0 ? void 0 : _formData$venueDetail5.map(slot => {
|
|
37385
|
+
var _formData$venueDetail6, _formData$venueDetail7;
|
|
37386
|
+
return {
|
|
37387
|
+
communityHallCode: "" + t(formData === null || formData === void 0 ? void 0 : (_formData$venueDetail6 = formData.venueDetails) === null || _formData$venueDetail6 === void 0 ? void 0 : (_formData$venueDetail7 = _formData$venueDetail6[0]) === null || _formData$venueDetail7 === void 0 ? void 0 : _formData$venueDetail7.communityHallCode),
|
|
37388
|
+
hallCode: slot.hallCode + " - " + slot.capacity,
|
|
37389
|
+
bookingDate: slot.bookingDate + " (" + slot.bookingFromTime + " - " + slot.bookingToTime + ")",
|
|
37390
|
+
bookingStatus: "" + t(slot.status)
|
|
37391
|
+
};
|
|
37392
|
+
})) || [];
|
|
37323
37393
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
37324
37394
|
style: pageStyle
|
|
37325
37395
|
}, /*#__PURE__*/React__default.createElement("h2", {
|
|
37326
37396
|
style: headingStyle
|
|
37327
37397
|
}, t("Application Summary")), /*#__PURE__*/React__default.createElement("div", {
|
|
37328
37398
|
style: sectionStyle
|
|
37329
|
-
},
|
|
37330
|
-
style:
|
|
37331
|
-
|
|
37399
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
|
|
37400
|
+
style: {
|
|
37401
|
+
fontSize: "24px"
|
|
37402
|
+
}
|
|
37403
|
+
}, t("CHB_APPLICANT_DETAILS")), renderLabel(t("BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL"), 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$venueDetail0 = _formData$venueDetail9.applicantDetail) === null || _formData$venueDetail0 === void 0 ? void 0 : _formData$venueDetail0.applicantName), renderLabel(t("NOC_APPLICANT_MOBILE_NO_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail1 = formData.venueDetails) === null || _formData$venueDetail1 === void 0 ? void 0 : (_formData$venueDetail10 = _formData$venueDetail1[0]) === null || _formData$venueDetail10 === void 0 ? void 0 : (_formData$venueDetail11 = _formData$venueDetail10.applicantDetail) === null || _formData$venueDetail11 === void 0 ? void 0 : _formData$venueDetail11.applicantMobileNo), renderLabel(t("NOC_APPLICANT_EMAIL_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail12 = formData.venueDetails) === null || _formData$venueDetail12 === void 0 ? void 0 : (_formData$venueDetail13 = _formData$venueDetail12[0]) === null || _formData$venueDetail13 === void 0 ? void 0 : (_formData$venueDetail14 = _formData$venueDetail13.applicantDetail) === null || _formData$venueDetail14 === void 0 ? void 0 : _formData$venueDetail14.applicantEmailId), renderLabel(t("PT_COMMON_COL_ADDRESS"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail15 = formData.venueDetails) === null || _formData$venueDetail15 === void 0 ? void 0 : (_formData$venueDetail16 = _formData$venueDetail15[0]) === null || _formData$venueDetail16 === void 0 ? void 0 : (_formData$venueDetail17 = _formData$venueDetail16.address) === null || _formData$venueDetail17 === void 0 ? void 0 : _formData$venueDetail17.addressLine1)), /*#__PURE__*/React__default.createElement("div", {
|
|
37332
37404
|
style: sectionStyle
|
|
37333
|
-
},
|
|
37334
|
-
style:
|
|
37335
|
-
|
|
37336
|
-
|
|
37337
|
-
|
|
37338
|
-
|
|
37339
|
-
|
|
37340
|
-
|
|
37341
|
-
|
|
37342
|
-
|
|
37343
|
-
|
|
37405
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
|
|
37406
|
+
style: {
|
|
37407
|
+
fontSize: "24px"
|
|
37408
|
+
}
|
|
37409
|
+
}, t("CHB_EVENT_DETAILS")), renderLabel(t("CHB_SPECIAL_CATEGORY"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail18 = formData.venueDetails) === null || _formData$venueDetail18 === void 0 ? void 0 : (_formData$venueDetail19 = _formData$venueDetail18[0]) === null || _formData$venueDetail19 === void 0 ? void 0 : (_formData$venueDetail20 = _formData$venueDetail19.specialCategory) === null || _formData$venueDetail20 === void 0 ? void 0 : _formData$venueDetail20.category), renderLabel(t("CHB_PURPOSE"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail21 = formData.venueDetails) === null || _formData$venueDetail21 === void 0 ? void 0 : (_formData$venueDetail22 = _formData$venueDetail21[0]) === null || _formData$venueDetail22 === void 0 ? void 0 : (_formData$venueDetail23 = _formData$venueDetail22.purpose) === null || _formData$venueDetail23 === void 0 ? void 0 : _formData$venueDetail23.purpose), renderLabel(t("CHB_PURPOSE_DESCRIPTION"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail24 = formData.venueDetails) === null || _formData$venueDetail24 === void 0 ? void 0 : (_formData$venueDetail25 = _formData$venueDetail24[0]) === null || _formData$venueDetail25 === void 0 ? void 0 : _formData$venueDetail25.purposeDescription)), /*#__PURE__*/React__default.createElement(ApplicationTable, {
|
|
37410
|
+
t: t,
|
|
37411
|
+
data: slotlistRows,
|
|
37412
|
+
columns: columns,
|
|
37413
|
+
getCellProps: cellInfo => ({
|
|
37414
|
+
style: {
|
|
37415
|
+
minWidth: "150px",
|
|
37416
|
+
padding: "10px",
|
|
37417
|
+
fontSize: "16px",
|
|
37418
|
+
paddingLeft: "20px"
|
|
37419
|
+
}
|
|
37420
|
+
}),
|
|
37421
|
+
isPaginationRequired: false,
|
|
37422
|
+
totalRecords: slotlistRows.length
|
|
37423
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
|
|
37424
|
+
style: {
|
|
37425
|
+
fontSize: "24px",
|
|
37426
|
+
marginTop: "30px"
|
|
37427
|
+
}
|
|
37428
|
+
}, t("CS_COMMON_DOCUMENTS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
37429
|
+
style: {
|
|
37430
|
+
display: "flex",
|
|
37431
|
+
flexDirection: "row",
|
|
37432
|
+
gap: "30px"
|
|
37433
|
+
}
|
|
37434
|
+
}, docs === null || docs === void 0 ? void 0 : docs.map((doc, index) => {
|
|
37435
|
+
var _doc$documentType;
|
|
37436
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(CHBDocument$1, {
|
|
37437
|
+
value: docs,
|
|
37438
|
+
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
37439
|
+
index: index
|
|
37440
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
37441
|
+
style: {
|
|
37442
|
+
marginTop: "10px",
|
|
37443
|
+
fontSize: "15px"
|
|
37444
|
+
}
|
|
37445
|
+
}, t("CHB_MESSAGE_" + (doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_"))))));
|
|
37446
|
+
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
37344
37447
|
style: {
|
|
37345
37448
|
background: " white",
|
|
37346
37449
|
color: "black",
|
|
@@ -37539,7 +37642,7 @@ const CHBSelectProofIdentity = _ref => {
|
|
|
37539
37642
|
label: error,
|
|
37540
37643
|
onClose: () => setError(null),
|
|
37541
37644
|
error: true
|
|
37542
|
-
})) : /*#__PURE__*/React__default.createElement(
|
|
37645
|
+
})) : /*#__PURE__*/React__default.createElement(Loader, null));
|
|
37543
37646
|
};
|
|
37544
37647
|
function PTRSelectDocument(_ref2) {
|
|
37545
37648
|
let {
|
|
@@ -37682,7 +37785,7 @@ function PTRSelectDocument(_ref2) {
|
|
|
37682
37785
|
style: {
|
|
37683
37786
|
marginBottom: "24px"
|
|
37684
37787
|
}
|
|
37685
|
-
},
|
|
37788
|
+
}, doc !== null && doc !== void 0 && doc.hasDropdown ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
37686
37789
|
className: "card-label-smaller"
|
|
37687
37790
|
}, t(doc === null || doc === void 0 ? void 0 : doc.code), " ", (doc === null || doc === void 0 ? void 0 : doc.required) && " *"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
37688
37791
|
className: "form-field",
|
|
@@ -37721,7 +37824,9 @@ function PTRSelectDocument(_ref2) {
|
|
|
37721
37824
|
accept: ".pdf, .jpeg, .jpg, .png",
|
|
37722
37825
|
buttonType: "button",
|
|
37723
37826
|
error: !uploadedFile
|
|
37724
|
-
})))
|
|
37827
|
+
}))), getLoading && /*#__PURE__*/React__default.createElement(Loader, {
|
|
37828
|
+
page: true
|
|
37829
|
+
}));
|
|
37725
37830
|
}
|
|
37726
37831
|
|
|
37727
37832
|
const initialState = {
|