@egovernments/digit-ui-libraries 1.3.5 → 1.3.9

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.
@@ -61,24 +61,28 @@ function _arrayLikeToArray(arr, len) {
61
61
  }
62
62
 
63
63
  function _createForOfIteratorHelperLoose(o, allowArrayLike) {
64
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
65
- if (it) return (it = it.call(o)).next.bind(it);
66
-
67
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
68
- if (it) o = it;
69
- var i = 0;
70
- return function () {
71
- if (i >= o.length) return {
72
- done: true
73
- };
74
- return {
75
- done: false,
76
- value: o[i++]
64
+ var it;
65
+
66
+ if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
67
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
68
+ if (it) o = it;
69
+ var i = 0;
70
+ return function () {
71
+ if (i >= o.length) return {
72
+ done: true
73
+ };
74
+ return {
75
+ done: false,
76
+ value: o[i++]
77
+ };
77
78
  };
78
- };
79
+ }
80
+
81
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
79
82
  }
80
83
 
81
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
84
+ it = o[Symbol.iterator]();
85
+ return it.next.bind(it);
82
86
  }
83
87
 
84
88
  var Pages = Object.freeze({
@@ -217,7 +221,6 @@ var actionHandler = function actionHandler(action, id, fieldList) {
217
221
  var index = getIndex(id, fieldList);
218
222
 
219
223
  if (!action) {
220
- console.log("no action found");
221
224
  return;
222
225
  }
223
226
 
@@ -634,10 +637,8 @@ var ServiceRequest = function ServiceRequest(_ref2) {
634
637
 
635
638
  var _temp = function () {
636
639
  if (window[postHookName] && typeof window[postHookName] === "function") {
637
- return Promise.resolve(window[postHookName](resData)).then(function (_await$window$postHoo) {
638
- _exit = true;
639
- return _await$window$postHoo;
640
- });
640
+ _exit = true;
641
+ return Promise.resolve(window[postHookName](resData));
641
642
  }
642
643
  }();
643
644
 
@@ -2554,7 +2555,6 @@ var StoreService = {
2554
2555
  },
2555
2556
  defaultData: function (stateCode, moduleCode, language) {
2556
2557
  try {
2557
- console.log(moduleCode, stateCode);
2558
2558
  var LocalePromise = LocalizationService.getLocale({
2559
2559
  modules: ["rainmaker-" + moduleCode.toLowerCase()],
2560
2560
  locale: language,
@@ -2759,8 +2759,6 @@ var LoginService = {
2759
2759
  },
2760
2760
  authenticate: function (details, stateCode) {
2761
2761
  try {
2762
- var _window, _window$globalConfigs;
2763
-
2764
2762
  var params = new URLSearchParams();
2765
2763
  Object.entries(details).forEach(function (_ref) {
2766
2764
  var key = _ref[0],
@@ -2774,7 +2772,7 @@ var LoginService = {
2774
2772
  method: "post",
2775
2773
  params: params,
2776
2774
  headers: {
2777
- authorization: "Basic " + ((_window = window) === null || _window === void 0 ? void 0 : (_window$globalConfigs = _window.globalConfigs) === null || _window$globalConfigs === void 0 ? void 0 : _window$globalConfigs.getConfig("JWT_TOKEN")),
2775
+ authorization: "Basic ZWdvdi11c2VyLWNsaWVudDo=",
2778
2776
  "Content-Type": "application/x-www-form-urlencoded"
2779
2777
  }
2780
2778
  };
@@ -3627,7 +3625,7 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
3627
3625
  (function () {
3628
3626
 
3629
3627
  var enableSchedulerDebugging = false;
3630
- var enableProfiling = false;
3628
+ var enableProfiling = true;
3631
3629
 
3632
3630
  var _requestHostCallback;
3633
3631
 
@@ -3866,13 +3864,167 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
3866
3864
  return diff !== 0 ? diff : a.id - b.id;
3867
3865
  }
3868
3866
 
3867
+ var NoPriority = 0;
3869
3868
  var ImmediatePriority = 1;
3870
3869
  var UserBlockingPriority = 2;
3871
3870
  var NormalPriority = 3;
3872
3871
  var LowPriority = 4;
3873
3872
  var IdlePriority = 5;
3873
+ var runIdCounter = 0;
3874
+ var mainThreadIdCounter = 0;
3875
+ var profilingStateSize = 4;
3876
+ var sharedProfilingBuffer = typeof SharedArrayBuffer === 'function' ? new SharedArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : typeof ArrayBuffer === 'function' ? new ArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : null;
3877
+ var profilingState = sharedProfilingBuffer !== null ? new Int32Array(sharedProfilingBuffer) : [];
3878
+ var PRIORITY = 0;
3879
+ var CURRENT_TASK_ID = 1;
3880
+ var CURRENT_RUN_ID = 2;
3881
+ var QUEUE_SIZE = 3;
3882
+ {
3883
+ profilingState[PRIORITY] = NoPriority;
3884
+ profilingState[QUEUE_SIZE] = 0;
3885
+ profilingState[CURRENT_TASK_ID] = 0;
3886
+ }
3887
+ var INITIAL_EVENT_LOG_SIZE = 131072;
3888
+ var MAX_EVENT_LOG_SIZE = 524288;
3889
+ var eventLogSize = 0;
3890
+ var eventLogBuffer = null;
3891
+ var eventLog = null;
3892
+ var eventLogIndex = 0;
3893
+ var TaskStartEvent = 1;
3894
+ var TaskCompleteEvent = 2;
3895
+ var TaskErrorEvent = 3;
3896
+ var TaskCancelEvent = 4;
3897
+ var TaskRunEvent = 5;
3898
+ var TaskYieldEvent = 6;
3899
+ var SchedulerSuspendEvent = 7;
3900
+ var SchedulerResumeEvent = 8;
3901
+
3902
+ function logEvent(entries) {
3903
+ if (eventLog !== null) {
3904
+ var offset = eventLogIndex;
3905
+ eventLogIndex += entries.length;
3906
+
3907
+ if (eventLogIndex + 1 > eventLogSize) {
3908
+ eventLogSize *= 2;
3909
+
3910
+ if (eventLogSize > MAX_EVENT_LOG_SIZE) {
3911
+ console['error']("Scheduler Profiling: Event log exceeded maximum size. Don't " + 'forget to call `stopLoggingProfilingEvents()`.');
3912
+ stopLoggingProfilingEvents();
3913
+ return;
3914
+ }
3915
+
3916
+ var newEventLog = new Int32Array(eventLogSize * 4);
3917
+ newEventLog.set(eventLog);
3918
+ eventLogBuffer = newEventLog.buffer;
3919
+ eventLog = newEventLog;
3920
+ }
3921
+
3922
+ eventLog.set(entries, offset);
3923
+ }
3924
+ }
3925
+
3926
+ function startLoggingProfilingEvents() {
3927
+ eventLogSize = INITIAL_EVENT_LOG_SIZE;
3928
+ eventLogBuffer = new ArrayBuffer(eventLogSize * 4);
3929
+ eventLog = new Int32Array(eventLogBuffer);
3930
+ eventLogIndex = 0;
3931
+ }
3932
+
3933
+ function stopLoggingProfilingEvents() {
3934
+ var buffer = eventLogBuffer;
3935
+ eventLogSize = 0;
3936
+ eventLogBuffer = null;
3937
+ eventLog = null;
3938
+ eventLogIndex = 0;
3939
+ return buffer;
3940
+ }
3941
+
3942
+ function markTaskStart(task, ms) {
3943
+ {
3944
+ profilingState[QUEUE_SIZE]++;
3945
+
3946
+ if (eventLog !== null) {
3947
+ logEvent([TaskStartEvent, ms * 1000, task.id, task.priorityLevel]);
3948
+ }
3949
+ }
3950
+ }
3951
+
3952
+ function markTaskCompleted(task, ms) {
3953
+ {
3954
+ profilingState[PRIORITY] = NoPriority;
3955
+ profilingState[CURRENT_TASK_ID] = 0;
3956
+ profilingState[QUEUE_SIZE]--;
3957
+
3958
+ if (eventLog !== null) {
3959
+ logEvent([TaskCompleteEvent, ms * 1000, task.id]);
3960
+ }
3961
+ }
3962
+ }
3963
+
3964
+ function markTaskCanceled(task, ms) {
3965
+ {
3966
+ profilingState[QUEUE_SIZE]--;
3967
+
3968
+ if (eventLog !== null) {
3969
+ logEvent([TaskCancelEvent, ms * 1000, task.id]);
3970
+ }
3971
+ }
3972
+ }
3973
+
3974
+ function markTaskErrored(task, ms) {
3975
+ {
3976
+ profilingState[PRIORITY] = NoPriority;
3977
+ profilingState[CURRENT_TASK_ID] = 0;
3978
+ profilingState[QUEUE_SIZE]--;
3979
+
3980
+ if (eventLog !== null) {
3981
+ logEvent([TaskErrorEvent, ms * 1000, task.id]);
3982
+ }
3983
+ }
3984
+ }
3985
+
3986
+ function markTaskRun(task, ms) {
3987
+ {
3988
+ runIdCounter++;
3989
+ profilingState[PRIORITY] = task.priorityLevel;
3990
+ profilingState[CURRENT_TASK_ID] = task.id;
3991
+ profilingState[CURRENT_RUN_ID] = runIdCounter;
3992
+
3993
+ if (eventLog !== null) {
3994
+ logEvent([TaskRunEvent, ms * 1000, task.id, runIdCounter]);
3995
+ }
3996
+ }
3997
+ }
3998
+
3999
+ function markTaskYield(task, ms) {
4000
+ {
4001
+ profilingState[PRIORITY] = NoPriority;
4002
+ profilingState[CURRENT_TASK_ID] = 0;
4003
+ profilingState[CURRENT_RUN_ID] = 0;
4004
+
4005
+ if (eventLog !== null) {
4006
+ logEvent([TaskYieldEvent, ms * 1000, task.id, runIdCounter]);
4007
+ }
4008
+ }
4009
+ }
4010
+
4011
+ function markSchedulerSuspended(ms) {
4012
+ {
4013
+ mainThreadIdCounter++;
3874
4014
 
3875
- function markTaskErrored(task, ms) {}
4015
+ if (eventLog !== null) {
4016
+ logEvent([SchedulerSuspendEvent, ms * 1000, mainThreadIdCounter]);
4017
+ }
4018
+ }
4019
+ }
4020
+
4021
+ function markSchedulerUnsuspended(ms) {
4022
+ {
4023
+ if (eventLog !== null) {
4024
+ logEvent([SchedulerResumeEvent, ms * 1000, mainThreadIdCounter]);
4025
+ }
4026
+ }
4027
+ }
3876
4028
 
3877
4029
  var maxSigned31BitInt = 1073741823;
3878
4030
  var IMMEDIATE_PRIORITY_TIMEOUT = -1;
@@ -3899,6 +4051,10 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
3899
4051
  pop(timerQueue);
3900
4052
  timer.sortIndex = timer.expirationTime;
3901
4053
  push(taskQueue, timer);
4054
+ {
4055
+ markTaskStart(timer, currentTime);
4056
+ timer.isQueued = true;
4057
+ }
3902
4058
  } else {
3903
4059
  return;
3904
4060
  }
@@ -3927,6 +4083,9 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
3927
4083
  }
3928
4084
 
3929
4085
  function flushWork(hasTimeRemaining, initialTime) {
4086
+ {
4087
+ markSchedulerUnsuspended(initialTime);
4088
+ }
3930
4089
  isHostCallbackScheduled = false;
3931
4090
 
3932
4091
  if (isHostTimeoutScheduled) {
@@ -3957,6 +4116,11 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
3957
4116
  currentTask = null;
3958
4117
  currentPriorityLevel = previousPriorityLevel;
3959
4118
  isPerformingWork = false;
4119
+ {
4120
+ var _currentTime = exports.unstable_now();
4121
+
4122
+ markSchedulerSuspended(_currentTime);
4123
+ }
3960
4124
  }
3961
4125
  }
3962
4126
 
@@ -3976,12 +4140,19 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
3976
4140
  currentTask.callback = null;
3977
4141
  currentPriorityLevel = currentTask.priorityLevel;
3978
4142
  var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
4143
+ markTaskRun(currentTask, currentTime);
3979
4144
  var continuationCallback = callback(didUserCallbackTimeout);
3980
4145
  currentTime = exports.unstable_now();
3981
4146
 
3982
4147
  if (typeof continuationCallback === 'function') {
3983
4148
  currentTask.callback = continuationCallback;
4149
+ markTaskYield(currentTask, currentTime);
3984
4150
  } else {
4151
+ {
4152
+ markTaskCompleted(currentTask, currentTime);
4153
+ currentTask.isQueued = false;
4154
+ }
4155
+
3985
4156
  if (currentTask === peek(taskQueue)) {
3986
4157
  pop(taskQueue);
3987
4158
  }
@@ -4120,6 +4291,9 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
4120
4291
  expirationTime: expirationTime,
4121
4292
  sortIndex: -1
4122
4293
  };
4294
+ {
4295
+ newTask.isQueued = false;
4296
+ }
4123
4297
 
4124
4298
  if (startTime > currentTime) {
4125
4299
  newTask.sortIndex = startTime;
@@ -4137,6 +4311,10 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
4137
4311
  } else {
4138
4312
  newTask.sortIndex = expirationTime;
4139
4313
  push(taskQueue, newTask);
4314
+ {
4315
+ markTaskStart(newTask, currentTime);
4316
+ newTask.isQueued = true;
4317
+ }
4140
4318
 
4141
4319
  if (!isHostCallbackScheduled && !isPerformingWork) {
4142
4320
  isHostCallbackScheduled = true;
@@ -4163,6 +4341,13 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
4163
4341
  }
4164
4342
 
4165
4343
  function unstable_cancelCallback(task) {
4344
+ {
4345
+ if (task.isQueued) {
4346
+ var currentTime = exports.unstable_now();
4347
+ markTaskCanceled(task, currentTime);
4348
+ task.isQueued = false;
4349
+ }
4350
+ }
4166
4351
  task.callback = null;
4167
4352
  }
4168
4353
 
@@ -4171,7 +4356,11 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
4171
4356
  }
4172
4357
 
4173
4358
  var unstable_requestPaint = requestPaint;
4174
- var unstable_Profiling = null;
4359
+ var unstable_Profiling = {
4360
+ startLoggingProfilingEvents: startLoggingProfilingEvents,
4361
+ stopLoggingProfilingEvents: stopLoggingProfilingEvents,
4362
+ sharedProfilingBuffer: sharedProfilingBuffer
4363
+ };
4175
4364
  exports.unstable_IdlePriority = IdlePriority;
4176
4365
  exports.unstable_ImmediatePriority = ImmediatePriority;
4177
4366
  exports.unstable_LowPriority = LowPriority;
@@ -11776,7 +11965,7 @@ var vk = {
11776
11965
  wk = {
11777
11966
  findFiberByHostInstance: wc,
11778
11967
  bundleType: 0,
11779
- version: "17.0.2",
11968
+ version: "17.0.1",
11780
11969
  rendererPackageName: "react-dom"
11781
11970
  };
11782
11971
  var xk = {
@@ -11874,7 +12063,7 @@ var unstable_renderSubtreeIntoContainer = function unstable_renderSubtreeIntoCon
11874
12063
  return tk(a, b, c, !1, d);
11875
12064
  };
11876
12065
 
11877
- var version = "17.0.2";
12066
+ var version = "17.0.1";
11878
12067
  var reactDom_production_min = {
11879
12068
  __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
11880
12069
  createPortal: createPortal,
@@ -21341,7 +21530,7 @@ var reactDom_development = createCommonjsModule(function (module, exports) {
21341
21530
  }
21342
21531
  }
21343
21532
 
21344
- var ReactVersion = '17.0.2';
21533
+ var ReactVersion = '17.0.1';
21345
21534
  var NoMode = 0;
21346
21535
  var StrictMode = 1;
21347
21536
  var BlockingMode = 2;
@@ -28398,14 +28587,14 @@ var reactDom_development = createCommonjsModule(function (module, exports) {
28398
28587
  cutOffTailIfNeeded(renderState, true);
28399
28588
 
28400
28589
  if (renderState.tail === null && renderState.tailMode === 'hidden' && !renderedTail.alternate && !getIsHydrating()) {
28401
- var lastEffect = workInProgress.lastEffect = renderState.lastEffect;
28590
+ var lastEffect = workInProgress.lastEffect = renderState.lastEffect;
28402
28591
 
28403
- if (lastEffect !== null) {
28404
- lastEffect.nextEffect = null;
28405
- }
28592
+ if (lastEffect !== null) {
28593
+ lastEffect.nextEffect = null;
28594
+ }
28406
28595
 
28407
- return null;
28408
- }
28596
+ return null;
28597
+ }
28409
28598
  } else if (now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane) {
28410
28599
  workInProgress.flags |= DidCapture;
28411
28600
  didSuspendAlready = true;
@@ -35448,8 +35637,6 @@ var Complaint = {
35448
35637
 
35449
35638
  var UserService = {
35450
35639
  authenticate: function authenticate(details) {
35451
- var _window, _window$globalConfigs;
35452
-
35453
35640
  var data = new URLSearchParams();
35454
35641
  Object.entries(details).forEach(function (_ref) {
35455
35642
  var key = _ref[0],
@@ -35463,7 +35650,7 @@ var UserService = {
35463
35650
  url: Urls.Authenticate,
35464
35651
  data: data,
35465
35652
  headers: {
35466
- authorization: "Basic " + ((_window = window) === null || _window === void 0 ? void 0 : (_window$globalConfigs = _window.globalConfigs) === null || _window$globalConfigs === void 0 ? void 0 : _window$globalConfigs.getConfig("JWT_TOKEN")),
35653
+ authorization: "Basic ZWdvdi11c2VyLWNsaWVudDo=",
35467
35654
  "Content-Type": "application/x-www-form-urlencoded"
35468
35655
  }
35469
35656
  });
@@ -36256,9 +36443,7 @@ var useSessionStorage = function useSessionStorage(key, initialValue) {
36256
36443
  var valueToStore = value instanceof Function ? value(storedValue) : value;
36257
36444
  setStoredValue(valueToStore);
36258
36445
  Digit.SessionStorage.set(key, valueToStore);
36259
- } catch (err) {
36260
- console.log(err);
36261
- }
36446
+ } catch (err) {}
36262
36447
  };
36263
36448
 
36264
36449
  var clearValue = function clearValue() {
@@ -36301,14 +36486,11 @@ var useOnClickOutside = function useOnClickOutside(ref, handler, isActive) {
36301
36486
  };
36302
36487
  };
36303
36488
 
36304
- var _excluded = ["businessService"],
36305
- _excluded2 = ["tenantId", "businessService"],
36306
- _excluded3 = ["tenantId", "businessService"];
36307
36489
  var useFetchCitizenBillsForBuissnessService = function useFetchCitizenBillsForBuissnessService(_ref, config) {
36308
36490
  var _Digit$UserService$ge;
36309
36491
 
36310
36492
  var businessService = _ref.businessService,
36311
- filters = _objectWithoutPropertiesLoose(_ref, _excluded);
36493
+ filters = _objectWithoutPropertiesLoose(_ref, ["businessService"]);
36312
36494
 
36313
36495
  if (config === void 0) {
36314
36496
  config = {};
@@ -36355,7 +36537,7 @@ var useFetchBillsForBuissnessService = function useFetchBillsForBuissnessService
36355
36537
 
36356
36538
  var tenantId = _ref3.tenantId,
36357
36539
  businessService = _ref3.businessService,
36358
- filters = _objectWithoutPropertiesLoose(_ref3, _excluded2);
36540
+ filters = _objectWithoutPropertiesLoose(_ref3, ["tenantId", "businessService"]);
36359
36541
 
36360
36542
  if (config === void 0) {
36361
36543
  config = {};
@@ -36374,7 +36556,6 @@ var useFetchBillsForBuissnessService = function useFetchBillsForBuissnessService
36374
36556
  return Digit.PaymentService.fetchBill(_tenantId, params);
36375
36557
  }, _extends({
36376
36558
  retry: function retry(count, err) {
36377
- console.log(err, "inside the payment hook");
36378
36559
  return false;
36379
36560
  }
36380
36561
  }, config)),
@@ -36486,7 +36667,7 @@ var useDemandSearch = function useDemandSearch(_ref6, config) {
36486
36667
  var useRecieptSearch = function useRecieptSearch(_ref7, config) {
36487
36668
  var tenantId = _ref7.tenantId,
36488
36669
  businessService = _ref7.businessService,
36489
- params = _objectWithoutPropertiesLoose(_ref7, _excluded3);
36670
+ params = _objectWithoutPropertiesLoose(_ref7, ["tenantId", "businessService"]);
36490
36671
 
36491
36672
  if (config === void 0) {
36492
36673
  config = {};
@@ -36959,9 +37140,6 @@ var getSearchFields = function getSearchFields(isInbox) {
36959
37140
  return isInbox ? inboxSearchFields : searchFieldsForSearch;
36960
37141
  };
36961
37142
 
36962
- var _excluded$1 = ["totalCount"],
36963
- _excluded2$1 = ["totalCount"];
36964
-
36965
37143
  var inboxConfig = function inboxConfig(tenantId, filters) {
36966
37144
  return {
36967
37145
  PT: {
@@ -37002,7 +37180,7 @@ var inboxConfig = function inboxConfig(tenantId, filters) {
37002
37180
 
37003
37181
  var defaultCombineResponse = function defaultCombineResponse(_ref, wf) {
37004
37182
  var totalCount = _ref.totalCount,
37005
- d = _objectWithoutPropertiesLoose(_ref, _excluded$1);
37183
+ d = _objectWithoutPropertiesLoose(_ref, ["totalCount"]);
37006
37184
 
37007
37185
  return {
37008
37186
  totalCount: totalCount,
@@ -37015,7 +37193,7 @@ var defaultRawSearchHandler = function defaultRawSearchHandler(_ref2, searchKey,
37015
37193
  var _ref3;
37016
37194
 
37017
37195
  var totalCount = _ref2.totalCount,
37018
- data = _objectWithoutPropertiesLoose(_ref2, _excluded2$1);
37196
+ data = _objectWithoutPropertiesLoose(_ref2, ["totalCount"]);
37019
37197
 
37020
37198
  return _ref3 = {}, _ref3[searchKey] = data[searchKey].map(function (e) {
37021
37199
  return _extends({
@@ -37025,12 +37203,11 @@ var defaultRawSearchHandler = function defaultRawSearchHandler(_ref2, searchKey,
37025
37203
  };
37026
37204
 
37027
37205
  var defaultCatchSearch = function defaultCatchSearch(Err) {
37028
- var _Err$response, _Err$response$data, _Err$response$data$Er, _Err$response2;
37206
+ var _Err$response, _Err$response$data, _Err$response$data$Er;
37029
37207
 
37030
37208
  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) {
37031
37209
  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";
37032
37210
  })) return [];
37033
- 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");
37034
37211
  throw Err;
37035
37212
  };
37036
37213
 
@@ -37614,7 +37791,6 @@ var fetchComplaintDetails = function fetchComplaintDetails(tenantId, id) {
37614
37791
  }) : null;
37615
37792
  return ids ? Promise.resolve(getThumbnails(ids, service.tenantId)).then(_temp2) : _temp2(null);
37616
37793
  } else {
37617
- console.log("error fetching complaint details or service defs");
37618
37794
  return {};
37619
37795
  }
37620
37796
  });
@@ -38315,6 +38491,9 @@ var useMDMS$1 = function useMDMS(tenantId, moduleCode, type, config, payload) {
38315
38491
 
38316
38492
  case "PostFieldsConfig":
38317
38493
  return usePostFieldsConfig();
38494
+
38495
+ default:
38496
+ return null;
38318
38497
  }
38319
38498
  };
38320
38499
 
@@ -39634,6 +39813,9 @@ var usePTGenderMDMS = function usePTGenderMDMS(tenantId, moduleCode, type, confi
39634
39813
  switch (type) {
39635
39814
  case "GenderType":
39636
39815
  return usePTGenders();
39816
+
39817
+ default:
39818
+ return null;
39637
39819
  }
39638
39820
  };
39639
39821
 
@@ -39746,6 +39928,9 @@ var useMCollectMDMS = function useMCollectMDMS(tenantId, moduleCode, type, filte
39746
39928
 
39747
39929
  case "applicationStatus":
39748
39930
  return useMCollectApplcationStatus();
39931
+
39932
+ default:
39933
+ return null;
39749
39934
  }
39750
39935
  };
39751
39936
 
@@ -40489,6 +40674,9 @@ var useTLGenderMDMS = function useTLGenderMDMS(tenantId, moduleCode, type, confi
40489
40674
  switch (type) {
40490
40675
  case "GenderType":
40491
40676
  return useTLGenders();
40677
+
40678
+ default:
40679
+ return null;
40492
40680
  }
40493
40681
  };
40494
40682
 
@@ -40796,7 +40984,6 @@ var ReceiptsService = {
40796
40984
  }
40797
40985
  };
40798
40986
 
40799
- var _excluded$2 = ["isLoading", "error", "data"];
40800
40987
  var useReceiptsSearch = function useReceiptsSearch(searchparams, tenantId, filters, isupdated, config) {
40801
40988
  if (config === void 0) {
40802
40989
  config = {};
@@ -40811,7 +40998,7 @@ var useReceiptsSearch = function useReceiptsSearch(searchparams, tenantId, filte
40811
40998
  isLoading = _useQuery.isLoading,
40812
40999
  error = _useQuery.error,
40813
41000
  data = _useQuery.data,
40814
- rest = _objectWithoutPropertiesLoose(_useQuery, _excluded$2);
41001
+ rest = _objectWithoutPropertiesLoose(_useQuery, ["isLoading", "error", "data"]);
40815
41002
 
40816
41003
  return _extends({
40817
41004
  isLoading: isLoading,
@@ -40982,6 +41169,9 @@ var useReceiptsMDMS = function useReceiptsMDMS(tenantId, type, config) {
40982
41169
 
40983
41170
  case "CancelReceiptReasonAndStatus":
40984
41171
  return useCancelReceiptReasonAndStatus();
41172
+
41173
+ default:
41174
+ return null;
40985
41175
  }
40986
41176
  };
40987
41177
 
@@ -41141,7 +41331,6 @@ var mobileCheck = function mobileCheck() {
41141
41331
  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;
41142
41332
  })(navigator.userAgent || navigator.vendor || window.opera);
41143
41333
 
41144
- console.log("check", check);
41145
41334
  return check;
41146
41335
  };
41147
41336