@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.
- package/dist/index.js +249 -60
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +249 -60
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
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({
|
|
@@ -220,7 +224,6 @@ var actionHandler = function actionHandler(action, id, fieldList) {
|
|
|
220
224
|
var index = getIndex(id, fieldList);
|
|
221
225
|
|
|
222
226
|
if (!action) {
|
|
223
|
-
console.log("no action found");
|
|
224
227
|
return;
|
|
225
228
|
}
|
|
226
229
|
|
|
@@ -637,10 +640,8 @@ var ServiceRequest = function ServiceRequest(_ref2) {
|
|
|
637
640
|
|
|
638
641
|
var _temp = function () {
|
|
639
642
|
if (window[postHookName] && typeof window[postHookName] === "function") {
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
return _await$window$postHoo;
|
|
643
|
-
});
|
|
643
|
+
_exit = true;
|
|
644
|
+
return Promise.resolve(window[postHookName](resData));
|
|
644
645
|
}
|
|
645
646
|
}();
|
|
646
647
|
|
|
@@ -2557,7 +2558,6 @@ var StoreService = {
|
|
|
2557
2558
|
},
|
|
2558
2559
|
defaultData: function (stateCode, moduleCode, language) {
|
|
2559
2560
|
try {
|
|
2560
|
-
console.log(moduleCode, stateCode);
|
|
2561
2561
|
var LocalePromise = LocalizationService.getLocale({
|
|
2562
2562
|
modules: ["rainmaker-" + moduleCode.toLowerCase()],
|
|
2563
2563
|
locale: language,
|
|
@@ -2762,8 +2762,6 @@ var LoginService = {
|
|
|
2762
2762
|
},
|
|
2763
2763
|
authenticate: function (details, stateCode) {
|
|
2764
2764
|
try {
|
|
2765
|
-
var _window, _window$globalConfigs;
|
|
2766
|
-
|
|
2767
2765
|
var params = new URLSearchParams();
|
|
2768
2766
|
Object.entries(details).forEach(function (_ref) {
|
|
2769
2767
|
var key = _ref[0],
|
|
@@ -2777,7 +2775,7 @@ var LoginService = {
|
|
|
2777
2775
|
method: "post",
|
|
2778
2776
|
params: params,
|
|
2779
2777
|
headers: {
|
|
2780
|
-
authorization: "Basic
|
|
2778
|
+
authorization: "Basic ZWdvdi11c2VyLWNsaWVudDo=",
|
|
2781
2779
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
2782
2780
|
}
|
|
2783
2781
|
};
|
|
@@ -3630,7 +3628,7 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3630
3628
|
(function () {
|
|
3631
3629
|
|
|
3632
3630
|
var enableSchedulerDebugging = false;
|
|
3633
|
-
var enableProfiling =
|
|
3631
|
+
var enableProfiling = true;
|
|
3634
3632
|
|
|
3635
3633
|
var _requestHostCallback;
|
|
3636
3634
|
|
|
@@ -3869,13 +3867,167 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3869
3867
|
return diff !== 0 ? diff : a.id - b.id;
|
|
3870
3868
|
}
|
|
3871
3869
|
|
|
3870
|
+
var NoPriority = 0;
|
|
3872
3871
|
var ImmediatePriority = 1;
|
|
3873
3872
|
var UserBlockingPriority = 2;
|
|
3874
3873
|
var NormalPriority = 3;
|
|
3875
3874
|
var LowPriority = 4;
|
|
3876
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
|
+
}
|
|
3918
|
+
|
|
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++;
|
|
3877
4017
|
|
|
3878
|
-
|
|
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
|
+
}
|
|
3879
4031
|
|
|
3880
4032
|
var maxSigned31BitInt = 1073741823;
|
|
3881
4033
|
var IMMEDIATE_PRIORITY_TIMEOUT = -1;
|
|
@@ -3902,6 +4054,10 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3902
4054
|
pop(timerQueue);
|
|
3903
4055
|
timer.sortIndex = timer.expirationTime;
|
|
3904
4056
|
push(taskQueue, timer);
|
|
4057
|
+
{
|
|
4058
|
+
markTaskStart(timer, currentTime);
|
|
4059
|
+
timer.isQueued = true;
|
|
4060
|
+
}
|
|
3905
4061
|
} else {
|
|
3906
4062
|
return;
|
|
3907
4063
|
}
|
|
@@ -3930,6 +4086,9 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3930
4086
|
}
|
|
3931
4087
|
|
|
3932
4088
|
function flushWork(hasTimeRemaining, initialTime) {
|
|
4089
|
+
{
|
|
4090
|
+
markSchedulerUnsuspended(initialTime);
|
|
4091
|
+
}
|
|
3933
4092
|
isHostCallbackScheduled = false;
|
|
3934
4093
|
|
|
3935
4094
|
if (isHostTimeoutScheduled) {
|
|
@@ -3960,6 +4119,11 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3960
4119
|
currentTask = null;
|
|
3961
4120
|
currentPriorityLevel = previousPriorityLevel;
|
|
3962
4121
|
isPerformingWork = false;
|
|
4122
|
+
{
|
|
4123
|
+
var _currentTime = exports.unstable_now();
|
|
4124
|
+
|
|
4125
|
+
markSchedulerSuspended(_currentTime);
|
|
4126
|
+
}
|
|
3963
4127
|
}
|
|
3964
4128
|
}
|
|
3965
4129
|
|
|
@@ -3979,12 +4143,19 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3979
4143
|
currentTask.callback = null;
|
|
3980
4144
|
currentPriorityLevel = currentTask.priorityLevel;
|
|
3981
4145
|
var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
|
|
4146
|
+
markTaskRun(currentTask, currentTime);
|
|
3982
4147
|
var continuationCallback = callback(didUserCallbackTimeout);
|
|
3983
4148
|
currentTime = exports.unstable_now();
|
|
3984
4149
|
|
|
3985
4150
|
if (typeof continuationCallback === 'function') {
|
|
3986
4151
|
currentTask.callback = continuationCallback;
|
|
4152
|
+
markTaskYield(currentTask, currentTime);
|
|
3987
4153
|
} else {
|
|
4154
|
+
{
|
|
4155
|
+
markTaskCompleted(currentTask, currentTime);
|
|
4156
|
+
currentTask.isQueued = false;
|
|
4157
|
+
}
|
|
4158
|
+
|
|
3988
4159
|
if (currentTask === peek(taskQueue)) {
|
|
3989
4160
|
pop(taskQueue);
|
|
3990
4161
|
}
|
|
@@ -4123,6 +4294,9 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
4123
4294
|
expirationTime: expirationTime,
|
|
4124
4295
|
sortIndex: -1
|
|
4125
4296
|
};
|
|
4297
|
+
{
|
|
4298
|
+
newTask.isQueued = false;
|
|
4299
|
+
}
|
|
4126
4300
|
|
|
4127
4301
|
if (startTime > currentTime) {
|
|
4128
4302
|
newTask.sortIndex = startTime;
|
|
@@ -4140,6 +4314,10 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
4140
4314
|
} else {
|
|
4141
4315
|
newTask.sortIndex = expirationTime;
|
|
4142
4316
|
push(taskQueue, newTask);
|
|
4317
|
+
{
|
|
4318
|
+
markTaskStart(newTask, currentTime);
|
|
4319
|
+
newTask.isQueued = true;
|
|
4320
|
+
}
|
|
4143
4321
|
|
|
4144
4322
|
if (!isHostCallbackScheduled && !isPerformingWork) {
|
|
4145
4323
|
isHostCallbackScheduled = true;
|
|
@@ -4166,6 +4344,13 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
4166
4344
|
}
|
|
4167
4345
|
|
|
4168
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
|
+
}
|
|
4169
4354
|
task.callback = null;
|
|
4170
4355
|
}
|
|
4171
4356
|
|
|
@@ -4174,7 +4359,11 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
4174
4359
|
}
|
|
4175
4360
|
|
|
4176
4361
|
var unstable_requestPaint = requestPaint;
|
|
4177
|
-
var unstable_Profiling =
|
|
4362
|
+
var unstable_Profiling = {
|
|
4363
|
+
startLoggingProfilingEvents: startLoggingProfilingEvents,
|
|
4364
|
+
stopLoggingProfilingEvents: stopLoggingProfilingEvents,
|
|
4365
|
+
sharedProfilingBuffer: sharedProfilingBuffer
|
|
4366
|
+
};
|
|
4178
4367
|
exports.unstable_IdlePriority = IdlePriority;
|
|
4179
4368
|
exports.unstable_ImmediatePriority = ImmediatePriority;
|
|
4180
4369
|
exports.unstable_LowPriority = LowPriority;
|
|
@@ -11779,7 +11968,7 @@ var vk = {
|
|
|
11779
11968
|
wk = {
|
|
11780
11969
|
findFiberByHostInstance: wc,
|
|
11781
11970
|
bundleType: 0,
|
|
11782
|
-
version: "17.0.
|
|
11971
|
+
version: "17.0.1",
|
|
11783
11972
|
rendererPackageName: "react-dom"
|
|
11784
11973
|
};
|
|
11785
11974
|
var xk = {
|
|
@@ -11877,7 +12066,7 @@ var unstable_renderSubtreeIntoContainer = function unstable_renderSubtreeIntoCon
|
|
|
11877
12066
|
return tk(a, b, c, !1, d);
|
|
11878
12067
|
};
|
|
11879
12068
|
|
|
11880
|
-
var version = "17.0.
|
|
12069
|
+
var version = "17.0.1";
|
|
11881
12070
|
var reactDom_production_min = {
|
|
11882
12071
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
|
11883
12072
|
createPortal: createPortal,
|
|
@@ -21344,7 +21533,7 @@ var reactDom_development = createCommonjsModule(function (module, exports) {
|
|
|
21344
21533
|
}
|
|
21345
21534
|
}
|
|
21346
21535
|
|
|
21347
|
-
var ReactVersion = '17.0.
|
|
21536
|
+
var ReactVersion = '17.0.1';
|
|
21348
21537
|
var NoMode = 0;
|
|
21349
21538
|
var StrictMode = 1;
|
|
21350
21539
|
var BlockingMode = 2;
|
|
@@ -28401,14 +28590,14 @@ var reactDom_development = createCommonjsModule(function (module, exports) {
|
|
|
28401
28590
|
cutOffTailIfNeeded(renderState, true);
|
|
28402
28591
|
|
|
28403
28592
|
if (renderState.tail === null && renderState.tailMode === 'hidden' && !renderedTail.alternate && !getIsHydrating()) {
|
|
28404
|
-
|
|
28593
|
+
var lastEffect = workInProgress.lastEffect = renderState.lastEffect;
|
|
28405
28594
|
|
|
28406
|
-
|
|
28407
|
-
|
|
28408
|
-
|
|
28595
|
+
if (lastEffect !== null) {
|
|
28596
|
+
lastEffect.nextEffect = null;
|
|
28597
|
+
}
|
|
28409
28598
|
|
|
28410
|
-
|
|
28411
|
-
|
|
28599
|
+
return null;
|
|
28600
|
+
}
|
|
28412
28601
|
} else if (now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane) {
|
|
28413
28602
|
workInProgress.flags |= DidCapture;
|
|
28414
28603
|
didSuspendAlready = true;
|
|
@@ -35451,8 +35640,6 @@ var Complaint = {
|
|
|
35451
35640
|
|
|
35452
35641
|
var UserService = {
|
|
35453
35642
|
authenticate: function authenticate(details) {
|
|
35454
|
-
var _window, _window$globalConfigs;
|
|
35455
|
-
|
|
35456
35643
|
var data = new URLSearchParams();
|
|
35457
35644
|
Object.entries(details).forEach(function (_ref) {
|
|
35458
35645
|
var key = _ref[0],
|
|
@@ -35466,7 +35653,7 @@ var UserService = {
|
|
|
35466
35653
|
url: Urls.Authenticate,
|
|
35467
35654
|
data: data,
|
|
35468
35655
|
headers: {
|
|
35469
|
-
authorization: "Basic
|
|
35656
|
+
authorization: "Basic ZWdvdi11c2VyLWNsaWVudDo=",
|
|
35470
35657
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
35471
35658
|
}
|
|
35472
35659
|
});
|
|
@@ -36259,9 +36446,7 @@ var useSessionStorage = function useSessionStorage(key, initialValue) {
|
|
|
36259
36446
|
var valueToStore = value instanceof Function ? value(storedValue) : value;
|
|
36260
36447
|
setStoredValue(valueToStore);
|
|
36261
36448
|
Digit.SessionStorage.set(key, valueToStore);
|
|
36262
|
-
} catch (err) {
|
|
36263
|
-
console.log(err);
|
|
36264
|
-
}
|
|
36449
|
+
} catch (err) {}
|
|
36265
36450
|
};
|
|
36266
36451
|
|
|
36267
36452
|
var clearValue = function clearValue() {
|
|
@@ -36304,14 +36489,11 @@ var useOnClickOutside = function useOnClickOutside(ref, handler, isActive) {
|
|
|
36304
36489
|
};
|
|
36305
36490
|
};
|
|
36306
36491
|
|
|
36307
|
-
var _excluded = ["businessService"],
|
|
36308
|
-
_excluded2 = ["tenantId", "businessService"],
|
|
36309
|
-
_excluded3 = ["tenantId", "businessService"];
|
|
36310
36492
|
var useFetchCitizenBillsForBuissnessService = function useFetchCitizenBillsForBuissnessService(_ref, config) {
|
|
36311
36493
|
var _Digit$UserService$ge;
|
|
36312
36494
|
|
|
36313
36495
|
var businessService = _ref.businessService,
|
|
36314
|
-
filters = _objectWithoutPropertiesLoose(_ref,
|
|
36496
|
+
filters = _objectWithoutPropertiesLoose(_ref, ["businessService"]);
|
|
36315
36497
|
|
|
36316
36498
|
if (config === void 0) {
|
|
36317
36499
|
config = {};
|
|
@@ -36358,7 +36540,7 @@ var useFetchBillsForBuissnessService = function useFetchBillsForBuissnessService
|
|
|
36358
36540
|
|
|
36359
36541
|
var tenantId = _ref3.tenantId,
|
|
36360
36542
|
businessService = _ref3.businessService,
|
|
36361
|
-
filters = _objectWithoutPropertiesLoose(_ref3,
|
|
36543
|
+
filters = _objectWithoutPropertiesLoose(_ref3, ["tenantId", "businessService"]);
|
|
36362
36544
|
|
|
36363
36545
|
if (config === void 0) {
|
|
36364
36546
|
config = {};
|
|
@@ -36377,7 +36559,6 @@ var useFetchBillsForBuissnessService = function useFetchBillsForBuissnessService
|
|
|
36377
36559
|
return Digit.PaymentService.fetchBill(_tenantId, params);
|
|
36378
36560
|
}, _extends({
|
|
36379
36561
|
retry: function retry(count, err) {
|
|
36380
|
-
console.log(err, "inside the payment hook");
|
|
36381
36562
|
return false;
|
|
36382
36563
|
}
|
|
36383
36564
|
}, config)),
|
|
@@ -36489,7 +36670,7 @@ var useDemandSearch = function useDemandSearch(_ref6, config) {
|
|
|
36489
36670
|
var useRecieptSearch = function useRecieptSearch(_ref7, config) {
|
|
36490
36671
|
var tenantId = _ref7.tenantId,
|
|
36491
36672
|
businessService = _ref7.businessService,
|
|
36492
|
-
params = _objectWithoutPropertiesLoose(_ref7,
|
|
36673
|
+
params = _objectWithoutPropertiesLoose(_ref7, ["tenantId", "businessService"]);
|
|
36493
36674
|
|
|
36494
36675
|
if (config === void 0) {
|
|
36495
36676
|
config = {};
|
|
@@ -36962,9 +37143,6 @@ var getSearchFields = function getSearchFields(isInbox) {
|
|
|
36962
37143
|
return isInbox ? inboxSearchFields : searchFieldsForSearch;
|
|
36963
37144
|
};
|
|
36964
37145
|
|
|
36965
|
-
var _excluded$1 = ["totalCount"],
|
|
36966
|
-
_excluded2$1 = ["totalCount"];
|
|
36967
|
-
|
|
36968
37146
|
var inboxConfig = function inboxConfig(tenantId, filters) {
|
|
36969
37147
|
return {
|
|
36970
37148
|
PT: {
|
|
@@ -37005,7 +37183,7 @@ var inboxConfig = function inboxConfig(tenantId, filters) {
|
|
|
37005
37183
|
|
|
37006
37184
|
var defaultCombineResponse = function defaultCombineResponse(_ref, wf) {
|
|
37007
37185
|
var totalCount = _ref.totalCount,
|
|
37008
|
-
d = _objectWithoutPropertiesLoose(_ref,
|
|
37186
|
+
d = _objectWithoutPropertiesLoose(_ref, ["totalCount"]);
|
|
37009
37187
|
|
|
37010
37188
|
return {
|
|
37011
37189
|
totalCount: totalCount,
|
|
@@ -37018,7 +37196,7 @@ var defaultRawSearchHandler = function defaultRawSearchHandler(_ref2, searchKey,
|
|
|
37018
37196
|
var _ref3;
|
|
37019
37197
|
|
|
37020
37198
|
var totalCount = _ref2.totalCount,
|
|
37021
|
-
data = _objectWithoutPropertiesLoose(_ref2,
|
|
37199
|
+
data = _objectWithoutPropertiesLoose(_ref2, ["totalCount"]);
|
|
37022
37200
|
|
|
37023
37201
|
return _ref3 = {}, _ref3[searchKey] = data[searchKey].map(function (e) {
|
|
37024
37202
|
return _extends({
|
|
@@ -37028,12 +37206,11 @@ var defaultRawSearchHandler = function defaultRawSearchHandler(_ref2, searchKey,
|
|
|
37028
37206
|
};
|
|
37029
37207
|
|
|
37030
37208
|
var defaultCatchSearch = function defaultCatchSearch(Err) {
|
|
37031
|
-
var _Err$response, _Err$response$data, _Err$response$data$Er
|
|
37209
|
+
var _Err$response, _Err$response$data, _Err$response$data$Er;
|
|
37032
37210
|
|
|
37033
37211
|
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) {
|
|
37034
37212
|
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";
|
|
37035
37213
|
})) return [];
|
|
37036
|
-
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");
|
|
37037
37214
|
throw Err;
|
|
37038
37215
|
};
|
|
37039
37216
|
|
|
@@ -37617,7 +37794,6 @@ var fetchComplaintDetails = function fetchComplaintDetails(tenantId, id) {
|
|
|
37617
37794
|
}) : null;
|
|
37618
37795
|
return ids ? Promise.resolve(getThumbnails(ids, service.tenantId)).then(_temp2) : _temp2(null);
|
|
37619
37796
|
} else {
|
|
37620
|
-
console.log("error fetching complaint details or service defs");
|
|
37621
37797
|
return {};
|
|
37622
37798
|
}
|
|
37623
37799
|
});
|
|
@@ -38318,6 +38494,9 @@ var useMDMS$1 = function useMDMS(tenantId, moduleCode, type, config, payload) {
|
|
|
38318
38494
|
|
|
38319
38495
|
case "PostFieldsConfig":
|
|
38320
38496
|
return usePostFieldsConfig();
|
|
38497
|
+
|
|
38498
|
+
default:
|
|
38499
|
+
return null;
|
|
38321
38500
|
}
|
|
38322
38501
|
};
|
|
38323
38502
|
|
|
@@ -39637,6 +39816,9 @@ var usePTGenderMDMS = function usePTGenderMDMS(tenantId, moduleCode, type, confi
|
|
|
39637
39816
|
switch (type) {
|
|
39638
39817
|
case "GenderType":
|
|
39639
39818
|
return usePTGenders();
|
|
39819
|
+
|
|
39820
|
+
default:
|
|
39821
|
+
return null;
|
|
39640
39822
|
}
|
|
39641
39823
|
};
|
|
39642
39824
|
|
|
@@ -39749,6 +39931,9 @@ var useMCollectMDMS = function useMCollectMDMS(tenantId, moduleCode, type, filte
|
|
|
39749
39931
|
|
|
39750
39932
|
case "applicationStatus":
|
|
39751
39933
|
return useMCollectApplcationStatus();
|
|
39934
|
+
|
|
39935
|
+
default:
|
|
39936
|
+
return null;
|
|
39752
39937
|
}
|
|
39753
39938
|
};
|
|
39754
39939
|
|
|
@@ -40492,6 +40677,9 @@ var useTLGenderMDMS = function useTLGenderMDMS(tenantId, moduleCode, type, confi
|
|
|
40492
40677
|
switch (type) {
|
|
40493
40678
|
case "GenderType":
|
|
40494
40679
|
return useTLGenders();
|
|
40680
|
+
|
|
40681
|
+
default:
|
|
40682
|
+
return null;
|
|
40495
40683
|
}
|
|
40496
40684
|
};
|
|
40497
40685
|
|
|
@@ -40799,7 +40987,6 @@ var ReceiptsService = {
|
|
|
40799
40987
|
}
|
|
40800
40988
|
};
|
|
40801
40989
|
|
|
40802
|
-
var _excluded$2 = ["isLoading", "error", "data"];
|
|
40803
40990
|
var useReceiptsSearch = function useReceiptsSearch(searchparams, tenantId, filters, isupdated, config) {
|
|
40804
40991
|
if (config === void 0) {
|
|
40805
40992
|
config = {};
|
|
@@ -40814,7 +41001,7 @@ var useReceiptsSearch = function useReceiptsSearch(searchparams, tenantId, filte
|
|
|
40814
41001
|
isLoading = _useQuery.isLoading,
|
|
40815
41002
|
error = _useQuery.error,
|
|
40816
41003
|
data = _useQuery.data,
|
|
40817
|
-
rest = _objectWithoutPropertiesLoose(_useQuery,
|
|
41004
|
+
rest = _objectWithoutPropertiesLoose(_useQuery, ["isLoading", "error", "data"]);
|
|
40818
41005
|
|
|
40819
41006
|
return _extends({
|
|
40820
41007
|
isLoading: isLoading,
|
|
@@ -40985,6 +41172,9 @@ var useReceiptsMDMS = function useReceiptsMDMS(tenantId, type, config) {
|
|
|
40985
41172
|
|
|
40986
41173
|
case "CancelReceiptReasonAndStatus":
|
|
40987
41174
|
return useCancelReceiptReasonAndStatus();
|
|
41175
|
+
|
|
41176
|
+
default:
|
|
41177
|
+
return null;
|
|
40988
41178
|
}
|
|
40989
41179
|
};
|
|
40990
41180
|
|
|
@@ -41144,7 +41334,6 @@ var mobileCheck = function mobileCheck() {
|
|
|
41144
41334
|
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;
|
|
41145
41335
|
})(navigator.userAgent || navigator.vendor || window.opera);
|
|
41146
41336
|
|
|
41147
|
-
console.log("check", check);
|
|
41148
41337
|
return check;
|
|
41149
41338
|
};
|
|
41150
41339
|
|