@mseva/upyog-ui-module-ads 1.0.9 → 1.0.11
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 +26887 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1564 -437
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -10896,8 +10896,8 @@ ListCache.prototype.has = _listCacheHas;
|
|
|
10896
10896
|
ListCache.prototype.set = _listCacheSet;
|
|
10897
10897
|
var _ListCache = ListCache;
|
|
10898
10898
|
|
|
10899
|
-
var Map = _getNative(_root, 'Map');
|
|
10900
|
-
var _Map = Map;
|
|
10899
|
+
var Map$1 = _getNative(_root, 'Map');
|
|
10900
|
+
var _Map = Map$1;
|
|
10901
10901
|
|
|
10902
10902
|
function mapCacheClear() {
|
|
10903
10903
|
this.size = 0;
|
|
@@ -20774,6 +20774,818 @@ const ActionModal$b = props => {
|
|
|
20774
20774
|
}
|
|
20775
20775
|
};
|
|
20776
20776
|
|
|
20777
|
+
var bind = function bind(fn, thisArg) {
|
|
20778
|
+
return function wrap() {
|
|
20779
|
+
var args = new Array(arguments.length);
|
|
20780
|
+
for (var i = 0; i < args.length; i++) {
|
|
20781
|
+
args[i] = arguments[i];
|
|
20782
|
+
}
|
|
20783
|
+
return fn.apply(thisArg, args);
|
|
20784
|
+
};
|
|
20785
|
+
};
|
|
20786
|
+
|
|
20787
|
+
var toString$1 = Object.prototype.toString;
|
|
20788
|
+
function isArray$1(val) {
|
|
20789
|
+
return toString$1.call(val) === '[object Array]';
|
|
20790
|
+
}
|
|
20791
|
+
function isUndefined(val) {
|
|
20792
|
+
return typeof val === 'undefined';
|
|
20793
|
+
}
|
|
20794
|
+
function isBuffer(val) {
|
|
20795
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
|
|
20796
|
+
}
|
|
20797
|
+
function isArrayBuffer(val) {
|
|
20798
|
+
return toString$1.call(val) === '[object ArrayBuffer]';
|
|
20799
|
+
}
|
|
20800
|
+
function isFormData(val) {
|
|
20801
|
+
return typeof FormData !== 'undefined' && val instanceof FormData;
|
|
20802
|
+
}
|
|
20803
|
+
function isArrayBufferView(val) {
|
|
20804
|
+
var result;
|
|
20805
|
+
if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
|
|
20806
|
+
result = ArrayBuffer.isView(val);
|
|
20807
|
+
} else {
|
|
20808
|
+
result = val && val.buffer && val.buffer instanceof ArrayBuffer;
|
|
20809
|
+
}
|
|
20810
|
+
return result;
|
|
20811
|
+
}
|
|
20812
|
+
function isString(val) {
|
|
20813
|
+
return typeof val === 'string';
|
|
20814
|
+
}
|
|
20815
|
+
function isNumber(val) {
|
|
20816
|
+
return typeof val === 'number';
|
|
20817
|
+
}
|
|
20818
|
+
function isObject$1(val) {
|
|
20819
|
+
return val !== null && typeof val === 'object';
|
|
20820
|
+
}
|
|
20821
|
+
function isPlainObject(val) {
|
|
20822
|
+
if (toString$1.call(val) !== '[object Object]') {
|
|
20823
|
+
return false;
|
|
20824
|
+
}
|
|
20825
|
+
var prototype = Object.getPrototypeOf(val);
|
|
20826
|
+
return prototype === null || prototype === Object.prototype;
|
|
20827
|
+
}
|
|
20828
|
+
function isDate(val) {
|
|
20829
|
+
return toString$1.call(val) === '[object Date]';
|
|
20830
|
+
}
|
|
20831
|
+
function isFile(val) {
|
|
20832
|
+
return toString$1.call(val) === '[object File]';
|
|
20833
|
+
}
|
|
20834
|
+
function isBlob(val) {
|
|
20835
|
+
return toString$1.call(val) === '[object Blob]';
|
|
20836
|
+
}
|
|
20837
|
+
function isFunction$1(val) {
|
|
20838
|
+
return toString$1.call(val) === '[object Function]';
|
|
20839
|
+
}
|
|
20840
|
+
function isStream(val) {
|
|
20841
|
+
return isObject$1(val) && isFunction$1(val.pipe);
|
|
20842
|
+
}
|
|
20843
|
+
function isURLSearchParams(val) {
|
|
20844
|
+
return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
|
|
20845
|
+
}
|
|
20846
|
+
function trim(str) {
|
|
20847
|
+
return str.replace(/^\s*/, '').replace(/\s*$/, '');
|
|
20848
|
+
}
|
|
20849
|
+
function isStandardBrowserEnv() {
|
|
20850
|
+
if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) {
|
|
20851
|
+
return false;
|
|
20852
|
+
}
|
|
20853
|
+
return typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
20854
|
+
}
|
|
20855
|
+
function forEach(obj, fn) {
|
|
20856
|
+
if (obj === null || typeof obj === 'undefined') {
|
|
20857
|
+
return;
|
|
20858
|
+
}
|
|
20859
|
+
if (typeof obj !== 'object') {
|
|
20860
|
+
obj = [obj];
|
|
20861
|
+
}
|
|
20862
|
+
if (isArray$1(obj)) {
|
|
20863
|
+
for (var i = 0, l = obj.length; i < l; i++) {
|
|
20864
|
+
fn.call(null, obj[i], i, obj);
|
|
20865
|
+
}
|
|
20866
|
+
} else {
|
|
20867
|
+
for (var key in obj) {
|
|
20868
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
20869
|
+
fn.call(null, obj[key], key, obj);
|
|
20870
|
+
}
|
|
20871
|
+
}
|
|
20872
|
+
}
|
|
20873
|
+
}
|
|
20874
|
+
function merge() {
|
|
20875
|
+
var result = {};
|
|
20876
|
+
function assignValue(val, key) {
|
|
20877
|
+
if (isPlainObject(result[key]) && isPlainObject(val)) {
|
|
20878
|
+
result[key] = merge(result[key], val);
|
|
20879
|
+
} else if (isPlainObject(val)) {
|
|
20880
|
+
result[key] = merge({}, val);
|
|
20881
|
+
} else if (isArray$1(val)) {
|
|
20882
|
+
result[key] = val.slice();
|
|
20883
|
+
} else {
|
|
20884
|
+
result[key] = val;
|
|
20885
|
+
}
|
|
20886
|
+
}
|
|
20887
|
+
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
20888
|
+
forEach(arguments[i], assignValue);
|
|
20889
|
+
}
|
|
20890
|
+
return result;
|
|
20891
|
+
}
|
|
20892
|
+
function extend(a, b, thisArg) {
|
|
20893
|
+
forEach(b, function assignValue(val, key) {
|
|
20894
|
+
if (thisArg && typeof val === 'function') {
|
|
20895
|
+
a[key] = bind(val, thisArg);
|
|
20896
|
+
} else {
|
|
20897
|
+
a[key] = val;
|
|
20898
|
+
}
|
|
20899
|
+
});
|
|
20900
|
+
return a;
|
|
20901
|
+
}
|
|
20902
|
+
function stripBOM(content) {
|
|
20903
|
+
if (content.charCodeAt(0) === 0xFEFF) {
|
|
20904
|
+
content = content.slice(1);
|
|
20905
|
+
}
|
|
20906
|
+
return content;
|
|
20907
|
+
}
|
|
20908
|
+
var utils = {
|
|
20909
|
+
isArray: isArray$1,
|
|
20910
|
+
isArrayBuffer: isArrayBuffer,
|
|
20911
|
+
isBuffer: isBuffer,
|
|
20912
|
+
isFormData: isFormData,
|
|
20913
|
+
isArrayBufferView: isArrayBufferView,
|
|
20914
|
+
isString: isString,
|
|
20915
|
+
isNumber: isNumber,
|
|
20916
|
+
isObject: isObject$1,
|
|
20917
|
+
isPlainObject: isPlainObject,
|
|
20918
|
+
isUndefined: isUndefined,
|
|
20919
|
+
isDate: isDate,
|
|
20920
|
+
isFile: isFile,
|
|
20921
|
+
isBlob: isBlob,
|
|
20922
|
+
isFunction: isFunction$1,
|
|
20923
|
+
isStream: isStream,
|
|
20924
|
+
isURLSearchParams: isURLSearchParams,
|
|
20925
|
+
isStandardBrowserEnv: isStandardBrowserEnv,
|
|
20926
|
+
forEach: forEach,
|
|
20927
|
+
merge: merge,
|
|
20928
|
+
extend: extend,
|
|
20929
|
+
trim: trim,
|
|
20930
|
+
stripBOM: stripBOM
|
|
20931
|
+
};
|
|
20932
|
+
|
|
20933
|
+
function encode(val) {
|
|
20934
|
+
return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
|
|
20935
|
+
}
|
|
20936
|
+
var buildURL = function buildURL(url, params, paramsSerializer) {
|
|
20937
|
+
if (!params) {
|
|
20938
|
+
return url;
|
|
20939
|
+
}
|
|
20940
|
+
var serializedParams;
|
|
20941
|
+
if (paramsSerializer) {
|
|
20942
|
+
serializedParams = paramsSerializer(params);
|
|
20943
|
+
} else if (utils.isURLSearchParams(params)) {
|
|
20944
|
+
serializedParams = params.toString();
|
|
20945
|
+
} else {
|
|
20946
|
+
var parts = [];
|
|
20947
|
+
utils.forEach(params, function serialize(val, key) {
|
|
20948
|
+
if (val === null || typeof val === 'undefined') {
|
|
20949
|
+
return;
|
|
20950
|
+
}
|
|
20951
|
+
if (utils.isArray(val)) {
|
|
20952
|
+
key = key + '[]';
|
|
20953
|
+
} else {
|
|
20954
|
+
val = [val];
|
|
20955
|
+
}
|
|
20956
|
+
utils.forEach(val, function parseValue(v) {
|
|
20957
|
+
if (utils.isDate(v)) {
|
|
20958
|
+
v = v.toISOString();
|
|
20959
|
+
} else if (utils.isObject(v)) {
|
|
20960
|
+
v = JSON.stringify(v);
|
|
20961
|
+
}
|
|
20962
|
+
parts.push(encode(key) + '=' + encode(v));
|
|
20963
|
+
});
|
|
20964
|
+
});
|
|
20965
|
+
serializedParams = parts.join('&');
|
|
20966
|
+
}
|
|
20967
|
+
if (serializedParams) {
|
|
20968
|
+
var hashmarkIndex = url.indexOf('#');
|
|
20969
|
+
if (hashmarkIndex !== -1) {
|
|
20970
|
+
url = url.slice(0, hashmarkIndex);
|
|
20971
|
+
}
|
|
20972
|
+
url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
|
|
20973
|
+
}
|
|
20974
|
+
return url;
|
|
20975
|
+
};
|
|
20976
|
+
|
|
20977
|
+
function InterceptorManager() {
|
|
20978
|
+
this.handlers = [];
|
|
20979
|
+
}
|
|
20980
|
+
InterceptorManager.prototype.use = function use(fulfilled, rejected) {
|
|
20981
|
+
this.handlers.push({
|
|
20982
|
+
fulfilled: fulfilled,
|
|
20983
|
+
rejected: rejected
|
|
20984
|
+
});
|
|
20985
|
+
return this.handlers.length - 1;
|
|
20986
|
+
};
|
|
20987
|
+
InterceptorManager.prototype.eject = function eject(id) {
|
|
20988
|
+
if (this.handlers[id]) {
|
|
20989
|
+
this.handlers[id] = null;
|
|
20990
|
+
}
|
|
20991
|
+
};
|
|
20992
|
+
InterceptorManager.prototype.forEach = function forEach(fn) {
|
|
20993
|
+
utils.forEach(this.handlers, function forEachHandler(h) {
|
|
20994
|
+
if (h !== null) {
|
|
20995
|
+
fn(h);
|
|
20996
|
+
}
|
|
20997
|
+
});
|
|
20998
|
+
};
|
|
20999
|
+
var InterceptorManager_1 = InterceptorManager;
|
|
21000
|
+
|
|
21001
|
+
var transformData = function transformData(data, headers, fns) {
|
|
21002
|
+
utils.forEach(fns, function transform(fn) {
|
|
21003
|
+
data = fn(data, headers);
|
|
21004
|
+
});
|
|
21005
|
+
return data;
|
|
21006
|
+
};
|
|
21007
|
+
|
|
21008
|
+
var isCancel = function isCancel(value) {
|
|
21009
|
+
return !!(value && value.__CANCEL__);
|
|
21010
|
+
};
|
|
21011
|
+
|
|
21012
|
+
var normalizeHeaderName = function normalizeHeaderName(headers, normalizedName) {
|
|
21013
|
+
utils.forEach(headers, function processHeader(value, name) {
|
|
21014
|
+
if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
|
|
21015
|
+
headers[normalizedName] = value;
|
|
21016
|
+
delete headers[name];
|
|
21017
|
+
}
|
|
21018
|
+
});
|
|
21019
|
+
};
|
|
21020
|
+
|
|
21021
|
+
var enhanceError = function enhanceError(error, config, code, request, response) {
|
|
21022
|
+
error.config = config;
|
|
21023
|
+
if (code) {
|
|
21024
|
+
error.code = code;
|
|
21025
|
+
}
|
|
21026
|
+
error.request = request;
|
|
21027
|
+
error.response = response;
|
|
21028
|
+
error.isAxiosError = true;
|
|
21029
|
+
error.toJSON = function toJSON() {
|
|
21030
|
+
return {
|
|
21031
|
+
message: this.message,
|
|
21032
|
+
name: this.name,
|
|
21033
|
+
description: this.description,
|
|
21034
|
+
number: this.number,
|
|
21035
|
+
fileName: this.fileName,
|
|
21036
|
+
lineNumber: this.lineNumber,
|
|
21037
|
+
columnNumber: this.columnNumber,
|
|
21038
|
+
stack: this.stack,
|
|
21039
|
+
config: this.config,
|
|
21040
|
+
code: this.code
|
|
21041
|
+
};
|
|
21042
|
+
};
|
|
21043
|
+
return error;
|
|
21044
|
+
};
|
|
21045
|
+
|
|
21046
|
+
var createError = function createError(message, config, code, request, response) {
|
|
21047
|
+
var error = new Error(message);
|
|
21048
|
+
return enhanceError(error, config, code, request, response);
|
|
21049
|
+
};
|
|
21050
|
+
|
|
21051
|
+
var settle = function settle(resolve, reject, response) {
|
|
21052
|
+
var validateStatus = response.config.validateStatus;
|
|
21053
|
+
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
21054
|
+
resolve(response);
|
|
21055
|
+
} else {
|
|
21056
|
+
reject(createError('Request failed with status code ' + response.status, response.config, null, response.request, response));
|
|
21057
|
+
}
|
|
21058
|
+
};
|
|
21059
|
+
|
|
21060
|
+
var cookies = utils.isStandardBrowserEnv() ? function standardBrowserEnv() {
|
|
21061
|
+
return {
|
|
21062
|
+
write: function write(name, value, expires, path, domain, secure) {
|
|
21063
|
+
var cookie = [];
|
|
21064
|
+
cookie.push(name + '=' + encodeURIComponent(value));
|
|
21065
|
+
if (utils.isNumber(expires)) {
|
|
21066
|
+
cookie.push('expires=' + new Date(expires).toGMTString());
|
|
21067
|
+
}
|
|
21068
|
+
if (utils.isString(path)) {
|
|
21069
|
+
cookie.push('path=' + path);
|
|
21070
|
+
}
|
|
21071
|
+
if (utils.isString(domain)) {
|
|
21072
|
+
cookie.push('domain=' + domain);
|
|
21073
|
+
}
|
|
21074
|
+
if (secure === true) {
|
|
21075
|
+
cookie.push('secure');
|
|
21076
|
+
}
|
|
21077
|
+
document.cookie = cookie.join('; ');
|
|
21078
|
+
},
|
|
21079
|
+
read: function read(name) {
|
|
21080
|
+
var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
|
|
21081
|
+
return match ? decodeURIComponent(match[3]) : null;
|
|
21082
|
+
},
|
|
21083
|
+
remove: function remove(name) {
|
|
21084
|
+
this.write(name, '', Date.now() - 86400000);
|
|
21085
|
+
}
|
|
21086
|
+
};
|
|
21087
|
+
}() : function nonStandardBrowserEnv() {
|
|
21088
|
+
return {
|
|
21089
|
+
write: function write() {},
|
|
21090
|
+
read: function read() {
|
|
21091
|
+
return null;
|
|
21092
|
+
},
|
|
21093
|
+
remove: function remove() {}
|
|
21094
|
+
};
|
|
21095
|
+
}();
|
|
21096
|
+
|
|
21097
|
+
var isAbsoluteURL = function isAbsoluteURL(url) {
|
|
21098
|
+
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
|
|
21099
|
+
};
|
|
21100
|
+
|
|
21101
|
+
var combineURLs = function combineURLs(baseURL, relativeURL) {
|
|
21102
|
+
return relativeURL ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL;
|
|
21103
|
+
};
|
|
21104
|
+
|
|
21105
|
+
var buildFullPath = function buildFullPath(baseURL, requestedURL) {
|
|
21106
|
+
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
21107
|
+
return combineURLs(baseURL, requestedURL);
|
|
21108
|
+
}
|
|
21109
|
+
return requestedURL;
|
|
21110
|
+
};
|
|
21111
|
+
|
|
21112
|
+
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'];
|
|
21113
|
+
var parseHeaders = function parseHeaders(headers) {
|
|
21114
|
+
var parsed = {};
|
|
21115
|
+
var key;
|
|
21116
|
+
var val;
|
|
21117
|
+
var i;
|
|
21118
|
+
if (!headers) {
|
|
21119
|
+
return parsed;
|
|
21120
|
+
}
|
|
21121
|
+
utils.forEach(headers.split('\n'), function parser(line) {
|
|
21122
|
+
i = line.indexOf(':');
|
|
21123
|
+
key = utils.trim(line.substr(0, i)).toLowerCase();
|
|
21124
|
+
val = utils.trim(line.substr(i + 1));
|
|
21125
|
+
if (key) {
|
|
21126
|
+
if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
|
|
21127
|
+
return;
|
|
21128
|
+
}
|
|
21129
|
+
if (key === 'set-cookie') {
|
|
21130
|
+
parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
|
|
21131
|
+
} else {
|
|
21132
|
+
parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
|
|
21133
|
+
}
|
|
21134
|
+
}
|
|
21135
|
+
});
|
|
21136
|
+
return parsed;
|
|
21137
|
+
};
|
|
21138
|
+
|
|
21139
|
+
var isURLSameOrigin = utils.isStandardBrowserEnv() ? function standardBrowserEnv() {
|
|
21140
|
+
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
21141
|
+
var urlParsingNode = document.createElement('a');
|
|
21142
|
+
var originURL;
|
|
21143
|
+
function resolveURL(url) {
|
|
21144
|
+
var href = url;
|
|
21145
|
+
if (msie) {
|
|
21146
|
+
urlParsingNode.setAttribute('href', href);
|
|
21147
|
+
href = urlParsingNode.href;
|
|
21148
|
+
}
|
|
21149
|
+
urlParsingNode.setAttribute('href', href);
|
|
21150
|
+
return {
|
|
21151
|
+
href: urlParsingNode.href,
|
|
21152
|
+
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
|
|
21153
|
+
host: urlParsingNode.host,
|
|
21154
|
+
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
|
|
21155
|
+
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
|
|
21156
|
+
hostname: urlParsingNode.hostname,
|
|
21157
|
+
port: urlParsingNode.port,
|
|
21158
|
+
pathname: urlParsingNode.pathname.charAt(0) === '/' ? urlParsingNode.pathname : '/' + urlParsingNode.pathname
|
|
21159
|
+
};
|
|
21160
|
+
}
|
|
21161
|
+
originURL = resolveURL(window.location.href);
|
|
21162
|
+
return function isURLSameOrigin(requestURL) {
|
|
21163
|
+
var parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
21164
|
+
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
21165
|
+
};
|
|
21166
|
+
}() : function nonStandardBrowserEnv() {
|
|
21167
|
+
return function isURLSameOrigin() {
|
|
21168
|
+
return true;
|
|
21169
|
+
};
|
|
21170
|
+
}();
|
|
21171
|
+
|
|
21172
|
+
var xhr = function xhrAdapter(config) {
|
|
21173
|
+
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
21174
|
+
var requestData = config.data;
|
|
21175
|
+
var requestHeaders = config.headers;
|
|
21176
|
+
if (utils.isFormData(requestData)) {
|
|
21177
|
+
delete requestHeaders['Content-Type'];
|
|
21178
|
+
}
|
|
21179
|
+
var request = new XMLHttpRequest();
|
|
21180
|
+
if (config.auth) {
|
|
21181
|
+
var username = config.auth.username || '';
|
|
21182
|
+
var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
|
|
21183
|
+
requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
|
|
21184
|
+
}
|
|
21185
|
+
var fullPath = buildFullPath(config.baseURL, config.url);
|
|
21186
|
+
request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
|
|
21187
|
+
request.timeout = config.timeout;
|
|
21188
|
+
request.onreadystatechange = function handleLoad() {
|
|
21189
|
+
if (!request || request.readyState !== 4) {
|
|
21190
|
+
return;
|
|
21191
|
+
}
|
|
21192
|
+
if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
|
|
21193
|
+
return;
|
|
21194
|
+
}
|
|
21195
|
+
var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
|
|
21196
|
+
var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
|
|
21197
|
+
var response = {
|
|
21198
|
+
data: responseData,
|
|
21199
|
+
status: request.status,
|
|
21200
|
+
statusText: request.statusText,
|
|
21201
|
+
headers: responseHeaders,
|
|
21202
|
+
config: config,
|
|
21203
|
+
request: request
|
|
21204
|
+
};
|
|
21205
|
+
settle(resolve, reject, response);
|
|
21206
|
+
request = null;
|
|
21207
|
+
};
|
|
21208
|
+
request.onabort = function handleAbort() {
|
|
21209
|
+
if (!request) {
|
|
21210
|
+
return;
|
|
21211
|
+
}
|
|
21212
|
+
reject(createError('Request aborted', config, 'ECONNABORTED', request));
|
|
21213
|
+
request = null;
|
|
21214
|
+
};
|
|
21215
|
+
request.onerror = function handleError() {
|
|
21216
|
+
reject(createError('Network Error', config, null, request));
|
|
21217
|
+
request = null;
|
|
21218
|
+
};
|
|
21219
|
+
request.ontimeout = function handleTimeout() {
|
|
21220
|
+
var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
|
|
21221
|
+
if (config.timeoutErrorMessage) {
|
|
21222
|
+
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
21223
|
+
}
|
|
21224
|
+
reject(createError(timeoutErrorMessage, config, 'ECONNABORTED', request));
|
|
21225
|
+
request = null;
|
|
21226
|
+
};
|
|
21227
|
+
if (utils.isStandardBrowserEnv()) {
|
|
21228
|
+
var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : undefined;
|
|
21229
|
+
if (xsrfValue) {
|
|
21230
|
+
requestHeaders[config.xsrfHeaderName] = xsrfValue;
|
|
21231
|
+
}
|
|
21232
|
+
}
|
|
21233
|
+
if ('setRequestHeader' in request) {
|
|
21234
|
+
utils.forEach(requestHeaders, function setRequestHeader(val, key) {
|
|
21235
|
+
if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
|
|
21236
|
+
delete requestHeaders[key];
|
|
21237
|
+
} else {
|
|
21238
|
+
request.setRequestHeader(key, val);
|
|
21239
|
+
}
|
|
21240
|
+
});
|
|
21241
|
+
}
|
|
21242
|
+
if (!utils.isUndefined(config.withCredentials)) {
|
|
21243
|
+
request.withCredentials = !!config.withCredentials;
|
|
21244
|
+
}
|
|
21245
|
+
if (config.responseType) {
|
|
21246
|
+
try {
|
|
21247
|
+
request.responseType = config.responseType;
|
|
21248
|
+
} catch (e) {
|
|
21249
|
+
if (config.responseType !== 'json') {
|
|
21250
|
+
throw e;
|
|
21251
|
+
}
|
|
21252
|
+
}
|
|
21253
|
+
}
|
|
21254
|
+
if (typeof config.onDownloadProgress === 'function') {
|
|
21255
|
+
request.addEventListener('progress', config.onDownloadProgress);
|
|
21256
|
+
}
|
|
21257
|
+
if (typeof config.onUploadProgress === 'function' && request.upload) {
|
|
21258
|
+
request.upload.addEventListener('progress', config.onUploadProgress);
|
|
21259
|
+
}
|
|
21260
|
+
if (config.cancelToken) {
|
|
21261
|
+
config.cancelToken.promise.then(function onCanceled(cancel) {
|
|
21262
|
+
if (!request) {
|
|
21263
|
+
return;
|
|
21264
|
+
}
|
|
21265
|
+
request.abort();
|
|
21266
|
+
reject(cancel);
|
|
21267
|
+
request = null;
|
|
21268
|
+
});
|
|
21269
|
+
}
|
|
21270
|
+
if (!requestData) {
|
|
21271
|
+
requestData = null;
|
|
21272
|
+
}
|
|
21273
|
+
request.send(requestData);
|
|
21274
|
+
});
|
|
21275
|
+
};
|
|
21276
|
+
|
|
21277
|
+
var DEFAULT_CONTENT_TYPE = {
|
|
21278
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
21279
|
+
};
|
|
21280
|
+
function setContentTypeIfUnset(headers, value) {
|
|
21281
|
+
if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
|
|
21282
|
+
headers['Content-Type'] = value;
|
|
21283
|
+
}
|
|
21284
|
+
}
|
|
21285
|
+
function getDefaultAdapter() {
|
|
21286
|
+
var adapter;
|
|
21287
|
+
if (typeof XMLHttpRequest !== 'undefined') {
|
|
21288
|
+
adapter = xhr;
|
|
21289
|
+
} else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
|
|
21290
|
+
adapter = xhr;
|
|
21291
|
+
}
|
|
21292
|
+
return adapter;
|
|
21293
|
+
}
|
|
21294
|
+
var defaults = {
|
|
21295
|
+
adapter: getDefaultAdapter(),
|
|
21296
|
+
transformRequest: [function transformRequest(data, headers) {
|
|
21297
|
+
normalizeHeaderName(headers, 'Accept');
|
|
21298
|
+
normalizeHeaderName(headers, 'Content-Type');
|
|
21299
|
+
if (utils.isFormData(data) || utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data)) {
|
|
21300
|
+
return data;
|
|
21301
|
+
}
|
|
21302
|
+
if (utils.isArrayBufferView(data)) {
|
|
21303
|
+
return data.buffer;
|
|
21304
|
+
}
|
|
21305
|
+
if (utils.isURLSearchParams(data)) {
|
|
21306
|
+
setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
|
|
21307
|
+
return data.toString();
|
|
21308
|
+
}
|
|
21309
|
+
if (utils.isObject(data)) {
|
|
21310
|
+
setContentTypeIfUnset(headers, 'application/json;charset=utf-8');
|
|
21311
|
+
return JSON.stringify(data);
|
|
21312
|
+
}
|
|
21313
|
+
return data;
|
|
21314
|
+
}],
|
|
21315
|
+
transformResponse: [function transformResponse(data) {
|
|
21316
|
+
if (typeof data === 'string') {
|
|
21317
|
+
try {
|
|
21318
|
+
data = JSON.parse(data);
|
|
21319
|
+
} catch (e) {}
|
|
21320
|
+
}
|
|
21321
|
+
return data;
|
|
21322
|
+
}],
|
|
21323
|
+
timeout: 0,
|
|
21324
|
+
xsrfCookieName: 'XSRF-TOKEN',
|
|
21325
|
+
xsrfHeaderName: 'X-XSRF-TOKEN',
|
|
21326
|
+
maxContentLength: -1,
|
|
21327
|
+
maxBodyLength: -1,
|
|
21328
|
+
validateStatus: function validateStatus(status) {
|
|
21329
|
+
return status >= 200 && status < 300;
|
|
21330
|
+
}
|
|
21331
|
+
};
|
|
21332
|
+
defaults.headers = {
|
|
21333
|
+
common: {
|
|
21334
|
+
'Accept': 'application/json, text/plain, */*'
|
|
21335
|
+
}
|
|
21336
|
+
};
|
|
21337
|
+
utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
|
|
21338
|
+
defaults.headers[method] = {};
|
|
21339
|
+
});
|
|
21340
|
+
utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
21341
|
+
defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
|
|
21342
|
+
});
|
|
21343
|
+
var defaults_1 = defaults;
|
|
21344
|
+
|
|
21345
|
+
function throwIfCancellationRequested(config) {
|
|
21346
|
+
if (config.cancelToken) {
|
|
21347
|
+
config.cancelToken.throwIfRequested();
|
|
21348
|
+
}
|
|
21349
|
+
}
|
|
21350
|
+
var dispatchRequest = function dispatchRequest(config) {
|
|
21351
|
+
throwIfCancellationRequested(config);
|
|
21352
|
+
config.headers = config.headers || {};
|
|
21353
|
+
config.data = transformData(config.data, config.headers, config.transformRequest);
|
|
21354
|
+
config.headers = utils.merge(config.headers.common || {}, config.headers[config.method] || {}, config.headers);
|
|
21355
|
+
utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function cleanHeaderConfig(method) {
|
|
21356
|
+
delete config.headers[method];
|
|
21357
|
+
});
|
|
21358
|
+
var adapter = config.adapter || defaults_1.adapter;
|
|
21359
|
+
return adapter(config).then(function onAdapterResolution(response) {
|
|
21360
|
+
throwIfCancellationRequested(config);
|
|
21361
|
+
response.data = transformData(response.data, response.headers, config.transformResponse);
|
|
21362
|
+
return response;
|
|
21363
|
+
}, function onAdapterRejection(reason) {
|
|
21364
|
+
if (!isCancel(reason)) {
|
|
21365
|
+
throwIfCancellationRequested(config);
|
|
21366
|
+
if (reason && reason.response) {
|
|
21367
|
+
reason.response.data = transformData(reason.response.data, reason.response.headers, config.transformResponse);
|
|
21368
|
+
}
|
|
21369
|
+
}
|
|
21370
|
+
return Promise.reject(reason);
|
|
21371
|
+
});
|
|
21372
|
+
};
|
|
21373
|
+
|
|
21374
|
+
var mergeConfig = function mergeConfig(config1, config2) {
|
|
21375
|
+
config2 = config2 || {};
|
|
21376
|
+
var config = {};
|
|
21377
|
+
var valueFromConfig2Keys = ['url', 'method', 'data'];
|
|
21378
|
+
var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];
|
|
21379
|
+
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'];
|
|
21380
|
+
var directMergeKeys = ['validateStatus'];
|
|
21381
|
+
function getMergedValue(target, source) {
|
|
21382
|
+
if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
|
|
21383
|
+
return utils.merge(target, source);
|
|
21384
|
+
} else if (utils.isPlainObject(source)) {
|
|
21385
|
+
return utils.merge({}, source);
|
|
21386
|
+
} else if (utils.isArray(source)) {
|
|
21387
|
+
return source.slice();
|
|
21388
|
+
}
|
|
21389
|
+
return source;
|
|
21390
|
+
}
|
|
21391
|
+
function mergeDeepProperties(prop) {
|
|
21392
|
+
if (!utils.isUndefined(config2[prop])) {
|
|
21393
|
+
config[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
21394
|
+
} else if (!utils.isUndefined(config1[prop])) {
|
|
21395
|
+
config[prop] = getMergedValue(undefined, config1[prop]);
|
|
21396
|
+
}
|
|
21397
|
+
}
|
|
21398
|
+
utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
|
|
21399
|
+
if (!utils.isUndefined(config2[prop])) {
|
|
21400
|
+
config[prop] = getMergedValue(undefined, config2[prop]);
|
|
21401
|
+
}
|
|
21402
|
+
});
|
|
21403
|
+
utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
|
|
21404
|
+
utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
|
|
21405
|
+
if (!utils.isUndefined(config2[prop])) {
|
|
21406
|
+
config[prop] = getMergedValue(undefined, config2[prop]);
|
|
21407
|
+
} else if (!utils.isUndefined(config1[prop])) {
|
|
21408
|
+
config[prop] = getMergedValue(undefined, config1[prop]);
|
|
21409
|
+
}
|
|
21410
|
+
});
|
|
21411
|
+
utils.forEach(directMergeKeys, function merge(prop) {
|
|
21412
|
+
if (prop in config2) {
|
|
21413
|
+
config[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
21414
|
+
} else if (prop in config1) {
|
|
21415
|
+
config[prop] = getMergedValue(undefined, config1[prop]);
|
|
21416
|
+
}
|
|
21417
|
+
});
|
|
21418
|
+
var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);
|
|
21419
|
+
var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(function filterAxiosKeys(key) {
|
|
21420
|
+
return axiosKeys.indexOf(key) === -1;
|
|
21421
|
+
});
|
|
21422
|
+
utils.forEach(otherKeys, mergeDeepProperties);
|
|
21423
|
+
return config;
|
|
21424
|
+
};
|
|
21425
|
+
|
|
21426
|
+
function Axios(instanceConfig) {
|
|
21427
|
+
this.defaults = instanceConfig;
|
|
21428
|
+
this.interceptors = {
|
|
21429
|
+
request: new InterceptorManager_1(),
|
|
21430
|
+
response: new InterceptorManager_1()
|
|
21431
|
+
};
|
|
21432
|
+
}
|
|
21433
|
+
Axios.prototype.request = function request(config) {
|
|
21434
|
+
if (typeof config === 'string') {
|
|
21435
|
+
config = arguments[1] || {};
|
|
21436
|
+
config.url = arguments[0];
|
|
21437
|
+
} else {
|
|
21438
|
+
config = config || {};
|
|
21439
|
+
}
|
|
21440
|
+
config = mergeConfig(this.defaults, config);
|
|
21441
|
+
if (config.method) {
|
|
21442
|
+
config.method = config.method.toLowerCase();
|
|
21443
|
+
} else if (this.defaults.method) {
|
|
21444
|
+
config.method = this.defaults.method.toLowerCase();
|
|
21445
|
+
} else {
|
|
21446
|
+
config.method = 'get';
|
|
21447
|
+
}
|
|
21448
|
+
var chain = [dispatchRequest, undefined];
|
|
21449
|
+
var promise = Promise.resolve(config);
|
|
21450
|
+
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
21451
|
+
chain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
21452
|
+
});
|
|
21453
|
+
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
21454
|
+
chain.push(interceptor.fulfilled, interceptor.rejected);
|
|
21455
|
+
});
|
|
21456
|
+
while (chain.length) {
|
|
21457
|
+
promise = promise.then(chain.shift(), chain.shift());
|
|
21458
|
+
}
|
|
21459
|
+
return promise;
|
|
21460
|
+
};
|
|
21461
|
+
Axios.prototype.getUri = function getUri(config) {
|
|
21462
|
+
config = mergeConfig(this.defaults, config);
|
|
21463
|
+
return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
|
|
21464
|
+
};
|
|
21465
|
+
utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
|
|
21466
|
+
Axios.prototype[method] = function (url, config) {
|
|
21467
|
+
return this.request(mergeConfig(config || {}, {
|
|
21468
|
+
method: method,
|
|
21469
|
+
url: url,
|
|
21470
|
+
data: (config || {}).data
|
|
21471
|
+
}));
|
|
21472
|
+
};
|
|
21473
|
+
});
|
|
21474
|
+
utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
21475
|
+
Axios.prototype[method] = function (url, data, config) {
|
|
21476
|
+
return this.request(mergeConfig(config || {}, {
|
|
21477
|
+
method: method,
|
|
21478
|
+
url: url,
|
|
21479
|
+
data: data
|
|
21480
|
+
}));
|
|
21481
|
+
};
|
|
21482
|
+
});
|
|
21483
|
+
var Axios_1 = Axios;
|
|
21484
|
+
|
|
21485
|
+
function Cancel(message) {
|
|
21486
|
+
this.message = message;
|
|
21487
|
+
}
|
|
21488
|
+
Cancel.prototype.toString = function toString() {
|
|
21489
|
+
return 'Cancel' + (this.message ? ': ' + this.message : '');
|
|
21490
|
+
};
|
|
21491
|
+
Cancel.prototype.__CANCEL__ = true;
|
|
21492
|
+
var Cancel_1 = Cancel;
|
|
21493
|
+
|
|
21494
|
+
function CancelToken(executor) {
|
|
21495
|
+
if (typeof executor !== 'function') {
|
|
21496
|
+
throw new TypeError('executor must be a function.');
|
|
21497
|
+
}
|
|
21498
|
+
var resolvePromise;
|
|
21499
|
+
this.promise = new Promise(function promiseExecutor(resolve) {
|
|
21500
|
+
resolvePromise = resolve;
|
|
21501
|
+
});
|
|
21502
|
+
var token = this;
|
|
21503
|
+
executor(function cancel(message) {
|
|
21504
|
+
if (token.reason) {
|
|
21505
|
+
return;
|
|
21506
|
+
}
|
|
21507
|
+
token.reason = new Cancel_1(message);
|
|
21508
|
+
resolvePromise(token.reason);
|
|
21509
|
+
});
|
|
21510
|
+
}
|
|
21511
|
+
CancelToken.prototype.throwIfRequested = function throwIfRequested() {
|
|
21512
|
+
if (this.reason) {
|
|
21513
|
+
throw this.reason;
|
|
21514
|
+
}
|
|
21515
|
+
};
|
|
21516
|
+
CancelToken.source = function source() {
|
|
21517
|
+
var cancel;
|
|
21518
|
+
var token = new CancelToken(function executor(c) {
|
|
21519
|
+
cancel = c;
|
|
21520
|
+
});
|
|
21521
|
+
return {
|
|
21522
|
+
token: token,
|
|
21523
|
+
cancel: cancel
|
|
21524
|
+
};
|
|
21525
|
+
};
|
|
21526
|
+
var CancelToken_1 = CancelToken;
|
|
21527
|
+
|
|
21528
|
+
var spread = function spread(callback) {
|
|
21529
|
+
return function wrap(arr) {
|
|
21530
|
+
return callback.apply(null, arr);
|
|
21531
|
+
};
|
|
21532
|
+
};
|
|
21533
|
+
|
|
21534
|
+
var isAxiosError = function isAxiosError(payload) {
|
|
21535
|
+
return typeof payload === 'object' && payload.isAxiosError === true;
|
|
21536
|
+
};
|
|
21537
|
+
|
|
21538
|
+
function createInstance(defaultConfig) {
|
|
21539
|
+
var context = new Axios_1(defaultConfig);
|
|
21540
|
+
var instance = bind(Axios_1.prototype.request, context);
|
|
21541
|
+
utils.extend(instance, Axios_1.prototype, context);
|
|
21542
|
+
utils.extend(instance, context);
|
|
21543
|
+
return instance;
|
|
21544
|
+
}
|
|
21545
|
+
var axios = createInstance(defaults_1);
|
|
21546
|
+
axios.Axios = Axios_1;
|
|
21547
|
+
axios.create = function create(instanceConfig) {
|
|
21548
|
+
return createInstance(mergeConfig(axios.defaults, instanceConfig));
|
|
21549
|
+
};
|
|
21550
|
+
axios.Cancel = Cancel_1;
|
|
21551
|
+
axios.CancelToken = CancelToken_1;
|
|
21552
|
+
axios.isCancel = isCancel;
|
|
21553
|
+
axios.all = function all(promises) {
|
|
21554
|
+
return Promise.all(promises);
|
|
21555
|
+
};
|
|
21556
|
+
axios.spread = spread;
|
|
21557
|
+
axios.isAxiosError = isAxiosError;
|
|
21558
|
+
var axios_1 = axios;
|
|
21559
|
+
var _default = axios;
|
|
21560
|
+
axios_1.default = _default;
|
|
21561
|
+
|
|
21562
|
+
var axios$1 = axios_1;
|
|
21563
|
+
|
|
21564
|
+
axios$1.interceptors.response.use(res => res, err => {
|
|
21565
|
+
var _err$response, _err$response$data;
|
|
21566
|
+
const isEmployee = window.location.pathname.split("/").includes("employee");
|
|
21567
|
+
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) {
|
|
21568
|
+
for (const error of err.response.data.Errors) {
|
|
21569
|
+
var _error$message, _error$message$toLowe, _error$message2, _error$message2$toLow;
|
|
21570
|
+
if (error.message.includes("InvalidAccessTokenException")) {
|
|
21571
|
+
localStorage.clear();
|
|
21572
|
+
sessionStorage.clear();
|
|
21573
|
+
window.location.href = (isEmployee ? "/digit-ui/employee/user/login" : "/digit-ui/citizen/login") + `?from=${encodeURIComponent(window.location.pathname + window.location.search)}`;
|
|
21574
|
+
} 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")) {
|
|
21575
|
+
window.location.href = (isEmployee ? "/digit-ui/employee/user/error" : "/digit-ui/citizen/error") + `?type=maintenance&from=${encodeURIComponent(window.location.pathname + window.location.search)}`;
|
|
21576
|
+
} else if (error.message.includes("ZuulRuntimeException")) {
|
|
21577
|
+
window.location.href = (isEmployee ? "/digit-ui/employee/user/error" : "/digit-ui/citizen/error") + `?type=notfound&from=${encodeURIComponent(window.location.pathname + window.location.search)}`;
|
|
21578
|
+
}
|
|
21579
|
+
}
|
|
21580
|
+
}
|
|
21581
|
+
throw err;
|
|
21582
|
+
});
|
|
21583
|
+
window.Digit = window.Digit || {};
|
|
21584
|
+
window.Digit = {
|
|
21585
|
+
...window.Digit,
|
|
21586
|
+
RequestCache: window.Digit.RequestCache || {}
|
|
21587
|
+
};
|
|
21588
|
+
|
|
20777
21589
|
function DocumentsPreview({
|
|
20778
21590
|
documents,
|
|
20779
21591
|
svgStyles = {},
|
|
@@ -23458,297 +24270,500 @@ const ViewBreakup = ({
|
|
|
23458
24270
|
fontWeight: "700",
|
|
23459
24271
|
fontSize: "24px"
|
|
23460
24272
|
}
|
|
23461
|
-
}), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
24273
|
+
}), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
24274
|
+
style: {
|
|
24275
|
+
margin: "10px 0px"
|
|
24276
|
+
}
|
|
24277
|
+
}, t("WS_SERVICE_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab3 = breakUpData.billSlabData) === null || _breakUpData$billSlab3 === void 0 ? void 0 : (_breakUpData$billSlab4 = _breakUpData$billSlab3.CHARGES) === null || _breakUpData$billSlab4 === void 0 ? void 0 : _breakUpData$billSlab4.map(data => /*#__PURE__*/React.createElement(Row, {
|
|
24278
|
+
className: "border-none",
|
|
24279
|
+
rowContainerStyle: {
|
|
24280
|
+
margin: "0px"
|
|
24281
|
+
},
|
|
24282
|
+
labelStyle: {
|
|
24283
|
+
width: "50%"
|
|
24284
|
+
},
|
|
24285
|
+
key: `${data === null || data === void 0 ? void 0 : data.taxHeadCode}`,
|
|
24286
|
+
label: `${t(`${data === null || data === void 0 ? void 0 : data.taxHeadCode}`)}`,
|
|
24287
|
+
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
24288
|
+
textStyle: {
|
|
24289
|
+
textAlign: "right"
|
|
24290
|
+
}
|
|
24291
|
+
})), /*#__PURE__*/React.createElement("hr", {
|
|
24292
|
+
style: {
|
|
24293
|
+
color: "#cccccc",
|
|
24294
|
+
backgroundColor: "#cccccc",
|
|
24295
|
+
marginBottom: "10px"
|
|
24296
|
+
}
|
|
24297
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
24298
|
+
className: "border-none",
|
|
24299
|
+
rowContainerStyle: {
|
|
24300
|
+
margin: "0px"
|
|
24301
|
+
},
|
|
24302
|
+
labelStyle: {
|
|
24303
|
+
width: "50%"
|
|
24304
|
+
},
|
|
24305
|
+
key: `PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT2`,
|
|
24306
|
+
label: `${t(`PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT`)}`,
|
|
24307
|
+
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.charge) || 0),
|
|
24308
|
+
textStyle: {
|
|
24309
|
+
textAlign: "right",
|
|
24310
|
+
fontWeight: "700",
|
|
24311
|
+
fontSize: "24px"
|
|
24312
|
+
}
|
|
24313
|
+
}), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab5 = breakUpData.billSlabData) === null || _breakUpData$billSlab5 === void 0 ? void 0 : (_breakUpData$billSlab6 = _breakUpData$billSlab5.TAX) === null || _breakUpData$billSlab6 === void 0 ? void 0 : _breakUpData$billSlab6.map(data => /*#__PURE__*/React.createElement(Row, {
|
|
24314
|
+
className: "border-none",
|
|
24315
|
+
rowContainerStyle: {
|
|
24316
|
+
margin: "0px"
|
|
24317
|
+
},
|
|
24318
|
+
labelStyle: {
|
|
24319
|
+
width: "50%"
|
|
24320
|
+
},
|
|
24321
|
+
key: `${data === null || data === void 0 ? void 0 : data.taxHeadCode}`,
|
|
24322
|
+
label: `${t(`${data === null || data === void 0 ? void 0 : data.taxHeadCode}`)}`,
|
|
24323
|
+
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
24324
|
+
textStyle: {
|
|
24325
|
+
textAlign: "right"
|
|
24326
|
+
}
|
|
24327
|
+
})), /*#__PURE__*/React.createElement("hr", {
|
|
24328
|
+
style: {
|
|
24329
|
+
color: "#cccccc",
|
|
24330
|
+
backgroundColor: "#cccccc",
|
|
24331
|
+
marginBottom: "10px"
|
|
24332
|
+
}
|
|
24333
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
24334
|
+
className: "border-none",
|
|
24335
|
+
rowContainerStyle: {
|
|
24336
|
+
margin: "0px"
|
|
24337
|
+
},
|
|
24338
|
+
labelStyle: {
|
|
24339
|
+
width: "50%"
|
|
24340
|
+
},
|
|
24341
|
+
key: `PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT3`,
|
|
24342
|
+
label: `${t(`PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT`)}`,
|
|
24343
|
+
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.totalAmount) || 0),
|
|
24344
|
+
textStyle: {
|
|
24345
|
+
textAlign: "right",
|
|
24346
|
+
fontWeight: "700",
|
|
24347
|
+
fontSize: "24px"
|
|
24348
|
+
}
|
|
24349
|
+
})))));
|
|
24350
|
+
};
|
|
24351
|
+
|
|
24352
|
+
const AssessmentHistory = ({
|
|
24353
|
+
assessmentData,
|
|
24354
|
+
applicationData
|
|
24355
|
+
}) => {
|
|
24356
|
+
const history = useHistory();
|
|
24357
|
+
const {
|
|
24358
|
+
t
|
|
24359
|
+
} = useTranslation();
|
|
24360
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
24361
|
+
const toggleAccordion = () => {
|
|
24362
|
+
setIsOpen(!isOpen);
|
|
24363
|
+
};
|
|
24364
|
+
function formatAssessmentDate(timestamp) {
|
|
24365
|
+
const date = new Date(timestamp);
|
|
24366
|
+
const options = {
|
|
24367
|
+
day: '2-digit',
|
|
24368
|
+
month: 'short',
|
|
24369
|
+
year: 'numeric'
|
|
24370
|
+
};
|
|
24371
|
+
return date.toLocaleDateString('en-GB', options).replace(/ /g, '-');
|
|
24372
|
+
}
|
|
24373
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
24374
|
+
className: "accordion",
|
|
24375
|
+
style: {
|
|
24376
|
+
width: "100%",
|
|
24377
|
+
margin: "auto",
|
|
24378
|
+
fontFamily: "Roboto, sans-serif",
|
|
24379
|
+
border: "1px solid #ccc",
|
|
24380
|
+
borderRadius: "4px",
|
|
24381
|
+
marginBottom: '10px'
|
|
24382
|
+
}
|
|
24383
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24384
|
+
className: "accordion-header",
|
|
24385
|
+
style: {
|
|
24386
|
+
backgroundColor: "#f0f0f0",
|
|
24387
|
+
padding: "15px",
|
|
24388
|
+
cursor: "pointer"
|
|
24389
|
+
},
|
|
24390
|
+
onClick: toggleAccordion
|
|
24391
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24392
|
+
style: {
|
|
24393
|
+
display: "flex",
|
|
24394
|
+
justifyContent: "space-between",
|
|
24395
|
+
alignItems: 'center'
|
|
24396
|
+
}
|
|
24397
|
+
}, /*#__PURE__*/React.createElement("h3", {
|
|
24398
|
+
style: {
|
|
24399
|
+
color: '#0d43a7',
|
|
24400
|
+
fontFamily: 'Noto Sans,sans-serif',
|
|
24401
|
+
fontSize: '24px',
|
|
24402
|
+
fontWeight: '500'
|
|
24403
|
+
}
|
|
24404
|
+
}, "Assessment History"), /*#__PURE__*/React.createElement("span", {
|
|
24405
|
+
style: {
|
|
24406
|
+
fontSize: '1.2em'
|
|
24407
|
+
}
|
|
24408
|
+
}, isOpen ? "<" : ">"))), isOpen && /*#__PURE__*/React.createElement("div", {
|
|
24409
|
+
className: "accordion-body",
|
|
24410
|
+
style: {
|
|
24411
|
+
padding: " 15px",
|
|
24412
|
+
backgroundColor: "#fff"
|
|
24413
|
+
}
|
|
24414
|
+
}, assessmentData.length === 0 ? /*#__PURE__*/React.createElement("div", {
|
|
24415
|
+
style: {
|
|
24416
|
+
color: 'red',
|
|
24417
|
+
fontSize: '16px'
|
|
24418
|
+
}
|
|
24419
|
+
}, "No Assessments found") : assessmentData.map((assessment, index) => /*#__PURE__*/React.createElement("div", {
|
|
24420
|
+
key: index,
|
|
24421
|
+
className: "assessment-item",
|
|
24422
|
+
style: {
|
|
24423
|
+
marginBottom: "15px"
|
|
24424
|
+
}
|
|
24425
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24426
|
+
className: "assessment-row",
|
|
24427
|
+
style: {
|
|
24428
|
+
display: "flex",
|
|
24429
|
+
gap: "100px",
|
|
24430
|
+
marginBottom: "8px"
|
|
24431
|
+
}
|
|
24432
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
24433
|
+
style: {
|
|
24434
|
+
fontWeight: "bold",
|
|
24435
|
+
minWidth: '60px',
|
|
24436
|
+
color: 'black'
|
|
24437
|
+
}
|
|
24438
|
+
}, "Assessment Date"), /*#__PURE__*/React.createElement("span", {
|
|
24439
|
+
style: {
|
|
24440
|
+
flex: '1',
|
|
24441
|
+
color: 'black'
|
|
24442
|
+
}
|
|
24443
|
+
}, formatAssessmentDate(assessment.assessmentDate))), /*#__PURE__*/React.createElement("div", {
|
|
24444
|
+
className: "assessment-row",
|
|
24445
|
+
style: {
|
|
24446
|
+
display: "flex",
|
|
24447
|
+
gap: "100px",
|
|
24448
|
+
marginBottom: "8px",
|
|
24449
|
+
color: 'black'
|
|
24450
|
+
}
|
|
24451
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
24452
|
+
className: "label",
|
|
24453
|
+
style: {
|
|
24454
|
+
fontWeight: "bold",
|
|
24455
|
+
minWidth: '60px',
|
|
24456
|
+
color: 'black'
|
|
24457
|
+
}
|
|
24458
|
+
}, "Assessment Year"), /*#__PURE__*/React.createElement("span", {
|
|
24459
|
+
className: "value",
|
|
24460
|
+
style: {
|
|
24461
|
+
flex: '1',
|
|
24462
|
+
color: 'black'
|
|
24463
|
+
}
|
|
24464
|
+
}, assessment.financialYear)), /*#__PURE__*/React.createElement("div", {
|
|
24465
|
+
className: "assessment-row with-buttons",
|
|
24466
|
+
style: {
|
|
24467
|
+
display: "flex",
|
|
24468
|
+
marginBottom: "8px",
|
|
24469
|
+
justifyContent: "space-between",
|
|
24470
|
+
alignItems: "center"
|
|
24471
|
+
}
|
|
24472
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24473
|
+
style: {
|
|
24474
|
+
display: 'flex',
|
|
24475
|
+
gap: '75px'
|
|
24476
|
+
}
|
|
24477
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
24478
|
+
className: "label",
|
|
24479
|
+
style: {
|
|
24480
|
+
fontWeight: "bold",
|
|
24481
|
+
minWidth: '60px',
|
|
24482
|
+
color: 'black'
|
|
24483
|
+
}
|
|
24484
|
+
}, "Assessment Number"), /*#__PURE__*/React.createElement("span", {
|
|
24485
|
+
className: "value",
|
|
24486
|
+
style: {
|
|
24487
|
+
flex: '1',
|
|
24488
|
+
color: 'black'
|
|
24489
|
+
}
|
|
24490
|
+
}, assessment.assessmentNumber)), /*#__PURE__*/React.createElement("div", {
|
|
24491
|
+
className: "button-group",
|
|
24492
|
+
style: {
|
|
24493
|
+
display: 'flex',
|
|
24494
|
+
gap: '10px'
|
|
24495
|
+
}
|
|
24496
|
+
}, "\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0 ", /*#__PURE__*/React.createElement("button", {
|
|
24497
|
+
style: {
|
|
24498
|
+
display: "flex",
|
|
24499
|
+
borderRadius: '8px',
|
|
24500
|
+
backgroundColor: '#2947a3',
|
|
24501
|
+
padding: '10px',
|
|
24502
|
+
color: 'white'
|
|
24503
|
+
},
|
|
24504
|
+
onClick: () => {
|
|
24505
|
+
history.push({
|
|
24506
|
+
pathname: `/digit-ui/citizen/pt/property/assessment-details/${assessment.assessmentNumber}`,
|
|
24507
|
+
state: {
|
|
24508
|
+
Assessment: {
|
|
24509
|
+
channel: applicationData.channel,
|
|
24510
|
+
financialYear: assessment.financialYear,
|
|
24511
|
+
propertyId: assessment.propertyId,
|
|
24512
|
+
source: applicationData.source
|
|
24513
|
+
},
|
|
24514
|
+
submitLabel: t("PT_REASSESS_PROPERTY_BUTTON"),
|
|
24515
|
+
reAssess: true
|
|
24516
|
+
}
|
|
24517
|
+
});
|
|
24518
|
+
}
|
|
24519
|
+
}, "Re-assess"), "\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0 ", /*#__PURE__*/React.createElement("button", {
|
|
24520
|
+
style: {
|
|
24521
|
+
display: "flex",
|
|
24522
|
+
borderRadius: '8px',
|
|
24523
|
+
border: '1px solid red',
|
|
24524
|
+
padding: '10px'
|
|
24525
|
+
},
|
|
24526
|
+
onClick: () => alert(`You are not allowed to perform this operation!!}`)
|
|
24527
|
+
}, "Cancel"), "\xA0\xA0\xA0\xA0\xA0\xA0\xA0 ")), index !== assessmentData.length - 1 && /*#__PURE__*/React.createElement("hr", null)))));
|
|
24528
|
+
};
|
|
24529
|
+
|
|
24530
|
+
const ApplicationHistory = ({
|
|
24531
|
+
applicationData
|
|
24532
|
+
}) => {
|
|
24533
|
+
var _applicationData$audi;
|
|
24534
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
24535
|
+
const history = useHistory();
|
|
24536
|
+
const toggleAccordion = () => {
|
|
24537
|
+
setIsOpen(!isOpen);
|
|
24538
|
+
};
|
|
24539
|
+
function formatDate(timestamp) {
|
|
24540
|
+
const date = new Date(timestamp);
|
|
24541
|
+
const options = {
|
|
24542
|
+
day: '2-digit',
|
|
24543
|
+
month: 'short',
|
|
24544
|
+
year: 'numeric'
|
|
24545
|
+
};
|
|
24546
|
+
return date.toLocaleDateString('en-GB', options).replace(/ /g, '-');
|
|
24547
|
+
}
|
|
24548
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
24549
|
+
className: "accordion",
|
|
24550
|
+
style: {
|
|
24551
|
+
width: "100%",
|
|
24552
|
+
margin: "auto",
|
|
24553
|
+
fontFamily: "Roboto, sans-serif",
|
|
24554
|
+
border: "1px solid #ccc",
|
|
24555
|
+
borderRadius: "4px",
|
|
24556
|
+
marginBottom: '10px'
|
|
24557
|
+
}
|
|
24558
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24559
|
+
className: "accordion-header",
|
|
24560
|
+
style: {
|
|
24561
|
+
backgroundColor: "#f0f0f0",
|
|
24562
|
+
padding: "15px",
|
|
24563
|
+
cursor: "pointer"
|
|
24564
|
+
},
|
|
24565
|
+
onClick: toggleAccordion
|
|
24566
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24567
|
+
style: {
|
|
24568
|
+
display: "flex",
|
|
24569
|
+
justifyContent: "space-between",
|
|
24570
|
+
alignItems: 'center'
|
|
24571
|
+
}
|
|
24572
|
+
}, /*#__PURE__*/React.createElement("h3", {
|
|
24573
|
+
style: {
|
|
24574
|
+
color: '#0d43a7',
|
|
24575
|
+
fontFamily: 'Noto Sans,sans-serif',
|
|
24576
|
+
fontSize: '24px',
|
|
24577
|
+
fontWeight: '500'
|
|
24578
|
+
}
|
|
24579
|
+
}, "Application History"), /*#__PURE__*/React.createElement("span", {
|
|
24580
|
+
style: {
|
|
24581
|
+
fontSize: '1.2em'
|
|
24582
|
+
}
|
|
24583
|
+
}, isOpen ? "<" : ">"))), isOpen && /*#__PURE__*/React.createElement("div", {
|
|
24584
|
+
className: "accordion-body",
|
|
24585
|
+
style: {
|
|
24586
|
+
padding: " 15px",
|
|
24587
|
+
backgroundColor: "#fff"
|
|
24588
|
+
}
|
|
24589
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24590
|
+
className: "assessment-item",
|
|
24591
|
+
style: {
|
|
24592
|
+
marginBottom: "15px"
|
|
24593
|
+
}
|
|
24594
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24595
|
+
className: "assessment-row",
|
|
24596
|
+
style: {
|
|
24597
|
+
display: "flex",
|
|
24598
|
+
gap: "100px",
|
|
24599
|
+
marginBottom: "8px"
|
|
24600
|
+
}
|
|
24601
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
24602
|
+
style: {
|
|
24603
|
+
fontWeight: "bold",
|
|
24604
|
+
minWidth: '60px',
|
|
24605
|
+
color: 'black'
|
|
24606
|
+
}
|
|
24607
|
+
}, "Application Number"), /*#__PURE__*/React.createElement("span", {
|
|
24608
|
+
style: {
|
|
24609
|
+
flex: '1',
|
|
24610
|
+
color: 'black'
|
|
24611
|
+
}
|
|
24612
|
+
}, applicationData.acknowldgementNumber)), /*#__PURE__*/React.createElement("div", {
|
|
24613
|
+
className: "assessment-row",
|
|
24614
|
+
style: {
|
|
24615
|
+
display: "flex",
|
|
24616
|
+
gap: "132px",
|
|
24617
|
+
marginBottom: "8px",
|
|
24618
|
+
color: 'black'
|
|
24619
|
+
}
|
|
24620
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
24621
|
+
className: "label",
|
|
24622
|
+
style: {
|
|
24623
|
+
fontWeight: "bold",
|
|
24624
|
+
minWidth: '60px',
|
|
24625
|
+
color: 'black'
|
|
24626
|
+
}
|
|
24627
|
+
}, "Property ID No."), /*#__PURE__*/React.createElement("span", {
|
|
24628
|
+
className: "value",
|
|
24629
|
+
style: {
|
|
24630
|
+
flex: '1',
|
|
24631
|
+
color: 'black'
|
|
24632
|
+
}
|
|
24633
|
+
}, applicationData.propertyId)), /*#__PURE__*/React.createElement("div", {
|
|
24634
|
+
className: "assessment-row",
|
|
24635
|
+
style: {
|
|
24636
|
+
display: "flex",
|
|
24637
|
+
gap: "120px",
|
|
24638
|
+
marginBottom: "8px",
|
|
24639
|
+
color: 'black'
|
|
24640
|
+
}
|
|
24641
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
24642
|
+
className: "label",
|
|
24643
|
+
style: {
|
|
24644
|
+
fontWeight: "bold",
|
|
24645
|
+
minWidth: '60px',
|
|
24646
|
+
color: 'black'
|
|
24647
|
+
}
|
|
24648
|
+
}, "Application Type"), /*#__PURE__*/React.createElement("span", {
|
|
24649
|
+
className: "value",
|
|
23462
24650
|
style: {
|
|
23463
|
-
|
|
24651
|
+
flex: '1',
|
|
24652
|
+
color: 'black'
|
|
23464
24653
|
}
|
|
23465
|
-
},
|
|
23466
|
-
className: "
|
|
23467
|
-
|
|
23468
|
-
|
|
23469
|
-
|
|
23470
|
-
|
|
23471
|
-
|
|
23472
|
-
},
|
|
23473
|
-
key: `${data === null || data === void 0 ? void 0 : data.taxHeadCode}`,
|
|
23474
|
-
label: `${t(`${data === null || data === void 0 ? void 0 : data.taxHeadCode}`)}`,
|
|
23475
|
-
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
23476
|
-
textStyle: {
|
|
23477
|
-
textAlign: "right"
|
|
24654
|
+
}, "NEW PROPERTY")), /*#__PURE__*/React.createElement("div", {
|
|
24655
|
+
className: "assessment-row",
|
|
24656
|
+
style: {
|
|
24657
|
+
display: "flex",
|
|
24658
|
+
gap: "140px",
|
|
24659
|
+
marginBottom: "8px",
|
|
24660
|
+
color: 'black'
|
|
23478
24661
|
}
|
|
23479
|
-
}
|
|
24662
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
24663
|
+
className: "label",
|
|
23480
24664
|
style: {
|
|
23481
|
-
|
|
23482
|
-
|
|
23483
|
-
|
|
24665
|
+
fontWeight: "bold",
|
|
24666
|
+
minWidth: '60px',
|
|
24667
|
+
color: 'black'
|
|
23484
24668
|
}
|
|
23485
|
-
}), /*#__PURE__*/React.createElement(
|
|
23486
|
-
className: "
|
|
23487
|
-
|
|
23488
|
-
|
|
23489
|
-
|
|
23490
|
-
labelStyle: {
|
|
23491
|
-
width: "50%"
|
|
23492
|
-
},
|
|
23493
|
-
key: `PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT2`,
|
|
23494
|
-
label: `${t(`PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT`)}`,
|
|
23495
|
-
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.charge) || 0),
|
|
23496
|
-
textStyle: {
|
|
23497
|
-
textAlign: "right",
|
|
23498
|
-
fontWeight: "700",
|
|
23499
|
-
fontSize: "24px"
|
|
24669
|
+
}, "Creation Date"), /*#__PURE__*/React.createElement("span", {
|
|
24670
|
+
className: "value",
|
|
24671
|
+
style: {
|
|
24672
|
+
flex: '1',
|
|
24673
|
+
color: 'black'
|
|
23500
24674
|
}
|
|
23501
|
-
}
|
|
23502
|
-
className: "
|
|
23503
|
-
|
|
23504
|
-
|
|
23505
|
-
|
|
23506
|
-
|
|
23507
|
-
|
|
23508
|
-
},
|
|
23509
|
-
key: `${data === null || data === void 0 ? void 0 : data.taxHeadCode}`,
|
|
23510
|
-
label: `${t(`${data === null || data === void 0 ? void 0 : data.taxHeadCode}`)}`,
|
|
23511
|
-
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
23512
|
-
textStyle: {
|
|
23513
|
-
textAlign: "right"
|
|
24675
|
+
}, formatDate((_applicationData$audi = applicationData.auditDetails) === null || _applicationData$audi === void 0 ? void 0 : _applicationData$audi.createdTime))), /*#__PURE__*/React.createElement("div", {
|
|
24676
|
+
className: "assessment-row",
|
|
24677
|
+
style: {
|
|
24678
|
+
display: "flex",
|
|
24679
|
+
gap: "180px",
|
|
24680
|
+
marginBottom: "8px",
|
|
24681
|
+
color: 'black'
|
|
23514
24682
|
}
|
|
23515
|
-
}
|
|
24683
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
24684
|
+
className: "label",
|
|
23516
24685
|
style: {
|
|
23517
|
-
|
|
23518
|
-
|
|
23519
|
-
|
|
24686
|
+
fontWeight: "bold",
|
|
24687
|
+
minWidth: '60px',
|
|
24688
|
+
color: 'black'
|
|
23520
24689
|
}
|
|
23521
|
-
}), /*#__PURE__*/React.createElement(
|
|
23522
|
-
className: "
|
|
23523
|
-
|
|
23524
|
-
|
|
23525
|
-
|
|
23526
|
-
|
|
23527
|
-
|
|
24690
|
+
}, "Status"), /*#__PURE__*/React.createElement("span", {
|
|
24691
|
+
className: "value",
|
|
24692
|
+
style: {
|
|
24693
|
+
flex: '1',
|
|
24694
|
+
color: 'black'
|
|
24695
|
+
}
|
|
24696
|
+
}, applicationData.status)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Link, {
|
|
24697
|
+
to: {
|
|
24698
|
+
pathname: `/digit-ui/citizen/pt/property/application-preview/${applicationData.acknowldgementNumber}`,
|
|
24699
|
+
state: {
|
|
24700
|
+
propertyId: applicationData.propertyId
|
|
24701
|
+
}
|
|
23528
24702
|
},
|
|
23529
|
-
|
|
23530
|
-
|
|
23531
|
-
|
|
23532
|
-
|
|
23533
|
-
|
|
23534
|
-
|
|
23535
|
-
fontSize: "24px"
|
|
24703
|
+
style: {
|
|
24704
|
+
color: '#2947a3',
|
|
24705
|
+
display: 'inline',
|
|
24706
|
+
border: '1px solid',
|
|
24707
|
+
padding: '8px',
|
|
24708
|
+
borderRadius: '8px'
|
|
23536
24709
|
}
|
|
23537
|
-
})))));
|
|
24710
|
+
}, "View History")))));
|
|
23538
24711
|
};
|
|
23539
24712
|
|
|
23540
|
-
const
|
|
23541
|
-
|
|
23542
|
-
width: "100%",
|
|
23543
|
-
marginTop: "2px",
|
|
23544
|
-
overflowX: "auto",
|
|
23545
|
-
boxShadow: "none"
|
|
23546
|
-
},
|
|
23547
|
-
table: {
|
|
23548
|
-
minWidth: 700,
|
|
23549
|
-
backgroundColor: "rgba(250, 250, 250, var(--bg-opacity))"
|
|
23550
|
-
},
|
|
23551
|
-
cell: {
|
|
23552
|
-
maxWidth: "7em",
|
|
23553
|
-
minWidth: "1em",
|
|
23554
|
-
border: "1px solid #e8e7e6",
|
|
23555
|
-
padding: "4px 5px",
|
|
23556
|
-
fontSize: "0.8em",
|
|
23557
|
-
textAlign: "left",
|
|
23558
|
-
lineHeight: "1.5em"
|
|
23559
|
-
},
|
|
23560
|
-
cellHeader: {
|
|
23561
|
-
overflow: "hidden",
|
|
23562
|
-
textOverflow: "ellipsis"
|
|
23563
|
-
},
|
|
23564
|
-
cellLeft: {},
|
|
23565
|
-
cellRight: {}
|
|
23566
|
-
};
|
|
23567
|
-
const ArrearTable = ({
|
|
23568
|
-
className: _className = "table",
|
|
23569
|
-
headers: _headers = [],
|
|
23570
|
-
values: _values = [],
|
|
23571
|
-
arrears: _arrears = 0
|
|
24713
|
+
const PaymentHistory = ({
|
|
24714
|
+
payments
|
|
23572
24715
|
}) => {
|
|
23573
|
-
const
|
|
23574
|
-
|
|
23575
|
-
|
|
23576
|
-
|
|
23577
|
-
|
|
23578
|
-
|
|
23579
|
-
className: "table-fixed-column-common-pay",
|
|
23580
|
-
style: styles.table
|
|
23581
|
-
}, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
|
|
24716
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
24717
|
+
const toggleAccordion = () => {
|
|
24718
|
+
setIsOpen(!isOpen);
|
|
24719
|
+
};
|
|
24720
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
24721
|
+
className: "accordion",
|
|
23582
24722
|
style: {
|
|
23583
|
-
|
|
23584
|
-
|
|
23585
|
-
|
|
24723
|
+
width: "100%",
|
|
24724
|
+
margin: "auto",
|
|
24725
|
+
fontFamily: "Roboto, sans-serif",
|
|
24726
|
+
border: "1px solid #ccc",
|
|
24727
|
+
borderRadius: "4px",
|
|
24728
|
+
marginBottom: '10px'
|
|
23586
24729
|
}
|
|
23587
|
-
},
|
|
23588
|
-
|
|
23589
|
-
return /*#__PURE__*/React.createElement("th", {
|
|
23590
|
-
style: {
|
|
23591
|
-
...styles.cell,
|
|
23592
|
-
...styleRight,
|
|
23593
|
-
...styles.cellHeader
|
|
23594
|
-
},
|
|
23595
|
-
key: ind
|
|
23596
|
-
}, t(header));
|
|
23597
|
-
}))), /*#__PURE__*/React.createElement("tbody", null, Object.values(_values).map((row, ind) => /*#__PURE__*/React.createElement("tr", {
|
|
23598
|
-
key: ind
|
|
23599
|
-
}, /*#__PURE__*/React.createElement("td", {
|
|
24730
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24731
|
+
className: "accordion-header",
|
|
23600
24732
|
style: {
|
|
23601
|
-
|
|
23602
|
-
|
|
24733
|
+
backgroundColor: "#f0f0f0",
|
|
24734
|
+
padding: "15px",
|
|
24735
|
+
cursor: "pointer"
|
|
23603
24736
|
},
|
|
23604
|
-
|
|
23605
|
-
|
|
23606
|
-
}, Object.keys(_values)[ind]), _headers.map((header, i) => {
|
|
23607
|
-
let styleRight = _headers.length == i + 1 ? styles.cellRight : {};
|
|
23608
|
-
return /*#__PURE__*/React.createElement("td", {
|
|
23609
|
-
style: {
|
|
23610
|
-
...styles.cell,
|
|
23611
|
-
textAlign: "left",
|
|
23612
|
-
...styleRight,
|
|
23613
|
-
whiteSpace: "pre"
|
|
23614
|
-
},
|
|
23615
|
-
key: i,
|
|
23616
|
-
numeric: true
|
|
23617
|
-
}, i > 1 && "₹", row[header] && row[header]["value"] || "0");
|
|
23618
|
-
}))), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
|
|
24737
|
+
onClick: toggleAccordion
|
|
24738
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
23619
24739
|
style: {
|
|
23620
|
-
|
|
23621
|
-
|
|
24740
|
+
display: "flex",
|
|
24741
|
+
justifyContent: "space-between",
|
|
24742
|
+
alignItems: 'center'
|
|
23622
24743
|
}
|
|
23623
|
-
}
|
|
23624
|
-
|
|
23625
|
-
|
|
23626
|
-
|
|
23627
|
-
|
|
23628
|
-
|
|
23629
|
-
textAlign: "left",
|
|
23630
|
-
fontWeight: "700",
|
|
23631
|
-
whiteSpace: "pre"
|
|
23632
|
-
},
|
|
23633
|
-
key: ind,
|
|
23634
|
-
numeric: true
|
|
23635
|
-
}, _arrears);
|
|
23636
|
-
} else if (ind == _headers.length - 2) {
|
|
23637
|
-
return /*#__PURE__*/React.createElement("td", {
|
|
23638
|
-
style: {
|
|
23639
|
-
...styles.cell,
|
|
23640
|
-
textAlign: "left"
|
|
23641
|
-
},
|
|
23642
|
-
key: ind,
|
|
23643
|
-
numeric: true
|
|
23644
|
-
}, t("COMMON_ARREARS_TOTAL"));
|
|
23645
|
-
} else {
|
|
23646
|
-
return /*#__PURE__*/React.createElement("td", {
|
|
23647
|
-
style: styles.cell,
|
|
23648
|
-
key: ind,
|
|
23649
|
-
numeric: true
|
|
23650
|
-
});
|
|
24744
|
+
}, /*#__PURE__*/React.createElement("h3", {
|
|
24745
|
+
style: {
|
|
24746
|
+
color: '#0d43a7',
|
|
24747
|
+
fontFamily: 'Noto Sans,sans-serif',
|
|
24748
|
+
fontSize: '24px',
|
|
24749
|
+
fontWeight: '500'
|
|
23651
24750
|
}
|
|
23652
|
-
})
|
|
23653
|
-
|
|
23654
|
-
|
|
23655
|
-
const styles$1 = {
|
|
23656
|
-
buttonStyle: {
|
|
23657
|
-
display: "flex",
|
|
23658
|
-
justifyContent: "flex-end",
|
|
23659
|
-
color: "#a82227"
|
|
23660
|
-
},
|
|
23661
|
-
headerStyle: {
|
|
23662
|
-
marginTop: "10px",
|
|
23663
|
-
fontSize: "16px",
|
|
23664
|
-
fontWeight: "700",
|
|
23665
|
-
lineHeight: "24px",
|
|
23666
|
-
color: " rgba(11, 12, 12, var(--text-opacity))"
|
|
23667
|
-
}
|
|
23668
|
-
};
|
|
23669
|
-
const ArrearSummary = ({
|
|
23670
|
-
bill: _bill = {}
|
|
23671
|
-
}) => {
|
|
23672
|
-
var _bill$billDetails, _sortedBillDetails, _arrears$toFixed;
|
|
23673
|
-
const {
|
|
23674
|
-
t
|
|
23675
|
-
} = useTranslation();
|
|
23676
|
-
const formatTaxHeaders = (billDetail = {}) => {
|
|
23677
|
-
let formattedFees = {};
|
|
23678
|
-
const {
|
|
23679
|
-
billAccountDetails = []
|
|
23680
|
-
} = billDetail;
|
|
23681
|
-
billAccountDetails.map(taxHead => {
|
|
23682
|
-
formattedFees[taxHead.taxHeadCode] = {
|
|
23683
|
-
value: taxHead.amount,
|
|
23684
|
-
order: taxHead.order
|
|
23685
|
-
};
|
|
23686
|
-
});
|
|
23687
|
-
formattedFees["CS_BILL_NO"] = {
|
|
23688
|
-
value: (billDetail === null || billDetail === void 0 ? void 0 : billDetail.billNumber) || "NA",
|
|
23689
|
-
order: -2
|
|
23690
|
-
};
|
|
23691
|
-
formattedFees["CS_BILL_DUEDATE"] = {
|
|
23692
|
-
value: (billDetail === null || billDetail === void 0 ? void 0 : billDetail.expiryDate) && new Date(billDetail === null || billDetail === void 0 ? void 0 : billDetail.expiryDate).toLocaleDateString() || "NA",
|
|
23693
|
-
order: -1
|
|
23694
|
-
};
|
|
23695
|
-
formattedFees["TL_COMMON_TOTAL_AMT"] = {
|
|
23696
|
-
value: billDetail.amount,
|
|
23697
|
-
order: 10
|
|
23698
|
-
};
|
|
23699
|
-
return formattedFees;
|
|
23700
|
-
};
|
|
23701
|
-
const getFinancialYears = (from, to) => {
|
|
23702
|
-
const fromDate = new Date(from);
|
|
23703
|
-
const toDate = new Date(to);
|
|
23704
|
-
if (toDate.getYear() - fromDate.getYear() != 0) {
|
|
23705
|
-
return `FY${fromDate.getYear() + 1900}-${toDate.getYear() - 100}`;
|
|
24751
|
+
}, "Payment History"), /*#__PURE__*/React.createElement("span", {
|
|
24752
|
+
style: {
|
|
24753
|
+
fontSize: '1.2em'
|
|
23706
24754
|
}
|
|
23707
|
-
|
|
23708
|
-
|
|
23709
|
-
|
|
23710
|
-
|
|
23711
|
-
|
|
23712
|
-
const arrears = ((_sortedBillDetails = sortedBillDetails) === null || _sortedBillDetails === void 0 ? void 0 : _sortedBillDetails.reduce((total, current, index) => total + current.amount, 0)) || 0;
|
|
23713
|
-
let arrearsAmount = `₹ ${(arrears === null || arrears === void 0 ? void 0 : (_arrears$toFixed = arrears.toFixed) === null || _arrears$toFixed === void 0 ? void 0 : _arrears$toFixed.call(arrears, 0)) || Number(0).toFixed(0)}`;
|
|
23714
|
-
sortedBillDetails.map(bill => {
|
|
23715
|
-
let fee = formatTaxHeaders(bill);
|
|
23716
|
-
fees[getFinancialYears(bill.fromPeriod, bill.toPeriod)] = fee;
|
|
23717
|
-
});
|
|
23718
|
-
let head = {};
|
|
23719
|
-
fees ? Object.keys(fees).map((key, ind) => {
|
|
23720
|
-
Object.keys(fees[key]).map(key1 => {
|
|
23721
|
-
head[key1] = fees[key] && fees[key][key1] && fees[key][key1].order || 0;
|
|
23722
|
-
});
|
|
23723
|
-
}) : "NA";
|
|
23724
|
-
let keys = [];
|
|
23725
|
-
keys = Object.keys(head);
|
|
23726
|
-
keys.sort((x, y) => head[x] - head[y]);
|
|
23727
|
-
const [showArrear, setShowArrear] = useState(false);
|
|
23728
|
-
if (arrears == 0 || arrears < 0) {
|
|
23729
|
-
return /*#__PURE__*/React.createElement("span", null);
|
|
23730
|
-
}
|
|
23731
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
23732
|
-
style: styles$1.headerStyle
|
|
23733
|
-
}, t("CS_ARREARS_DETAILS")), showArrear && /*#__PURE__*/React.createElement(ArrearTable, {
|
|
23734
|
-
headers: [...keys],
|
|
23735
|
-
values: fees,
|
|
23736
|
-
arrears: arrearsAmount
|
|
23737
|
-
}), !showArrear && /*#__PURE__*/React.createElement("div", {
|
|
23738
|
-
style: styles$1.buttonStyle
|
|
23739
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
23740
|
-
type: "button",
|
|
23741
|
-
onClick: () => {
|
|
23742
|
-
setShowArrear(true);
|
|
24755
|
+
}, isOpen ? "<" : ">"))), isOpen && /*#__PURE__*/React.createElement("div", {
|
|
24756
|
+
className: "accordion-body",
|
|
24757
|
+
style: {
|
|
24758
|
+
padding: " 15px",
|
|
24759
|
+
backgroundColor: "#fff"
|
|
23743
24760
|
}
|
|
23744
|
-
},
|
|
23745
|
-
style:
|
|
23746
|
-
|
|
23747
|
-
|
|
23748
|
-
onClick: () => {
|
|
23749
|
-
setShowArrear(false);
|
|
24761
|
+
}, (payments === null || payments === void 0 ? void 0 : payments.length) === 0 && /*#__PURE__*/React.createElement("div", {
|
|
24762
|
+
style: {
|
|
24763
|
+
color: 'red',
|
|
24764
|
+
fontSize: '16px'
|
|
23750
24765
|
}
|
|
23751
|
-
},
|
|
24766
|
+
}, "No Payemnts found")));
|
|
23752
24767
|
};
|
|
23753
24768
|
|
|
23754
24769
|
function ApplicationDetailsContent({
|
|
@@ -23765,19 +24780,77 @@ function ApplicationDetailsContent({
|
|
|
23765
24780
|
statusAttribute = "status",
|
|
23766
24781
|
paymentsList,
|
|
23767
24782
|
oldValue,
|
|
23768
|
-
isInfoLabel = false
|
|
24783
|
+
isInfoLabel = false,
|
|
24784
|
+
propertyId,
|
|
24785
|
+
setIsCheck,
|
|
24786
|
+
isCheck
|
|
23769
24787
|
}) {
|
|
23770
|
-
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;
|
|
24788
|
+
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;
|
|
23771
24789
|
const {
|
|
23772
24790
|
t
|
|
23773
24791
|
} = useTranslation();
|
|
24792
|
+
const history = useHistory();
|
|
24793
|
+
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
24794
|
+
const [showToast, setShowToast] = useState(null);
|
|
24795
|
+
const [payments, setPayments] = useState([]);
|
|
24796
|
+
const [showAccess, setShowAccess] = useState(false);
|
|
24797
|
+
const [selectedYear, setSelectedYear] = useState();
|
|
23774
24798
|
let isEditApplication = window.location.href.includes("editApplication") && window.location.href.includes("bpa");
|
|
23775
24799
|
console.log("appl", applicationDetails);
|
|
24800
|
+
let {
|
|
24801
|
+
data: FinancialYearData
|
|
24802
|
+
} = Digit.Hooks.useCustomMDMS(Digit.ULBService.getStateId(), "egf-master", [{
|
|
24803
|
+
name: "FinancialYear"
|
|
24804
|
+
}], {
|
|
24805
|
+
select: data => {
|
|
24806
|
+
var _data$egfMaster;
|
|
24807
|
+
const formattedData = data === null || data === void 0 ? void 0 : (_data$egfMaster = data["egf-master"]) === null || _data$egfMaster === void 0 ? void 0 : _data$egfMaster["FinancialYear"];
|
|
24808
|
+
return formattedData;
|
|
24809
|
+
}
|
|
24810
|
+
});
|
|
24811
|
+
if (((_FinancialYearData = FinancialYearData) === null || _FinancialYearData === void 0 ? void 0 : _FinancialYearData.length) > 0) {
|
|
24812
|
+
FinancialYearData = FinancialYearData.filter((record, index, self) => index === self.findIndex(r => r.code === record.code));
|
|
24813
|
+
FinancialYearData = FinancialYearData.sort((a, b) => b.endingDate - a.endingDate);
|
|
24814
|
+
}
|
|
24815
|
+
console.log("financial year", FinancialYearData);
|
|
24816
|
+
const setModal = () => {
|
|
24817
|
+
console.log("in Apply");
|
|
24818
|
+
};
|
|
24819
|
+
const closeModalTwo = () => {
|
|
24820
|
+
setShowAccess(false);
|
|
24821
|
+
};
|
|
24822
|
+
const Heading = props => {
|
|
24823
|
+
return /*#__PURE__*/React.createElement("h1", {
|
|
24824
|
+
className: "heading-m"
|
|
24825
|
+
}, props.label);
|
|
24826
|
+
};
|
|
24827
|
+
const Close = () => /*#__PURE__*/React.createElement("svg", {
|
|
24828
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24829
|
+
viewBox: "0 0 24 24",
|
|
24830
|
+
fill: "#FFFFFF"
|
|
24831
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
24832
|
+
d: "M0 0h24v24H0V0z",
|
|
24833
|
+
fill: "none"
|
|
24834
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
24835
|
+
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"
|
|
24836
|
+
}));
|
|
24837
|
+
const CloseBtn = props => {
|
|
24838
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
24839
|
+
className: "icon-bg-secondary",
|
|
24840
|
+
onClick: props.onClick
|
|
24841
|
+
}, /*#__PURE__*/React.createElement(Close, null));
|
|
24842
|
+
};
|
|
24843
|
+
const closeModal = e => {
|
|
24844
|
+
console.log("in Print");
|
|
24845
|
+
setShowAccess(false);
|
|
24846
|
+
};
|
|
23776
24847
|
function OpenImage(imageSource, index, thumbnailsToShow) {
|
|
23777
24848
|
var _thumbnailsToShow$ful;
|
|
23778
24849
|
window.open(thumbnailsToShow === null || thumbnailsToShow === void 0 ? void 0 : (_thumbnailsToShow$ful = thumbnailsToShow.fullImage) === null || _thumbnailsToShow$ful === void 0 ? void 0 : _thumbnailsToShow$ful[0], "_blank");
|
|
23779
24850
|
}
|
|
23780
24851
|
const [fetchBillData, updatefetchBillData] = useState({});
|
|
24852
|
+
const [assessmentDetails, setAssessmentDetails] = useState();
|
|
24853
|
+
const [filtered, setFiltered] = useState([]);
|
|
23781
24854
|
const setBillData = async (tenantId, propertyIds, updatefetchBillData, updateCanFetchBillData) => {
|
|
23782
24855
|
var _assessmentData$Asses;
|
|
23783
24856
|
const assessmentData = await Digit.PTService.assessmentSearch({
|
|
@@ -23787,12 +24860,34 @@ function ApplicationDetailsContent({
|
|
|
23787
24860
|
}
|
|
23788
24861
|
});
|
|
23789
24862
|
let billData = {};
|
|
24863
|
+
console.log("assessment data", assessmentData);
|
|
23790
24864
|
if ((assessmentData === null || assessmentData === void 0 ? void 0 : (_assessmentData$Asses = assessmentData.Assessments) === null || _assessmentData$Asses === void 0 ? void 0 : _assessmentData$Asses.length) > 0) {
|
|
24865
|
+
const activeRecords = assessmentData.Assessments.filter(a => a.status === 'ACTIVE');
|
|
24866
|
+
function normalizeDate(timestamp) {
|
|
24867
|
+
const date = new Date(timestamp);
|
|
24868
|
+
date.setHours(0, 0, 0, 0);
|
|
24869
|
+
return date.getTime();
|
|
24870
|
+
}
|
|
24871
|
+
const latestMap = new Map();
|
|
24872
|
+
activeRecords.forEach(record => {
|
|
24873
|
+
const normalizedDate = normalizeDate(record.assessmentDate);
|
|
24874
|
+
const key = `${normalizedDate}_${record.financialYear}`;
|
|
24875
|
+
const existing = latestMap.get(key);
|
|
24876
|
+
if (!existing || record.createdDate > existing.createdDate) {
|
|
24877
|
+
latestMap.set(key, record);
|
|
24878
|
+
}
|
|
24879
|
+
});
|
|
24880
|
+
console.log("grouped", latestMap);
|
|
24881
|
+
const filteredAssessment = Array.from(latestMap.values());
|
|
24882
|
+
setFiltered(filteredAssessment);
|
|
24883
|
+
console.log(filteredAssessment);
|
|
24884
|
+
setAssessmentDetails(assessmentData === null || assessmentData === void 0 ? void 0 : assessmentData.Assessments);
|
|
23791
24885
|
billData = await Digit.PaymentService.fetchBill(tenantId, {
|
|
23792
24886
|
businessService: "PT",
|
|
23793
24887
|
consumerCode: propertyIds
|
|
23794
24888
|
});
|
|
23795
24889
|
}
|
|
24890
|
+
console.log("bill Data", billData);
|
|
23796
24891
|
updatefetchBillData(billData);
|
|
23797
24892
|
updateCanFetchBillData({
|
|
23798
24893
|
loading: false,
|
|
@@ -23800,11 +24895,13 @@ function ApplicationDetailsContent({
|
|
|
23800
24895
|
canLoad: true
|
|
23801
24896
|
});
|
|
23802
24897
|
};
|
|
24898
|
+
console.log("fetch bill data", fetchBillData);
|
|
23803
24899
|
const [billData, updateCanFetchBillData] = useState({
|
|
23804
24900
|
loading: false,
|
|
23805
24901
|
loaded: false,
|
|
23806
24902
|
canLoad: false
|
|
23807
24903
|
});
|
|
24904
|
+
console.log("filtered", filtered);
|
|
23808
24905
|
if ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.status) == "ACTIVE" && !billData.loading && !billData.loaded && !billData.canLoad) {
|
|
23809
24906
|
updateCanFetchBillData({
|
|
23810
24907
|
loading: false,
|
|
@@ -23938,23 +25035,6 @@ function ApplicationDetailsContent({
|
|
|
23938
25035
|
return {};
|
|
23939
25036
|
}
|
|
23940
25037
|
};
|
|
23941
|
-
const tableStyles = {
|
|
23942
|
-
table: {
|
|
23943
|
-
border: '2px solid black',
|
|
23944
|
-
width: '100%',
|
|
23945
|
-
fontFamily: 'sans-serif'
|
|
23946
|
-
},
|
|
23947
|
-
td: {
|
|
23948
|
-
padding: "10px",
|
|
23949
|
-
border: '1px solid black',
|
|
23950
|
-
textAlign: 'center'
|
|
23951
|
-
},
|
|
23952
|
-
th: {
|
|
23953
|
-
padding: "10px",
|
|
23954
|
-
border: '1px solid black',
|
|
23955
|
-
textAlign: 'center'
|
|
23956
|
-
}
|
|
23957
|
-
};
|
|
23958
25038
|
const getMainDivStyles = () => {
|
|
23959
25039
|
if (window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc") || window.location.href.includes("employee/ws")) {
|
|
23960
25040
|
return {
|
|
@@ -24002,6 +25082,94 @@ function ApplicationDetailsContent({
|
|
|
24002
25082
|
const totalBalanceTax = demandData === null || demandData === void 0 ? void 0 : demandData.reduce((sum, item) => sum + item.balanceTax, 0);
|
|
24003
25083
|
const totalBalanceInterest = demandData === null || demandData === void 0 ? void 0 : demandData.reduce((sum, item) => sum + item.balanceInterest, 0);
|
|
24004
25084
|
const totalBalancePenality = demandData === null || demandData === void 0 ? void 0 : demandData.reduce((sum, item) => sum + item.balancePenality, 0);
|
|
25085
|
+
const closeToast = () => {
|
|
25086
|
+
setShowToast(null);
|
|
25087
|
+
};
|
|
25088
|
+
const updatePropertyStatus = async (propertyData, status, propertyIds) => {
|
|
25089
|
+
const confirm = window.confirm(`Are you sure you want to make this property ${status}?`);
|
|
25090
|
+
if (!confirm) return;
|
|
25091
|
+
const payload = {
|
|
25092
|
+
...propertyData,
|
|
25093
|
+
status: status,
|
|
25094
|
+
isactive: status === "ACTIVE",
|
|
25095
|
+
isinactive: status === "INACTIVE",
|
|
25096
|
+
creationReason: "STATUS",
|
|
25097
|
+
additionalDetails: {
|
|
25098
|
+
...propertyData.additionalDetails,
|
|
25099
|
+
propertytobestatus: status
|
|
25100
|
+
},
|
|
25101
|
+
workflow: {
|
|
25102
|
+
...propertyData.workflow,
|
|
25103
|
+
businessService: "PT.CREATE",
|
|
25104
|
+
action: "OPEN",
|
|
25105
|
+
moduleName: "PT"
|
|
25106
|
+
}
|
|
25107
|
+
};
|
|
25108
|
+
const response = await Digit.PTService.updatePT({
|
|
25109
|
+
Property: {
|
|
25110
|
+
...payload
|
|
25111
|
+
}
|
|
25112
|
+
}, tenantId, propertyIds);
|
|
25113
|
+
console.log("response from inactive/active", response);
|
|
25114
|
+
};
|
|
25115
|
+
const applicationData_pt = applicationDetails.applicationData;
|
|
25116
|
+
const propertyIds = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationData) === null || _applicationDetails$a2 === void 0 ? void 0 : _applicationDetails$a2.propertyId) || "";
|
|
25117
|
+
const checkPropertyStatus = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a3 = applicationDetails.additionalDetails) === null || _applicationDetails$a3 === void 0 ? void 0 : _applicationDetails$a3.propertytobestatus;
|
|
25118
|
+
const PropertyInActive = () => {
|
|
25119
|
+
if (window.location.href.includes("/citizen")) {
|
|
25120
|
+
alert("Action to Inactivate property is not allowed for citizen");
|
|
25121
|
+
} else {
|
|
25122
|
+
if (checkPropertyStatus == "ACTIVE") {
|
|
25123
|
+
updatePropertyStatus(applicationData_pt, "INACTIVE", propertyIds);
|
|
25124
|
+
} else {
|
|
25125
|
+
alert("Property is already inactive.");
|
|
25126
|
+
}
|
|
25127
|
+
}
|
|
25128
|
+
};
|
|
25129
|
+
const PropertyActive = () => {
|
|
25130
|
+
if (window.location.href.includes("/citizen")) {
|
|
25131
|
+
alert("Action to activate property is not allowed for citizen");
|
|
25132
|
+
} else {
|
|
25133
|
+
if (checkPropertyStatus == "INACTIVE") {
|
|
25134
|
+
updatePropertyStatus(applicationData_pt, "ACTIVE", propertyIds);
|
|
25135
|
+
} else {
|
|
25136
|
+
alert("Property is already active.");
|
|
25137
|
+
}
|
|
25138
|
+
}
|
|
25139
|
+
};
|
|
25140
|
+
const EditProperty = () => {
|
|
25141
|
+
var _applicationDetails$a4;
|
|
25142
|
+
const pID = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a4 = applicationDetails.applicationData) === null || _applicationDetails$a4 === void 0 ? void 0 : _applicationDetails$a4.propertyId;
|
|
25143
|
+
if (pID) {
|
|
25144
|
+
history.push({
|
|
25145
|
+
pathname: `/digit-ui/employee/pt/edit-application/${pID}`
|
|
25146
|
+
});
|
|
25147
|
+
}
|
|
25148
|
+
};
|
|
25149
|
+
const AccessProperty = () => {
|
|
25150
|
+
setShowAccess(true);
|
|
25151
|
+
};
|
|
25152
|
+
console.log("applicationDetails?.applicationDetails", applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationDetails);
|
|
25153
|
+
console.log("infolabel", isInfoLabel);
|
|
25154
|
+
console.log("assessment details", assessmentDetails);
|
|
25155
|
+
useEffect(() => {
|
|
25156
|
+
try {
|
|
25157
|
+
let filters = {
|
|
25158
|
+
consumerCodes: propertyId
|
|
25159
|
+
};
|
|
25160
|
+
const auth = true;
|
|
25161
|
+
Digit.PTService.paymentsearch({
|
|
25162
|
+
tenantId: tenantId,
|
|
25163
|
+
filters: filters,
|
|
25164
|
+
auth: auth
|
|
25165
|
+
}).then(response => {
|
|
25166
|
+
setPayments(response === null || response === void 0 ? void 0 : response.Payments);
|
|
25167
|
+
console.log(response);
|
|
25168
|
+
});
|
|
25169
|
+
} catch (error) {
|
|
25170
|
+
console.log(error);
|
|
25171
|
+
}
|
|
25172
|
+
}, []);
|
|
24005
25173
|
return /*#__PURE__*/React.createElement(Card, {
|
|
24006
25174
|
style: {
|
|
24007
25175
|
position: "relative"
|
|
@@ -24014,8 +25182,8 @@ function ApplicationDetailsContent({
|
|
|
24014
25182
|
infoClickLable: "WS_CLICK_ON_LABEL",
|
|
24015
25183
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
24016
25184
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
24017
|
-
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
24018
|
-
var _detail$values, _detail$additionalDet, _applicationDetails$
|
|
25185
|
+
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a5 = applicationDetails.applicationDetails) === null || _applicationDetails$a5 === void 0 ? void 0 : _applicationDetails$a5.map((detail, index) => {
|
|
25186
|
+
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;
|
|
24019
25187
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
24020
25188
|
key: index
|
|
24021
25189
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -24072,7 +25240,7 @@ function ApplicationDetailsContent({
|
|
|
24072
25240
|
})), /*#__PURE__*/React.createElement(StatusTable, {
|
|
24073
25241
|
style: getTableStyles()
|
|
24074
25242
|
}, (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) => {
|
|
24075
|
-
var _detail$values3
|
|
25243
|
+
var _detail$values3;
|
|
24076
25244
|
if (value.map === true && value.value !== "N/A") {
|
|
24077
25245
|
return /*#__PURE__*/React.createElement(Row, {
|
|
24078
25246
|
labelStyle: {
|
|
@@ -24082,7 +25250,7 @@ function ApplicationDetailsContent({
|
|
|
24082
25250
|
wordBreak: "break-all"
|
|
24083
25251
|
},
|
|
24084
25252
|
key: t(value.title),
|
|
24085
|
-
label: t(value.title),
|
|
25253
|
+
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)",
|
|
24086
25254
|
text: /*#__PURE__*/React.createElement("img", {
|
|
24087
25255
|
src: t(value.value),
|
|
24088
25256
|
alt: "",
|
|
@@ -24153,16 +25321,14 @@ function ApplicationDetailsContent({
|
|
|
24153
25321
|
textStyle: {
|
|
24154
25322
|
wordBreak: "break-all"
|
|
24155
25323
|
}
|
|
24156
|
-
})
|
|
24157
|
-
bill: (_fetchBillData$Bill = fetchBillData.Bill) === null || _fetchBillData$Bill === void 0 ? void 0 : _fetchBillData$Bill[0]
|
|
24158
|
-
}) : "");
|
|
25324
|
+
}));
|
|
24159
25325
|
})))), (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, {
|
|
24160
25326
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
24161
25327
|
paymentsList: paymentsList,
|
|
24162
|
-
additionalDetails: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
25328
|
+
additionalDetails: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a6 = applicationDetails.applicationData) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.additionalDetails,
|
|
24163
25329
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
24164
|
-
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
24165
|
-
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
25330
|
+
}), (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, {
|
|
25331
|
+
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
|
|
24166
25332
|
}), (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, {
|
|
24167
25333
|
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
|
|
24168
25334
|
}), (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, {
|
|
@@ -24201,14 +25367,12 @@ function ApplicationDetailsContent({
|
|
|
24201
25367
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
24202
25368
|
}), (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, {
|
|
24203
25369
|
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documentsWithUrl
|
|
24204
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.
|
|
24205
|
-
|
|
24206
|
-
}), (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, {
|
|
24207
|
-
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
25370
|
+
}), (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, {
|
|
25371
|
+
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.taxHeadEstimatesCalculation
|
|
24208
25372
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
24209
25373
|
wsAdditionalDetails: detail,
|
|
24210
25374
|
oldValue: oldValue
|
|
24211
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25375
|
+
}), (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", {
|
|
24212
25376
|
style: {
|
|
24213
25377
|
fontSize: "16px",
|
|
24214
25378
|
lineHeight: "24px",
|
|
@@ -24216,19 +25380,42 @@ function ApplicationDetailsContent({
|
|
|
24216
25380
|
padding: "10px 0px"
|
|
24217
25381
|
}
|
|
24218
25382
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
24219
|
-
to: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25383
|
+
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
|
|
24220
25384
|
}, /*#__PURE__*/React.createElement("span", {
|
|
24221
25385
|
className: "link",
|
|
24222
25386
|
style: {
|
|
24223
25387
|
color: "#a82227"
|
|
24224
25388
|
}
|
|
24225
|
-
}, detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25389
|
+
}, 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, {
|
|
24226
25390
|
wsAdditionalDetails: detail,
|
|
24227
25391
|
workflowDetails: workflowDetails
|
|
24228
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25392
|
+
}), (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, {
|
|
24229
25393
|
wsAdditionalDetails: detail,
|
|
24230
25394
|
workflowDetails: workflowDetails
|
|
24231
|
-
}))
|
|
25395
|
+
}), 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, {
|
|
25396
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet29 = detail.additionalDetails) === null || _detail$additionalDet29 === void 0 ? void 0 : _detail$additionalDet29.assessmentDocuments
|
|
25397
|
+
}), 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", {
|
|
25398
|
+
style: {
|
|
25399
|
+
display: 'flex',
|
|
25400
|
+
alignItems: 'center',
|
|
25401
|
+
gap: '8px'
|
|
25402
|
+
}
|
|
25403
|
+
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
25404
|
+
onChange: e => {
|
|
25405
|
+
setIsCheck(e.target.checked);
|
|
25406
|
+
}
|
|
25407
|
+
}), /*#__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", {
|
|
25408
|
+
style: {
|
|
25409
|
+
color: 'red'
|
|
25410
|
+
}
|
|
25411
|
+
}, t("PT_CHECK_DECLARATION_BOX"))));
|
|
25412
|
+
}), !window.location.href.includes("/assessment-details") && /*#__PURE__*/React.createElement(AssessmentHistory, {
|
|
25413
|
+
assessmentData: filtered,
|
|
25414
|
+
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
25415
|
+
}), !window.location.href.includes("/assessment-details") && /*#__PURE__*/React.createElement(PaymentHistory, {
|
|
25416
|
+
payments: payments
|
|
25417
|
+
}), !window.location.href.includes("/assessment-details") && /*#__PURE__*/React.createElement(ApplicationHistory, {
|
|
25418
|
+
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
24232
25419
|
}), 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, null, /*#__PURE__*/React.createElement("div", {
|
|
24233
25420
|
id: "timeline"
|
|
24234
25421
|
}, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
@@ -24259,135 +25446,68 @@ function ApplicationDetailsContent({
|
|
|
24259
25446
|
}))), (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, {
|
|
24260
25447
|
label: showAllTimeline ? t("COLLAPSE") : t("VIEW_TIMELINE"),
|
|
24261
25448
|
onClick: toggleTimeline
|
|
24262
|
-
})))), /*#__PURE__*/React.createElement(
|
|
25449
|
+
})))), /*#__PURE__*/React.createElement(ActionBar, {
|
|
25450
|
+
className: "clear-search-container",
|
|
25451
|
+
style: {
|
|
25452
|
+
display: "block"
|
|
25453
|
+
}
|
|
25454
|
+
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
25455
|
+
label: "Make Property Active",
|
|
25456
|
+
style: {
|
|
25457
|
+
flex: 1
|
|
25458
|
+
},
|
|
25459
|
+
onSubmit: PropertyActive
|
|
25460
|
+
}), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
25461
|
+
label: "Make Property Inactive",
|
|
25462
|
+
style: {
|
|
25463
|
+
marginLeft: "20px"
|
|
25464
|
+
},
|
|
25465
|
+
onSubmit: PropertyInActive
|
|
25466
|
+
}), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
25467
|
+
label: "Edit Property",
|
|
25468
|
+
style: {
|
|
25469
|
+
marginLeft: "20px"
|
|
25470
|
+
},
|
|
25471
|
+
onSubmit: EditProperty
|
|
25472
|
+
}), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
25473
|
+
label: "Access Property",
|
|
25474
|
+
style: {
|
|
25475
|
+
marginLeft: "20px"
|
|
25476
|
+
},
|
|
25477
|
+
onSubmit: AccessProperty
|
|
25478
|
+
})), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
25479
|
+
error: showToast.isError,
|
|
25480
|
+
label: t(showToast.label),
|
|
25481
|
+
onClose: closeToast,
|
|
25482
|
+
isDleteBtn: "false"
|
|
25483
|
+
}), showAccess && /*#__PURE__*/React.createElement(Modal, {
|
|
25484
|
+
headerBarMain: /*#__PURE__*/React.createElement(Heading, {
|
|
25485
|
+
label: t("PT_FINANCIAL_YEAR_PLACEHOLDER")
|
|
25486
|
+
}),
|
|
25487
|
+
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn, {
|
|
25488
|
+
onClick: closeModalTwo
|
|
25489
|
+
}),
|
|
25490
|
+
actionCancelLabel: "Cancel",
|
|
25491
|
+
actionCancelOnSubmit: closeModal,
|
|
25492
|
+
actionSaveLabel: "Access",
|
|
25493
|
+
actionSaveOnSubmit: setModal,
|
|
25494
|
+
formId: "modal-action",
|
|
25495
|
+
popupStyles: {
|
|
25496
|
+
width: '60%',
|
|
25497
|
+
marginTop: '5px'
|
|
25498
|
+
}
|
|
25499
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, ((_FinancialYearData2 = FinancialYearData) === null || _FinancialYearData2 === void 0 ? void 0 : _FinancialYearData2.length) > 0 && /*#__PURE__*/React.createElement(Fragment, null, FinancialYearData.map((option, index) => /*#__PURE__*/React.createElement("div", {
|
|
25500
|
+
key: index,
|
|
24263
25501
|
style: {
|
|
24264
|
-
marginBottom: '
|
|
24265
|
-
|
|
24266
|
-
|
|
24267
|
-
|
|
24268
|
-
|
|
24269
|
-
|
|
24270
|
-
|
|
24271
|
-
|
|
24272
|
-
|
|
24273
|
-
}, "Installments"), /*#__PURE__*/React.createElement("th", {
|
|
24274
|
-
colSpan: "3",
|
|
24275
|
-
style: tableStyles.th
|
|
24276
|
-
}, "Demand"), /*#__PURE__*/React.createElement("th", {
|
|
24277
|
-
colSpan: "3",
|
|
24278
|
-
style: tableStyles.th
|
|
24279
|
-
}, "Collection"), /*#__PURE__*/React.createElement("th", {
|
|
24280
|
-
colSpan: "3",
|
|
24281
|
-
style: tableStyles.th
|
|
24282
|
-
}, "Balance"), /*#__PURE__*/React.createElement("th", {
|
|
24283
|
-
style: tableStyles.th
|
|
24284
|
-
}, "Advance")), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
|
|
24285
|
-
style: tableStyles.th
|
|
24286
|
-
}), /*#__PURE__*/React.createElement("th", {
|
|
24287
|
-
style: tableStyles.th
|
|
24288
|
-
}, "Tax"), /*#__PURE__*/React.createElement("th", {
|
|
24289
|
-
style: tableStyles.th
|
|
24290
|
-
}, "Interest"), /*#__PURE__*/React.createElement("th", {
|
|
24291
|
-
style: tableStyles.th
|
|
24292
|
-
}, "Penalty"), /*#__PURE__*/React.createElement("th", {
|
|
24293
|
-
style: tableStyles.th
|
|
24294
|
-
}, "Tax"), /*#__PURE__*/React.createElement("th", {
|
|
24295
|
-
style: tableStyles.th
|
|
24296
|
-
}, "Interest"), /*#__PURE__*/React.createElement("th", {
|
|
24297
|
-
style: tableStyles.th
|
|
24298
|
-
}, "Penalty"), /*#__PURE__*/React.createElement("th", {
|
|
24299
|
-
style: tableStyles.th
|
|
24300
|
-
}, "Tax"), /*#__PURE__*/React.createElement("th", {
|
|
24301
|
-
style: tableStyles.th
|
|
24302
|
-
}, "Interest"), /*#__PURE__*/React.createElement("th", {
|
|
24303
|
-
style: tableStyles.th
|
|
24304
|
-
}, "Penalty"), /*#__PURE__*/React.createElement("th", {
|
|
24305
|
-
style: tableStyles.th
|
|
24306
|
-
}, "Advance"))), /*#__PURE__*/React.createElement("tbody", null, demandData === null || demandData === void 0 ? void 0 : demandData.map(item => {
|
|
24307
|
-
return /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
|
|
24308
|
-
style: tableStyles.td
|
|
24309
|
-
}, item.taxPeriodFrom, "-", item.taxPeriodTo), /*#__PURE__*/React.createElement("td", {
|
|
24310
|
-
style: tableStyles.td
|
|
24311
|
-
}, item.demandTax), /*#__PURE__*/React.createElement("td", {
|
|
24312
|
-
style: tableStyles.td
|
|
24313
|
-
}, item.demandInterest), /*#__PURE__*/React.createElement("td", {
|
|
24314
|
-
style: tableStyles.td
|
|
24315
|
-
}, item.demandPenality), /*#__PURE__*/React.createElement("td", {
|
|
24316
|
-
style: tableStyles.td
|
|
24317
|
-
}, item.collectionTax), /*#__PURE__*/React.createElement("td", {
|
|
24318
|
-
style: tableStyles.td
|
|
24319
|
-
}, item.collectionInterest), /*#__PURE__*/React.createElement("td", {
|
|
24320
|
-
style: tableStyles.td
|
|
24321
|
-
}, item.collectionPenality), /*#__PURE__*/React.createElement("td", {
|
|
24322
|
-
style: tableStyles.td
|
|
24323
|
-
}, item.balanceTax), /*#__PURE__*/React.createElement("td", {
|
|
24324
|
-
style: tableStyles.td
|
|
24325
|
-
}, item.balanceInterest), /*#__PURE__*/React.createElement("td", {
|
|
24326
|
-
style: tableStyles.td
|
|
24327
|
-
}, item.balancePenality), /*#__PURE__*/React.createElement("td", {
|
|
24328
|
-
style: tableStyles.td
|
|
24329
|
-
}, item.advance));
|
|
24330
|
-
}), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
|
|
24331
|
-
style: tableStyles.th
|
|
24332
|
-
}, "Total"), /*#__PURE__*/React.createElement("td", {
|
|
24333
|
-
style: tableStyles.td
|
|
24334
|
-
}, totalDemandTax), /*#__PURE__*/React.createElement("td", {
|
|
24335
|
-
style: tableStyles.td
|
|
24336
|
-
}, totalDemandInterest), /*#__PURE__*/React.createElement("td", {
|
|
24337
|
-
style: tableStyles.td
|
|
24338
|
-
}, totalDemandPenality), /*#__PURE__*/React.createElement("td", {
|
|
24339
|
-
style: tableStyles.td
|
|
24340
|
-
}, totalCollectionTax), /*#__PURE__*/React.createElement("td", {
|
|
24341
|
-
style: tableStyles.td
|
|
24342
|
-
}, totalCollectionInterest), /*#__PURE__*/React.createElement("td", {
|
|
24343
|
-
style: tableStyles.td
|
|
24344
|
-
}, totalCollectionPenality), /*#__PURE__*/React.createElement("td", {
|
|
24345
|
-
style: tableStyles.td
|
|
24346
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
24347
|
-
style: tableStyles.td
|
|
24348
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
24349
|
-
style: tableStyles.td
|
|
24350
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
24351
|
-
style: tableStyles.td
|
|
24352
|
-
})), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
|
|
24353
|
-
style: tableStyles.td
|
|
24354
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
24355
|
-
style: tableStyles.td
|
|
24356
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
24357
|
-
style: tableStyles.td
|
|
24358
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
24359
|
-
style: tableStyles.td
|
|
24360
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
24361
|
-
style: tableStyles.td
|
|
24362
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
24363
|
-
style: tableStyles.td
|
|
24364
|
-
}), /*#__PURE__*/React.createElement("th", {
|
|
24365
|
-
style: tableStyles.th
|
|
24366
|
-
}, "Total"), /*#__PURE__*/React.createElement("td", {
|
|
24367
|
-
style: tableStyles.td
|
|
24368
|
-
}, totalBalanceTax), /*#__PURE__*/React.createElement("td", {
|
|
24369
|
-
style: tableStyles.td
|
|
24370
|
-
}, "0"), /*#__PURE__*/React.createElement("td", {
|
|
24371
|
-
style: tableStyles.td
|
|
24372
|
-
}, "0"), /*#__PURE__*/React.createElement("td", {
|
|
24373
|
-
style: tableStyles.td
|
|
24374
|
-
}, "0")), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
|
|
24375
|
-
style: tableStyles.td
|
|
24376
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
24377
|
-
style: tableStyles.td
|
|
24378
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
24379
|
-
style: tableStyles.td
|
|
24380
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
24381
|
-
style: tableStyles.td
|
|
24382
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
24383
|
-
style: tableStyles.td
|
|
24384
|
-
}), /*#__PURE__*/React.createElement("td", {
|
|
24385
|
-
style: tableStyles.td
|
|
24386
|
-
}), /*#__PURE__*/React.createElement("th", {
|
|
24387
|
-
style: tableStyles.th
|
|
24388
|
-
}, "Total Balance"), /*#__PURE__*/React.createElement("td", {
|
|
24389
|
-
style: tableStyles.td
|
|
24390
|
-
}, totalBalanceTax)))));
|
|
25502
|
+
marginBottom: '8px'
|
|
25503
|
+
}
|
|
25504
|
+
}, /*#__PURE__*/React.createElement("label", null, /*#__PURE__*/React.createElement("input", {
|
|
25505
|
+
type: "radio",
|
|
25506
|
+
value: option.code,
|
|
25507
|
+
checked: selectedYear === option.code,
|
|
25508
|
+
onChange: e => setSelectedYear(e.target.value),
|
|
25509
|
+
name: "custom-radio"
|
|
25510
|
+
}), option.name)))))));
|
|
24391
25511
|
}
|
|
24392
25512
|
|
|
24393
25513
|
function ApplicationDetailsToast({
|
|
@@ -24698,7 +25818,10 @@ const ApplicationDetails = props => {
|
|
|
24698
25818
|
showTimeLine = true,
|
|
24699
25819
|
oldValue,
|
|
24700
25820
|
isInfoLabel = false,
|
|
24701
|
-
clearDataDetails
|
|
25821
|
+
clearDataDetails,
|
|
25822
|
+
propertyId,
|
|
25823
|
+
setIsCheck,
|
|
25824
|
+
isCheck
|
|
24702
25825
|
} = props;
|
|
24703
25826
|
useEffect(() => {
|
|
24704
25827
|
if (showToast) {
|
|
@@ -24919,6 +26042,7 @@ const ApplicationDetails = props => {
|
|
|
24919
26042
|
window.location.assign(window.location.href.split("/editApplication")[0] + window.location.href.split("editApplication")[1]);
|
|
24920
26043
|
}
|
|
24921
26044
|
};
|
|
26045
|
+
console.log("application Details in template", applicationDetails);
|
|
24922
26046
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !isLoading ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ApplicationDetailsContent, {
|
|
24923
26047
|
applicationDetails: applicationDetails,
|
|
24924
26048
|
demandData: demandData,
|
|
@@ -24934,7 +26058,10 @@ const ApplicationDetails = props => {
|
|
|
24934
26058
|
paymentsList: paymentsList,
|
|
24935
26059
|
showTimeLine: showTimeLine,
|
|
24936
26060
|
oldValue: oldValue,
|
|
24937
|
-
isInfoLabel: isInfoLabel
|
|
26061
|
+
isInfoLabel: isInfoLabel,
|
|
26062
|
+
propertyId: propertyId,
|
|
26063
|
+
setIsCheck: setIsCheck,
|
|
26064
|
+
isCheck: isCheck
|
|
24938
26065
|
}), showModal ? /*#__PURE__*/React.createElement(ActionModal$b, {
|
|
24939
26066
|
t: t,
|
|
24940
26067
|
action: selectedAction,
|