@mseva/digit-ui-module-common 1.1.88-dev.1.25 → 1.1.88-dev.1.26
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 +26 -117
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -7410,16 +7410,11 @@ const WrapPaymentComponent = props => {
|
|
|
7410
7410
|
if (sourceData) {
|
|
7411
7411
|
var _sourceData$approvalN, _sourceData$additiona, _sourceData$additiona2, _sourceData$additiona3, _sourceData$additiona4;
|
|
7412
7412
|
fileNo = `PB/${districtCode}/${ulbCode}/${+(sourceData === null || sourceData === void 0 ? void 0 : (_sourceData$approvalN = sourceData.approvalNo) === null || _sourceData$approvalN === void 0 ? void 0 : _sourceData$approvalN.slice(-6)) + 500000}`;
|
|
7413
|
-
console.log("newCode", fileNo);
|
|
7414
7413
|
usage = (sourceData === null || sourceData === void 0 ? void 0 : (_sourceData$additiona = sourceData.additionalDetails) === null || _sourceData$additiona === void 0 ? void 0 : _sourceData$additiona.usage) || (sourceData === null || sourceData === void 0 ? void 0 : (_sourceData$additiona2 = sourceData.additionalDetails) === null || _sourceData$additiona2 === void 0 ? void 0 : (_sourceData$additiona3 = _sourceData$additiona2.siteDetails) === null || _sourceData$additiona3 === void 0 ? void 0 : (_sourceData$additiona4 = _sourceData$additiona3.buildingCategory) === null || _sourceData$additiona4 === void 0 ? void 0 : _sourceData$additiona4.name);
|
|
7415
|
-
console.log("usage", usage);
|
|
7416
7414
|
}
|
|
7417
|
-
console.log("licenseType:", licenseType);
|
|
7418
7415
|
const state = Digit.ULBService.getStateId();
|
|
7419
7416
|
const fee = paymentData === null || paymentData === void 0 ? void 0 : paymentData.totalAmountPaid;
|
|
7420
|
-
console.log("fee here here", fee);
|
|
7421
7417
|
const amountinwords = amountToWords(fee);
|
|
7422
|
-
console.log('amountinwords', amountinwords);
|
|
7423
7418
|
let response = {
|
|
7424
7419
|
filestoreIds: [(_payments$Payments$ = payments.Payments[0]) === null || _payments$Payments$ === void 0 ? void 0 : _payments$Payments$.fileStoreId]
|
|
7425
7420
|
};
|
|
@@ -7463,7 +7458,7 @@ const WrapPaymentComponent = props => {
|
|
|
7463
7458
|
...paymentData
|
|
7464
7459
|
}]
|
|
7465
7460
|
}, generatePdfKeyForWs);
|
|
7466
|
-
} else if (paymentData.paymentDetails[0].businessService.includes("BPA") || paymentData.paymentDetails[0].businessService.includes("clu") || paymentData.paymentDetails[0].businessService.includes("
|
|
7461
|
+
} else if (paymentData.paymentDetails[0].businessService.includes("BPA") || paymentData.paymentDetails[0].businessService.includes("clu") || paymentData.paymentDetails[0].businessService.includes("layout")) {
|
|
7467
7462
|
const designation = ulbType === "Municipal Corporation" ? "Municipal Commissioner" : "Executive Officer";
|
|
7468
7463
|
let updatedpayments;
|
|
7469
7464
|
if (paymentData.paymentDetails[0].businessService.includes("BPAREG")) {
|
|
@@ -7509,7 +7504,6 @@ const WrapPaymentComponent = props => {
|
|
|
7509
7504
|
}]
|
|
7510
7505
|
}, generatePdfKey);
|
|
7511
7506
|
} else {
|
|
7512
|
-
console.log('this else triggered');
|
|
7513
7507
|
response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
7514
7508
|
Payments: [{
|
|
7515
7509
|
...paymentData,
|
|
@@ -7535,7 +7529,6 @@ const WrapPaymentComponent = props => {
|
|
|
7535
7529
|
const blob = await res.blob();
|
|
7536
7530
|
downloadPdf(blob, `receipt_${receiptNumber || "obpas_noc"}.pdf`);
|
|
7537
7531
|
} catch (err) {
|
|
7538
|
-
console.log(err, "error in receipt download");
|
|
7539
7532
|
window.open(downloadUrl, "_blank");
|
|
7540
7533
|
}
|
|
7541
7534
|
} else {
|
|
@@ -8258,7 +8251,27 @@ const WrapPaymentComponent = props => {
|
|
|
8258
8251
|
month: "2-digit",
|
|
8259
8252
|
year: "numeric"
|
|
8260
8253
|
})
|
|
8261
|
-
})), business_service == "
|
|
8254
|
+
})), business_service == "TL" ? /*#__PURE__*/React.createElement("div", {
|
|
8255
|
+
className: "primary-label-btn d-grid",
|
|
8256
|
+
style: {
|
|
8257
|
+
marginLeft: "unset",
|
|
8258
|
+
marginRight: "20px",
|
|
8259
|
+
marginTop: "15px",
|
|
8260
|
+
marginBottom: "15px"
|
|
8261
|
+
},
|
|
8262
|
+
onClick: printReciept
|
|
8263
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
8264
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8265
|
+
height: "24px",
|
|
8266
|
+
viewBox: "0 0 24 24",
|
|
8267
|
+
width: "24px",
|
|
8268
|
+
fill: "#a82227"
|
|
8269
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
8270
|
+
d: "M0 0h24v24H0V0z",
|
|
8271
|
+
fill: "none"
|
|
8272
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
8273
|
+
d: "M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"
|
|
8274
|
+
})), t("TL_RECEIPT")) : null, business_service == "sv-services" ? /*#__PURE__*/React.createElement("div", {
|
|
8262
8275
|
className: "primary-label-btn d-grid",
|
|
8263
8276
|
style: {
|
|
8264
8277
|
marginLeft: "unset",
|
|
@@ -8588,7 +8601,7 @@ const CitizenPayment = ({
|
|
|
8588
8601
|
const isResponse = window.location.href.includes("/response");
|
|
8589
8602
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
8590
8603
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
8591
|
-
className: "
|
|
8604
|
+
className: "bills-citizen-wrapper"
|
|
8592
8605
|
}, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, !isResponse ? /*#__PURE__*/React.createElement("div", {
|
|
8593
8606
|
style: window.location.href.includes("application-overview") || isMobile ? {
|
|
8594
8607
|
marginLeft: "10px"
|
|
@@ -11275,7 +11288,6 @@ const BillDetails$1 = ({
|
|
|
11275
11288
|
})));
|
|
11276
11289
|
};
|
|
11277
11290
|
const isTL = businessService === "TL";
|
|
11278
|
-
console.log("billDetails==||||", billDetails);
|
|
11279
11291
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StatusTable, null, !checkFSM && bill && config.details.map((obj, index) => {
|
|
11280
11292
|
const value = obj.keyPath.reduce((acc, key) => {
|
|
11281
11293
|
if (typeof key === "function") acc = key(acc);else acc = acc[key];
|
|
@@ -13805,7 +13817,6 @@ const SuccessfulPayment$1 = props => {
|
|
|
13805
13817
|
receiptNumber,
|
|
13806
13818
|
businessService
|
|
13807
13819
|
} = useParams();
|
|
13808
|
-
const isMCollectService = (businessService === null || businessService === void 0 ? void 0 : businessService.includes(".")) && !(businessService !== null && businessService !== void 0 && businessService.includes("FSM")) && !(businessService !== null && businessService !== void 0 && businessService.includes("WS")) && !(businessService !== null && businessService !== void 0 && businessService.includes("SW")) && !(businessService !== null && businessService !== void 0 && businessService.includes("GC")) && !(businessService !== null && businessService !== void 0 && businessService.includes("BPA"));
|
|
13809
13820
|
console.log("checkParam", checkParam);
|
|
13810
13821
|
console.log("egPgTxnId", egPgTxnId);
|
|
13811
13822
|
console.log("businessService", businessService);
|
|
@@ -13902,7 +13913,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
13902
13913
|
} = Digit.Hooks.useCommonMDMS(tenantId, "common-masters", "ReceiptKey", {
|
|
13903
13914
|
select: data => {
|
|
13904
13915
|
var _data$commonMasters, _data$commonMasters$u, _data$commonMasters$u2;
|
|
13905
|
-
return businessService === "GC.ONE_TIME_FEE" ? "garbage-receipt" : ((_data$commonMasters = data["common-masters"]) === null || _data$commonMasters === void 0 ? void 0 : (_data$commonMasters$u = _data$commonMasters.uiCommonPay) === null || _data$commonMasters$u === void 0 ? void 0 : (_data$commonMasters$u2 = _data$commonMasters$u.filter(({
|
|
13916
|
+
return businessService === "GC.ONE_TIME_FEE" ? "garbage-receipt" : businessService === "rl-services" ? "rentandlease-receipt" : ((_data$commonMasters = data["common-masters"]) === null || _data$commonMasters === void 0 ? void 0 : (_data$commonMasters$u = _data$commonMasters.uiCommonPay) === null || _data$commonMasters$u === void 0 ? void 0 : (_data$commonMasters$u2 = _data$commonMasters$u.filter(({
|
|
13906
13917
|
code
|
|
13907
13918
|
}) => businessService === null || businessService === void 0 ? void 0 : businessService.includes(code))[0]) === null || _data$commonMasters$u2 === void 0 ? void 0 : _data$commonMasters$u2.receiptKey) || "consolidatedreceipt";
|
|
13908
13919
|
}
|
|
@@ -13954,7 +13965,6 @@ const SuccessfulPayment$1 = props => {
|
|
|
13954
13965
|
...applicationDetails,
|
|
13955
13966
|
...challanEmpData
|
|
13956
13967
|
};
|
|
13957
|
-
console.log("applicationDetails", applicationDetails);
|
|
13958
13968
|
let application = challan;
|
|
13959
13969
|
let fileStoreId = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A = applicationDetails.Applications) === null || _applicationDetails$A === void 0 ? void 0 : (_applicationDetails$A2 = _applicationDetails$A[0]) === null || _applicationDetails$A2 === void 0 ? void 0 : _applicationDetails$A2.paymentReceiptFilestoreId;
|
|
13960
13970
|
if (!fileStoreId) {
|
|
@@ -14225,64 +14235,6 @@ const SuccessfulPayment$1 = props => {
|
|
|
14225
14235
|
setPrinting(false);
|
|
14226
14236
|
}
|
|
14227
14237
|
};
|
|
14228
|
-
const printMCollectReceipt = async () => {
|
|
14229
|
-
if (printing) return;
|
|
14230
|
-
setPrinting(true);
|
|
14231
|
-
try {
|
|
14232
|
-
var _payments$Payments8, _payments$Payments8$, _payments$Payments9, _payments$Payments9$;
|
|
14233
|
-
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
14234
|
-
consumerCodes: consumerCode
|
|
14235
|
-
});
|
|
14236
|
-
let response = {
|
|
14237
|
-
filestoreIds: [payments === null || payments === void 0 ? void 0 : (_payments$Payments8 = payments.Payments) === null || _payments$Payments8 === void 0 ? void 0 : (_payments$Payments8$ = _payments$Payments8[0]) === null || _payments$Payments8$ === void 0 ? void 0 : _payments$Payments8$.fileStoreId]
|
|
14238
|
-
};
|
|
14239
|
-
if (!(payments !== null && payments !== void 0 && (_payments$Payments9 = payments.Payments) !== null && _payments$Payments9 !== void 0 && (_payments$Payments9$ = _payments$Payments9[0]) !== null && _payments$Payments9$ !== void 0 && _payments$Payments9$.fileStoreId)) {
|
|
14240
|
-
response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
14241
|
-
Payments: payments.Payments
|
|
14242
|
-
}, generatePdfKey || "consolidatedreceipt");
|
|
14243
|
-
}
|
|
14244
|
-
const fileStore = await Digit.PaymentService.printReciept(tenantId, {
|
|
14245
|
-
fileStoreIds: response.filestoreIds[0]
|
|
14246
|
-
});
|
|
14247
|
-
window.open(fileStore[response.filestoreIds[0]], "_blank");
|
|
14248
|
-
} finally {
|
|
14249
|
-
setPrinting(false);
|
|
14250
|
-
}
|
|
14251
|
-
};
|
|
14252
|
-
const printRLReceipt = async () => {
|
|
14253
|
-
if (printing) return;
|
|
14254
|
-
setPrinting(true);
|
|
14255
|
-
try {
|
|
14256
|
-
var _applicationDetails$B3, _applicationDetails$B4;
|
|
14257
|
-
const applicationDetails = await Digit.RentAndLeaseService.search({
|
|
14258
|
-
tenantId,
|
|
14259
|
-
filters: {
|
|
14260
|
-
applicationNumbers: consumerCode
|
|
14261
|
-
}
|
|
14262
|
-
});
|
|
14263
|
-
let application = applicationDetails;
|
|
14264
|
-
let fileStoreId = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$B3 = applicationDetails.BookingApplication) === null || _applicationDetails$B3 === void 0 ? void 0 : (_applicationDetails$B4 = _applicationDetails$B3[0]) === null || _applicationDetails$B4 === void 0 ? void 0 : _applicationDetails$B4.paymentReceiptFilestoreId;
|
|
14265
|
-
if (!fileStoreId) {
|
|
14266
|
-
var _payments$Payments0;
|
|
14267
|
-
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
14268
|
-
receiptNumbers: receiptNumber
|
|
14269
|
-
});
|
|
14270
|
-
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
14271
|
-
Payments: [{
|
|
14272
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments0 = payments.Payments) === null || _payments$Payments0 === void 0 ? void 0 : _payments$Payments0[0]) || {}),
|
|
14273
|
-
...application
|
|
14274
|
-
}]
|
|
14275
|
-
}, "rentandlease-receipt");
|
|
14276
|
-
fileStoreId = response === null || response === void 0 ? void 0 : response.filestoreIds[0];
|
|
14277
|
-
}
|
|
14278
|
-
const fileStore = await Digit.PaymentService.printReciept(tenantId, {
|
|
14279
|
-
fileStoreIds: fileStoreId
|
|
14280
|
-
});
|
|
14281
|
-
window.open(fileStore[fileStoreId], "_blank");
|
|
14282
|
-
} finally {
|
|
14283
|
-
setPrinting(false);
|
|
14284
|
-
}
|
|
14285
|
-
};
|
|
14286
14238
|
const svCertificate = async () => {
|
|
14287
14239
|
const state = tenantId;
|
|
14288
14240
|
const applicationDetails = await Digit.SVService.search({
|
|
@@ -14708,7 +14660,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
14708
14660
|
display: "flex",
|
|
14709
14661
|
justifyContent: "space-evenly"
|
|
14710
14662
|
}
|
|
14711
|
-
}, businessService !== "chb-services" && businessService !== "adv-services" && businessService !== "pet-services" && businessService !== "NDC" && businessService !== "Challan_Generation" &&
|
|
14663
|
+
}, businessService !== "chb-services" && businessService !== "adv-services" && businessService !== "pet-services" && businessService !== "NDC" && businessService !== "Challan_Generation" && /*#__PURE__*/React.createElement("div", {
|
|
14712
14664
|
className: "primary-label-btn d-grid",
|
|
14713
14665
|
style: {
|
|
14714
14666
|
marginLeft: "unset",
|
|
@@ -14886,50 +14838,6 @@ const SuccessfulPayment$1 = props => {
|
|
|
14886
14838
|
fill: "none"
|
|
14887
14839
|
}), /*#__PURE__*/React.createElement("path", {
|
|
14888
14840
|
d: "M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"
|
|
14889
|
-
})), t("CHB_FEE_RECEIPT")))) : null, isMCollectService ? /*#__PURE__*/React.createElement("div", {
|
|
14890
|
-
style: {
|
|
14891
|
-
display: "flex",
|
|
14892
|
-
justifyContent: "flex-end",
|
|
14893
|
-
gap: "20px",
|
|
14894
|
-
marginRight: "20px",
|
|
14895
|
-
marginTop: "15px",
|
|
14896
|
-
marginBottom: "15px"
|
|
14897
|
-
}
|
|
14898
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
14899
|
-
className: "primary-label-btn d-grid",
|
|
14900
|
-
onClick: printing ? undefined : printMCollectReceipt
|
|
14901
|
-
}, printing ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("svg", {
|
|
14902
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
14903
|
-
height: "24",
|
|
14904
|
-
viewBox: "0 0 24 24",
|
|
14905
|
-
width: "24"
|
|
14906
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
14907
|
-
d: "M0 0h24v24H0z",
|
|
14908
|
-
fill: "none"
|
|
14909
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
14910
|
-
d: "M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"
|
|
14911
|
-
})), t("CS_COMMON_PRINT_RECEIPT")))) : null, businessService == "rl-services" ? /*#__PURE__*/React.createElement("div", {
|
|
14912
|
-
style: {
|
|
14913
|
-
display: "flex",
|
|
14914
|
-
justifyContent: "flex-end",
|
|
14915
|
-
gap: "20px",
|
|
14916
|
-
marginRight: "20px",
|
|
14917
|
-
marginTop: "15px",
|
|
14918
|
-
marginBottom: "15px"
|
|
14919
|
-
}
|
|
14920
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
14921
|
-
className: "primary-label-btn d-grid",
|
|
14922
|
-
onClick: printing ? undefined : printRLReceipt
|
|
14923
|
-
}, printing ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("svg", {
|
|
14924
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
14925
|
-
height: "24",
|
|
14926
|
-
viewBox: "0 0 24 24",
|
|
14927
|
-
width: "24"
|
|
14928
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
14929
|
-
d: "M0 0h24v24H0z",
|
|
14930
|
-
fill: "none"
|
|
14931
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
14932
|
-
d: "M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"
|
|
14933
14841
|
})), t("CHB_FEE_RECEIPT")))) : null, businessService == "Challan_Generation" ? /*#__PURE__*/React.createElement("div", {
|
|
14934
14842
|
style: {
|
|
14935
14843
|
display: "flex",
|
|
@@ -15266,6 +15174,7 @@ const EmployeePayment = ({
|
|
|
15266
15174
|
setLink
|
|
15267
15175
|
};
|
|
15268
15176
|
const isFsm = ((_location = location) === null || _location === void 0 ? void 0 : (_location$pathname = _location.pathname) === null || _location$pathname === void 0 ? void 0 : _location$pathname.includes("fsm")) || ((_location2 = location) === null || _location2 === void 0 ? void 0 : (_location2$pathname = _location2.pathname) === null || _location2$pathname === void 0 ? void 0 : _location2$pathname.includes("FSM"));
|
|
15177
|
+
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
15269
15178
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("p", {
|
|
15270
15179
|
className: "breadcrumb",
|
|
15271
15180
|
style: {
|