ng-pli-commons 0.0.1310 → 0.0.1311

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.
Files changed (44) hide show
  1. package/bundles/ng-pli-commons.umd.js +482 -497
  2. package/bundles/ng-pli-commons.umd.js.map +1 -1
  3. package/bundles/ng-pli-commons.umd.min.js +1 -1
  4. package/bundles/ng-pli-commons.umd.min.js.map +1 -1
  5. package/esm2015/lib/components/configuration-token/configuration-token.component.js +2 -2
  6. package/esm2015/lib/components/frontoffice.commons.component.js +16 -1
  7. package/esm2015/lib/services/application.service.js +1 -19
  8. package/esm2015/lib/services/common.service.js +29 -4
  9. package/esm2015/lib/services/configuration-document.service.js +1 -7
  10. package/esm2015/lib/services/ppp.service.js +4 -8
  11. package/esm2015/lib/services/survey.service.js +1 -4
  12. package/esm2015/public_api.js +1 -2
  13. package/esm2015/version.js +8 -8
  14. package/esm5/lib/components/configuration-token/configuration-token.component.js +2 -2
  15. package/esm5/lib/components/frontoffice.commons.component.js +22 -1
  16. package/esm5/lib/services/application.service.js +1 -19
  17. package/esm5/lib/services/common.service.js +29 -4
  18. package/esm5/lib/services/configuration-document.service.js +1 -7
  19. package/esm5/lib/services/ppp.service.js +4 -8
  20. package/esm5/lib/services/survey.service.js +1 -4
  21. package/esm5/public_api.js +1 -2
  22. package/esm5/version.js +8 -8
  23. package/fesm2015/ng-pli-commons.js +592 -610
  24. package/fesm2015/ng-pli-commons.js.map +1 -1
  25. package/fesm5/ng-pli-commons.js +476 -488
  26. package/fesm5/ng-pli-commons.js.map +1 -1
  27. package/lib/components/frontoffice.commons.component.d.ts +10 -0
  28. package/lib/services/application.service.d.ts +1 -7
  29. package/lib/services/common.service.d.ts +9 -1
  30. package/lib/services/configuration-document.service.d.ts +0 -1
  31. package/lib/services/ppp.service.d.ts +1 -3
  32. package/lib/services/survey.service.d.ts +1 -2
  33. package/ng-pli-commons.metadata.json +1 -1
  34. package/package.json +1 -1
  35. package/public_api.d.ts +0 -1
  36. package/esm2015/lib/components/configuration-token-multiapplication/configuration-token-multiapplication.component.js +0 -101
  37. package/esm2015/lib/components/project-summary-config/project-summary-config.component.js +0 -31
  38. package/esm2015/lib/services/document-analysis-auto.service.js +0 -26
  39. package/esm5/lib/components/configuration-token-multiapplication/configuration-token-multiapplication.component.js +0 -128
  40. package/esm5/lib/components/project-summary-config/project-summary-config.component.js +0 -36
  41. package/esm5/lib/services/document-analysis-auto.service.js +0 -28
  42. package/lib/components/configuration-token-multiapplication/configuration-token-multiapplication.component.d.ts +0 -34
  43. package/lib/components/project-summary-config/project-summary-config.component.d.ts +0 -13
  44. package/lib/services/document-analysis-auto.service.d.ts +0 -11
@@ -549,279 +549,6 @@
549
549
  return TasaCambioService;
550
550
  }());
551
551
 
552
- var CommonService = /** @class */ (function () {
553
- function CommonService(environment, httpClient, tasaCambioService) {
554
- this.environment = environment;
555
- this.httpClient = httpClient;
556
- this.tasaCambioService = tasaCambioService;
557
- this.headerJson = { headers: new i1$1.HttpHeaders({ 'Content-Type': 'application/json' }) };
558
- /** Notify when the currencies info change */
559
- this.currencyChanged = new rxjs.BehaviorSubject(undefined);
560
- /** Notify when the categories info change */
561
- this.categoryChanged = new rxjs.BehaviorSubject(undefined);
562
- /** Notify when the exchange rate info change */
563
- this.exchangeRateChanged = new rxjs.BehaviorSubject(undefined);
564
- /** Notify when the idioma has changed */
565
- this.languageChanged = new rxjs.BehaviorSubject(undefined);
566
- /** Notify when the process info change */
567
- this.processChanged = new rxjs.BehaviorSubject(undefined);
568
- this.initValues();
569
- }
570
- /** It has an observable to notify if the language is changed */
571
- CommonService.prototype.onLanguageChanged = function () {
572
- return this.languageChanged.asObservable();
573
- };
574
- /** It has an observable to notify if the cateogry is changed */
575
- CommonService.prototype.onCurrencyChanged = function () {
576
- return this.currencyChanged.asObservable();
577
- };
578
- /** It has an observable to notify if the category is changed */
579
- CommonService.prototype.onCategoryChanged = function () {
580
- return this.categoryChanged.asObservable();
581
- };
582
- /** It has an observable to notify if the exchange rate is changed */
583
- CommonService.prototype.onExchangeRateChanged = function () {
584
- return this.exchangeRateChanged.asObservable();
585
- };
586
- /** It has an observable to notify if the list of process is changed */
587
- CommonService.prototype.onProcessChanged = function () {
588
- return this.processChanged.asObservable();
589
- };
590
- /**
591
- * Search the info of the variables, first try to search in the local storage,
592
- * if not find info, get the info from the services
593
- */
594
- CommonService.prototype.initValues = function () {
595
- this.searchLCurrency();
596
- this.searchLCategory();
597
- this.searchLExchangeRate();
598
- this.searchLLanguage();
599
- this.searchLProcess();
600
- };
601
- /**
602
- * Remove all variables of the local storage
603
- */
604
- CommonService.prototype.reloadValues = function () {
605
- localStorage.removeItem('lCurrency');
606
- localStorage.removeItem('lCategory');
607
- localStorage.removeItem('lExchangeRate');
608
- localStorage.removeItem('lLanguage');
609
- localStorage.removeItem('lProcess');
610
- };
611
- /** Search list of currencies */
612
- CommonService.prototype.getLanguages = function () {
613
- var _this = this;
614
- this.httpClient
615
- .get(this.environment.host.backend.plis + 'idioma/getAll')
616
- .subscribe(function (lLanguage) {
617
- _this.setLLanguage(lLanguage);
618
- }, function (error) {
619
- console.error('Error - getListCurrencies -El sistema no responde', error);
620
- });
621
- };
622
- /** Search list of currencies */
623
- CommonService.prototype.getCurrencies = function () {
624
- var _this = this;
625
- this.httpClient
626
- .get(this.environment.host.backend.plis + 'moneda/getAll')
627
- .subscribe(function (lCurrency) {
628
- _this.setLCurrencies(lCurrency);
629
- }, function (error) {
630
- console.error('Error - getListCurrencies -El sistema no responde', error);
631
- });
632
- };
633
- /** Search list of categories */
634
- CommonService.prototype.getCategories = function () {
635
- var _this = this;
636
- this.httpClient
637
- .get(this.environment.host.backend.plis + 'rubro/getAll', {
638
- params: new i1$1.HttpParams().set('cargarListas', 'true')
639
- })
640
- .subscribe(function (lCategory) {
641
- _this.setLCategory(lCategory);
642
- }, function (error) {
643
- console.error('Error - getCategories -El sistema no responde', error);
644
- });
645
- };
646
- /** Search list of exchange rates */
647
- CommonService.prototype.getExchangeRate = function (date) {
648
- var _this = this;
649
- this.tasaCambioService.getAllTasaCambioLightInDate(date).subscribe(function (lExchangeRate) {
650
- _this.setLExchangeRate(lExchangeRate);
651
- }, function (error) {
652
- console.error('Error - getExchangeRate -El sistema no responde', error);
653
- });
654
- };
655
- /** Search list of exchange rates */
656
- CommonService.prototype.getProcess = function () {
657
- var _this = this;
658
- this.httpClient
659
- .get(this.environment.host.backend.plis + 'common/getAllProcesos')
660
- .subscribe(function (lProcess) {
661
- _this.setLProcess(lProcess);
662
- }, function (error) {
663
- console.error('Error - getProcess -El sistema no responde', error);
664
- });
665
- };
666
- CommonService.prototype.setLCurrencies = function (lCurrency) {
667
- for (var key in lCurrency) {
668
- var currency = Object.assign(new ngPliUtil.Moneda(), lCurrency[key]);
669
- lCurrency[key] = currency;
670
- }
671
- this.lCurrency = lCurrency;
672
- var lCurrencySlice = this.lCurrency.slice();
673
- localStorage.setItem('lCurrency', JSON.stringify(lCurrencySlice));
674
- this.currencyChanged.next(lCurrencySlice);
675
- };
676
- CommonService.prototype.setLCategory = function (lCategory) {
677
- for (var key in lCategory) {
678
- var category = Object.assign(new ngPliUtil.Rubro(), lCategory[key]);
679
- lCategory[key] = category;
680
- }
681
- this.lCategory = lCategory;
682
- var lCategorySlice = this.lCategory.slice();
683
- localStorage.setItem('lCategory', JSON.stringify(lCategorySlice));
684
- this.categoryChanged.next(lCategorySlice);
685
- };
686
- CommonService.prototype.setLLanguage = function (lLanguage) {
687
- this.lLanguage = lLanguage;
688
- var lLanguageSlice = this.lLanguage ? this.lLanguage.slice() : this.lLanguage;
689
- localStorage.setItem('lLanguage', JSON.stringify(lLanguageSlice));
690
- this.languageChanged.next(lLanguageSlice);
691
- };
692
- CommonService.prototype.setLExchangeRate = function (lExchangeRate) {
693
- for (var key in lExchangeRate) {
694
- var exchangeRate = Object.assign(new ngPliUtil.TasaCambio(), lExchangeRate[key]);
695
- lExchangeRate[key] = exchangeRate;
696
- }
697
- this.lExchangeRate = lExchangeRate;
698
- var lExchangeRateSlice = this.lExchangeRate
699
- ? this.lExchangeRate.slice()
700
- : this.lExchangeRate;
701
- localStorage.setItem('lExchangeRate', JSON.stringify(lExchangeRateSlice));
702
- this.exchangeRateChanged.next(lExchangeRateSlice);
703
- };
704
- CommonService.prototype.setLProcess = function (lProcess) {
705
- for (var key in lProcess) {
706
- var process = Object.assign(new ngPliUtil.Proceso(), lProcess[key]);
707
- lProcess[key] = process;
708
- }
709
- this.lProcess = lProcess;
710
- var lProcessSlice = this.lProcess ? this.lProcess.slice() : this.lProcess;
711
- localStorage.setItem('lProcess', JSON.stringify(lProcessSlice));
712
- this.processChanged.next(lProcessSlice);
713
- };
714
- CommonService.prototype.searchLCurrency = function () {
715
- var lCurrency = localStorage.getItem('lCurrency');
716
- if (!lCurrency || lCurrency === 'undefined') {
717
- this.getCurrencies();
718
- }
719
- else {
720
- this.setLCurrencies(JSON.parse(lCurrency));
721
- }
722
- };
723
- CommonService.prototype.searchLLanguage = function () {
724
- var lLanguage = localStorage.getItem('lLanguage');
725
- if (!lLanguage || lLanguage === 'undefined') {
726
- this.getLanguages();
727
- }
728
- else {
729
- this.setLLanguage(JSON.parse(lLanguage));
730
- }
731
- };
732
- CommonService.prototype.searchLCategory = function () {
733
- var lCategory = localStorage.getItem('lCategory');
734
- if (!lCategory || lCategory === 'undefined') {
735
- this.getCategories();
736
- }
737
- else {
738
- this.setLCategory(JSON.parse(lCategory));
739
- }
740
- };
741
- CommonService.prototype.searchLExchangeRate = function () {
742
- var searchER = false;
743
- var searchDate = ngPliUtil.DateUtil.getMomentTimeZone();
744
- // let searchDay = searchDate.date();
745
- var lExchangeRateString = localStorage.getItem('lExchangeRate');
746
- var lExchangeRate = [];
747
- if (lExchangeRateString &&
748
- lExchangeRateString != 'undefined' &&
749
- lExchangeRateString.length > 0) {
750
- lExchangeRate = JSON.parse(lExchangeRateString);
751
- if (lExchangeRate && lExchangeRate.length > 0) {
752
- var dayER = ngPliUtil.DateUtil.getFormatDateTimeZone(lExchangeRate[0].tcamFecha);
753
- if (!ngPliUtil.DateUtil.isDayEqualString(searchDate.format(), dayER)) {
754
- searchER = true;
755
- }
756
- }
757
- }
758
- else {
759
- searchER = true;
760
- }
761
- if (searchER || !lExchangeRate || lExchangeRate.length == 0) {
762
- this.getExchangeRate(searchDate.format('YYYY-MM-DD') + ' 00:00:00');
763
- }
764
- else {
765
- this.setLExchangeRate(lExchangeRate);
766
- }
767
- };
768
- CommonService.prototype.searchLProcess = function () {
769
- var lProcess = localStorage.getItem('lProcess');
770
- if (!lProcess || lProcess === 'undefined') {
771
- this.getProcess();
772
- }
773
- else {
774
- this.setLProcess(JSON.parse(lProcess));
775
- }
776
- };
777
- /**
778
- * It returns
779
- * @param html
780
- */
781
- CommonService.prototype.getBase64Pdf = function (requestPdf) {
782
- return this.httpClient.post(this.environment.host.backend.backoffice + 'pdf/getBase64Pdf', requestPdf, this.headerJson);
783
- };
784
- /**
785
- * It returns a pdf
786
- * @param lPdfRequest
787
- */
788
- CommonService.prototype.getBase64PdfList = function (lPdfRequest) {
789
- return this.httpClient.post(this.environment.host.backend.backoffice + 'pdf/getBase64PdfList', lPdfRequest, this.headerJson);
790
- };
791
- /**
792
- * It returns
793
- * @param html
794
- */
795
- CommonService.prototype.getBase64PdfByUrl = function (urlFile) {
796
- return this.httpClient.post(this.environment.host.backend.backoffice + 'pdf/getBase64PdfByUrl', urlFile, this.headerJson);
797
- };
798
- /**
799
- * It returns
800
- * @param urlFile
801
- */
802
- CommonService.prototype.getBase64ImageByUrl = function (urlFile) {
803
- return this.httpClient.post(this.environment.host.backend.backoffice + 'pdf/getBase64ImageByUrl', urlFile, this.headerJson);
804
- };
805
- /** Get the actual date */
806
- CommonService.prototype.getActualDate = function () {
807
- return this.httpClient.get(this.environment.host.backend.configuration + 'configuration/getActualDate');
808
- };
809
- CommonService.decorators = [
810
- { type: i0.Injectable, args: [{
811
- providedIn: 'root'
812
- },] }
813
- ];
814
- CommonService.ctorParameters = function () {
815
- return [
816
- { type: undefined, decorators: [{ type: i0.Inject, args: ['environment',] }] },
817
- { type: i1$1.HttpClient },
818
- { type: TasaCambioService }
819
- ];
820
- };
821
- CommonService.ngInjectableDef = i0.defineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0.inject("environment"), i0.inject(i1$1.HttpClient), i0.inject(TasaCambioService)); }, token: CommonService, providedIn: "root" });
822
- return CommonService;
823
- }());
824
-
825
552
  var HashService = /** @class */ (function () {
826
553
  function HashService(environment, httpClient) {
827
554
  this.environment = environment;
@@ -962,27 +689,173 @@
962
689
  });
963
690
  });
964
691
  };
965
- AuthenticationService.decorators = [
692
+ AuthenticationService.decorators = [
693
+ { type: i0.Injectable, args: [{
694
+ providedIn: 'root'
695
+ },] }
696
+ ];
697
+ AuthenticationService.ctorParameters = function () {
698
+ return [
699
+ { type: undefined, decorators: [{ type: i0.Inject, args: ['environment',] }] },
700
+ { type: i1$1.HttpClient },
701
+ { type: HashService }
702
+ ];
703
+ };
704
+ AuthenticationService.ngInjectableDef = i0.defineInjectable({ factory: function AuthenticationService_Factory() { return new AuthenticationService(i0.inject("environment"), i0.inject(i1$1.HttpClient), i0.inject(HashService)); }, token: AuthenticationService, providedIn: "root" });
705
+ return AuthenticationService;
706
+ }());
707
+
708
+ var StatusService = /** @class */ (function () {
709
+ function StatusService(environment, httpClient, authService) {
710
+ this.environment = environment;
711
+ this.httpClient = httpClient;
712
+ this.authService = authService;
713
+ this.headerJson = { headers: new i1$1.HttpHeaders({ 'Content-Type': 'application/json' }) };
714
+ }
715
+ /** It returns all list of status by prom code */
716
+ StatusService.prototype.getById = function (statusId) {
717
+ return this.httpClient.get(this.environment.host.backend.configuration + 'pliCnfStatus/getById', { params: new i1$1.HttpParams().set('statusId', statusId.toString()) });
718
+ };
719
+ /** It returns all list of status by prom code */
720
+ StatusService.prototype.getAllByPromCode = function (promCode) {
721
+ return this.httpClient.get(this.environment.host.backend.configuration + 'pliCnfStatus/getAllByPromCode', { params: new i1$1.HttpParams().set('promCodigo', promCode.toString()) });
722
+ };
723
+ /** It returns all list of status by prom code */
724
+ StatusService.prototype.getAllByPromCodeAndName = function (promCode, name) {
725
+ return this.httpClient.get(this.environment.host.backend.configuration + 'pliCnfStatus/getAllByPromCodeAndName', { params: new i1$1.HttpParams().set('promCodigo', promCode.toString()).set('name', name) });
726
+ };
727
+ StatusService.prototype.getFinalStatusByStaticInteraction = function (promCode, staticInteractionId) {
728
+ return this.httpClient.get(this.environment.host.backend.configuration +
729
+ 'pliCnfStatus/getFinalStatusByStaticInteraction', {
730
+ params: new i1$1.HttpParams()
731
+ .set('promCodigo', promCode.toString())
732
+ .set('staticInteractionId', staticInteractionId.toString())
733
+ });
734
+ };
735
+ /** It returns all list of status by prom code */
736
+ StatusService.prototype.getInitialStatusByPromCode = function (promCode) {
737
+ return this.httpClient.get(this.environment.host.backend.configuration + 'pliCnfStatus/getInitialStatusByPromCode', { params: new i1$1.HttpParams().set('promCodigo', promCode.toString()) });
738
+ };
739
+ StatusService.prototype.save = function (cnfStatus) {
740
+ return this.httpClient.post(this.environment.host.backend.configuration + 'pliCnfStatus/save', cnfStatus, ngPliUtil.HEADER_JSON);
741
+ };
742
+ StatusService.prototype.getStatusByPromcodigoAndPageSection = function (promCodigo, pageId) {
743
+ return this.httpClient.get(this.environment.host.backend.configuration +
744
+ 'pliCnfStatus/getStatusByPromcodigoAndPageSection', {
745
+ params: new i1$1.HttpParams()
746
+ .set('promCodigo', promCodigo.toString())
747
+ .set('pageId', pageId.toString())
748
+ });
749
+ };
750
+ StatusService.prototype.getStatusByPromCodigoAndCategoryId = function (promCodigo, categoryId) {
751
+ return this.httpClient.get(this.environment.host.backend.configuration +
752
+ 'pliCnfStatus/getStatusByPromCodigoAndCategoryId', {
753
+ params: new i1$1.HttpParams()
754
+ .set('promCodigo', promCodigo.toString())
755
+ .set('categoryId', categoryId.toString())
756
+ });
757
+ };
758
+ StatusService.prototype.getByInitialStatusAndPromCodigoAndCategoryId = function (initialStatus, promCodigo, categoryId) {
759
+ return this.httpClient.get(this.environment.host.backend.configuration +
760
+ 'pliCnfStatus/getByInitialStatusAndPromCodigoAndCategoryId', {
761
+ params: new i1$1.HttpParams()
762
+ .set('initialStatus', initialStatus.toString())
763
+ .set('promCodigo', promCodigo.toString())
764
+ .set('categoryId', categoryId.toString())
765
+ });
766
+ };
767
+ StatusService.prototype.getByPromCodigoAndFinalStatus = function (promCodigo, finalStatus) {
768
+ return this.httpClient.get(this.environment.host.backend.configuration +
769
+ 'pliCnfStatus/getByPromCodigoAndFinalStatus', {
770
+ params: new i1$1.HttpParams()
771
+ .set('promCodigo', promCodigo.toString())
772
+ .set('finalStatus', finalStatus.toString())
773
+ });
774
+ };
775
+ StatusService.prototype.getInitialStatusByStaticInteraction = function (promCodigo, staticInteractionId) {
776
+ return this.httpClient.get(this.environment.host.backend.configuration +
777
+ 'pliCnfStatus/getInitialStatusByStaticInteraction', {
778
+ params: new i1$1.HttpParams()
779
+ .set('promCodigo', promCodigo)
780
+ .set('staticInteractionId', staticInteractionId)
781
+ });
782
+ };
783
+ StatusService.prototype.getConfigCloningStatusMap = function (lStatus) {
784
+ return this.httpClient.post(this.environment.host.backend.configuration + 'pliCnfStatus/getConfigCloningStatusMap', lStatus);
785
+ };
786
+ StatusService.decorators = [
787
+ { type: i0.Injectable, args: [{
788
+ providedIn: 'root'
789
+ },] }
790
+ ];
791
+ StatusService.ctorParameters = function () {
792
+ return [
793
+ { type: undefined, decorators: [{ type: i0.Inject, args: ['environment',] }] },
794
+ { type: i1$1.HttpClient },
795
+ { type: AuthenticationService }
796
+ ];
797
+ };
798
+ StatusService.ngInjectableDef = i0.defineInjectable({ factory: function StatusService_Factory() { return new StatusService(i0.inject("environment"), i0.inject(i1$1.HttpClient), i0.inject(AuthenticationService)); }, token: StatusService, providedIn: "root" });
799
+ return StatusService;
800
+ }());
801
+
802
+ var ConfigurationService = /** @class */ (function () {
803
+ function ConfigurationService(environment, httpClient) {
804
+ this.environment = environment;
805
+ this.httpClient = httpClient;
806
+ }
807
+ /** Get the actual date */
808
+ ConfigurationService.prototype.getActualDate = function () {
809
+ return this.httpClient.get(this.environment.host.backend.configuration + 'configuration/getActualDate');
810
+ };
811
+ /** Get the actual date */
812
+ ConfigurationService.prototype.getDate = function (date) {
813
+ if (date === void 0) {
814
+ date = undefined;
815
+ }
816
+ date = date === undefined ? null : date;
817
+ // if (date !== undefined) {
818
+ return this.httpClient.post(this.environment.host.backend.configuration + 'configuration/getDate', date, ngPliUtil.HEADER_JSON);
819
+ // } else {
820
+ // return this.httpClient.post(
821
+ // this.environment.host.backend.configuration + 'configuration/getDate',
822
+ // null,
823
+ // HEADER_JSON
824
+ // );
825
+ // }
826
+ // return this.httpClient.get(
827
+ // this.environment.host.backend.configuration + 'configuration/getActualDate'
828
+ // );
829
+ };
830
+ ConfigurationService.prototype.getFileByUrl = function (url, name) {
831
+ var headers = new i1$1.HttpHeaders();
832
+ headers.set('Accept', 'application/pdf');
833
+ headers.set('Authorization', 'Bearer ' + ngPliUtil.AuthenticationUtil.getToken());
834
+ return this.httpClient.get(this.environment.host.backend.configuration + 'configuration/getFileByUrl', {
835
+ params: new i1$1.HttpParams().set('url', url).set('name', name),
836
+ headers: headers,
837
+ responseType: 'blob'
838
+ });
839
+ };
840
+ ConfigurationService.decorators = [
966
841
  { type: i0.Injectable, args: [{
967
842
  providedIn: 'root'
968
843
  },] }
969
844
  ];
970
- AuthenticationService.ctorParameters = function () {
845
+ ConfigurationService.ctorParameters = function () {
971
846
  return [
972
847
  { type: undefined, decorators: [{ type: i0.Inject, args: ['environment',] }] },
973
- { type: i1$1.HttpClient },
974
- { type: HashService }
848
+ { type: i1$1.HttpClient }
975
849
  ];
976
850
  };
977
- AuthenticationService.ngInjectableDef = i0.defineInjectable({ factory: function AuthenticationService_Factory() { return new AuthenticationService(i0.inject("environment"), i0.inject(i1$1.HttpClient), i0.inject(HashService)); }, token: AuthenticationService, providedIn: "root" });
978
- return AuthenticationService;
851
+ ConfigurationService.ngInjectableDef = i0.defineInjectable({ factory: function ConfigurationService_Factory() { return new ConfigurationService(i0.inject("environment"), i0.inject(i1$1.HttpClient)); }, token: ConfigurationService, providedIn: "root" });
852
+ return ConfigurationService;
979
853
  }());
980
854
 
981
855
  var PppService = /** @class */ (function () {
982
- function PppService(environment, httpClient, authService) {
856
+ function PppService(environment, httpClient) {
983
857
  this.environment = environment;
984
858
  this.httpClient = httpClient;
985
- this.authService = authService;
986
859
  this.headerJson = { headers: new i1$1.HttpHeaders({ 'Content-Type': 'application/json' }) };
987
860
  /** This observable allows to verify if ppp is created */
988
861
  this.subjectPpp = new rxjs.BehaviorSubject(undefined);
@@ -1578,24 +1451,315 @@
1578
1451
  }
1579
1452
  }
1580
1453
  }
1581
- return lPliPatrocinador;
1454
+ return lPliPatrocinador;
1455
+ };
1456
+ /** It contains the key of the json web token */
1457
+ PppService.TOKEN_PPP = 'tokenPpp';
1458
+ PppService.decorators = [
1459
+ { type: i0.Injectable, args: [{
1460
+ providedIn: 'root'
1461
+ },] }
1462
+ ];
1463
+ PppService.ctorParameters = function () {
1464
+ return [
1465
+ { type: undefined, decorators: [{ type: i0.Inject, args: ['environment',] }] },
1466
+ { type: i1$1.HttpClient }
1467
+ ];
1468
+ };
1469
+ PppService.ngInjectableDef = i0.defineInjectable({ factory: function PppService_Factory() { return new PppService(i0.inject("environment"), i0.inject(i1$1.HttpClient)); }, token: PppService, providedIn: "root" });
1470
+ return PppService;
1471
+ }());
1472
+
1473
+ var CommonService = /** @class */ (function () {
1474
+ function CommonService(environment, httpClient, tasaCambioService, pppService, statusService, configurationService) {
1475
+ this.environment = environment;
1476
+ this.httpClient = httpClient;
1477
+ this.tasaCambioService = tasaCambioService;
1478
+ this.pppService = pppService;
1479
+ this.statusService = statusService;
1480
+ this.configurationService = configurationService;
1481
+ this.headerJson = { headers: new i1$1.HttpHeaders({ 'Content-Type': 'application/json' }) };
1482
+ /** Notify when the currencies info change */
1483
+ this.currencyChanged = new rxjs.BehaviorSubject(undefined);
1484
+ /** Notify when the categories info change */
1485
+ this.categoryChanged = new rxjs.BehaviorSubject(undefined);
1486
+ /** Notify when the exchange rate info change */
1487
+ this.exchangeRateChanged = new rxjs.BehaviorSubject(undefined);
1488
+ /** Notify when the idioma has changed */
1489
+ this.languageChanged = new rxjs.BehaviorSubject(undefined);
1490
+ /** Notify when the process info change */
1491
+ this.processChanged = new rxjs.BehaviorSubject(undefined);
1492
+ this.initValues();
1493
+ }
1494
+ /** It has an observable to notify if the language is changed */
1495
+ CommonService.prototype.onLanguageChanged = function () {
1496
+ return this.languageChanged.asObservable();
1497
+ };
1498
+ /** It has an observable to notify if the cateogry is changed */
1499
+ CommonService.prototype.onCurrencyChanged = function () {
1500
+ return this.currencyChanged.asObservable();
1501
+ };
1502
+ /** It has an observable to notify if the category is changed */
1503
+ CommonService.prototype.onCategoryChanged = function () {
1504
+ return this.categoryChanged.asObservable();
1505
+ };
1506
+ /** It has an observable to notify if the exchange rate is changed */
1507
+ CommonService.prototype.onExchangeRateChanged = function () {
1508
+ return this.exchangeRateChanged.asObservable();
1509
+ };
1510
+ /** It has an observable to notify if the list of process is changed */
1511
+ CommonService.prototype.onProcessChanged = function () {
1512
+ return this.processChanged.asObservable();
1513
+ };
1514
+ /**
1515
+ * Search the info of the variables, first try to search in the local storage,
1516
+ * if not find info, get the info from the services
1517
+ */
1518
+ CommonService.prototype.initValues = function () {
1519
+ this.searchLCurrency();
1520
+ this.searchLCategory();
1521
+ this.searchLExchangeRate();
1522
+ this.searchLLanguage();
1523
+ this.searchLProcess();
1524
+ };
1525
+ /**
1526
+ * Remove all variables of the local storage
1527
+ */
1528
+ CommonService.prototype.reloadValues = function () {
1529
+ localStorage.removeItem('lCurrency');
1530
+ localStorage.removeItem('lCategory');
1531
+ localStorage.removeItem('lExchangeRate');
1532
+ localStorage.removeItem('lLanguage');
1533
+ localStorage.removeItem('lProcess');
1534
+ };
1535
+ /** Search list of currencies */
1536
+ CommonService.prototype.getLanguages = function () {
1537
+ var _this = this;
1538
+ this.httpClient
1539
+ .get(this.environment.host.backend.plis + 'idioma/getAll')
1540
+ .subscribe(function (lLanguage) {
1541
+ _this.setLLanguage(lLanguage);
1542
+ }, function (error) {
1543
+ console.error('Error - getListCurrencies -El sistema no responde', error);
1544
+ });
1545
+ };
1546
+ /** Search list of currencies */
1547
+ CommonService.prototype.getCurrencies = function () {
1548
+ var _this = this;
1549
+ this.httpClient
1550
+ .get(this.environment.host.backend.plis + 'moneda/getAll')
1551
+ .subscribe(function (lCurrency) {
1552
+ _this.setLCurrencies(lCurrency);
1553
+ }, function (error) {
1554
+ console.error('Error - getListCurrencies -El sistema no responde', error);
1555
+ });
1556
+ };
1557
+ /** Search list of categories */
1558
+ CommonService.prototype.getCategories = function () {
1559
+ var _this = this;
1560
+ this.httpClient
1561
+ .get(this.environment.host.backend.plis + 'rubro/getAll', {
1562
+ params: new i1$1.HttpParams().set('cargarListas', 'true')
1563
+ })
1564
+ .subscribe(function (lCategory) {
1565
+ _this.setLCategory(lCategory);
1566
+ }, function (error) {
1567
+ console.error('Error - getCategories -El sistema no responde', error);
1568
+ });
1569
+ };
1570
+ /** Search list of exchange rates */
1571
+ CommonService.prototype.getExchangeRate = function (date) {
1572
+ var _this = this;
1573
+ this.tasaCambioService.getAllTasaCambioLightInDate(date).subscribe(function (lExchangeRate) {
1574
+ _this.setLExchangeRate(lExchangeRate);
1575
+ }, function (error) {
1576
+ console.error('Error - getExchangeRate -El sistema no responde', error);
1577
+ });
1578
+ };
1579
+ /** Search list of exchange rates */
1580
+ CommonService.prototype.getProcess = function () {
1581
+ var _this = this;
1582
+ this.httpClient
1583
+ .get(this.environment.host.backend.plis + 'common/getAllProcesos')
1584
+ .subscribe(function (lProcess) {
1585
+ _this.setLProcess(lProcess);
1586
+ }, function (error) {
1587
+ console.error('Error - getProcess -El sistema no responde', error);
1588
+ });
1589
+ };
1590
+ CommonService.prototype.setLCurrencies = function (lCurrency) {
1591
+ for (var key in lCurrency) {
1592
+ var currency = Object.assign(new ngPliUtil.Moneda(), lCurrency[key]);
1593
+ lCurrency[key] = currency;
1594
+ }
1595
+ this.lCurrency = lCurrency;
1596
+ var lCurrencySlice = this.lCurrency.slice();
1597
+ localStorage.setItem('lCurrency', JSON.stringify(lCurrencySlice));
1598
+ this.currencyChanged.next(lCurrencySlice);
1599
+ };
1600
+ CommonService.prototype.setLCategory = function (lCategory) {
1601
+ for (var key in lCategory) {
1602
+ var category = Object.assign(new ngPliUtil.Rubro(), lCategory[key]);
1603
+ lCategory[key] = category;
1604
+ }
1605
+ this.lCategory = lCategory;
1606
+ var lCategorySlice = this.lCategory.slice();
1607
+ localStorage.setItem('lCategory', JSON.stringify(lCategorySlice));
1608
+ this.categoryChanged.next(lCategorySlice);
1609
+ };
1610
+ CommonService.prototype.setLLanguage = function (lLanguage) {
1611
+ this.lLanguage = lLanguage;
1612
+ var lLanguageSlice = this.lLanguage ? this.lLanguage.slice() : this.lLanguage;
1613
+ localStorage.setItem('lLanguage', JSON.stringify(lLanguageSlice));
1614
+ this.languageChanged.next(lLanguageSlice);
1615
+ };
1616
+ CommonService.prototype.setLExchangeRate = function (lExchangeRate) {
1617
+ for (var key in lExchangeRate) {
1618
+ var exchangeRate = Object.assign(new ngPliUtil.TasaCambio(), lExchangeRate[key]);
1619
+ lExchangeRate[key] = exchangeRate;
1620
+ }
1621
+ this.lExchangeRate = lExchangeRate;
1622
+ var lExchangeRateSlice = this.lExchangeRate
1623
+ ? this.lExchangeRate.slice()
1624
+ : this.lExchangeRate;
1625
+ localStorage.setItem('lExchangeRate', JSON.stringify(lExchangeRateSlice));
1626
+ this.exchangeRateChanged.next(lExchangeRateSlice);
1627
+ };
1628
+ CommonService.prototype.setLProcess = function (lProcess) {
1629
+ for (var key in lProcess) {
1630
+ var process = Object.assign(new ngPliUtil.Proceso(), lProcess[key]);
1631
+ lProcess[key] = process;
1632
+ }
1633
+ this.lProcess = lProcess;
1634
+ var lProcessSlice = this.lProcess ? this.lProcess.slice() : this.lProcess;
1635
+ localStorage.setItem('lProcess', JSON.stringify(lProcessSlice));
1636
+ this.processChanged.next(lProcessSlice);
1637
+ };
1638
+ CommonService.prototype.searchLCurrency = function () {
1639
+ var lCurrency = localStorage.getItem('lCurrency');
1640
+ if (!lCurrency || lCurrency === 'undefined') {
1641
+ this.getCurrencies();
1642
+ }
1643
+ else {
1644
+ this.setLCurrencies(JSON.parse(lCurrency));
1645
+ }
1646
+ };
1647
+ CommonService.prototype.searchLLanguage = function () {
1648
+ var lLanguage = localStorage.getItem('lLanguage');
1649
+ if (!lLanguage || lLanguage === 'undefined') {
1650
+ this.getLanguages();
1651
+ }
1652
+ else {
1653
+ this.setLLanguage(JSON.parse(lLanguage));
1654
+ }
1655
+ };
1656
+ CommonService.prototype.searchLCategory = function () {
1657
+ var lCategory = localStorage.getItem('lCategory');
1658
+ if (!lCategory || lCategory === 'undefined') {
1659
+ this.getCategories();
1660
+ }
1661
+ else {
1662
+ this.setLCategory(JSON.parse(lCategory));
1663
+ }
1664
+ };
1665
+ CommonService.prototype.searchLExchangeRate = function () {
1666
+ var searchER = false;
1667
+ var searchDate = ngPliUtil.DateUtil.getMomentTimeZone();
1668
+ // let searchDay = searchDate.date();
1669
+ var lExchangeRateString = localStorage.getItem('lExchangeRate');
1670
+ var lExchangeRate = [];
1671
+ if (lExchangeRateString &&
1672
+ lExchangeRateString != 'undefined' &&
1673
+ lExchangeRateString.length > 0) {
1674
+ lExchangeRate = JSON.parse(lExchangeRateString);
1675
+ if (lExchangeRate && lExchangeRate.length > 0) {
1676
+ var dayER = ngPliUtil.DateUtil.getFormatDateTimeZone(lExchangeRate[0].tcamFecha);
1677
+ if (!ngPliUtil.DateUtil.isDayEqualString(searchDate.format(), dayER)) {
1678
+ searchER = true;
1679
+ }
1680
+ }
1681
+ }
1682
+ else {
1683
+ searchER = true;
1684
+ }
1685
+ if (searchER || !lExchangeRate || lExchangeRate.length == 0) {
1686
+ this.getExchangeRate(searchDate.format('YYYY-MM-DD') + ' 00:00:00');
1687
+ }
1688
+ else {
1689
+ this.setLExchangeRate(lExchangeRate);
1690
+ }
1582
1691
  };
1583
- /** It contains the key of the json web token */
1584
- PppService.TOKEN_PPP = 'tokenPpp';
1585
- PppService.decorators = [
1692
+ CommonService.prototype.searchLProcess = function () {
1693
+ var lProcess = localStorage.getItem('lProcess');
1694
+ if (!lProcess || lProcess === 'undefined') {
1695
+ this.getProcess();
1696
+ }
1697
+ else {
1698
+ this.setLProcess(JSON.parse(lProcess));
1699
+ }
1700
+ };
1701
+ /**
1702
+ * It returns
1703
+ * @param html
1704
+ */
1705
+ CommonService.prototype.getBase64Pdf = function (requestPdf) {
1706
+ return this.httpClient.post(this.environment.host.backend.backoffice + 'pdf/getBase64Pdf', requestPdf, this.headerJson);
1707
+ };
1708
+ /**
1709
+ * It returns a pdf
1710
+ * @param lPdfRequest
1711
+ */
1712
+ CommonService.prototype.getBase64PdfList = function (lPdfRequest) {
1713
+ return this.httpClient.post(this.environment.host.backend.backoffice + 'pdf/getBase64PdfList', lPdfRequest, this.headerJson);
1714
+ };
1715
+ /**
1716
+ * It returns
1717
+ * @param html
1718
+ */
1719
+ CommonService.prototype.getBase64PdfByUrl = function (urlFile) {
1720
+ return this.httpClient.post(this.environment.host.backend.backoffice + 'pdf/getBase64PdfByUrl', urlFile, this.headerJson);
1721
+ };
1722
+ /**
1723
+ * It returns
1724
+ * @param urlFile
1725
+ */
1726
+ CommonService.prototype.getBase64ImageByUrl = function (urlFile) {
1727
+ return this.httpClient.post(this.environment.host.backend.backoffice + 'pdf/getBase64ImageByUrl', urlFile, this.headerJson);
1728
+ };
1729
+ /** Get the actual date */
1730
+ CommonService.prototype.getActualDate = function () {
1731
+ return this.httpClient.get(this.environment.host.backend.configuration + 'configuration/getActualDate');
1732
+ };
1733
+ /** Get the actual date */
1734
+ CommonService.prototype.validateCloseApplicationProcess = function (promCodigo, appStateId, cnfIniStateId) {
1735
+ var params = new i1$1.HttpParams()
1736
+ .set('promCodigo', promCodigo.toString())
1737
+ .set('appStateId', appStateId.toString());
1738
+ if (cnfIniStateId != undefined) {
1739
+ params.set('cnfIniStateId', cnfIniStateId.toString());
1740
+ }
1741
+ return this.httpClient.get(this.environment.host.backend.configuration +
1742
+ 'configuration/validateCloseApplicationProcess', {
1743
+ params: params
1744
+ });
1745
+ };
1746
+ CommonService.decorators = [
1586
1747
  { type: i0.Injectable, args: [{
1587
1748
  providedIn: 'root'
1588
1749
  },] }
1589
1750
  ];
1590
- PppService.ctorParameters = function () {
1751
+ CommonService.ctorParameters = function () {
1591
1752
  return [
1592
1753
  { type: undefined, decorators: [{ type: i0.Inject, args: ['environment',] }] },
1593
1754
  { type: i1$1.HttpClient },
1594
- { type: AuthenticationService }
1755
+ { type: TasaCambioService },
1756
+ { type: PppService },
1757
+ { type: StatusService },
1758
+ { type: ConfigurationService }
1595
1759
  ];
1596
1760
  };
1597
- PppService.ngInjectableDef = i0.defineInjectable({ factory: function PppService_Factory() { return new PppService(i0.inject("environment"), i0.inject(i1$1.HttpClient), i0.inject(AuthenticationService)); }, token: PppService, providedIn: "root" });
1598
- return PppService;
1761
+ CommonService.ngInjectableDef = i0.defineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0.inject("environment"), i0.inject(i1$1.HttpClient), i0.inject(TasaCambioService), i0.inject(PppService), i0.inject(StatusService), i0.inject(ConfigurationService)); }, token: CommonService, providedIn: "root" });
1762
+ return CommonService;
1599
1763
  }());
1600
1764
 
1601
1765
  var BudgetService = /** @class */ (function () {
@@ -3430,12 +3594,6 @@
3430
3594
  params: new i1$1.HttpParams().set('formId', formId.toString())
3431
3595
  });
3432
3596
  };
3433
- ConfigurationDocumentService.prototype.getByPromCodigoAndAutomaticValidation = function (promCodigo) {
3434
- return this.httpClient.get(this.environment.host.backend.configuration +
3435
- 'configuration-document/getByPromCodigoAndAutomaticValidation', {
3436
- params: new i1$1.HttpParams().set('promCodigo', promCodigo.toString())
3437
- });
3438
- };
3439
3597
  /** */
3440
3598
  ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO = 'espacio';
3441
3599
  /** */
@@ -4364,7 +4522,7 @@
4364
4522
  ConfigurationTokenComponent.decorators = [
4365
4523
  { type: i0.Component, args: [{
4366
4524
  selector: 'pli-configuration-token',
4367
- template: "<div\r\n\t*ngIf=\"ready\"\r\n\tpliAuthorityDirective\r\n\t[authorities]=\"[p('ROLE_TOKENS_CONSULTAR')]\"\r\n\t[patCodigo]=\"patCodigo\"\r\n\t[externalAllowed]=\"false\"\r\n>\r\n\t<div class=\"row\">\r\n\t\t<div class=\"col-md-12\">\r\n\t\t\t<h4 class=\"no-margin-top\" *ngIf=\"!showAsTitle\">\r\n\t\t\t\tTokens formulario, documentos, presupuesto, tareas y est\u00E1ticos\r\n\t\t\t</h4>\r\n\t\t\t<label class=\"no-margin-top form-control-label\" *ngIf=\"showAsTitle\">\r\n\t\t\t\tTokens formulario, documentos, presupuesto, tareas y est\u00E1ticos\r\n\t\t\t</label>\r\n\t\t\t<p-accordion [multiple]=\"true\">\r\n\t\t\t\t<ng-container *ngFor=\"let groupToken of lStaticToken\">\r\n\t\t\t\t\t<p-accordionTab\r\n\t\t\t\t\t\t*ngIf=\"validateVisibility(groupToken.tokenType)\"\r\n\t\t\t\t\t\theader=\"{{ groupToken.title.value }}\"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<div *ngFor=\"let panel of groupToken.value\">\r\n\t\t\t\t\t\t\t<h4 *ngIf=\"groupToken.value && groupToken.value.length > 1\">\r\n\t\t\t\t\t\t\t\t{{ panel.title.value }}\r\n\t\t\t\t\t\t\t</h4>\r\n\t\t\t\t\t\t\t<hr\r\n\t\t\t\t\t\t\t\t*ngIf=\"groupToken.value && groupToken.value.length > 1\"\r\n\t\t\t\t\t\t\t\tstyle=\"margin: 5px 0\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<div *ngFor=\"let staticToken of panel.value\" class=\"ui-g\">\r\n\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t*ngIf=\"staticToken[0] && staticToken[0].key\"\r\n\t\t\t\t\t\t\t\t\tclass=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"copyMessage(staticToken[0].key)\"\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"{{ staticToken[0].key }}\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t<span title=\"{{ staticToken[0].value }}\">{{\r\n\t\t\t\t\t\t\t\t\t\tstaticToken[0].value\r\n\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t*ngIf=\"staticToken[1] && staticToken[1].key\"\r\n\t\t\t\t\t\t\t\t\tclass=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"copyMessage(staticToken[1].key)\"\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"{{ staticToken[1].key }}\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t<span title=\"{{ staticToken[1].value }}\">{{\r\n\t\t\t\t\t\t\t\t\t\tstaticToken[1].value\r\n\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t*ngIf=\"staticToken[2] && staticToken[2].key\"\r\n\t\t\t\t\t\t\t\t\tclass=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"copyMessage(staticToken[2].key)\"\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"{{ staticToken[2].key }}\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t<span title=\"{{ staticToken[2].value }}\">{{\r\n\t\t\t\t\t\t\t\t\t\tstaticToken[2].value\r\n\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t*ngIf=\"staticToken[3] && staticToken[3].key\"\r\n\t\t\t\t\t\t\t\t\tclass=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"copyMessage(staticToken[3].key)\"\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"{{ staticToken[3].key }}\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t<span title=\"{{ staticToken[3].value }}\">{{\r\n\t\t\t\t\t\t\t\t\t\tstaticToken[3].value\r\n\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</p-accordionTab>\r\n\t\t\t\t</ng-container>\r\n\t\t\t\t<p-accordionTab\r\n\t\t\t\t\t*ngIf=\"\r\n\t\t\t\t\t\tlCalculatedToken && showCalculatedForm === false && showCalculated === true\r\n\t\t\t\t\t\"\r\n\t\t\t\t\theader=\"Tokens calculados\"\r\n\t\t\t\t>\r\n\t\t\t\t\t<div *ngFor=\"let token of lCalculatedToken\" class=\"ui-g\">\r\n\t\t\t\t\t\t<div class=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\">\r\n\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t(click)=\"copyMessage(labelCalculated(token))\"\r\n\t\t\t\t\t\t\t\ttitle=\"{{ labelCalculated(token) }}\"\r\n\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t<span title=\"{{ token.name }}\">{{ token.name }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</p-accordionTab>\r\n\t\t\t\t<p-accordionTab *ngIf=\"snapShotTokens && showSnapshot\" header=\"Tokens snapshot\">\r\n\t\t\t\t\t<div *ngFor=\"let token of snapShotTokens\" class=\"ui-g\">\r\n\t\t\t\t\t\t<div class=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\">\r\n\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t(click)=\"copyMessage(labelSnapshot(token))\"\r\n\t\t\t\t\t\t\t\ttitle=\"{{ labelSnapshot(token) }}\"\r\n\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t<span title=\"{{ token.name }}\">{{ token.name }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</p-accordionTab>\r\n\t\t\t\t<p-accordionTab *ngIf=\"lGuaranteeTokens && showGuatantee\" header=\"Tokens Garantias\">\r\n\t\t\t\t\t<div *ngFor=\"let token of lGuaranteeTokens\" class=\"ui-g\">\r\n\t\t\t\t\t\t<div class=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\">\r\n\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t(click)=\"copyMessage(labelGuarantee(token))\"\r\n\t\t\t\t\t\t\t\ttitle=\"{{ labelGuarantee(token) }}\"\r\n\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t<span title=\"{{ token.name }}\">{{ token.name }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</p-accordionTab>\r\n\t\t\t</p-accordion>\r\n\t\t</div>\r\n\t\t<div\r\n\t\t\tclass=\"col-md-12\"\r\n\t\t\t*ngIf=\"lCalculatedToken && showCalculatedForm === true && showCalculated === true\"\r\n\t\t>\r\n\t\t\t<span style=\"width: 1px; height: 10px\">&nbsp;</span>\r\n\t\t\t<h4 class=\"no-margin-top\">Tokens calculados</h4>\r\n\t\t\t<p-table [value]=\"lCalculatedToken\" [responsive]=\"true\">\r\n\t\t\t\t<ng-template pTemplate=\"header\">\r\n\t\t\t\t\t<tr class=\"text-align-center\">\r\n\t\t\t\t\t\t<th class=\"text-align-center\" width=\"40%\">Nombre</th>\r\n\t\t\t\t\t\t<th class=\"text-align-center\">Formula</th>\r\n\t\t\t\t\t\t<th class=\"text-align-center\">Creado</th>\r\n\t\t\t\t\t\t<th class=\"text-align-center\">Modificado</th>\r\n\t\t\t\t\t\t<th class=\"text-align-center\">Acciones</th>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</ng-template>\r\n\t\t\t\t<ng-template pTemplate=\"body\" let-token>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t(click)=\"copyMessage(labelCalculated(token))\"\r\n\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px\"\r\n\t\t\t\t\t\t\t\ttitle=\"{{ labelCalculated(token) }}\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t{{ token.name }}\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td class=\"cut-line\">{{ token.formula }}</td>\r\n\t\t\t\t\t\t<td>{{ token.createdAt | date: 'dd MMM yyyy' | lowercase }}</td>\r\n\t\t\t\t\t\t<td>{{ token.modifiedAt | date: 'dd MMM yyyy' | lowercase }}</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<div class=\"btn-group\" role=\"group\">\r\n\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\tclass=\"btn btn-default\"\r\n\t\t\t\t\t\t\t\t\t(click)=\"initForm(token)\"\r\n\t\t\t\t\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t\t\t\t\t[authorities]=\"[p('ROLE_TOKENS_CREAR_EDITAR')]\"\r\n\t\t\t\t\t\t\t\t\t[patCodigo]=\"patCodigo\"\r\n\t\t\t\t\t\t\t\t\t[externalAllowed]=\"false\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\tEditar\r\n\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\tclass=\"btn btn-default dropdown-toggle\"\r\n\t\t\t\t\t\t\t\t\tdata-toggle=\"dropdown\"\r\n\t\t\t\t\t\t\t\t\taria-haspopup=\"true\"\r\n\t\t\t\t\t\t\t\t\taria-expanded=\"false\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<span class=\"caret\"></span>\r\n\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t<ul class=\"dropdown-menu\">\r\n\t\t\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t\t\t\t\thref=\"Javascript:;\"\r\n\t\t\t\t\t\t\t\t\t\t\t(click)=\"delete(token)\"\r\n\t\t\t\t\t\t\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t\t\t\t\t\t\t[authorities]=\"[p('ROLE_TOKENS_ELIMINAR')]\"\r\n\t\t\t\t\t\t\t\t\t\t\t[patCodigo]=\"patCodigo\"\r\n\t\t\t\t\t\t\t\t\t\t\t[externalAllowed]=\"false\"\r\n\t\t\t\t\t\t\t\t\t\t\t>Eliminar</a\r\n\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</ng-template>\r\n\t\t\t</p-table>\r\n\t\t\t<div class=\"text-align-right\" style=\"padding: 0.75rem 1.25rem\">\r\n\t\t\t\t<button\r\n\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\tclass=\"btn btn-primary\"\r\n\t\t\t\t\t(click)=\"initForm(null)\"\r\n\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t[authorities]=\"[p('ROLE_TOKENS_CREAR_EDITAR')]\"\r\n\t\t\t\t\t[patCodigo]=\"patCodigo\"\r\n\t\t\t\t\t[externalAllowed]=\"false\"\r\n\t\t\t\t>\r\n\t\t\t\t\tAgregar nuevo\r\n\t\t\t\t</button>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div>\r\n\t\t\t\t<form [formGroup]=\"frmToken\" (ngSubmit)=\"save()\" *ngIf=\"tokenSelected\">\r\n\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t<div class=\"col-md-12\">\r\n\t\t\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t\t\t<div class=\"col-sm-6 col-md-6\">\r\n\t\t\t\t\t\t\t\t\t<div class=\"form-group required\">\r\n\t\t\t\t\t\t\t\t\t\t<label for=\"name\" class=\"form-control-label\">Nombre</label>\r\n\r\n\t\t\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\t\t\ttype=\"input\"\r\n\t\t\t\t\t\t\t\t\t\t\tclass=\"form-control\"\r\n\t\t\t\t\t\t\t\t\t\t\tname=\"name\"\r\n\t\t\t\t\t\t\t\t\t\t\tid=\"name\"\r\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Nombre\"\r\n\t\t\t\t\t\t\t\t\t\t\tformControlName=\"controlName\"\r\n\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]=\"tokenSelected.name\"\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t<br /><br />\r\n\t\t\t\t\t\t\t\t\t\t<label class=\"form-control-label\">Llave:</label\r\n\t\t\t\t\t\t\t\t\t\t>&nbsp;&nbsp;<span style=\"font-weight: bold\">{{\r\n\t\t\t\t\t\t\t\t\t\t\tresolveKeyCalculatedToken()\r\n\t\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t\t\t<div class=\"form-control-error\">\r\n\t\t\t\t\t\t\t\t\t\t\t<small *ngIf=\"hasError(controlName, 'required')\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t>Nombre es requerido</small\r\n\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t<div class=\"col-sm-6 col-md-6\">\r\n\t\t\t\t\t\t\t\t\t<div class=\"form-group required\">\r\n\t\t\t\t\t\t\t\t\t\t<label for=\"formula\" class=\"form-control-label\"\r\n\t\t\t\t\t\t\t\t\t\t\t>Formula</label\r\n\t\t\t\t\t\t\t\t\t\t>\r\n\r\n\t\t\t\t\t\t\t\t\t\t<!-- <input type=\"input\" class=\"form-control\" name=\"formula\" id=\"formula\" placeholder=\"F\u00F3rmula\"\r\n formControlName=\"formula\" [(ngModel)]=\"tokenSelected.formula\" /> -->\r\n\t\t\t\t\t\t\t\t\t\t<textarea\r\n\t\t\t\t\t\t\t\t\t\t\tcols=\"50\"\r\n\t\t\t\t\t\t\t\t\t\t\trows=\"4\"\r\n\t\t\t\t\t\t\t\t\t\t\tclass=\"form-control\"\r\n\t\t\t\t\t\t\t\t\t\t\tname=\"formula\"\r\n\t\t\t\t\t\t\t\t\t\t\tid=\"formula\"\r\n\t\t\t\t\t\t\t\t\t\t\tformControlName=\"controlFormula\"\r\n\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]=\"tokenSelected.formula\"\r\n\t\t\t\t\t\t\t\t\t\t></textarea>\r\n\t\t\t\t\t\t\t\t\t\t<div class=\"form-control-error\">\r\n\t\t\t\t\t\t\t\t\t\t\t<small *ngIf=\"hasError(controlFormula, 'required')\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t>F\u00F3rmula es requerida</small\r\n\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class=\"card-footer text-align-right\">\r\n\t\t\t\t\t\t\t\t<button type=\"button\" (click)=\"cancel()\" class=\"btn btn-link\">\r\n\t\t\t\t\t\t\t\t\tCancelar\r\n\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\ttype=\"submit\"\r\n\t\t\t\t\t\t\t\t\tclass=\"btn btn-success\"\r\n\t\t\t\t\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t\t\t\t\t[authorities]=\"[p('ROLE_TOKENS_CREAR_EDITAR')]\"\r\n\t\t\t\t\t\t\t\t\t[patCodigo]=\"patCodigo\"\r\n\t\t\t\t\t\t\t\t\t[externalAllowed]=\"false\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\tGuardar\r\n\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</form>\r\n\t\t\t</div>\r\n\t\t\t<pli-snapshot-token\r\n\t\t\t\t[promCodigo]=\"promCodigo\"\r\n\t\t\t\t*ngIf=\"showSnapshotForm\"\r\n\t\t\t></pli-snapshot-token>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"row\">\r\n\t\t<div class=\"col-sm-12 col-md-12 col-lg-12\">\r\n\t\t\t<pli-guarantee-token [promCodigo]=\"promCodigo\" *ngIf=\"showGuatanteeForm\">\r\n\t\t\t</pli-guarantee-token>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n",
4525
+ template: "<div\r\n\t*ngIf=\"ready\"\r\n\tpliAuthorityDirective\r\n\t[authorities]=\"[p('ROLE_TOKENS_CONSULTAR')]\"\r\n\t[patCodigo]=\"patCodigo\"\r\n\t[externalAllowed]=\"false\"\r\n>\r\n\t<div class=\"row\">\r\n\t\t<div class=\"col-md-12\">\r\n\t\t\t<h4 class=\"no-margin-top\" *ngIf=\"!showAsTitle\">\r\n\t\t\t\tTokens formulario, documentos, presupuesto, tareas y est\u00E1ticos\r\n\t\t\t</h4>\r\n\t\t\t<label class=\"no-margin-top form-control-label\" *ngIf=\"showAsTitle\">\r\n\t\t\t\tTokens formulario, documentos, presupuesto, tareas y est\u00E1ticos\r\n\t\t\t</label>\r\n\t\t\t<p-accordion [multiple]=\"true\">\r\n\t\t\t\t<ng-container *ngFor=\"let groupToken of lStaticToken\">\r\n\t\t\t\t\t<p-accordionTab\r\n\t\t\t\t\t\t*ngIf=\"validateVisibility(groupToken.tokenType)\"\r\n\t\t\t\t\t\theader=\"{{ groupToken.title.value }}\"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<div *ngFor=\"let panel of groupToken.value\">\r\n\t\t\t\t\t\t\t<h4 *ngIf=\"groupToken.value.length > 1\">{{ panel.title.value }}</h4>\r\n\t\t\t\t\t\t\t<hr *ngIf=\"groupToken.value.length > 1\" style=\"margin: 5px 0;\" />\r\n\t\t\t\t\t\t\t<div *ngFor=\"let staticToken of panel.value\" class=\"ui-g\">\r\n\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t*ngIf=\"staticToken[0] && staticToken[0].key\"\r\n\t\t\t\t\t\t\t\t\tclass=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"copyMessage(staticToken[0].key)\"\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"{{ staticToken[0].key }}\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px;\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t<span title=\"{{ staticToken[0].value }}\">{{\r\n\t\t\t\t\t\t\t\t\t\tstaticToken[0].value\r\n\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t*ngIf=\"staticToken[1] && staticToken[1].key\"\r\n\t\t\t\t\t\t\t\t\tclass=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"copyMessage(staticToken[1].key)\"\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"{{ staticToken[1].key }}\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px;\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t<span title=\"{{ staticToken[1].value }}\">{{\r\n\t\t\t\t\t\t\t\t\t\tstaticToken[1].value\r\n\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t*ngIf=\"staticToken[2] && staticToken[2].key\"\r\n\t\t\t\t\t\t\t\t\tclass=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"copyMessage(staticToken[2].key)\"\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"{{ staticToken[2].key }}\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px;\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t<span title=\"{{ staticToken[2].value }}\">{{\r\n\t\t\t\t\t\t\t\t\t\tstaticToken[2].value\r\n\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t*ngIf=\"staticToken[3] && staticToken[3].key\"\r\n\t\t\t\t\t\t\t\t\tclass=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"copyMessage(staticToken[3].key)\"\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"{{ staticToken[3].key }}\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px;\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t<span title=\"{{ staticToken[3].value }}\">{{\r\n\t\t\t\t\t\t\t\t\t\tstaticToken[3].value\r\n\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</p-accordionTab>\r\n\t\t\t\t</ng-container>\r\n\t\t\t\t<p-accordionTab\r\n\t\t\t\t\t*ngIf=\"\r\n\t\t\t\t\t\tlCalculatedToken && showCalculatedForm === false && showCalculated === true\r\n\t\t\t\t\t\"\r\n\t\t\t\t\theader=\"Tokens calculados\"\r\n\t\t\t\t>\r\n\t\t\t\t\t<div *ngFor=\"let token of lCalculatedToken\" class=\"ui-g\">\r\n\t\t\t\t\t\t<div class=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\">\r\n\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t(click)=\"copyMessage(labelCalculated(token))\"\r\n\t\t\t\t\t\t\t\ttitle=\"{{ labelCalculated(token) }}\"\r\n\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px;\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t<span title=\"{{ token.name }}\">{{ token.name }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</p-accordionTab>\r\n\t\t\t\t<p-accordionTab *ngIf=\"snapShotTokens && showSnapshot\" header=\"Tokens snapshot\">\r\n\t\t\t\t\t<div *ngFor=\"let token of snapShotTokens\" class=\"ui-g\">\r\n\t\t\t\t\t\t<div class=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\">\r\n\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t(click)=\"copyMessage(labelSnapshot(token))\"\r\n\t\t\t\t\t\t\t\ttitle=\"{{ labelSnapshot(token) }}\"\r\n\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px;\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t<span title=\"{{ token.name }}\">{{ token.name }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</p-accordionTab>\r\n\t\t\t\t<p-accordionTab *ngIf=\"lGuaranteeTokens && showGuatantee\" header=\"Tokens Garantias\">\r\n\t\t\t\t\t<div *ngFor=\"let token of lGuaranteeTokens\" class=\"ui-g\">\r\n\t\t\t\t\t\t<div class=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\">\r\n\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t(click)=\"copyMessage(labelGuarantee(token))\"\r\n\t\t\t\t\t\t\t\ttitle=\"{{ labelGuarantee(token) }}\"\r\n\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px;\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t<span title=\"{{ token.name }}\">{{ token.name }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</p-accordionTab>\r\n\t\t\t</p-accordion>\r\n\t\t</div>\r\n\t\t<div\r\n\t\t\tclass=\"col-md-12\"\r\n\t\t\t*ngIf=\"lCalculatedToken && showCalculatedForm === true && showCalculated === true\"\r\n\t\t>\r\n\t\t\t<span style=\"width: 1px; height: 10px;\">&nbsp;</span>\r\n\t\t\t<h4 class=\"no-margin-top\">\r\n\t\t\t\tTokens calculados\r\n\t\t\t</h4>\r\n\t\t\t<p-table [value]=\"lCalculatedToken\" [responsive]=\"true\">\r\n\t\t\t\t<ng-template pTemplate=\"header\">\r\n\t\t\t\t\t<tr class=\"text-align-center\">\r\n\t\t\t\t\t\t<th class=\"text-align-center\" width=\"40%\">Nombre</th>\r\n\t\t\t\t\t\t<th class=\"text-align-center\">Formula</th>\r\n\t\t\t\t\t\t<th class=\"text-align-center\">Creado</th>\r\n\t\t\t\t\t\t<th class=\"text-align-center\">Modificado</th>\r\n\t\t\t\t\t\t<th class=\"text-align-center\">Acciones</th>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</ng-template>\r\n\t\t\t\t<ng-template pTemplate=\"body\" let-token>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t(click)=\"copyMessage(labelCalculated(token))\"\r\n\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px;\"\r\n\t\t\t\t\t\t\t\ttitle=\"{{ labelCalculated(token) }}\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t{{ token.name }}\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td class=\"cut-line\">{{ token.formula }}</td>\r\n\t\t\t\t\t\t<td>{{ token.createdAt | date: 'dd MMM yyyy' | lowercase }}</td>\r\n\t\t\t\t\t\t<td>{{ token.modifiedAt | date: 'dd MMM yyyy' | lowercase }}</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<div class=\"btn-group\" role=\"group\">\r\n\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\tclass=\"btn btn-default\"\r\n\t\t\t\t\t\t\t\t\t(click)=\"initForm(token)\"\r\n\t\t\t\t\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t\t\t\t\t[authorities]=\"[p('ROLE_TOKENS_CREAR_EDITAR')]\"\r\n\t\t\t\t\t\t\t\t\t[patCodigo]=\"patCodigo\"\r\n\t\t\t\t\t\t\t\t\t[externalAllowed]=\"false\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\tEditar\r\n\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\tclass=\"btn btn-default dropdown-toggle\"\r\n\t\t\t\t\t\t\t\t\tdata-toggle=\"dropdown\"\r\n\t\t\t\t\t\t\t\t\taria-haspopup=\"true\"\r\n\t\t\t\t\t\t\t\t\taria-expanded=\"false\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<span class=\"caret\"></span>\r\n\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t<ul class=\"dropdown-menu\">\r\n\t\t\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t\t\t\t\thref=\"Javascript:;\"\r\n\t\t\t\t\t\t\t\t\t\t\t(click)=\"delete(token)\"\r\n\t\t\t\t\t\t\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t\t\t\t\t\t\t[authorities]=\"[p('ROLE_TOKENS_ELIMINAR')]\"\r\n\t\t\t\t\t\t\t\t\t\t\t[patCodigo]=\"patCodigo\"\r\n\t\t\t\t\t\t\t\t\t\t\t[externalAllowed]=\"false\"\r\n\t\t\t\t\t\t\t\t\t\t\t>Eliminar</a\r\n\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</ng-template>\r\n\t\t\t</p-table>\r\n\t\t\t<div class=\"text-align-right\" style=\"padding: 0.75rem 1.25rem;\">\r\n\t\t\t\t<button\r\n\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\tclass=\"btn btn-primary\"\r\n\t\t\t\t\t(click)=\"initForm(null)\"\r\n\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t[authorities]=\"[p('ROLE_TOKENS_CREAR_EDITAR')]\"\r\n\t\t\t\t\t[patCodigo]=\"patCodigo\"\r\n\t\t\t\t\t[externalAllowed]=\"false\"\r\n\t\t\t\t>\r\n\t\t\t\t\tAgregar nuevo\r\n\t\t\t\t</button>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div>\r\n\t\t\t\t<form [formGroup]=\"frmToken\" (ngSubmit)=\"save()\" *ngIf=\"tokenSelected\">\r\n\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t<div class=\"col-md-12\">\r\n\t\t\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t\t\t<div class=\"col-sm-6 col-md-6\">\r\n\t\t\t\t\t\t\t\t\t<div class=\"form-group required\">\r\n\t\t\t\t\t\t\t\t\t\t<label for=\"name\" class=\"form-control-label\">Nombre</label>\r\n\r\n\t\t\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\t\t\ttype=\"input\"\r\n\t\t\t\t\t\t\t\t\t\t\tclass=\"form-control\"\r\n\t\t\t\t\t\t\t\t\t\t\tname=\"name\"\r\n\t\t\t\t\t\t\t\t\t\t\tid=\"name\"\r\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Nombre\"\r\n\t\t\t\t\t\t\t\t\t\t\tformControlName=\"controlName\"\r\n\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]=\"tokenSelected.name\"\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t<br /><br />\r\n\t\t\t\t\t\t\t\t\t\t<label class=\"form-control-label\">Llave:</label\r\n\t\t\t\t\t\t\t\t\t\t>&nbsp;&nbsp;<span style=\"font-weight: bold;\">{{\r\n\t\t\t\t\t\t\t\t\t\t\tresolveKeyCalculatedToken()\r\n\t\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t\t\t<div class=\"form-control-error\">\r\n\t\t\t\t\t\t\t\t\t\t\t<small *ngIf=\"hasError(controlName, 'required')\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t>Nombre es requerido</small\r\n\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t<div class=\"col-sm-6 col-md-6\">\r\n\t\t\t\t\t\t\t\t\t<div class=\"form-group required\">\r\n\t\t\t\t\t\t\t\t\t\t<label for=\"formula\" class=\"form-control-label\"\r\n\t\t\t\t\t\t\t\t\t\t\t>Formula</label\r\n\t\t\t\t\t\t\t\t\t\t>\r\n\r\n\t\t\t\t\t\t\t\t\t\t<!-- <input type=\"input\" class=\"form-control\" name=\"formula\" id=\"formula\" placeholder=\"F\u00F3rmula\"\r\n formControlName=\"formula\" [(ngModel)]=\"tokenSelected.formula\" /> -->\r\n\t\t\t\t\t\t\t\t\t\t<textarea\r\n\t\t\t\t\t\t\t\t\t\t\tcols=\"50\"\r\n\t\t\t\t\t\t\t\t\t\t\trows=\"4\"\r\n\t\t\t\t\t\t\t\t\t\t\tclass=\"form-control\"\r\n\t\t\t\t\t\t\t\t\t\t\tname=\"formula\"\r\n\t\t\t\t\t\t\t\t\t\t\tid=\"formula\"\r\n\t\t\t\t\t\t\t\t\t\t\tformControlName=\"controlFormula\"\r\n\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]=\"tokenSelected.formula\"\r\n\t\t\t\t\t\t\t\t\t\t></textarea>\r\n\t\t\t\t\t\t\t\t\t\t<div class=\"form-control-error\">\r\n\t\t\t\t\t\t\t\t\t\t\t<small *ngIf=\"hasError(controlFormula, 'required')\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t>F\u00F3rmula es requerida</small\r\n\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class=\"card-footer text-align-right\">\r\n\t\t\t\t\t\t\t\t<button type=\"button\" (click)=\"cancel()\" class=\"btn btn-link\">\r\n\t\t\t\t\t\t\t\t\tCancelar\r\n\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\ttype=\"submit\"\r\n\t\t\t\t\t\t\t\t\tclass=\"btn btn-success\"\r\n\t\t\t\t\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t\t\t\t\t[authorities]=\"[p('ROLE_TOKENS_CREAR_EDITAR')]\"\r\n\t\t\t\t\t\t\t\t\t[patCodigo]=\"patCodigo\"\r\n\t\t\t\t\t\t\t\t\t[externalAllowed]=\"false\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\tGuardar\r\n\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</form>\r\n\t\t\t</div>\r\n\t\t\t<pli-snapshot-token\r\n\t\t\t\t[promCodigo]=\"promCodigo\"\r\n\t\t\t\t*ngIf=\"showSnapshotForm\"\r\n\t\t\t></pli-snapshot-token>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"row\">\r\n\t\t<div class=\"col-sm-12 col-md-12 col-lg-12\">\r\n\t\t\t<pli-guarantee-token [promCodigo]=\"promCodigo\" *ngIf=\"showGuatanteeForm\">\r\n\t\t\t</pli-guarantee-token>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n",
4368
4526
  styles: [""]
4369
4527
  }] }
4370
4528
  ];
@@ -4974,13 +5132,6 @@
4974
5132
  headers: this.headerJson.headers
4975
5133
  });
4976
5134
  };
4977
- ApplicationService.prototype.getNotSubmittedByFullDocuments = function (promCodigo, stateId) {
4978
- return this.httpClient.get(this.environment.host.backend.backoffice + 'application/getNotSubmittedByFullDocuments', {
4979
- params: new i1$1.HttpParams()
4980
- .set('promCodigo', promCodigo)
4981
- .set('stateId', String(stateId))
4982
- });
4983
- };
4984
5135
  /**
4985
5136
  *
4986
5137
  * @param applicationId
@@ -5000,17 +5151,6 @@
5000
5151
  ApplicationService.prototype.updateSingleApplicationValue = function (applicationValueRequestTO) {
5001
5152
  return this.httpClient.put(this.environment.host.backend.frontoffice + "application/updateSingleApplicationValue", applicationValueRequestTO);
5002
5153
  };
5003
- /** It returns the list by dataTableParameters for automatic document analysis*/
5004
- ApplicationService.prototype.getByByDocumentValidation = function (dataTableParameters) {
5005
- return this.httpClient.post(this.environment.host.backend.backoffice + 'application/getByByDocumentValidation', dataTableParameters);
5006
- };
5007
- /** Change document status manually.*/
5008
- ApplicationService.prototype.updateStatusValidationDocument = function (changeStatusDocumenValidationRequest) {
5009
- return this.httpClient.post(this.environment.host.backend.backoffice + 'application/updateStatusValidationDocument', changeStatusDocumenValidationRequest);
5010
- };
5011
- ApplicationService.prototype.verifyAutoAnalysisDoc = function (sendDocAnalysisAutoDto) {
5012
- return this.httpClient.post(this.environment.host.backend.backoffice + 'application/verifyAutoAnalysisDoc', sendDocAnalysisAutoDto);
5013
- };
5014
5154
  ApplicationService.decorators = [
5015
5155
  { type: i0.Injectable, args: [{
5016
5156
  providedIn: 'root'
@@ -12341,100 +12481,6 @@
12341
12481
  return SponsorshipLetterService;
12342
12482
  }());
12343
12483
 
12344
- var StatusService = /** @class */ (function () {
12345
- function StatusService(environment, httpClient, authService) {
12346
- this.environment = environment;
12347
- this.httpClient = httpClient;
12348
- this.authService = authService;
12349
- this.headerJson = { headers: new i1$1.HttpHeaders({ 'Content-Type': 'application/json' }) };
12350
- }
12351
- /** It returns all list of status by prom code */
12352
- StatusService.prototype.getById = function (statusId) {
12353
- return this.httpClient.get(this.environment.host.backend.configuration + 'pliCnfStatus/getById', { params: new i1$1.HttpParams().set('statusId', statusId.toString()) });
12354
- };
12355
- /** It returns all list of status by prom code */
12356
- StatusService.prototype.getAllByPromCode = function (promCode) {
12357
- return this.httpClient.get(this.environment.host.backend.configuration + 'pliCnfStatus/getAllByPromCode', { params: new i1$1.HttpParams().set('promCodigo', promCode.toString()) });
12358
- };
12359
- /** It returns all list of status by prom code */
12360
- StatusService.prototype.getAllByPromCodeAndName = function (promCode, name) {
12361
- return this.httpClient.get(this.environment.host.backend.configuration + 'pliCnfStatus/getAllByPromCodeAndName', { params: new i1$1.HttpParams().set('promCodigo', promCode.toString()).set('name', name) });
12362
- };
12363
- StatusService.prototype.getFinalStatusByStaticInteraction = function (promCode, staticInteractionId) {
12364
- return this.httpClient.get(this.environment.host.backend.configuration +
12365
- 'pliCnfStatus/getFinalStatusByStaticInteraction', {
12366
- params: new i1$1.HttpParams()
12367
- .set('promCodigo', promCode.toString())
12368
- .set('staticInteractionId', staticInteractionId.toString())
12369
- });
12370
- };
12371
- /** It returns all list of status by prom code */
12372
- StatusService.prototype.getInitialStatusByPromCode = function (promCode) {
12373
- return this.httpClient.get(this.environment.host.backend.configuration + 'pliCnfStatus/getInitialStatusByPromCode', { params: new i1$1.HttpParams().set('promCodigo', promCode.toString()) });
12374
- };
12375
- StatusService.prototype.save = function (cnfStatus) {
12376
- return this.httpClient.post(this.environment.host.backend.configuration + 'pliCnfStatus/save', cnfStatus, ngPliUtil.HEADER_JSON);
12377
- };
12378
- StatusService.prototype.getStatusByPromcodigoAndPageSection = function (promCodigo, pageId) {
12379
- return this.httpClient.get(this.environment.host.backend.configuration +
12380
- 'pliCnfStatus/getStatusByPromcodigoAndPageSection', {
12381
- params: new i1$1.HttpParams()
12382
- .set('promCodigo', promCodigo.toString())
12383
- .set('pageId', pageId.toString())
12384
- });
12385
- };
12386
- StatusService.prototype.getStatusByPromCodigoAndCategoryId = function (promCodigo, categoryId) {
12387
- return this.httpClient.get(this.environment.host.backend.configuration +
12388
- 'pliCnfStatus/getStatusByPromCodigoAndCategoryId', {
12389
- params: new i1$1.HttpParams()
12390
- .set('promCodigo', promCodigo.toString())
12391
- .set('categoryId', categoryId.toString())
12392
- });
12393
- };
12394
- StatusService.prototype.getByInitialStatusAndPromCodigoAndCategoryId = function (initialStatus, promCodigo, categoryId) {
12395
- return this.httpClient.get(this.environment.host.backend.configuration +
12396
- 'pliCnfStatus/getByInitialStatusAndPromCodigoAndCategoryId', {
12397
- params: new i1$1.HttpParams()
12398
- .set('initialStatus', initialStatus.toString())
12399
- .set('promCodigo', promCodigo.toString())
12400
- .set('categoryId', categoryId.toString())
12401
- });
12402
- };
12403
- StatusService.prototype.getByPromCodigoAndFinalStatus = function (promCodigo, finalStatus) {
12404
- return this.httpClient.get(this.environment.host.backend.configuration +
12405
- 'pliCnfStatus/getByPromCodigoAndFinalStatus', {
12406
- params: new i1$1.HttpParams()
12407
- .set('promCodigo', promCodigo.toString())
12408
- .set('finalStatus', finalStatus.toString())
12409
- });
12410
- };
12411
- StatusService.prototype.getInitialStatusByStaticInteraction = function (promCodigo, staticInteractionId) {
12412
- return this.httpClient.get(this.environment.host.backend.configuration +
12413
- 'pliCnfStatus/getInitialStatusByStaticInteraction', {
12414
- params: new i1$1.HttpParams()
12415
- .set('promCodigo', promCodigo)
12416
- .set('staticInteractionId', staticInteractionId)
12417
- });
12418
- };
12419
- StatusService.prototype.getConfigCloningStatusMap = function (lStatus) {
12420
- return this.httpClient.post(this.environment.host.backend.configuration + 'pliCnfStatus/getConfigCloningStatusMap', lStatus);
12421
- };
12422
- StatusService.decorators = [
12423
- { type: i0.Injectable, args: [{
12424
- providedIn: 'root'
12425
- },] }
12426
- ];
12427
- StatusService.ctorParameters = function () {
12428
- return [
12429
- { type: undefined, decorators: [{ type: i0.Inject, args: ['environment',] }] },
12430
- { type: i1$1.HttpClient },
12431
- { type: AuthenticationService }
12432
- ];
12433
- };
12434
- StatusService.ngInjectableDef = i0.defineInjectable({ factory: function StatusService_Factory() { return new StatusService(i0.inject("environment"), i0.inject(i1$1.HttpClient), i0.inject(AuthenticationService)); }, token: StatusService, providedIn: "root" });
12435
- return StatusService;
12436
- }());
12437
-
12438
12484
  var UserService = /** @class */ (function () {
12439
12485
  function UserService(environment, httpClient) {
12440
12486
  this.environment = environment;
@@ -12490,59 +12536,6 @@
12490
12536
  return PliCnfBudgetService;
12491
12537
  }());
12492
12538
 
12493
- var ConfigurationService = /** @class */ (function () {
12494
- function ConfigurationService(environment, httpClient) {
12495
- this.environment = environment;
12496
- this.httpClient = httpClient;
12497
- }
12498
- /** Get the actual date */
12499
- ConfigurationService.prototype.getActualDate = function () {
12500
- return this.httpClient.get(this.environment.host.backend.configuration + 'configuration/getActualDate');
12501
- };
12502
- /** Get the actual date */
12503
- ConfigurationService.prototype.getDate = function (date) {
12504
- if (date === void 0) {
12505
- date = undefined;
12506
- }
12507
- date = date === undefined ? null : date;
12508
- // if (date !== undefined) {
12509
- return this.httpClient.post(this.environment.host.backend.configuration + 'configuration/getDate', date, ngPliUtil.HEADER_JSON);
12510
- // } else {
12511
- // return this.httpClient.post(
12512
- // this.environment.host.backend.configuration + 'configuration/getDate',
12513
- // null,
12514
- // HEADER_JSON
12515
- // );
12516
- // }
12517
- // return this.httpClient.get(
12518
- // this.environment.host.backend.configuration + 'configuration/getActualDate'
12519
- // );
12520
- };
12521
- ConfigurationService.prototype.getFileByUrl = function (url, name) {
12522
- var headers = new i1$1.HttpHeaders();
12523
- headers.set('Accept', 'application/pdf');
12524
- headers.set('Authorization', 'Bearer ' + ngPliUtil.AuthenticationUtil.getToken());
12525
- return this.httpClient.get(this.environment.host.backend.configuration + 'configuration/getFileByUrl', {
12526
- params: new i1$1.HttpParams().set('url', url).set('name', name),
12527
- headers: headers,
12528
- responseType: 'blob'
12529
- });
12530
- };
12531
- ConfigurationService.decorators = [
12532
- { type: i0.Injectable, args: [{
12533
- providedIn: 'root'
12534
- },] }
12535
- ];
12536
- ConfigurationService.ctorParameters = function () {
12537
- return [
12538
- { type: undefined, decorators: [{ type: i0.Inject, args: ['environment',] }] },
12539
- { type: i1$1.HttpClient }
12540
- ];
12541
- };
12542
- ConfigurationService.ngInjectableDef = i0.defineInjectable({ factory: function ConfigurationService_Factory() { return new ConfigurationService(i0.inject("environment"), i0.inject(i1$1.HttpClient)); }, token: ConfigurationService, providedIn: "root" });
12543
- return ConfigurationService;
12544
- }());
12545
-
12546
12539
  var SnapshotTokenComponent = /** @class */ (function (_super) {
12547
12540
  __extends(SnapshotTokenComponent, _super);
12548
12541
  function SnapshotTokenComponent(cdRef, commonService, toastrService, tokenService) {
@@ -14990,6 +14983,27 @@
14990
14983
  budget: budget
14991
14984
  };
14992
14985
  };
14986
+ /**
14987
+ * Call the validataion service
14988
+ * @param cnfIniStateId Initial config status id, if not exist, get the config status id from the service
14989
+ * @returns True if actual date is before than end application date and the stateAppId is equals of the cnfIniStateId
14990
+ */
14991
+ FrontofficeCommonsComponent.prototype.validateCloseApplicationProcess = function (cnfIniStateId) {
14992
+ return __awaiter(this, void 0, void 0, function () {
14993
+ var response;
14994
+ return __generator(this, function (_a) {
14995
+ switch (_a.label) {
14996
+ case 0: return [4 /*yield*/, this.commonService.validateCloseApplicationProcess(this.promCodigo, this.stateId, cnfIniStateId).toPromise()];
14997
+ case 1:
14998
+ response = _a.sent();
14999
+ this.dateClose = response.closeApplicationDate;
15000
+ return [2 /*return*/, new Promise(function (resolve) {
15001
+ resolve(response.userAllowSave);
15002
+ })];
15003
+ }
15004
+ });
15005
+ });
15006
+ };
14993
15007
  return FrontofficeCommonsComponent;
14994
15008
  }(CommonListsComponent));
14995
15009
 
@@ -15303,31 +15317,6 @@
15303
15317
  return DataLetterSegmentationService;
15304
15318
  }());
15305
15319
 
15306
- var DocumentAnalysisAutoService = /** @class */ (function () {
15307
- function DocumentAnalysisAutoService(environment, httpClient) {
15308
- this.environment = environment;
15309
- this.httpClient = httpClient;
15310
- this.headerJson = { headers: new i1$1.HttpHeaders({ 'Content-Type': 'application/json' }) };
15311
- }
15312
- /** It send All applications for automatic document analysis */
15313
- DocumentAnalysisAutoService.prototype.send = function (sendDocAnalysisAutoDto) {
15314
- return this.httpClient.post(this.environment.host.backend.queue + 'docAnalysisAuto/send', sendDocAnalysisAutoDto);
15315
- };
15316
- DocumentAnalysisAutoService.decorators = [
15317
- { type: i0.Injectable, args: [{
15318
- providedIn: 'root'
15319
- },] }
15320
- ];
15321
- DocumentAnalysisAutoService.ctorParameters = function () {
15322
- return [
15323
- { type: undefined, decorators: [{ type: i0.Inject, args: ['environment',] }] },
15324
- { type: i1$1.HttpClient }
15325
- ];
15326
- };
15327
- DocumentAnalysisAutoService.ngInjectableDef = i0.defineInjectable({ factory: function DocumentAnalysisAutoService_Factory() { return new DocumentAnalysisAutoService(i0.inject("environment"), i0.inject(i1$1.HttpClient)); }, token: DocumentAnalysisAutoService, providedIn: "root" });
15328
- return DocumentAnalysisAutoService;
15329
- }());
15330
-
15331
15320
  var DocumentValidationAttemptService = /** @class */ (function () {
15332
15321
  function DocumentValidationAttemptService(environment, httpClient) {
15333
15322
  this.environment = environment;
@@ -16808,9 +16797,6 @@
16808
16797
  .set('username', username)
16809
16798
  });
16810
16799
  };
16811
- SurveyService.prototype.reactivateSurvey = function (parameters) {
16812
- return this.httpClient.post(this.environment.host.backend.frontoffice + 'survey/reactivateSurvey', parameters);
16813
- };
16814
16800
  SurveyService.decorators = [
16815
16801
  { type: i0.Injectable, args: [{
16816
16802
  providedIn: 'root'
@@ -17153,9 +17139,9 @@
17153
17139
  /* tslint:disable */
17154
17140
  var VERSION = {
17155
17141
  "dirty": true,
17156
- "raw": "v0.0.18-1850-g79d643e-dirty",
17157
- "hash": "g79d643e",
17158
- "distance": 1850,
17142
+ "raw": "v0.0.18-1843-g5d33e495-dirty",
17143
+ "hash": "g5d33e495",
17144
+ "distance": 1843,
17159
17145
  "tag": "v0.0.18",
17160
17146
  "semver": {
17161
17147
  "options": {
@@ -17171,10 +17157,10 @@
17171
17157
  "build": [],
17172
17158
  "version": "0.0.18"
17173
17159
  },
17174
- "suffix": "1850-g79d643e-dirty",
17175
- "semverString": "0.0.18+1850.g79d643e",
17176
- "version": "0.0.1310",
17177
- "buildTimestamp": "2022-01-14T22:08:57.712Z"
17160
+ "suffix": "1843-g5d33e495-dirty",
17161
+ "semverString": "0.0.18+1843.g5d33e495",
17162
+ "version": "0.0.1311",
17163
+ "buildTimestamp": "2022-01-30T02:51:30.539Z"
17178
17164
  };
17179
17165
  /* tslint:enable */
17180
17166
 
@@ -17247,7 +17233,6 @@
17247
17233
  exports.CubeService = CubeService;
17248
17234
  exports.DataFormService = DataFormService;
17249
17235
  exports.DataLetterSegmentationService = DataLetterSegmentationService;
17250
- exports.DocumentAnalysisAutoService = DocumentAnalysisAutoService;
17251
17236
  exports.DocumentManagementService = DocumentManagementService;
17252
17237
  exports.DocumentValidationAttemptService = DocumentValidationAttemptService;
17253
17238
  exports.DocumentService = DocumentService;