@mseva/upyog-ui-module-chb 1.0.3 → 1.0.5
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 +37397 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1488 -361
- package/dist/index.modern.js.map +1 -1
- package/package.json +3 -3
package/dist/index.modern.js
CHANGED
|
@@ -19180,8 +19180,8 @@ ListCache.prototype.has = _listCacheHas;
|
|
|
19180
19180
|
ListCache.prototype.set = _listCacheSet;
|
|
19181
19181
|
var _ListCache = ListCache;
|
|
19182
19182
|
|
|
19183
|
-
var Map = _getNative(_root, 'Map');
|
|
19184
|
-
var _Map = Map;
|
|
19183
|
+
var Map$1 = _getNative(_root, 'Map');
|
|
19184
|
+
var _Map = Map$1;
|
|
19185
19185
|
|
|
19186
19186
|
function mapCacheClear() {
|
|
19187
19187
|
this.size = 0;
|
|
@@ -30804,6 +30804,818 @@ const ActionModal$b = props => {
|
|
|
30804
30804
|
}
|
|
30805
30805
|
};
|
|
30806
30806
|
|
|
30807
|
+
var bind = function bind(fn, thisArg) {
|
|
30808
|
+
return function wrap() {
|
|
30809
|
+
var args = new Array(arguments.length);
|
|
30810
|
+
for (var i = 0; i < args.length; i++) {
|
|
30811
|
+
args[i] = arguments[i];
|
|
30812
|
+
}
|
|
30813
|
+
return fn.apply(thisArg, args);
|
|
30814
|
+
};
|
|
30815
|
+
};
|
|
30816
|
+
|
|
30817
|
+
var toString$1 = Object.prototype.toString;
|
|
30818
|
+
function isArray$1(val) {
|
|
30819
|
+
return toString$1.call(val) === '[object Array]';
|
|
30820
|
+
}
|
|
30821
|
+
function isUndefined(val) {
|
|
30822
|
+
return typeof val === 'undefined';
|
|
30823
|
+
}
|
|
30824
|
+
function isBuffer(val) {
|
|
30825
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
|
|
30826
|
+
}
|
|
30827
|
+
function isArrayBuffer(val) {
|
|
30828
|
+
return toString$1.call(val) === '[object ArrayBuffer]';
|
|
30829
|
+
}
|
|
30830
|
+
function isFormData(val) {
|
|
30831
|
+
return typeof FormData !== 'undefined' && val instanceof FormData;
|
|
30832
|
+
}
|
|
30833
|
+
function isArrayBufferView(val) {
|
|
30834
|
+
var result;
|
|
30835
|
+
if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
|
|
30836
|
+
result = ArrayBuffer.isView(val);
|
|
30837
|
+
} else {
|
|
30838
|
+
result = val && val.buffer && val.buffer instanceof ArrayBuffer;
|
|
30839
|
+
}
|
|
30840
|
+
return result;
|
|
30841
|
+
}
|
|
30842
|
+
function isString(val) {
|
|
30843
|
+
return typeof val === 'string';
|
|
30844
|
+
}
|
|
30845
|
+
function isNumber(val) {
|
|
30846
|
+
return typeof val === 'number';
|
|
30847
|
+
}
|
|
30848
|
+
function isObject$1(val) {
|
|
30849
|
+
return val !== null && typeof val === 'object';
|
|
30850
|
+
}
|
|
30851
|
+
function isPlainObject(val) {
|
|
30852
|
+
if (toString$1.call(val) !== '[object Object]') {
|
|
30853
|
+
return false;
|
|
30854
|
+
}
|
|
30855
|
+
var prototype = Object.getPrototypeOf(val);
|
|
30856
|
+
return prototype === null || prototype === Object.prototype;
|
|
30857
|
+
}
|
|
30858
|
+
function isDate$1(val) {
|
|
30859
|
+
return toString$1.call(val) === '[object Date]';
|
|
30860
|
+
}
|
|
30861
|
+
function isFile(val) {
|
|
30862
|
+
return toString$1.call(val) === '[object File]';
|
|
30863
|
+
}
|
|
30864
|
+
function isBlob(val) {
|
|
30865
|
+
return toString$1.call(val) === '[object Blob]';
|
|
30866
|
+
}
|
|
30867
|
+
function isFunction$1(val) {
|
|
30868
|
+
return toString$1.call(val) === '[object Function]';
|
|
30869
|
+
}
|
|
30870
|
+
function isStream(val) {
|
|
30871
|
+
return isObject$1(val) && isFunction$1(val.pipe);
|
|
30872
|
+
}
|
|
30873
|
+
function isURLSearchParams(val) {
|
|
30874
|
+
return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
|
|
30875
|
+
}
|
|
30876
|
+
function trim(str) {
|
|
30877
|
+
return str.replace(/^\s*/, '').replace(/\s*$/, '');
|
|
30878
|
+
}
|
|
30879
|
+
function isStandardBrowserEnv() {
|
|
30880
|
+
if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) {
|
|
30881
|
+
return false;
|
|
30882
|
+
}
|
|
30883
|
+
return typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
30884
|
+
}
|
|
30885
|
+
function forEach(obj, fn) {
|
|
30886
|
+
if (obj === null || typeof obj === 'undefined') {
|
|
30887
|
+
return;
|
|
30888
|
+
}
|
|
30889
|
+
if (typeof obj !== 'object') {
|
|
30890
|
+
obj = [obj];
|
|
30891
|
+
}
|
|
30892
|
+
if (isArray$1(obj)) {
|
|
30893
|
+
for (var i = 0, l = obj.length; i < l; i++) {
|
|
30894
|
+
fn.call(null, obj[i], i, obj);
|
|
30895
|
+
}
|
|
30896
|
+
} else {
|
|
30897
|
+
for (var key in obj) {
|
|
30898
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
30899
|
+
fn.call(null, obj[key], key, obj);
|
|
30900
|
+
}
|
|
30901
|
+
}
|
|
30902
|
+
}
|
|
30903
|
+
}
|
|
30904
|
+
function merge() {
|
|
30905
|
+
var result = {};
|
|
30906
|
+
function assignValue(val, key) {
|
|
30907
|
+
if (isPlainObject(result[key]) && isPlainObject(val)) {
|
|
30908
|
+
result[key] = merge(result[key], val);
|
|
30909
|
+
} else if (isPlainObject(val)) {
|
|
30910
|
+
result[key] = merge({}, val);
|
|
30911
|
+
} else if (isArray$1(val)) {
|
|
30912
|
+
result[key] = val.slice();
|
|
30913
|
+
} else {
|
|
30914
|
+
result[key] = val;
|
|
30915
|
+
}
|
|
30916
|
+
}
|
|
30917
|
+
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
30918
|
+
forEach(arguments[i], assignValue);
|
|
30919
|
+
}
|
|
30920
|
+
return result;
|
|
30921
|
+
}
|
|
30922
|
+
function extend(a, b, thisArg) {
|
|
30923
|
+
forEach(b, function assignValue(val, key) {
|
|
30924
|
+
if (thisArg && typeof val === 'function') {
|
|
30925
|
+
a[key] = bind(val, thisArg);
|
|
30926
|
+
} else {
|
|
30927
|
+
a[key] = val;
|
|
30928
|
+
}
|
|
30929
|
+
});
|
|
30930
|
+
return a;
|
|
30931
|
+
}
|
|
30932
|
+
function stripBOM(content) {
|
|
30933
|
+
if (content.charCodeAt(0) === 0xFEFF) {
|
|
30934
|
+
content = content.slice(1);
|
|
30935
|
+
}
|
|
30936
|
+
return content;
|
|
30937
|
+
}
|
|
30938
|
+
var utils$1 = {
|
|
30939
|
+
isArray: isArray$1,
|
|
30940
|
+
isArrayBuffer: isArrayBuffer,
|
|
30941
|
+
isBuffer: isBuffer,
|
|
30942
|
+
isFormData: isFormData,
|
|
30943
|
+
isArrayBufferView: isArrayBufferView,
|
|
30944
|
+
isString: isString,
|
|
30945
|
+
isNumber: isNumber,
|
|
30946
|
+
isObject: isObject$1,
|
|
30947
|
+
isPlainObject: isPlainObject,
|
|
30948
|
+
isUndefined: isUndefined,
|
|
30949
|
+
isDate: isDate$1,
|
|
30950
|
+
isFile: isFile,
|
|
30951
|
+
isBlob: isBlob,
|
|
30952
|
+
isFunction: isFunction$1,
|
|
30953
|
+
isStream: isStream,
|
|
30954
|
+
isURLSearchParams: isURLSearchParams,
|
|
30955
|
+
isStandardBrowserEnv: isStandardBrowserEnv,
|
|
30956
|
+
forEach: forEach,
|
|
30957
|
+
merge: merge,
|
|
30958
|
+
extend: extend,
|
|
30959
|
+
trim: trim,
|
|
30960
|
+
stripBOM: stripBOM
|
|
30961
|
+
};
|
|
30962
|
+
|
|
30963
|
+
function encode(val) {
|
|
30964
|
+
return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
|
|
30965
|
+
}
|
|
30966
|
+
var buildURL = function buildURL(url, params, paramsSerializer) {
|
|
30967
|
+
if (!params) {
|
|
30968
|
+
return url;
|
|
30969
|
+
}
|
|
30970
|
+
var serializedParams;
|
|
30971
|
+
if (paramsSerializer) {
|
|
30972
|
+
serializedParams = paramsSerializer(params);
|
|
30973
|
+
} else if (utils$1.isURLSearchParams(params)) {
|
|
30974
|
+
serializedParams = params.toString();
|
|
30975
|
+
} else {
|
|
30976
|
+
var parts = [];
|
|
30977
|
+
utils$1.forEach(params, function serialize(val, key) {
|
|
30978
|
+
if (val === null || typeof val === 'undefined') {
|
|
30979
|
+
return;
|
|
30980
|
+
}
|
|
30981
|
+
if (utils$1.isArray(val)) {
|
|
30982
|
+
key = key + '[]';
|
|
30983
|
+
} else {
|
|
30984
|
+
val = [val];
|
|
30985
|
+
}
|
|
30986
|
+
utils$1.forEach(val, function parseValue(v) {
|
|
30987
|
+
if (utils$1.isDate(v)) {
|
|
30988
|
+
v = v.toISOString();
|
|
30989
|
+
} else if (utils$1.isObject(v)) {
|
|
30990
|
+
v = JSON.stringify(v);
|
|
30991
|
+
}
|
|
30992
|
+
parts.push(encode(key) + '=' + encode(v));
|
|
30993
|
+
});
|
|
30994
|
+
});
|
|
30995
|
+
serializedParams = parts.join('&');
|
|
30996
|
+
}
|
|
30997
|
+
if (serializedParams) {
|
|
30998
|
+
var hashmarkIndex = url.indexOf('#');
|
|
30999
|
+
if (hashmarkIndex !== -1) {
|
|
31000
|
+
url = url.slice(0, hashmarkIndex);
|
|
31001
|
+
}
|
|
31002
|
+
url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
|
|
31003
|
+
}
|
|
31004
|
+
return url;
|
|
31005
|
+
};
|
|
31006
|
+
|
|
31007
|
+
function InterceptorManager() {
|
|
31008
|
+
this.handlers = [];
|
|
31009
|
+
}
|
|
31010
|
+
InterceptorManager.prototype.use = function use(fulfilled, rejected) {
|
|
31011
|
+
this.handlers.push({
|
|
31012
|
+
fulfilled: fulfilled,
|
|
31013
|
+
rejected: rejected
|
|
31014
|
+
});
|
|
31015
|
+
return this.handlers.length - 1;
|
|
31016
|
+
};
|
|
31017
|
+
InterceptorManager.prototype.eject = function eject(id) {
|
|
31018
|
+
if (this.handlers[id]) {
|
|
31019
|
+
this.handlers[id] = null;
|
|
31020
|
+
}
|
|
31021
|
+
};
|
|
31022
|
+
InterceptorManager.prototype.forEach = function forEach(fn) {
|
|
31023
|
+
utils$1.forEach(this.handlers, function forEachHandler(h) {
|
|
31024
|
+
if (h !== null) {
|
|
31025
|
+
fn(h);
|
|
31026
|
+
}
|
|
31027
|
+
});
|
|
31028
|
+
};
|
|
31029
|
+
var InterceptorManager_1 = InterceptorManager;
|
|
31030
|
+
|
|
31031
|
+
var transformData = function transformData(data, headers, fns) {
|
|
31032
|
+
utils$1.forEach(fns, function transform(fn) {
|
|
31033
|
+
data = fn(data, headers);
|
|
31034
|
+
});
|
|
31035
|
+
return data;
|
|
31036
|
+
};
|
|
31037
|
+
|
|
31038
|
+
var isCancel = function isCancel(value) {
|
|
31039
|
+
return !!(value && value.__CANCEL__);
|
|
31040
|
+
};
|
|
31041
|
+
|
|
31042
|
+
var normalizeHeaderName = function normalizeHeaderName(headers, normalizedName) {
|
|
31043
|
+
utils$1.forEach(headers, function processHeader(value, name) {
|
|
31044
|
+
if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
|
|
31045
|
+
headers[normalizedName] = value;
|
|
31046
|
+
delete headers[name];
|
|
31047
|
+
}
|
|
31048
|
+
});
|
|
31049
|
+
};
|
|
31050
|
+
|
|
31051
|
+
var enhanceError = function enhanceError(error, config, code, request, response) {
|
|
31052
|
+
error.config = config;
|
|
31053
|
+
if (code) {
|
|
31054
|
+
error.code = code;
|
|
31055
|
+
}
|
|
31056
|
+
error.request = request;
|
|
31057
|
+
error.response = response;
|
|
31058
|
+
error.isAxiosError = true;
|
|
31059
|
+
error.toJSON = function toJSON() {
|
|
31060
|
+
return {
|
|
31061
|
+
message: this.message,
|
|
31062
|
+
name: this.name,
|
|
31063
|
+
description: this.description,
|
|
31064
|
+
number: this.number,
|
|
31065
|
+
fileName: this.fileName,
|
|
31066
|
+
lineNumber: this.lineNumber,
|
|
31067
|
+
columnNumber: this.columnNumber,
|
|
31068
|
+
stack: this.stack,
|
|
31069
|
+
config: this.config,
|
|
31070
|
+
code: this.code
|
|
31071
|
+
};
|
|
31072
|
+
};
|
|
31073
|
+
return error;
|
|
31074
|
+
};
|
|
31075
|
+
|
|
31076
|
+
var createError = function createError(message, config, code, request, response) {
|
|
31077
|
+
var error = new Error(message);
|
|
31078
|
+
return enhanceError(error, config, code, request, response);
|
|
31079
|
+
};
|
|
31080
|
+
|
|
31081
|
+
var settle = function settle(resolve, reject, response) {
|
|
31082
|
+
var validateStatus = response.config.validateStatus;
|
|
31083
|
+
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
31084
|
+
resolve(response);
|
|
31085
|
+
} else {
|
|
31086
|
+
reject(createError('Request failed with status code ' + response.status, response.config, null, response.request, response));
|
|
31087
|
+
}
|
|
31088
|
+
};
|
|
31089
|
+
|
|
31090
|
+
var cookies = utils$1.isStandardBrowserEnv() ? function standardBrowserEnv() {
|
|
31091
|
+
return {
|
|
31092
|
+
write: function write(name, value, expires, path, domain, secure) {
|
|
31093
|
+
var cookie = [];
|
|
31094
|
+
cookie.push(name + '=' + encodeURIComponent(value));
|
|
31095
|
+
if (utils$1.isNumber(expires)) {
|
|
31096
|
+
cookie.push('expires=' + new Date(expires).toGMTString());
|
|
31097
|
+
}
|
|
31098
|
+
if (utils$1.isString(path)) {
|
|
31099
|
+
cookie.push('path=' + path);
|
|
31100
|
+
}
|
|
31101
|
+
if (utils$1.isString(domain)) {
|
|
31102
|
+
cookie.push('domain=' + domain);
|
|
31103
|
+
}
|
|
31104
|
+
if (secure === true) {
|
|
31105
|
+
cookie.push('secure');
|
|
31106
|
+
}
|
|
31107
|
+
document.cookie = cookie.join('; ');
|
|
31108
|
+
},
|
|
31109
|
+
read: function read(name) {
|
|
31110
|
+
var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
|
|
31111
|
+
return match ? decodeURIComponent(match[3]) : null;
|
|
31112
|
+
},
|
|
31113
|
+
remove: function remove(name) {
|
|
31114
|
+
this.write(name, '', Date.now() - 86400000);
|
|
31115
|
+
}
|
|
31116
|
+
};
|
|
31117
|
+
}() : function nonStandardBrowserEnv() {
|
|
31118
|
+
return {
|
|
31119
|
+
write: function write() {},
|
|
31120
|
+
read: function read() {
|
|
31121
|
+
return null;
|
|
31122
|
+
},
|
|
31123
|
+
remove: function remove() {}
|
|
31124
|
+
};
|
|
31125
|
+
}();
|
|
31126
|
+
|
|
31127
|
+
var isAbsoluteURL = function isAbsoluteURL(url) {
|
|
31128
|
+
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
|
|
31129
|
+
};
|
|
31130
|
+
|
|
31131
|
+
var combineURLs = function combineURLs(baseURL, relativeURL) {
|
|
31132
|
+
return relativeURL ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL;
|
|
31133
|
+
};
|
|
31134
|
+
|
|
31135
|
+
var buildFullPath = function buildFullPath(baseURL, requestedURL) {
|
|
31136
|
+
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
31137
|
+
return combineURLs(baseURL, requestedURL);
|
|
31138
|
+
}
|
|
31139
|
+
return requestedURL;
|
|
31140
|
+
};
|
|
31141
|
+
|
|
31142
|
+
var ignoreDuplicateOf = ['age', 'authorization', 'content-length', 'content-type', 'etag', 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 'referer', 'retry-after', 'user-agent'];
|
|
31143
|
+
var parseHeaders = function parseHeaders(headers) {
|
|
31144
|
+
var parsed = {};
|
|
31145
|
+
var key;
|
|
31146
|
+
var val;
|
|
31147
|
+
var i;
|
|
31148
|
+
if (!headers) {
|
|
31149
|
+
return parsed;
|
|
31150
|
+
}
|
|
31151
|
+
utils$1.forEach(headers.split('\n'), function parser(line) {
|
|
31152
|
+
i = line.indexOf(':');
|
|
31153
|
+
key = utils$1.trim(line.substr(0, i)).toLowerCase();
|
|
31154
|
+
val = utils$1.trim(line.substr(i + 1));
|
|
31155
|
+
if (key) {
|
|
31156
|
+
if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
|
|
31157
|
+
return;
|
|
31158
|
+
}
|
|
31159
|
+
if (key === 'set-cookie') {
|
|
31160
|
+
parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
|
|
31161
|
+
} else {
|
|
31162
|
+
parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
|
|
31163
|
+
}
|
|
31164
|
+
}
|
|
31165
|
+
});
|
|
31166
|
+
return parsed;
|
|
31167
|
+
};
|
|
31168
|
+
|
|
31169
|
+
var isURLSameOrigin = utils$1.isStandardBrowserEnv() ? function standardBrowserEnv() {
|
|
31170
|
+
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
31171
|
+
var urlParsingNode = document.createElement('a');
|
|
31172
|
+
var originURL;
|
|
31173
|
+
function resolveURL(url) {
|
|
31174
|
+
var href = url;
|
|
31175
|
+
if (msie) {
|
|
31176
|
+
urlParsingNode.setAttribute('href', href);
|
|
31177
|
+
href = urlParsingNode.href;
|
|
31178
|
+
}
|
|
31179
|
+
urlParsingNode.setAttribute('href', href);
|
|
31180
|
+
return {
|
|
31181
|
+
href: urlParsingNode.href,
|
|
31182
|
+
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
|
|
31183
|
+
host: urlParsingNode.host,
|
|
31184
|
+
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
|
|
31185
|
+
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
|
|
31186
|
+
hostname: urlParsingNode.hostname,
|
|
31187
|
+
port: urlParsingNode.port,
|
|
31188
|
+
pathname: urlParsingNode.pathname.charAt(0) === '/' ? urlParsingNode.pathname : '/' + urlParsingNode.pathname
|
|
31189
|
+
};
|
|
31190
|
+
}
|
|
31191
|
+
originURL = resolveURL(window.location.href);
|
|
31192
|
+
return function isURLSameOrigin(requestURL) {
|
|
31193
|
+
var parsed = utils$1.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
31194
|
+
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
31195
|
+
};
|
|
31196
|
+
}() : function nonStandardBrowserEnv() {
|
|
31197
|
+
return function isURLSameOrigin() {
|
|
31198
|
+
return true;
|
|
31199
|
+
};
|
|
31200
|
+
}();
|
|
31201
|
+
|
|
31202
|
+
var xhr = function xhrAdapter(config) {
|
|
31203
|
+
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
31204
|
+
var requestData = config.data;
|
|
31205
|
+
var requestHeaders = config.headers;
|
|
31206
|
+
if (utils$1.isFormData(requestData)) {
|
|
31207
|
+
delete requestHeaders['Content-Type'];
|
|
31208
|
+
}
|
|
31209
|
+
var request = new XMLHttpRequest();
|
|
31210
|
+
if (config.auth) {
|
|
31211
|
+
var username = config.auth.username || '';
|
|
31212
|
+
var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
|
|
31213
|
+
requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
|
|
31214
|
+
}
|
|
31215
|
+
var fullPath = buildFullPath(config.baseURL, config.url);
|
|
31216
|
+
request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
|
|
31217
|
+
request.timeout = config.timeout;
|
|
31218
|
+
request.onreadystatechange = function handleLoad() {
|
|
31219
|
+
if (!request || request.readyState !== 4) {
|
|
31220
|
+
return;
|
|
31221
|
+
}
|
|
31222
|
+
if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
|
|
31223
|
+
return;
|
|
31224
|
+
}
|
|
31225
|
+
var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
|
|
31226
|
+
var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
|
|
31227
|
+
var response = {
|
|
31228
|
+
data: responseData,
|
|
31229
|
+
status: request.status,
|
|
31230
|
+
statusText: request.statusText,
|
|
31231
|
+
headers: responseHeaders,
|
|
31232
|
+
config: config,
|
|
31233
|
+
request: request
|
|
31234
|
+
};
|
|
31235
|
+
settle(resolve, reject, response);
|
|
31236
|
+
request = null;
|
|
31237
|
+
};
|
|
31238
|
+
request.onabort = function handleAbort() {
|
|
31239
|
+
if (!request) {
|
|
31240
|
+
return;
|
|
31241
|
+
}
|
|
31242
|
+
reject(createError('Request aborted', config, 'ECONNABORTED', request));
|
|
31243
|
+
request = null;
|
|
31244
|
+
};
|
|
31245
|
+
request.onerror = function handleError() {
|
|
31246
|
+
reject(createError('Network Error', config, null, request));
|
|
31247
|
+
request = null;
|
|
31248
|
+
};
|
|
31249
|
+
request.ontimeout = function handleTimeout() {
|
|
31250
|
+
var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
|
|
31251
|
+
if (config.timeoutErrorMessage) {
|
|
31252
|
+
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
31253
|
+
}
|
|
31254
|
+
reject(createError(timeoutErrorMessage, config, 'ECONNABORTED', request));
|
|
31255
|
+
request = null;
|
|
31256
|
+
};
|
|
31257
|
+
if (utils$1.isStandardBrowserEnv()) {
|
|
31258
|
+
var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : undefined;
|
|
31259
|
+
if (xsrfValue) {
|
|
31260
|
+
requestHeaders[config.xsrfHeaderName] = xsrfValue;
|
|
31261
|
+
}
|
|
31262
|
+
}
|
|
31263
|
+
if ('setRequestHeader' in request) {
|
|
31264
|
+
utils$1.forEach(requestHeaders, function setRequestHeader(val, key) {
|
|
31265
|
+
if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
|
|
31266
|
+
delete requestHeaders[key];
|
|
31267
|
+
} else {
|
|
31268
|
+
request.setRequestHeader(key, val);
|
|
31269
|
+
}
|
|
31270
|
+
});
|
|
31271
|
+
}
|
|
31272
|
+
if (!utils$1.isUndefined(config.withCredentials)) {
|
|
31273
|
+
request.withCredentials = !!config.withCredentials;
|
|
31274
|
+
}
|
|
31275
|
+
if (config.responseType) {
|
|
31276
|
+
try {
|
|
31277
|
+
request.responseType = config.responseType;
|
|
31278
|
+
} catch (e) {
|
|
31279
|
+
if (config.responseType !== 'json') {
|
|
31280
|
+
throw e;
|
|
31281
|
+
}
|
|
31282
|
+
}
|
|
31283
|
+
}
|
|
31284
|
+
if (typeof config.onDownloadProgress === 'function') {
|
|
31285
|
+
request.addEventListener('progress', config.onDownloadProgress);
|
|
31286
|
+
}
|
|
31287
|
+
if (typeof config.onUploadProgress === 'function' && request.upload) {
|
|
31288
|
+
request.upload.addEventListener('progress', config.onUploadProgress);
|
|
31289
|
+
}
|
|
31290
|
+
if (config.cancelToken) {
|
|
31291
|
+
config.cancelToken.promise.then(function onCanceled(cancel) {
|
|
31292
|
+
if (!request) {
|
|
31293
|
+
return;
|
|
31294
|
+
}
|
|
31295
|
+
request.abort();
|
|
31296
|
+
reject(cancel);
|
|
31297
|
+
request = null;
|
|
31298
|
+
});
|
|
31299
|
+
}
|
|
31300
|
+
if (!requestData) {
|
|
31301
|
+
requestData = null;
|
|
31302
|
+
}
|
|
31303
|
+
request.send(requestData);
|
|
31304
|
+
});
|
|
31305
|
+
};
|
|
31306
|
+
|
|
31307
|
+
var DEFAULT_CONTENT_TYPE = {
|
|
31308
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
31309
|
+
};
|
|
31310
|
+
function setContentTypeIfUnset(headers, value) {
|
|
31311
|
+
if (!utils$1.isUndefined(headers) && utils$1.isUndefined(headers['Content-Type'])) {
|
|
31312
|
+
headers['Content-Type'] = value;
|
|
31313
|
+
}
|
|
31314
|
+
}
|
|
31315
|
+
function getDefaultAdapter() {
|
|
31316
|
+
var adapter;
|
|
31317
|
+
if (typeof XMLHttpRequest !== 'undefined') {
|
|
31318
|
+
adapter = xhr;
|
|
31319
|
+
} else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
|
|
31320
|
+
adapter = xhr;
|
|
31321
|
+
}
|
|
31322
|
+
return adapter;
|
|
31323
|
+
}
|
|
31324
|
+
var defaults = {
|
|
31325
|
+
adapter: getDefaultAdapter(),
|
|
31326
|
+
transformRequest: [function transformRequest(data, headers) {
|
|
31327
|
+
normalizeHeaderName(headers, 'Accept');
|
|
31328
|
+
normalizeHeaderName(headers, 'Content-Type');
|
|
31329
|
+
if (utils$1.isFormData(data) || utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data)) {
|
|
31330
|
+
return data;
|
|
31331
|
+
}
|
|
31332
|
+
if (utils$1.isArrayBufferView(data)) {
|
|
31333
|
+
return data.buffer;
|
|
31334
|
+
}
|
|
31335
|
+
if (utils$1.isURLSearchParams(data)) {
|
|
31336
|
+
setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
|
|
31337
|
+
return data.toString();
|
|
31338
|
+
}
|
|
31339
|
+
if (utils$1.isObject(data)) {
|
|
31340
|
+
setContentTypeIfUnset(headers, 'application/json;charset=utf-8');
|
|
31341
|
+
return JSON.stringify(data);
|
|
31342
|
+
}
|
|
31343
|
+
return data;
|
|
31344
|
+
}],
|
|
31345
|
+
transformResponse: [function transformResponse(data) {
|
|
31346
|
+
if (typeof data === 'string') {
|
|
31347
|
+
try {
|
|
31348
|
+
data = JSON.parse(data);
|
|
31349
|
+
} catch (e) {}
|
|
31350
|
+
}
|
|
31351
|
+
return data;
|
|
31352
|
+
}],
|
|
31353
|
+
timeout: 0,
|
|
31354
|
+
xsrfCookieName: 'XSRF-TOKEN',
|
|
31355
|
+
xsrfHeaderName: 'X-XSRF-TOKEN',
|
|
31356
|
+
maxContentLength: -1,
|
|
31357
|
+
maxBodyLength: -1,
|
|
31358
|
+
validateStatus: function validateStatus(status) {
|
|
31359
|
+
return status >= 200 && status < 300;
|
|
31360
|
+
}
|
|
31361
|
+
};
|
|
31362
|
+
defaults.headers = {
|
|
31363
|
+
common: {
|
|
31364
|
+
'Accept': 'application/json, text/plain, */*'
|
|
31365
|
+
}
|
|
31366
|
+
};
|
|
31367
|
+
utils$1.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
|
|
31368
|
+
defaults.headers[method] = {};
|
|
31369
|
+
});
|
|
31370
|
+
utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
31371
|
+
defaults.headers[method] = utils$1.merge(DEFAULT_CONTENT_TYPE);
|
|
31372
|
+
});
|
|
31373
|
+
var defaults_1 = defaults;
|
|
31374
|
+
|
|
31375
|
+
function throwIfCancellationRequested(config) {
|
|
31376
|
+
if (config.cancelToken) {
|
|
31377
|
+
config.cancelToken.throwIfRequested();
|
|
31378
|
+
}
|
|
31379
|
+
}
|
|
31380
|
+
var dispatchRequest = function dispatchRequest(config) {
|
|
31381
|
+
throwIfCancellationRequested(config);
|
|
31382
|
+
config.headers = config.headers || {};
|
|
31383
|
+
config.data = transformData(config.data, config.headers, config.transformRequest);
|
|
31384
|
+
config.headers = utils$1.merge(config.headers.common || {}, config.headers[config.method] || {}, config.headers);
|
|
31385
|
+
utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function cleanHeaderConfig(method) {
|
|
31386
|
+
delete config.headers[method];
|
|
31387
|
+
});
|
|
31388
|
+
var adapter = config.adapter || defaults_1.adapter;
|
|
31389
|
+
return adapter(config).then(function onAdapterResolution(response) {
|
|
31390
|
+
throwIfCancellationRequested(config);
|
|
31391
|
+
response.data = transformData(response.data, response.headers, config.transformResponse);
|
|
31392
|
+
return response;
|
|
31393
|
+
}, function onAdapterRejection(reason) {
|
|
31394
|
+
if (!isCancel(reason)) {
|
|
31395
|
+
throwIfCancellationRequested(config);
|
|
31396
|
+
if (reason && reason.response) {
|
|
31397
|
+
reason.response.data = transformData(reason.response.data, reason.response.headers, config.transformResponse);
|
|
31398
|
+
}
|
|
31399
|
+
}
|
|
31400
|
+
return Promise.reject(reason);
|
|
31401
|
+
});
|
|
31402
|
+
};
|
|
31403
|
+
|
|
31404
|
+
var mergeConfig = function mergeConfig(config1, config2) {
|
|
31405
|
+
config2 = config2 || {};
|
|
31406
|
+
var config = {};
|
|
31407
|
+
var valueFromConfig2Keys = ['url', 'method', 'data'];
|
|
31408
|
+
var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];
|
|
31409
|
+
var defaultToConfig2Keys = ['baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer', 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress', 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent', 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'];
|
|
31410
|
+
var directMergeKeys = ['validateStatus'];
|
|
31411
|
+
function getMergedValue(target, source) {
|
|
31412
|
+
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
31413
|
+
return utils$1.merge(target, source);
|
|
31414
|
+
} else if (utils$1.isPlainObject(source)) {
|
|
31415
|
+
return utils$1.merge({}, source);
|
|
31416
|
+
} else if (utils$1.isArray(source)) {
|
|
31417
|
+
return source.slice();
|
|
31418
|
+
}
|
|
31419
|
+
return source;
|
|
31420
|
+
}
|
|
31421
|
+
function mergeDeepProperties(prop) {
|
|
31422
|
+
if (!utils$1.isUndefined(config2[prop])) {
|
|
31423
|
+
config[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
31424
|
+
} else if (!utils$1.isUndefined(config1[prop])) {
|
|
31425
|
+
config[prop] = getMergedValue(undefined, config1[prop]);
|
|
31426
|
+
}
|
|
31427
|
+
}
|
|
31428
|
+
utils$1.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
|
|
31429
|
+
if (!utils$1.isUndefined(config2[prop])) {
|
|
31430
|
+
config[prop] = getMergedValue(undefined, config2[prop]);
|
|
31431
|
+
}
|
|
31432
|
+
});
|
|
31433
|
+
utils$1.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
|
|
31434
|
+
utils$1.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
|
|
31435
|
+
if (!utils$1.isUndefined(config2[prop])) {
|
|
31436
|
+
config[prop] = getMergedValue(undefined, config2[prop]);
|
|
31437
|
+
} else if (!utils$1.isUndefined(config1[prop])) {
|
|
31438
|
+
config[prop] = getMergedValue(undefined, config1[prop]);
|
|
31439
|
+
}
|
|
31440
|
+
});
|
|
31441
|
+
utils$1.forEach(directMergeKeys, function merge(prop) {
|
|
31442
|
+
if (prop in config2) {
|
|
31443
|
+
config[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
31444
|
+
} else if (prop in config1) {
|
|
31445
|
+
config[prop] = getMergedValue(undefined, config1[prop]);
|
|
31446
|
+
}
|
|
31447
|
+
});
|
|
31448
|
+
var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);
|
|
31449
|
+
var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(function filterAxiosKeys(key) {
|
|
31450
|
+
return axiosKeys.indexOf(key) === -1;
|
|
31451
|
+
});
|
|
31452
|
+
utils$1.forEach(otherKeys, mergeDeepProperties);
|
|
31453
|
+
return config;
|
|
31454
|
+
};
|
|
31455
|
+
|
|
31456
|
+
function Axios(instanceConfig) {
|
|
31457
|
+
this.defaults = instanceConfig;
|
|
31458
|
+
this.interceptors = {
|
|
31459
|
+
request: new InterceptorManager_1(),
|
|
31460
|
+
response: new InterceptorManager_1()
|
|
31461
|
+
};
|
|
31462
|
+
}
|
|
31463
|
+
Axios.prototype.request = function request(config) {
|
|
31464
|
+
if (typeof config === 'string') {
|
|
31465
|
+
config = arguments[1] || {};
|
|
31466
|
+
config.url = arguments[0];
|
|
31467
|
+
} else {
|
|
31468
|
+
config = config || {};
|
|
31469
|
+
}
|
|
31470
|
+
config = mergeConfig(this.defaults, config);
|
|
31471
|
+
if (config.method) {
|
|
31472
|
+
config.method = config.method.toLowerCase();
|
|
31473
|
+
} else if (this.defaults.method) {
|
|
31474
|
+
config.method = this.defaults.method.toLowerCase();
|
|
31475
|
+
} else {
|
|
31476
|
+
config.method = 'get';
|
|
31477
|
+
}
|
|
31478
|
+
var chain = [dispatchRequest, undefined];
|
|
31479
|
+
var promise = Promise.resolve(config);
|
|
31480
|
+
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
31481
|
+
chain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
31482
|
+
});
|
|
31483
|
+
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
31484
|
+
chain.push(interceptor.fulfilled, interceptor.rejected);
|
|
31485
|
+
});
|
|
31486
|
+
while (chain.length) {
|
|
31487
|
+
promise = promise.then(chain.shift(), chain.shift());
|
|
31488
|
+
}
|
|
31489
|
+
return promise;
|
|
31490
|
+
};
|
|
31491
|
+
Axios.prototype.getUri = function getUri(config) {
|
|
31492
|
+
config = mergeConfig(this.defaults, config);
|
|
31493
|
+
return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
|
|
31494
|
+
};
|
|
31495
|
+
utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
|
|
31496
|
+
Axios.prototype[method] = function (url, config) {
|
|
31497
|
+
return this.request(mergeConfig(config || {}, {
|
|
31498
|
+
method: method,
|
|
31499
|
+
url: url,
|
|
31500
|
+
data: (config || {}).data
|
|
31501
|
+
}));
|
|
31502
|
+
};
|
|
31503
|
+
});
|
|
31504
|
+
utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
31505
|
+
Axios.prototype[method] = function (url, data, config) {
|
|
31506
|
+
return this.request(mergeConfig(config || {}, {
|
|
31507
|
+
method: method,
|
|
31508
|
+
url: url,
|
|
31509
|
+
data: data
|
|
31510
|
+
}));
|
|
31511
|
+
};
|
|
31512
|
+
});
|
|
31513
|
+
var Axios_1 = Axios;
|
|
31514
|
+
|
|
31515
|
+
function Cancel(message) {
|
|
31516
|
+
this.message = message;
|
|
31517
|
+
}
|
|
31518
|
+
Cancel.prototype.toString = function toString() {
|
|
31519
|
+
return 'Cancel' + (this.message ? ': ' + this.message : '');
|
|
31520
|
+
};
|
|
31521
|
+
Cancel.prototype.__CANCEL__ = true;
|
|
31522
|
+
var Cancel_1 = Cancel;
|
|
31523
|
+
|
|
31524
|
+
function CancelToken(executor) {
|
|
31525
|
+
if (typeof executor !== 'function') {
|
|
31526
|
+
throw new TypeError('executor must be a function.');
|
|
31527
|
+
}
|
|
31528
|
+
var resolvePromise;
|
|
31529
|
+
this.promise = new Promise(function promiseExecutor(resolve) {
|
|
31530
|
+
resolvePromise = resolve;
|
|
31531
|
+
});
|
|
31532
|
+
var token = this;
|
|
31533
|
+
executor(function cancel(message) {
|
|
31534
|
+
if (token.reason) {
|
|
31535
|
+
return;
|
|
31536
|
+
}
|
|
31537
|
+
token.reason = new Cancel_1(message);
|
|
31538
|
+
resolvePromise(token.reason);
|
|
31539
|
+
});
|
|
31540
|
+
}
|
|
31541
|
+
CancelToken.prototype.throwIfRequested = function throwIfRequested() {
|
|
31542
|
+
if (this.reason) {
|
|
31543
|
+
throw this.reason;
|
|
31544
|
+
}
|
|
31545
|
+
};
|
|
31546
|
+
CancelToken.source = function source() {
|
|
31547
|
+
var cancel;
|
|
31548
|
+
var token = new CancelToken(function executor(c) {
|
|
31549
|
+
cancel = c;
|
|
31550
|
+
});
|
|
31551
|
+
return {
|
|
31552
|
+
token: token,
|
|
31553
|
+
cancel: cancel
|
|
31554
|
+
};
|
|
31555
|
+
};
|
|
31556
|
+
var CancelToken_1 = CancelToken;
|
|
31557
|
+
|
|
31558
|
+
var spread = function spread(callback) {
|
|
31559
|
+
return function wrap(arr) {
|
|
31560
|
+
return callback.apply(null, arr);
|
|
31561
|
+
};
|
|
31562
|
+
};
|
|
31563
|
+
|
|
31564
|
+
var isAxiosError = function isAxiosError(payload) {
|
|
31565
|
+
return typeof payload === 'object' && payload.isAxiosError === true;
|
|
31566
|
+
};
|
|
31567
|
+
|
|
31568
|
+
function createInstance(defaultConfig) {
|
|
31569
|
+
var context = new Axios_1(defaultConfig);
|
|
31570
|
+
var instance = bind(Axios_1.prototype.request, context);
|
|
31571
|
+
utils$1.extend(instance, Axios_1.prototype, context);
|
|
31572
|
+
utils$1.extend(instance, context);
|
|
31573
|
+
return instance;
|
|
31574
|
+
}
|
|
31575
|
+
var axios = createInstance(defaults_1);
|
|
31576
|
+
axios.Axios = Axios_1;
|
|
31577
|
+
axios.create = function create(instanceConfig) {
|
|
31578
|
+
return createInstance(mergeConfig(axios.defaults, instanceConfig));
|
|
31579
|
+
};
|
|
31580
|
+
axios.Cancel = Cancel_1;
|
|
31581
|
+
axios.CancelToken = CancelToken_1;
|
|
31582
|
+
axios.isCancel = isCancel;
|
|
31583
|
+
axios.all = function all(promises) {
|
|
31584
|
+
return Promise.all(promises);
|
|
31585
|
+
};
|
|
31586
|
+
axios.spread = spread;
|
|
31587
|
+
axios.isAxiosError = isAxiosError;
|
|
31588
|
+
var axios_1 = axios;
|
|
31589
|
+
var _default = axios;
|
|
31590
|
+
axios_1.default = _default;
|
|
31591
|
+
|
|
31592
|
+
var axios$1 = axios_1;
|
|
31593
|
+
|
|
31594
|
+
axios$1.interceptors.response.use(res => res, err => {
|
|
31595
|
+
var _err$response, _err$response$data;
|
|
31596
|
+
const isEmployee = window.location.pathname.split("/").includes("employee");
|
|
31597
|
+
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.Errors) {
|
|
31598
|
+
for (const error of err.response.data.Errors) {
|
|
31599
|
+
var _error$message, _error$message$toLowe, _error$message2, _error$message2$toLow;
|
|
31600
|
+
if (error.message.includes("InvalidAccessTokenException")) {
|
|
31601
|
+
localStorage.clear();
|
|
31602
|
+
sessionStorage.clear();
|
|
31603
|
+
window.location.href = (isEmployee ? "/digit-ui/employee/user/login" : "/digit-ui/citizen/login") + `?from=${encodeURIComponent(window.location.pathname + window.location.search)}`;
|
|
31604
|
+
} else if (error !== null && error !== void 0 && (_error$message = error.message) !== null && _error$message !== void 0 && (_error$message$toLowe = _error$message.toLowerCase()) !== null && _error$message$toLowe !== void 0 && _error$message$toLowe.includes("internal server error") || error !== null && error !== void 0 && (_error$message2 = error.message) !== null && _error$message2 !== void 0 && (_error$message2$toLow = _error$message2.toLowerCase()) !== null && _error$message2$toLow !== void 0 && _error$message2$toLow.includes("some error occured")) {
|
|
31605
|
+
window.location.href = (isEmployee ? "/digit-ui/employee/user/error" : "/digit-ui/citizen/error") + `?type=maintenance&from=${encodeURIComponent(window.location.pathname + window.location.search)}`;
|
|
31606
|
+
} else if (error.message.includes("ZuulRuntimeException")) {
|
|
31607
|
+
window.location.href = (isEmployee ? "/digit-ui/employee/user/error" : "/digit-ui/citizen/error") + `?type=notfound&from=${encodeURIComponent(window.location.pathname + window.location.search)}`;
|
|
31608
|
+
}
|
|
31609
|
+
}
|
|
31610
|
+
}
|
|
31611
|
+
throw err;
|
|
31612
|
+
});
|
|
31613
|
+
window.Digit = window.Digit || {};
|
|
31614
|
+
window.Digit = {
|
|
31615
|
+
...window.Digit,
|
|
31616
|
+
RequestCache: window.Digit.RequestCache || {}
|
|
31617
|
+
};
|
|
31618
|
+
|
|
30807
31619
|
function DocumentsPreview({
|
|
30808
31620
|
documents,
|
|
30809
31621
|
svgStyles = {},
|
|
@@ -33567,218 +34379,421 @@ const ViewBreakup = ({
|
|
|
33567
34379
|
})))));
|
|
33568
34380
|
};
|
|
33569
34381
|
|
|
33570
|
-
const
|
|
33571
|
-
|
|
33572
|
-
|
|
33573
|
-
marginTop: "2px",
|
|
33574
|
-
overflowX: "auto",
|
|
33575
|
-
boxShadow: "none"
|
|
33576
|
-
},
|
|
33577
|
-
table: {
|
|
33578
|
-
minWidth: 700,
|
|
33579
|
-
backgroundColor: "rgba(250, 250, 250, var(--bg-opacity))"
|
|
33580
|
-
},
|
|
33581
|
-
cell: {
|
|
33582
|
-
maxWidth: "7em",
|
|
33583
|
-
minWidth: "1em",
|
|
33584
|
-
border: "1px solid #e8e7e6",
|
|
33585
|
-
padding: "4px 5px",
|
|
33586
|
-
fontSize: "0.8em",
|
|
33587
|
-
textAlign: "left",
|
|
33588
|
-
lineHeight: "1.5em"
|
|
33589
|
-
},
|
|
33590
|
-
cellHeader: {
|
|
33591
|
-
overflow: "hidden",
|
|
33592
|
-
textOverflow: "ellipsis"
|
|
33593
|
-
},
|
|
33594
|
-
cellLeft: {},
|
|
33595
|
-
cellRight: {}
|
|
33596
|
-
};
|
|
33597
|
-
const ArrearTable = ({
|
|
33598
|
-
className: _className = "table",
|
|
33599
|
-
headers: _headers = [],
|
|
33600
|
-
values: _values = [],
|
|
33601
|
-
arrears: _arrears = 0
|
|
34382
|
+
const AssessmentHistory = ({
|
|
34383
|
+
assessmentData,
|
|
34384
|
+
applicationData
|
|
33602
34385
|
}) => {
|
|
34386
|
+
const history = useHistory();
|
|
33603
34387
|
const {
|
|
33604
34388
|
t
|
|
33605
34389
|
} = useTranslation();
|
|
33606
|
-
|
|
33607
|
-
|
|
33608
|
-
|
|
33609
|
-
|
|
33610
|
-
|
|
33611
|
-
|
|
34390
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
34391
|
+
const toggleAccordion = () => {
|
|
34392
|
+
setIsOpen(!isOpen);
|
|
34393
|
+
};
|
|
34394
|
+
function formatAssessmentDate(timestamp) {
|
|
34395
|
+
const date = new Date(timestamp);
|
|
34396
|
+
const options = {
|
|
34397
|
+
day: '2-digit',
|
|
34398
|
+
month: 'short',
|
|
34399
|
+
year: 'numeric'
|
|
34400
|
+
};
|
|
34401
|
+
return date.toLocaleDateString('en-GB', options).replace(/ /g, '-');
|
|
34402
|
+
}
|
|
34403
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
34404
|
+
className: "accordion",
|
|
33612
34405
|
style: {
|
|
33613
|
-
|
|
33614
|
-
|
|
33615
|
-
|
|
34406
|
+
width: "100%",
|
|
34407
|
+
margin: "auto",
|
|
34408
|
+
fontFamily: "Roboto, sans-serif",
|
|
34409
|
+
border: "1px solid #ccc",
|
|
34410
|
+
borderRadius: "4px",
|
|
34411
|
+
marginBottom: '10px'
|
|
33616
34412
|
}
|
|
33617
|
-
},
|
|
33618
|
-
|
|
33619
|
-
return /*#__PURE__*/React.createElement("th", {
|
|
33620
|
-
style: {
|
|
33621
|
-
...styles$1.cell,
|
|
33622
|
-
...styleRight,
|
|
33623
|
-
...styles$1.cellHeader
|
|
33624
|
-
},
|
|
33625
|
-
key: ind
|
|
33626
|
-
}, t(header));
|
|
33627
|
-
}))), /*#__PURE__*/React.createElement("tbody", null, Object.values(_values).map((row, ind) => /*#__PURE__*/React.createElement("tr", {
|
|
33628
|
-
key: ind
|
|
33629
|
-
}, /*#__PURE__*/React.createElement("td", {
|
|
34413
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
34414
|
+
className: "accordion-header",
|
|
33630
34415
|
style: {
|
|
33631
|
-
|
|
33632
|
-
|
|
34416
|
+
backgroundColor: "#f0f0f0",
|
|
34417
|
+
padding: "15px",
|
|
34418
|
+
cursor: "pointer"
|
|
33633
34419
|
},
|
|
33634
|
-
|
|
33635
|
-
|
|
33636
|
-
}, Object.keys(_values)[ind]), _headers.map((header, i) => {
|
|
33637
|
-
let styleRight = _headers.length == i + 1 ? styles$1.cellRight : {};
|
|
33638
|
-
return /*#__PURE__*/React.createElement("td", {
|
|
33639
|
-
style: {
|
|
33640
|
-
...styles$1.cell,
|
|
33641
|
-
textAlign: "left",
|
|
33642
|
-
...styleRight,
|
|
33643
|
-
whiteSpace: "pre"
|
|
33644
|
-
},
|
|
33645
|
-
key: i,
|
|
33646
|
-
numeric: true
|
|
33647
|
-
}, i > 1 && "₹", row[header] && row[header]["value"] || "0");
|
|
33648
|
-
}))), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
|
|
34420
|
+
onClick: toggleAccordion
|
|
34421
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
33649
34422
|
style: {
|
|
33650
|
-
|
|
33651
|
-
|
|
34423
|
+
display: "flex",
|
|
34424
|
+
justifyContent: "space-between",
|
|
34425
|
+
alignItems: 'center'
|
|
33652
34426
|
}
|
|
33653
|
-
}
|
|
33654
|
-
|
|
33655
|
-
|
|
33656
|
-
|
|
33657
|
-
|
|
33658
|
-
|
|
33659
|
-
|
|
33660
|
-
|
|
33661
|
-
|
|
33662
|
-
|
|
33663
|
-
|
|
33664
|
-
|
|
33665
|
-
|
|
33666
|
-
|
|
33667
|
-
|
|
33668
|
-
|
|
33669
|
-
|
|
33670
|
-
|
|
33671
|
-
|
|
33672
|
-
|
|
33673
|
-
|
|
33674
|
-
|
|
33675
|
-
|
|
33676
|
-
|
|
33677
|
-
|
|
33678
|
-
|
|
33679
|
-
|
|
34427
|
+
}, /*#__PURE__*/React.createElement("h3", {
|
|
34428
|
+
style: {
|
|
34429
|
+
color: '#0d43a7',
|
|
34430
|
+
fontFamily: 'Noto Sans,sans-serif',
|
|
34431
|
+
fontSize: '24px',
|
|
34432
|
+
fontWeight: '500'
|
|
34433
|
+
}
|
|
34434
|
+
}, "Assessment History"), /*#__PURE__*/React.createElement("span", {
|
|
34435
|
+
style: {
|
|
34436
|
+
fontSize: '1.2em'
|
|
34437
|
+
}
|
|
34438
|
+
}, isOpen ? "<" : ">"))), isOpen && /*#__PURE__*/React.createElement("div", {
|
|
34439
|
+
className: "accordion-body",
|
|
34440
|
+
style: {
|
|
34441
|
+
padding: " 15px",
|
|
34442
|
+
backgroundColor: "#fff"
|
|
34443
|
+
}
|
|
34444
|
+
}, assessmentData.length === 0 ? /*#__PURE__*/React.createElement("div", {
|
|
34445
|
+
style: {
|
|
34446
|
+
color: 'red',
|
|
34447
|
+
fontSize: '16px'
|
|
34448
|
+
}
|
|
34449
|
+
}, "No Assessments found") : assessmentData.map((assessment, index) => /*#__PURE__*/React.createElement("div", {
|
|
34450
|
+
key: index,
|
|
34451
|
+
className: "assessment-item",
|
|
34452
|
+
style: {
|
|
34453
|
+
marginBottom: "15px"
|
|
34454
|
+
}
|
|
34455
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
34456
|
+
className: "assessment-row",
|
|
34457
|
+
style: {
|
|
34458
|
+
display: "flex",
|
|
34459
|
+
gap: "100px",
|
|
34460
|
+
marginBottom: "8px"
|
|
34461
|
+
}
|
|
34462
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
34463
|
+
style: {
|
|
34464
|
+
fontWeight: "bold",
|
|
34465
|
+
minWidth: '60px',
|
|
34466
|
+
color: 'black'
|
|
34467
|
+
}
|
|
34468
|
+
}, "Assessment Date"), /*#__PURE__*/React.createElement("span", {
|
|
34469
|
+
style: {
|
|
34470
|
+
flex: '1',
|
|
34471
|
+
color: 'black'
|
|
34472
|
+
}
|
|
34473
|
+
}, formatAssessmentDate(assessment.assessmentDate))), /*#__PURE__*/React.createElement("div", {
|
|
34474
|
+
className: "assessment-row",
|
|
34475
|
+
style: {
|
|
34476
|
+
display: "flex",
|
|
34477
|
+
gap: "100px",
|
|
34478
|
+
marginBottom: "8px",
|
|
34479
|
+
color: 'black'
|
|
34480
|
+
}
|
|
34481
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
34482
|
+
className: "label",
|
|
34483
|
+
style: {
|
|
34484
|
+
fontWeight: "bold",
|
|
34485
|
+
minWidth: '60px',
|
|
34486
|
+
color: 'black'
|
|
34487
|
+
}
|
|
34488
|
+
}, "Assessment Year"), /*#__PURE__*/React.createElement("span", {
|
|
34489
|
+
className: "value",
|
|
34490
|
+
style: {
|
|
34491
|
+
flex: '1',
|
|
34492
|
+
color: 'black'
|
|
34493
|
+
}
|
|
34494
|
+
}, assessment.financialYear)), /*#__PURE__*/React.createElement("div", {
|
|
34495
|
+
className: "assessment-row with-buttons",
|
|
34496
|
+
style: {
|
|
34497
|
+
display: "flex",
|
|
34498
|
+
marginBottom: "8px",
|
|
34499
|
+
justifyContent: "space-between",
|
|
34500
|
+
alignItems: "center"
|
|
34501
|
+
}
|
|
34502
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
34503
|
+
style: {
|
|
34504
|
+
display: 'flex',
|
|
34505
|
+
gap: '75px'
|
|
34506
|
+
}
|
|
34507
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
34508
|
+
className: "label",
|
|
34509
|
+
style: {
|
|
34510
|
+
fontWeight: "bold",
|
|
34511
|
+
minWidth: '60px',
|
|
34512
|
+
color: 'black'
|
|
34513
|
+
}
|
|
34514
|
+
}, "Assessment Number"), /*#__PURE__*/React.createElement("span", {
|
|
34515
|
+
className: "value",
|
|
34516
|
+
style: {
|
|
34517
|
+
flex: '1',
|
|
34518
|
+
color: 'black'
|
|
34519
|
+
}
|
|
34520
|
+
}, assessment.assessmentNumber)), /*#__PURE__*/React.createElement("div", {
|
|
34521
|
+
className: "button-group",
|
|
34522
|
+
style: {
|
|
34523
|
+
display: 'flex',
|
|
34524
|
+
gap: '10px'
|
|
34525
|
+
}
|
|
34526
|
+
}, "\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0 ", /*#__PURE__*/React.createElement("button", {
|
|
34527
|
+
style: {
|
|
34528
|
+
display: "flex",
|
|
34529
|
+
borderRadius: '8px',
|
|
34530
|
+
backgroundColor: '#2947a3',
|
|
34531
|
+
padding: '10px',
|
|
34532
|
+
color: 'white'
|
|
34533
|
+
},
|
|
34534
|
+
onClick: () => {
|
|
34535
|
+
history.push({
|
|
34536
|
+
pathname: `/digit-ui/citizen/pt/property/assessment-details/${assessment.assessmentNumber}`,
|
|
34537
|
+
state: {
|
|
34538
|
+
Assessment: {
|
|
34539
|
+
channel: applicationData.channel,
|
|
34540
|
+
financialYear: assessment.financialYear,
|
|
34541
|
+
propertyId: assessment.propertyId,
|
|
34542
|
+
source: applicationData.source
|
|
34543
|
+
},
|
|
34544
|
+
submitLabel: t("PT_REASSESS_PROPERTY_BUTTON"),
|
|
34545
|
+
reAssess: true
|
|
34546
|
+
}
|
|
33680
34547
|
});
|
|
33681
34548
|
}
|
|
33682
|
-
})
|
|
34549
|
+
}, "Re-assess"), "\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0 ", /*#__PURE__*/React.createElement("button", {
|
|
34550
|
+
style: {
|
|
34551
|
+
display: "flex",
|
|
34552
|
+
borderRadius: '8px',
|
|
34553
|
+
border: '1px solid red',
|
|
34554
|
+
padding: '10px'
|
|
34555
|
+
},
|
|
34556
|
+
onClick: () => alert(`You are not allowed to perform this operation!!}`)
|
|
34557
|
+
}, "Cancel"), "\xA0\xA0\xA0\xA0\xA0\xA0\xA0 ")), index !== assessmentData.length - 1 && /*#__PURE__*/React.createElement("hr", null)))));
|
|
33683
34558
|
};
|
|
33684
34559
|
|
|
33685
|
-
const
|
|
33686
|
-
|
|
33687
|
-
|
|
33688
|
-
|
|
33689
|
-
|
|
33690
|
-
|
|
33691
|
-
|
|
33692
|
-
|
|
33693
|
-
|
|
33694
|
-
|
|
33695
|
-
|
|
33696
|
-
|
|
34560
|
+
const ApplicationHistory = ({
|
|
34561
|
+
applicationData
|
|
34562
|
+
}) => {
|
|
34563
|
+
var _applicationData$audi;
|
|
34564
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
34565
|
+
const history = useHistory();
|
|
34566
|
+
const toggleAccordion = () => {
|
|
34567
|
+
setIsOpen(!isOpen);
|
|
34568
|
+
};
|
|
34569
|
+
function formatDate(timestamp) {
|
|
34570
|
+
const date = new Date(timestamp);
|
|
34571
|
+
const options = {
|
|
34572
|
+
day: '2-digit',
|
|
34573
|
+
month: 'short',
|
|
34574
|
+
year: 'numeric'
|
|
34575
|
+
};
|
|
34576
|
+
return date.toLocaleDateString('en-GB', options).replace(/ /g, '-');
|
|
33697
34577
|
}
|
|
34578
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
34579
|
+
className: "accordion",
|
|
34580
|
+
style: {
|
|
34581
|
+
width: "100%",
|
|
34582
|
+
margin: "auto",
|
|
34583
|
+
fontFamily: "Roboto, sans-serif",
|
|
34584
|
+
border: "1px solid #ccc",
|
|
34585
|
+
borderRadius: "4px",
|
|
34586
|
+
marginBottom: '10px'
|
|
34587
|
+
}
|
|
34588
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
34589
|
+
className: "accordion-header",
|
|
34590
|
+
style: {
|
|
34591
|
+
backgroundColor: "#f0f0f0",
|
|
34592
|
+
padding: "15px",
|
|
34593
|
+
cursor: "pointer"
|
|
34594
|
+
},
|
|
34595
|
+
onClick: toggleAccordion
|
|
34596
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
34597
|
+
style: {
|
|
34598
|
+
display: "flex",
|
|
34599
|
+
justifyContent: "space-between",
|
|
34600
|
+
alignItems: 'center'
|
|
34601
|
+
}
|
|
34602
|
+
}, /*#__PURE__*/React.createElement("h3", {
|
|
34603
|
+
style: {
|
|
34604
|
+
color: '#0d43a7',
|
|
34605
|
+
fontFamily: 'Noto Sans,sans-serif',
|
|
34606
|
+
fontSize: '24px',
|
|
34607
|
+
fontWeight: '500'
|
|
34608
|
+
}
|
|
34609
|
+
}, "Application History"), /*#__PURE__*/React.createElement("span", {
|
|
34610
|
+
style: {
|
|
34611
|
+
fontSize: '1.2em'
|
|
34612
|
+
}
|
|
34613
|
+
}, isOpen ? "<" : ">"))), isOpen && /*#__PURE__*/React.createElement("div", {
|
|
34614
|
+
className: "accordion-body",
|
|
34615
|
+
style: {
|
|
34616
|
+
padding: " 15px",
|
|
34617
|
+
backgroundColor: "#fff"
|
|
34618
|
+
}
|
|
34619
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
34620
|
+
className: "assessment-item",
|
|
34621
|
+
style: {
|
|
34622
|
+
marginBottom: "15px"
|
|
34623
|
+
}
|
|
34624
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
34625
|
+
className: "assessment-row",
|
|
34626
|
+
style: {
|
|
34627
|
+
display: "flex",
|
|
34628
|
+
gap: "100px",
|
|
34629
|
+
marginBottom: "8px"
|
|
34630
|
+
}
|
|
34631
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
34632
|
+
style: {
|
|
34633
|
+
fontWeight: "bold",
|
|
34634
|
+
minWidth: '60px',
|
|
34635
|
+
color: 'black'
|
|
34636
|
+
}
|
|
34637
|
+
}, "Application Number"), /*#__PURE__*/React.createElement("span", {
|
|
34638
|
+
style: {
|
|
34639
|
+
flex: '1',
|
|
34640
|
+
color: 'black'
|
|
34641
|
+
}
|
|
34642
|
+
}, applicationData.acknowldgementNumber)), /*#__PURE__*/React.createElement("div", {
|
|
34643
|
+
className: "assessment-row",
|
|
34644
|
+
style: {
|
|
34645
|
+
display: "flex",
|
|
34646
|
+
gap: "132px",
|
|
34647
|
+
marginBottom: "8px",
|
|
34648
|
+
color: 'black'
|
|
34649
|
+
}
|
|
34650
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
34651
|
+
className: "label",
|
|
34652
|
+
style: {
|
|
34653
|
+
fontWeight: "bold",
|
|
34654
|
+
minWidth: '60px',
|
|
34655
|
+
color: 'black'
|
|
34656
|
+
}
|
|
34657
|
+
}, "Property ID No."), /*#__PURE__*/React.createElement("span", {
|
|
34658
|
+
className: "value",
|
|
34659
|
+
style: {
|
|
34660
|
+
flex: '1',
|
|
34661
|
+
color: 'black'
|
|
34662
|
+
}
|
|
34663
|
+
}, applicationData.propertyId)), /*#__PURE__*/React.createElement("div", {
|
|
34664
|
+
className: "assessment-row",
|
|
34665
|
+
style: {
|
|
34666
|
+
display: "flex",
|
|
34667
|
+
gap: "120px",
|
|
34668
|
+
marginBottom: "8px",
|
|
34669
|
+
color: 'black'
|
|
34670
|
+
}
|
|
34671
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
34672
|
+
className: "label",
|
|
34673
|
+
style: {
|
|
34674
|
+
fontWeight: "bold",
|
|
34675
|
+
minWidth: '60px',
|
|
34676
|
+
color: 'black'
|
|
34677
|
+
}
|
|
34678
|
+
}, "Application Type"), /*#__PURE__*/React.createElement("span", {
|
|
34679
|
+
className: "value",
|
|
34680
|
+
style: {
|
|
34681
|
+
flex: '1',
|
|
34682
|
+
color: 'black'
|
|
34683
|
+
}
|
|
34684
|
+
}, "NEW PROPERTY")), /*#__PURE__*/React.createElement("div", {
|
|
34685
|
+
className: "assessment-row",
|
|
34686
|
+
style: {
|
|
34687
|
+
display: "flex",
|
|
34688
|
+
gap: "140px",
|
|
34689
|
+
marginBottom: "8px",
|
|
34690
|
+
color: 'black'
|
|
34691
|
+
}
|
|
34692
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
34693
|
+
className: "label",
|
|
34694
|
+
style: {
|
|
34695
|
+
fontWeight: "bold",
|
|
34696
|
+
minWidth: '60px',
|
|
34697
|
+
color: 'black'
|
|
34698
|
+
}
|
|
34699
|
+
}, "Creation Date"), /*#__PURE__*/React.createElement("span", {
|
|
34700
|
+
className: "value",
|
|
34701
|
+
style: {
|
|
34702
|
+
flex: '1',
|
|
34703
|
+
color: 'black'
|
|
34704
|
+
}
|
|
34705
|
+
}, formatDate((_applicationData$audi = applicationData.auditDetails) === null || _applicationData$audi === void 0 ? void 0 : _applicationData$audi.createdTime))), /*#__PURE__*/React.createElement("div", {
|
|
34706
|
+
className: "assessment-row",
|
|
34707
|
+
style: {
|
|
34708
|
+
display: "flex",
|
|
34709
|
+
gap: "180px",
|
|
34710
|
+
marginBottom: "8px",
|
|
34711
|
+
color: 'black'
|
|
34712
|
+
}
|
|
34713
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
34714
|
+
className: "label",
|
|
34715
|
+
style: {
|
|
34716
|
+
fontWeight: "bold",
|
|
34717
|
+
minWidth: '60px',
|
|
34718
|
+
color: 'black'
|
|
34719
|
+
}
|
|
34720
|
+
}, "Status"), /*#__PURE__*/React.createElement("span", {
|
|
34721
|
+
className: "value",
|
|
34722
|
+
style: {
|
|
34723
|
+
flex: '1',
|
|
34724
|
+
color: 'black'
|
|
34725
|
+
}
|
|
34726
|
+
}, applicationData.status)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Link, {
|
|
34727
|
+
to: {
|
|
34728
|
+
pathname: `/digit-ui/citizen/pt/property/application-preview/${applicationData.acknowldgementNumber}`,
|
|
34729
|
+
state: {
|
|
34730
|
+
propertyId: applicationData.propertyId
|
|
34731
|
+
}
|
|
34732
|
+
},
|
|
34733
|
+
style: {
|
|
34734
|
+
color: '#2947a3',
|
|
34735
|
+
display: 'inline',
|
|
34736
|
+
border: '1px solid',
|
|
34737
|
+
padding: '8px',
|
|
34738
|
+
borderRadius: '8px'
|
|
34739
|
+
}
|
|
34740
|
+
}, "View History")))));
|
|
33698
34741
|
};
|
|
33699
|
-
|
|
33700
|
-
|
|
34742
|
+
|
|
34743
|
+
const PaymentHistory = ({
|
|
34744
|
+
payments
|
|
33701
34745
|
}) => {
|
|
33702
|
-
|
|
33703
|
-
const {
|
|
33704
|
-
|
|
33705
|
-
} = useTranslation();
|
|
33706
|
-
const formatTaxHeaders = (billDetail = {}) => {
|
|
33707
|
-
let formattedFees = {};
|
|
33708
|
-
const {
|
|
33709
|
-
billAccountDetails = []
|
|
33710
|
-
} = billDetail;
|
|
33711
|
-
billAccountDetails.map(taxHead => {
|
|
33712
|
-
formattedFees[taxHead.taxHeadCode] = {
|
|
33713
|
-
value: taxHead.amount,
|
|
33714
|
-
order: taxHead.order
|
|
33715
|
-
};
|
|
33716
|
-
});
|
|
33717
|
-
formattedFees["CS_BILL_NO"] = {
|
|
33718
|
-
value: (billDetail === null || billDetail === void 0 ? void 0 : billDetail.billNumber) || "NA",
|
|
33719
|
-
order: -2
|
|
33720
|
-
};
|
|
33721
|
-
formattedFees["CS_BILL_DUEDATE"] = {
|
|
33722
|
-
value: (billDetail === null || billDetail === void 0 ? void 0 : billDetail.expiryDate) && new Date(billDetail === null || billDetail === void 0 ? void 0 : billDetail.expiryDate).toLocaleDateString() || "NA",
|
|
33723
|
-
order: -1
|
|
33724
|
-
};
|
|
33725
|
-
formattedFees["TL_COMMON_TOTAL_AMT"] = {
|
|
33726
|
-
value: billDetail.amount,
|
|
33727
|
-
order: 10
|
|
33728
|
-
};
|
|
33729
|
-
return formattedFees;
|
|
34746
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
34747
|
+
const toggleAccordion = () => {
|
|
34748
|
+
setIsOpen(!isOpen);
|
|
33730
34749
|
};
|
|
33731
|
-
|
|
33732
|
-
|
|
33733
|
-
|
|
33734
|
-
|
|
33735
|
-
|
|
34750
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
34751
|
+
className: "accordion",
|
|
34752
|
+
style: {
|
|
34753
|
+
width: "100%",
|
|
34754
|
+
margin: "auto",
|
|
34755
|
+
fontFamily: "Roboto, sans-serif",
|
|
34756
|
+
border: "1px solid #ccc",
|
|
34757
|
+
borderRadius: "4px",
|
|
34758
|
+
marginBottom: '10px'
|
|
33736
34759
|
}
|
|
33737
|
-
|
|
33738
|
-
|
|
33739
|
-
|
|
33740
|
-
|
|
33741
|
-
|
|
33742
|
-
|
|
33743
|
-
|
|
33744
|
-
|
|
33745
|
-
|
|
33746
|
-
|
|
33747
|
-
|
|
33748
|
-
|
|
33749
|
-
|
|
33750
|
-
Object.keys(fees[key]).map(key1 => {
|
|
33751
|
-
head[key1] = fees[key] && fees[key][key1] && fees[key][key1].order || 0;
|
|
33752
|
-
});
|
|
33753
|
-
}) : "NA";
|
|
33754
|
-
let keys = [];
|
|
33755
|
-
keys = Object.keys(head);
|
|
33756
|
-
keys.sort((x, y) => head[x] - head[y]);
|
|
33757
|
-
const [showArrear, setShowArrear] = useState(false);
|
|
33758
|
-
if (arrears == 0 || arrears < 0) {
|
|
33759
|
-
return /*#__PURE__*/React.createElement("span", null);
|
|
33760
|
-
}
|
|
33761
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
33762
|
-
style: styles$2.headerStyle
|
|
33763
|
-
}, t("CS_ARREARS_DETAILS")), showArrear && /*#__PURE__*/React.createElement(ArrearTable, {
|
|
33764
|
-
headers: [...keys],
|
|
33765
|
-
values: fees,
|
|
33766
|
-
arrears: arrearsAmount
|
|
33767
|
-
}), !showArrear && /*#__PURE__*/React.createElement("div", {
|
|
33768
|
-
style: styles$2.buttonStyle
|
|
33769
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
33770
|
-
type: "button",
|
|
33771
|
-
onClick: () => {
|
|
33772
|
-
setShowArrear(true);
|
|
34760
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
34761
|
+
className: "accordion-header",
|
|
34762
|
+
style: {
|
|
34763
|
+
backgroundColor: "#f0f0f0",
|
|
34764
|
+
padding: "15px",
|
|
34765
|
+
cursor: "pointer"
|
|
34766
|
+
},
|
|
34767
|
+
onClick: toggleAccordion
|
|
34768
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
34769
|
+
style: {
|
|
34770
|
+
display: "flex",
|
|
34771
|
+
justifyContent: "space-between",
|
|
34772
|
+
alignItems: 'center'
|
|
33773
34773
|
}
|
|
33774
|
-
},
|
|
33775
|
-
style:
|
|
33776
|
-
|
|
33777
|
-
|
|
33778
|
-
|
|
33779
|
-
|
|
34774
|
+
}, /*#__PURE__*/React.createElement("h3", {
|
|
34775
|
+
style: {
|
|
34776
|
+
color: '#0d43a7',
|
|
34777
|
+
fontFamily: 'Noto Sans,sans-serif',
|
|
34778
|
+
fontSize: '24px',
|
|
34779
|
+
fontWeight: '500'
|
|
34780
|
+
}
|
|
34781
|
+
}, "Payment History"), /*#__PURE__*/React.createElement("span", {
|
|
34782
|
+
style: {
|
|
34783
|
+
fontSize: '1.2em'
|
|
34784
|
+
}
|
|
34785
|
+
}, isOpen ? "<" : ">"))), isOpen && /*#__PURE__*/React.createElement("div", {
|
|
34786
|
+
className: "accordion-body",
|
|
34787
|
+
style: {
|
|
34788
|
+
padding: " 15px",
|
|
34789
|
+
backgroundColor: "#fff"
|
|
34790
|
+
}
|
|
34791
|
+
}, (payments === null || payments === void 0 ? void 0 : payments.length) === 0 && /*#__PURE__*/React.createElement("div", {
|
|
34792
|
+
style: {
|
|
34793
|
+
color: 'red',
|
|
34794
|
+
fontSize: '16px'
|
|
33780
34795
|
}
|
|
33781
|
-
},
|
|
34796
|
+
}, "No Payemnts found")));
|
|
33782
34797
|
};
|
|
33783
34798
|
|
|
33784
34799
|
function ApplicationDetailsContent({
|
|
@@ -33795,19 +34810,77 @@ function ApplicationDetailsContent({
|
|
|
33795
34810
|
statusAttribute = "status",
|
|
33796
34811
|
paymentsList,
|
|
33797
34812
|
oldValue,
|
|
33798
|
-
isInfoLabel = false
|
|
34813
|
+
isInfoLabel = false,
|
|
34814
|
+
propertyId,
|
|
34815
|
+
setIsCheck,
|
|
34816
|
+
isCheck
|
|
33799
34817
|
}) {
|
|
33800
|
-
var _applicationDetails$a2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data19, _workflowDetails$data20;
|
|
34818
|
+
var _FinancialYearData, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a5, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data19, _workflowDetails$data20, _FinancialYearData2;
|
|
33801
34819
|
const {
|
|
33802
34820
|
t
|
|
33803
34821
|
} = useTranslation();
|
|
34822
|
+
const history = useHistory();
|
|
34823
|
+
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
34824
|
+
const [showToast, setShowToast] = useState(null);
|
|
34825
|
+
const [payments, setPayments] = useState([]);
|
|
34826
|
+
const [showAccess, setShowAccess] = useState(false);
|
|
34827
|
+
const [selectedYear, setSelectedYear] = useState();
|
|
33804
34828
|
let isEditApplication = window.location.href.includes("editApplication") && window.location.href.includes("bpa");
|
|
33805
34829
|
console.log("appl", applicationDetails);
|
|
34830
|
+
let {
|
|
34831
|
+
data: FinancialYearData
|
|
34832
|
+
} = Digit.Hooks.useCustomMDMS(Digit.ULBService.getStateId(), "egf-master", [{
|
|
34833
|
+
name: "FinancialYear"
|
|
34834
|
+
}], {
|
|
34835
|
+
select: data => {
|
|
34836
|
+
var _data$egfMaster;
|
|
34837
|
+
const formattedData = data === null || data === void 0 ? void 0 : (_data$egfMaster = data["egf-master"]) === null || _data$egfMaster === void 0 ? void 0 : _data$egfMaster["FinancialYear"];
|
|
34838
|
+
return formattedData;
|
|
34839
|
+
}
|
|
34840
|
+
});
|
|
34841
|
+
if (((_FinancialYearData = FinancialYearData) === null || _FinancialYearData === void 0 ? void 0 : _FinancialYearData.length) > 0) {
|
|
34842
|
+
FinancialYearData = FinancialYearData.filter((record, index, self) => index === self.findIndex(r => r.code === record.code));
|
|
34843
|
+
FinancialYearData = FinancialYearData.sort((a, b) => b.endingDate - a.endingDate);
|
|
34844
|
+
}
|
|
34845
|
+
console.log("financial year", FinancialYearData);
|
|
34846
|
+
const setModal = () => {
|
|
34847
|
+
console.log("in Apply");
|
|
34848
|
+
};
|
|
34849
|
+
const closeModalTwo = () => {
|
|
34850
|
+
setShowAccess(false);
|
|
34851
|
+
};
|
|
34852
|
+
const Heading = props => {
|
|
34853
|
+
return /*#__PURE__*/React.createElement("h1", {
|
|
34854
|
+
className: "heading-m"
|
|
34855
|
+
}, props.label);
|
|
34856
|
+
};
|
|
34857
|
+
const Close = () => /*#__PURE__*/React.createElement("svg", {
|
|
34858
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
34859
|
+
viewBox: "0 0 24 24",
|
|
34860
|
+
fill: "#FFFFFF"
|
|
34861
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
34862
|
+
d: "M0 0h24v24H0V0z",
|
|
34863
|
+
fill: "none"
|
|
34864
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
34865
|
+
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
34866
|
+
}));
|
|
34867
|
+
const CloseBtn = props => {
|
|
34868
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
34869
|
+
className: "icon-bg-secondary",
|
|
34870
|
+
onClick: props.onClick
|
|
34871
|
+
}, /*#__PURE__*/React.createElement(Close, null));
|
|
34872
|
+
};
|
|
34873
|
+
const closeModal = e => {
|
|
34874
|
+
console.log("in Print");
|
|
34875
|
+
setShowAccess(false);
|
|
34876
|
+
};
|
|
33806
34877
|
function OpenImage(imageSource, index, thumbnailsToShow) {
|
|
33807
34878
|
var _thumbnailsToShow$ful;
|
|
33808
34879
|
window.open(thumbnailsToShow === null || thumbnailsToShow === void 0 ? void 0 : (_thumbnailsToShow$ful = thumbnailsToShow.fullImage) === null || _thumbnailsToShow$ful === void 0 ? void 0 : _thumbnailsToShow$ful[0], "_blank");
|
|
33809
34880
|
}
|
|
33810
34881
|
const [fetchBillData, updatefetchBillData] = useState({});
|
|
34882
|
+
const [assessmentDetails, setAssessmentDetails] = useState();
|
|
34883
|
+
const [filtered, setFiltered] = useState([]);
|
|
33811
34884
|
const setBillData = async (tenantId, propertyIds, updatefetchBillData, updateCanFetchBillData) => {
|
|
33812
34885
|
var _assessmentData$Asses;
|
|
33813
34886
|
const assessmentData = await Digit.PTService.assessmentSearch({
|
|
@@ -33817,12 +34890,34 @@ function ApplicationDetailsContent({
|
|
|
33817
34890
|
}
|
|
33818
34891
|
});
|
|
33819
34892
|
let billData = {};
|
|
34893
|
+
console.log("assessment data", assessmentData);
|
|
33820
34894
|
if ((assessmentData === null || assessmentData === void 0 ? void 0 : (_assessmentData$Asses = assessmentData.Assessments) === null || _assessmentData$Asses === void 0 ? void 0 : _assessmentData$Asses.length) > 0) {
|
|
34895
|
+
const activeRecords = assessmentData.Assessments.filter(a => a.status === 'ACTIVE');
|
|
34896
|
+
function normalizeDate(timestamp) {
|
|
34897
|
+
const date = new Date(timestamp);
|
|
34898
|
+
date.setHours(0, 0, 0, 0);
|
|
34899
|
+
return date.getTime();
|
|
34900
|
+
}
|
|
34901
|
+
const latestMap = new Map();
|
|
34902
|
+
activeRecords.forEach(record => {
|
|
34903
|
+
const normalizedDate = normalizeDate(record.assessmentDate);
|
|
34904
|
+
const key = `${normalizedDate}_${record.financialYear}`;
|
|
34905
|
+
const existing = latestMap.get(key);
|
|
34906
|
+
if (!existing || record.createdDate > existing.createdDate) {
|
|
34907
|
+
latestMap.set(key, record);
|
|
34908
|
+
}
|
|
34909
|
+
});
|
|
34910
|
+
console.log("grouped", latestMap);
|
|
34911
|
+
const filteredAssessment = Array.from(latestMap.values());
|
|
34912
|
+
setFiltered(filteredAssessment);
|
|
34913
|
+
console.log(filteredAssessment);
|
|
34914
|
+
setAssessmentDetails(assessmentData === null || assessmentData === void 0 ? void 0 : assessmentData.Assessments);
|
|
33821
34915
|
billData = await Digit.PaymentService.fetchBill(tenantId, {
|
|
33822
34916
|
businessService: "PT",
|
|
33823
34917
|
consumerCode: propertyIds
|
|
33824
34918
|
});
|
|
33825
34919
|
}
|
|
34920
|
+
console.log("bill Data", billData);
|
|
33826
34921
|
updatefetchBillData(billData);
|
|
33827
34922
|
updateCanFetchBillData({
|
|
33828
34923
|
loading: false,
|
|
@@ -33830,11 +34925,13 @@ function ApplicationDetailsContent({
|
|
|
33830
34925
|
canLoad: true
|
|
33831
34926
|
});
|
|
33832
34927
|
};
|
|
34928
|
+
console.log("fetch bill data", fetchBillData);
|
|
33833
34929
|
const [billData, updateCanFetchBillData] = useState({
|
|
33834
34930
|
loading: false,
|
|
33835
34931
|
loaded: false,
|
|
33836
34932
|
canLoad: false
|
|
33837
34933
|
});
|
|
34934
|
+
console.log("filtered", filtered);
|
|
33838
34935
|
if ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.status) == "ACTIVE" && !billData.loading && !billData.loaded && !billData.canLoad) {
|
|
33839
34936
|
updateCanFetchBillData({
|
|
33840
34937
|
loading: false,
|
|
@@ -33968,23 +35065,6 @@ function ApplicationDetailsContent({
|
|
|
33968
35065
|
return {};
|
|
33969
35066
|
}
|
|
33970
35067
|
};
|
|
33971
|
-
const tableStyles = {
|
|
33972
|
-
table: {
|
|
33973
|
-
border: '2px solid black',
|
|
33974
|
-
width: '100%',
|
|
33975
|
-
fontFamily: 'sans-serif'
|
|
33976
|
-
},
|
|
33977
|
-
td: {
|
|
33978
|
-
padding: "10px",
|
|
33979
|
-
border: '1px solid black',
|
|
33980
|
-
textAlign: 'center'
|
|
33981
|
-
},
|
|
33982
|
-
th: {
|
|
33983
|
-
padding: "10px",
|
|
33984
|
-
border: '1px solid black',
|
|
33985
|
-
textAlign: 'center'
|
|
33986
|
-
}
|
|
33987
|
-
};
|
|
33988
35068
|
const getMainDivStyles = () => {
|
|
33989
35069
|
if (window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc") || window.location.href.includes("employee/ws")) {
|
|
33990
35070
|
return {
|
|
@@ -34032,6 +35112,94 @@ function ApplicationDetailsContent({
|
|
|
34032
35112
|
const totalBalanceTax = demandData === null || demandData === void 0 ? void 0 : demandData.reduce((sum, item) => sum + item.balanceTax, 0);
|
|
34033
35113
|
const totalBalanceInterest = demandData === null || demandData === void 0 ? void 0 : demandData.reduce((sum, item) => sum + item.balanceInterest, 0);
|
|
34034
35114
|
const totalBalancePenality = demandData === null || demandData === void 0 ? void 0 : demandData.reduce((sum, item) => sum + item.balancePenality, 0);
|
|
35115
|
+
const closeToast = () => {
|
|
35116
|
+
setShowToast(null);
|
|
35117
|
+
};
|
|
35118
|
+
const updatePropertyStatus = async (propertyData, status, propertyIds) => {
|
|
35119
|
+
const confirm = window.confirm(`Are you sure you want to make this property ${status}?`);
|
|
35120
|
+
if (!confirm) return;
|
|
35121
|
+
const payload = {
|
|
35122
|
+
...propertyData,
|
|
35123
|
+
status: status,
|
|
35124
|
+
isactive: status === "ACTIVE",
|
|
35125
|
+
isinactive: status === "INACTIVE",
|
|
35126
|
+
creationReason: "STATUS",
|
|
35127
|
+
additionalDetails: {
|
|
35128
|
+
...propertyData.additionalDetails,
|
|
35129
|
+
propertytobestatus: status
|
|
35130
|
+
},
|
|
35131
|
+
workflow: {
|
|
35132
|
+
...propertyData.workflow,
|
|
35133
|
+
businessService: "PT.CREATE",
|
|
35134
|
+
action: "OPEN",
|
|
35135
|
+
moduleName: "PT"
|
|
35136
|
+
}
|
|
35137
|
+
};
|
|
35138
|
+
const response = await Digit.PTService.updatePT({
|
|
35139
|
+
Property: {
|
|
35140
|
+
...payload
|
|
35141
|
+
}
|
|
35142
|
+
}, tenantId, propertyIds);
|
|
35143
|
+
console.log("response from inactive/active", response);
|
|
35144
|
+
};
|
|
35145
|
+
const applicationData_pt = applicationDetails.applicationData;
|
|
35146
|
+
const propertyIds = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationData) === null || _applicationDetails$a2 === void 0 ? void 0 : _applicationDetails$a2.propertyId) || "";
|
|
35147
|
+
const checkPropertyStatus = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a3 = applicationDetails.additionalDetails) === null || _applicationDetails$a3 === void 0 ? void 0 : _applicationDetails$a3.propertytobestatus;
|
|
35148
|
+
const PropertyInActive = () => {
|
|
35149
|
+
if (window.location.href.includes("/citizen")) {
|
|
35150
|
+
alert("Action to Inactivate property is not allowed for citizen");
|
|
35151
|
+
} else {
|
|
35152
|
+
if (checkPropertyStatus == "ACTIVE") {
|
|
35153
|
+
updatePropertyStatus(applicationData_pt, "INACTIVE", propertyIds);
|
|
35154
|
+
} else {
|
|
35155
|
+
alert("Property is already inactive.");
|
|
35156
|
+
}
|
|
35157
|
+
}
|
|
35158
|
+
};
|
|
35159
|
+
const PropertyActive = () => {
|
|
35160
|
+
if (window.location.href.includes("/citizen")) {
|
|
35161
|
+
alert("Action to activate property is not allowed for citizen");
|
|
35162
|
+
} else {
|
|
35163
|
+
if (checkPropertyStatus == "INACTIVE") {
|
|
35164
|
+
updatePropertyStatus(applicationData_pt, "ACTIVE", propertyIds);
|
|
35165
|
+
} else {
|
|
35166
|
+
alert("Property is already active.");
|
|
35167
|
+
}
|
|
35168
|
+
}
|
|
35169
|
+
};
|
|
35170
|
+
const EditProperty = () => {
|
|
35171
|
+
var _applicationDetails$a4;
|
|
35172
|
+
const pID = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a4 = applicationDetails.applicationData) === null || _applicationDetails$a4 === void 0 ? void 0 : _applicationDetails$a4.propertyId;
|
|
35173
|
+
if (pID) {
|
|
35174
|
+
history.push({
|
|
35175
|
+
pathname: `/digit-ui/employee/pt/edit-application/${pID}`
|
|
35176
|
+
});
|
|
35177
|
+
}
|
|
35178
|
+
};
|
|
35179
|
+
const AccessProperty = () => {
|
|
35180
|
+
setShowAccess(true);
|
|
35181
|
+
};
|
|
35182
|
+
console.log("applicationDetails?.applicationDetails", applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationDetails);
|
|
35183
|
+
console.log("infolabel", isInfoLabel);
|
|
35184
|
+
console.log("assessment details", assessmentDetails);
|
|
35185
|
+
useEffect(() => {
|
|
35186
|
+
try {
|
|
35187
|
+
let filters = {
|
|
35188
|
+
consumerCodes: propertyId
|
|
35189
|
+
};
|
|
35190
|
+
const auth = true;
|
|
35191
|
+
Digit.PTService.paymentsearch({
|
|
35192
|
+
tenantId: tenantId,
|
|
35193
|
+
filters: filters,
|
|
35194
|
+
auth: auth
|
|
35195
|
+
}).then(response => {
|
|
35196
|
+
setPayments(response === null || response === void 0 ? void 0 : response.Payments);
|
|
35197
|
+
console.log(response);
|
|
35198
|
+
});
|
|
35199
|
+
} catch (error) {
|
|
35200
|
+
console.log(error);
|
|
35201
|
+
}
|
|
35202
|
+
}, []);
|
|
34035
35203
|
return /*#__PURE__*/React.createElement(Card, {
|
|
34036
35204
|
style: {
|
|
34037
35205
|
position: "relative"
|
|
@@ -34044,8 +35212,8 @@ function ApplicationDetailsContent({
|
|
|
34044
35212
|
infoClickLable: "WS_CLICK_ON_LABEL",
|
|
34045
35213
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
34046
35214
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
34047
|
-
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
34048
|
-
var _detail$values, _detail$additionalDet, _applicationDetails$
|
|
35215
|
+
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a5 = applicationDetails.applicationDetails) === null || _applicationDetails$a5 === void 0 ? void 0 : _applicationDetails$a5.map((detail, index) => {
|
|
35216
|
+
var _detail$values, _detail$additionalDet, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _detail$additionalDet2, _applicationDetails$a0, _applicationDetails$a1, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet0, _detail$additionalDet1, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _detail$additionalDet20, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27, _detail$additionalDet28, _detail$additionalDet29, _detail$additionalDet30, _detail$additionalDet31;
|
|
34049
35217
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
34050
35218
|
key: index
|
|
34051
35219
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -34102,7 +35270,7 @@ function ApplicationDetailsContent({
|
|
|
34102
35270
|
})), /*#__PURE__*/React.createElement(StatusTable, {
|
|
34103
35271
|
style: getTableStyles()
|
|
34104
35272
|
}, (detail === null || detail === void 0 ? void 0 : detail.title) && !(detail !== null && detail !== void 0 && detail.title.includes("NOC")) && (detail === null || detail === void 0 ? void 0 : (_detail$values = detail.values) === null || _detail$values === void 0 ? void 0 : _detail$values.map((value, index) => {
|
|
34105
|
-
var _detail$values3
|
|
35273
|
+
var _detail$values3;
|
|
34106
35274
|
if (value.map === true && value.value !== "N/A") {
|
|
34107
35275
|
return /*#__PURE__*/React.createElement(Row, {
|
|
34108
35276
|
labelStyle: {
|
|
@@ -34112,7 +35280,7 @@ function ApplicationDetailsContent({
|
|
|
34112
35280
|
wordBreak: "break-all"
|
|
34113
35281
|
},
|
|
34114
35282
|
key: t(value.title),
|
|
34115
|
-
label: t(value.title),
|
|
35283
|
+
label: value !== null && value !== void 0 && value.labelComp ? `<div>${t(value.title)} ${value === null || value === void 0 ? void 0 : value.labelComp}</div>` : "t(value.title)",
|
|
34116
35284
|
text: /*#__PURE__*/React.createElement("img", {
|
|
34117
35285
|
src: t(value.value),
|
|
34118
35286
|
alt: "",
|
|
@@ -34183,16 +35351,14 @@ function ApplicationDetailsContent({
|
|
|
34183
35351
|
textStyle: {
|
|
34184
35352
|
wordBreak: "break-all"
|
|
34185
35353
|
}
|
|
34186
|
-
})
|
|
34187
|
-
bill: (_fetchBillData$Bill = fetchBillData.Bill) === null || _fetchBillData$Bill === void 0 ? void 0 : _fetchBillData$Bill[0]
|
|
34188
|
-
}) : "");
|
|
35354
|
+
}));
|
|
34189
35355
|
})))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet = detail.additionalDetails) === null || _detail$additionalDet === void 0 ? void 0 : _detail$additionalDet.inspectionReport) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
|
|
34190
35356
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
34191
35357
|
paymentsList: paymentsList,
|
|
34192
|
-
additionalDetails: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
35358
|
+
additionalDetails: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a6 = applicationDetails.applicationData) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.additionalDetails,
|
|
34193
35359
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
34194
|
-
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
34195
|
-
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
35360
|
+
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a7 = applicationDetails.applicationData) === null || _applicationDetails$a7 === void 0 ? void 0 : (_applicationDetails$a8 = _applicationDetails$a7.additionalDetails) === null || _applicationDetails$a8 === void 0 ? void 0 : (_applicationDetails$a9 = _applicationDetails$a8.fieldinspection_pending) === null || _applicationDetails$a9 === void 0 ? void 0 : _applicationDetails$a9.length) > 0 && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet2 = detail.additionalDetails) === null || _detail$additionalDet2 === void 0 ? void 0 : _detail$additionalDet2.fiReport) && /*#__PURE__*/React.createElement(InspectionReport, {
|
|
35361
|
+
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a0 = applicationDetails.applicationData) === null || _applicationDetails$a0 === void 0 ? void 0 : (_applicationDetails$a1 = _applicationDetails$a0.additionalDetails) === null || _applicationDetails$a1 === void 0 ? void 0 : _applicationDetails$a1.fieldinspection_pending
|
|
34196
35362
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet3 = detail.additionalDetails) === null || _detail$additionalDet3 === void 0 ? void 0 : _detail$additionalDet3.floors) && /*#__PURE__*/React.createElement(PropertyFloors, {
|
|
34197
35363
|
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
|
|
34198
35364
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.owners) && /*#__PURE__*/React.createElement(PropertyOwners, {
|
|
@@ -34231,14 +35397,12 @@ function ApplicationDetailsContent({
|
|
|
34231
35397
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
34232
35398
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.documentsWithUrl) && /*#__PURE__*/React.createElement(DocumentsPreview, {
|
|
34233
35399
|
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documentsWithUrl
|
|
34234
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.
|
|
34235
|
-
|
|
34236
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React.createElement(PropertyEstimates, {
|
|
34237
|
-
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
35400
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.taxHeadEstimatesCalculation) && /*#__PURE__*/React.createElement(PropertyEstimates, {
|
|
35401
|
+
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.taxHeadEstimatesCalculation
|
|
34238
35402
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
34239
35403
|
wsAdditionalDetails: detail,
|
|
34240
35404
|
oldValue: oldValue
|
|
34241
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
35405
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.redirectUrl) && /*#__PURE__*/React.createElement("div", {
|
|
34242
35406
|
style: {
|
|
34243
35407
|
fontSize: "16px",
|
|
34244
35408
|
lineHeight: "24px",
|
|
@@ -34246,19 +35410,42 @@ function ApplicationDetailsContent({
|
|
|
34246
35410
|
padding: "10px 0px"
|
|
34247
35411
|
}
|
|
34248
35412
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
34249
|
-
to: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
35413
|
+
to: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : (_detail$additionalDet23 = _detail$additionalDet22.redirectUrl) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.url
|
|
34250
35414
|
}, /*#__PURE__*/React.createElement("span", {
|
|
34251
35415
|
className: "link",
|
|
34252
35416
|
style: {
|
|
34253
35417
|
color: "#a82227"
|
|
34254
35418
|
}
|
|
34255
|
-
}, detail === null || detail === void 0 ? void 0 : (_detail$
|
|
35419
|
+
}, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet24 = detail.additionalDetails) === null || _detail$additionalDet24 === void 0 ? void 0 : (_detail$additionalDet25 = _detail$additionalDet24.redirectUrl) === null || _detail$additionalDet25 === void 0 ? void 0 : _detail$additionalDet25.title))), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet26 = detail.additionalDetails) === null || _detail$additionalDet26 === void 0 ? void 0 : _detail$additionalDet26.estimationDetails) && /*#__PURE__*/React.createElement(WSFeeEstimation, {
|
|
34256
35420
|
wsAdditionalDetails: detail,
|
|
34257
35421
|
workflowDetails: workflowDetails
|
|
34258
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
35422
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet27 = detail.additionalDetails) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.estimationDetails) && /*#__PURE__*/React.createElement(ViewBreakup, {
|
|
34259
35423
|
wsAdditionalDetails: detail,
|
|
34260
35424
|
workflowDetails: workflowDetails
|
|
34261
|
-
}))
|
|
35425
|
+
}), detail.title === "Property Documents" && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet28 = detail.additionalDetails) === null || _detail$additionalDet28 === void 0 ? void 0 : _detail$additionalDet28.assessmentDocuments) === null ? /*#__PURE__*/React.createElement("p", null, "0") : /*#__PURE__*/React.createElement(PropertyDocuments, {
|
|
35426
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet29 = detail.additionalDetails) === null || _detail$additionalDet29 === void 0 ? void 0 : _detail$additionalDet29.assessmentDocuments
|
|
35427
|
+
}), detail.title === "DECLARATION" && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet30 = detail.additionalDetails) === null || _detail$additionalDet30 === void 0 ? void 0 : _detail$additionalDet30.declaration) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
35428
|
+
style: {
|
|
35429
|
+
display: 'flex',
|
|
35430
|
+
alignItems: 'center',
|
|
35431
|
+
gap: '8px'
|
|
35432
|
+
}
|
|
35433
|
+
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
35434
|
+
onChange: e => {
|
|
35435
|
+
setIsCheck(e.target.checked);
|
|
35436
|
+
}
|
|
35437
|
+
}), /*#__PURE__*/React.createElement("p", null, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet31 = detail.additionalDetails) === null || _detail$additionalDet31 === void 0 ? void 0 : _detail$additionalDet31.declaration)), isCheck === false && /*#__PURE__*/React.createElement("p", {
|
|
35438
|
+
style: {
|
|
35439
|
+
color: 'red'
|
|
35440
|
+
}
|
|
35441
|
+
}, t("PT_CHECK_DECLARATION_BOX"))));
|
|
35442
|
+
}), !window.location.href.includes("/assessment-details") && /*#__PURE__*/React.createElement(AssessmentHistory, {
|
|
35443
|
+
assessmentData: filtered,
|
|
35444
|
+
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
35445
|
+
}), !window.location.href.includes("/assessment-details") && /*#__PURE__*/React.createElement(PaymentHistory, {
|
|
35446
|
+
payments: payments
|
|
35447
|
+
}), !window.location.href.includes("/assessment-details") && /*#__PURE__*/React.createElement(ApplicationHistory, {
|
|
35448
|
+
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
34262
35449
|
}), showTimeLine && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.timeline) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BreakLine, null), ((workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || isDataLoading) && /*#__PURE__*/React.createElement(Loader, null), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isDataLoading && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
34263
35450
|
id: "timeline"
|
|
34264
35451
|
}, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
@@ -34289,135 +35476,68 @@ function ApplicationDetailsContent({
|
|
|
34289
35476
|
}))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data19 = workflowDetails.data) === null || _workflowDetails$data19 === void 0 ? void 0 : (_workflowDetails$data20 = _workflowDetails$data19.timeline) === null || _workflowDetails$data20 === void 0 ? void 0 : _workflowDetails$data20.length) > 2 && /*#__PURE__*/React.createElement(LinkButton, {
|
|
34290
35477
|
label: showAllTimeline ? t("COLLAPSE") : t("VIEW_TIMELINE"),
|
|
34291
35478
|
onClick: toggleTimeline
|
|
34292
|
-
})))), /*#__PURE__*/React.createElement(
|
|
35479
|
+
})))), /*#__PURE__*/React.createElement(ActionBar, {
|
|
35480
|
+
className: "clear-search-container",
|
|
35481
|
+
style: {
|
|
35482
|
+
display: "block"
|
|
35483
|
+
}
|
|
35484
|
+
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
35485
|
+
label: "Make Property Active",
|
|
35486
|
+
style: {
|
|
35487
|
+
flex: 1
|
|
35488
|
+
},
|
|
35489
|
+
onSubmit: PropertyActive
|
|
35490
|
+
}), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
35491
|
+
label: "Make Property Inactive",
|
|
35492
|
+
style: {
|
|
35493
|
+
marginLeft: "20px"
|
|
35494
|
+
},
|
|
35495
|
+
onSubmit: PropertyInActive
|
|
35496
|
+
}), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
35497
|
+
label: "Edit Property",
|
|
35498
|
+
style: {
|
|
35499
|
+
marginLeft: "20px"
|
|
35500
|
+
},
|
|
35501
|
+
onSubmit: EditProperty
|
|
35502
|
+
}), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
35503
|
+
label: "Access Property",
|
|
35504
|
+
style: {
|
|
35505
|
+
marginLeft: "20px"
|
|
35506
|
+
},
|
|
35507
|
+
onSubmit: AccessProperty
|
|
35508
|
+
})), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
35509
|
+
error: showToast.isError,
|
|
35510
|
+
label: t(showToast.label),
|
|
35511
|
+
onClose: closeToast,
|
|
35512
|
+
isDleteBtn: "false"
|
|
35513
|
+
}), showAccess && /*#__PURE__*/React.createElement(Modal, {
|
|
35514
|
+
headerBarMain: /*#__PURE__*/React.createElement(Heading, {
|
|
35515
|
+
label: t("PT_FINANCIAL_YEAR_PLACEHOLDER")
|
|
35516
|
+
}),
|
|
35517
|
+
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn, {
|
|
35518
|
+
onClick: closeModalTwo
|
|
35519
|
+
}),
|
|
35520
|
+
actionCancelLabel: "Cancel",
|
|
35521
|
+
actionCancelOnSubmit: closeModal,
|
|
35522
|
+
actionSaveLabel: "Access",
|
|
35523
|
+
actionSaveOnSubmit: setModal,
|
|
35524
|
+
formId: "modal-action",
|
|
35525
|
+
popupStyles: {
|
|
35526
|
+
width: '60%',
|
|
35527
|
+
marginTop: '5px'
|
|
35528
|
+
}
|
|
35529
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, ((_FinancialYearData2 = FinancialYearData) === null || _FinancialYearData2 === void 0 ? void 0 : _FinancialYearData2.length) > 0 && /*#__PURE__*/React.createElement(Fragment$1, null, FinancialYearData.map((option, index) => /*#__PURE__*/React.createElement("div", {
|
|
35530
|
+
key: index,
|
|
34293
35531
|
style: {
|
|
34294
|
-
marginBottom: '
|
|
34295
|
-
|
|
34296
|
-
|
|
34297
|
-
|
|
34298
|
-
|
|
34299
|
-
|
|
34300
|
-
|
|
34301
|
-
|
|
34302
|
-
|
|
34303
|
-
}, "Installments"), /*#__PURE__*/React.createElement("th", {
|
|
34304
|
-
colSpan: "3",
|
|
34305
|
-
style: tableStyles.th
|
|
34306
|
-
}, "Demand"), /*#__PURE__*/React.createElement("th", {
|
|
34307
|
-
colSpan: "3",
|
|
34308
|
-
style: tableStyles.th
|
|
34309
|
-
}, "Collection"), /*#__PURE__*/React.createElement("th", {
|
|
34310
|
-
colSpan: "3",
|
|
34311
|
-
style: tableStyles.th
|
|
34312
|
-
}, "Balance"), /*#__PURE__*/React.createElement("th", {
|
|
34313
|
-
style: tableStyles.th
|
|
34314
|
-
}, "Advance")), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
|
|
34315
|
-
style: tableStyles.th
|
|
34316
|
-
}), /*#__PURE__*/React.createElement("th", {
|
|
34317
|
-
style: tableStyles.th
|
|
34318
|
-
}, "Tax"), /*#__PURE__*/React.createElement("th", {
|
|
34319
|
-
style: tableStyles.th
|
|
34320
|
-
}, "Interest"), /*#__PURE__*/React.createElement("th", {
|
|
34321
|
-
style: tableStyles.th
|
|
34322
|
-
}, "Penalty"), /*#__PURE__*/React.createElement("th", {
|
|
34323
|
-
style: tableStyles.th
|
|
34324
|
-
}, "Tax"), /*#__PURE__*/React.createElement("th", {
|
|
34325
|
-
style: tableStyles.th
|
|
34326
|
-
}, "Interest"), /*#__PURE__*/React.createElement("th", {
|
|
34327
|
-
style: tableStyles.th
|
|
34328
|
-
}, "Penalty"), /*#__PURE__*/React.createElement("th", {
|
|
34329
|
-
style: tableStyles.th
|
|
34330
|
-
}, "Tax"), /*#__PURE__*/React.createElement("th", {
|
|
34331
|
-
style: tableStyles.th
|
|
34332
|
-
}, "Interest"), /*#__PURE__*/React.createElement("th", {
|
|
34333
|
-
style: tableStyles.th
|
|
34334
|
-
}, "Penalty"), /*#__PURE__*/React.createElement("th", {
|
|
34335
|
-
style: tableStyles.th
|
|
34336
|
-
}, "Advance"))), /*#__PURE__*/React.createElement("tbody", null, demandData === null || demandData === void 0 ? void 0 : demandData.map(item => {
|
|
34337
|
-
return /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
|
|
34338
|
-
style: tableStyles.td
|
|
34339
|
-
}, item.taxPeriodFrom, "-", item.taxPeriodTo), /*#__PURE__*/React.createElement("td", {
|
|
34340
|
-
style: tableStyles.td
|
|
34341
|
-
}, item.demandTax), /*#__PURE__*/React.createElement("td", {
|
|
34342
|
-
style: tableStyles.td
|
|
34343
|
-
}, item.demandInterest), /*#__PURE__*/React.createElement("td", {
|
|
34344
|
-
style: tableStyles.td
|
|
34345
|
-
}, item.demandPenality), /*#__PURE__*/React.createElement("td", {
|
|
34346
|
-
style: tableStyles.td
|
|
34347
|
-
}, item.collectionTax), /*#__PURE__*/React.createElement("td", {
|
|
34348
|
-
style: tableStyles.td
|
|
34349
|
-
}, item.collectionInterest), /*#__PURE__*/React.createElement("td", {
|
|
34350
|
-
style: tableStyles.td
|
|
34351
|
-
}, item.collectionPenality), /*#__PURE__*/React.createElement("td", {
|
|
34352
|
-
style: tableStyles.td
|
|
34353
|
-
}, item.balanceTax), /*#__PURE__*/React.createElement("td", {
|
|
34354
|
-
style: tableStyles.td
|
|
34355
|
-
}, item.balanceInterest), /*#__PURE__*/React.createElement("td", {
|
|
34356
|
-
style: tableStyles.td
|
|
34357
|
-
}, item.balancePenality), /*#__PURE__*/React.createElement("td", {
|
|
34358
|
-
style: tableStyles.td
|
|
34359
|
-
}, item.advance));
|
|
34360
|
-
}), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
|
|
34361
|
-
style: tableStyles.th
|
|
34362
|
-
}, "Total"), /*#__PURE__*/React.createElement("td", {
|
|
34363
|
-
style: tableStyles.td
|
|
34364
|
-
}, totalDemandTax), /*#__PURE__*/React.createElement("td", {
|
|
34365
|
-
style: tableStyles.td
|
|
34366
|
-
}, totalDemandInterest), /*#__PURE__*/React.createElement("td", {
|
|
34367
|
-
style: tableStyles.td
|
|
34368
|
-
}, totalDemandPenality), /*#__PURE__*/React.createElement("td", {
|
|
34369
|
-
style: tableStyles.td
|
|
34370
|
-
}, totalCollectionTax), /*#__PURE__*/React.createElement("td", {
|
|
34371
|
-
style: tableStyles.td
|
|
34372
|
-
}, totalCollectionInterest), /*#__PURE__*/React.createElement("td", {
|
|
34373
|
-
style: tableStyles.td
|
|
34374
|
-
}, totalCollectionPenality), /*#__PURE__*/React.createElement("td", {
|
|
34375
|
-
style: tableStyles.td
|
|
34376
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
34377
|
-
style: tableStyles.td
|
|
34378
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
34379
|
-
style: tableStyles.td
|
|
34380
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
34381
|
-
style: tableStyles.td
|
|
34382
|
-
})), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
|
|
34383
|
-
style: tableStyles.td
|
|
34384
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
34385
|
-
style: tableStyles.td
|
|
34386
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
34387
|
-
style: tableStyles.td
|
|
34388
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
34389
|
-
style: tableStyles.td
|
|
34390
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
34391
|
-
style: tableStyles.td
|
|
34392
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
34393
|
-
style: tableStyles.td
|
|
34394
|
-
}), /*#__PURE__*/React.createElement("th", {
|
|
34395
|
-
style: tableStyles.th
|
|
34396
|
-
}, "Total"), /*#__PURE__*/React.createElement("td", {
|
|
34397
|
-
style: tableStyles.td
|
|
34398
|
-
}, totalBalanceTax), /*#__PURE__*/React.createElement("td", {
|
|
34399
|
-
style: tableStyles.td
|
|
34400
|
-
}, "0"), /*#__PURE__*/React.createElement("td", {
|
|
34401
|
-
style: tableStyles.td
|
|
34402
|
-
}, "0"), /*#__PURE__*/React.createElement("td", {
|
|
34403
|
-
style: tableStyles.td
|
|
34404
|
-
}, "0")), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
|
|
34405
|
-
style: tableStyles.td
|
|
34406
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
34407
|
-
style: tableStyles.td
|
|
34408
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
34409
|
-
style: tableStyles.td
|
|
34410
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
34411
|
-
style: tableStyles.td
|
|
34412
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
34413
|
-
style: tableStyles.td
|
|
34414
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
34415
|
-
style: tableStyles.td
|
|
34416
|
-
}), /*#__PURE__*/React.createElement("th", {
|
|
34417
|
-
style: tableStyles.th
|
|
34418
|
-
}, "Total Balance"), /*#__PURE__*/React.createElement("td", {
|
|
34419
|
-
style: tableStyles.td
|
|
34420
|
-
}, totalBalanceTax)))));
|
|
35532
|
+
marginBottom: '8px'
|
|
35533
|
+
}
|
|
35534
|
+
}, /*#__PURE__*/React.createElement("label", null, /*#__PURE__*/React.createElement("input", {
|
|
35535
|
+
type: "radio",
|
|
35536
|
+
value: option.code,
|
|
35537
|
+
checked: selectedYear === option.code,
|
|
35538
|
+
onChange: e => setSelectedYear(e.target.value),
|
|
35539
|
+
name: "custom-radio"
|
|
35540
|
+
}), option.name)))))));
|
|
34421
35541
|
}
|
|
34422
35542
|
|
|
34423
35543
|
function ApplicationDetailsToast({
|
|
@@ -34728,7 +35848,10 @@ const ApplicationDetails = props => {
|
|
|
34728
35848
|
showTimeLine = true,
|
|
34729
35849
|
oldValue,
|
|
34730
35850
|
isInfoLabel = false,
|
|
34731
|
-
clearDataDetails
|
|
35851
|
+
clearDataDetails,
|
|
35852
|
+
propertyId,
|
|
35853
|
+
setIsCheck,
|
|
35854
|
+
isCheck
|
|
34732
35855
|
} = props;
|
|
34733
35856
|
useEffect(() => {
|
|
34734
35857
|
if (showToast) {
|
|
@@ -34949,6 +36072,7 @@ const ApplicationDetails = props => {
|
|
|
34949
36072
|
window.location.assign(window.location.href.split("/editApplication")[0] + window.location.href.split("editApplication")[1]);
|
|
34950
36073
|
}
|
|
34951
36074
|
};
|
|
36075
|
+
console.log("application Details in template", applicationDetails);
|
|
34952
36076
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !isLoading ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ApplicationDetailsContent, {
|
|
34953
36077
|
applicationDetails: applicationDetails,
|
|
34954
36078
|
demandData: demandData,
|
|
@@ -34964,7 +36088,10 @@ const ApplicationDetails = props => {
|
|
|
34964
36088
|
paymentsList: paymentsList,
|
|
34965
36089
|
showTimeLine: showTimeLine,
|
|
34966
36090
|
oldValue: oldValue,
|
|
34967
|
-
isInfoLabel: isInfoLabel
|
|
36091
|
+
isInfoLabel: isInfoLabel,
|
|
36092
|
+
propertyId: propertyId,
|
|
36093
|
+
setIsCheck: setIsCheck,
|
|
36094
|
+
isCheck: isCheck
|
|
34968
36095
|
}), showModal ? /*#__PURE__*/React.createElement(ActionModal$b, {
|
|
34969
36096
|
t: t,
|
|
34970
36097
|
action: selectedAction,
|