@mseva/upyog-ui-module-ads 1.1.86-dev.1.8 → 1.1.86-dev.2.0
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.map +1 -1
- package/dist/index.modern.js +5 -38
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -335,7 +335,7 @@ const allowedKeys = ["addType", "location", "faceArea", "nightLight", "bookingId
|
|
|
335
335
|
const Heading = props => {
|
|
336
336
|
return /*#__PURE__*/React.createElement("h1", {
|
|
337
337
|
className: "heading-m"
|
|
338
|
-
}, props.t("
|
|
338
|
+
}, props.t("CHB_CANCEL"));
|
|
339
339
|
};
|
|
340
340
|
const Close = () => /*#__PURE__*/React.createElement("svg", {
|
|
341
341
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -389,7 +389,7 @@ const ADSCancelBooking = ({
|
|
|
389
389
|
}, /*#__PURE__*/React.createElement("form", {
|
|
390
390
|
onSubmit: handleSubmit(onSubmit)
|
|
391
391
|
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
392
|
-
label: t("
|
|
392
|
+
label: t("ADS_CONFIRM_CANCEL_BOOKING"),
|
|
393
393
|
onChange: setdeclarationhandler,
|
|
394
394
|
style: {
|
|
395
395
|
height: "auto"
|
|
@@ -19793,12 +19793,10 @@ const AdsApplication = ({
|
|
|
19793
19793
|
} = useTranslation();
|
|
19794
19794
|
const history = useHistory();
|
|
19795
19795
|
const [showToast, setShowToast] = useState(null);
|
|
19796
|
-
const [showModal, setShowModal] = useState(false);
|
|
19797
19796
|
const handleMakePayment = () => {
|
|
19798
19797
|
history.push(`/digit-ui/citizen/payment/my-bills/adv-services/${application === null || application === void 0 ? void 0 : application.bookingNo}`);
|
|
19799
19798
|
};
|
|
19800
|
-
const
|
|
19801
|
-
setShowModal(false);
|
|
19799
|
+
const handleCancelBooking = async () => {
|
|
19802
19800
|
const formData = {
|
|
19803
19801
|
tenantId: application === null || application === void 0 ? void 0 : application.tenantId,
|
|
19804
19802
|
...application,
|
|
@@ -19837,7 +19835,7 @@ const AdsApplication = ({
|
|
|
19837
19835
|
}, [showToast]);
|
|
19838
19836
|
const appDate = new Date(application === null || application === void 0 ? void 0 : application.applicationDate).toLocaleDateString();
|
|
19839
19837
|
const [expired, setExpired] = useState(false);
|
|
19840
|
-
return /*#__PURE__*/React.createElement(
|
|
19838
|
+
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", {
|
|
19841
19839
|
className: "ads-reservation-wrapper"
|
|
19842
19840
|
}, /*#__PURE__*/React.createElement(ReservationTimer, {
|
|
19843
19841
|
t: t,
|
|
@@ -19867,7 +19865,7 @@ const AdsApplication = ({
|
|
|
19867
19865
|
disabled: expired
|
|
19868
19866
|
}), application.bookingStatus === "BOOKED" && /*#__PURE__*/React.createElement(SubmitBar, {
|
|
19869
19867
|
label: t("ADS_CANCEL_BOOKING"),
|
|
19870
|
-
onSubmit:
|
|
19868
|
+
onSubmit: handleCancelBooking,
|
|
19871
19869
|
disabled: expired
|
|
19872
19870
|
})), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
19873
19871
|
error: showToast.error,
|
|
@@ -19876,14 +19874,6 @@ const AdsApplication = ({
|
|
|
19876
19874
|
onClose: () => {
|
|
19877
19875
|
setShowToast(null);
|
|
19878
19876
|
}
|
|
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
|
|
19887
19877
|
}));
|
|
19888
19878
|
};
|
|
19889
19879
|
|
|
@@ -23258,7 +23248,6 @@ const ApplicationDetails = () => {
|
|
|
23258
23248
|
const [displayMenu, setDisplayMenu] = useState(false);
|
|
23259
23249
|
const [selectedAction, setSelectedAction] = useState(null);
|
|
23260
23250
|
const [showModal, setShowModal] = useState(false);
|
|
23261
|
-
const [showCancelModal, setShowCancelModal] = useState(false);
|
|
23262
23251
|
const [showOptions, setShowOptions] = useState(false);
|
|
23263
23252
|
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);
|
|
23264
23253
|
const {
|
|
@@ -23365,10 +23354,6 @@ const ApplicationDetails = () => {
|
|
|
23365
23354
|
return history.push(`/digit-ui/employee/payment/collect/adv-services/${appNo}/${tenantId}?tenantId=${tenantId}`);
|
|
23366
23355
|
}
|
|
23367
23356
|
if (wfAction.action === "SUBMIT" || wfAction.action === "INITIATE" || wfAction.action === "CANCEL") {
|
|
23368
|
-
if (wfAction.action === "CANCEL") {
|
|
23369
|
-
setShowCancelModal(true);
|
|
23370
|
-
return;
|
|
23371
|
-
}
|
|
23372
23357
|
const payloadAction = {
|
|
23373
23358
|
action: wfAction.action,
|
|
23374
23359
|
comment: wfAction.action || ""
|
|
@@ -23542,16 +23527,6 @@ const ApplicationDetails = () => {
|
|
|
23542
23527
|
if (isLoading || isDetailsLoading) {
|
|
23543
23528
|
return /*#__PURE__*/React.createElement(Loader$2, null);
|
|
23544
23529
|
}
|
|
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
|
-
};
|
|
23555
23530
|
return /*#__PURE__*/React.createElement("div", {
|
|
23556
23531
|
className: "employee-main-application-details"
|
|
23557
23532
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -23663,14 +23638,6 @@ const ApplicationDetails = () => {
|
|
|
23663
23638
|
label: error,
|
|
23664
23639
|
onClose: () => setShowToast(null),
|
|
23665
23640
|
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
|
|
23674
23641
|
}));
|
|
23675
23642
|
};
|
|
23676
23643
|
|