sf-i-events 1.0.825 → 1.0.827

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.
@@ -4971,7 +4971,7 @@ export class SfIEvents extends LitElement {
4971
4971
 
4972
4972
 
4973
4973
  // csvCols += 'Period,Status,Id,ObligationTitle,Obligation,Duedate'
4974
- csvCols += 'Id,Country,State,Jurisdiction,Category,Subcategory,Statute,Reference,Applicability,ObligationType,ObligationTitle,Obligation,Firstlineofdefence,Secondlineofdefence,Thirdlineofdefence,Internalcontrols,Penalty,Form,AdditionalUrl,Definition,Authority,RiskSeverity,RiskAreas,Frequency,SubFrequency,DueDate,Status,ReportParameter'
4974
+ csvCols += 'Id,Country,Entity,Location,Function,Reporter,Approver,Functionhead,State,Jurisdiction,Category,Subcategory,Statute,Reference,Applicability,ObligationType,ObligationTitle,Obligation,Firstlineofdefence,Secondlineofdefence,Thirdlineofdefence,Internalcontrols,Penalty,Form,AdditionalUrl,Definition,Authority,RiskSeverity,RiskAreas,Frequency,SubFrequency,DueDate,Status,ReportParameter'
4975
4975
  htmlCols += '<tr><th class="td-thin">Id</th><th class="td-thin">Country</th><th class="td-thin">State</th><th class="td-thin">Jurisdiction</th><th class="td-thin">Category</th><th class="td-thin">Subcategory</th><th class="td-wide">Statute</th><th class="td-thin">Reference</th><th class="td-thin">Applicability</th><th class="td-thin">ObligationType</th><th class="td-wide">ObligationTitle</th><th class="td-wide">Obligation</th><th class="td-thin">Firstlineofdefence</th><th class="td-thin">Secondlineofdefence</th><th class="td-thin">Thirdlineofdefence</th><th>InternalControls</th><th class="td-wide">Penalty</th><th class="td-thin">Form</th><th class="td-thin">Additional URL</th><th class="td-thin">Definition</th><th class="td-thin">Authority</th><th class="td-thin">RiskSeverity</th><th class="td-wide">RiskAreas</th><th class="td-thin">Frequency</th><th class="td-thin">SubFrequency</th><th class="td-thin">DueDate</th><th class="td-wide">Status</th><th class="td-wide">ReportParameter</th></tr>'
4976
4976
 
4977
4977
  htmlSummaryCols += '<tr><th class="td-thin">Id</th><th class="td-wide">ObligationTitle</th><th class="td-wide">Obligation</th><th class="td-wide">Status</th><th class="td-wide">Documents</th></tr>'
@@ -5055,8 +5055,15 @@ export class SfIEvents extends LitElement {
5055
5055
 
5056
5056
  this.updateStats(this.events[mmdd][j], partStatus, lateStatus, complianceStatus);
5057
5057
  if(this.events[mmdd][j]["documents"] != null){
5058
+ //Id,Country,Entity,Location,Function,Reporter,Approver,Functionhead,State
5058
5059
  csvValues += ('"' + (this.events[mmdd][j]["id"] + '",'));
5059
- csvValues += ('"' + (this.events[mmdd][j]["country"] + '",'));
5060
+ csvValues += ('"' + ((this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '",'));
5061
+ csvValues += ('"' + ((this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '",'));
5062
+ csvValues += ('"' + ((this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '",'));
5063
+ csvValues += ('"' + (((this.events[mmdd][j]["functions"][0] ?? "").split(';')[0] + "").replace(/\((.*?)\)/g, "") + '",'));
5064
+ csvValues += ('"' + (((this.events[mmdd][j]["reporters"][0] ?? "").split(';')[0] + "").replace(/"/g, "") + '",'));
5065
+ csvValues += ('"' + (((this.events[mmdd][j]["approvers"][0] ?? "").split(';')[0] + "").replace(/"/g, "") + '",'));
5066
+ csvValues += ('"' + (((this.events[mmdd][j]["functionheads"][0] ?? "").split(';')[0] + "").replace(/"/g, "") + '",'));
5060
5067
  csvValues += ('"' + (this.events[mmdd][j]["state"] + '",'));
5061
5068
  csvValues += ('"' + (this.events[mmdd][j]["jurisdiction"] + '",'));
5062
5069
  csvValues += ('"' + (this.events[mmdd][j]["category"] + '",'));
@@ -12446,7 +12453,10 @@ export class SfIEvents extends LitElement {
12446
12453
  console.log('jsonRespose notice details', jsonRespose);
12447
12454
 
12448
12455
  } else {
12449
-
12456
+ if(xhr.status == 401){
12457
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
12458
+ this.dispatchEvent(changeEvent);
12459
+ }
12450
12460
  if(xhr.status === 404) {
12451
12461
 
12452
12462
  this.showChosenProject();
@@ -13285,7 +13295,10 @@ export class SfIEvents extends LitElement {
13285
13295
  }
13286
13296
 
13287
13297
  } else {
13288
-
13298
+ if(xhr.status == 401){
13299
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
13300
+ this.dispatchEvent(changeEvent);
13301
+ }
13289
13302
  if(xhr.status === 404) {
13290
13303
 
13291
13304
  this.showChosenProject();
@@ -22222,6 +22235,10 @@ export class SfIEvents extends LitElement {
22222
22235
  this._SfLoader.innerHTML = '';
22223
22236
 
22224
22237
  } else {
22238
+ if(xhr.status == 401){
22239
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
22240
+ this.dispatchEvent(changeEvent);
22241
+ }
22225
22242
  const jsonRespose = JSON.parse(xhr.responseText);
22226
22243
  this.setError(jsonRespose.error);
22227
22244
  setTimeout(() => {
@@ -22267,6 +22284,10 @@ export class SfIEvents extends LitElement {
22267
22284
  this._SfLoader.innerHTML = '';
22268
22285
 
22269
22286
  } else {
22287
+ if(xhr.status == 401){
22288
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
22289
+ this.dispatchEvent(changeEvent);
22290
+ }
22270
22291
  const jsonRespose = JSON.parse(xhr.responseText);
22271
22292
  this.setError(jsonRespose.error);
22272
22293
  setTimeout(() => {
@@ -22325,6 +22346,10 @@ export class SfIEvents extends LitElement {
22325
22346
  this._SfLoader.innerHTML = '';
22326
22347
 
22327
22348
  } else {
22349
+ if(xhr.status == 401){
22350
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
22351
+ this.dispatchEvent(changeEvent);
22352
+ }
22328
22353
  const jsonRespose = JSON.parse(xhr.responseText);
22329
22354
  this.setError(jsonRespose.error);
22330
22355
  setTimeout(() => {
@@ -22355,6 +22380,10 @@ export class SfIEvents extends LitElement {
22355
22380
  }, 3000);
22356
22381
 
22357
22382
  } else {
22383
+ if(xhr.status == 401){
22384
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
22385
+ this.dispatchEvent(changeEvent);
22386
+ }
22358
22387
  const jsonRespose = JSON.parse(xhr.responseText);
22359
22388
  this.setError(jsonRespose.error);
22360
22389
  setTimeout(() => {
@@ -22396,6 +22425,10 @@ export class SfIEvents extends LitElement {
22396
22425
  }, 5000);
22397
22426
 
22398
22427
  } else {
22428
+ if(xhr.status == 401){
22429
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
22430
+ this.dispatchEvent(changeEvent);
22431
+ }
22399
22432
  const jsonRespose = JSON.parse(xhr.responseText);
22400
22433
  this.setError(jsonRespose.error);
22401
22434
  setTimeout(() => {
@@ -22429,6 +22462,10 @@ export class SfIEvents extends LitElement {
22429
22462
  }, 3000);
22430
22463
 
22431
22464
  } else {
22465
+ if(xhr.status == 401){
22466
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
22467
+ this.dispatchEvent(changeEvent);
22468
+ }
22432
22469
  const jsonRespose = JSON.parse(xhr.responseText);
22433
22470
  this.setError(jsonRespose.error);
22434
22471
  setTimeout(() => {
@@ -22475,6 +22512,10 @@ export class SfIEvents extends LitElement {
22475
22512
  }, 2000);
22476
22513
 
22477
22514
  } else {
22515
+ if(xhr.status == 401){
22516
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
22517
+ this.dispatchEvent(changeEvent);
22518
+ }
22478
22519
  const jsonRespose = JSON.parse(xhr.responseText);
22479
22520
  this.setError(jsonRespose.error);
22480
22521
  retValue = false;
@@ -22495,6 +22536,10 @@ export class SfIEvents extends LitElement {
22495
22536
  }, 10000);
22496
22537
 
22497
22538
  } else {
22539
+ if(xhr.status == 401){
22540
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
22541
+ this.dispatchEvent(changeEvent);
22542
+ }
22498
22543
  const jsonRespose = JSON.parse(xhr.responseText);
22499
22544
  this.setError(jsonRespose.error);
22500
22545
  }
@@ -22538,6 +22583,10 @@ export class SfIEvents extends LitElement {
22538
22583
  }, 2000);
22539
22584
 
22540
22585
  } else {
22586
+ if(xhr.status == 401){
22587
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
22588
+ this.dispatchEvent(changeEvent);
22589
+ }
22541
22590
  const jsonRespose = JSON.parse(xhr.responseText);
22542
22591
  this.setError(jsonRespose.error);
22543
22592
  setTimeout(() => {
@@ -22560,6 +22609,10 @@ export class SfIEvents extends LitElement {
22560
22609
  }, 10000);
22561
22610
 
22562
22611
  } else {
22612
+ if(xhr.status == 401){
22613
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
22614
+ this.dispatchEvent(changeEvent);
22615
+ }
22563
22616
  const jsonRespose = JSON.parse(xhr.responseText);
22564
22617
  this.setError(jsonRespose.error);
22565
22618
  setTimeout(() => {
@@ -22580,6 +22633,10 @@ export class SfIEvents extends LitElement {
22580
22633
  }, 10000);
22581
22634
 
22582
22635
  } else {
22636
+ if(xhr.status == 401){
22637
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
22638
+ this.dispatchEvent(changeEvent);
22639
+ }
22583
22640
  const jsonRespose = JSON.parse(xhr.responseText);
22584
22641
  this.setError(jsonRespose.error);
22585
22642
  setTimeout(() => {
@@ -22635,6 +22692,10 @@ export class SfIEvents extends LitElement {
22635
22692
  }, 2000);
22636
22693
 
22637
22694
  } else {
22695
+ if(xhr.status == 401){
22696
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
22697
+ this.dispatchEvent(changeEvent);
22698
+ }
22638
22699
  const jsonRespose = JSON.parse(xhr.responseText);
22639
22700
  console.log()
22640
22701
  this.setError(jsonRespose.error);
@@ -22663,6 +22724,10 @@ export class SfIEvents extends LitElement {
22663
22724
  }
22664
22725
 
22665
22726
  } else {
22727
+ if(xhr.status == 401){
22728
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
22729
+ this.dispatchEvent(changeEvent);
22730
+ }
22666
22731
  const jsonRespose = JSON.parse(xhr.responseText);
22667
22732
  this.setError(jsonRespose.error);
22668
22733
  setTimeout(() => {
@@ -22702,6 +22767,10 @@ export class SfIEvents extends LitElement {
22702
22767
  }, 2000);
22703
22768
 
22704
22769
  } else {
22770
+ if(xhr.status == 401){
22771
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
22772
+ this.dispatchEvent(changeEvent);
22773
+ }
22705
22774
  const jsonRespose = JSON.parse(xhr.responseText);
22706
22775
  this.setError(jsonRespose.error);
22707
22776
  }
@@ -22726,6 +22795,10 @@ export class SfIEvents extends LitElement {
22726
22795
  this.renderMappingTabs(this.TAB_REPORTER);
22727
22796
 
22728
22797
  } else {
22798
+ if(xhr.status == 401){
22799
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
22800
+ this.dispatchEvent(changeEvent);
22801
+ }
22729
22802
  const jsonRespose = JSON.parse(xhr.responseText);
22730
22803
  this.setError(jsonRespose.error);
22731
22804
  }
@@ -22745,6 +22818,10 @@ export class SfIEvents extends LitElement {
22745
22818
  //console.log('jsonResponse sync', jsonRespose);
22746
22819
 
22747
22820
  } else {
22821
+ if(xhr.status == 401){
22822
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
22823
+ this.dispatchEvent(changeEvent);
22824
+ }
22748
22825
  const jsonRespose = JSON.parse(xhr.responseText);
22749
22826
  this.setError(jsonRespose.error);
22750
22827
  }
@@ -22884,7 +22961,10 @@ export class SfIEvents extends LitElement {
22884
22961
  return jsonRespose;
22885
22962
 
22886
22963
  } else {
22887
-
22964
+ if(xhr.status == 401){
22965
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
22966
+ this.dispatchEvent(changeEvent);
22967
+ }
22888
22968
  const jsonRespose = JSON.parse(xhr.responseText);
22889
22969
  this.setError(jsonRespose.error);
22890
22970
 
@@ -22906,7 +22986,10 @@ export class SfIEvents extends LitElement {
22906
22986
  return jsonRespose;
22907
22987
 
22908
22988
  } else {
22909
-
22989
+ if(xhr.status == 401){
22990
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
22991
+ this.dispatchEvent(changeEvent);
22992
+ }
22910
22993
  const jsonRespose = JSON.parse(xhr.responseText);
22911
22994
  this.setError(jsonRespose.error);
22912
22995
 
@@ -22927,7 +23010,10 @@ export class SfIEvents extends LitElement {
22927
23010
  return jsonRespose;
22928
23011
 
22929
23012
  } else {
22930
-
23013
+ if(xhr.status == 401){
23014
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
23015
+ this.dispatchEvent(changeEvent);
23016
+ }
22931
23017
  const jsonRespose = JSON.parse(xhr.responseText);
22932
23018
  this.setError(jsonRespose.error);
22933
23019
 
@@ -22979,7 +23065,10 @@ export class SfIEvents extends LitElement {
22979
23065
  return jsonRespose;
22980
23066
 
22981
23067
  } else {
22982
-
23068
+ if(xhr.status == 401){
23069
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
23070
+ this.dispatchEvent(changeEvent);
23071
+ }
22983
23072
  const jsonRespose = JSON.parse(xhr.responseText);
22984
23073
  this.setError(jsonRespose.error);
22985
23074
 
@@ -23002,7 +23091,10 @@ export class SfIEvents extends LitElement {
23002
23091
  return jsonRespose;
23003
23092
 
23004
23093
  } else {
23005
-
23094
+ if(xhr.status == 401){
23095
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
23096
+ this.dispatchEvent(changeEvent);
23097
+ }
23006
23098
  const jsonRespose = JSON.parse(xhr.responseText);
23007
23099
  this.setError(jsonRespose.error);
23008
23100
 
@@ -23023,7 +23115,10 @@ export class SfIEvents extends LitElement {
23023
23115
  return jsonRespose;
23024
23116
 
23025
23117
  } else {
23026
-
23118
+ if(xhr.status == 401){
23119
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
23120
+ this.dispatchEvent(changeEvent);
23121
+ }
23027
23122
  const jsonRespose = JSON.parse(xhr.responseText);
23028
23123
  this.setError(jsonRespose.error);
23029
23124
 
@@ -23113,7 +23208,10 @@ export class SfIEvents extends LitElement {
23113
23208
  return jsonRespose;
23114
23209
 
23115
23210
  } else {
23116
-
23211
+ if(xhr.status == 401){
23212
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
23213
+ this.dispatchEvent(changeEvent);
23214
+ }
23117
23215
  const jsonRespose = JSON.parse(xhr.responseText);
23118
23216
  this.setError(jsonRespose.error);
23119
23217
 
@@ -23198,7 +23296,10 @@ export class SfIEvents extends LitElement {
23198
23296
  return jsonRespose;
23199
23297
 
23200
23298
  } else {
23201
-
23299
+ if(xhr.status == 401){
23300
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
23301
+ this.dispatchEvent(changeEvent);
23302
+ }
23202
23303
  const jsonRespose = JSON.parse(xhr.responseText);
23203
23304
  this.setError(jsonRespose.error);
23204
23305
 
@@ -23246,7 +23347,10 @@ export class SfIEvents extends LitElement {
23246
23347
  return jsonRespose;
23247
23348
 
23248
23349
  } else {
23249
-
23350
+ if(xhr.status == 401){
23351
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
23352
+ this.dispatchEvent(changeEvent);
23353
+ }
23250
23354
  const jsonRespose = JSON.parse(xhr.responseText);
23251
23355
  this.setError(jsonRespose.error);
23252
23356
 
@@ -23293,7 +23397,10 @@ export class SfIEvents extends LitElement {
23293
23397
  return jsonRespose;
23294
23398
 
23295
23399
  } else {
23296
-
23400
+ if(xhr.status == 401){
23401
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
23402
+ this.dispatchEvent(changeEvent);
23403
+ }
23297
23404
  const jsonRespose = JSON.parse(xhr.responseText);
23298
23405
  this.setError(jsonRespose.error);
23299
23406
 
@@ -23314,7 +23421,10 @@ export class SfIEvents extends LitElement {
23314
23421
  return jsonRespose;
23315
23422
 
23316
23423
  } else {
23317
-
23424
+ if(xhr.status == 401){
23425
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
23426
+ this.dispatchEvent(changeEvent);
23427
+ }
23318
23428
  const jsonRespose = JSON.parse(xhr.responseText);
23319
23429
  this.setError(jsonRespose.error);
23320
23430
 
@@ -23335,7 +23445,10 @@ export class SfIEvents extends LitElement {
23335
23445
  return jsonRespose;
23336
23446
 
23337
23447
  } else {
23338
-
23448
+ if(xhr.status == 401){
23449
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
23450
+ this.dispatchEvent(changeEvent);
23451
+ }
23339
23452
  const jsonRespose = JSON.parse(xhr.responseText);
23340
23453
  this.setError(jsonRespose.error);
23341
23454
 
@@ -23356,7 +23469,10 @@ export class SfIEvents extends LitElement {
23356
23469
  return jsonRespose;
23357
23470
 
23358
23471
  } else {
23359
-
23472
+ if(xhr.status == 401){
23473
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
23474
+ this.dispatchEvent(changeEvent);
23475
+ }
23360
23476
  const jsonRespose = JSON.parse(xhr.responseText);
23361
23477
  this.setError(jsonRespose.error);
23362
23478
 
@@ -23377,7 +23493,10 @@ export class SfIEvents extends LitElement {
23377
23493
  return jsonRespose;
23378
23494
 
23379
23495
  } else {
23380
-
23496
+ if(xhr.status == 401){
23497
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
23498
+ this.dispatchEvent(changeEvent);
23499
+ }
23381
23500
  const jsonRespose = JSON.parse(xhr.responseText);
23382
23501
  this.setError(jsonRespose.error);
23383
23502
 
@@ -23406,7 +23525,10 @@ export class SfIEvents extends LitElement {
23406
23525
  // return jsonRespose;
23407
23526
 
23408
23527
  } else {
23409
-
23528
+ if(xhr.status == 401){
23529
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
23530
+ this.dispatchEvent(changeEvent);
23531
+ }
23410
23532
  const jsonRespose = JSON.parse(xhr.responseText);
23411
23533
  this.setError(jsonRespose.error);
23412
23534
 
@@ -23605,7 +23727,10 @@ export class SfIEvents extends LitElement {
23605
23727
  // }
23606
23728
 
23607
23729
  } else {
23608
-
23730
+ if(xhr.status == 401){
23731
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
23732
+ this.dispatchEvent(changeEvent);
23733
+ }
23609
23734
  const jsonRespose = JSON.parse(xhr.responseText);
23610
23735
  this.setError(jsonRespose.error);
23611
23736
 
@@ -23651,7 +23776,10 @@ export class SfIEvents extends LitElement {
23651
23776
  }
23652
23777
 
23653
23778
  } else {
23654
-
23779
+ if(xhr.status == 401){
23780
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
23781
+ this.dispatchEvent(changeEvent);
23782
+ }
23655
23783
  const jsonRespose = JSON.parse(xhr.responseText);
23656
23784
  this.setError(jsonRespose.error);
23657
23785
 
@@ -23803,7 +23931,10 @@ export class SfIEvents extends LitElement {
23803
23931
  return resultPresigned;
23804
23932
 
23805
23933
  } else {
23806
-
23934
+ if(xhr.status == 401){
23935
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
23936
+ this.dispatchEvent(changeEvent);
23937
+ }
23807
23938
  const jsonRespose = JSON.parse(xhr.responseText);
23808
23939
  this.setError(jsonRespose.error);
23809
23940
 
@@ -23824,7 +23955,10 @@ export class SfIEvents extends LitElement {
23824
23955
  return jsonRespose;
23825
23956
 
23826
23957
  } else {
23827
-
23958
+ if(xhr.status == 401){
23959
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
23960
+ this.dispatchEvent(changeEvent);
23961
+ }
23828
23962
  const jsonRespose = JSON.parse(xhr.responseText);
23829
23963
  this.setError(jsonRespose.error);
23830
23964
 
@@ -23845,7 +23979,10 @@ export class SfIEvents extends LitElement {
23845
23979
  return jsonRespose;
23846
23980
 
23847
23981
  } else {
23848
-
23982
+ if(xhr.status == 401){
23983
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
23984
+ this.dispatchEvent(changeEvent);
23985
+ }
23849
23986
  const jsonRespose = JSON.parse(xhr.responseText);
23850
23987
  this.setError(jsonRespose.error);
23851
23988
 
@@ -23872,7 +24009,10 @@ export class SfIEvents extends LitElement {
23872
24009
  return jsonRespose;
23873
24010
 
23874
24011
  } else {
23875
-
24012
+ if(xhr.status == 401){
24013
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
24014
+ this.dispatchEvent(changeEvent);
24015
+ }
23876
24016
  const jsonRespose = JSON.parse(xhr.responseText);
23877
24017
  this.setError(jsonRespose.error);
23878
24018
 
@@ -23893,7 +24033,10 @@ export class SfIEvents extends LitElement {
23893
24033
  return jsonRespose;
23894
24034
 
23895
24035
  } else {
23896
-
24036
+ if(xhr.status == 401){
24037
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
24038
+ this.dispatchEvent(changeEvent);
24039
+ }
23897
24040
  const jsonRespose = JSON.parse(xhr.responseText);
23898
24041
  this.setError(jsonRespose.error);
23899
24042
 
@@ -23914,7 +24057,10 @@ export class SfIEvents extends LitElement {
23914
24057
  return jsonRespose;
23915
24058
 
23916
24059
  } else {
23917
-
24060
+ if(xhr.status == 401){
24061
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
24062
+ this.dispatchEvent(changeEvent);
24063
+ }
23918
24064
  const jsonRespose = JSON.parse(xhr.responseText);
23919
24065
  this.setError(jsonRespose.error);
23920
24066
 
@@ -23922,342 +24068,7 @@ export class SfIEvents extends LitElement {
23922
24068
 
23923
24069
  }
23924
24070
 
23925
- // fetchInternalControlsJobs = async () => {
23926
-
23927
- // let url = "https://"+this.apiId+"/getinternalcontrolsjobs";
23928
- // const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
23929
- // const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
23930
- // this._SfLoader.innerHTML = '';
23931
- // if(xhr.status == 200) {
23932
-
23933
- // const jsonRespose = JSON.parse(xhr.responseText);
23934
- // //console.log(jsonRespose);
23935
- // return jsonRespose;
23936
-
23937
- // } else {
23938
-
23939
- // const jsonRespose = JSON.parse(xhr.responseText);
23940
- // this.setError(jsonRespose.error);
23941
-
23942
- // }
23943
-
23944
- // }
23945
-
23946
- // fetchExtensionsJobs = async () => {
23947
-
23948
- // let url = "https://"+this.apiId+"/getalertschedulesjobs";
23949
- // const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
23950
- // const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
23951
- // this._SfLoader.innerHTML = '';
23952
- // if(xhr.status == 200) {
23953
-
23954
- // const jsonRespose = JSON.parse(xhr.responseText);
23955
- // //console.log(jsonRespose);
23956
- // return jsonRespose;
23957
-
23958
- // } else {
23959
-
23960
- // const jsonRespose = JSON.parse(xhr.responseText);
23961
- // this.setError(jsonRespose.error);
23962
-
23963
- // }
23964
-
23965
- // }
23966
-
23967
- // fetchAlertSchedulesJobs = async () => {
23968
-
23969
- // let url = "https://"+this.apiId+"/getalertschedulesjobs";
23970
- // const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
23971
- // const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
23972
- // this._SfLoader.innerHTML = '';
23973
- // if(xhr.status == 200) {
23974
-
23975
- // const jsonRespose = JSON.parse(xhr.responseText);
23976
- // //console.log(jsonRespose);
23977
- // return jsonRespose;
23978
-
23979
- // } else {
23980
-
23981
- // const jsonRespose = JSON.parse(xhr.responseText);
23982
- // this.setError(jsonRespose.error);
23983
-
23984
- // }
23985
-
23986
- // }
23987
-
23988
- // fetchDueDatesJobs = async () => {
23989
-
23990
- // let url = "https://"+this.apiId+"/getduedatesjobs";
23991
- // const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
23992
- // const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
23993
- // this._SfLoader.innerHTML = '';
23994
- // if(xhr.status == 200) {
23995
-
23996
- // const jsonRespose = JSON.parse(xhr.responseText);
23997
- // //console.log(jsonRespose);
23998
- // return jsonRespose;
23999
-
24000
- // } else {
24001
-
24002
- // const jsonRespose = JSON.parse(xhr.responseText);
24003
- // this.setError(jsonRespose.error);
24004
-
24005
- // }
24006
-
24007
- // }
24008
-
24009
- // fetchApproversJobs = async () => {
24010
-
24011
- // let url = "https://"+this.apiId+"/getapproversjobs";
24012
- // const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
24013
- // const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
24014
- // this._SfLoader.innerHTML = '';
24015
- // if(xhr.status == 200) {
24016
-
24017
- // const jsonRespose = JSON.parse(xhr.responseText);
24018
- // //console.log(jsonRespose);
24019
- // return jsonRespose;
24020
-
24021
- // } else {
24022
-
24023
- // const jsonRespose = JSON.parse(xhr.responseText);
24024
- // this.setError(jsonRespose.error);
24025
-
24026
- // }
24027
-
24028
- // }
24029
-
24030
- // fetchFunctionHeadsJobs = async () => {
24031
-
24032
- // let url = "https://"+this.apiId+"/getfunctionheadsjobs";
24033
- // const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
24034
- // const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
24035
- // this._SfLoader.innerHTML = '';
24036
- // if(xhr.status == 200) {
24037
-
24038
- // const jsonRespose = JSON.parse(xhr.responseText);
24039
- // //console.log(jsonRespose);
24040
- // return jsonRespose;
24041
-
24042
- // } else {
24043
-
24044
- // const jsonRespose = JSON.parse(xhr.responseText);
24045
- // this.setError(jsonRespose.error);
24046
-
24047
- // }
24048
-
24049
- // }
24050
-
24051
- // fetchMakerCheckersJobs = async () => {
24052
-
24053
- // let url = "https://"+this.apiId+"/getmakercheckersjobs";
24054
- // const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
24055
- // const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
24056
- // this._SfLoader.innerHTML = '';
24057
- // if(xhr.status == 200) {
24058
-
24059
- // const jsonRespose = JSON.parse(xhr.responseText);
24060
- // //console.log(jsonRespose);
24061
- // return jsonRespose;
24062
-
24063
- // } else {
24064
-
24065
- // const jsonRespose = JSON.parse(xhr.responseText);
24066
- // this.setError(jsonRespose.error);
24067
-
24068
- // }
24069
-
24070
- // }
24071
-
24072
- // fetchDocsJobs = async () => {
24073
-
24074
- // let url = "https://"+this.apiId+"/getdocsjobs";
24075
- // const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
24076
- // const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
24077
- // this._SfLoader.innerHTML = '';
24078
- // if(xhr.status == 200) {
24079
-
24080
- // const jsonRespose = JSON.parse(xhr.responseText);
24081
- // //console.log(jsonRespose);
24082
- // return jsonRespose;
24083
-
24084
- // } else {
24085
-
24086
- // const jsonRespose = JSON.parse(xhr.responseText);
24087
- // this.setError(jsonRespose.error);
24088
-
24089
- // }
24090
-
24091
- // }
24092
-
24093
- // fetchAuditorsJobs = async () => {
24094
-
24095
- // let url = "https://"+this.apiId+"/getauditorsjobs";
24096
- // const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
24097
- // const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
24098
- // this._SfLoader.innerHTML = '';
24099
- // if(xhr.status == 200) {
24100
-
24101
- // const jsonRespose = JSON.parse(xhr.responseText);
24102
- // //console.log(jsonRespose);
24103
- // return jsonRespose;
24104
-
24105
- // } else {
24106
-
24107
- // const jsonRespose = JSON.parse(xhr.responseText);
24108
- // this.setError(jsonRespose.error);
24109
-
24110
- // }
24111
-
24112
- // }
24113
-
24114
- // fetchViewersJobs = async () => {
24115
-
24116
- // let url = "https://"+this.apiId+"/getviewersjobs";
24117
- // const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
24118
- // const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
24119
- // this._SfLoader.innerHTML = '';
24120
- // if(xhr.status == 200) {
24121
-
24122
- // const jsonRespose = JSON.parse(xhr.responseText);
24123
- // //console.log(jsonRespose);
24124
- // return jsonRespose;
24125
-
24126
- // } else {
24127
-
24128
- // const jsonRespose = JSON.parse(xhr.responseText);
24129
- // this.setError(jsonRespose.error);
24130
-
24131
- // }
24132
-
24133
- // }
24134
-
24135
- // fetchReportersJobs = async () => {
24136
-
24137
- // let url = "https://"+this.apiId+"/getreportersjobs";
24138
- // const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
24139
- // const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
24140
- // this._SfLoader.innerHTML = '';
24141
- // if(xhr.status == 200) {
24142
-
24143
- // const jsonRespose = JSON.parse(xhr.responseText);
24144
- // //console.log(jsonRespose);
24145
- // return jsonRespose;
24146
-
24147
- // } else {
24148
-
24149
- // const jsonRespose = JSON.parse(xhr.responseText);
24150
- // this.setError(jsonRespose.error);
24151
-
24152
- // }
24153
-
24154
- // }
24155
24071
 
24156
- // fetchTagsJobs = async () => {
24157
-
24158
- // let url = "https://"+this.apiId+"/gettagsjobs";
24159
- // const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
24160
- // const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
24161
- // this._SfLoader.innerHTML = '';
24162
- // if(xhr.status == 200) {
24163
-
24164
- // const jsonRespose = JSON.parse(xhr.responseText);
24165
- // //console.log(jsonRespose);
24166
- // return jsonRespose;
24167
-
24168
- // } else {
24169
-
24170
- // const jsonRespose = JSON.parse(xhr.responseText);
24171
- // this.setError(jsonRespose.error);
24172
-
24173
- // }
24174
-
24175
- // }
24176
-
24177
- // fetchLocationsJobs = async () => {
24178
-
24179
- // let url = "https://"+this.apiId+"/getlocationsjobs";
24180
- // const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
24181
- // const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
24182
- // this._SfLoader.innerHTML = '';
24183
- // if(xhr.status == 200) {
24184
-
24185
- // const jsonRespose = JSON.parse(xhr.responseText);
24186
- // //console.log(jsonRespose);
24187
- // return jsonRespose;
24188
-
24189
- // } else {
24190
-
24191
- // const jsonRespose = JSON.parse(xhr.responseText);
24192
- // this.setError(jsonRespose.error);
24193
-
24194
- // }
24195
-
24196
- // }
24197
-
24198
- // fetchCountriesJobs = async () => {
24199
-
24200
- // let url = "https://"+this.apiId+"/getcountriesjobs";
24201
- // const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
24202
- // const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
24203
- // this._SfLoader.innerHTML = '';
24204
- // if(xhr.status == 200) {
24205
-
24206
- // const jsonRespose = JSON.parse(xhr.responseText);
24207
- // //console.log(jsonRespose);
24208
- // return jsonRespose;
24209
-
24210
- // } else {
24211
-
24212
- // const jsonRespose = JSON.parse(xhr.responseText);
24213
- // this.setError(jsonRespose.error);
24214
-
24215
- // }
24216
-
24217
- // }
24218
-
24219
- // fetchEntitiesJobs = async () => {
24220
-
24221
- // let url = "https://"+this.apiId+"/getentitiesjobs";
24222
- // const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
24223
- // const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
24224
- // this._SfLoader.innerHTML = '';
24225
- // if(xhr.status == 200) {
24226
-
24227
- // const jsonRespose = JSON.parse(xhr.responseText);
24228
- // //console.log(jsonRespose);
24229
- // return jsonRespose;
24230
-
24231
- // } else {
24232
-
24233
- // const jsonRespose = JSON.parse(xhr.responseText);
24234
- // this.setError(jsonRespose.error);
24235
-
24236
- // }
24237
-
24238
- // }
24239
-
24240
- // fetchFunctionJobs = async () => {
24241
-
24242
- // let url = "https://"+this.apiId+"/getfunctionsjobs";
24243
- // const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
24244
- // const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
24245
- // this._SfLoader.innerHTML = '';
24246
- // if(xhr.status == 200) {
24247
-
24248
- // const jsonRespose = JSON.parse(xhr.responseText);
24249
- // //console.log(jsonRespose);
24250
- // return jsonRespose;
24251
-
24252
- // } else {
24253
-
24254
- // const jsonRespose = JSON.parse(xhr.responseText);
24255
- // this.setError(jsonRespose.error);
24256
-
24257
- // }
24258
-
24259
- // }
24260
-
24261
24072
  fetchCalendarJobs = async () => {
24262
24073
 
24263
24074
  let url = "https://"+this.apiId+"/getcalendarjobs";
@@ -24271,7 +24082,10 @@ export class SfIEvents extends LitElement {
24271
24082
  return jsonRespose;
24272
24083
 
24273
24084
  } else {
24274
-
24085
+ if(xhr.status == 401){
24086
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
24087
+ this.dispatchEvent(changeEvent);
24088
+ }
24275
24089
  const jsonRespose = JSON.parse(xhr.responseText);
24276
24090
  this.setError(jsonRespose.error);
24277
24091
 
@@ -24299,6 +24113,10 @@ export class SfIEvents extends LitElement {
24299
24113
  this.processEvent(jsonRespose.data.value)
24300
24114
 
24301
24115
  } else {
24116
+ if(xhr.status == 401){
24117
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
24118
+ this.dispatchEvent(changeEvent);
24119
+ }
24302
24120
  const jsonRespose = JSON.parse(xhr.responseText);
24303
24121
  this.setError(jsonRespose.error);
24304
24122
  }
@@ -24322,6 +24140,10 @@ export class SfIEvents extends LitElement {
24322
24140
  return jsonRespose;
24323
24141
 
24324
24142
  } else {
24143
+ if(xhr.status == 401){
24144
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
24145
+ this.dispatchEvent(changeEvent);
24146
+ }
24325
24147
  const jsonRespose = JSON.parse(xhr.responseText);
24326
24148
  return jsonRespose;
24327
24149
 
@@ -24394,6 +24216,9 @@ export class SfIEvents extends LitElement {
24394
24216
  //console.log(jsonRespose);
24395
24217
  return registers;
24396
24218
 
24219
+ }else if(xhr.status == 401){
24220
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
24221
+ this.dispatchEvent(changeEvent);
24397
24222
  }
24398
24223
 
24399
24224
  }
@@ -24528,7 +24353,10 @@ export class SfIEvents extends LitElement {
24528
24353
 
24529
24354
 
24530
24355
  } else {
24531
-
24356
+ if(xhr.status == 401){
24357
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
24358
+ this.dispatchEvent(changeEvent);
24359
+ }
24532
24360
  if(xhr.status === 404) {
24533
24361
 
24534
24362
  this.showChosenProject();
@@ -24604,7 +24432,10 @@ export class SfIEvents extends LitElement {
24604
24432
  this.renderAppropriateStream(this.sdate,this.edate,true);
24605
24433
  console.log('notices', notices, tempEvents);
24606
24434
  } else {
24607
-
24435
+ if(xhr.status == 401){
24436
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
24437
+ this.dispatchEvent(changeEvent);
24438
+ }
24608
24439
  if(xhr.status === 404) {
24609
24440
 
24610
24441
  this.showChosenProject();
@@ -24687,6 +24518,10 @@ export class SfIEvents extends LitElement {
24687
24518
  return jsonRespose.meta
24688
24519
 
24689
24520
  } else {
24521
+ if(xhr.status == 401){
24522
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
24523
+ this.dispatchEvent(changeEvent);
24524
+ }
24690
24525
  const jsonRespose = JSON.parse(xhr.responseText);
24691
24526
  this.setError(jsonRespose.error);
24692
24527
  }
@@ -24746,6 +24581,9 @@ export class SfIEvents extends LitElement {
24746
24581
  // backgroundProcessButton.style.display = 'none'
24747
24582
  }
24748
24583
  }
24584
+ }else if(xhr.status == 401){
24585
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
24586
+ this.dispatchEvent(changeEvent);
24749
24587
  }
24750
24588
  }
24751
24589
 
@@ -24770,7 +24608,10 @@ export class SfIEvents extends LitElement {
24770
24608
  // this.renderChosenProject(events);
24771
24609
 
24772
24610
  } else {
24773
-
24611
+ if(xhr.status == 401){
24612
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
24613
+ this.dispatchEvent(changeEvent);
24614
+ }
24774
24615
  if(xhr.status === 404) {
24775
24616
 
24776
24617
  this.showChosenProject();
@@ -24809,7 +24650,10 @@ export class SfIEvents extends LitElement {
24809
24650
  // this.renderChosenProject(events);
24810
24651
 
24811
24652
  } else {
24812
-
24653
+ if(xhr.status == 401){
24654
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
24655
+ this.dispatchEvent(changeEvent);
24656
+ }
24813
24657
  if(xhr.status === 404) {
24814
24658
 
24815
24659
  this.showChosenProject();
@@ -24837,7 +24681,10 @@ export class SfIEvents extends LitElement {
24837
24681
  //console.log(jsonRespose);
24838
24682
 
24839
24683
  } else {
24840
-
24684
+ if(xhr.status == 401){
24685
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
24686
+ this.dispatchEvent(changeEvent);
24687
+ }
24841
24688
  const jsonRespose = JSON.parse(xhr.responseText);
24842
24689
  this.setError(jsonRespose.error);
24843
24690
  this.fetchList();
@@ -24877,7 +24724,10 @@ export class SfIEvents extends LitElement {
24877
24724
  return jsonRespose;
24878
24725
 
24879
24726
  } else {
24880
-
24727
+ if(xhr.status == 401){
24728
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
24729
+ this.dispatchEvent(changeEvent);
24730
+ }
24881
24731
  const jsonRespose = JSON.parse(xhr.responseText);
24882
24732
  this.setError(jsonRespose.error);
24883
24733
  this.fetchList();
@@ -24915,7 +24765,10 @@ export class SfIEvents extends LitElement {
24915
24765
  }
24916
24766
 
24917
24767
  } else {
24918
-
24768
+ if(xhr.status == 401){
24769
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
24770
+ this.dispatchEvent(changeEvent);
24771
+ }
24919
24772
  const jsonRespose = JSON.parse(xhr.responseText);
24920
24773
  this.setError(jsonRespose.error);
24921
24774
  this.fetchList();
@@ -24968,6 +24821,10 @@ export class SfIEvents extends LitElement {
24968
24821
  //await this.fetchAdhoc(true);
24969
24822
 
24970
24823
  } else {
24824
+ if(xhr.status == 401){
24825
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
24826
+ this.dispatchEvent(changeEvent);
24827
+ }
24971
24828
  const jsonRespose = JSON.parse(xhr.responseText);
24972
24829
  this.setError(jsonRespose.error);
24973
24830
  }
@@ -25230,6 +25087,10 @@ export class SfIEvents extends LitElement {
25230
25087
  }, 2000);
25231
25088
 
25232
25089
  } else {
25090
+ if(xhr.status == 401){
25091
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
25092
+ this.dispatchEvent(changeEvent);
25093
+ }
25233
25094
  const jsonRespose = JSON.parse(xhr.responseText);
25234
25095
  this.setError(jsonRespose.error);
25235
25096
  setTimeout(() => {
@@ -25273,7 +25134,10 @@ export class SfIEvents extends LitElement {
25273
25134
  // this.renderRoleTabsNext(jsonRespose.data, page)
25274
25135
  this.renderNextEvents(jsonRespose.data, page, role);
25275
25136
  } else {
25276
-
25137
+ if(xhr.status == 401){
25138
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
25139
+ this.dispatchEvent(changeEvent);
25140
+ }
25277
25141
  if(xhr.status === 404) {
25278
25142
  const jsonRespose = JSON.parse(xhr.responseText);
25279
25143
  this.setError(jsonRespose.error);
@@ -25776,7 +25640,10 @@ export class SfIEvents extends LitElement {
25776
25640
  console.log('report',arrReports['3/31/*,30;c989a44e-7d3d-427e-b712-90eacf585075;38dc8c53-643f-4fee-83fe-f15239606277;0a5fb99f-c36f-46c0-85b4-7fa3d48fa134']);
25777
25641
  this.renderReports(arrReports)
25778
25642
  } else {
25779
-
25643
+ if(xhr.status == 401){
25644
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
25645
+ this.dispatchEvent(changeEvent);
25646
+ }
25780
25647
  if(xhr.status === 404) {
25781
25648
  const jsonRespose = JSON.parse(xhr.responseText);
25782
25649
  this.setError(jsonRespose.error);
@@ -25953,7 +25820,10 @@ export class SfIEvents extends LitElement {
25953
25820
  console.log('receivedCompliacnes', arrCompliances)
25954
25821
  // this.renderReportsComplainces(arrCompliances, sortid);
25955
25822
  } else {
25956
-
25823
+ if(xhr.status == 401){
25824
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
25825
+ this.dispatchEvent(changeEvent);
25826
+ }
25957
25827
  if(xhr.status === 404) {
25958
25828
 
25959
25829
  this.showChosenProject();
@@ -26035,7 +25905,10 @@ export class SfIEvents extends LitElement {
26035
25905
  console.log('receivedCompliacnes', arrCompliances)
26036
25906
  this.renderReportsComplainces(arrCompliances, sortid);
26037
25907
  } else {
26038
-
25908
+ if(xhr.status == 401){
25909
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
25910
+ this.dispatchEvent(changeEvent);
25911
+ }
26039
25912
  if(xhr.status === 404) {
26040
25913
 
26041
25914
  this.showChosenProject();
@@ -26185,7 +26058,10 @@ export class SfIEvents extends LitElement {
26185
26058
  }, 3000)
26186
26059
 
26187
26060
  } else {
26188
-
26061
+ if(xhr.status == 401){
26062
+ let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
26063
+ this.dispatchEvent(changeEvent);
26064
+ }
26189
26065
  if(xhr.status === 404) {
26190
26066
  const jsonRespose = JSON.parse(xhr.responseText);
26191
26067
  this.setError(jsonRespose.error);
@@ -26601,7 +26477,7 @@ export class SfIEvents extends LitElement {
26601
26477
  `;
26602
26478
 
26603
26479
  } else if(this.mode == "downloader") {
26604
- //disable
26480
+ /* eslint-disable lit/no-unknown-attribute */
26605
26481
  return html`
26606
26482
 
26607
26483
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
@@ -26651,7 +26527,7 @@ export class SfIEvents extends LitElement {
26651
26527
  </div>
26652
26528
 
26653
26529
  `;
26654
-
26530
+ /* eslint-disable lit/no-unknown-attribute */
26655
26531
  } else if(this.mode == "next"){
26656
26532
 
26657
26533
  return html`