@egovernments/digit-ui-libraries 1.3.3 → 1.3.7

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.
@@ -217,7 +217,6 @@ var actionHandler = function actionHandler(action, id, fieldList) {
217
217
  var index = getIndex(id, fieldList);
218
218
 
219
219
  if (!action) {
220
- console.log("no action found");
221
220
  return;
222
221
  }
223
222
 
@@ -634,8 +633,10 @@ var ServiceRequest = function ServiceRequest(_ref2) {
634
633
 
635
634
  var _temp = function () {
636
635
  if (window[postHookName] && typeof window[postHookName] === "function") {
637
- _exit = true;
638
- return Promise.resolve(window[postHookName](resData));
636
+ return Promise.resolve(window[postHookName](resData)).then(function (_await$window$postHoo) {
637
+ _exit = true;
638
+ return _await$window$postHoo;
639
+ });
639
640
  }
640
641
  }();
641
642
 
@@ -2552,7 +2553,6 @@ var StoreService = {
2552
2553
  },
2553
2554
  defaultData: function (stateCode, moduleCode, language) {
2554
2555
  try {
2555
- console.log(moduleCode, stateCode);
2556
2556
  var LocalePromise = LocalizationService.getLocale({
2557
2557
  modules: ["rainmaker-" + moduleCode.toLowerCase()],
2558
2558
  locale: language,
@@ -36250,9 +36250,7 @@ var useSessionStorage = function useSessionStorage(key, initialValue) {
36250
36250
  var valueToStore = value instanceof Function ? value(storedValue) : value;
36251
36251
  setStoredValue(valueToStore);
36252
36252
  Digit.SessionStorage.set(key, valueToStore);
36253
- } catch (err) {
36254
- console.log(err);
36255
- }
36253
+ } catch (err) {}
36256
36254
  };
36257
36255
 
36258
36256
  var clearValue = function clearValue() {
@@ -36368,7 +36366,6 @@ var useFetchBillsForBuissnessService = function useFetchBillsForBuissnessService
36368
36366
  return Digit.PaymentService.fetchBill(_tenantId, params);
36369
36367
  }, _extends({
36370
36368
  retry: function retry(count, err) {
36371
- console.log(err, "inside the payment hook");
36372
36369
  return false;
36373
36370
  }
36374
36371
  }, config)),
@@ -36667,7 +36664,7 @@ var useLocalities = function useLocalities(tenant, boundaryType, config, t) {
36667
36664
  }
36668
36665
 
36669
36666
  return useQuery(["BOUNDARY_DATA", tenant, boundaryType], function () {
36670
- return getLocalities$1[boundaryType](tenant);
36667
+ return getLocalities$1[boundaryType.toLowerCase()](tenant);
36671
36668
  }, _extends({
36672
36669
  select: function select(data) {
36673
36670
  return LocalityService.get(data).map(function (key) {
@@ -37019,43 +37016,38 @@ var defaultRawSearchHandler = function defaultRawSearchHandler(_ref2, searchKey,
37019
37016
  };
37020
37017
 
37021
37018
  var defaultCatchSearch = function defaultCatchSearch(Err) {
37022
- var _Err$response, _Err$response$data, _Err$response$data$Er, _Err$response2;
37019
+ var _Err$response, _Err$response$data, _Err$response$data$Er;
37023
37020
 
37024
37021
  if (Err !== null && Err !== void 0 && (_Err$response = Err.response) !== null && _Err$response !== void 0 && (_Err$response$data = _Err$response.data) !== null && _Err$response$data !== void 0 && (_Err$response$data$Er = _Err$response$data.Errors) !== null && _Err$response$data$Er !== void 0 && _Err$response$data$Er.some(function (e) {
37025
37022
  return e.code === "EG_PT_INVALID_SEARCH" && e.message === " Search is not allowed on empty Criteria, Atleast one criteria should be provided with tenantId for EMPLOYEE";
37026
37023
  })) return [];
37027
- console.log(Err === null || Err === void 0 ? void 0 : (_Err$response2 = Err.response) === null || _Err$response2 === void 0 ? void 0 : _Err$response2.data, " this is error");
37028
37024
  throw Err;
37029
37025
  };
37030
37026
 
37031
37027
  var callMiddlewares = function callMiddlewares(data, middlewares) {
37032
- try {
37033
- var applyBreak = false;
37034
- var itr = -1;
37028
+ var applyBreak = false;
37029
+ var itr = -1;
37035
37030
 
37036
- var _break = function _break() {
37037
- return applyBreak = true;
37038
- };
37031
+ var _break = function _break() {
37032
+ return applyBreak = true;
37033
+ };
37039
37034
 
37040
- var _next = function _next(data) {
37041
- try {
37042
- if (!applyBreak && ++itr < middlewares.length) {
37043
- var key = Object.keys(middlewares[itr])[0];
37044
- var nextMiddleware = middlewares[itr][key];
37045
- var isAsync = nextMiddleware.constructor.name === "AsyncFunction";
37046
- if (isAsync) return Promise.resolve(nextMiddleware(data, _break, _next));else return Promise.resolve(nextMiddleware(data, _break, _next));
37047
- } else return Promise.resolve(data);
37048
- } catch (e) {
37049
- return Promise.reject(e);
37050
- }
37051
- };
37035
+ var _next = function _next(data) {
37036
+ try {
37037
+ if (!applyBreak && ++itr < middlewares.length) {
37038
+ var key = Object.keys(middlewares[itr])[0];
37039
+ var nextMiddleware = middlewares[itr][key];
37040
+ var isAsync = nextMiddleware.constructor.name === "AsyncFunction";
37041
+ if (isAsync) return Promise.resolve(nextMiddleware(data, _break, _next));else return Promise.resolve(nextMiddleware(data, _break, _next));
37042
+ } else return Promise.resolve(data);
37043
+ } catch (e) {
37044
+ return Promise.reject(e);
37045
+ }
37046
+ };
37052
37047
 
37053
- return Promise.resolve(_next(data)).then(function (ret) {
37054
- return ret || [];
37055
- });
37056
- } catch (e) {
37057
- return Promise.reject(e);
37058
- }
37048
+ return Promise.resolve(_next(data)).then(function (ret) {
37049
+ return ret || [];
37050
+ });
37059
37051
  };
37060
37052
 
37061
37053
  var useInboxGeneral = function useInboxGeneral(_ref4) {
@@ -37608,7 +37600,6 @@ var fetchComplaintDetails = function fetchComplaintDetails(tenantId, id) {
37608
37600
  }) : null;
37609
37601
  return ids ? Promise.resolve(getThumbnails(ids, service.tenantId)).then(_temp2) : _temp2(null);
37610
37602
  } else {
37611
- console.log("error fetching complaint details or service defs");
37612
37603
  return {};
37613
37604
  }
37614
37605
  });
@@ -38309,6 +38300,9 @@ var useMDMS$1 = function useMDMS(tenantId, moduleCode, type, config, payload) {
38309
38300
 
38310
38301
  case "PostFieldsConfig":
38311
38302
  return usePostFieldsConfig();
38303
+
38304
+ default:
38305
+ return null;
38312
38306
  }
38313
38307
  };
38314
38308
 
@@ -39628,6 +39622,9 @@ var usePTGenderMDMS = function usePTGenderMDMS(tenantId, moduleCode, type, confi
39628
39622
  switch (type) {
39629
39623
  case "GenderType":
39630
39624
  return usePTGenders();
39625
+
39626
+ default:
39627
+ return null;
39631
39628
  }
39632
39629
  };
39633
39630
 
@@ -39740,6 +39737,9 @@ var useMCollectMDMS = function useMCollectMDMS(tenantId, moduleCode, type, filte
39740
39737
 
39741
39738
  case "applicationStatus":
39742
39739
  return useMCollectApplcationStatus();
39740
+
39741
+ default:
39742
+ return null;
39743
39743
  }
39744
39744
  };
39745
39745
 
@@ -40483,6 +40483,9 @@ var useTLGenderMDMS = function useTLGenderMDMS(tenantId, moduleCode, type, confi
40483
40483
  switch (type) {
40484
40484
  case "GenderType":
40485
40485
  return useTLGenders();
40486
+
40487
+ default:
40488
+ return null;
40486
40489
  }
40487
40490
  };
40488
40491
 
@@ -40976,6 +40979,9 @@ var useReceiptsMDMS = function useReceiptsMDMS(tenantId, type, config) {
40976
40979
 
40977
40980
  case "CancelReceiptReasonAndStatus":
40978
40981
  return useCancelReceiptReasonAndStatus();
40982
+
40983
+ default:
40984
+ return null;
40979
40985
  }
40980
40986
  };
40981
40987
 
@@ -41135,7 +41141,6 @@ var mobileCheck = function mobileCheck() {
41135
41141
  if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))) check = true;
41136
41142
  })(navigator.userAgent || navigator.vendor || window.opera);
41137
41143
 
41138
- console.log("check", check);
41139
41144
  return check;
41140
41145
  };
41141
41146