@mseva/digit-ui-module-sv 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14302,8 +14302,8 @@ function getNative(object, key) {
14302
14302
  }
14303
14303
  var _getNative = getNative;
14304
14304
 
14305
- var Map = _getNative(_root, 'Map');
14306
- var _Map = Map;
14305
+ var Map$1 = _getNative(_root, 'Map');
14306
+ var _Map = Map$1;
14307
14307
 
14308
14308
  var nativeCreate = _getNative(Object, 'create');
14309
14309
  var _nativeCreate = nativeCreate;
@@ -16197,6 +16197,818 @@ const ActionModal$b = props => {
16197
16197
  }
16198
16198
  };
16199
16199
 
16200
+ var bind = function bind(fn, thisArg) {
16201
+ return function wrap() {
16202
+ var args = new Array(arguments.length);
16203
+ for (var i = 0; i < args.length; i++) {
16204
+ args[i] = arguments[i];
16205
+ }
16206
+ return fn.apply(thisArg, args);
16207
+ };
16208
+ };
16209
+
16210
+ var toString = Object.prototype.toString;
16211
+ function isArray$1(val) {
16212
+ return toString.call(val) === '[object Array]';
16213
+ }
16214
+ function isUndefined(val) {
16215
+ return typeof val === 'undefined';
16216
+ }
16217
+ function isBuffer(val) {
16218
+ return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
16219
+ }
16220
+ function isArrayBuffer(val) {
16221
+ return toString.call(val) === '[object ArrayBuffer]';
16222
+ }
16223
+ function isFormData(val) {
16224
+ return typeof FormData !== 'undefined' && val instanceof FormData;
16225
+ }
16226
+ function isArrayBufferView(val) {
16227
+ var result;
16228
+ if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
16229
+ result = ArrayBuffer.isView(val);
16230
+ } else {
16231
+ result = val && val.buffer && val.buffer instanceof ArrayBuffer;
16232
+ }
16233
+ return result;
16234
+ }
16235
+ function isString(val) {
16236
+ return typeof val === 'string';
16237
+ }
16238
+ function isNumber(val) {
16239
+ return typeof val === 'number';
16240
+ }
16241
+ function isObject$1(val) {
16242
+ return val !== null && typeof val === 'object';
16243
+ }
16244
+ function isPlainObject(val) {
16245
+ if (toString.call(val) !== '[object Object]') {
16246
+ return false;
16247
+ }
16248
+ var prototype = Object.getPrototypeOf(val);
16249
+ return prototype === null || prototype === Object.prototype;
16250
+ }
16251
+ function isDate(val) {
16252
+ return toString.call(val) === '[object Date]';
16253
+ }
16254
+ function isFile(val) {
16255
+ return toString.call(val) === '[object File]';
16256
+ }
16257
+ function isBlob(val) {
16258
+ return toString.call(val) === '[object Blob]';
16259
+ }
16260
+ function isFunction$1(val) {
16261
+ return toString.call(val) === '[object Function]';
16262
+ }
16263
+ function isStream(val) {
16264
+ return isObject$1(val) && isFunction$1(val.pipe);
16265
+ }
16266
+ function isURLSearchParams(val) {
16267
+ return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
16268
+ }
16269
+ function trim(str) {
16270
+ return str.replace(/^\s*/, '').replace(/\s*$/, '');
16271
+ }
16272
+ function isStandardBrowserEnv() {
16273
+ if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) {
16274
+ return false;
16275
+ }
16276
+ return typeof window !== 'undefined' && typeof document !== 'undefined';
16277
+ }
16278
+ function forEach(obj, fn) {
16279
+ if (obj === null || typeof obj === 'undefined') {
16280
+ return;
16281
+ }
16282
+ if (typeof obj !== 'object') {
16283
+ obj = [obj];
16284
+ }
16285
+ if (isArray$1(obj)) {
16286
+ for (var i = 0, l = obj.length; i < l; i++) {
16287
+ fn.call(null, obj[i], i, obj);
16288
+ }
16289
+ } else {
16290
+ for (var key in obj) {
16291
+ if (Object.prototype.hasOwnProperty.call(obj, key)) {
16292
+ fn.call(null, obj[key], key, obj);
16293
+ }
16294
+ }
16295
+ }
16296
+ }
16297
+ function merge() {
16298
+ var result = {};
16299
+ function assignValue(val, key) {
16300
+ if (isPlainObject(result[key]) && isPlainObject(val)) {
16301
+ result[key] = merge(result[key], val);
16302
+ } else if (isPlainObject(val)) {
16303
+ result[key] = merge({}, val);
16304
+ } else if (isArray$1(val)) {
16305
+ result[key] = val.slice();
16306
+ } else {
16307
+ result[key] = val;
16308
+ }
16309
+ }
16310
+ for (var i = 0, l = arguments.length; i < l; i++) {
16311
+ forEach(arguments[i], assignValue);
16312
+ }
16313
+ return result;
16314
+ }
16315
+ function extend(a, b, thisArg) {
16316
+ forEach(b, function assignValue(val, key) {
16317
+ if (thisArg && typeof val === 'function') {
16318
+ a[key] = bind(val, thisArg);
16319
+ } else {
16320
+ a[key] = val;
16321
+ }
16322
+ });
16323
+ return a;
16324
+ }
16325
+ function stripBOM(content) {
16326
+ if (content.charCodeAt(0) === 0xFEFF) {
16327
+ content = content.slice(1);
16328
+ }
16329
+ return content;
16330
+ }
16331
+ var utils = {
16332
+ isArray: isArray$1,
16333
+ isArrayBuffer: isArrayBuffer,
16334
+ isBuffer: isBuffer,
16335
+ isFormData: isFormData,
16336
+ isArrayBufferView: isArrayBufferView,
16337
+ isString: isString,
16338
+ isNumber: isNumber,
16339
+ isObject: isObject$1,
16340
+ isPlainObject: isPlainObject,
16341
+ isUndefined: isUndefined,
16342
+ isDate: isDate,
16343
+ isFile: isFile,
16344
+ isBlob: isBlob,
16345
+ isFunction: isFunction$1,
16346
+ isStream: isStream,
16347
+ isURLSearchParams: isURLSearchParams,
16348
+ isStandardBrowserEnv: isStandardBrowserEnv,
16349
+ forEach: forEach,
16350
+ merge: merge,
16351
+ extend: extend,
16352
+ trim: trim,
16353
+ stripBOM: stripBOM
16354
+ };
16355
+
16356
+ function encode(val) {
16357
+ return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
16358
+ }
16359
+ var buildURL = function buildURL(url, params, paramsSerializer) {
16360
+ if (!params) {
16361
+ return url;
16362
+ }
16363
+ var serializedParams;
16364
+ if (paramsSerializer) {
16365
+ serializedParams = paramsSerializer(params);
16366
+ } else if (utils.isURLSearchParams(params)) {
16367
+ serializedParams = params.toString();
16368
+ } else {
16369
+ var parts = [];
16370
+ utils.forEach(params, function serialize(val, key) {
16371
+ if (val === null || typeof val === 'undefined') {
16372
+ return;
16373
+ }
16374
+ if (utils.isArray(val)) {
16375
+ key = key + '[]';
16376
+ } else {
16377
+ val = [val];
16378
+ }
16379
+ utils.forEach(val, function parseValue(v) {
16380
+ if (utils.isDate(v)) {
16381
+ v = v.toISOString();
16382
+ } else if (utils.isObject(v)) {
16383
+ v = JSON.stringify(v);
16384
+ }
16385
+ parts.push(encode(key) + '=' + encode(v));
16386
+ });
16387
+ });
16388
+ serializedParams = parts.join('&');
16389
+ }
16390
+ if (serializedParams) {
16391
+ var hashmarkIndex = url.indexOf('#');
16392
+ if (hashmarkIndex !== -1) {
16393
+ url = url.slice(0, hashmarkIndex);
16394
+ }
16395
+ url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
16396
+ }
16397
+ return url;
16398
+ };
16399
+
16400
+ function InterceptorManager() {
16401
+ this.handlers = [];
16402
+ }
16403
+ InterceptorManager.prototype.use = function use(fulfilled, rejected) {
16404
+ this.handlers.push({
16405
+ fulfilled: fulfilled,
16406
+ rejected: rejected
16407
+ });
16408
+ return this.handlers.length - 1;
16409
+ };
16410
+ InterceptorManager.prototype.eject = function eject(id) {
16411
+ if (this.handlers[id]) {
16412
+ this.handlers[id] = null;
16413
+ }
16414
+ };
16415
+ InterceptorManager.prototype.forEach = function forEach(fn) {
16416
+ utils.forEach(this.handlers, function forEachHandler(h) {
16417
+ if (h !== null) {
16418
+ fn(h);
16419
+ }
16420
+ });
16421
+ };
16422
+ var InterceptorManager_1 = InterceptorManager;
16423
+
16424
+ var transformData = function transformData(data, headers, fns) {
16425
+ utils.forEach(fns, function transform(fn) {
16426
+ data = fn(data, headers);
16427
+ });
16428
+ return data;
16429
+ };
16430
+
16431
+ var isCancel = function isCancel(value) {
16432
+ return !!(value && value.__CANCEL__);
16433
+ };
16434
+
16435
+ var normalizeHeaderName = function normalizeHeaderName(headers, normalizedName) {
16436
+ utils.forEach(headers, function processHeader(value, name) {
16437
+ if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
16438
+ headers[normalizedName] = value;
16439
+ delete headers[name];
16440
+ }
16441
+ });
16442
+ };
16443
+
16444
+ var enhanceError = function enhanceError(error, config, code, request, response) {
16445
+ error.config = config;
16446
+ if (code) {
16447
+ error.code = code;
16448
+ }
16449
+ error.request = request;
16450
+ error.response = response;
16451
+ error.isAxiosError = true;
16452
+ error.toJSON = function toJSON() {
16453
+ return {
16454
+ message: this.message,
16455
+ name: this.name,
16456
+ description: this.description,
16457
+ number: this.number,
16458
+ fileName: this.fileName,
16459
+ lineNumber: this.lineNumber,
16460
+ columnNumber: this.columnNumber,
16461
+ stack: this.stack,
16462
+ config: this.config,
16463
+ code: this.code
16464
+ };
16465
+ };
16466
+ return error;
16467
+ };
16468
+
16469
+ var createError = function createError(message, config, code, request, response) {
16470
+ var error = new Error(message);
16471
+ return enhanceError(error, config, code, request, response);
16472
+ };
16473
+
16474
+ var settle = function settle(resolve, reject, response) {
16475
+ var validateStatus = response.config.validateStatus;
16476
+ if (!response.status || !validateStatus || validateStatus(response.status)) {
16477
+ resolve(response);
16478
+ } else {
16479
+ reject(createError('Request failed with status code ' + response.status, response.config, null, response.request, response));
16480
+ }
16481
+ };
16482
+
16483
+ var cookies = utils.isStandardBrowserEnv() ? function standardBrowserEnv() {
16484
+ return {
16485
+ write: function write(name, value, expires, path, domain, secure) {
16486
+ var cookie = [];
16487
+ cookie.push(name + '=' + encodeURIComponent(value));
16488
+ if (utils.isNumber(expires)) {
16489
+ cookie.push('expires=' + new Date(expires).toGMTString());
16490
+ }
16491
+ if (utils.isString(path)) {
16492
+ cookie.push('path=' + path);
16493
+ }
16494
+ if (utils.isString(domain)) {
16495
+ cookie.push('domain=' + domain);
16496
+ }
16497
+ if (secure === true) {
16498
+ cookie.push('secure');
16499
+ }
16500
+ document.cookie = cookie.join('; ');
16501
+ },
16502
+ read: function read(name) {
16503
+ var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
16504
+ return match ? decodeURIComponent(match[3]) : null;
16505
+ },
16506
+ remove: function remove(name) {
16507
+ this.write(name, '', Date.now() - 86400000);
16508
+ }
16509
+ };
16510
+ }() : function nonStandardBrowserEnv() {
16511
+ return {
16512
+ write: function write() {},
16513
+ read: function read() {
16514
+ return null;
16515
+ },
16516
+ remove: function remove() {}
16517
+ };
16518
+ }();
16519
+
16520
+ var isAbsoluteURL = function isAbsoluteURL(url) {
16521
+ return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
16522
+ };
16523
+
16524
+ var combineURLs = function combineURLs(baseURL, relativeURL) {
16525
+ return relativeURL ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL;
16526
+ };
16527
+
16528
+ var buildFullPath = function buildFullPath(baseURL, requestedURL) {
16529
+ if (baseURL && !isAbsoluteURL(requestedURL)) {
16530
+ return combineURLs(baseURL, requestedURL);
16531
+ }
16532
+ return requestedURL;
16533
+ };
16534
+
16535
+ 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'];
16536
+ var parseHeaders = function parseHeaders(headers) {
16537
+ var parsed = {};
16538
+ var key;
16539
+ var val;
16540
+ var i;
16541
+ if (!headers) {
16542
+ return parsed;
16543
+ }
16544
+ utils.forEach(headers.split('\n'), function parser(line) {
16545
+ i = line.indexOf(':');
16546
+ key = utils.trim(line.substr(0, i)).toLowerCase();
16547
+ val = utils.trim(line.substr(i + 1));
16548
+ if (key) {
16549
+ if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
16550
+ return;
16551
+ }
16552
+ if (key === 'set-cookie') {
16553
+ parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
16554
+ } else {
16555
+ parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
16556
+ }
16557
+ }
16558
+ });
16559
+ return parsed;
16560
+ };
16561
+
16562
+ var isURLSameOrigin = utils.isStandardBrowserEnv() ? function standardBrowserEnv() {
16563
+ var msie = /(msie|trident)/i.test(navigator.userAgent);
16564
+ var urlParsingNode = document.createElement('a');
16565
+ var originURL;
16566
+ function resolveURL(url) {
16567
+ var href = url;
16568
+ if (msie) {
16569
+ urlParsingNode.setAttribute('href', href);
16570
+ href = urlParsingNode.href;
16571
+ }
16572
+ urlParsingNode.setAttribute('href', href);
16573
+ return {
16574
+ href: urlParsingNode.href,
16575
+ protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
16576
+ host: urlParsingNode.host,
16577
+ search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
16578
+ hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
16579
+ hostname: urlParsingNode.hostname,
16580
+ port: urlParsingNode.port,
16581
+ pathname: urlParsingNode.pathname.charAt(0) === '/' ? urlParsingNode.pathname : '/' + urlParsingNode.pathname
16582
+ };
16583
+ }
16584
+ originURL = resolveURL(window.location.href);
16585
+ return function isURLSameOrigin(requestURL) {
16586
+ var parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;
16587
+ return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
16588
+ };
16589
+ }() : function nonStandardBrowserEnv() {
16590
+ return function isURLSameOrigin() {
16591
+ return true;
16592
+ };
16593
+ }();
16594
+
16595
+ var xhr = function xhrAdapter(config) {
16596
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
16597
+ var requestData = config.data;
16598
+ var requestHeaders = config.headers;
16599
+ if (utils.isFormData(requestData)) {
16600
+ delete requestHeaders['Content-Type'];
16601
+ }
16602
+ var request = new XMLHttpRequest();
16603
+ if (config.auth) {
16604
+ var username = config.auth.username || '';
16605
+ var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
16606
+ requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
16607
+ }
16608
+ var fullPath = buildFullPath(config.baseURL, config.url);
16609
+ request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
16610
+ request.timeout = config.timeout;
16611
+ request.onreadystatechange = function handleLoad() {
16612
+ if (!request || request.readyState !== 4) {
16613
+ return;
16614
+ }
16615
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
16616
+ return;
16617
+ }
16618
+ var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
16619
+ var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
16620
+ var response = {
16621
+ data: responseData,
16622
+ status: request.status,
16623
+ statusText: request.statusText,
16624
+ headers: responseHeaders,
16625
+ config: config,
16626
+ request: request
16627
+ };
16628
+ settle(resolve, reject, response);
16629
+ request = null;
16630
+ };
16631
+ request.onabort = function handleAbort() {
16632
+ if (!request) {
16633
+ return;
16634
+ }
16635
+ reject(createError('Request aborted', config, 'ECONNABORTED', request));
16636
+ request = null;
16637
+ };
16638
+ request.onerror = function handleError() {
16639
+ reject(createError('Network Error', config, null, request));
16640
+ request = null;
16641
+ };
16642
+ request.ontimeout = function handleTimeout() {
16643
+ var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
16644
+ if (config.timeoutErrorMessage) {
16645
+ timeoutErrorMessage = config.timeoutErrorMessage;
16646
+ }
16647
+ reject(createError(timeoutErrorMessage, config, 'ECONNABORTED', request));
16648
+ request = null;
16649
+ };
16650
+ if (utils.isStandardBrowserEnv()) {
16651
+ var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : undefined;
16652
+ if (xsrfValue) {
16653
+ requestHeaders[config.xsrfHeaderName] = xsrfValue;
16654
+ }
16655
+ }
16656
+ if ('setRequestHeader' in request) {
16657
+ utils.forEach(requestHeaders, function setRequestHeader(val, key) {
16658
+ if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
16659
+ delete requestHeaders[key];
16660
+ } else {
16661
+ request.setRequestHeader(key, val);
16662
+ }
16663
+ });
16664
+ }
16665
+ if (!utils.isUndefined(config.withCredentials)) {
16666
+ request.withCredentials = !!config.withCredentials;
16667
+ }
16668
+ if (config.responseType) {
16669
+ try {
16670
+ request.responseType = config.responseType;
16671
+ } catch (e) {
16672
+ if (config.responseType !== 'json') {
16673
+ throw e;
16674
+ }
16675
+ }
16676
+ }
16677
+ if (typeof config.onDownloadProgress === 'function') {
16678
+ request.addEventListener('progress', config.onDownloadProgress);
16679
+ }
16680
+ if (typeof config.onUploadProgress === 'function' && request.upload) {
16681
+ request.upload.addEventListener('progress', config.onUploadProgress);
16682
+ }
16683
+ if (config.cancelToken) {
16684
+ config.cancelToken.promise.then(function onCanceled(cancel) {
16685
+ if (!request) {
16686
+ return;
16687
+ }
16688
+ request.abort();
16689
+ reject(cancel);
16690
+ request = null;
16691
+ });
16692
+ }
16693
+ if (!requestData) {
16694
+ requestData = null;
16695
+ }
16696
+ request.send(requestData);
16697
+ });
16698
+ };
16699
+
16700
+ var DEFAULT_CONTENT_TYPE = {
16701
+ 'Content-Type': 'application/x-www-form-urlencoded'
16702
+ };
16703
+ function setContentTypeIfUnset(headers, value) {
16704
+ if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
16705
+ headers['Content-Type'] = value;
16706
+ }
16707
+ }
16708
+ function getDefaultAdapter() {
16709
+ var adapter;
16710
+ if (typeof XMLHttpRequest !== 'undefined') {
16711
+ adapter = xhr;
16712
+ } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
16713
+ adapter = xhr;
16714
+ }
16715
+ return adapter;
16716
+ }
16717
+ var defaults = {
16718
+ adapter: getDefaultAdapter(),
16719
+ transformRequest: [function transformRequest(data, headers) {
16720
+ normalizeHeaderName(headers, 'Accept');
16721
+ normalizeHeaderName(headers, 'Content-Type');
16722
+ if (utils.isFormData(data) || utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data)) {
16723
+ return data;
16724
+ }
16725
+ if (utils.isArrayBufferView(data)) {
16726
+ return data.buffer;
16727
+ }
16728
+ if (utils.isURLSearchParams(data)) {
16729
+ setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
16730
+ return data.toString();
16731
+ }
16732
+ if (utils.isObject(data)) {
16733
+ setContentTypeIfUnset(headers, 'application/json;charset=utf-8');
16734
+ return JSON.stringify(data);
16735
+ }
16736
+ return data;
16737
+ }],
16738
+ transformResponse: [function transformResponse(data) {
16739
+ if (typeof data === 'string') {
16740
+ try {
16741
+ data = JSON.parse(data);
16742
+ } catch (e) {}
16743
+ }
16744
+ return data;
16745
+ }],
16746
+ timeout: 0,
16747
+ xsrfCookieName: 'XSRF-TOKEN',
16748
+ xsrfHeaderName: 'X-XSRF-TOKEN',
16749
+ maxContentLength: -1,
16750
+ maxBodyLength: -1,
16751
+ validateStatus: function validateStatus(status) {
16752
+ return status >= 200 && status < 300;
16753
+ }
16754
+ };
16755
+ defaults.headers = {
16756
+ common: {
16757
+ 'Accept': 'application/json, text/plain, */*'
16758
+ }
16759
+ };
16760
+ utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
16761
+ defaults.headers[method] = {};
16762
+ });
16763
+ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
16764
+ defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
16765
+ });
16766
+ var defaults_1 = defaults;
16767
+
16768
+ function throwIfCancellationRequested(config) {
16769
+ if (config.cancelToken) {
16770
+ config.cancelToken.throwIfRequested();
16771
+ }
16772
+ }
16773
+ var dispatchRequest = function dispatchRequest(config) {
16774
+ throwIfCancellationRequested(config);
16775
+ config.headers = config.headers || {};
16776
+ config.data = transformData(config.data, config.headers, config.transformRequest);
16777
+ config.headers = utils.merge(config.headers.common || {}, config.headers[config.method] || {}, config.headers);
16778
+ utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function cleanHeaderConfig(method) {
16779
+ delete config.headers[method];
16780
+ });
16781
+ var adapter = config.adapter || defaults_1.adapter;
16782
+ return adapter(config).then(function onAdapterResolution(response) {
16783
+ throwIfCancellationRequested(config);
16784
+ response.data = transformData(response.data, response.headers, config.transformResponse);
16785
+ return response;
16786
+ }, function onAdapterRejection(reason) {
16787
+ if (!isCancel(reason)) {
16788
+ throwIfCancellationRequested(config);
16789
+ if (reason && reason.response) {
16790
+ reason.response.data = transformData(reason.response.data, reason.response.headers, config.transformResponse);
16791
+ }
16792
+ }
16793
+ return Promise.reject(reason);
16794
+ });
16795
+ };
16796
+
16797
+ var mergeConfig = function mergeConfig(config1, config2) {
16798
+ config2 = config2 || {};
16799
+ var config = {};
16800
+ var valueFromConfig2Keys = ['url', 'method', 'data'];
16801
+ var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];
16802
+ 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'];
16803
+ var directMergeKeys = ['validateStatus'];
16804
+ function getMergedValue(target, source) {
16805
+ if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
16806
+ return utils.merge(target, source);
16807
+ } else if (utils.isPlainObject(source)) {
16808
+ return utils.merge({}, source);
16809
+ } else if (utils.isArray(source)) {
16810
+ return source.slice();
16811
+ }
16812
+ return source;
16813
+ }
16814
+ function mergeDeepProperties(prop) {
16815
+ if (!utils.isUndefined(config2[prop])) {
16816
+ config[prop] = getMergedValue(config1[prop], config2[prop]);
16817
+ } else if (!utils.isUndefined(config1[prop])) {
16818
+ config[prop] = getMergedValue(undefined, config1[prop]);
16819
+ }
16820
+ }
16821
+ utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
16822
+ if (!utils.isUndefined(config2[prop])) {
16823
+ config[prop] = getMergedValue(undefined, config2[prop]);
16824
+ }
16825
+ });
16826
+ utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
16827
+ utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
16828
+ if (!utils.isUndefined(config2[prop])) {
16829
+ config[prop] = getMergedValue(undefined, config2[prop]);
16830
+ } else if (!utils.isUndefined(config1[prop])) {
16831
+ config[prop] = getMergedValue(undefined, config1[prop]);
16832
+ }
16833
+ });
16834
+ utils.forEach(directMergeKeys, function merge(prop) {
16835
+ if (prop in config2) {
16836
+ config[prop] = getMergedValue(config1[prop], config2[prop]);
16837
+ } else if (prop in config1) {
16838
+ config[prop] = getMergedValue(undefined, config1[prop]);
16839
+ }
16840
+ });
16841
+ var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);
16842
+ var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(function filterAxiosKeys(key) {
16843
+ return axiosKeys.indexOf(key) === -1;
16844
+ });
16845
+ utils.forEach(otherKeys, mergeDeepProperties);
16846
+ return config;
16847
+ };
16848
+
16849
+ function Axios(instanceConfig) {
16850
+ this.defaults = instanceConfig;
16851
+ this.interceptors = {
16852
+ request: new InterceptorManager_1(),
16853
+ response: new InterceptorManager_1()
16854
+ };
16855
+ }
16856
+ Axios.prototype.request = function request(config) {
16857
+ if (typeof config === 'string') {
16858
+ config = arguments[1] || {};
16859
+ config.url = arguments[0];
16860
+ } else {
16861
+ config = config || {};
16862
+ }
16863
+ config = mergeConfig(this.defaults, config);
16864
+ if (config.method) {
16865
+ config.method = config.method.toLowerCase();
16866
+ } else if (this.defaults.method) {
16867
+ config.method = this.defaults.method.toLowerCase();
16868
+ } else {
16869
+ config.method = 'get';
16870
+ }
16871
+ var chain = [dispatchRequest, undefined];
16872
+ var promise = Promise.resolve(config);
16873
+ this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
16874
+ chain.unshift(interceptor.fulfilled, interceptor.rejected);
16875
+ });
16876
+ this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
16877
+ chain.push(interceptor.fulfilled, interceptor.rejected);
16878
+ });
16879
+ while (chain.length) {
16880
+ promise = promise.then(chain.shift(), chain.shift());
16881
+ }
16882
+ return promise;
16883
+ };
16884
+ Axios.prototype.getUri = function getUri(config) {
16885
+ config = mergeConfig(this.defaults, config);
16886
+ return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
16887
+ };
16888
+ utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
16889
+ Axios.prototype[method] = function (url, config) {
16890
+ return this.request(mergeConfig(config || {}, {
16891
+ method: method,
16892
+ url: url,
16893
+ data: (config || {}).data
16894
+ }));
16895
+ };
16896
+ });
16897
+ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
16898
+ Axios.prototype[method] = function (url, data, config) {
16899
+ return this.request(mergeConfig(config || {}, {
16900
+ method: method,
16901
+ url: url,
16902
+ data: data
16903
+ }));
16904
+ };
16905
+ });
16906
+ var Axios_1 = Axios;
16907
+
16908
+ function Cancel(message) {
16909
+ this.message = message;
16910
+ }
16911
+ Cancel.prototype.toString = function toString() {
16912
+ return 'Cancel' + (this.message ? ': ' + this.message : '');
16913
+ };
16914
+ Cancel.prototype.__CANCEL__ = true;
16915
+ var Cancel_1 = Cancel;
16916
+
16917
+ function CancelToken(executor) {
16918
+ if (typeof executor !== 'function') {
16919
+ throw new TypeError('executor must be a function.');
16920
+ }
16921
+ var resolvePromise;
16922
+ this.promise = new Promise(function promiseExecutor(resolve) {
16923
+ resolvePromise = resolve;
16924
+ });
16925
+ var token = this;
16926
+ executor(function cancel(message) {
16927
+ if (token.reason) {
16928
+ return;
16929
+ }
16930
+ token.reason = new Cancel_1(message);
16931
+ resolvePromise(token.reason);
16932
+ });
16933
+ }
16934
+ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
16935
+ if (this.reason) {
16936
+ throw this.reason;
16937
+ }
16938
+ };
16939
+ CancelToken.source = function source() {
16940
+ var cancel;
16941
+ var token = new CancelToken(function executor(c) {
16942
+ cancel = c;
16943
+ });
16944
+ return {
16945
+ token: token,
16946
+ cancel: cancel
16947
+ };
16948
+ };
16949
+ var CancelToken_1 = CancelToken;
16950
+
16951
+ var spread = function spread(callback) {
16952
+ return function wrap(arr) {
16953
+ return callback.apply(null, arr);
16954
+ };
16955
+ };
16956
+
16957
+ var isAxiosError = function isAxiosError(payload) {
16958
+ return typeof payload === 'object' && payload.isAxiosError === true;
16959
+ };
16960
+
16961
+ function createInstance(defaultConfig) {
16962
+ var context = new Axios_1(defaultConfig);
16963
+ var instance = bind(Axios_1.prototype.request, context);
16964
+ utils.extend(instance, Axios_1.prototype, context);
16965
+ utils.extend(instance, context);
16966
+ return instance;
16967
+ }
16968
+ var axios = createInstance(defaults_1);
16969
+ axios.Axios = Axios_1;
16970
+ axios.create = function create(instanceConfig) {
16971
+ return createInstance(mergeConfig(axios.defaults, instanceConfig));
16972
+ };
16973
+ axios.Cancel = Cancel_1;
16974
+ axios.CancelToken = CancelToken_1;
16975
+ axios.isCancel = isCancel;
16976
+ axios.all = function all(promises) {
16977
+ return Promise.all(promises);
16978
+ };
16979
+ axios.spread = spread;
16980
+ axios.isAxiosError = isAxiosError;
16981
+ var axios_1 = axios;
16982
+ var _default = axios;
16983
+ axios_1.default = _default;
16984
+
16985
+ var axios$1 = axios_1;
16986
+
16987
+ axios$1.interceptors.response.use(res => res, err => {
16988
+ var _err$response, _err$response$data;
16989
+ const isEmployee = window.location.pathname.split("/").includes("employee");
16990
+ 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) {
16991
+ for (const error of err.response.data.Errors) {
16992
+ var _error$message, _error$message$toLowe, _error$message2, _error$message2$toLow;
16993
+ if (error.message.includes("InvalidAccessTokenException")) {
16994
+ localStorage.clear();
16995
+ sessionStorage.clear();
16996
+ window.location.href = (isEmployee ? "/digit-ui/employee/user/login" : "/digit-ui/citizen/login") + `?from=${encodeURIComponent(window.location.pathname + window.location.search)}`;
16997
+ } 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")) {
16998
+ window.location.href = (isEmployee ? "/digit-ui/employee/user/error" : "/digit-ui/citizen/error") + `?type=maintenance&from=${encodeURIComponent(window.location.pathname + window.location.search)}`;
16999
+ } else if (error.message.includes("ZuulRuntimeException")) {
17000
+ window.location.href = (isEmployee ? "/digit-ui/employee/user/error" : "/digit-ui/citizen/error") + `?type=notfound&from=${encodeURIComponent(window.location.pathname + window.location.search)}`;
17001
+ }
17002
+ }
17003
+ }
17004
+ throw err;
17005
+ });
17006
+ window.Digit = window.Digit || {};
17007
+ window.Digit = {
17008
+ ...window.Digit,
17009
+ RequestCache: window.Digit.RequestCache || {}
17010
+ };
17011
+
16200
17012
  function DocumentsPreview({
16201
17013
  documents,
16202
17014
  svgStyles = {},
@@ -18960,218 +19772,421 @@ const ViewBreakup = ({
18960
19772
  })))));
18961
19773
  };
18962
19774
 
18963
- const styles = {
18964
- root: {
18965
- width: "100%",
18966
- marginTop: "2px",
18967
- overflowX: "auto",
18968
- boxShadow: "none"
18969
- },
18970
- table: {
18971
- minWidth: 700,
18972
- backgroundColor: "rgba(250, 250, 250, var(--bg-opacity))"
18973
- },
18974
- cell: {
18975
- maxWidth: "7em",
18976
- minWidth: "1em",
18977
- border: "1px solid #e8e7e6",
18978
- padding: "4px 5px",
18979
- fontSize: "0.8em",
18980
- textAlign: "left",
18981
- lineHeight: "1.5em"
18982
- },
18983
- cellHeader: {
18984
- overflow: "hidden",
18985
- textOverflow: "ellipsis"
18986
- },
18987
- cellLeft: {},
18988
- cellRight: {}
18989
- };
18990
- const ArrearTable = ({
18991
- className: _className = "table",
18992
- headers: _headers = [],
18993
- values: _values = [],
18994
- arrears: _arrears = 0
19775
+ const AssessmentHistory = ({
19776
+ assessmentData,
19777
+ applicationData
18995
19778
  }) => {
19779
+ const history = useHistory();
18996
19780
  const {
18997
19781
  t
18998
19782
  } = useTranslation();
18999
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
19000
- style: styles.root
19001
- }, /*#__PURE__*/React.createElement("table", {
19002
- className: "table-fixed-column-common-pay",
19003
- style: styles.table
19004
- }, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
19783
+ const [isOpen, setIsOpen] = useState(false);
19784
+ const toggleAccordion = () => {
19785
+ setIsOpen(!isOpen);
19786
+ };
19787
+ function formatAssessmentDate(timestamp) {
19788
+ const date = new Date(timestamp);
19789
+ const options = {
19790
+ day: '2-digit',
19791
+ month: 'short',
19792
+ year: 'numeric'
19793
+ };
19794
+ return date.toLocaleDateString('en-GB', options).replace(/ /g, '-');
19795
+ }
19796
+ return /*#__PURE__*/React.createElement("div", {
19797
+ className: "accordion",
19005
19798
  style: {
19006
- ...styles.cell,
19007
- ...styles.cellLeft,
19008
- ...styles.cellHeader
19009
- }
19010
- }, t("CS_BILL_PERIOD")), _headers.map((header, ind) => {
19011
- let styleRight = _headers.length == ind + 1 ? styles.cellRight : {};
19012
- return /*#__PURE__*/React.createElement("th", {
19013
- style: {
19014
- ...styles.cell,
19015
- ...styleRight,
19016
- ...styles.cellHeader
19017
- },
19018
- key: ind
19019
- }, t(header));
19020
- }))), /*#__PURE__*/React.createElement("tbody", null, Object.values(_values).map((row, ind) => /*#__PURE__*/React.createElement("tr", {
19021
- key: ind
19022
- }, /*#__PURE__*/React.createElement("td", {
19799
+ width: "100%",
19800
+ margin: "auto",
19801
+ fontFamily: "Roboto, sans-serif",
19802
+ border: "1px solid #ccc",
19803
+ borderRadius: "4px",
19804
+ marginBottom: '10px'
19805
+ }
19806
+ }, /*#__PURE__*/React.createElement("div", {
19807
+ className: "accordion-header",
19023
19808
  style: {
19024
- ...styles.cell,
19025
- ...styles.cellLeft
19809
+ backgroundColor: "#f0f0f0",
19810
+ padding: "15px",
19811
+ cursor: "pointer"
19026
19812
  },
19027
- component: "th",
19028
- scope: "row"
19029
- }, Object.keys(_values)[ind]), _headers.map((header, i) => {
19030
- let styleRight = _headers.length == i + 1 ? styles.cellRight : {};
19031
- return /*#__PURE__*/React.createElement("td", {
19032
- style: {
19033
- ...styles.cell,
19034
- textAlign: "left",
19035
- ...styleRight,
19036
- whiteSpace: "pre"
19037
- },
19038
- key: i,
19039
- numeric: true
19040
- }, i > 1 && "₹", row[header] && row[header]["value"] || "0");
19041
- }))), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
19813
+ onClick: toggleAccordion
19814
+ }, /*#__PURE__*/React.createElement("div", {
19042
19815
  style: {
19043
- ...styles.cell,
19044
- ...styles.cellLeft
19816
+ display: "flex",
19817
+ justifyContent: "space-between",
19818
+ alignItems: 'center'
19045
19819
  }
19046
- }), _headers.map((header, ind) => {
19047
- if (ind == _headers.length - 1) {
19048
- return /*#__PURE__*/React.createElement("td", {
19049
- style: {
19050
- ...styles.cell,
19051
- ...styles.cellRight,
19052
- textAlign: "left",
19053
- fontWeight: "700",
19054
- whiteSpace: "pre"
19055
- },
19056
- key: ind,
19057
- numeric: true
19058
- }, _arrears);
19059
- } else if (ind == _headers.length - 2) {
19060
- return /*#__PURE__*/React.createElement("td", {
19061
- style: {
19062
- ...styles.cell,
19063
- textAlign: "left"
19064
- },
19065
- key: ind,
19066
- numeric: true
19067
- }, t("COMMON_ARREARS_TOTAL"));
19068
- } else {
19069
- return /*#__PURE__*/React.createElement("td", {
19070
- style: styles.cell,
19071
- key: ind,
19072
- numeric: true
19820
+ }, /*#__PURE__*/React.createElement("h3", {
19821
+ style: {
19822
+ color: '#0d43a7',
19823
+ fontFamily: 'Noto Sans,sans-serif',
19824
+ fontSize: '24px',
19825
+ fontWeight: '500'
19826
+ }
19827
+ }, "Assessment History"), /*#__PURE__*/React.createElement("span", {
19828
+ style: {
19829
+ fontSize: '1.2em'
19830
+ }
19831
+ }, isOpen ? "<" : ">"))), isOpen && /*#__PURE__*/React.createElement("div", {
19832
+ className: "accordion-body",
19833
+ style: {
19834
+ padding: " 15px",
19835
+ backgroundColor: "#fff"
19836
+ }
19837
+ }, assessmentData.length === 0 ? /*#__PURE__*/React.createElement("div", {
19838
+ style: {
19839
+ color: 'red',
19840
+ fontSize: '16px'
19841
+ }
19842
+ }, "No Assessments found") : assessmentData.map((assessment, index) => /*#__PURE__*/React.createElement("div", {
19843
+ key: index,
19844
+ className: "assessment-item",
19845
+ style: {
19846
+ marginBottom: "15px"
19847
+ }
19848
+ }, /*#__PURE__*/React.createElement("div", {
19849
+ className: "assessment-row",
19850
+ style: {
19851
+ display: "flex",
19852
+ gap: "100px",
19853
+ marginBottom: "8px"
19854
+ }
19855
+ }, /*#__PURE__*/React.createElement("span", {
19856
+ style: {
19857
+ fontWeight: "bold",
19858
+ minWidth: '60px',
19859
+ color: 'black'
19860
+ }
19861
+ }, "Assessment Date"), /*#__PURE__*/React.createElement("span", {
19862
+ style: {
19863
+ flex: '1',
19864
+ color: 'black'
19865
+ }
19866
+ }, formatAssessmentDate(assessment.assessmentDate))), /*#__PURE__*/React.createElement("div", {
19867
+ className: "assessment-row",
19868
+ style: {
19869
+ display: "flex",
19870
+ gap: "100px",
19871
+ marginBottom: "8px",
19872
+ color: 'black'
19873
+ }
19874
+ }, /*#__PURE__*/React.createElement("span", {
19875
+ className: "label",
19876
+ style: {
19877
+ fontWeight: "bold",
19878
+ minWidth: '60px',
19879
+ color: 'black'
19880
+ }
19881
+ }, "Assessment Year"), /*#__PURE__*/React.createElement("span", {
19882
+ className: "value",
19883
+ style: {
19884
+ flex: '1',
19885
+ color: 'black'
19886
+ }
19887
+ }, assessment.financialYear)), /*#__PURE__*/React.createElement("div", {
19888
+ className: "assessment-row with-buttons",
19889
+ style: {
19890
+ display: "flex",
19891
+ marginBottom: "8px",
19892
+ justifyContent: "space-between",
19893
+ alignItems: "center"
19894
+ }
19895
+ }, /*#__PURE__*/React.createElement("div", {
19896
+ style: {
19897
+ display: 'flex',
19898
+ gap: '75px'
19899
+ }
19900
+ }, /*#__PURE__*/React.createElement("span", {
19901
+ className: "label",
19902
+ style: {
19903
+ fontWeight: "bold",
19904
+ minWidth: '60px',
19905
+ color: 'black'
19906
+ }
19907
+ }, "Assessment Number"), /*#__PURE__*/React.createElement("span", {
19908
+ className: "value",
19909
+ style: {
19910
+ flex: '1',
19911
+ color: 'black'
19912
+ }
19913
+ }, assessment.assessmentNumber)), /*#__PURE__*/React.createElement("div", {
19914
+ className: "button-group",
19915
+ style: {
19916
+ display: 'flex',
19917
+ gap: '10px'
19918
+ }
19919
+ }, "\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0 ", /*#__PURE__*/React.createElement("button", {
19920
+ style: {
19921
+ display: "flex",
19922
+ borderRadius: '8px',
19923
+ backgroundColor: '#2947a3',
19924
+ padding: '10px',
19925
+ color: 'white'
19926
+ },
19927
+ onClick: () => {
19928
+ history.push({
19929
+ pathname: `/digit-ui/citizen/pt/property/assessment-details/${assessment.assessmentNumber}`,
19930
+ state: {
19931
+ Assessment: {
19932
+ channel: applicationData.channel,
19933
+ financialYear: assessment.financialYear,
19934
+ propertyId: assessment.propertyId,
19935
+ source: applicationData.source
19936
+ },
19937
+ submitLabel: t("PT_REASSESS_PROPERTY_BUTTON"),
19938
+ reAssess: true
19939
+ }
19073
19940
  });
19074
19941
  }
19075
- }))))));
19942
+ }, "Re-assess"), "\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0 ", /*#__PURE__*/React.createElement("button", {
19943
+ style: {
19944
+ display: "flex",
19945
+ borderRadius: '8px',
19946
+ border: '1px solid red',
19947
+ padding: '10px'
19948
+ },
19949
+ onClick: () => alert(`You are not allowed to perform this operation!!}`)
19950
+ }, "Cancel"), "\xA0\xA0\xA0\xA0\xA0\xA0\xA0 ")), index !== assessmentData.length - 1 && /*#__PURE__*/React.createElement("hr", null)))));
19076
19951
  };
19077
19952
 
19078
- const styles$1 = {
19079
- buttonStyle: {
19080
- display: "flex",
19081
- justifyContent: "flex-end",
19082
- color: "#a82227"
19083
- },
19084
- headerStyle: {
19085
- marginTop: "10px",
19086
- fontSize: "16px",
19087
- fontWeight: "700",
19088
- lineHeight: "24px",
19089
- color: " rgba(11, 12, 12, var(--text-opacity))"
19953
+ const ApplicationHistory = ({
19954
+ applicationData
19955
+ }) => {
19956
+ var _applicationData$audi;
19957
+ const [isOpen, setIsOpen] = useState(false);
19958
+ const history = useHistory();
19959
+ const toggleAccordion = () => {
19960
+ setIsOpen(!isOpen);
19961
+ };
19962
+ function formatDate(timestamp) {
19963
+ const date = new Date(timestamp);
19964
+ const options = {
19965
+ day: '2-digit',
19966
+ month: 'short',
19967
+ year: 'numeric'
19968
+ };
19969
+ return date.toLocaleDateString('en-GB', options).replace(/ /g, '-');
19090
19970
  }
19971
+ return /*#__PURE__*/React.createElement("div", {
19972
+ className: "accordion",
19973
+ style: {
19974
+ width: "100%",
19975
+ margin: "auto",
19976
+ fontFamily: "Roboto, sans-serif",
19977
+ border: "1px solid #ccc",
19978
+ borderRadius: "4px",
19979
+ marginBottom: '10px'
19980
+ }
19981
+ }, /*#__PURE__*/React.createElement("div", {
19982
+ className: "accordion-header",
19983
+ style: {
19984
+ backgroundColor: "#f0f0f0",
19985
+ padding: "15px",
19986
+ cursor: "pointer"
19987
+ },
19988
+ onClick: toggleAccordion
19989
+ }, /*#__PURE__*/React.createElement("div", {
19990
+ style: {
19991
+ display: "flex",
19992
+ justifyContent: "space-between",
19993
+ alignItems: 'center'
19994
+ }
19995
+ }, /*#__PURE__*/React.createElement("h3", {
19996
+ style: {
19997
+ color: '#0d43a7',
19998
+ fontFamily: 'Noto Sans,sans-serif',
19999
+ fontSize: '24px',
20000
+ fontWeight: '500'
20001
+ }
20002
+ }, "Application History"), /*#__PURE__*/React.createElement("span", {
20003
+ style: {
20004
+ fontSize: '1.2em'
20005
+ }
20006
+ }, isOpen ? "<" : ">"))), isOpen && /*#__PURE__*/React.createElement("div", {
20007
+ className: "accordion-body",
20008
+ style: {
20009
+ padding: " 15px",
20010
+ backgroundColor: "#fff"
20011
+ }
20012
+ }, /*#__PURE__*/React.createElement("div", {
20013
+ className: "assessment-item",
20014
+ style: {
20015
+ marginBottom: "15px"
20016
+ }
20017
+ }, /*#__PURE__*/React.createElement("div", {
20018
+ className: "assessment-row",
20019
+ style: {
20020
+ display: "flex",
20021
+ gap: "100px",
20022
+ marginBottom: "8px"
20023
+ }
20024
+ }, /*#__PURE__*/React.createElement("span", {
20025
+ style: {
20026
+ fontWeight: "bold",
20027
+ minWidth: '60px',
20028
+ color: 'black'
20029
+ }
20030
+ }, "Application Number"), /*#__PURE__*/React.createElement("span", {
20031
+ style: {
20032
+ flex: '1',
20033
+ color: 'black'
20034
+ }
20035
+ }, applicationData.acknowldgementNumber)), /*#__PURE__*/React.createElement("div", {
20036
+ className: "assessment-row",
20037
+ style: {
20038
+ display: "flex",
20039
+ gap: "132px",
20040
+ marginBottom: "8px",
20041
+ color: 'black'
20042
+ }
20043
+ }, /*#__PURE__*/React.createElement("span", {
20044
+ className: "label",
20045
+ style: {
20046
+ fontWeight: "bold",
20047
+ minWidth: '60px',
20048
+ color: 'black'
20049
+ }
20050
+ }, "Property ID No."), /*#__PURE__*/React.createElement("span", {
20051
+ className: "value",
20052
+ style: {
20053
+ flex: '1',
20054
+ color: 'black'
20055
+ }
20056
+ }, applicationData.propertyId)), /*#__PURE__*/React.createElement("div", {
20057
+ className: "assessment-row",
20058
+ style: {
20059
+ display: "flex",
20060
+ gap: "120px",
20061
+ marginBottom: "8px",
20062
+ color: 'black'
20063
+ }
20064
+ }, /*#__PURE__*/React.createElement("span", {
20065
+ className: "label",
20066
+ style: {
20067
+ fontWeight: "bold",
20068
+ minWidth: '60px',
20069
+ color: 'black'
20070
+ }
20071
+ }, "Application Type"), /*#__PURE__*/React.createElement("span", {
20072
+ className: "value",
20073
+ style: {
20074
+ flex: '1',
20075
+ color: 'black'
20076
+ }
20077
+ }, "NEW PROPERTY")), /*#__PURE__*/React.createElement("div", {
20078
+ className: "assessment-row",
20079
+ style: {
20080
+ display: "flex",
20081
+ gap: "140px",
20082
+ marginBottom: "8px",
20083
+ color: 'black'
20084
+ }
20085
+ }, /*#__PURE__*/React.createElement("span", {
20086
+ className: "label",
20087
+ style: {
20088
+ fontWeight: "bold",
20089
+ minWidth: '60px',
20090
+ color: 'black'
20091
+ }
20092
+ }, "Creation Date"), /*#__PURE__*/React.createElement("span", {
20093
+ className: "value",
20094
+ style: {
20095
+ flex: '1',
20096
+ color: 'black'
20097
+ }
20098
+ }, formatDate((_applicationData$audi = applicationData.auditDetails) === null || _applicationData$audi === void 0 ? void 0 : _applicationData$audi.createdTime))), /*#__PURE__*/React.createElement("div", {
20099
+ className: "assessment-row",
20100
+ style: {
20101
+ display: "flex",
20102
+ gap: "180px",
20103
+ marginBottom: "8px",
20104
+ color: 'black'
20105
+ }
20106
+ }, /*#__PURE__*/React.createElement("span", {
20107
+ className: "label",
20108
+ style: {
20109
+ fontWeight: "bold",
20110
+ minWidth: '60px',
20111
+ color: 'black'
20112
+ }
20113
+ }, "Status"), /*#__PURE__*/React.createElement("span", {
20114
+ className: "value",
20115
+ style: {
20116
+ flex: '1',
20117
+ color: 'black'
20118
+ }
20119
+ }, applicationData.status)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Link, {
20120
+ to: {
20121
+ pathname: `/digit-ui/citizen/pt/property/application-preview/${applicationData.acknowldgementNumber}`,
20122
+ state: {
20123
+ propertyId: applicationData.propertyId
20124
+ }
20125
+ },
20126
+ style: {
20127
+ color: '#2947a3',
20128
+ display: 'inline',
20129
+ border: '1px solid',
20130
+ padding: '8px',
20131
+ borderRadius: '8px'
20132
+ }
20133
+ }, "View History")))));
19091
20134
  };
19092
- const ArrearSummary = ({
19093
- bill: _bill = {}
20135
+
20136
+ const PaymentHistory = ({
20137
+ payments
19094
20138
  }) => {
19095
- var _bill$billDetails, _sortedBillDetails, _arrears$toFixed;
19096
- const {
19097
- t
19098
- } = useTranslation();
19099
- const formatTaxHeaders = (billDetail = {}) => {
19100
- let formattedFees = {};
19101
- const {
19102
- billAccountDetails = []
19103
- } = billDetail;
19104
- billAccountDetails.map(taxHead => {
19105
- formattedFees[taxHead.taxHeadCode] = {
19106
- value: taxHead.amount,
19107
- order: taxHead.order
19108
- };
19109
- });
19110
- formattedFees["CS_BILL_NO"] = {
19111
- value: (billDetail === null || billDetail === void 0 ? void 0 : billDetail.billNumber) || "NA",
19112
- order: -2
19113
- };
19114
- formattedFees["CS_BILL_DUEDATE"] = {
19115
- value: (billDetail === null || billDetail === void 0 ? void 0 : billDetail.expiryDate) && new Date(billDetail === null || billDetail === void 0 ? void 0 : billDetail.expiryDate).toLocaleDateString() || "NA",
19116
- order: -1
19117
- };
19118
- formattedFees["TL_COMMON_TOTAL_AMT"] = {
19119
- value: billDetail.amount,
19120
- order: 10
19121
- };
19122
- return formattedFees;
20139
+ const [isOpen, setIsOpen] = useState(false);
20140
+ const toggleAccordion = () => {
20141
+ setIsOpen(!isOpen);
19123
20142
  };
19124
- const getFinancialYears = (from, to) => {
19125
- const fromDate = new Date(from);
19126
- const toDate = new Date(to);
19127
- if (toDate.getYear() - fromDate.getYear() != 0) {
19128
- return `FY${fromDate.getYear() + 1900}-${toDate.getYear() - 100}`;
20143
+ return /*#__PURE__*/React.createElement("div", {
20144
+ className: "accordion",
20145
+ style: {
20146
+ width: "100%",
20147
+ margin: "auto",
20148
+ fontFamily: "Roboto, sans-serif",
20149
+ border: "1px solid #ccc",
20150
+ borderRadius: "4px",
20151
+ marginBottom: '10px'
19129
20152
  }
19130
- return `${fromDate.toLocaleDateString()}-${toDate.toLocaleDateString()}`;
19131
- };
19132
- let fees = {};
19133
- let sortedBillDetails = (_bill === null || _bill === void 0 ? void 0 : (_bill$billDetails = _bill.billDetails) === null || _bill$billDetails === void 0 ? void 0 : _bill$billDetails.sort((a, b) => b.fromPeriod - a.fromPeriod)) || [];
19134
- sortedBillDetails = [...sortedBillDetails];
19135
- const arrears = ((_sortedBillDetails = sortedBillDetails) === null || _sortedBillDetails === void 0 ? void 0 : _sortedBillDetails.reduce((total, current, index) => total + current.amount, 0)) || 0;
19136
- 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)}`;
19137
- sortedBillDetails.map(bill => {
19138
- let fee = formatTaxHeaders(bill);
19139
- fees[getFinancialYears(bill.fromPeriod, bill.toPeriod)] = fee;
19140
- });
19141
- let head = {};
19142
- fees ? Object.keys(fees).map((key, ind) => {
19143
- Object.keys(fees[key]).map(key1 => {
19144
- head[key1] = fees[key] && fees[key][key1] && fees[key][key1].order || 0;
19145
- });
19146
- }) : "NA";
19147
- let keys = [];
19148
- keys = Object.keys(head);
19149
- keys.sort((x, y) => head[x] - head[y]);
19150
- const [showArrear, setShowArrear] = useState(false);
19151
- if (arrears == 0 || arrears < 0) {
19152
- return /*#__PURE__*/React.createElement("span", null);
19153
- }
19154
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
19155
- style: styles$1.headerStyle
19156
- }, t("CS_ARREARS_DETAILS")), showArrear && /*#__PURE__*/React.createElement(ArrearTable, {
19157
- headers: [...keys],
19158
- values: fees,
19159
- arrears: arrearsAmount
19160
- }), !showArrear && /*#__PURE__*/React.createElement("div", {
19161
- style: styles$1.buttonStyle
19162
- }, /*#__PURE__*/React.createElement("button", {
19163
- type: "button",
19164
- onClick: () => {
19165
- setShowArrear(true);
20153
+ }, /*#__PURE__*/React.createElement("div", {
20154
+ className: "accordion-header",
20155
+ style: {
20156
+ backgroundColor: "#f0f0f0",
20157
+ padding: "15px",
20158
+ cursor: "pointer"
20159
+ },
20160
+ onClick: toggleAccordion
20161
+ }, /*#__PURE__*/React.createElement("div", {
20162
+ style: {
20163
+ display: "flex",
20164
+ justifyContent: "space-between",
20165
+ alignItems: 'center'
19166
20166
  }
19167
- }, t("CS_SHOW_CARD"))), showArrear && /*#__PURE__*/React.createElement("div", {
19168
- style: styles$1.buttonStyle
19169
- }, /*#__PURE__*/React.createElement("button", {
19170
- type: "button",
19171
- onClick: () => {
19172
- setShowArrear(false);
20167
+ }, /*#__PURE__*/React.createElement("h3", {
20168
+ style: {
20169
+ color: '#0d43a7',
20170
+ fontFamily: 'Noto Sans,sans-serif',
20171
+ fontSize: '24px',
20172
+ fontWeight: '500'
20173
+ }
20174
+ }, "Payment History"), /*#__PURE__*/React.createElement("span", {
20175
+ style: {
20176
+ fontSize: '1.2em'
20177
+ }
20178
+ }, isOpen ? "<" : ">"))), isOpen && /*#__PURE__*/React.createElement("div", {
20179
+ className: "accordion-body",
20180
+ style: {
20181
+ padding: " 15px",
20182
+ backgroundColor: "#fff"
19173
20183
  }
19174
- }, t("CS_HIDE_CARD"))));
20184
+ }, (payments === null || payments === void 0 ? void 0 : payments.length) === 0 && /*#__PURE__*/React.createElement("div", {
20185
+ style: {
20186
+ color: 'red',
20187
+ fontSize: '16px'
20188
+ }
20189
+ }, "No Payemnts found")));
19175
20190
  };
19176
20191
 
19177
20192
  function ApplicationDetailsContent({
@@ -19188,19 +20203,77 @@ function ApplicationDetailsContent({
19188
20203
  statusAttribute = "status",
19189
20204
  paymentsList,
19190
20205
  oldValue,
19191
- isInfoLabel = false
20206
+ isInfoLabel = false,
20207
+ propertyId,
20208
+ setIsCheck,
20209
+ isCheck
19192
20210
  }) {
19193
- 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;
20211
+ 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;
19194
20212
  const {
19195
20213
  t
19196
20214
  } = useTranslation();
20215
+ const history = useHistory();
20216
+ const tenantId = Digit.ULBService.getCurrentTenantId();
20217
+ const [showToast, setShowToast] = useState(null);
20218
+ const [payments, setPayments] = useState([]);
20219
+ const [showAccess, setShowAccess] = useState(false);
20220
+ const [selectedYear, setSelectedYear] = useState();
19197
20221
  let isEditApplication = window.location.href.includes("editApplication") && window.location.href.includes("bpa");
19198
20222
  console.log("appl", applicationDetails);
20223
+ let {
20224
+ data: FinancialYearData
20225
+ } = Digit.Hooks.useCustomMDMS(Digit.ULBService.getStateId(), "egf-master", [{
20226
+ name: "FinancialYear"
20227
+ }], {
20228
+ select: data => {
20229
+ var _data$egfMaster;
20230
+ const formattedData = data === null || data === void 0 ? void 0 : (_data$egfMaster = data["egf-master"]) === null || _data$egfMaster === void 0 ? void 0 : _data$egfMaster["FinancialYear"];
20231
+ return formattedData;
20232
+ }
20233
+ });
20234
+ if (((_FinancialYearData = FinancialYearData) === null || _FinancialYearData === void 0 ? void 0 : _FinancialYearData.length) > 0) {
20235
+ FinancialYearData = FinancialYearData.filter((record, index, self) => index === self.findIndex(r => r.code === record.code));
20236
+ FinancialYearData = FinancialYearData.sort((a, b) => b.endingDate - a.endingDate);
20237
+ }
20238
+ console.log("financial year", FinancialYearData);
20239
+ const setModal = () => {
20240
+ console.log("in Apply");
20241
+ };
20242
+ const closeModalTwo = () => {
20243
+ setShowAccess(false);
20244
+ };
20245
+ const Heading = props => {
20246
+ return /*#__PURE__*/React.createElement("h1", {
20247
+ className: "heading-m"
20248
+ }, props.label);
20249
+ };
20250
+ const Close = () => /*#__PURE__*/React.createElement("svg", {
20251
+ xmlns: "http://www.w3.org/2000/svg",
20252
+ viewBox: "0 0 24 24",
20253
+ fill: "#FFFFFF"
20254
+ }, /*#__PURE__*/React.createElement("path", {
20255
+ d: "M0 0h24v24H0V0z",
20256
+ fill: "none"
20257
+ }), /*#__PURE__*/React.createElement("path", {
20258
+ 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"
20259
+ }));
20260
+ const CloseBtn = props => {
20261
+ return /*#__PURE__*/React.createElement("div", {
20262
+ className: "icon-bg-secondary",
20263
+ onClick: props.onClick
20264
+ }, /*#__PURE__*/React.createElement(Close, null));
20265
+ };
20266
+ const closeModal = e => {
20267
+ console.log("in Print");
20268
+ setShowAccess(false);
20269
+ };
19199
20270
  function OpenImage(imageSource, index, thumbnailsToShow) {
19200
20271
  var _thumbnailsToShow$ful;
19201
20272
  window.open(thumbnailsToShow === null || thumbnailsToShow === void 0 ? void 0 : (_thumbnailsToShow$ful = thumbnailsToShow.fullImage) === null || _thumbnailsToShow$ful === void 0 ? void 0 : _thumbnailsToShow$ful[0], "_blank");
19202
20273
  }
19203
20274
  const [fetchBillData, updatefetchBillData] = useState({});
20275
+ const [assessmentDetails, setAssessmentDetails] = useState();
20276
+ const [filtered, setFiltered] = useState([]);
19204
20277
  const setBillData = async (tenantId, propertyIds, updatefetchBillData, updateCanFetchBillData) => {
19205
20278
  var _assessmentData$Asses;
19206
20279
  const assessmentData = await Digit.PTService.assessmentSearch({
@@ -19210,12 +20283,34 @@ function ApplicationDetailsContent({
19210
20283
  }
19211
20284
  });
19212
20285
  let billData = {};
20286
+ console.log("assessment data", assessmentData);
19213
20287
  if ((assessmentData === null || assessmentData === void 0 ? void 0 : (_assessmentData$Asses = assessmentData.Assessments) === null || _assessmentData$Asses === void 0 ? void 0 : _assessmentData$Asses.length) > 0) {
20288
+ const activeRecords = assessmentData.Assessments.filter(a => a.status === 'ACTIVE');
20289
+ function normalizeDate(timestamp) {
20290
+ const date = new Date(timestamp);
20291
+ date.setHours(0, 0, 0, 0);
20292
+ return date.getTime();
20293
+ }
20294
+ const latestMap = new Map();
20295
+ activeRecords.forEach(record => {
20296
+ const normalizedDate = normalizeDate(record.assessmentDate);
20297
+ const key = `${normalizedDate}_${record.financialYear}`;
20298
+ const existing = latestMap.get(key);
20299
+ if (!existing || record.createdDate > existing.createdDate) {
20300
+ latestMap.set(key, record);
20301
+ }
20302
+ });
20303
+ console.log("grouped", latestMap);
20304
+ const filteredAssessment = Array.from(latestMap.values());
20305
+ setFiltered(filteredAssessment);
20306
+ console.log(filteredAssessment);
20307
+ setAssessmentDetails(assessmentData === null || assessmentData === void 0 ? void 0 : assessmentData.Assessments);
19214
20308
  billData = await Digit.PaymentService.fetchBill(tenantId, {
19215
20309
  businessService: "PT",
19216
20310
  consumerCode: propertyIds
19217
20311
  });
19218
20312
  }
20313
+ console.log("bill Data", billData);
19219
20314
  updatefetchBillData(billData);
19220
20315
  updateCanFetchBillData({
19221
20316
  loading: false,
@@ -19223,11 +20318,13 @@ function ApplicationDetailsContent({
19223
20318
  canLoad: true
19224
20319
  });
19225
20320
  };
20321
+ console.log("fetch bill data", fetchBillData);
19226
20322
  const [billData, updateCanFetchBillData] = useState({
19227
20323
  loading: false,
19228
20324
  loaded: false,
19229
20325
  canLoad: false
19230
20326
  });
20327
+ console.log("filtered", filtered);
19231
20328
  if ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.status) == "ACTIVE" && !billData.loading && !billData.loaded && !billData.canLoad) {
19232
20329
  updateCanFetchBillData({
19233
20330
  loading: false,
@@ -19361,23 +20458,6 @@ function ApplicationDetailsContent({
19361
20458
  return {};
19362
20459
  }
19363
20460
  };
19364
- const tableStyles = {
19365
- table: {
19366
- border: '2px solid black',
19367
- width: '100%',
19368
- fontFamily: 'sans-serif'
19369
- },
19370
- td: {
19371
- padding: "10px",
19372
- border: '1px solid black',
19373
- textAlign: 'center'
19374
- },
19375
- th: {
19376
- padding: "10px",
19377
- border: '1px solid black',
19378
- textAlign: 'center'
19379
- }
19380
- };
19381
20461
  const getMainDivStyles = () => {
19382
20462
  if (window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc") || window.location.href.includes("employee/ws")) {
19383
20463
  return {
@@ -19425,6 +20505,94 @@ function ApplicationDetailsContent({
19425
20505
  const totalBalanceTax = demandData === null || demandData === void 0 ? void 0 : demandData.reduce((sum, item) => sum + item.balanceTax, 0);
19426
20506
  const totalBalanceInterest = demandData === null || demandData === void 0 ? void 0 : demandData.reduce((sum, item) => sum + item.balanceInterest, 0);
19427
20507
  const totalBalancePenality = demandData === null || demandData === void 0 ? void 0 : demandData.reduce((sum, item) => sum + item.balancePenality, 0);
20508
+ const closeToast = () => {
20509
+ setShowToast(null);
20510
+ };
20511
+ const updatePropertyStatus = async (propertyData, status, propertyIds) => {
20512
+ const confirm = window.confirm(`Are you sure you want to make this property ${status}?`);
20513
+ if (!confirm) return;
20514
+ const payload = {
20515
+ ...propertyData,
20516
+ status: status,
20517
+ isactive: status === "ACTIVE",
20518
+ isinactive: status === "INACTIVE",
20519
+ creationReason: "STATUS",
20520
+ additionalDetails: {
20521
+ ...propertyData.additionalDetails,
20522
+ propertytobestatus: status
20523
+ },
20524
+ workflow: {
20525
+ ...propertyData.workflow,
20526
+ businessService: "PT.CREATE",
20527
+ action: "OPEN",
20528
+ moduleName: "PT"
20529
+ }
20530
+ };
20531
+ const response = await Digit.PTService.updatePT({
20532
+ Property: {
20533
+ ...payload
20534
+ }
20535
+ }, tenantId, propertyIds);
20536
+ console.log("response from inactive/active", response);
20537
+ };
20538
+ const applicationData_pt = applicationDetails.applicationData;
20539
+ const propertyIds = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationData) === null || _applicationDetails$a2 === void 0 ? void 0 : _applicationDetails$a2.propertyId) || "";
20540
+ const checkPropertyStatus = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a3 = applicationDetails.additionalDetails) === null || _applicationDetails$a3 === void 0 ? void 0 : _applicationDetails$a3.propertytobestatus;
20541
+ const PropertyInActive = () => {
20542
+ if (window.location.href.includes("/citizen")) {
20543
+ alert("Action to Inactivate property is not allowed for citizen");
20544
+ } else {
20545
+ if (checkPropertyStatus == "ACTIVE") {
20546
+ updatePropertyStatus(applicationData_pt, "INACTIVE", propertyIds);
20547
+ } else {
20548
+ alert("Property is already inactive.");
20549
+ }
20550
+ }
20551
+ };
20552
+ const PropertyActive = () => {
20553
+ if (window.location.href.includes("/citizen")) {
20554
+ alert("Action to activate property is not allowed for citizen");
20555
+ } else {
20556
+ if (checkPropertyStatus == "INACTIVE") {
20557
+ updatePropertyStatus(applicationData_pt, "ACTIVE", propertyIds);
20558
+ } else {
20559
+ alert("Property is already active.");
20560
+ }
20561
+ }
20562
+ };
20563
+ const EditProperty = () => {
20564
+ var _applicationDetails$a4;
20565
+ const pID = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a4 = applicationDetails.applicationData) === null || _applicationDetails$a4 === void 0 ? void 0 : _applicationDetails$a4.propertyId;
20566
+ if (pID) {
20567
+ history.push({
20568
+ pathname: `/digit-ui/employee/pt/edit-application/${pID}`
20569
+ });
20570
+ }
20571
+ };
20572
+ const AccessProperty = () => {
20573
+ setShowAccess(true);
20574
+ };
20575
+ console.log("applicationDetails?.applicationDetails", applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationDetails);
20576
+ console.log("infolabel", isInfoLabel);
20577
+ console.log("assessment details", assessmentDetails);
20578
+ useEffect(() => {
20579
+ try {
20580
+ let filters = {
20581
+ consumerCodes: propertyId
20582
+ };
20583
+ const auth = true;
20584
+ Digit.PTService.paymentsearch({
20585
+ tenantId: tenantId,
20586
+ filters: filters,
20587
+ auth: auth
20588
+ }).then(response => {
20589
+ setPayments(response === null || response === void 0 ? void 0 : response.Payments);
20590
+ console.log(response);
20591
+ });
20592
+ } catch (error) {
20593
+ console.log(error);
20594
+ }
20595
+ }, []);
19428
20596
  return /*#__PURE__*/React.createElement(Card, {
19429
20597
  style: {
19430
20598
  position: "relative"
@@ -19437,8 +20605,8 @@ function ApplicationDetailsContent({
19437
20605
  infoClickLable: "WS_CLICK_ON_LABEL",
19438
20606
  infoClickInfoLabel: getClickInfoDetails(),
19439
20607
  infoClickInfoLabel1: getClickInfoDetails1()
19440
- }) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationDetails) === null || _applicationDetails$a2 === void 0 ? void 0 : _applicationDetails$a2.map((detail, index) => {
19441
- var _detail$values, _detail$additionalDet, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _applicationDetails$a6, _detail$additionalDet2, _applicationDetails$a7, _applicationDetails$a8, _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;
20608
+ }) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a5 = applicationDetails.applicationDetails) === null || _applicationDetails$a5 === void 0 ? void 0 : _applicationDetails$a5.map((detail, index) => {
20609
+ 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;
19442
20610
  return /*#__PURE__*/React.createElement(React.Fragment, {
19443
20611
  key: index
19444
20612
  }, /*#__PURE__*/React.createElement("div", {
@@ -19495,7 +20663,7 @@ function ApplicationDetailsContent({
19495
20663
  })), /*#__PURE__*/React.createElement(StatusTable, {
19496
20664
  style: getTableStyles()
19497
20665
  }, (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) => {
19498
- var _detail$values3, _fetchBillData$Bill;
20666
+ var _detail$values3;
19499
20667
  if (value.map === true && value.value !== "N/A") {
19500
20668
  return /*#__PURE__*/React.createElement(Row, {
19501
20669
  labelStyle: {
@@ -19505,7 +20673,7 @@ function ApplicationDetailsContent({
19505
20673
  wordBreak: "break-all"
19506
20674
  },
19507
20675
  key: t(value.title),
19508
- label: t(value.title),
20676
+ 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)",
19509
20677
  text: /*#__PURE__*/React.createElement("img", {
19510
20678
  src: t(value.value),
19511
20679
  alt: "",
@@ -19576,16 +20744,14 @@ function ApplicationDetailsContent({
19576
20744
  textStyle: {
19577
20745
  wordBreak: "break-all"
19578
20746
  }
19579
- }), value.title === "PT_TOTAL_DUES" ? /*#__PURE__*/React.createElement(ArrearSummary, {
19580
- bill: (_fetchBillData$Bill = fetchBillData.Bill) === null || _fetchBillData$Bill === void 0 ? void 0 : _fetchBillData$Bill[0]
19581
- }) : "");
20747
+ }));
19582
20748
  })))), (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, {
19583
20749
  scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
19584
20750
  paymentsList: paymentsList,
19585
- additionalDetails: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a3 = applicationDetails.applicationData) === null || _applicationDetails$a3 === void 0 ? void 0 : _applicationDetails$a3.additionalDetails,
20751
+ additionalDetails: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a6 = applicationDetails.applicationData) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.additionalDetails,
19586
20752
  applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
19587
- }), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a4 = applicationDetails.applicationData) === null || _applicationDetails$a4 === void 0 ? void 0 : (_applicationDetails$a5 = _applicationDetails$a4.additionalDetails) === null || _applicationDetails$a5 === void 0 ? void 0 : (_applicationDetails$a6 = _applicationDetails$a5.fieldinspection_pending) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.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, {
19588
- fiReport: 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$a8.fieldinspection_pending
20753
+ }), (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, {
20754
+ 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
19589
20755
  }), (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, {
19590
20756
  floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
19591
20757
  }), (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, {
@@ -19624,14 +20790,12 @@ function ApplicationDetailsContent({
19624
20790
  applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
19625
20791
  }), (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, {
19626
20792
  documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documentsWithUrl
19627
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && /*#__PURE__*/React.createElement(PropertyDocuments, {
19628
- documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents
19629
- }), (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, {
19630
- taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
20793
+ }), (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, {
20794
+ taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.taxHeadEstimatesCalculation
19631
20795
  }), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
19632
20796
  wsAdditionalDetails: detail,
19633
20797
  oldValue: oldValue
19634
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React.createElement("div", {
20798
+ }), (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", {
19635
20799
  style: {
19636
20800
  fontSize: "16px",
19637
20801
  lineHeight: "24px",
@@ -19639,19 +20803,42 @@ function ApplicationDetailsContent({
19639
20803
  padding: "10px 0px"
19640
20804
  }
19641
20805
  }, /*#__PURE__*/React.createElement(Link, {
19642
- to: 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.url
20806
+ 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
19643
20807
  }, /*#__PURE__*/React.createElement("span", {
19644
20808
  className: "link",
19645
20809
  style: {
19646
20810
  color: "#a82227"
19647
20811
  }
19648
- }, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet26 = detail.additionalDetails) === null || _detail$additionalDet26 === void 0 ? void 0 : (_detail$additionalDet27 = _detail$additionalDet26.redirectUrl) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.title))), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet28 = detail.additionalDetails) === null || _detail$additionalDet28 === void 0 ? void 0 : _detail$additionalDet28.estimationDetails) && /*#__PURE__*/React.createElement(WSFeeEstimation, {
20812
+ }, 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, {
19649
20813
  wsAdditionalDetails: detail,
19650
20814
  workflowDetails: workflowDetails
19651
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet29 = detail.additionalDetails) === null || _detail$additionalDet29 === void 0 ? void 0 : _detail$additionalDet29.estimationDetails) && /*#__PURE__*/React.createElement(ViewBreakup, {
20815
+ }), (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, {
19652
20816
  wsAdditionalDetails: detail,
19653
20817
  workflowDetails: workflowDetails
19654
- }));
20818
+ }), 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, {
20819
+ documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet29 = detail.additionalDetails) === null || _detail$additionalDet29 === void 0 ? void 0 : _detail$additionalDet29.assessmentDocuments
20820
+ }), 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", {
20821
+ style: {
20822
+ display: 'flex',
20823
+ alignItems: 'center',
20824
+ gap: '8px'
20825
+ }
20826
+ }, /*#__PURE__*/React.createElement(CheckBox, {
20827
+ onChange: e => {
20828
+ setIsCheck(e.target.checked);
20829
+ }
20830
+ }), /*#__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", {
20831
+ style: {
20832
+ color: 'red'
20833
+ }
20834
+ }, t("PT_CHECK_DECLARATION_BOX"))));
20835
+ }), !window.location.href.includes("/assessment-details") && /*#__PURE__*/React.createElement(AssessmentHistory, {
20836
+ assessmentData: filtered,
20837
+ applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
20838
+ }), !window.location.href.includes("/assessment-details") && /*#__PURE__*/React.createElement(PaymentHistory, {
20839
+ payments: payments
20840
+ }), !window.location.href.includes("/assessment-details") && /*#__PURE__*/React.createElement(ApplicationHistory, {
20841
+ applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
19655
20842
  }), 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", {
19656
20843
  id: "timeline"
19657
20844
  }, /*#__PURE__*/React.createElement(CardSectionHeader, {
@@ -19682,135 +20869,68 @@ function ApplicationDetailsContent({
19682
20869
  }))), (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, {
19683
20870
  label: showAllTimeline ? t("COLLAPSE") : t("VIEW_TIMELINE"),
19684
20871
  onClick: toggleTimeline
19685
- })))), /*#__PURE__*/React.createElement(CardSectionHeader, {
20872
+ })))), /*#__PURE__*/React.createElement(ActionBar, {
20873
+ className: "clear-search-container",
20874
+ style: {
20875
+ display: "block"
20876
+ }
20877
+ }, /*#__PURE__*/React.createElement(SubmitBar, {
20878
+ label: "Make Property Active",
20879
+ style: {
20880
+ flex: 1
20881
+ },
20882
+ onSubmit: PropertyActive
20883
+ }), /*#__PURE__*/React.createElement(SubmitBar, {
20884
+ label: "Make Property Inactive",
20885
+ style: {
20886
+ marginLeft: "20px"
20887
+ },
20888
+ onSubmit: PropertyInActive
20889
+ }), /*#__PURE__*/React.createElement(SubmitBar, {
20890
+ label: "Edit Property",
20891
+ style: {
20892
+ marginLeft: "20px"
20893
+ },
20894
+ onSubmit: EditProperty
20895
+ }), /*#__PURE__*/React.createElement(SubmitBar, {
20896
+ label: "Access Property",
20897
+ style: {
20898
+ marginLeft: "20px"
20899
+ },
20900
+ onSubmit: AccessProperty
20901
+ })), showToast && /*#__PURE__*/React.createElement(Toast, {
20902
+ error: showToast.isError,
20903
+ label: t(showToast.label),
20904
+ onClose: closeToast,
20905
+ isDleteBtn: "false"
20906
+ }), showAccess && /*#__PURE__*/React.createElement(Modal, {
20907
+ headerBarMain: /*#__PURE__*/React.createElement(Heading, {
20908
+ label: t("PT_FINANCIAL_YEAR_PLACEHOLDER")
20909
+ }),
20910
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn, {
20911
+ onClick: closeModalTwo
20912
+ }),
20913
+ actionCancelLabel: "Cancel",
20914
+ actionCancelOnSubmit: closeModal,
20915
+ actionSaveLabel: "Access",
20916
+ actionSaveOnSubmit: setModal,
20917
+ formId: "modal-action",
20918
+ popupStyles: {
20919
+ width: '60%',
20920
+ marginTop: '5px'
20921
+ }
20922
+ }, /*#__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", {
20923
+ key: index,
19686
20924
  style: {
19687
- marginBottom: '16px',
19688
- marginTop: "16px",
19689
- fontSize: '24px'
19690
- }
19691
- }, "DCB Details"), /*#__PURE__*/React.createElement("table", {
19692
- border: "1px",
19693
- style: tableStyles.table
19694
- }, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
19695
- style: tableStyles.th
19696
- }, "Installments"), /*#__PURE__*/React.createElement("th", {
19697
- colSpan: "3",
19698
- style: tableStyles.th
19699
- }, "Demand"), /*#__PURE__*/React.createElement("th", {
19700
- colSpan: "3",
19701
- style: tableStyles.th
19702
- }, "Collection"), /*#__PURE__*/React.createElement("th", {
19703
- colSpan: "3",
19704
- style: tableStyles.th
19705
- }, "Balance"), /*#__PURE__*/React.createElement("th", {
19706
- style: tableStyles.th
19707
- }, "Advance")), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
19708
- style: tableStyles.th
19709
- }), /*#__PURE__*/React.createElement("th", {
19710
- style: tableStyles.th
19711
- }, "Tax"), /*#__PURE__*/React.createElement("th", {
19712
- style: tableStyles.th
19713
- }, "Interest"), /*#__PURE__*/React.createElement("th", {
19714
- style: tableStyles.th
19715
- }, "Penalty"), /*#__PURE__*/React.createElement("th", {
19716
- style: tableStyles.th
19717
- }, "Tax"), /*#__PURE__*/React.createElement("th", {
19718
- style: tableStyles.th
19719
- }, "Interest"), /*#__PURE__*/React.createElement("th", {
19720
- style: tableStyles.th
19721
- }, "Penalty"), /*#__PURE__*/React.createElement("th", {
19722
- style: tableStyles.th
19723
- }, "Tax"), /*#__PURE__*/React.createElement("th", {
19724
- style: tableStyles.th
19725
- }, "Interest"), /*#__PURE__*/React.createElement("th", {
19726
- style: tableStyles.th
19727
- }, "Penalty"), /*#__PURE__*/React.createElement("th", {
19728
- style: tableStyles.th
19729
- }, "Advance"))), /*#__PURE__*/React.createElement("tbody", null, demandData === null || demandData === void 0 ? void 0 : demandData.map(item => {
19730
- return /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
19731
- style: tableStyles.td
19732
- }, item.taxPeriodFrom, "-", item.taxPeriodTo), /*#__PURE__*/React.createElement("td", {
19733
- style: tableStyles.td
19734
- }, item.demandTax), /*#__PURE__*/React.createElement("td", {
19735
- style: tableStyles.td
19736
- }, item.demandInterest), /*#__PURE__*/React.createElement("td", {
19737
- style: tableStyles.td
19738
- }, item.demandPenality), /*#__PURE__*/React.createElement("td", {
19739
- style: tableStyles.td
19740
- }, item.collectionTax), /*#__PURE__*/React.createElement("td", {
19741
- style: tableStyles.td
19742
- }, item.collectionInterest), /*#__PURE__*/React.createElement("td", {
19743
- style: tableStyles.td
19744
- }, item.collectionPenality), /*#__PURE__*/React.createElement("td", {
19745
- style: tableStyles.td
19746
- }, item.balanceTax), /*#__PURE__*/React.createElement("td", {
19747
- style: tableStyles.td
19748
- }, item.balanceInterest), /*#__PURE__*/React.createElement("td", {
19749
- style: tableStyles.td
19750
- }, item.balancePenality), /*#__PURE__*/React.createElement("td", {
19751
- style: tableStyles.td
19752
- }, item.advance));
19753
- }), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
19754
- style: tableStyles.th
19755
- }, "Total"), /*#__PURE__*/React.createElement("td", {
19756
- style: tableStyles.td
19757
- }, totalDemandTax), /*#__PURE__*/React.createElement("td", {
19758
- style: tableStyles.td
19759
- }, totalDemandInterest), /*#__PURE__*/React.createElement("td", {
19760
- style: tableStyles.td
19761
- }, totalDemandPenality), /*#__PURE__*/React.createElement("td", {
19762
- style: tableStyles.td
19763
- }, totalCollectionTax), /*#__PURE__*/React.createElement("td", {
19764
- style: tableStyles.td
19765
- }, totalCollectionInterest), /*#__PURE__*/React.createElement("td", {
19766
- style: tableStyles.td
19767
- }, totalCollectionPenality), /*#__PURE__*/React.createElement("td", {
19768
- style: tableStyles.td
19769
- }), /*#__PURE__*/React.createElement("td", {
19770
- style: tableStyles.td
19771
- }), /*#__PURE__*/React.createElement("td", {
19772
- style: tableStyles.td
19773
- }), /*#__PURE__*/React.createElement("td", {
19774
- style: tableStyles.td
19775
- })), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
19776
- style: tableStyles.td
19777
- }), /*#__PURE__*/React.createElement("td", {
19778
- style: tableStyles.td
19779
- }), /*#__PURE__*/React.createElement("td", {
19780
- style: tableStyles.td
19781
- }), /*#__PURE__*/React.createElement("td", {
19782
- style: tableStyles.td
19783
- }), /*#__PURE__*/React.createElement("td", {
19784
- style: tableStyles.td
19785
- }), /*#__PURE__*/React.createElement("td", {
19786
- style: tableStyles.td
19787
- }), /*#__PURE__*/React.createElement("th", {
19788
- style: tableStyles.th
19789
- }, "Total"), /*#__PURE__*/React.createElement("td", {
19790
- style: tableStyles.td
19791
- }, totalBalanceTax), /*#__PURE__*/React.createElement("td", {
19792
- style: tableStyles.td
19793
- }, "0"), /*#__PURE__*/React.createElement("td", {
19794
- style: tableStyles.td
19795
- }, "0"), /*#__PURE__*/React.createElement("td", {
19796
- style: tableStyles.td
19797
- }, "0")), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
19798
- style: tableStyles.td
19799
- }), /*#__PURE__*/React.createElement("td", {
19800
- style: tableStyles.td
19801
- }), /*#__PURE__*/React.createElement("td", {
19802
- style: tableStyles.td
19803
- }), /*#__PURE__*/React.createElement("td", {
19804
- style: tableStyles.td
19805
- }), /*#__PURE__*/React.createElement("td", {
19806
- style: tableStyles.td
19807
- }), /*#__PURE__*/React.createElement("td", {
19808
- style: tableStyles.td
19809
- }), /*#__PURE__*/React.createElement("th", {
19810
- style: tableStyles.th
19811
- }, "Total Balance"), /*#__PURE__*/React.createElement("td", {
19812
- style: tableStyles.td
19813
- }, totalBalanceTax)))));
20925
+ marginBottom: '8px'
20926
+ }
20927
+ }, /*#__PURE__*/React.createElement("label", null, /*#__PURE__*/React.createElement("input", {
20928
+ type: "radio",
20929
+ value: option.code,
20930
+ checked: selectedYear === option.code,
20931
+ onChange: e => setSelectedYear(e.target.value),
20932
+ name: "custom-radio"
20933
+ }), option.name)))))));
19814
20934
  }
19815
20935
 
19816
20936
  function ApplicationDetailsToast({
@@ -20121,7 +21241,10 @@ const ApplicationDetails = props => {
20121
21241
  showTimeLine = true,
20122
21242
  oldValue,
20123
21243
  isInfoLabel = false,
20124
- clearDataDetails
21244
+ clearDataDetails,
21245
+ propertyId,
21246
+ setIsCheck,
21247
+ isCheck
20125
21248
  } = props;
20126
21249
  useEffect(() => {
20127
21250
  if (showToast) {
@@ -20342,6 +21465,7 @@ const ApplicationDetails = props => {
20342
21465
  window.location.assign(window.location.href.split("/editApplication")[0] + window.location.href.split("editApplication")[1]);
20343
21466
  }
20344
21467
  };
21468
+ console.log("application Details in template", applicationDetails);
20345
21469
  return /*#__PURE__*/React.createElement(React.Fragment, null, !isLoading ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ApplicationDetailsContent, {
20346
21470
  applicationDetails: applicationDetails,
20347
21471
  demandData: demandData,
@@ -20357,7 +21481,10 @@ const ApplicationDetails = props => {
20357
21481
  paymentsList: paymentsList,
20358
21482
  showTimeLine: showTimeLine,
20359
21483
  oldValue: oldValue,
20360
- isInfoLabel: isInfoLabel
21484
+ isInfoLabel: isInfoLabel,
21485
+ propertyId: propertyId,
21486
+ setIsCheck: setIsCheck,
21487
+ isCheck: isCheck
20361
21488
  }), showModal ? /*#__PURE__*/React.createElement(ActionModal$b, {
20362
21489
  t: t,
20363
21490
  action: selectedAction,
@@ -21093,10 +22220,10 @@ function baseToString(value) {
21093
22220
  }
21094
22221
  var _baseToString = baseToString;
21095
22222
 
21096
- function toString(value) {
22223
+ function toString$1(value) {
21097
22224
  return value == null ? '' : _baseToString(value);
21098
22225
  }
21099
- var toString_1 = toString;
22226
+ var toString_1 = toString$1;
21100
22227
 
21101
22228
  function castPath(value, object) {
21102
22229
  if (isArray_1(value)) {