@egovernments/digit-ui-libraries 1.3.7 → 1.3.8
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 +254 -64
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +254 -64
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -64,24 +64,28 @@ function _arrayLikeToArray(arr, len) {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
67
|
-
var it
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
67
|
+
var it;
|
|
68
|
+
|
|
69
|
+
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
|
|
70
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
71
|
+
if (it) o = it;
|
|
72
|
+
var i = 0;
|
|
73
|
+
return function () {
|
|
74
|
+
if (i >= o.length) return {
|
|
75
|
+
done: true
|
|
76
|
+
};
|
|
77
|
+
return {
|
|
78
|
+
done: false,
|
|
79
|
+
value: o[i++]
|
|
80
|
+
};
|
|
80
81
|
};
|
|
81
|
-
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
82
85
|
}
|
|
83
86
|
|
|
84
|
-
|
|
87
|
+
it = o[Symbol.iterator]();
|
|
88
|
+
return it.next.bind(it);
|
|
85
89
|
}
|
|
86
90
|
|
|
87
91
|
var Pages = Object.freeze({
|
|
@@ -636,10 +640,8 @@ var ServiceRequest = function ServiceRequest(_ref2) {
|
|
|
636
640
|
|
|
637
641
|
var _temp = function () {
|
|
638
642
|
if (window[postHookName] && typeof window[postHookName] === "function") {
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
return _await$window$postHoo;
|
|
642
|
-
});
|
|
643
|
+
_exit = true;
|
|
644
|
+
return Promise.resolve(window[postHookName](resData));
|
|
643
645
|
}
|
|
644
646
|
}();
|
|
645
647
|
|
|
@@ -3626,7 +3628,7 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3626
3628
|
(function () {
|
|
3627
3629
|
|
|
3628
3630
|
var enableSchedulerDebugging = false;
|
|
3629
|
-
var enableProfiling =
|
|
3631
|
+
var enableProfiling = true;
|
|
3630
3632
|
|
|
3631
3633
|
var _requestHostCallback;
|
|
3632
3634
|
|
|
@@ -3865,13 +3867,167 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3865
3867
|
return diff !== 0 ? diff : a.id - b.id;
|
|
3866
3868
|
}
|
|
3867
3869
|
|
|
3870
|
+
var NoPriority = 0;
|
|
3868
3871
|
var ImmediatePriority = 1;
|
|
3869
3872
|
var UserBlockingPriority = 2;
|
|
3870
3873
|
var NormalPriority = 3;
|
|
3871
3874
|
var LowPriority = 4;
|
|
3872
3875
|
var IdlePriority = 5;
|
|
3876
|
+
var runIdCounter = 0;
|
|
3877
|
+
var mainThreadIdCounter = 0;
|
|
3878
|
+
var profilingStateSize = 4;
|
|
3879
|
+
var sharedProfilingBuffer = typeof SharedArrayBuffer === 'function' ? new SharedArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : typeof ArrayBuffer === 'function' ? new ArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : null;
|
|
3880
|
+
var profilingState = sharedProfilingBuffer !== null ? new Int32Array(sharedProfilingBuffer) : [];
|
|
3881
|
+
var PRIORITY = 0;
|
|
3882
|
+
var CURRENT_TASK_ID = 1;
|
|
3883
|
+
var CURRENT_RUN_ID = 2;
|
|
3884
|
+
var QUEUE_SIZE = 3;
|
|
3885
|
+
{
|
|
3886
|
+
profilingState[PRIORITY] = NoPriority;
|
|
3887
|
+
profilingState[QUEUE_SIZE] = 0;
|
|
3888
|
+
profilingState[CURRENT_TASK_ID] = 0;
|
|
3889
|
+
}
|
|
3890
|
+
var INITIAL_EVENT_LOG_SIZE = 131072;
|
|
3891
|
+
var MAX_EVENT_LOG_SIZE = 524288;
|
|
3892
|
+
var eventLogSize = 0;
|
|
3893
|
+
var eventLogBuffer = null;
|
|
3894
|
+
var eventLog = null;
|
|
3895
|
+
var eventLogIndex = 0;
|
|
3896
|
+
var TaskStartEvent = 1;
|
|
3897
|
+
var TaskCompleteEvent = 2;
|
|
3898
|
+
var TaskErrorEvent = 3;
|
|
3899
|
+
var TaskCancelEvent = 4;
|
|
3900
|
+
var TaskRunEvent = 5;
|
|
3901
|
+
var TaskYieldEvent = 6;
|
|
3902
|
+
var SchedulerSuspendEvent = 7;
|
|
3903
|
+
var SchedulerResumeEvent = 8;
|
|
3904
|
+
|
|
3905
|
+
function logEvent(entries) {
|
|
3906
|
+
if (eventLog !== null) {
|
|
3907
|
+
var offset = eventLogIndex;
|
|
3908
|
+
eventLogIndex += entries.length;
|
|
3909
|
+
|
|
3910
|
+
if (eventLogIndex + 1 > eventLogSize) {
|
|
3911
|
+
eventLogSize *= 2;
|
|
3912
|
+
|
|
3913
|
+
if (eventLogSize > MAX_EVENT_LOG_SIZE) {
|
|
3914
|
+
console['error']("Scheduler Profiling: Event log exceeded maximum size. Don't " + 'forget to call `stopLoggingProfilingEvents()`.');
|
|
3915
|
+
stopLoggingProfilingEvents();
|
|
3916
|
+
return;
|
|
3917
|
+
}
|
|
3873
3918
|
|
|
3874
|
-
|
|
3919
|
+
var newEventLog = new Int32Array(eventLogSize * 4);
|
|
3920
|
+
newEventLog.set(eventLog);
|
|
3921
|
+
eventLogBuffer = newEventLog.buffer;
|
|
3922
|
+
eventLog = newEventLog;
|
|
3923
|
+
}
|
|
3924
|
+
|
|
3925
|
+
eventLog.set(entries, offset);
|
|
3926
|
+
}
|
|
3927
|
+
}
|
|
3928
|
+
|
|
3929
|
+
function startLoggingProfilingEvents() {
|
|
3930
|
+
eventLogSize = INITIAL_EVENT_LOG_SIZE;
|
|
3931
|
+
eventLogBuffer = new ArrayBuffer(eventLogSize * 4);
|
|
3932
|
+
eventLog = new Int32Array(eventLogBuffer);
|
|
3933
|
+
eventLogIndex = 0;
|
|
3934
|
+
}
|
|
3935
|
+
|
|
3936
|
+
function stopLoggingProfilingEvents() {
|
|
3937
|
+
var buffer = eventLogBuffer;
|
|
3938
|
+
eventLogSize = 0;
|
|
3939
|
+
eventLogBuffer = null;
|
|
3940
|
+
eventLog = null;
|
|
3941
|
+
eventLogIndex = 0;
|
|
3942
|
+
return buffer;
|
|
3943
|
+
}
|
|
3944
|
+
|
|
3945
|
+
function markTaskStart(task, ms) {
|
|
3946
|
+
{
|
|
3947
|
+
profilingState[QUEUE_SIZE]++;
|
|
3948
|
+
|
|
3949
|
+
if (eventLog !== null) {
|
|
3950
|
+
logEvent([TaskStartEvent, ms * 1000, task.id, task.priorityLevel]);
|
|
3951
|
+
}
|
|
3952
|
+
}
|
|
3953
|
+
}
|
|
3954
|
+
|
|
3955
|
+
function markTaskCompleted(task, ms) {
|
|
3956
|
+
{
|
|
3957
|
+
profilingState[PRIORITY] = NoPriority;
|
|
3958
|
+
profilingState[CURRENT_TASK_ID] = 0;
|
|
3959
|
+
profilingState[QUEUE_SIZE]--;
|
|
3960
|
+
|
|
3961
|
+
if (eventLog !== null) {
|
|
3962
|
+
logEvent([TaskCompleteEvent, ms * 1000, task.id]);
|
|
3963
|
+
}
|
|
3964
|
+
}
|
|
3965
|
+
}
|
|
3966
|
+
|
|
3967
|
+
function markTaskCanceled(task, ms) {
|
|
3968
|
+
{
|
|
3969
|
+
profilingState[QUEUE_SIZE]--;
|
|
3970
|
+
|
|
3971
|
+
if (eventLog !== null) {
|
|
3972
|
+
logEvent([TaskCancelEvent, ms * 1000, task.id]);
|
|
3973
|
+
}
|
|
3974
|
+
}
|
|
3975
|
+
}
|
|
3976
|
+
|
|
3977
|
+
function markTaskErrored(task, ms) {
|
|
3978
|
+
{
|
|
3979
|
+
profilingState[PRIORITY] = NoPriority;
|
|
3980
|
+
profilingState[CURRENT_TASK_ID] = 0;
|
|
3981
|
+
profilingState[QUEUE_SIZE]--;
|
|
3982
|
+
|
|
3983
|
+
if (eventLog !== null) {
|
|
3984
|
+
logEvent([TaskErrorEvent, ms * 1000, task.id]);
|
|
3985
|
+
}
|
|
3986
|
+
}
|
|
3987
|
+
}
|
|
3988
|
+
|
|
3989
|
+
function markTaskRun(task, ms) {
|
|
3990
|
+
{
|
|
3991
|
+
runIdCounter++;
|
|
3992
|
+
profilingState[PRIORITY] = task.priorityLevel;
|
|
3993
|
+
profilingState[CURRENT_TASK_ID] = task.id;
|
|
3994
|
+
profilingState[CURRENT_RUN_ID] = runIdCounter;
|
|
3995
|
+
|
|
3996
|
+
if (eventLog !== null) {
|
|
3997
|
+
logEvent([TaskRunEvent, ms * 1000, task.id, runIdCounter]);
|
|
3998
|
+
}
|
|
3999
|
+
}
|
|
4000
|
+
}
|
|
4001
|
+
|
|
4002
|
+
function markTaskYield(task, ms) {
|
|
4003
|
+
{
|
|
4004
|
+
profilingState[PRIORITY] = NoPriority;
|
|
4005
|
+
profilingState[CURRENT_TASK_ID] = 0;
|
|
4006
|
+
profilingState[CURRENT_RUN_ID] = 0;
|
|
4007
|
+
|
|
4008
|
+
if (eventLog !== null) {
|
|
4009
|
+
logEvent([TaskYieldEvent, ms * 1000, task.id, runIdCounter]);
|
|
4010
|
+
}
|
|
4011
|
+
}
|
|
4012
|
+
}
|
|
4013
|
+
|
|
4014
|
+
function markSchedulerSuspended(ms) {
|
|
4015
|
+
{
|
|
4016
|
+
mainThreadIdCounter++;
|
|
4017
|
+
|
|
4018
|
+
if (eventLog !== null) {
|
|
4019
|
+
logEvent([SchedulerSuspendEvent, ms * 1000, mainThreadIdCounter]);
|
|
4020
|
+
}
|
|
4021
|
+
}
|
|
4022
|
+
}
|
|
4023
|
+
|
|
4024
|
+
function markSchedulerUnsuspended(ms) {
|
|
4025
|
+
{
|
|
4026
|
+
if (eventLog !== null) {
|
|
4027
|
+
logEvent([SchedulerResumeEvent, ms * 1000, mainThreadIdCounter]);
|
|
4028
|
+
}
|
|
4029
|
+
}
|
|
4030
|
+
}
|
|
3875
4031
|
|
|
3876
4032
|
var maxSigned31BitInt = 1073741823;
|
|
3877
4033
|
var IMMEDIATE_PRIORITY_TIMEOUT = -1;
|
|
@@ -3898,6 +4054,10 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3898
4054
|
pop(timerQueue);
|
|
3899
4055
|
timer.sortIndex = timer.expirationTime;
|
|
3900
4056
|
push(taskQueue, timer);
|
|
4057
|
+
{
|
|
4058
|
+
markTaskStart(timer, currentTime);
|
|
4059
|
+
timer.isQueued = true;
|
|
4060
|
+
}
|
|
3901
4061
|
} else {
|
|
3902
4062
|
return;
|
|
3903
4063
|
}
|
|
@@ -3926,6 +4086,9 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3926
4086
|
}
|
|
3927
4087
|
|
|
3928
4088
|
function flushWork(hasTimeRemaining, initialTime) {
|
|
4089
|
+
{
|
|
4090
|
+
markSchedulerUnsuspended(initialTime);
|
|
4091
|
+
}
|
|
3929
4092
|
isHostCallbackScheduled = false;
|
|
3930
4093
|
|
|
3931
4094
|
if (isHostTimeoutScheduled) {
|
|
@@ -3956,6 +4119,11 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3956
4119
|
currentTask = null;
|
|
3957
4120
|
currentPriorityLevel = previousPriorityLevel;
|
|
3958
4121
|
isPerformingWork = false;
|
|
4122
|
+
{
|
|
4123
|
+
var _currentTime = exports.unstable_now();
|
|
4124
|
+
|
|
4125
|
+
markSchedulerSuspended(_currentTime);
|
|
4126
|
+
}
|
|
3959
4127
|
}
|
|
3960
4128
|
}
|
|
3961
4129
|
|
|
@@ -3975,12 +4143,19 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3975
4143
|
currentTask.callback = null;
|
|
3976
4144
|
currentPriorityLevel = currentTask.priorityLevel;
|
|
3977
4145
|
var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
|
|
4146
|
+
markTaskRun(currentTask, currentTime);
|
|
3978
4147
|
var continuationCallback = callback(didUserCallbackTimeout);
|
|
3979
4148
|
currentTime = exports.unstable_now();
|
|
3980
4149
|
|
|
3981
4150
|
if (typeof continuationCallback === 'function') {
|
|
3982
4151
|
currentTask.callback = continuationCallback;
|
|
4152
|
+
markTaskYield(currentTask, currentTime);
|
|
3983
4153
|
} else {
|
|
4154
|
+
{
|
|
4155
|
+
markTaskCompleted(currentTask, currentTime);
|
|
4156
|
+
currentTask.isQueued = false;
|
|
4157
|
+
}
|
|
4158
|
+
|
|
3984
4159
|
if (currentTask === peek(taskQueue)) {
|
|
3985
4160
|
pop(taskQueue);
|
|
3986
4161
|
}
|
|
@@ -4119,6 +4294,9 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
4119
4294
|
expirationTime: expirationTime,
|
|
4120
4295
|
sortIndex: -1
|
|
4121
4296
|
};
|
|
4297
|
+
{
|
|
4298
|
+
newTask.isQueued = false;
|
|
4299
|
+
}
|
|
4122
4300
|
|
|
4123
4301
|
if (startTime > currentTime) {
|
|
4124
4302
|
newTask.sortIndex = startTime;
|
|
@@ -4136,6 +4314,10 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
4136
4314
|
} else {
|
|
4137
4315
|
newTask.sortIndex = expirationTime;
|
|
4138
4316
|
push(taskQueue, newTask);
|
|
4317
|
+
{
|
|
4318
|
+
markTaskStart(newTask, currentTime);
|
|
4319
|
+
newTask.isQueued = true;
|
|
4320
|
+
}
|
|
4139
4321
|
|
|
4140
4322
|
if (!isHostCallbackScheduled && !isPerformingWork) {
|
|
4141
4323
|
isHostCallbackScheduled = true;
|
|
@@ -4162,6 +4344,13 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
4162
4344
|
}
|
|
4163
4345
|
|
|
4164
4346
|
function unstable_cancelCallback(task) {
|
|
4347
|
+
{
|
|
4348
|
+
if (task.isQueued) {
|
|
4349
|
+
var currentTime = exports.unstable_now();
|
|
4350
|
+
markTaskCanceled(task, currentTime);
|
|
4351
|
+
task.isQueued = false;
|
|
4352
|
+
}
|
|
4353
|
+
}
|
|
4165
4354
|
task.callback = null;
|
|
4166
4355
|
}
|
|
4167
4356
|
|
|
@@ -4170,7 +4359,11 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
4170
4359
|
}
|
|
4171
4360
|
|
|
4172
4361
|
var unstable_requestPaint = requestPaint;
|
|
4173
|
-
var unstable_Profiling =
|
|
4362
|
+
var unstable_Profiling = {
|
|
4363
|
+
startLoggingProfilingEvents: startLoggingProfilingEvents,
|
|
4364
|
+
stopLoggingProfilingEvents: stopLoggingProfilingEvents,
|
|
4365
|
+
sharedProfilingBuffer: sharedProfilingBuffer
|
|
4366
|
+
};
|
|
4174
4367
|
exports.unstable_IdlePriority = IdlePriority;
|
|
4175
4368
|
exports.unstable_ImmediatePriority = ImmediatePriority;
|
|
4176
4369
|
exports.unstable_LowPriority = LowPriority;
|
|
@@ -11775,7 +11968,7 @@ var vk = {
|
|
|
11775
11968
|
wk = {
|
|
11776
11969
|
findFiberByHostInstance: wc,
|
|
11777
11970
|
bundleType: 0,
|
|
11778
|
-
version: "17.0.
|
|
11971
|
+
version: "17.0.1",
|
|
11779
11972
|
rendererPackageName: "react-dom"
|
|
11780
11973
|
};
|
|
11781
11974
|
var xk = {
|
|
@@ -11873,7 +12066,7 @@ var unstable_renderSubtreeIntoContainer = function unstable_renderSubtreeIntoCon
|
|
|
11873
12066
|
return tk(a, b, c, !1, d);
|
|
11874
12067
|
};
|
|
11875
12068
|
|
|
11876
|
-
var version = "17.0.
|
|
12069
|
+
var version = "17.0.1";
|
|
11877
12070
|
var reactDom_production_min = {
|
|
11878
12071
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
|
11879
12072
|
createPortal: createPortal,
|
|
@@ -21340,7 +21533,7 @@ var reactDom_development = createCommonjsModule(function (module, exports) {
|
|
|
21340
21533
|
}
|
|
21341
21534
|
}
|
|
21342
21535
|
|
|
21343
|
-
var ReactVersion = '17.0.
|
|
21536
|
+
var ReactVersion = '17.0.1';
|
|
21344
21537
|
var NoMode = 0;
|
|
21345
21538
|
var StrictMode = 1;
|
|
21346
21539
|
var BlockingMode = 2;
|
|
@@ -28397,14 +28590,14 @@ var reactDom_development = createCommonjsModule(function (module, exports) {
|
|
|
28397
28590
|
cutOffTailIfNeeded(renderState, true);
|
|
28398
28591
|
|
|
28399
28592
|
if (renderState.tail === null && renderState.tailMode === 'hidden' && !renderedTail.alternate && !getIsHydrating()) {
|
|
28400
|
-
|
|
28593
|
+
var lastEffect = workInProgress.lastEffect = renderState.lastEffect;
|
|
28401
28594
|
|
|
28402
|
-
|
|
28403
|
-
|
|
28404
|
-
|
|
28595
|
+
if (lastEffect !== null) {
|
|
28596
|
+
lastEffect.nextEffect = null;
|
|
28597
|
+
}
|
|
28405
28598
|
|
|
28406
|
-
|
|
28407
|
-
|
|
28599
|
+
return null;
|
|
28600
|
+
}
|
|
28408
28601
|
} else if (now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane) {
|
|
28409
28602
|
workInProgress.flags |= DidCapture;
|
|
28410
28603
|
didSuspendAlready = true;
|
|
@@ -36296,14 +36489,11 @@ var useOnClickOutside = function useOnClickOutside(ref, handler, isActive) {
|
|
|
36296
36489
|
};
|
|
36297
36490
|
};
|
|
36298
36491
|
|
|
36299
|
-
var _excluded = ["businessService"],
|
|
36300
|
-
_excluded2 = ["tenantId", "businessService"],
|
|
36301
|
-
_excluded3 = ["tenantId", "businessService"];
|
|
36302
36492
|
var useFetchCitizenBillsForBuissnessService = function useFetchCitizenBillsForBuissnessService(_ref, config) {
|
|
36303
36493
|
var _Digit$UserService$ge;
|
|
36304
36494
|
|
|
36305
36495
|
var businessService = _ref.businessService,
|
|
36306
|
-
filters = _objectWithoutPropertiesLoose(_ref,
|
|
36496
|
+
filters = _objectWithoutPropertiesLoose(_ref, ["businessService"]);
|
|
36307
36497
|
|
|
36308
36498
|
if (config === void 0) {
|
|
36309
36499
|
config = {};
|
|
@@ -36350,7 +36540,7 @@ var useFetchBillsForBuissnessService = function useFetchBillsForBuissnessService
|
|
|
36350
36540
|
|
|
36351
36541
|
var tenantId = _ref3.tenantId,
|
|
36352
36542
|
businessService = _ref3.businessService,
|
|
36353
|
-
filters = _objectWithoutPropertiesLoose(_ref3,
|
|
36543
|
+
filters = _objectWithoutPropertiesLoose(_ref3, ["tenantId", "businessService"]);
|
|
36354
36544
|
|
|
36355
36545
|
if (config === void 0) {
|
|
36356
36546
|
config = {};
|
|
@@ -36480,7 +36670,7 @@ var useDemandSearch = function useDemandSearch(_ref6, config) {
|
|
|
36480
36670
|
var useRecieptSearch = function useRecieptSearch(_ref7, config) {
|
|
36481
36671
|
var tenantId = _ref7.tenantId,
|
|
36482
36672
|
businessService = _ref7.businessService,
|
|
36483
|
-
params = _objectWithoutPropertiesLoose(_ref7,
|
|
36673
|
+
params = _objectWithoutPropertiesLoose(_ref7, ["tenantId", "businessService"]);
|
|
36484
36674
|
|
|
36485
36675
|
if (config === void 0) {
|
|
36486
36676
|
config = {};
|
|
@@ -36953,9 +37143,6 @@ var getSearchFields = function getSearchFields(isInbox) {
|
|
|
36953
37143
|
return isInbox ? inboxSearchFields : searchFieldsForSearch;
|
|
36954
37144
|
};
|
|
36955
37145
|
|
|
36956
|
-
var _excluded$1 = ["totalCount"],
|
|
36957
|
-
_excluded2$1 = ["totalCount"];
|
|
36958
|
-
|
|
36959
37146
|
var inboxConfig = function inboxConfig(tenantId, filters) {
|
|
36960
37147
|
return {
|
|
36961
37148
|
PT: {
|
|
@@ -36996,7 +37183,7 @@ var inboxConfig = function inboxConfig(tenantId, filters) {
|
|
|
36996
37183
|
|
|
36997
37184
|
var defaultCombineResponse = function defaultCombineResponse(_ref, wf) {
|
|
36998
37185
|
var totalCount = _ref.totalCount,
|
|
36999
|
-
d = _objectWithoutPropertiesLoose(_ref,
|
|
37186
|
+
d = _objectWithoutPropertiesLoose(_ref, ["totalCount"]);
|
|
37000
37187
|
|
|
37001
37188
|
return {
|
|
37002
37189
|
totalCount: totalCount,
|
|
@@ -37009,7 +37196,7 @@ var defaultRawSearchHandler = function defaultRawSearchHandler(_ref2, searchKey,
|
|
|
37009
37196
|
var _ref3;
|
|
37010
37197
|
|
|
37011
37198
|
var totalCount = _ref2.totalCount,
|
|
37012
|
-
data = _objectWithoutPropertiesLoose(_ref2,
|
|
37199
|
+
data = _objectWithoutPropertiesLoose(_ref2, ["totalCount"]);
|
|
37013
37200
|
|
|
37014
37201
|
return _ref3 = {}, _ref3[searchKey] = data[searchKey].map(function (e) {
|
|
37015
37202
|
return _extends({
|
|
@@ -37028,29 +37215,33 @@ var defaultCatchSearch = function defaultCatchSearch(Err) {
|
|
|
37028
37215
|
};
|
|
37029
37216
|
|
|
37030
37217
|
var callMiddlewares = function callMiddlewares(data, middlewares) {
|
|
37031
|
-
|
|
37032
|
-
|
|
37218
|
+
try {
|
|
37219
|
+
var applyBreak = false;
|
|
37220
|
+
var itr = -1;
|
|
37033
37221
|
|
|
37034
|
-
|
|
37035
|
-
|
|
37036
|
-
|
|
37222
|
+
var _break = function _break() {
|
|
37223
|
+
return applyBreak = true;
|
|
37224
|
+
};
|
|
37037
37225
|
|
|
37038
|
-
|
|
37039
|
-
|
|
37040
|
-
|
|
37041
|
-
|
|
37042
|
-
|
|
37043
|
-
|
|
37044
|
-
|
|
37045
|
-
|
|
37046
|
-
|
|
37047
|
-
|
|
37048
|
-
|
|
37049
|
-
|
|
37226
|
+
var _next = function _next(data) {
|
|
37227
|
+
try {
|
|
37228
|
+
if (!applyBreak && ++itr < middlewares.length) {
|
|
37229
|
+
var key = Object.keys(middlewares[itr])[0];
|
|
37230
|
+
var nextMiddleware = middlewares[itr][key];
|
|
37231
|
+
var isAsync = nextMiddleware.constructor.name === "AsyncFunction";
|
|
37232
|
+
if (isAsync) return Promise.resolve(nextMiddleware(data, _break, _next));else return Promise.resolve(nextMiddleware(data, _break, _next));
|
|
37233
|
+
} else return Promise.resolve(data);
|
|
37234
|
+
} catch (e) {
|
|
37235
|
+
return Promise.reject(e);
|
|
37236
|
+
}
|
|
37237
|
+
};
|
|
37050
37238
|
|
|
37051
|
-
|
|
37052
|
-
|
|
37053
|
-
|
|
37239
|
+
return Promise.resolve(_next(data)).then(function (ret) {
|
|
37240
|
+
return ret || [];
|
|
37241
|
+
});
|
|
37242
|
+
} catch (e) {
|
|
37243
|
+
return Promise.reject(e);
|
|
37244
|
+
}
|
|
37054
37245
|
};
|
|
37055
37246
|
|
|
37056
37247
|
var useInboxGeneral = function useInboxGeneral(_ref4) {
|
|
@@ -40796,7 +40987,6 @@ var ReceiptsService = {
|
|
|
40796
40987
|
}
|
|
40797
40988
|
};
|
|
40798
40989
|
|
|
40799
|
-
var _excluded$2 = ["isLoading", "error", "data"];
|
|
40800
40990
|
var useReceiptsSearch = function useReceiptsSearch(searchparams, tenantId, filters, isupdated, config) {
|
|
40801
40991
|
if (config === void 0) {
|
|
40802
40992
|
config = {};
|
|
@@ -40811,7 +41001,7 @@ var useReceiptsSearch = function useReceiptsSearch(searchparams, tenantId, filte
|
|
|
40811
41001
|
isLoading = _useQuery.isLoading,
|
|
40812
41002
|
error = _useQuery.error,
|
|
40813
41003
|
data = _useQuery.data,
|
|
40814
|
-
rest = _objectWithoutPropertiesLoose(_useQuery,
|
|
41004
|
+
rest = _objectWithoutPropertiesLoose(_useQuery, ["isLoading", "error", "data"]);
|
|
40815
41005
|
|
|
40816
41006
|
return _extends({
|
|
40817
41007
|
isLoading: isLoading,
|