@mseva/digit-ui-module-common 1.1.88-dev.1.24 → 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.
@@ -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("LAYOUT")) {
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")) {
@@ -7489,6 +7484,7 @@ const WrapPaymentComponent = props => {
7489
7484
  } else {
7490
7485
  updatedpayments = {
7491
7486
  ...paymentData,
7487
+ BPA: [bpaData === null || bpaData === void 0 ? void 0 : bpaData[0]],
7492
7488
  additionalDetails: {
7493
7489
  ...paymentData.additionalDetails,
7494
7490
  designation: designation,
@@ -7508,7 +7504,6 @@ const WrapPaymentComponent = props => {
7508
7504
  }]
7509
7505
  }, generatePdfKey);
7510
7506
  } else {
7511
- console.log('this else triggered');
7512
7507
  response = await Digit.PaymentService.generatePdf(tenantId, {
7513
7508
  Payments: [{
7514
7509
  ...paymentData,
@@ -7534,7 +7529,6 @@ const WrapPaymentComponent = props => {
7534
7529
  const blob = await res.blob();
7535
7530
  downloadPdf(blob, `receipt_${receiptNumber || "obpas_noc"}.pdf`);
7536
7531
  } catch (err) {
7537
- console.log(err, "error in receipt download");
7538
7532
  window.open(downloadUrl, "_blank");
7539
7533
  }
7540
7534
  } else {
@@ -8257,7 +8251,27 @@ const WrapPaymentComponent = props => {
8257
8251
  month: "2-digit",
8258
8252
  year: "numeric"
8259
8253
  })
8260
- })), business_service == "sv-services" ? /*#__PURE__*/React.createElement("div", {
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", {
8261
8275
  className: "primary-label-btn d-grid",
8262
8276
  style: {
8263
8277
  marginLeft: "unset",
@@ -8587,7 +8601,7 @@ const CitizenPayment = ({
8587
8601
  const isResponse = window.location.href.includes("/response");
8588
8602
  const isMobile = window.Digit.Utils.browser.isMobile();
8589
8603
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
8590
- className: "card"
8604
+ className: "bills-citizen-wrapper"
8591
8605
  }, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, !isResponse ? /*#__PURE__*/React.createElement("div", {
8592
8606
  style: window.location.href.includes("application-overview") || isMobile ? {
8593
8607
  marginLeft: "10px"
@@ -11274,7 +11288,6 @@ const BillDetails$1 = ({
11274
11288
  })));
11275
11289
  };
11276
11290
  const isTL = businessService === "TL";
11277
- console.log("billDetails==||||", billDetails);
11278
11291
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StatusTable, null, !checkFSM && bill && config.details.map((obj, index) => {
11279
11292
  const value = obj.keyPath.reduce((acc, key) => {
11280
11293
  if (typeof key === "function") acc = key(acc);else acc = acc[key];
@@ -13804,7 +13817,6 @@ const SuccessfulPayment$1 = props => {
13804
13817
  receiptNumber,
13805
13818
  businessService
13806
13819
  } = useParams();
13807
- 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"));
13808
13820
  console.log("checkParam", checkParam);
13809
13821
  console.log("egPgTxnId", egPgTxnId);
13810
13822
  console.log("businessService", businessService);
@@ -13901,7 +13913,7 @@ const SuccessfulPayment$1 = props => {
13901
13913
  } = Digit.Hooks.useCommonMDMS(tenantId, "common-masters", "ReceiptKey", {
13902
13914
  select: data => {
13903
13915
  var _data$commonMasters, _data$commonMasters$u, _data$commonMasters$u2;
13904
- 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(({
13905
13917
  code
13906
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";
13907
13919
  }
@@ -13953,7 +13965,6 @@ const SuccessfulPayment$1 = props => {
13953
13965
  ...applicationDetails,
13954
13966
  ...challanEmpData
13955
13967
  };
13956
- console.log("applicationDetails", applicationDetails);
13957
13968
  let application = challan;
13958
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;
13959
13970
  if (!fileStoreId) {
@@ -14224,64 +14235,6 @@ const SuccessfulPayment$1 = props => {
14224
14235
  setPrinting(false);
14225
14236
  }
14226
14237
  };
14227
- const printMCollectReceipt = async () => {
14228
- if (printing) return;
14229
- setPrinting(true);
14230
- try {
14231
- var _payments$Payments8, _payments$Payments8$, _payments$Payments9, _payments$Payments9$;
14232
- const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
14233
- consumerCodes: consumerCode
14234
- });
14235
- let response = {
14236
- 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]
14237
- };
14238
- 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)) {
14239
- response = await Digit.PaymentService.generatePdf(tenantId, {
14240
- Payments: payments.Payments
14241
- }, generatePdfKey || "consolidatedreceipt");
14242
- }
14243
- const fileStore = await Digit.PaymentService.printReciept(tenantId, {
14244
- fileStoreIds: response.filestoreIds[0]
14245
- });
14246
- window.open(fileStore[response.filestoreIds[0]], "_blank");
14247
- } finally {
14248
- setPrinting(false);
14249
- }
14250
- };
14251
- const printRLReceipt = async () => {
14252
- if (printing) return;
14253
- setPrinting(true);
14254
- try {
14255
- var _applicationDetails$B3, _applicationDetails$B4;
14256
- const applicationDetails = await Digit.RentAndLeaseService.search({
14257
- tenantId,
14258
- filters: {
14259
- applicationNumbers: consumerCode
14260
- }
14261
- });
14262
- let application = applicationDetails;
14263
- 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;
14264
- if (!fileStoreId) {
14265
- var _payments$Payments0;
14266
- const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
14267
- receiptNumbers: receiptNumber
14268
- });
14269
- let response = await Digit.PaymentService.generatePdf(tenantId, {
14270
- Payments: [{
14271
- ...((payments === null || payments === void 0 ? void 0 : (_payments$Payments0 = payments.Payments) === null || _payments$Payments0 === void 0 ? void 0 : _payments$Payments0[0]) || {}),
14272
- ...application
14273
- }]
14274
- }, "rentandlease-receipt");
14275
- fileStoreId = response === null || response === void 0 ? void 0 : response.filestoreIds[0];
14276
- }
14277
- const fileStore = await Digit.PaymentService.printReciept(tenantId, {
14278
- fileStoreIds: fileStoreId
14279
- });
14280
- window.open(fileStore[fileStoreId], "_blank");
14281
- } finally {
14282
- setPrinting(false);
14283
- }
14284
- };
14285
14238
  const svCertificate = async () => {
14286
14239
  const state = tenantId;
14287
14240
  const applicationDetails = await Digit.SVService.search({
@@ -14707,7 +14660,7 @@ const SuccessfulPayment$1 = props => {
14707
14660
  display: "flex",
14708
14661
  justifyContent: "space-evenly"
14709
14662
  }
14710
- }, businessService !== "chb-services" && businessService !== "adv-services" && businessService !== "pet-services" && businessService !== "NDC" && businessService !== "Challan_Generation" && businessService !== "rl-services" && !isMCollectService && /*#__PURE__*/React.createElement("div", {
14663
+ }, businessService !== "chb-services" && businessService !== "adv-services" && businessService !== "pet-services" && businessService !== "NDC" && businessService !== "Challan_Generation" && /*#__PURE__*/React.createElement("div", {
14711
14664
  className: "primary-label-btn d-grid",
14712
14665
  style: {
14713
14666
  marginLeft: "unset",
@@ -14885,50 +14838,6 @@ const SuccessfulPayment$1 = props => {
14885
14838
  fill: "none"
14886
14839
  }), /*#__PURE__*/React.createElement("path", {
14887
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"
14888
- })), t("CHB_FEE_RECEIPT")))) : null, isMCollectService ? /*#__PURE__*/React.createElement("div", {
14889
- style: {
14890
- display: "flex",
14891
- justifyContent: "flex-end",
14892
- gap: "20px",
14893
- marginRight: "20px",
14894
- marginTop: "15px",
14895
- marginBottom: "15px"
14896
- }
14897
- }, /*#__PURE__*/React.createElement("div", {
14898
- className: "primary-label-btn d-grid",
14899
- onClick: printing ? undefined : printMCollectReceipt
14900
- }, printing ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("svg", {
14901
- xmlns: "http://www.w3.org/2000/svg",
14902
- height: "24",
14903
- viewBox: "0 0 24 24",
14904
- width: "24"
14905
- }, /*#__PURE__*/React.createElement("path", {
14906
- d: "M0 0h24v24H0z",
14907
- fill: "none"
14908
- }), /*#__PURE__*/React.createElement("path", {
14909
- 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"
14910
- })), t("CS_COMMON_PRINT_RECEIPT")))) : null, businessService == "rl-services" ? /*#__PURE__*/React.createElement("div", {
14911
- style: {
14912
- display: "flex",
14913
- justifyContent: "flex-end",
14914
- gap: "20px",
14915
- marginRight: "20px",
14916
- marginTop: "15px",
14917
- marginBottom: "15px"
14918
- }
14919
- }, /*#__PURE__*/React.createElement("div", {
14920
- className: "primary-label-btn d-grid",
14921
- onClick: printing ? undefined : printRLReceipt
14922
- }, printing ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("svg", {
14923
- xmlns: "http://www.w3.org/2000/svg",
14924
- height: "24",
14925
- viewBox: "0 0 24 24",
14926
- width: "24"
14927
- }, /*#__PURE__*/React.createElement("path", {
14928
- d: "M0 0h24v24H0z",
14929
- fill: "none"
14930
- }), /*#__PURE__*/React.createElement("path", {
14931
- 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"
14932
14841
  })), t("CHB_FEE_RECEIPT")))) : null, businessService == "Challan_Generation" ? /*#__PURE__*/React.createElement("div", {
14933
14842
  style: {
14934
14843
  display: "flex",
@@ -15265,6 +15174,7 @@ const EmployeePayment = ({
15265
15174
  setLink
15266
15175
  };
15267
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();
15268
15178
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("p", {
15269
15179
  className: "breadcrumb",
15270
15180
  style: {