@mseva/upyog-ui-module-ads 1.1.86-dev.1.2 → 1.1.86-dev.1.4
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 +169 -163
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Modal, Card as Card$1, CheckBox, Header, SearchForm, SearchField, TextInput, Dropdown, MobileNumber, CardLabelError as CardLabelError$2, DatePicker, SubmitBar, Table, Loader as Loader$2, Toast, AppContainer, PrivateRoute, BreadCrumb, CloseSvg, RadioButtons, Banner, CardText as CardText$1, ActionBar, KeyNote, DeleteIcon, CardSubHeader, FormStep, CardHeader as CardHeader$1, CardLabel, TelePhone, DisplayPhotos, LocationSearchCard as LocationSearchCard$1, CheckPoint, ConnectingCheckPoints, TickMark, CardLabelDesc, LabelFieldPair, TextArea, UploadFile, StatusTable, Row, LinkButton, EmployeeModuleCard, PropertyHouse, Label, LinkLabel, Localities, DetailsCard, SearchAction, FilterAction, PopUp, ShippingTruck,
|
|
1
|
+
import { Modal, Card as Card$1, CheckBox, Header, SearchForm, SearchField, TextInput, Dropdown, MobileNumber, CardLabelError as CardLabelError$2, DatePicker, SubmitBar, Table, Loader as Loader$2, Toast, AppContainer, PrivateRoute, BreadCrumb, CloseSvg, RadioButtons, Banner, CardText as CardText$1, ActionBar, KeyNote, DeleteIcon, CardSubHeader, FormStep, CardHeader as CardHeader$1, CardLabel, TelePhone, DisplayPhotos, LocationSearchCard as LocationSearchCard$1, CheckPoint, ConnectingCheckPoints, TickMark, CardLabelDesc, LabelFieldPair, TextArea, UploadFile, StatusTable, Row, LinkButton, EmployeeModuleCard, PropertyHouse, Label, LinkLabel, Localities, DetailsCard, SearchAction, FilterAction, PopUp, ShippingTruck, MultiLink, FormComposer, Menu, CitizenHomeCard } from '@mseva/digit-ui-react-components';
|
|
2
2
|
import React, { useState, useEffect, useMemo, useCallback, useRef, Fragment as Fragment$1 } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { useHistory, Link, useParams, useRouteMatch, useLocation, Switch, Route, Redirect } from 'react-router-dom';
|
|
@@ -186,7 +186,6 @@ const transformBookingResponseToBookingData = (apiResponse = {}) => {
|
|
|
186
186
|
var _sorted$, _sorted;
|
|
187
187
|
const items = groups[key];
|
|
188
188
|
const sorted = items.slice().sort((a, b) => new Date(a.bookingDate) - new Date(b.bookingDate));
|
|
189
|
-
console.log("sorted", sorted);
|
|
190
189
|
const GAP = 7;
|
|
191
190
|
const dateRanges = [];
|
|
192
191
|
if (sorted.length) {
|
|
@@ -336,7 +335,7 @@ const allowedKeys = ["addType", "location", "faceArea", "nightLight", "bookingId
|
|
|
336
335
|
const Heading = props => {
|
|
337
336
|
return /*#__PURE__*/React.createElement("h1", {
|
|
338
337
|
className: "heading-m"
|
|
339
|
-
}, props.t("
|
|
338
|
+
}, props.t("ADS_CANCEL_BOOKING"));
|
|
340
339
|
};
|
|
341
340
|
const Close = () => /*#__PURE__*/React.createElement("svg", {
|
|
342
341
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -390,7 +389,7 @@ const ADSCancelBooking = ({
|
|
|
390
389
|
}, /*#__PURE__*/React.createElement("form", {
|
|
391
390
|
onSubmit: handleSubmit(onSubmit)
|
|
392
391
|
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
393
|
-
label: t("
|
|
392
|
+
label: t("ADS_CANCEL_BOOKING"),
|
|
394
393
|
onChange: setdeclarationhandler,
|
|
395
394
|
style: {
|
|
396
395
|
height: "auto"
|
|
@@ -16799,6 +16798,7 @@ const getTimelineAcknowledgementData = (workflowDetails, tenantInfo, pdfFiles =
|
|
|
16799
16798
|
const formats = (downloadLink === null || downloadLink === void 0 ? void 0 : (_downloadLink$split = downloadLink.split(",")) === null || _downloadLink$split === void 0 ? void 0 : _downloadLink$split.filter(Boolean)) || [];
|
|
16800
16799
|
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]) || "";
|
|
16801
16800
|
};
|
|
16801
|
+
const pattern = /\[#\?.*?\*\*\]/;
|
|
16802
16802
|
const timelineRows = timeline.map((item, index) => {
|
|
16803
16803
|
var _item$auditDetails, _item$auditDetails2, _item$assigner, _item$assigner2, _item$assigner3, _item$wfComment;
|
|
16804
16804
|
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";
|
|
@@ -16808,7 +16808,8 @@ const getTimelineAcknowledgementData = (workflowDetails, tenantInfo, pdfFiles =
|
|
|
16808
16808
|
const mobileNumber = (item === null || item === void 0 ? void 0 : (_item$assigner3 = item.assigner) === null || _item$assigner3 === void 0 ? void 0 : _item$assigner3.mobileNumber) || "N/A";
|
|
16809
16809
|
const action = (item === null || item === void 0 ? void 0 : item.performedAction) || "N/A";
|
|
16810
16810
|
const status = (item === null || item === void 0 ? void 0 : item.status) || (item === null || item === void 0 ? void 0 : item.state) || "N/A";
|
|
16811
|
-
const
|
|
16811
|
+
const rawComment = (item === null || item === void 0 ? void 0 : (_item$wfComment = item.wfComment) === null || _item$wfComment === void 0 ? void 0 : _item$wfComment[0]) || "-";
|
|
16812
|
+
const comment = typeof rawComment === "string" ? rawComment.split(pattern)[0] : rawComment;
|
|
16812
16813
|
const documents = (item === null || item === void 0 ? void 0 : item.wfDocuments) || [];
|
|
16813
16814
|
const sla = (item === null || item === void 0 ? void 0 : item.sla) || "N/A";
|
|
16814
16815
|
const assignedTo = Array.isArray(item === null || item === void 0 ? void 0 : item.assignes) ? item.assignes.map(a => a === null || a === void 0 ? void 0 : a.name).filter(Boolean).join(", ") : "";
|
|
@@ -19300,7 +19301,6 @@ const ApplicationCard = ({
|
|
|
19300
19301
|
if (type) setPopup(true);
|
|
19301
19302
|
}, [type]);
|
|
19302
19303
|
const handlePopupClose = () => {
|
|
19303
|
-
console.log("here comingf");
|
|
19304
19304
|
setPopup(false);
|
|
19305
19305
|
setType("");
|
|
19306
19306
|
setSortParams(sortParams);
|
|
@@ -19338,7 +19338,6 @@ const ApplicationCard = ({
|
|
|
19338
19338
|
}), !isSearch && onFilterChange && /*#__PURE__*/React.createElement(FilterAction, {
|
|
19339
19339
|
text: "FILTER",
|
|
19340
19340
|
handleActionClick: () => {
|
|
19341
|
-
console.log("here yes");
|
|
19342
19341
|
setType("FILTER");
|
|
19343
19342
|
setPopup(true);
|
|
19344
19343
|
}
|
|
@@ -19635,6 +19634,31 @@ const Inbox = ({
|
|
|
19635
19634
|
}
|
|
19636
19635
|
};
|
|
19637
19636
|
|
|
19637
|
+
const ADSBreadCrumbs$1 = ({
|
|
19638
|
+
location,
|
|
19639
|
+
t
|
|
19640
|
+
}) => {
|
|
19641
|
+
const crumbs = [{
|
|
19642
|
+
path: "/digit-ui/employee",
|
|
19643
|
+
content: t("ES_COMMON_HOME"),
|
|
19644
|
+
show: true
|
|
19645
|
+
}, {
|
|
19646
|
+
path: "/digit-ui/employee/ads/inbox",
|
|
19647
|
+
content: t("CS_COMMON_INBOX"),
|
|
19648
|
+
show: location.pathname.includes("/ads/inbox") ? true : false
|
|
19649
|
+
}, {
|
|
19650
|
+
path: "/digit-ui/employee/ads/bookad",
|
|
19651
|
+
content: "Book",
|
|
19652
|
+
show: location.pathname.includes("/ads/bookad") ? true : false
|
|
19653
|
+
}, {
|
|
19654
|
+
path: "/digit-ui/employee/ads/applicationsearch/application-details",
|
|
19655
|
+
content: "Application Overview",
|
|
19656
|
+
show: location.pathname.includes("/ads/applicationsearch/application-details") ? true : false
|
|
19657
|
+
}];
|
|
19658
|
+
return /*#__PURE__*/React.createElement(BreadCrumb, {
|
|
19659
|
+
crumbs: crumbs
|
|
19660
|
+
});
|
|
19661
|
+
};
|
|
19638
19662
|
const EmployeeApp = ({
|
|
19639
19663
|
path,
|
|
19640
19664
|
url,
|
|
@@ -19666,12 +19690,15 @@ const EmployeeApp = ({
|
|
|
19666
19690
|
locality: []
|
|
19667
19691
|
}
|
|
19668
19692
|
};
|
|
19669
|
-
return /*#__PURE__*/React.createElement(
|
|
19693
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
19670
19694
|
className: "ground-container"
|
|
19671
19695
|
}, !isRes ? /*#__PURE__*/React.createElement("div", {
|
|
19672
|
-
|
|
19673
|
-
|
|
19674
|
-
|
|
19696
|
+
style: {
|
|
19697
|
+
marginLeft: "10px"
|
|
19698
|
+
}
|
|
19699
|
+
}, /*#__PURE__*/React.createElement(ADSBreadCrumbs$1, {
|
|
19700
|
+
location: location,
|
|
19701
|
+
t: t
|
|
19675
19702
|
})) : null, /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
19676
19703
|
path: `${path}/bookad`,
|
|
19677
19704
|
component: props => /*#__PURE__*/React.createElement(ADSCreate, Object.assign({}, props, {
|
|
@@ -19714,7 +19741,7 @@ const EmployeeApp = ({
|
|
|
19714
19741
|
isInbox: false,
|
|
19715
19742
|
EmptyResultInboxComp: "PTEmptyResultInbox"
|
|
19716
19743
|
})
|
|
19717
|
-
})))
|
|
19744
|
+
})));
|
|
19718
19745
|
};
|
|
19719
19746
|
|
|
19720
19747
|
const ReservationTimer = ({
|
|
@@ -19766,10 +19793,12 @@ const AdsApplication = ({
|
|
|
19766
19793
|
} = useTranslation();
|
|
19767
19794
|
const history = useHistory();
|
|
19768
19795
|
const [showToast, setShowToast] = useState(null);
|
|
19796
|
+
const [showModal, setShowModal] = useState(false);
|
|
19769
19797
|
const handleMakePayment = () => {
|
|
19770
19798
|
history.push(`/digit-ui/citizen/payment/my-bills/adv-services/${application === null || application === void 0 ? void 0 : application.bookingNo}`);
|
|
19771
19799
|
};
|
|
19772
|
-
const
|
|
19800
|
+
const submitCancelBooking = async () => {
|
|
19801
|
+
setShowModal(false);
|
|
19773
19802
|
const formData = {
|
|
19774
19803
|
tenantId: application === null || application === void 0 ? void 0 : application.tenantId,
|
|
19775
19804
|
...application,
|
|
@@ -19808,11 +19837,8 @@ const AdsApplication = ({
|
|
|
19808
19837
|
}, [showToast]);
|
|
19809
19838
|
const appDate = new Date(application === null || application === void 0 ? void 0 : application.applicationDate).toLocaleDateString();
|
|
19810
19839
|
const [expired, setExpired] = useState(false);
|
|
19811
|
-
return /*#__PURE__*/React.createElement(Card$1, null, application.bookingStatus === "PENDING_FOR_PAYMENT" && (application === null || application === void 0 ? void 0 : (_application$auditDet = application.auditDetails) === null || _application$auditDet === void 0 ? void 0 : _application$auditDet.createdTime) && /*#__PURE__*/React.createElement("div", {
|
|
19812
|
-
|
|
19813
|
-
display: "flex",
|
|
19814
|
-
justifyContent: "flex-end"
|
|
19815
|
-
}
|
|
19840
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card$1, null, application.bookingStatus === "PENDING_FOR_PAYMENT" && (application === null || application === void 0 ? void 0 : (_application$auditDet = application.auditDetails) === null || _application$auditDet === void 0 ? void 0 : _application$auditDet.createdTime) && /*#__PURE__*/React.createElement("div", {
|
|
19841
|
+
className: "ads-reservation-wrapper"
|
|
19816
19842
|
}, /*#__PURE__*/React.createElement(ReservationTimer, {
|
|
19817
19843
|
t: t,
|
|
19818
19844
|
createTime: application === null || application === void 0 ? void 0 : (_application$auditDet2 = application.auditDetails) === null || _application$auditDet2 === void 0 ? void 0 : _application$auditDet2.createdTime,
|
|
@@ -19841,7 +19867,7 @@ const AdsApplication = ({
|
|
|
19841
19867
|
disabled: expired
|
|
19842
19868
|
}), application.bookingStatus === "BOOKED" && /*#__PURE__*/React.createElement(SubmitBar, {
|
|
19843
19869
|
label: t("ADS_CANCEL_BOOKING"),
|
|
19844
|
-
onSubmit:
|
|
19870
|
+
onSubmit: () => setShowModal(true),
|
|
19845
19871
|
disabled: expired
|
|
19846
19872
|
})), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
19847
19873
|
error: showToast.error,
|
|
@@ -19850,6 +19876,14 @@ const AdsApplication = ({
|
|
|
19850
19876
|
onClose: () => {
|
|
19851
19877
|
setShowToast(null);
|
|
19852
19878
|
}
|
|
19879
|
+
})), showModal && /*#__PURE__*/React.createElement(ADSCancelBooking, {
|
|
19880
|
+
t: t,
|
|
19881
|
+
closeModal: () => setShowModal(false),
|
|
19882
|
+
actionCancelLabel: "BACK",
|
|
19883
|
+
actionCancelOnSubmit: () => setShowModal(false),
|
|
19884
|
+
actionSaveLabel: "ADS_CANCEL",
|
|
19885
|
+
actionSaveOnSubmit: submitCancelBooking,
|
|
19886
|
+
onSubmit: submitCancelBooking
|
|
19853
19887
|
}));
|
|
19854
19888
|
};
|
|
19855
19889
|
|
|
@@ -20482,7 +20516,9 @@ function NewApplicationTimeline({
|
|
|
20482
20516
|
workflowDetails,
|
|
20483
20517
|
t,
|
|
20484
20518
|
tenantId = Digit.ULBService.getCurrentTenantId(),
|
|
20485
|
-
timeObj
|
|
20519
|
+
timeObj,
|
|
20520
|
+
empUserName = null,
|
|
20521
|
+
handleSetEmpDesignation = () => {}
|
|
20486
20522
|
}) {
|
|
20487
20523
|
var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _employeeData$data, _employeeData$data$Em;
|
|
20488
20524
|
const {
|
|
@@ -20557,6 +20593,9 @@ function NewApplicationTimeline({
|
|
|
20557
20593
|
const translationKey = `COMMON_MASTERS_DESIGNATION_${assignment === null || assignment === void 0 ? void 0 : assignment.designation}`;
|
|
20558
20594
|
deptMap[emp === null || emp === void 0 ? void 0 : emp.code] = translationKey;
|
|
20559
20595
|
});
|
|
20596
|
+
if (employeeData && empUserName) {
|
|
20597
|
+
handleSetEmpDesignation(t(deptMap[empUserName]));
|
|
20598
|
+
}
|
|
20560
20599
|
if (isLoading) return /*#__PURE__*/React.createElement(Loader$2, null);
|
|
20561
20600
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
20562
20601
|
className: "custom-timeline-container"
|
|
@@ -20624,13 +20663,13 @@ function NewApplicationTimeline({
|
|
|
20624
20663
|
className: "custom-officer-info"
|
|
20625
20664
|
}, /*#__PURE__*/React.createElement("div", {
|
|
20626
20665
|
className: "custom-officer-name"
|
|
20627
|
-
}, (item === null || item === void 0 ? void 0 : (_item$assigner2 = item.assigner) === null || _item$assigner2 === void 0 ? void 0 : _item$assigner2.name) || t("CS_COMMON_NA")
|
|
20666
|
+
}, (item === null || item === void 0 ? void 0 : (_item$assigner2 = item.assigner) === null || _item$assigner2 === void 0 ? void 0 : _item$assigner2.name) || t("CS_COMMON_NA"), deptMap[item === null || item === void 0 ? void 0 : (_item$assigner3 = item.assigner) === null || _item$assigner3 === void 0 ? void 0 : _item$assigner3.userName] && /*#__PURE__*/React.createElement("span", {
|
|
20667
|
+
className: "custom-officer-name"
|
|
20668
|
+
}, "- ", t(deptMap[item === null || item === void 0 ? void 0 : (_item$assigner4 = item.assigner) === null || _item$assigner4 === void 0 ? void 0 : _item$assigner4.userName]))), (item === null || item === void 0 ? void 0 : (_item$assigner5 = item.assigner) === null || _item$assigner5 === void 0 ? void 0 : _item$assigner5.emailId) && /*#__PURE__*/React.createElement("div", {
|
|
20628
20669
|
className: "custom-officer-email"
|
|
20629
20670
|
}, /*#__PURE__*/React.createElement("span", {
|
|
20630
20671
|
className: "custom-email-label"
|
|
20631
|
-
}, t("Email")), " ", item === null || item === void 0 ? void 0 : (_item$
|
|
20632
|
-
className: "custom-officer-name"
|
|
20633
|
-
}, t(deptMap[item === null || item === void 0 ? void 0 : (_item$assigner6 = item.assigner) === null || _item$assigner6 === void 0 ? void 0 : _item$assigner6.userName])))), /*#__PURE__*/React.createElement("div", {
|
|
20672
|
+
}, t("Email")), " ", item === null || item === void 0 ? void 0 : (_item$assigner6 = item.assigner) === null || _item$assigner6 === void 0 ? void 0 : _item$assigner6.emailId))), /*#__PURE__*/React.createElement("div", {
|
|
20634
20673
|
className: "custom-card-column custom-card-column-mid"
|
|
20635
20674
|
}, (item === null || item === void 0 ? void 0 : item.sla) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
|
|
20636
20675
|
className: "custom-action-title"
|
|
@@ -20652,9 +20691,13 @@ function NewApplicationTimeline({
|
|
|
20652
20691
|
className: "custom-comments-title"
|
|
20653
20692
|
}, t("Officer Comments")), /*#__PURE__*/React.createElement("div", {
|
|
20654
20693
|
className: "custom-comment-text"
|
|
20655
|
-
}, item === null || item === void 0 ? void 0 : (_item$wfComment3 = item.wfComment) === null || _item$wfComment3 === void 0 ? void 0 : _item$wfComment3.map((comment, idx) =>
|
|
20656
|
-
|
|
20657
|
-
|
|
20694
|
+
}, item === null || item === void 0 ? void 0 : (_item$wfComment3 = item.wfComment) === null || _item$wfComment3 === void 0 ? void 0 : _item$wfComment3.map((comment, idx) => {
|
|
20695
|
+
const pattern = /\[#\?.*?\*\*\]/;
|
|
20696
|
+
const truncatedComment = typeof comment === "string" ? comment === null || comment === void 0 ? void 0 : comment.split(pattern)[0] : comment;
|
|
20697
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
20698
|
+
key: idx
|
|
20699
|
+
}, truncatedComment);
|
|
20700
|
+
}))), (item === null || item === void 0 ? void 0 : (_item$assignes = item.assignes) === null || _item$assignes === void 0 ? void 0 : _item$assignes.length) > 0 && /*#__PURE__*/React.createElement("div", {
|
|
20658
20701
|
className: "custom-assigned-to-footer"
|
|
20659
20702
|
}, /*#__PURE__*/React.createElement("h3", {
|
|
20660
20703
|
className: "custom-comments-title"
|
|
@@ -20662,9 +20705,9 @@ function NewApplicationTimeline({
|
|
|
20662
20705
|
className: "custom-officer-info"
|
|
20663
20706
|
}, /*#__PURE__*/React.createElement("div", {
|
|
20664
20707
|
className: "custom-officer-name"
|
|
20665
|
-
}, (_item$assignes$ = item.assignes[0]) === null || _item$assignes$ === void 0 ? void 0 : _item$assignes$.name
|
|
20708
|
+
}, (_item$assignes$ = item.assignes[0]) === null || _item$assignes$ === void 0 ? void 0 : _item$assignes$.name, deptMap[(_item$assignes$2 = item.assignes[0]) === null || _item$assignes$2 === void 0 ? void 0 : _item$assignes$2.userName] && /*#__PURE__*/React.createElement("span", {
|
|
20666
20709
|
className: "custom-officer-email"
|
|
20667
|
-
}, t(deptMap[(_item$assignes$3 = item.assignes[0]) === null || _item$assignes$3 === void 0 ? void 0 : _item$assignes$3.userName]))))), (item === null || item === void 0 ? void 0 : item.wfDocuments) && (item === null || item === void 0 ? void 0 : (_item$wfDocuments = item.wfDocuments) === null || _item$wfDocuments === void 0 ? void 0 : _item$wfDocuments.length) > 0 && /*#__PURE__*/React.createElement("div", {
|
|
20710
|
+
}, "- ", t(deptMap[(_item$assignes$3 = item.assignes[0]) === null || _item$assignes$3 === void 0 ? void 0 : _item$assignes$3.userName])))))), (item === null || item === void 0 ? void 0 : item.wfDocuments) && (item === null || item === void 0 ? void 0 : (_item$wfDocuments = item.wfDocuments) === null || _item$wfDocuments === void 0 ? void 0 : _item$wfDocuments.length) > 0 && /*#__PURE__*/React.createElement("div", {
|
|
20668
20711
|
className: "custom-comments-section-no-border"
|
|
20669
20712
|
}, /*#__PURE__*/React.createElement("h4", {
|
|
20670
20713
|
className: "custom-comments-title"
|
|
@@ -22222,7 +22265,6 @@ var browser = {
|
|
|
22222
22265
|
|
|
22223
22266
|
const getAcknowledgement = async (application, t) => {
|
|
22224
22267
|
var _application$applican, _application$applican2, _application$applican3, _application$applican4, _application$cartDeta;
|
|
22225
|
-
console.log('application', application);
|
|
22226
22268
|
const currentDate = new Date().toLocaleDateString("en-IN", {
|
|
22227
22269
|
day: "2-digit",
|
|
22228
22270
|
month: "long",
|
|
@@ -22513,7 +22555,6 @@ const ADSApplicationDetails = () => {
|
|
|
22513
22555
|
}
|
|
22514
22556
|
});
|
|
22515
22557
|
const new_data = transformBookingResponseToBookingData(adsData);
|
|
22516
|
-
console.log("new_data my here", new_data);
|
|
22517
22558
|
const mutation = Digit.Hooks.ads.useADSCreateAPI(tenantId, false);
|
|
22518
22559
|
useEffect(() => {
|
|
22519
22560
|
refetch();
|
|
@@ -23127,7 +23168,7 @@ if (_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag || _Ma
|
|
|
23127
23168
|
}
|
|
23128
23169
|
|
|
23129
23170
|
const ApplicationDetails = () => {
|
|
23130
|
-
var _applicationDetails$b, _Digit$Hooks$ads, _Digit$Hooks$ads$useA, _displayData$applican, _displayData$applican2, _workflowDetails$data, _workflowDetails$data2,
|
|
23171
|
+
var _applicationDetails$b, _Digit$Hooks$ads, _Digit$Hooks$ads$useA, _displayData$applican, _displayData$applican2, _workflowDetails$data, _workflowDetails$data2, _displayData$applican4, _displayData$applican5, _displayData$applican6, _displayData$applican7, _displayData$applican8, _application$document, _displayData$applican9, _workflowDetails$data4, _workflowDetails$data5;
|
|
23131
23172
|
const {
|
|
23132
23173
|
id
|
|
23133
23174
|
} = useParams();
|
|
@@ -23217,6 +23258,7 @@ const ApplicationDetails = () => {
|
|
|
23217
23258
|
const [displayMenu, setDisplayMenu] = useState(false);
|
|
23218
23259
|
const [selectedAction, setSelectedAction] = useState(null);
|
|
23219
23260
|
const [showModal, setShowModal] = useState(false);
|
|
23261
|
+
const [showCancelModal, setShowCancelModal] = useState(false);
|
|
23220
23262
|
const [showOptions, setShowOptions] = useState(false);
|
|
23221
23263
|
const mutation = (_Digit$Hooks$ads = Digit.Hooks.ads) === null || _Digit$Hooks$ads === void 0 ? void 0 : (_Digit$Hooks$ads$useA = _Digit$Hooks$ads.useADSCreateAPI) === null || _Digit$Hooks$ads$useA === void 0 ? void 0 : _Digit$Hooks$ads$useA.call(_Digit$Hooks$ads, tenantId, false);
|
|
23222
23264
|
const {
|
|
@@ -23323,6 +23365,10 @@ const ApplicationDetails = () => {
|
|
|
23323
23365
|
return history.push(`/digit-ui/employee/payment/collect/adv-services/${appNo}/${tenantId}?tenantId=${tenantId}`);
|
|
23324
23366
|
}
|
|
23325
23367
|
if (wfAction.action === "SUBMIT" || wfAction.action === "INITIATE" || wfAction.action === "CANCEL") {
|
|
23368
|
+
if (wfAction.action === "CANCEL") {
|
|
23369
|
+
setShowCancelModal(true);
|
|
23370
|
+
return;
|
|
23371
|
+
}
|
|
23326
23372
|
const payloadAction = {
|
|
23327
23373
|
action: wfAction.action,
|
|
23328
23374
|
comment: wfAction.action || ""
|
|
@@ -23462,37 +23508,50 @@ const ApplicationDetails = () => {
|
|
|
23462
23508
|
window.open(fileStore[fileStoreId], "_blank");
|
|
23463
23509
|
}
|
|
23464
23510
|
let downloadOptions = [];
|
|
23465
|
-
|
|
23466
|
-
|
|
23467
|
-
onClick: () => downloadAcknowledgement(application)
|
|
23468
|
-
});
|
|
23469
|
-
if (reciept_data && (reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment = reciept_data.Payments) === null || _reciept_data$Payment === void 0 ? void 0 : _reciept_data$Payment.length) > 0 && recieptDataLoading === false) {
|
|
23511
|
+
if ((bookingObj === null || bookingObj === void 0 ? void 0 : bookingObj.bookingStatus) === "BOOKED" || (bookingObj === null || bookingObj === void 0 ? void 0 : bookingObj.bookingStatus) === "CANCELLED") {
|
|
23512
|
+
var _reciept_data$Payment;
|
|
23470
23513
|
downloadOptions.push({
|
|
23471
|
-
label: t("
|
|
23472
|
-
onClick: () =>
|
|
23473
|
-
var _reciept_data$Payment2;
|
|
23474
|
-
return getRecieptSearch({
|
|
23475
|
-
tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment2 = reciept_data.Payments[0]) === null || _reciept_data$Payment2 === void 0 ? void 0 : _reciept_data$Payment2.tenantId,
|
|
23476
|
-
payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0]
|
|
23477
|
-
});
|
|
23478
|
-
}
|
|
23479
|
-
});
|
|
23480
|
-
if (reciept_data && (reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments.length) > 0 && !recieptDataLoading) downloadOptions.push({
|
|
23481
|
-
label: t("CHB_PERMISSION_LETTER"),
|
|
23482
|
-
onClick: () => {
|
|
23483
|
-
var _reciept_data$Payment3;
|
|
23484
|
-
return getPermissionLetter({
|
|
23485
|
-
tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment3 = reciept_data.Payments[0]) === null || _reciept_data$Payment3 === void 0 ? void 0 : _reciept_data$Payment3.tenantId,
|
|
23486
|
-
payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0]
|
|
23487
|
-
});
|
|
23488
|
-
}
|
|
23514
|
+
label: t("PTR_PET_DOWNLOAD_ACK_FORM"),
|
|
23515
|
+
onClick: () => downloadAcknowledgement(application)
|
|
23489
23516
|
});
|
|
23517
|
+
if (reciept_data && (reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment = reciept_data.Payments) === null || _reciept_data$Payment === void 0 ? void 0 : _reciept_data$Payment.length) > 0 && recieptDataLoading === false) {
|
|
23518
|
+
downloadOptions.push({
|
|
23519
|
+
label: t("CHB_FEE_RECEIPT"),
|
|
23520
|
+
onClick: () => {
|
|
23521
|
+
var _reciept_data$Payment2;
|
|
23522
|
+
return getRecieptSearch({
|
|
23523
|
+
tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment2 = reciept_data.Payments[0]) === null || _reciept_data$Payment2 === void 0 ? void 0 : _reciept_data$Payment2.tenantId,
|
|
23524
|
+
payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0]
|
|
23525
|
+
});
|
|
23526
|
+
}
|
|
23527
|
+
});
|
|
23528
|
+
if (reciept_data && (reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments.length) > 0 && !recieptDataLoading) downloadOptions.push({
|
|
23529
|
+
label: t("CHB_PERMISSION_LETTER"),
|
|
23530
|
+
onClick: () => {
|
|
23531
|
+
var _reciept_data$Payment3;
|
|
23532
|
+
return getPermissionLetter({
|
|
23533
|
+
tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment3 = reciept_data.Payments[0]) === null || _reciept_data$Payment3 === void 0 ? void 0 : _reciept_data$Payment3.tenantId,
|
|
23534
|
+
payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0]
|
|
23535
|
+
});
|
|
23536
|
+
}
|
|
23537
|
+
});
|
|
23538
|
+
}
|
|
23490
23539
|
}
|
|
23491
23540
|
const cartData = transformAdsData(bookingObj === null || bookingObj === void 0 ? void 0 : bookingObj.cartDetails);
|
|
23492
23541
|
const [expired, setExpired] = useState(false);
|
|
23493
23542
|
if (isLoading || isDetailsLoading) {
|
|
23494
23543
|
return /*#__PURE__*/React.createElement(Loader$2, null);
|
|
23495
23544
|
}
|
|
23545
|
+
const handleCancelBooking = async () => {
|
|
23546
|
+
setShowCancelModal(false);
|
|
23547
|
+
const payloadAction = {
|
|
23548
|
+
action: "CANCEL",
|
|
23549
|
+
comment: "CANCEL"
|
|
23550
|
+
};
|
|
23551
|
+
return submitAction({
|
|
23552
|
+
Licenses: [payloadAction]
|
|
23553
|
+
});
|
|
23554
|
+
};
|
|
23496
23555
|
return /*#__PURE__*/React.createElement("div", {
|
|
23497
23556
|
className: "employee-main-application-details"
|
|
23498
23557
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -23509,7 +23568,25 @@ const ApplicationDetails = () => {
|
|
|
23509
23568
|
styles: {
|
|
23510
23569
|
fontSize: "32px"
|
|
23511
23570
|
}
|
|
23512
|
-
}, t("ADS_APP_OVER_VIEW_HEADER"))
|
|
23571
|
+
}, t("ADS_APP_OVER_VIEW_HEADER")), /*#__PURE__*/React.createElement("div", {
|
|
23572
|
+
style: {
|
|
23573
|
+
display: "flex",
|
|
23574
|
+
alignItems: "center",
|
|
23575
|
+
gap: "12px"
|
|
23576
|
+
}
|
|
23577
|
+
}, downloadOptions && (downloadOptions === null || downloadOptions === void 0 ? void 0 : downloadOptions.length) > 0 && /*#__PURE__*/React.createElement("div", {
|
|
23578
|
+
style: {
|
|
23579
|
+
position: "relative",
|
|
23580
|
+
zIndex: 10
|
|
23581
|
+
}
|
|
23582
|
+
}, /*#__PURE__*/React.createElement(MultiLink, {
|
|
23583
|
+
className: "multilinkWrapper",
|
|
23584
|
+
onHeadClick: () => setShowOptions(!showOptions),
|
|
23585
|
+
displayOptions: showOptions,
|
|
23586
|
+
options: downloadOptions,
|
|
23587
|
+
downloadBtnClassName: "employee-download-btn-className",
|
|
23588
|
+
optionsClassName: "employee-options-btn-className"
|
|
23589
|
+
}))))), /*#__PURE__*/React.createElement(Card$1, null, (displayData === null || displayData === void 0 ? void 0 : (_displayData$applican4 = displayData.applicantData) === null || _displayData$applican4 === void 0 ? void 0 : (_displayData$applican5 = _displayData$applican4.auditDetails) === null || _displayData$applican5 === void 0 ? void 0 : _displayData$applican5.createdTime) && (displayData === null || displayData === void 0 ? void 0 : (_displayData$applican6 = displayData.applicantData) === null || _displayData$applican6 === void 0 ? void 0 : _displayData$applican6.bookingStatus) === "PENDING_FOR_PAYMENT" && /*#__PURE__*/React.createElement("div", {
|
|
23513
23590
|
style: {
|
|
23514
23591
|
display: "flex",
|
|
23515
23592
|
justifyContent: "flex-end"
|
|
@@ -23586,6 +23663,14 @@ const ApplicationDetails = () => {
|
|
|
23586
23663
|
label: error,
|
|
23587
23664
|
onClose: () => setShowToast(null),
|
|
23588
23665
|
isDleteBtn: true
|
|
23666
|
+
}), showCancelModal && /*#__PURE__*/React.createElement(ADSCancelBooking, {
|
|
23667
|
+
t: t,
|
|
23668
|
+
closeModal: () => setShowCancelModal(false),
|
|
23669
|
+
actionCancelLabel: "BACK",
|
|
23670
|
+
actionCancelOnSubmit: () => setShowCancelModal(false),
|
|
23671
|
+
actionSaveLabel: "ADS_CANCEL",
|
|
23672
|
+
actionSaveOnSubmit: handleCancelBooking,
|
|
23673
|
+
onSubmit: handleCancelBooking
|
|
23589
23674
|
}));
|
|
23590
23675
|
};
|
|
23591
23676
|
|
|
@@ -24366,16 +24451,10 @@ const ADSCitizenDetailsNew = ({
|
|
|
24366
24451
|
return /*#__PURE__*/React.createElement("form", {
|
|
24367
24452
|
className: "card",
|
|
24368
24453
|
onSubmit: handleSubmit(onSubmit)
|
|
24369
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
24370
|
-
style: {
|
|
24371
|
-
maxWidth: !isCitizen && "500px"
|
|
24372
|
-
}
|
|
24373
24454
|
}, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
24374
24455
|
className: "card-label-smaller"
|
|
24375
24456
|
}, t("NOC_APPLICANT_MOBILE_NO_LABEL"), /*#__PURE__*/React.createElement("span", {
|
|
24376
|
-
|
|
24377
|
-
color: "red"
|
|
24378
|
-
}
|
|
24457
|
+
className: "mandatory-asterisk"
|
|
24379
24458
|
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
24380
24459
|
className: "form-field"
|
|
24381
24460
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
@@ -24414,9 +24493,7 @@ const ADSCitizenDetailsNew = ({
|
|
|
24414
24493
|
}, errors.mobileNumber.message))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
24415
24494
|
className: "card-label-smaller"
|
|
24416
24495
|
}, `${t("ES_NEW_APPLICATION_APPLICANT_NAME")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
24417
|
-
|
|
24418
|
-
color: "red"
|
|
24419
|
-
}
|
|
24496
|
+
className: "mandatory-asterisk"
|
|
24420
24497
|
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
24421
24498
|
className: "form-field"
|
|
24422
24499
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
@@ -24459,9 +24536,7 @@ const ADSCitizenDetailsNew = ({
|
|
|
24459
24536
|
}, errors === null || errors === void 0 ? void 0 : (_errors$name = errors.name) === null || _errors$name === void 0 ? void 0 : _errors$name.message))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
24460
24537
|
className: "card-label-smaller"
|
|
24461
24538
|
}, t("NOC_APPLICANT_EMAIL_LABEL"), /*#__PURE__*/React.createElement("span", {
|
|
24462
|
-
|
|
24463
|
-
color: "red"
|
|
24464
|
-
}
|
|
24539
|
+
className: "mandatory-asterisk"
|
|
24465
24540
|
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
24466
24541
|
className: "form-field"
|
|
24467
24542
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
@@ -24536,9 +24611,7 @@ const ADSCitizenDetailsNew = ({
|
|
|
24536
24611
|
}, errors === null || errors === void 0 ? void 0 : (_errors$address = errors.address) === null || _errors$address === void 0 ? void 0 : _errors$address.message))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
24537
24612
|
className: "card-label-smaller"
|
|
24538
24613
|
}, `${t("CORE_COMMON_PINCODE")}`, /*#__PURE__*/React.createElement("span", {
|
|
24539
|
-
|
|
24540
|
-
color: "red"
|
|
24541
|
-
}
|
|
24614
|
+
className: "mandatory-asterisk"
|
|
24542
24615
|
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
24543
24616
|
className: "form-field"
|
|
24544
24617
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
@@ -24579,7 +24652,7 @@ const ADSCitizenDetailsNew = ({
|
|
|
24579
24652
|
marginTop: "4px",
|
|
24580
24653
|
marginBottom: "0"
|
|
24581
24654
|
}
|
|
24582
|
-
}, errors === null || errors === void 0 ? void 0 : (_errors$pincode = errors.pincode) === null || _errors$pincode === void 0 ? void 0 : _errors$pincode.message)))
|
|
24655
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors$pincode = errors.pincode) === null || _errors$pincode === void 0 ? void 0 : _errors$pincode.message))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
24583
24656
|
className: "submit-bar-back",
|
|
24584
24657
|
label: "Back",
|
|
24585
24658
|
onSubmit: onGoBack
|
|
@@ -24791,12 +24864,7 @@ const AvailabilityModal = ({
|
|
|
24791
24864
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24792
24865
|
className: "ads-cart-header"
|
|
24793
24866
|
}, /*#__PURE__*/React.createElement("h2", {
|
|
24794
|
-
|
|
24795
|
-
margin: 0,
|
|
24796
|
-
fontSize: "20px",
|
|
24797
|
-
fontWeight: 700,
|
|
24798
|
-
color: "#333"
|
|
24799
|
-
}
|
|
24867
|
+
className: "ads-availibility-for-title"
|
|
24800
24868
|
}, t("ADS_AVAILIBILITY_FOR"), " ", ad === null || ad === void 0 ? void 0 : ad.name, " ", allBooked && /*#__PURE__*/React.createElement("span", {
|
|
24801
24869
|
className: "ads-header-note"
|
|
24802
24870
|
}, t("ADS_ALL_SLOTS_BOOKED"))), /*#__PURE__*/React.createElement("button", {
|
|
@@ -24885,25 +24953,14 @@ const CartModal = ({
|
|
|
24885
24953
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24886
24954
|
className: "ads-cart-header"
|
|
24887
24955
|
}, /*#__PURE__*/React.createElement("h2", {
|
|
24888
|
-
|
|
24889
|
-
margin: 0,
|
|
24890
|
-
fontSize: "20px",
|
|
24891
|
-
fontWeight: 700,
|
|
24892
|
-
color: "#333"
|
|
24893
|
-
}
|
|
24956
|
+
className: "ads-availibility-for-title"
|
|
24894
24957
|
}, t("ADS_YOUR_CART")), /*#__PURE__*/React.createElement("button", {
|
|
24895
24958
|
onClick: onClose,
|
|
24896
24959
|
className: "ads-cart-close"
|
|
24897
24960
|
}, "\u2716")), /*#__PURE__*/React.createElement("div", {
|
|
24898
|
-
|
|
24899
|
-
flex: 1,
|
|
24900
|
-
overflowY: "auto"
|
|
24901
|
-
}
|
|
24961
|
+
className: "ads-cart-modal-body"
|
|
24902
24962
|
}, (cartSlots === null || cartSlots === void 0 ? void 0 : cartSlots.length) === 0 ? /*#__PURE__*/React.createElement("p", {
|
|
24903
|
-
|
|
24904
|
-
padding: "12px",
|
|
24905
|
-
color: "#666"
|
|
24906
|
-
}
|
|
24963
|
+
className: "ads-cart-empty-text"
|
|
24907
24964
|
}, t("ADS_NO_ITEMS_IN_CART")) : cartSlots === null || cartSlots === void 0 ? void 0 : cartSlots.map((item, idx) => {
|
|
24908
24965
|
var _item$ad, _item$ad2, _item$ad3, _item$slots;
|
|
24909
24966
|
const key = getKey(item === null || item === void 0 ? void 0 : item.ad);
|
|
@@ -24915,15 +24972,9 @@ const CartModal = ({
|
|
|
24915
24972
|
className: "ads-cart-item-header"
|
|
24916
24973
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24917
24974
|
onClick: () => toggleExpand(key),
|
|
24918
|
-
|
|
24919
|
-
cursor: "pointer",
|
|
24920
|
-
flex: 1
|
|
24921
|
-
}
|
|
24975
|
+
className: "ads-cart-item-header-info"
|
|
24922
24976
|
}, item === null || item === void 0 ? void 0 : (_item$ad = item.ad) === null || _item$ad === void 0 ? void 0 : _item$ad.name, item !== null && item !== void 0 && (_item$ad2 = item.ad) !== null && _item$ad2 !== void 0 && _item$ad2.amount ? ` — ₹${((item === null || item === void 0 ? void 0 : (_item$ad3 = item.ad) === null || _item$ad3 === void 0 ? void 0 : _item$ad3.amount) * 1.18 * (item === null || item === void 0 ? void 0 : (_item$slots = item.slots) === null || _item$slots === void 0 ? void 0 : _item$slots.length)).toFixed(2)}` : "", /*#__PURE__*/React.createElement("span", {
|
|
24923
|
-
|
|
24924
|
-
fontSize: "18px",
|
|
24925
|
-
marginLeft: "8px"
|
|
24926
|
-
}
|
|
24977
|
+
className: "ads-cart-item-toggle-modal"
|
|
24927
24978
|
}, isOpen ? "▾" : "▸")), /*#__PURE__*/React.createElement("button", {
|
|
24928
24979
|
onClick: () => {
|
|
24929
24980
|
var _item$ad4, _item$ad5;
|
|
@@ -24973,61 +25024,27 @@ const AdCard = ({
|
|
|
24973
25024
|
src: (ad === null || ad === void 0 ? void 0 : ad.imageSrc) || (ad === null || ad === void 0 ? void 0 : ad.photoURL),
|
|
24974
25025
|
alt: (ad === null || ad === void 0 ? void 0 : ad.name) || `Ad ${ad === null || ad === void 0 ? void 0 : ad.id}`,
|
|
24975
25026
|
loading: "lazy",
|
|
24976
|
-
|
|
24977
|
-
width: "100%",
|
|
24978
|
-
height: "100%",
|
|
24979
|
-
objectFit: "cover"
|
|
24980
|
-
}
|
|
25027
|
+
className: "ads-ad-card-image-img"
|
|
24981
25028
|
}) : /*#__PURE__*/React.createElement("div", {
|
|
24982
25029
|
className: "ads-card-noimage"
|
|
24983
25030
|
}, t("ADS_NO_IMAGE"))), /*#__PURE__*/React.createElement("div", {
|
|
24984
|
-
|
|
24985
|
-
display: "flex",
|
|
24986
|
-
flexDirection: "column",
|
|
24987
|
-
gap: 6,
|
|
24988
|
-
fontSize: 13,
|
|
24989
|
-
color: "#444"
|
|
24990
|
-
}
|
|
25031
|
+
className: "ads-ad-card-info"
|
|
24991
25032
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24992
|
-
|
|
24993
|
-
display: "flex",
|
|
24994
|
-
justifyContent: "space-between",
|
|
24995
|
-
fontWeight: 600
|
|
24996
|
-
}
|
|
25033
|
+
className: "ads-ad-card-info-row ads-ad-card-info-row--bold"
|
|
24997
25034
|
}, /*#__PURE__*/React.createElement("span", null, t(ad.name)), /*#__PURE__*/React.createElement("span", {
|
|
24998
|
-
|
|
24999
|
-
color: "#222"
|
|
25000
|
-
}
|
|
25035
|
+
className: "ads-ad-card-amount"
|
|
25001
25036
|
}, "\u20B9", ad === null || ad === void 0 ? void 0 : ad.amount)), /*#__PURE__*/React.createElement("div", {
|
|
25002
|
-
|
|
25003
|
-
display: "flex",
|
|
25004
|
-
justifyContent: "space-between"
|
|
25005
|
-
}
|
|
25037
|
+
className: "ads-ad-card-info-row"
|
|
25006
25038
|
}, /*#__PURE__*/React.createElement("span", null, t(ad === null || ad === void 0 ? void 0 : ad.locationCode)), /*#__PURE__*/React.createElement("span", null, "Pole ", ad.poleNo)), /*#__PURE__*/React.createElement("div", {
|
|
25007
|
-
|
|
25008
|
-
display: "flex",
|
|
25009
|
-
justifyContent: "space-between"
|
|
25010
|
-
}
|
|
25039
|
+
className: "ads-ad-card-info-row"
|
|
25011
25040
|
}, /*#__PURE__*/React.createElement("span", null, t(ad === null || ad === void 0 ? void 0 : ad.adType)), /*#__PURE__*/React.createElement("span", {
|
|
25012
|
-
|
|
25013
|
-
color: "green",
|
|
25014
|
-
fontWeight: 600
|
|
25015
|
-
}
|
|
25041
|
+
className: "ads-ad-card-light"
|
|
25016
25042
|
}, ad === null || ad === void 0 ? void 0 : ad.light))), /*#__PURE__*/React.createElement("div", {
|
|
25017
|
-
|
|
25018
|
-
display: "flex",
|
|
25019
|
-
gap: "4px",
|
|
25020
|
-
marginTop: "8px"
|
|
25021
|
-
}
|
|
25043
|
+
className: "ads-ad-card-date-row"
|
|
25022
25044
|
}, /*#__PURE__*/React.createElement("div", {
|
|
25023
|
-
|
|
25024
|
-
flex: 1
|
|
25025
|
-
}
|
|
25045
|
+
className: "ads-ad-card-date-field"
|
|
25026
25046
|
}, /*#__PURE__*/React.createElement("div", {
|
|
25027
|
-
|
|
25028
|
-
fontSize: 12,
|
|
25029
|
-
color: "#666"
|
|
25030
|
-
}
|
|
25047
|
+
className: "ads-ad-card-date-label"
|
|
25031
25048
|
}, t("ADS_START_DATE_TIME")), /*#__PURE__*/React.createElement(Controller, {
|
|
25032
25049
|
control: control,
|
|
25033
25050
|
name: `ads.${idx}.startDate`,
|
|
@@ -25039,14 +25056,9 @@ const AdCard = ({
|
|
|
25039
25056
|
className: "ads-card-input"
|
|
25040
25057
|
})
|
|
25041
25058
|
})), /*#__PURE__*/React.createElement("div", {
|
|
25042
|
-
|
|
25043
|
-
flex: 1
|
|
25044
|
-
}
|
|
25059
|
+
className: "ads-ad-card-date-field"
|
|
25045
25060
|
}, /*#__PURE__*/React.createElement("div", {
|
|
25046
|
-
|
|
25047
|
-
fontSize: 12,
|
|
25048
|
-
color: "#666"
|
|
25049
|
-
}
|
|
25061
|
+
className: "ads-ad-card-date-label"
|
|
25050
25062
|
}, t("ADS_END_DATE_TIME")), /*#__PURE__*/React.createElement(Controller, {
|
|
25051
25063
|
control: control,
|
|
25052
25064
|
name: `ads.${idx}.endDate`,
|
|
@@ -25058,11 +25070,7 @@ const AdCard = ({
|
|
|
25058
25070
|
className: "ads-card-input"
|
|
25059
25071
|
})
|
|
25060
25072
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
25061
|
-
|
|
25062
|
-
display: "flex",
|
|
25063
|
-
gap: 8,
|
|
25064
|
-
marginTop: 6
|
|
25065
|
-
}
|
|
25073
|
+
className: "ads-ad-card-actions"
|
|
25066
25074
|
}, /*#__PURE__*/React.createElement("button", {
|
|
25067
25075
|
type: "button",
|
|
25068
25076
|
onClick: () => _onViewAvailability(ad, {
|
|
@@ -25075,9 +25083,7 @@ const AdCard = ({
|
|
|
25075
25083
|
onClick: openCart,
|
|
25076
25084
|
className: "ads-btn-success"
|
|
25077
25085
|
}, /*#__PURE__*/React.createElement("span", {
|
|
25078
|
-
|
|
25079
|
-
color: "black"
|
|
25080
|
-
}
|
|
25086
|
+
className: "ads-ad-card-cart-icon"
|
|
25081
25087
|
}, "\uD83D\uDED2"), t("ADS_IN_CART"))));
|
|
25082
25088
|
};
|
|
25083
25089
|
|
|
@@ -27413,14 +27419,14 @@ function ADSSummary({
|
|
|
27413
27419
|
className: "bpa-summary-page"
|
|
27414
27420
|
}, /*#__PURE__*/React.createElement("h2", {
|
|
27415
27421
|
className: "bpa-summary-heading"
|
|
27416
|
-
}, TT("ADS_APPLICANT_DETAILS")), /*#__PURE__*/React.createElement("
|
|
27422
|
+
}, TT("ADS_APPLICANT_DETAILS")), /*#__PURE__*/React.createElement("div", {
|
|
27417
27423
|
className: "ads-summary-edit",
|
|
27418
27424
|
onClick: () => dispatch(SET_ADSNewApplication_STEP(2))
|
|
27419
27425
|
}, TT("TL_SUMMARY_EDIT")), /*#__PURE__*/React.createElement("div", {
|
|
27420
27426
|
className: "bpa-summary-section"
|
|
27421
27427
|
}, renderRow(TT("NOC_APPLICANT_NAME_LABEL"), applicant === null || applicant === void 0 ? void 0 : applicant.applicantName), renderRow(TT("CORE_Mobile_Number"), applicant === null || applicant === void 0 ? void 0 : applicant.applicantMobileNo), renderRow(TT("CORE_EMAIL_ID"), applicant === null || applicant === void 0 ? void 0 : applicant.applicantEmailId), renderRow(TT("CORE_COMMON_PINCODE"), address === null || address === void 0 ? void 0 : address.pincode), renderRow(TT("ES_CREATECOMPLAINT_ADDRESS"), address === null || address === void 0 ? void 0 : address.addressLine1)), /*#__PURE__*/React.createElement("h2", {
|
|
27422
27428
|
className: "bpa-summary-heading"
|
|
27423
|
-
}, TT("ADS_DETAILS")), /*#__PURE__*/React.createElement("
|
|
27429
|
+
}, TT("ADS_DETAILS")), /*#__PURE__*/React.createElement("div", {
|
|
27424
27430
|
className: "ads-summary-edit",
|
|
27425
27431
|
onClick: () => dispatch(SET_ADSNewApplication_STEP(1))
|
|
27426
27432
|
}, TT("TL_SUMMARY_EDIT")), /*#__PURE__*/React.createElement("div", {
|
|
@@ -27432,7 +27438,7 @@ function ADSSummary({
|
|
|
27432
27438
|
className: "document-section-wrapper"
|
|
27433
27439
|
}, /*#__PURE__*/React.createElement("div", {
|
|
27434
27440
|
className: "document-section-header"
|
|
27435
|
-
}, TT("ADS_DOCUMENTS_DETAILS")), /*#__PURE__*/React.createElement("
|
|
27441
|
+
}, TT("ADS_DOCUMENTS_DETAILS")), /*#__PURE__*/React.createElement("div", {
|
|
27436
27442
|
className: "ads-summary-edit",
|
|
27437
27443
|
onClick: () => dispatch(SET_ADSNewApplication_STEP(3))
|
|
27438
27444
|
}, TT("TL_SUMMARY_EDIT")), (docs === null || docs === void 0 ? void 0 : docs.length) > 0 ? /*#__PURE__*/React.createElement("div", {
|