@mseva/upyog-ui-module-ads 1.1.86-dev.1.1 → 1.1.86-dev.1.2
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 +132 -79
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
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, MultiLink, FormComposer, Menu, CitizenHomeCard } from '@mseva/digit-ui-react-components';
|
|
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, BackButton, 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,6 +186,7 @@ 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);
|
|
189
190
|
const GAP = 7;
|
|
190
191
|
const dateRanges = [];
|
|
191
192
|
if (sorted.length) {
|
|
@@ -16798,7 +16799,6 @@ const getTimelineAcknowledgementData = (workflowDetails, tenantInfo, pdfFiles =
|
|
|
16798
16799
|
const formats = (downloadLink === null || downloadLink === void 0 ? void 0 : (_downloadLink$split = downloadLink.split(",")) === null || _downloadLink$split === void 0 ? void 0 : _downloadLink$split.filter(Boolean)) || [];
|
|
16799
16800
|
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]) || "";
|
|
16800
16801
|
};
|
|
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,8 +16808,7 @@ 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
|
|
16812
|
-
const comment = typeof rawComment === "string" ? rawComment.split(pattern)[0] : rawComment;
|
|
16811
|
+
const comment = (item === null || item === void 0 ? void 0 : (_item$wfComment = item.wfComment) === null || _item$wfComment === void 0 ? void 0 : _item$wfComment[0]) || "-";
|
|
16813
16812
|
const documents = (item === null || item === void 0 ? void 0 : item.wfDocuments) || [];
|
|
16814
16813
|
const sla = (item === null || item === void 0 ? void 0 : item.sla) || "N/A";
|
|
16815
16814
|
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(", ") : "";
|
|
@@ -19301,6 +19300,7 @@ const ApplicationCard = ({
|
|
|
19301
19300
|
if (type) setPopup(true);
|
|
19302
19301
|
}, [type]);
|
|
19303
19302
|
const handlePopupClose = () => {
|
|
19303
|
+
console.log("here comingf");
|
|
19304
19304
|
setPopup(false);
|
|
19305
19305
|
setType("");
|
|
19306
19306
|
setSortParams(sortParams);
|
|
@@ -19338,6 +19338,7 @@ const ApplicationCard = ({
|
|
|
19338
19338
|
}), !isSearch && onFilterChange && /*#__PURE__*/React.createElement(FilterAction, {
|
|
19339
19339
|
text: "FILTER",
|
|
19340
19340
|
handleActionClick: () => {
|
|
19341
|
+
console.log("here yes");
|
|
19341
19342
|
setType("FILTER");
|
|
19342
19343
|
setPopup(true);
|
|
19343
19344
|
}
|
|
@@ -19634,31 +19635,6 @@ const Inbox = ({
|
|
|
19634
19635
|
}
|
|
19635
19636
|
};
|
|
19636
19637
|
|
|
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
|
-
};
|
|
19662
19638
|
const EmployeeApp = ({
|
|
19663
19639
|
path,
|
|
19664
19640
|
url,
|
|
@@ -19690,15 +19666,12 @@ const EmployeeApp = ({
|
|
|
19690
19666
|
locality: []
|
|
19691
19667
|
}
|
|
19692
19668
|
};
|
|
19693
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
19669
|
+
return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
19694
19670
|
className: "ground-container"
|
|
19695
19671
|
}, !isRes ? /*#__PURE__*/React.createElement("div", {
|
|
19696
|
-
|
|
19697
|
-
|
|
19698
|
-
|
|
19699
|
-
}, /*#__PURE__*/React.createElement(ADSBreadCrumbs$1, {
|
|
19700
|
-
location: location,
|
|
19701
|
-
t: t
|
|
19672
|
+
className: `ads-registration-row ${isNewRegistration ? "ads-registration-row--new" : "ads-registration-row--existing"}`
|
|
19673
|
+
}, /*#__PURE__*/React.createElement(BackButton, {
|
|
19674
|
+
location: location
|
|
19702
19675
|
})) : null, /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
19703
19676
|
path: `${path}/bookad`,
|
|
19704
19677
|
component: props => /*#__PURE__*/React.createElement(ADSCreate, Object.assign({}, props, {
|
|
@@ -19741,7 +19714,7 @@ const EmployeeApp = ({
|
|
|
19741
19714
|
isInbox: false,
|
|
19742
19715
|
EmptyResultInboxComp: "PTEmptyResultInbox"
|
|
19743
19716
|
})
|
|
19744
|
-
})));
|
|
19717
|
+
})))));
|
|
19745
19718
|
};
|
|
19746
19719
|
|
|
19747
19720
|
const ReservationTimer = ({
|
|
@@ -19836,7 +19809,10 @@ const AdsApplication = ({
|
|
|
19836
19809
|
const appDate = new Date(application === null || application === void 0 ? void 0 : application.applicationDate).toLocaleDateString();
|
|
19837
19810
|
const [expired, setExpired] = useState(false);
|
|
19838
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", {
|
|
19839
|
-
|
|
19812
|
+
style: {
|
|
19813
|
+
display: "flex",
|
|
19814
|
+
justifyContent: "flex-end"
|
|
19815
|
+
}
|
|
19840
19816
|
}, /*#__PURE__*/React.createElement(ReservationTimer, {
|
|
19841
19817
|
t: t,
|
|
19842
19818
|
createTime: application === null || application === void 0 ? void 0 : (_application$auditDet2 = application.auditDetails) === null || _application$auditDet2 === void 0 ? void 0 : _application$auditDet2.createdTime,
|
|
@@ -20648,13 +20624,13 @@ function NewApplicationTimeline({
|
|
|
20648
20624
|
className: "custom-officer-info"
|
|
20649
20625
|
}, /*#__PURE__*/React.createElement("div", {
|
|
20650
20626
|
className: "custom-officer-name"
|
|
20651
|
-
}, (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"),
|
|
20652
|
-
className: "custom-officer-name"
|
|
20653
|
-
}, "- ", 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", {
|
|
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")), (item === null || item === void 0 ? void 0 : (_item$assigner3 = item.assigner) === null || _item$assigner3 === void 0 ? void 0 : _item$assigner3.emailId) && /*#__PURE__*/React.createElement("div", {
|
|
20654
20628
|
className: "custom-officer-email"
|
|
20655
20629
|
}, /*#__PURE__*/React.createElement("span", {
|
|
20656
20630
|
className: "custom-email-label"
|
|
20657
|
-
}, t("Email")), " ", item === null || item === void 0 ? void 0 : (_item$
|
|
20631
|
+
}, t("Email")), " ", item === null || item === void 0 ? void 0 : (_item$assigner4 = item.assigner) === null || _item$assigner4 === void 0 ? void 0 : _item$assigner4.emailId), deptMap[item === null || item === void 0 ? void 0 : (_item$assigner5 = item.assigner) === null || _item$assigner5 === void 0 ? void 0 : _item$assigner5.userName] && /*#__PURE__*/React.createElement("div", {
|
|
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", {
|
|
20658
20634
|
className: "custom-card-column custom-card-column-mid"
|
|
20659
20635
|
}, (item === null || item === void 0 ? void 0 : item.sla) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
|
|
20660
20636
|
className: "custom-action-title"
|
|
@@ -20676,13 +20652,9 @@ function NewApplicationTimeline({
|
|
|
20676
20652
|
className: "custom-comments-title"
|
|
20677
20653
|
}, t("Officer Comments")), /*#__PURE__*/React.createElement("div", {
|
|
20678
20654
|
className: "custom-comment-text"
|
|
20679
|
-
}, item === null || item === void 0 ? void 0 : (_item$wfComment3 = item.wfComment) === null || _item$wfComment3 === void 0 ? void 0 : _item$wfComment3.map((comment, idx) => {
|
|
20680
|
-
|
|
20681
|
-
|
|
20682
|
-
return /*#__PURE__*/React.createElement("p", {
|
|
20683
|
-
key: idx
|
|
20684
|
-
}, truncatedComment);
|
|
20685
|
-
}))), (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", {
|
|
20655
|
+
}, item === null || item === void 0 ? void 0 : (_item$wfComment3 = item.wfComment) === null || _item$wfComment3 === void 0 ? void 0 : _item$wfComment3.map((comment, idx) => /*#__PURE__*/React.createElement("p", {
|
|
20656
|
+
key: idx
|
|
20657
|
+
}, comment)))), (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", {
|
|
20686
20658
|
className: "custom-assigned-to-footer"
|
|
20687
20659
|
}, /*#__PURE__*/React.createElement("h3", {
|
|
20688
20660
|
className: "custom-comments-title"
|
|
@@ -20690,9 +20662,9 @@ function NewApplicationTimeline({
|
|
|
20690
20662
|
className: "custom-officer-info"
|
|
20691
20663
|
}, /*#__PURE__*/React.createElement("div", {
|
|
20692
20664
|
className: "custom-officer-name"
|
|
20693
|
-
}, (_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("
|
|
20665
|
+
}, (_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("div", {
|
|
20694
20666
|
className: "custom-officer-email"
|
|
20695
|
-
},
|
|
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", {
|
|
20696
20668
|
className: "custom-comments-section-no-border"
|
|
20697
20669
|
}, /*#__PURE__*/React.createElement("h4", {
|
|
20698
20670
|
className: "custom-comments-title"
|
|
@@ -22250,6 +22222,7 @@ var browser = {
|
|
|
22250
22222
|
|
|
22251
22223
|
const getAcknowledgement = async (application, t) => {
|
|
22252
22224
|
var _application$applican, _application$applican2, _application$applican3, _application$applican4, _application$cartDeta;
|
|
22225
|
+
console.log('application', application);
|
|
22253
22226
|
const currentDate = new Date().toLocaleDateString("en-IN", {
|
|
22254
22227
|
day: "2-digit",
|
|
22255
22228
|
month: "long",
|
|
@@ -22540,6 +22513,7 @@ const ADSApplicationDetails = () => {
|
|
|
22540
22513
|
}
|
|
22541
22514
|
});
|
|
22542
22515
|
const new_data = transformBookingResponseToBookingData(adsData);
|
|
22516
|
+
console.log("new_data my here", new_data);
|
|
22543
22517
|
const mutation = Digit.Hooks.ads.useADSCreateAPI(tenantId, false);
|
|
22544
22518
|
useEffect(() => {
|
|
22545
22519
|
refetch();
|
|
@@ -24392,10 +24366,16 @@ const ADSCitizenDetailsNew = ({
|
|
|
24392
24366
|
return /*#__PURE__*/React.createElement("form", {
|
|
24393
24367
|
className: "card",
|
|
24394
24368
|
onSubmit: handleSubmit(onSubmit)
|
|
24369
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24370
|
+
style: {
|
|
24371
|
+
maxWidth: !isCitizen && "500px"
|
|
24372
|
+
}
|
|
24395
24373
|
}, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
24396
24374
|
className: "card-label-smaller"
|
|
24397
24375
|
}, t("NOC_APPLICANT_MOBILE_NO_LABEL"), /*#__PURE__*/React.createElement("span", {
|
|
24398
|
-
|
|
24376
|
+
style: {
|
|
24377
|
+
color: "red"
|
|
24378
|
+
}
|
|
24399
24379
|
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
24400
24380
|
className: "form-field"
|
|
24401
24381
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
@@ -24434,7 +24414,9 @@ const ADSCitizenDetailsNew = ({
|
|
|
24434
24414
|
}, errors.mobileNumber.message))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
24435
24415
|
className: "card-label-smaller"
|
|
24436
24416
|
}, `${t("ES_NEW_APPLICATION_APPLICANT_NAME")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
24437
|
-
|
|
24417
|
+
style: {
|
|
24418
|
+
color: "red"
|
|
24419
|
+
}
|
|
24438
24420
|
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
24439
24421
|
className: "form-field"
|
|
24440
24422
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
@@ -24477,7 +24459,9 @@ const ADSCitizenDetailsNew = ({
|
|
|
24477
24459
|
}, 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, {
|
|
24478
24460
|
className: "card-label-smaller"
|
|
24479
24461
|
}, t("NOC_APPLICANT_EMAIL_LABEL"), /*#__PURE__*/React.createElement("span", {
|
|
24480
|
-
|
|
24462
|
+
style: {
|
|
24463
|
+
color: "red"
|
|
24464
|
+
}
|
|
24481
24465
|
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
24482
24466
|
className: "form-field"
|
|
24483
24467
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
@@ -24552,7 +24536,9 @@ const ADSCitizenDetailsNew = ({
|
|
|
24552
24536
|
}, 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, {
|
|
24553
24537
|
className: "card-label-smaller"
|
|
24554
24538
|
}, `${t("CORE_COMMON_PINCODE")}`, /*#__PURE__*/React.createElement("span", {
|
|
24555
|
-
|
|
24539
|
+
style: {
|
|
24540
|
+
color: "red"
|
|
24541
|
+
}
|
|
24556
24542
|
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
24557
24543
|
className: "form-field"
|
|
24558
24544
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
@@ -24593,7 +24579,7 @@ const ADSCitizenDetailsNew = ({
|
|
|
24593
24579
|
marginTop: "4px",
|
|
24594
24580
|
marginBottom: "0"
|
|
24595
24581
|
}
|
|
24596
|
-
}, 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, {
|
|
24582
|
+
}, 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, {
|
|
24597
24583
|
className: "submit-bar-back",
|
|
24598
24584
|
label: "Back",
|
|
24599
24585
|
onSubmit: onGoBack
|
|
@@ -24805,7 +24791,12 @@ const AvailabilityModal = ({
|
|
|
24805
24791
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24806
24792
|
className: "ads-cart-header"
|
|
24807
24793
|
}, /*#__PURE__*/React.createElement("h2", {
|
|
24808
|
-
|
|
24794
|
+
style: {
|
|
24795
|
+
margin: 0,
|
|
24796
|
+
fontSize: "20px",
|
|
24797
|
+
fontWeight: 700,
|
|
24798
|
+
color: "#333"
|
|
24799
|
+
}
|
|
24809
24800
|
}, t("ADS_AVAILIBILITY_FOR"), " ", ad === null || ad === void 0 ? void 0 : ad.name, " ", allBooked && /*#__PURE__*/React.createElement("span", {
|
|
24810
24801
|
className: "ads-header-note"
|
|
24811
24802
|
}, t("ADS_ALL_SLOTS_BOOKED"))), /*#__PURE__*/React.createElement("button", {
|
|
@@ -24894,14 +24885,25 @@ const CartModal = ({
|
|
|
24894
24885
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24895
24886
|
className: "ads-cart-header"
|
|
24896
24887
|
}, /*#__PURE__*/React.createElement("h2", {
|
|
24897
|
-
|
|
24888
|
+
style: {
|
|
24889
|
+
margin: 0,
|
|
24890
|
+
fontSize: "20px",
|
|
24891
|
+
fontWeight: 700,
|
|
24892
|
+
color: "#333"
|
|
24893
|
+
}
|
|
24898
24894
|
}, t("ADS_YOUR_CART")), /*#__PURE__*/React.createElement("button", {
|
|
24899
24895
|
onClick: onClose,
|
|
24900
24896
|
className: "ads-cart-close"
|
|
24901
24897
|
}, "\u2716")), /*#__PURE__*/React.createElement("div", {
|
|
24902
|
-
|
|
24898
|
+
style: {
|
|
24899
|
+
flex: 1,
|
|
24900
|
+
overflowY: "auto"
|
|
24901
|
+
}
|
|
24903
24902
|
}, (cartSlots === null || cartSlots === void 0 ? void 0 : cartSlots.length) === 0 ? /*#__PURE__*/React.createElement("p", {
|
|
24904
|
-
|
|
24903
|
+
style: {
|
|
24904
|
+
padding: "12px",
|
|
24905
|
+
color: "#666"
|
|
24906
|
+
}
|
|
24905
24907
|
}, t("ADS_NO_ITEMS_IN_CART")) : cartSlots === null || cartSlots === void 0 ? void 0 : cartSlots.map((item, idx) => {
|
|
24906
24908
|
var _item$ad, _item$ad2, _item$ad3, _item$slots;
|
|
24907
24909
|
const key = getKey(item === null || item === void 0 ? void 0 : item.ad);
|
|
@@ -24913,9 +24915,15 @@ const CartModal = ({
|
|
|
24913
24915
|
className: "ads-cart-item-header"
|
|
24914
24916
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24915
24917
|
onClick: () => toggleExpand(key),
|
|
24916
|
-
|
|
24918
|
+
style: {
|
|
24919
|
+
cursor: "pointer",
|
|
24920
|
+
flex: 1
|
|
24921
|
+
}
|
|
24917
24922
|
}, 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", {
|
|
24918
|
-
|
|
24923
|
+
style: {
|
|
24924
|
+
fontSize: "18px",
|
|
24925
|
+
marginLeft: "8px"
|
|
24926
|
+
}
|
|
24919
24927
|
}, isOpen ? "▾" : "▸")), /*#__PURE__*/React.createElement("button", {
|
|
24920
24928
|
onClick: () => {
|
|
24921
24929
|
var _item$ad4, _item$ad5;
|
|
@@ -24965,27 +24973,61 @@ const AdCard = ({
|
|
|
24965
24973
|
src: (ad === null || ad === void 0 ? void 0 : ad.imageSrc) || (ad === null || ad === void 0 ? void 0 : ad.photoURL),
|
|
24966
24974
|
alt: (ad === null || ad === void 0 ? void 0 : ad.name) || `Ad ${ad === null || ad === void 0 ? void 0 : ad.id}`,
|
|
24967
24975
|
loading: "lazy",
|
|
24968
|
-
|
|
24976
|
+
style: {
|
|
24977
|
+
width: "100%",
|
|
24978
|
+
height: "100%",
|
|
24979
|
+
objectFit: "cover"
|
|
24980
|
+
}
|
|
24969
24981
|
}) : /*#__PURE__*/React.createElement("div", {
|
|
24970
24982
|
className: "ads-card-noimage"
|
|
24971
24983
|
}, t("ADS_NO_IMAGE"))), /*#__PURE__*/React.createElement("div", {
|
|
24972
|
-
|
|
24984
|
+
style: {
|
|
24985
|
+
display: "flex",
|
|
24986
|
+
flexDirection: "column",
|
|
24987
|
+
gap: 6,
|
|
24988
|
+
fontSize: 13,
|
|
24989
|
+
color: "#444"
|
|
24990
|
+
}
|
|
24973
24991
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24974
|
-
|
|
24992
|
+
style: {
|
|
24993
|
+
display: "flex",
|
|
24994
|
+
justifyContent: "space-between",
|
|
24995
|
+
fontWeight: 600
|
|
24996
|
+
}
|
|
24975
24997
|
}, /*#__PURE__*/React.createElement("span", null, t(ad.name)), /*#__PURE__*/React.createElement("span", {
|
|
24976
|
-
|
|
24998
|
+
style: {
|
|
24999
|
+
color: "#222"
|
|
25000
|
+
}
|
|
24977
25001
|
}, "\u20B9", ad === null || ad === void 0 ? void 0 : ad.amount)), /*#__PURE__*/React.createElement("div", {
|
|
24978
|
-
|
|
25002
|
+
style: {
|
|
25003
|
+
display: "flex",
|
|
25004
|
+
justifyContent: "space-between"
|
|
25005
|
+
}
|
|
24979
25006
|
}, /*#__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", {
|
|
24980
|
-
|
|
25007
|
+
style: {
|
|
25008
|
+
display: "flex",
|
|
25009
|
+
justifyContent: "space-between"
|
|
25010
|
+
}
|
|
24981
25011
|
}, /*#__PURE__*/React.createElement("span", null, t(ad === null || ad === void 0 ? void 0 : ad.adType)), /*#__PURE__*/React.createElement("span", {
|
|
24982
|
-
|
|
25012
|
+
style: {
|
|
25013
|
+
color: "green",
|
|
25014
|
+
fontWeight: 600
|
|
25015
|
+
}
|
|
24983
25016
|
}, ad === null || ad === void 0 ? void 0 : ad.light))), /*#__PURE__*/React.createElement("div", {
|
|
24984
|
-
|
|
25017
|
+
style: {
|
|
25018
|
+
display: "flex",
|
|
25019
|
+
gap: "4px",
|
|
25020
|
+
marginTop: "8px"
|
|
25021
|
+
}
|
|
24985
25022
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24986
|
-
|
|
25023
|
+
style: {
|
|
25024
|
+
flex: 1
|
|
25025
|
+
}
|
|
24987
25026
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24988
|
-
|
|
25027
|
+
style: {
|
|
25028
|
+
fontSize: 12,
|
|
25029
|
+
color: "#666"
|
|
25030
|
+
}
|
|
24989
25031
|
}, t("ADS_START_DATE_TIME")), /*#__PURE__*/React.createElement(Controller, {
|
|
24990
25032
|
control: control,
|
|
24991
25033
|
name: `ads.${idx}.startDate`,
|
|
@@ -24997,9 +25039,14 @@ const AdCard = ({
|
|
|
24997
25039
|
className: "ads-card-input"
|
|
24998
25040
|
})
|
|
24999
25041
|
})), /*#__PURE__*/React.createElement("div", {
|
|
25000
|
-
|
|
25042
|
+
style: {
|
|
25043
|
+
flex: 1
|
|
25044
|
+
}
|
|
25001
25045
|
}, /*#__PURE__*/React.createElement("div", {
|
|
25002
|
-
|
|
25046
|
+
style: {
|
|
25047
|
+
fontSize: 12,
|
|
25048
|
+
color: "#666"
|
|
25049
|
+
}
|
|
25003
25050
|
}, t("ADS_END_DATE_TIME")), /*#__PURE__*/React.createElement(Controller, {
|
|
25004
25051
|
control: control,
|
|
25005
25052
|
name: `ads.${idx}.endDate`,
|
|
@@ -25011,7 +25058,11 @@ const AdCard = ({
|
|
|
25011
25058
|
className: "ads-card-input"
|
|
25012
25059
|
})
|
|
25013
25060
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
25014
|
-
|
|
25061
|
+
style: {
|
|
25062
|
+
display: "flex",
|
|
25063
|
+
gap: 8,
|
|
25064
|
+
marginTop: 6
|
|
25065
|
+
}
|
|
25015
25066
|
}, /*#__PURE__*/React.createElement("button", {
|
|
25016
25067
|
type: "button",
|
|
25017
25068
|
onClick: () => _onViewAvailability(ad, {
|
|
@@ -25024,7 +25075,9 @@ const AdCard = ({
|
|
|
25024
25075
|
onClick: openCart,
|
|
25025
25076
|
className: "ads-btn-success"
|
|
25026
25077
|
}, /*#__PURE__*/React.createElement("span", {
|
|
25027
|
-
|
|
25078
|
+
style: {
|
|
25079
|
+
color: "black"
|
|
25080
|
+
}
|
|
25028
25081
|
}, "\uD83D\uDED2"), t("ADS_IN_CART"))));
|
|
25029
25082
|
};
|
|
25030
25083
|
|
|
@@ -27360,14 +27413,14 @@ function ADSSummary({
|
|
|
27360
27413
|
className: "bpa-summary-page"
|
|
27361
27414
|
}, /*#__PURE__*/React.createElement("h2", {
|
|
27362
27415
|
className: "bpa-summary-heading"
|
|
27363
|
-
}, TT("ADS_APPLICANT_DETAILS")), /*#__PURE__*/React.createElement("
|
|
27416
|
+
}, TT("ADS_APPLICANT_DETAILS")), /*#__PURE__*/React.createElement("span", {
|
|
27364
27417
|
className: "ads-summary-edit",
|
|
27365
27418
|
onClick: () => dispatch(SET_ADSNewApplication_STEP(2))
|
|
27366
27419
|
}, TT("TL_SUMMARY_EDIT")), /*#__PURE__*/React.createElement("div", {
|
|
27367
27420
|
className: "bpa-summary-section"
|
|
27368
27421
|
}, 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", {
|
|
27369
27422
|
className: "bpa-summary-heading"
|
|
27370
|
-
}, TT("ADS_DETAILS")), /*#__PURE__*/React.createElement("
|
|
27423
|
+
}, TT("ADS_DETAILS")), /*#__PURE__*/React.createElement("span", {
|
|
27371
27424
|
className: "ads-summary-edit",
|
|
27372
27425
|
onClick: () => dispatch(SET_ADSNewApplication_STEP(1))
|
|
27373
27426
|
}, TT("TL_SUMMARY_EDIT")), /*#__PURE__*/React.createElement("div", {
|
|
@@ -27379,7 +27432,7 @@ function ADSSummary({
|
|
|
27379
27432
|
className: "document-section-wrapper"
|
|
27380
27433
|
}, /*#__PURE__*/React.createElement("div", {
|
|
27381
27434
|
className: "document-section-header"
|
|
27382
|
-
}, TT("ADS_DOCUMENTS_DETAILS")), /*#__PURE__*/React.createElement("
|
|
27435
|
+
}, TT("ADS_DOCUMENTS_DETAILS")), /*#__PURE__*/React.createElement("span", {
|
|
27383
27436
|
className: "ads-summary-edit",
|
|
27384
27437
|
onClick: () => dispatch(SET_ADSNewApplication_STEP(3))
|
|
27385
27438
|
}, TT("TL_SUMMARY_EDIT")), (docs === null || docs === void 0 ? void 0 : docs.length) > 0 ? /*#__PURE__*/React.createElement("div", {
|