@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.modern.js
CHANGED
|
@@ -61,24 +61,28 @@ function _arrayLikeToArray(arr, len) {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
64
|
-
var it
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
|
|
84
|
+
it = o[Symbol.iterator]();
|
|
85
|
+
return it.next.bind(it);
|
|
82
86
|
}
|
|
83
87
|
|
|
84
88
|
var Pages = Object.freeze({
|
|
@@ -633,10 +637,8 @@ var ServiceRequest = function ServiceRequest(_ref2) {
|
|
|
633
637
|
|
|
634
638
|
var _temp = function () {
|
|
635
639
|
if (window[postHookName] && typeof window[postHookName] === "function") {
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
return _await$window$postHoo;
|
|
639
|
-
});
|
|
640
|
+
_exit = true;
|
|
641
|
+
return Promise.resolve(window[postHookName](resData));
|
|
640
642
|
}
|
|
641
643
|
}();
|
|
642
644
|
|
|
@@ -3623,7 +3625,7 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3623
3625
|
(function () {
|
|
3624
3626
|
|
|
3625
3627
|
var enableSchedulerDebugging = false;
|
|
3626
|
-
var enableProfiling =
|
|
3628
|
+
var enableProfiling = true;
|
|
3627
3629
|
|
|
3628
3630
|
var _requestHostCallback;
|
|
3629
3631
|
|
|
@@ -3862,13 +3864,167 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3862
3864
|
return diff !== 0 ? diff : a.id - b.id;
|
|
3863
3865
|
}
|
|
3864
3866
|
|
|
3867
|
+
var NoPriority = 0;
|
|
3865
3868
|
var ImmediatePriority = 1;
|
|
3866
3869
|
var UserBlockingPriority = 2;
|
|
3867
3870
|
var NormalPriority = 3;
|
|
3868
3871
|
var LowPriority = 4;
|
|
3869
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
|
+
}
|
|
3870
3915
|
|
|
3871
|
-
|
|
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++;
|
|
4014
|
+
|
|
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
|
+
}
|
|
3872
4028
|
|
|
3873
4029
|
var maxSigned31BitInt = 1073741823;
|
|
3874
4030
|
var IMMEDIATE_PRIORITY_TIMEOUT = -1;
|
|
@@ -3895,6 +4051,10 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3895
4051
|
pop(timerQueue);
|
|
3896
4052
|
timer.sortIndex = timer.expirationTime;
|
|
3897
4053
|
push(taskQueue, timer);
|
|
4054
|
+
{
|
|
4055
|
+
markTaskStart(timer, currentTime);
|
|
4056
|
+
timer.isQueued = true;
|
|
4057
|
+
}
|
|
3898
4058
|
} else {
|
|
3899
4059
|
return;
|
|
3900
4060
|
}
|
|
@@ -3923,6 +4083,9 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3923
4083
|
}
|
|
3924
4084
|
|
|
3925
4085
|
function flushWork(hasTimeRemaining, initialTime) {
|
|
4086
|
+
{
|
|
4087
|
+
markSchedulerUnsuspended(initialTime);
|
|
4088
|
+
}
|
|
3926
4089
|
isHostCallbackScheduled = false;
|
|
3927
4090
|
|
|
3928
4091
|
if (isHostTimeoutScheduled) {
|
|
@@ -3953,6 +4116,11 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3953
4116
|
currentTask = null;
|
|
3954
4117
|
currentPriorityLevel = previousPriorityLevel;
|
|
3955
4118
|
isPerformingWork = false;
|
|
4119
|
+
{
|
|
4120
|
+
var _currentTime = exports.unstable_now();
|
|
4121
|
+
|
|
4122
|
+
markSchedulerSuspended(_currentTime);
|
|
4123
|
+
}
|
|
3956
4124
|
}
|
|
3957
4125
|
}
|
|
3958
4126
|
|
|
@@ -3972,12 +4140,19 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3972
4140
|
currentTask.callback = null;
|
|
3973
4141
|
currentPriorityLevel = currentTask.priorityLevel;
|
|
3974
4142
|
var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
|
|
4143
|
+
markTaskRun(currentTask, currentTime);
|
|
3975
4144
|
var continuationCallback = callback(didUserCallbackTimeout);
|
|
3976
4145
|
currentTime = exports.unstable_now();
|
|
3977
4146
|
|
|
3978
4147
|
if (typeof continuationCallback === 'function') {
|
|
3979
4148
|
currentTask.callback = continuationCallback;
|
|
4149
|
+
markTaskYield(currentTask, currentTime);
|
|
3980
4150
|
} else {
|
|
4151
|
+
{
|
|
4152
|
+
markTaskCompleted(currentTask, currentTime);
|
|
4153
|
+
currentTask.isQueued = false;
|
|
4154
|
+
}
|
|
4155
|
+
|
|
3981
4156
|
if (currentTask === peek(taskQueue)) {
|
|
3982
4157
|
pop(taskQueue);
|
|
3983
4158
|
}
|
|
@@ -4116,6 +4291,9 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
4116
4291
|
expirationTime: expirationTime,
|
|
4117
4292
|
sortIndex: -1
|
|
4118
4293
|
};
|
|
4294
|
+
{
|
|
4295
|
+
newTask.isQueued = false;
|
|
4296
|
+
}
|
|
4119
4297
|
|
|
4120
4298
|
if (startTime > currentTime) {
|
|
4121
4299
|
newTask.sortIndex = startTime;
|
|
@@ -4133,6 +4311,10 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
4133
4311
|
} else {
|
|
4134
4312
|
newTask.sortIndex = expirationTime;
|
|
4135
4313
|
push(taskQueue, newTask);
|
|
4314
|
+
{
|
|
4315
|
+
markTaskStart(newTask, currentTime);
|
|
4316
|
+
newTask.isQueued = true;
|
|
4317
|
+
}
|
|
4136
4318
|
|
|
4137
4319
|
if (!isHostCallbackScheduled && !isPerformingWork) {
|
|
4138
4320
|
isHostCallbackScheduled = true;
|
|
@@ -4159,6 +4341,13 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
4159
4341
|
}
|
|
4160
4342
|
|
|
4161
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
|
+
}
|
|
4162
4351
|
task.callback = null;
|
|
4163
4352
|
}
|
|
4164
4353
|
|
|
@@ -4167,7 +4356,11 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
4167
4356
|
}
|
|
4168
4357
|
|
|
4169
4358
|
var unstable_requestPaint = requestPaint;
|
|
4170
|
-
var unstable_Profiling =
|
|
4359
|
+
var unstable_Profiling = {
|
|
4360
|
+
startLoggingProfilingEvents: startLoggingProfilingEvents,
|
|
4361
|
+
stopLoggingProfilingEvents: stopLoggingProfilingEvents,
|
|
4362
|
+
sharedProfilingBuffer: sharedProfilingBuffer
|
|
4363
|
+
};
|
|
4171
4364
|
exports.unstable_IdlePriority = IdlePriority;
|
|
4172
4365
|
exports.unstable_ImmediatePriority = ImmediatePriority;
|
|
4173
4366
|
exports.unstable_LowPriority = LowPriority;
|
|
@@ -11772,7 +11965,7 @@ var vk = {
|
|
|
11772
11965
|
wk = {
|
|
11773
11966
|
findFiberByHostInstance: wc,
|
|
11774
11967
|
bundleType: 0,
|
|
11775
|
-
version: "17.0.
|
|
11968
|
+
version: "17.0.1",
|
|
11776
11969
|
rendererPackageName: "react-dom"
|
|
11777
11970
|
};
|
|
11778
11971
|
var xk = {
|
|
@@ -11870,7 +12063,7 @@ var unstable_renderSubtreeIntoContainer = function unstable_renderSubtreeIntoCon
|
|
|
11870
12063
|
return tk(a, b, c, !1, d);
|
|
11871
12064
|
};
|
|
11872
12065
|
|
|
11873
|
-
var version = "17.0.
|
|
12066
|
+
var version = "17.0.1";
|
|
11874
12067
|
var reactDom_production_min = {
|
|
11875
12068
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
|
11876
12069
|
createPortal: createPortal,
|
|
@@ -21337,7 +21530,7 @@ var reactDom_development = createCommonjsModule(function (module, exports) {
|
|
|
21337
21530
|
}
|
|
21338
21531
|
}
|
|
21339
21532
|
|
|
21340
|
-
var ReactVersion = '17.0.
|
|
21533
|
+
var ReactVersion = '17.0.1';
|
|
21341
21534
|
var NoMode = 0;
|
|
21342
21535
|
var StrictMode = 1;
|
|
21343
21536
|
var BlockingMode = 2;
|
|
@@ -28394,14 +28587,14 @@ var reactDom_development = createCommonjsModule(function (module, exports) {
|
|
|
28394
28587
|
cutOffTailIfNeeded(renderState, true);
|
|
28395
28588
|
|
|
28396
28589
|
if (renderState.tail === null && renderState.tailMode === 'hidden' && !renderedTail.alternate && !getIsHydrating()) {
|
|
28397
|
-
|
|
28590
|
+
var lastEffect = workInProgress.lastEffect = renderState.lastEffect;
|
|
28398
28591
|
|
|
28399
|
-
|
|
28400
|
-
|
|
28401
|
-
|
|
28592
|
+
if (lastEffect !== null) {
|
|
28593
|
+
lastEffect.nextEffect = null;
|
|
28594
|
+
}
|
|
28402
28595
|
|
|
28403
|
-
|
|
28404
|
-
|
|
28596
|
+
return null;
|
|
28597
|
+
}
|
|
28405
28598
|
} else if (now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane) {
|
|
28406
28599
|
workInProgress.flags |= DidCapture;
|
|
28407
28600
|
didSuspendAlready = true;
|
|
@@ -36293,14 +36486,11 @@ var useOnClickOutside = function useOnClickOutside(ref, handler, isActive) {
|
|
|
36293
36486
|
};
|
|
36294
36487
|
};
|
|
36295
36488
|
|
|
36296
|
-
var _excluded = ["businessService"],
|
|
36297
|
-
_excluded2 = ["tenantId", "businessService"],
|
|
36298
|
-
_excluded3 = ["tenantId", "businessService"];
|
|
36299
36489
|
var useFetchCitizenBillsForBuissnessService = function useFetchCitizenBillsForBuissnessService(_ref, config) {
|
|
36300
36490
|
var _Digit$UserService$ge;
|
|
36301
36491
|
|
|
36302
36492
|
var businessService = _ref.businessService,
|
|
36303
|
-
filters = _objectWithoutPropertiesLoose(_ref,
|
|
36493
|
+
filters = _objectWithoutPropertiesLoose(_ref, ["businessService"]);
|
|
36304
36494
|
|
|
36305
36495
|
if (config === void 0) {
|
|
36306
36496
|
config = {};
|
|
@@ -36347,7 +36537,7 @@ var useFetchBillsForBuissnessService = function useFetchBillsForBuissnessService
|
|
|
36347
36537
|
|
|
36348
36538
|
var tenantId = _ref3.tenantId,
|
|
36349
36539
|
businessService = _ref3.businessService,
|
|
36350
|
-
filters = _objectWithoutPropertiesLoose(_ref3,
|
|
36540
|
+
filters = _objectWithoutPropertiesLoose(_ref3, ["tenantId", "businessService"]);
|
|
36351
36541
|
|
|
36352
36542
|
if (config === void 0) {
|
|
36353
36543
|
config = {};
|
|
@@ -36477,7 +36667,7 @@ var useDemandSearch = function useDemandSearch(_ref6, config) {
|
|
|
36477
36667
|
var useRecieptSearch = function useRecieptSearch(_ref7, config) {
|
|
36478
36668
|
var tenantId = _ref7.tenantId,
|
|
36479
36669
|
businessService = _ref7.businessService,
|
|
36480
|
-
params = _objectWithoutPropertiesLoose(_ref7,
|
|
36670
|
+
params = _objectWithoutPropertiesLoose(_ref7, ["tenantId", "businessService"]);
|
|
36481
36671
|
|
|
36482
36672
|
if (config === void 0) {
|
|
36483
36673
|
config = {};
|
|
@@ -36950,9 +37140,6 @@ var getSearchFields = function getSearchFields(isInbox) {
|
|
|
36950
37140
|
return isInbox ? inboxSearchFields : searchFieldsForSearch;
|
|
36951
37141
|
};
|
|
36952
37142
|
|
|
36953
|
-
var _excluded$1 = ["totalCount"],
|
|
36954
|
-
_excluded2$1 = ["totalCount"];
|
|
36955
|
-
|
|
36956
37143
|
var inboxConfig = function inboxConfig(tenantId, filters) {
|
|
36957
37144
|
return {
|
|
36958
37145
|
PT: {
|
|
@@ -36993,7 +37180,7 @@ var inboxConfig = function inboxConfig(tenantId, filters) {
|
|
|
36993
37180
|
|
|
36994
37181
|
var defaultCombineResponse = function defaultCombineResponse(_ref, wf) {
|
|
36995
37182
|
var totalCount = _ref.totalCount,
|
|
36996
|
-
d = _objectWithoutPropertiesLoose(_ref,
|
|
37183
|
+
d = _objectWithoutPropertiesLoose(_ref, ["totalCount"]);
|
|
36997
37184
|
|
|
36998
37185
|
return {
|
|
36999
37186
|
totalCount: totalCount,
|
|
@@ -37006,7 +37193,7 @@ var defaultRawSearchHandler = function defaultRawSearchHandler(_ref2, searchKey,
|
|
|
37006
37193
|
var _ref3;
|
|
37007
37194
|
|
|
37008
37195
|
var totalCount = _ref2.totalCount,
|
|
37009
|
-
data = _objectWithoutPropertiesLoose(_ref2,
|
|
37196
|
+
data = _objectWithoutPropertiesLoose(_ref2, ["totalCount"]);
|
|
37010
37197
|
|
|
37011
37198
|
return _ref3 = {}, _ref3[searchKey] = data[searchKey].map(function (e) {
|
|
37012
37199
|
return _extends({
|
|
@@ -37025,29 +37212,33 @@ var defaultCatchSearch = function defaultCatchSearch(Err) {
|
|
|
37025
37212
|
};
|
|
37026
37213
|
|
|
37027
37214
|
var callMiddlewares = function callMiddlewares(data, middlewares) {
|
|
37028
|
-
|
|
37029
|
-
|
|
37215
|
+
try {
|
|
37216
|
+
var applyBreak = false;
|
|
37217
|
+
var itr = -1;
|
|
37030
37218
|
|
|
37031
|
-
|
|
37032
|
-
|
|
37033
|
-
|
|
37219
|
+
var _break = function _break() {
|
|
37220
|
+
return applyBreak = true;
|
|
37221
|
+
};
|
|
37034
37222
|
|
|
37035
|
-
|
|
37036
|
-
|
|
37037
|
-
|
|
37038
|
-
|
|
37039
|
-
|
|
37040
|
-
|
|
37041
|
-
|
|
37042
|
-
|
|
37043
|
-
|
|
37044
|
-
|
|
37045
|
-
|
|
37046
|
-
|
|
37223
|
+
var _next = function _next(data) {
|
|
37224
|
+
try {
|
|
37225
|
+
if (!applyBreak && ++itr < middlewares.length) {
|
|
37226
|
+
var key = Object.keys(middlewares[itr])[0];
|
|
37227
|
+
var nextMiddleware = middlewares[itr][key];
|
|
37228
|
+
var isAsync = nextMiddleware.constructor.name === "AsyncFunction";
|
|
37229
|
+
if (isAsync) return Promise.resolve(nextMiddleware(data, _break, _next));else return Promise.resolve(nextMiddleware(data, _break, _next));
|
|
37230
|
+
} else return Promise.resolve(data);
|
|
37231
|
+
} catch (e) {
|
|
37232
|
+
return Promise.reject(e);
|
|
37233
|
+
}
|
|
37234
|
+
};
|
|
37047
37235
|
|
|
37048
|
-
|
|
37049
|
-
|
|
37050
|
-
|
|
37236
|
+
return Promise.resolve(_next(data)).then(function (ret) {
|
|
37237
|
+
return ret || [];
|
|
37238
|
+
});
|
|
37239
|
+
} catch (e) {
|
|
37240
|
+
return Promise.reject(e);
|
|
37241
|
+
}
|
|
37051
37242
|
};
|
|
37052
37243
|
|
|
37053
37244
|
var useInboxGeneral = function useInboxGeneral(_ref4) {
|
|
@@ -40793,7 +40984,6 @@ var ReceiptsService = {
|
|
|
40793
40984
|
}
|
|
40794
40985
|
};
|
|
40795
40986
|
|
|
40796
|
-
var _excluded$2 = ["isLoading", "error", "data"];
|
|
40797
40987
|
var useReceiptsSearch = function useReceiptsSearch(searchparams, tenantId, filters, isupdated, config) {
|
|
40798
40988
|
if (config === void 0) {
|
|
40799
40989
|
config = {};
|
|
@@ -40808,7 +40998,7 @@ var useReceiptsSearch = function useReceiptsSearch(searchparams, tenantId, filte
|
|
|
40808
40998
|
isLoading = _useQuery.isLoading,
|
|
40809
40999
|
error = _useQuery.error,
|
|
40810
41000
|
data = _useQuery.data,
|
|
40811
|
-
rest = _objectWithoutPropertiesLoose(_useQuery,
|
|
41001
|
+
rest = _objectWithoutPropertiesLoose(_useQuery, ["isLoading", "error", "data"]);
|
|
40812
41002
|
|
|
40813
41003
|
return _extends({
|
|
40814
41004
|
isLoading: isLoading,
|