@mseva/digit-ui-module-common 1.0.11 → 1.0.13

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 CHANGED
@@ -1424,10 +1424,72 @@ const WrapPaymentComponent = props => {
1424
1424
  return Promise.reject(e);
1425
1425
  }
1426
1426
  };
1427
+ const svCertificate = function () {
1428
+ try {
1429
+ const state = tenantId;
1430
+ return Promise.resolve(Digit.SVService.search({
1431
+ tenantId,
1432
+ filters: {
1433
+ applicationNumber: consumerCode,
1434
+ isDraftApplication: false
1435
+ }
1436
+ })).then(function (applicationDetails) {
1437
+ const generatePdfKeyForTL = "svcertificate";
1438
+ const _temp2 = function () {
1439
+ if (applicationDetails) {
1440
+ var _applicationDetails$S;
1441
+ return Promise.resolve(Digit.PaymentService.generatePdf(state, {
1442
+ SVDetail: [applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$S = applicationDetails.SVDetail) === null || _applicationDetails$S === void 0 ? void 0 : _applicationDetails$S[0]]
1443
+ }, generatePdfKeyForTL)).then(function (response) {
1444
+ return Promise.resolve(Digit.PaymentService.printReciept(state, {
1445
+ fileStoreIds: response.filestoreIds[0]
1446
+ })).then(function (fileStore) {
1447
+ window.open(fileStore[response.filestoreIds[0]], "_blank");
1448
+ });
1449
+ });
1450
+ }
1451
+ }();
1452
+ if (_temp2 && _temp2.then) return _temp2.then(function () {});
1453
+ });
1454
+ } catch (e) {
1455
+ return Promise.reject(e);
1456
+ }
1457
+ };
1458
+ const svIdCard = function () {
1459
+ try {
1460
+ const state = tenantId;
1461
+ return Promise.resolve(Digit.SVService.search({
1462
+ tenantId,
1463
+ filters: {
1464
+ applicationNumber: consumerCode,
1465
+ isDraftApplication: false
1466
+ }
1467
+ })).then(function (applicationDetails) {
1468
+ const generatePdfKeyForTL = "svidentitycard";
1469
+ const _temp3 = function () {
1470
+ if (applicationDetails) {
1471
+ var _applicationDetails$S2;
1472
+ return Promise.resolve(Digit.PaymentService.generatePdf(state, {
1473
+ SVDetail: [applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$S2 = applicationDetails.SVDetail) === null || _applicationDetails$S2 === void 0 ? void 0 : _applicationDetails$S2[0]]
1474
+ }, generatePdfKeyForTL)).then(function (response) {
1475
+ return Promise.resolve(Digit.PaymentService.printReciept(state, {
1476
+ fileStoreIds: response.filestoreIds[0]
1477
+ })).then(function (fileStore) {
1478
+ window.open(fileStore[response.filestoreIds[0]], "_blank");
1479
+ });
1480
+ });
1481
+ }
1482
+ }();
1483
+ if (_temp3 && _temp3.then) return _temp3.then(function () {});
1484
+ });
1485
+ } catch (e) {
1486
+ return Promise.reject(e);
1487
+ }
1488
+ };
1427
1489
  const printReciept = function () {
1428
1490
  try {
1429
1491
  var _payments$Payments$;
1430
- function _temp6() {
1492
+ function _temp8() {
1431
1493
  return Promise.resolve(Digit.PaymentService.printReciept(state, {
1432
1494
  fileStoreIds: response.filestoreIds[0]
1433
1495
  })).then(function (fileStore) {
@@ -1446,13 +1508,13 @@ const WrapPaymentComponent = props => {
1446
1508
  let response = {
1447
1509
  filestoreIds: [(_payments$Payments$ = payments.Payments[0]) === null || _payments$Payments$ === void 0 ? void 0 : _payments$Payments$.fileStoreId]
1448
1510
  };
1449
- const _temp5 = function () {
1511
+ const _temp7 = function () {
1450
1512
  if (!(paymentData !== null && paymentData !== void 0 && paymentData.fileStoreId)) {
1451
1513
  let assessmentYear = "",
1452
1514
  assessmentYearForReceipt = "";
1453
1515
  let count = 0;
1454
1516
  let toDate, fromDate;
1455
- const _temp4 = function () {
1517
+ const _temp6 = function () {
1456
1518
  if (payments.Payments[0].paymentDetails[0].businessService == "PT") {
1457
1519
  payments.Payments[0].paymentDetails[0].bill.billDetails.map(element => {
1458
1520
  if (element.amount > 0 || element.amountPaid > 0) {
@@ -1470,8 +1532,8 @@ const WrapPaymentComponent = props => {
1470
1532
  assessmentYearForReceipt = fromDate + "-" + toDate;
1471
1533
  }
1472
1534
  const details = {
1473
- "assessmentYears": assessmentYear,
1474
- "arrearCode": ""
1535
+ assessmentYears: assessmentYear,
1536
+ arrearCode: ""
1475
1537
  };
1476
1538
  payments.Payments[0].paymentDetails[0].additionalDetails = details;
1477
1539
  printRecieptNew(payments);
@@ -1479,13 +1541,13 @@ const WrapPaymentComponent = props => {
1479
1541
  let details;
1480
1542
  if (payments.Payments[0].paymentDetails[0].businessService == "BPAREG") {
1481
1543
  details = _extends({}, payments.Payments[0].additionalDetails, {
1482
- "stakeholderType": "Application"
1544
+ stakeholderType: "Application"
1483
1545
  });
1484
1546
  }
1485
1547
  payments.Payments[0].additionalDetails = details;
1486
1548
  paymentArray[0] = payments.Payments[0];
1487
1549
  console.log("generatedpdfkey", generatePdfKey);
1488
- const _temp3 = function () {
1550
+ const _temp5 = function () {
1489
1551
  if (business_service == "WS" || business_service == "SW") {
1490
1552
  return Promise.resolve(Digit.PaymentService.generatePdf(state, {
1491
1553
  Payments: [_extends({}, paymentData)]
@@ -1493,7 +1555,7 @@ const WrapPaymentComponent = props => {
1493
1555
  response = _Digit$PaymentService;
1494
1556
  });
1495
1557
  } else {
1496
- const _temp2 = function () {
1558
+ const _temp4 = function () {
1497
1559
  if (paymentData.paymentDetails[0].businessService.includes("BPA")) {
1498
1560
  const designation = ulbType === "Municipal Corporation" ? "Municipal Commissioner" : "Executive Officer";
1499
1561
  const updatedpayments = _extends({}, paymentData, {
@@ -1515,16 +1577,16 @@ const WrapPaymentComponent = props => {
1515
1577
  });
1516
1578
  }
1517
1579
  }();
1518
- if (_temp2 && _temp2.then) return _temp2.then(function () {});
1580
+ if (_temp4 && _temp4.then) return _temp4.then(function () {});
1519
1581
  }
1520
1582
  }();
1521
- if (_temp3 && _temp3.then) return _temp3.then(function () {});
1583
+ if (_temp5 && _temp5.then) return _temp5.then(function () {});
1522
1584
  }
1523
1585
  }();
1524
- if (_temp4 && _temp4.then) return _temp4.then(function () {});
1586
+ if (_temp6 && _temp6.then) return _temp6.then(function () {});
1525
1587
  }
1526
1588
  }();
1527
- return Promise.resolve(_temp5 && _temp5.then ? _temp5.then(_temp6) : _temp6(_temp5));
1589
+ return Promise.resolve(_temp7 && _temp7.then ? _temp7.then(_temp8) : _temp8(_temp7));
1528
1590
  } catch (e) {
1529
1591
  return Promise.reject(e);
1530
1592
  }
@@ -1694,7 +1756,7 @@ const WrapPaymentComponent = props => {
1694
1756
  receiptNumbers: payment.Payments[0].paymentDetails[0].receiptNumber
1695
1757
  })).then(function (payments) {
1696
1758
  var _payments$Payments$2;
1697
- function _temp8() {
1759
+ function _temp0() {
1698
1760
  return Promise.resolve(Digit.PaymentService.printReciept(state, {
1699
1761
  fileStoreIds: response.filestoreIds[0]
1700
1762
  })).then(function (fileStore) {
@@ -1704,7 +1766,7 @@ const WrapPaymentComponent = props => {
1704
1766
  let response = {
1705
1767
  filestoreIds: [(_payments$Payments$2 = payments.Payments[0]) === null || _payments$Payments$2 === void 0 ? void 0 : _payments$Payments$2.fileStoreId]
1706
1768
  };
1707
- const _temp7 = function () {
1769
+ const _temp9 = function () {
1708
1770
  if (true) {
1709
1771
  let assessmentYear = "",
1710
1772
  assessmentYearForReceipt = "";
@@ -1784,34 +1846,34 @@ const WrapPaymentComponent = props => {
1784
1846
  totalT = totalT + ele.amount;
1785
1847
  });
1786
1848
  arrearRow = {
1787
- "year": assessmentYearForReceipt,
1788
- "tax": tax,
1789
- "firecess": firecess,
1790
- "cancercess": cancercess,
1791
- "penalty": penalty,
1792
- "rebate": rebate,
1793
- "interest": interest,
1794
- "usage_exemption": usage_exemption,
1795
- "special_category_exemption": special_category_exemption,
1796
- "adhoc_penalty": adhoc_penalty,
1797
- "adhoc_rebate": adhoc_rebate,
1798
- "roundoff": roundoff,
1799
- "total": element.amountPaid
1849
+ year: assessmentYearForReceipt,
1850
+ tax: tax,
1851
+ firecess: firecess,
1852
+ cancercess: cancercess,
1853
+ penalty: penalty,
1854
+ rebate: rebate,
1855
+ interest: interest,
1856
+ usage_exemption: usage_exemption,
1857
+ special_category_exemption: special_category_exemption,
1858
+ adhoc_penalty: adhoc_penalty,
1859
+ adhoc_rebate: adhoc_rebate,
1860
+ roundoff: roundoff,
1861
+ total: element.amountPaid
1800
1862
  };
1801
1863
  taxRow = {
1802
- "year": assessmentYearForReceipt,
1803
- "tax": taxT,
1804
- "firecess": firecessT,
1805
- "cancercess": cancercessT,
1806
- "penalty": penaltyT,
1807
- "rebate": rebateT,
1808
- "interest": interestT,
1809
- "usage_exemption": usage_exemptionT,
1810
- "special_category_exemption": special_category_exemptionT,
1811
- "adhoc_penalty": adhoc_penaltyT,
1812
- "adhoc_rebate": adhoc_rebateT,
1813
- "roundoff": roundoffT,
1814
- "total": element.amount
1864
+ year: assessmentYearForReceipt,
1865
+ tax: taxT,
1866
+ firecess: firecessT,
1867
+ cancercess: cancercessT,
1868
+ penalty: penaltyT,
1869
+ rebate: rebateT,
1870
+ interest: interestT,
1871
+ usage_exemption: usage_exemptionT,
1872
+ special_category_exemption: special_category_exemptionT,
1873
+ adhoc_penalty: adhoc_penaltyT,
1874
+ adhoc_rebate: adhoc_rebateT,
1875
+ roundoff: roundoffT,
1876
+ total: element.amount
1815
1877
  };
1816
1878
  arrearArray.push(arrearRow);
1817
1879
  taxArray.push(taxRow);
@@ -1861,41 +1923,41 @@ const WrapPaymentComponent = props => {
1861
1923
  totalT = totalT + ele.amount;
1862
1924
  });
1863
1925
  arrearRow = {
1864
- "year": assessmentYearForReceipt,
1865
- "tax": tax,
1866
- "firecess": firecess,
1867
- "cancercess": cancercess,
1868
- "penalty": penalty,
1869
- "interest": interest,
1870
- "usage_exemption": usage_exemption,
1871
- "special_category_exemption": special_category_exemption,
1872
- "adhoc_penalty": adhoc_penalty,
1873
- "adhoc_rebate": adhoc_rebate,
1874
- "roundoff": roundoff,
1875
- "total": payments.Payments[0].paymentDetails[0].bill.billDetails[0].amountPaid
1926
+ year: assessmentYearForReceipt,
1927
+ tax: tax,
1928
+ firecess: firecess,
1929
+ cancercess: cancercess,
1930
+ penalty: penalty,
1931
+ interest: interest,
1932
+ usage_exemption: usage_exemption,
1933
+ special_category_exemption: special_category_exemption,
1934
+ adhoc_penalty: adhoc_penalty,
1935
+ adhoc_rebate: adhoc_rebate,
1936
+ roundoff: roundoff,
1937
+ total: payments.Payments[0].paymentDetails[0].bill.billDetails[0].amountPaid
1876
1938
  };
1877
1939
  taxRow = {
1878
- "year": assessmentYearForReceipt,
1879
- "tax": taxT,
1880
- "firecess": firecessT,
1881
- "cancercess": cancercessT,
1882
- "penalty": penaltyT,
1883
- "rebate": rebateT,
1884
- "interest": interestT,
1885
- "usage_exemption": usage_exemptionT,
1886
- "special_category_exemption": special_category_exemptionT,
1887
- "adhoc_penalty": adhoc_penaltyT,
1888
- "adhoc_rebate": adhoc_rebateT,
1889
- "roundoff": roundoffT,
1890
- "total": payments.Payments[0].paymentDetails[0].bill.billDetails[0].amount
1940
+ year: assessmentYearForReceipt,
1941
+ tax: taxT,
1942
+ firecess: firecessT,
1943
+ cancercess: cancercessT,
1944
+ penalty: penaltyT,
1945
+ rebate: rebateT,
1946
+ interest: interestT,
1947
+ usage_exemption: usage_exemptionT,
1948
+ special_category_exemption: special_category_exemptionT,
1949
+ adhoc_penalty: adhoc_penaltyT,
1950
+ adhoc_rebate: adhoc_rebateT,
1951
+ roundoff: roundoffT,
1952
+ total: payments.Payments[0].paymentDetails[0].bill.billDetails[0].amount
1891
1953
  };
1892
1954
  arrearArray.push(arrearRow);
1893
1955
  taxArray.push(taxRow);
1894
1956
  }
1895
1957
  const details = {
1896
- "assessmentYears": assessmentYear,
1897
- "arrearArray": arrearArray,
1898
- "taxArray": taxArray
1958
+ assessmentYears: assessmentYear,
1959
+ arrearArray: arrearArray,
1960
+ taxArray: taxArray
1899
1961
  };
1900
1962
  payments.Payments[0].paymentDetails[0].additionalDetails = details;
1901
1963
  }
@@ -1909,7 +1971,7 @@ const WrapPaymentComponent = props => {
1909
1971
  });
1910
1972
  }
1911
1973
  }();
1912
- return _temp7 && _temp7.then ? _temp7.then(_temp8) : _temp8(_temp7);
1974
+ return _temp9 && _temp9.then ? _temp9.then(_temp0) : _temp0(_temp9);
1913
1975
  });
1914
1976
  } catch (e) {
1915
1977
  return Promise.reject(e);
@@ -2005,7 +2067,74 @@ const WrapPaymentComponent = props => {
2005
2067
  fill: "none"
2006
2068
  }), /*#__PURE__*/React__default.createElement("path", {
2007
2069
  d: "M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"
2008
- })), t("TL_CERTIFICATE")) : null, business_service == "pet-services" ? /*#__PURE__*/React__default.createElement("div", {
2070
+ })), t("TL_CERTIFICATE")) : null, business_service == "sv-services" ? /*#__PURE__*/React__default.createElement("div", {
2071
+ className: "primary-label-btn d-grid",
2072
+ style: {
2073
+ marginLeft: "unset",
2074
+ marginRight: "20px",
2075
+ marginTop: "15px",
2076
+ marginBottom: "15px"
2077
+ },
2078
+ onClick: printReciept
2079
+ }, /*#__PURE__*/React__default.createElement("svg", {
2080
+ xmlns: "http://www.w3.org/2000/svg",
2081
+ height: "24px",
2082
+ viewBox: "0 0 24 24",
2083
+ width: "24px",
2084
+ fill: "#a82227"
2085
+ }, /*#__PURE__*/React__default.createElement("path", {
2086
+ d: "M0 0h24v24H0V0z",
2087
+ fill: "none"
2088
+ }), /*#__PURE__*/React__default.createElement("path", {
2089
+ d: "M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"
2090
+ })), t("SV_FEE_RECIEPT")) : null, business_service == "sv-services" ? /*#__PURE__*/React__default.createElement("div", {
2091
+ className: "primary-label-btn d-grid",
2092
+ style: {
2093
+ marginLeft: "unset",
2094
+ marginRight: "20px",
2095
+ marginTop: "15px",
2096
+ marginBottom: "15px"
2097
+ },
2098
+ onClick: svCertificate
2099
+ }, /*#__PURE__*/React__default.createElement("svg", {
2100
+ xmlns: "http://www.w3.org/2000/svg",
2101
+ height: "24px",
2102
+ viewBox: "0 0 24 24",
2103
+ width: "24px",
2104
+ fill: "#a82227"
2105
+ }, /*#__PURE__*/React__default.createElement("path", {
2106
+ d: "M0 0h24v24H0V0z",
2107
+ fill: "none"
2108
+ }), /*#__PURE__*/React__default.createElement("path", {
2109
+ d: "M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"
2110
+ })), t("SV_CERTIFICATE")) : null, business_service == "sv-services" ? /*#__PURE__*/React__default.createElement("div", {
2111
+ className: "primary-label-btn d-grid",
2112
+ style: {
2113
+ marginLeft: "unset",
2114
+ marginRight: "20px",
2115
+ marginTop: "15px",
2116
+ marginBottom: "15px"
2117
+ },
2118
+ onClick: svIdCard
2119
+ }, /*#__PURE__*/React__default.createElement("svg", {
2120
+ xmlns: "http://www.w3.org/2000/svg",
2121
+ height: "24px",
2122
+ viewBox: "0 0 24 24",
2123
+ width: "24px",
2124
+ fill: "#a82227"
2125
+ }, /*#__PURE__*/React__default.createElement("path", {
2126
+ d: "M0 0h24v24H0V0z",
2127
+ fill: "none"
2128
+ }), /*#__PURE__*/React__default.createElement("path", {
2129
+ d: "M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"
2130
+ })), t("SV_ID_CARD")) : null, business_service == "sv-services" && /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
2131
+ to: "/digit-ui/citizen"
2132
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
2133
+ label: t("CORE_COMMON_GO_TO_HOME"),
2134
+ style: {
2135
+ marginTop: "15px"
2136
+ }
2137
+ })), business_service == "pet-services" ? /*#__PURE__*/React__default.createElement("div", {
2009
2138
  className: "primary-label-btn d-grid",
2010
2139
  style: {
2011
2140
  marginLeft: "unset",
@@ -6445,6 +6574,68 @@ const SuccessfulPayment$1 = props => {
6445
6574
  setTimeout(() => URL.revokeObjectURL(link.href), 7000);
6446
6575
  }
6447
6576
  };
6577
+ const svCertificate = function () {
6578
+ try {
6579
+ const state = tenantId;
6580
+ return Promise.resolve(Digit.SVService.search({
6581
+ tenantId,
6582
+ filters: {
6583
+ applicationNumber: consumerCode,
6584
+ isDraftApplication: false
6585
+ }
6586
+ })).then(function (applicationDetails) {
6587
+ const generatePdfKeyForTL = "svcertificate";
6588
+ const _temp3 = function () {
6589
+ if (applicationDetails) {
6590
+ var _applicationDetails$S;
6591
+ return Promise.resolve(Digit.PaymentService.generatePdf(state, {
6592
+ SVDetail: [applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$S = applicationDetails.SVDetail) === null || _applicationDetails$S === void 0 ? void 0 : _applicationDetails$S[0]]
6593
+ }, generatePdfKeyForTL)).then(function (response) {
6594
+ return Promise.resolve(Digit.PaymentService.printReciept(state, {
6595
+ fileStoreIds: response.filestoreIds[0]
6596
+ })).then(function (fileStore) {
6597
+ window.open(fileStore[response.filestoreIds[0]], "_blank");
6598
+ });
6599
+ });
6600
+ }
6601
+ }();
6602
+ if (_temp3 && _temp3.then) return _temp3.then(function () {});
6603
+ });
6604
+ } catch (e) {
6605
+ return Promise.reject(e);
6606
+ }
6607
+ };
6608
+ const svIdCard = function () {
6609
+ try {
6610
+ const state = tenantId;
6611
+ return Promise.resolve(Digit.SVService.search({
6612
+ tenantId,
6613
+ filters: {
6614
+ applicationNumber: consumerCode,
6615
+ isDraftApplication: false
6616
+ }
6617
+ })).then(function (applicationDetails) {
6618
+ const generatePdfKeyForTL = "svidentitycard";
6619
+ const _temp4 = function () {
6620
+ if (applicationDetails) {
6621
+ var _applicationDetails$S2;
6622
+ return Promise.resolve(Digit.PaymentService.generatePdf(state, {
6623
+ SVDetail: [applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$S2 = applicationDetails.SVDetail) === null || _applicationDetails$S2 === void 0 ? void 0 : _applicationDetails$S2[0]]
6624
+ }, generatePdfKeyForTL)).then(function (response) {
6625
+ return Promise.resolve(Digit.PaymentService.printReciept(state, {
6626
+ fileStoreIds: response.filestoreIds[0]
6627
+ })).then(function (fileStore) {
6628
+ window.open(fileStore[response.filestoreIds[0]], "_blank");
6629
+ });
6630
+ });
6631
+ }
6632
+ }();
6633
+ if (_temp4 && _temp4.then) return _temp4.then(function () {});
6634
+ });
6635
+ } catch (e) {
6636
+ return Promise.reject(e);
6637
+ }
6638
+ };
6448
6639
  const printPdf = blob => {
6449
6640
  const fileURL = URL.createObjectURL(blob);
6450
6641
  var myWindow = window.open(fileURL);
@@ -6487,7 +6678,7 @@ const SuccessfulPayment$1 = props => {
6487
6678
  for (let i = 0; i < (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.processInstances) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.length); i++) {
6488
6679
  var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11;
6489
6680
  const newDate = new Date(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.processInstances[i]) === null || _workflowDetails$data4 === void 0 ? void 0 : (_workflowDetails$data5 = _workflowDetails$data4.auditDetails) === null || _workflowDetails$data5 === void 0 ? void 0 : _workflowDetails$data5.createdTime);
6490
- const formattedDate = format(newDate, 'dd-MM-yyyy HH:mm:ss');
6681
+ const formattedDate = format(newDate, "dd-MM-yyyy HH:mm:ss");
6491
6682
  console.log("formatteddate2", formattedDate);
6492
6683
  if (((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data6 = workflowDetails.data) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6.processInstances[i]) === null || _workflowDetails$data7 === void 0 ? void 0 : _workflowDetails$data7.action) === "POST_PAYMENT_APPLY" || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data8 = workflowDetails.data) === null || _workflowDetails$data8 === void 0 ? void 0 : (_workflowDetails$data9 = _workflowDetails$data8.processInstances[i]) === null || _workflowDetails$data9 === void 0 ? void 0 : _workflowDetails$data9.action) === "PAY") && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data0 = workflowDetails.data) === null || _workflowDetails$data0 === void 0 ? void 0 : (_workflowDetails$data1 = _workflowDetails$data0.processInstances) === null || _workflowDetails$data1 === void 0 ? void 0 : (_workflowDetails$data10 = _workflowDetails$data1[i]) === null || _workflowDetails$data10 === void 0 ? void 0 : (_workflowDetails$data11 = _workflowDetails$data10.state) === null || _workflowDetails$data11 === void 0 ? void 0 : _workflowDetails$data11.applicationStatus) === "APPROVAL_INPROGRESS" && count == 0) {
6493
6684
  var _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14;
@@ -6542,7 +6733,7 @@ const SuccessfulPayment$1 = props => {
6542
6733
  receiptNumbers: receiptNumber
6543
6734
  })).then(function (payments) {
6544
6735
  var _payments$Payments$3;
6545
- function _temp6() {
6736
+ function _temp8() {
6546
6737
  return Promise.resolve(Digit.PaymentService.printReciept(state, {
6547
6738
  fileStoreIds: response.filestoreIds[0]
6548
6739
  })).then(function (fileStore) {
@@ -6552,13 +6743,13 @@ const SuccessfulPayment$1 = props => {
6552
6743
  let response = {
6553
6744
  filestoreIds: [(_payments$Payments$3 = payments.Payments[0]) === null || _payments$Payments$3 === void 0 ? void 0 : _payments$Payments$3.fileStoreId]
6554
6745
  };
6555
- const _temp5 = function (_payments$Payments$4) {
6746
+ const _temp7 = function (_payments$Payments$4) {
6556
6747
  if (!((_payments$Payments$4 = payments.Payments[0]) !== null && _payments$Payments$4 !== void 0 && _payments$Payments$4.fileStoreId)) {
6557
6748
  let assessmentYear = "",
6558
6749
  assessmentYearForReceipt = "";
6559
6750
  let count = 0;
6560
6751
  let toDate, fromDate;
6561
- const _temp4 = function () {
6752
+ const _temp6 = function () {
6562
6753
  if (payments.Payments[0].paymentDetails[0].businessService == "PT") {
6563
6754
  payments.Payments[0].paymentDetails[0].bill.billDetails.map(element => {
6564
6755
  if (element.amount > 0 || element.amountPaid > 0) {
@@ -6576,12 +6767,12 @@ const SuccessfulPayment$1 = props => {
6576
6767
  assessmentYearForReceipt = fromDate + "-" + toDate;
6577
6768
  }
6578
6769
  const details = {
6579
- "assessmentYears": assessmentYear
6770
+ assessmentYears: assessmentYear
6580
6771
  };
6581
6772
  payments.Payments[0].paymentDetails[0].additionalDetails = details;
6582
6773
  printRecieptNew(payments);
6583
6774
  } else {
6584
- const _temp3 = function () {
6775
+ const _temp5 = function () {
6585
6776
  if (payments.Payments[0].paymentDetails[0].businessService.includes("BPA")) {
6586
6777
  const designation = ulbType === "Municipal Corporation" ? "Municipal Commissioner" : "Executive Officer";
6587
6778
  const updatedpayments = _extends({}, payments, {
@@ -6610,13 +6801,13 @@ const SuccessfulPayment$1 = props => {
6610
6801
  });
6611
6802
  }
6612
6803
  }();
6613
- if (_temp3 && _temp3.then) return _temp3.then(function () {});
6804
+ if (_temp5 && _temp5.then) return _temp5.then(function () {});
6614
6805
  }
6615
6806
  }();
6616
- if (_temp4 && _temp4.then) return _temp4.then(function () {});
6807
+ if (_temp6 && _temp6.then) return _temp6.then(function () {});
6617
6808
  }
6618
6809
  }();
6619
- return _temp5 && _temp5.then ? _temp5.then(_temp6) : _temp6(_temp5);
6810
+ return _temp7 && _temp7.then ? _temp7.then(_temp8) : _temp8(_temp7);
6620
6811
  });
6621
6812
  } catch (e) {
6622
6813
  return Promise.reject(e);
@@ -6641,7 +6832,7 @@ const SuccessfulPayment$1 = props => {
6641
6832
  receiptNumbers: payment.Payments[0].paymentDetails[0].receiptNumber
6642
6833
  })).then(function (payments) {
6643
6834
  var _payments$Payments$5;
6644
- function _temp8() {
6835
+ function _temp0() {
6645
6836
  return Promise.resolve(Digit.PaymentService.printReciept(state, {
6646
6837
  fileStoreIds: response.filestoreIds[0]
6647
6838
  })).then(function (fileStore) {
@@ -6651,7 +6842,7 @@ const SuccessfulPayment$1 = props => {
6651
6842
  let response = {
6652
6843
  filestoreIds: [(_payments$Payments$5 = payments.Payments[0]) === null || _payments$Payments$5 === void 0 ? void 0 : _payments$Payments$5.fileStoreId]
6653
6844
  };
6654
- const _temp7 = function () {
6845
+ const _temp9 = function () {
6655
6846
  if (true) {
6656
6847
  let assessmentYear = "",
6657
6848
  assessmentYearForReceipt = "";
@@ -6731,34 +6922,34 @@ const SuccessfulPayment$1 = props => {
6731
6922
  totalT = totalT + ele.amount;
6732
6923
  });
6733
6924
  arrearRow = {
6734
- "year": assessmentYearForReceipt,
6735
- "tax": tax,
6736
- "firecess": firecess,
6737
- "cancercess": cancercess,
6738
- "penalty": penalty,
6739
- "rebate": rebate,
6740
- "interest": interest,
6741
- "usage_exemption": usage_exemption,
6742
- "special_category_exemption": special_category_exemption,
6743
- "adhoc_penalty": adhoc_penalty,
6744
- "adhoc_rebate": adhoc_rebate,
6745
- "roundoff": roundoff,
6746
- "total": element.amountPaid
6925
+ year: assessmentYearForReceipt,
6926
+ tax: tax,
6927
+ firecess: firecess,
6928
+ cancercess: cancercess,
6929
+ penalty: penalty,
6930
+ rebate: rebate,
6931
+ interest: interest,
6932
+ usage_exemption: usage_exemption,
6933
+ special_category_exemption: special_category_exemption,
6934
+ adhoc_penalty: adhoc_penalty,
6935
+ adhoc_rebate: adhoc_rebate,
6936
+ roundoff: roundoff,
6937
+ total: element.amountPaid
6747
6938
  };
6748
6939
  taxRow = {
6749
- "year": assessmentYearForReceipt,
6750
- "tax": taxT,
6751
- "firecess": firecessT,
6752
- "cancercess": cancercessT,
6753
- "penalty": penaltyT,
6754
- "rebate": rebateT,
6755
- "interest": interestT,
6756
- "usage_exemption": usage_exemptionT,
6757
- "special_category_exemption": special_category_exemptionT,
6758
- "adhoc_penalty": adhoc_penaltyT,
6759
- "adhoc_rebate": adhoc_rebateT,
6760
- "roundoff": roundoffT,
6761
- "total": element.amount
6940
+ year: assessmentYearForReceipt,
6941
+ tax: taxT,
6942
+ firecess: firecessT,
6943
+ cancercess: cancercessT,
6944
+ penalty: penaltyT,
6945
+ rebate: rebateT,
6946
+ interest: interestT,
6947
+ usage_exemption: usage_exemptionT,
6948
+ special_category_exemption: special_category_exemptionT,
6949
+ adhoc_penalty: adhoc_penaltyT,
6950
+ adhoc_rebate: adhoc_rebateT,
6951
+ roundoff: roundoffT,
6952
+ total: element.amount
6762
6953
  };
6763
6954
  arrearArray.push(arrearRow);
6764
6955
  taxArray.push(taxRow);
@@ -6808,41 +6999,41 @@ const SuccessfulPayment$1 = props => {
6808
6999
  totalT = totalT + ele.amount;
6809
7000
  });
6810
7001
  arrearRow = {
6811
- "year": assessmentYearForReceipt,
6812
- "tax": tax,
6813
- "firecess": firecess,
6814
- "cancercess": cancercess,
6815
- "penalty": penalty,
6816
- "interest": interest,
6817
- "usage_exemption": usage_exemption,
6818
- "special_category_exemption": special_category_exemption,
6819
- "adhoc_penalty": adhoc_penalty,
6820
- "adhoc_rebate": adhoc_rebate,
6821
- "roundoff": roundoff,
6822
- "total": payments.Payments[0].paymentDetails[0].bill.billDetails[0].amountPaid
7002
+ year: assessmentYearForReceipt,
7003
+ tax: tax,
7004
+ firecess: firecess,
7005
+ cancercess: cancercess,
7006
+ penalty: penalty,
7007
+ interest: interest,
7008
+ usage_exemption: usage_exemption,
7009
+ special_category_exemption: special_category_exemption,
7010
+ adhoc_penalty: adhoc_penalty,
7011
+ adhoc_rebate: adhoc_rebate,
7012
+ roundoff: roundoff,
7013
+ total: payments.Payments[0].paymentDetails[0].bill.billDetails[0].amountPaid
6823
7014
  };
6824
7015
  taxRow = {
6825
- "year": assessmentYearForReceipt,
6826
- "tax": taxT,
6827
- "firecess": firecessT,
6828
- "cancercess": cancercessT,
6829
- "penalty": penaltyT,
6830
- "rebate": rebateT,
6831
- "interest": interestT,
6832
- "usage_exemption": usage_exemptionT,
6833
- "special_category_exemption": special_category_exemptionT,
6834
- "adhoc_penalty": adhoc_penaltyT,
6835
- "adhoc_rebate": adhoc_rebateT,
6836
- "roundoff": roundoffT,
6837
- "total": payments.Payments[0].paymentDetails[0].bill.billDetails[0].amount
7016
+ year: assessmentYearForReceipt,
7017
+ tax: taxT,
7018
+ firecess: firecessT,
7019
+ cancercess: cancercessT,
7020
+ penalty: penaltyT,
7021
+ rebate: rebateT,
7022
+ interest: interestT,
7023
+ usage_exemption: usage_exemptionT,
7024
+ special_category_exemption: special_category_exemptionT,
7025
+ adhoc_penalty: adhoc_penaltyT,
7026
+ adhoc_rebate: adhoc_rebateT,
7027
+ roundoff: roundoffT,
7028
+ total: payments.Payments[0].paymentDetails[0].bill.billDetails[0].amount
6838
7029
  };
6839
7030
  arrearArray.push(arrearRow);
6840
7031
  taxArray.push(taxRow);
6841
7032
  }
6842
7033
  const details = {
6843
- "assessmentYears": assessmentYear,
6844
- "arrearArray": arrearArray,
6845
- "taxArray": taxArray
7034
+ assessmentYears: assessmentYear,
7035
+ arrearArray: arrearArray,
7036
+ taxArray: taxArray
6846
7037
  };
6847
7038
  payments.Payments[0].paymentDetails[0].additionalDetails = details;
6848
7039
  }
@@ -6856,7 +7047,7 @@ const SuccessfulPayment$1 = props => {
6856
7047
  });
6857
7048
  }
6858
7049
  }();
6859
- return _temp7 && _temp7.then ? _temp7.then(_temp8) : _temp8(_temp7);
7050
+ return _temp9 && _temp9.then ? _temp9.then(_temp0) : _temp0(_temp9);
6860
7051
  });
6861
7052
  } catch (e) {
6862
7053
  return Promise.reject(e);
@@ -6905,7 +7096,74 @@ const SuccessfulPayment$1 = props => {
6905
7096
  fill: "none"
6906
7097
  }), /*#__PURE__*/React__default.createElement("path", {
6907
7098
  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"
6908
- })), t("CS_COMMON_PRINT_CERTIFICATE")) : null, (data === null || data === void 0 ? void 0 : (_data$8 = data[0]) === null || _data$8 === void 0 ? void 0 : _data$8.businessService) === "BPA_OC" && ((data === null || data === void 0 ? void 0 : (_data$9 = data[0]) === null || _data$9 === void 0 ? void 0 : _data$9.status) === "APPROVED" || (data === null || data === void 0 ? void 0 : (_data$0 = data[0]) === null || _data$0 === void 0 ? void 0 : _data$0.status) === "PENDING_SANC_FEE_PAYMENT") ? /*#__PURE__*/React__default.createElement("div", {
7099
+ })), t("CS_COMMON_PRINT_CERTIFICATE")) : null, businessService == "sv-services" ? /*#__PURE__*/React__default.createElement("div", {
7100
+ className: "primary-label-btn d-grid",
7101
+ style: {
7102
+ marginLeft: "unset",
7103
+ marginRight: "20px",
7104
+ marginTop: "15px",
7105
+ marginBottom: "15px"
7106
+ },
7107
+ onClick: printReciept
7108
+ }, /*#__PURE__*/React__default.createElement("svg", {
7109
+ xmlns: "http://www.w3.org/2000/svg",
7110
+ height: "24px",
7111
+ viewBox: "0 0 24 24",
7112
+ width: "24px",
7113
+ fill: "#a82227"
7114
+ }, /*#__PURE__*/React__default.createElement("path", {
7115
+ d: "M0 0h24v24H0V0z",
7116
+ fill: "none"
7117
+ }), /*#__PURE__*/React__default.createElement("path", {
7118
+ d: "M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"
7119
+ })), t("SV_FEE_RECIEPT")) : null, businessService == "sv-services" ? /*#__PURE__*/React__default.createElement("div", {
7120
+ className: "primary-label-btn d-grid",
7121
+ style: {
7122
+ marginLeft: "unset",
7123
+ marginRight: "20px",
7124
+ marginTop: "15px",
7125
+ marginBottom: "15px"
7126
+ },
7127
+ onClick: svCertificate
7128
+ }, /*#__PURE__*/React__default.createElement("svg", {
7129
+ xmlns: "http://www.w3.org/2000/svg",
7130
+ height: "24px",
7131
+ viewBox: "0 0 24 24",
7132
+ width: "24px",
7133
+ fill: "#a82227"
7134
+ }, /*#__PURE__*/React__default.createElement("path", {
7135
+ d: "M0 0h24v24H0V0z",
7136
+ fill: "none"
7137
+ }), /*#__PURE__*/React__default.createElement("path", {
7138
+ d: "M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"
7139
+ })), t("SV_CERTIFICATE")) : null, businessService == "sv-services" ? /*#__PURE__*/React__default.createElement("div", {
7140
+ className: "primary-label-btn d-grid",
7141
+ style: {
7142
+ marginLeft: "unset",
7143
+ marginRight: "20px",
7144
+ marginTop: "15px",
7145
+ marginBottom: "15px"
7146
+ },
7147
+ onClick: svIdCard
7148
+ }, /*#__PURE__*/React__default.createElement("svg", {
7149
+ xmlns: "http://www.w3.org/2000/svg",
7150
+ height: "24px",
7151
+ viewBox: "0 0 24 24",
7152
+ width: "24px",
7153
+ fill: "#a82227"
7154
+ }, /*#__PURE__*/React__default.createElement("path", {
7155
+ d: "M0 0h24v24H0V0z",
7156
+ fill: "none"
7157
+ }), /*#__PURE__*/React__default.createElement("path", {
7158
+ d: "M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"
7159
+ })), t("SV_ID_CARD")) : null, businessService == "sv-services" && /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
7160
+ to: "/digit-ui/citizen"
7161
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
7162
+ label: t("CORE_COMMON_GO_TO_HOME"),
7163
+ style: {
7164
+ marginTop: "15px"
7165
+ }
7166
+ })), (data === null || data === void 0 ? void 0 : (_data$8 = data[0]) === null || _data$8 === void 0 ? void 0 : _data$8.businessService) === "BPA_OC" && ((data === null || data === void 0 ? void 0 : (_data$9 = data[0]) === null || _data$9 === void 0 ? void 0 : _data$9.status) === "APPROVED" || (data === null || data === void 0 ? void 0 : (_data$0 = data[0]) === null || _data$0 === void 0 ? void 0 : _data$0.status) === "PENDING_SANC_FEE_PAYMENT") ? /*#__PURE__*/React__default.createElement("div", {
6909
7167
  className: "primary-label-btn d-grid",
6910
7168
  style: {
6911
7169
  marginLeft: "unset"