ng-pli-commons 0.0.1321 → 0.0.1322

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.
@@ -1,4 +1,4 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/common/http"),require("@angular/core"),require("@angular/fire"),require("@angular/forms"),require("angular-formio-proyectoscolfuturo"),require("angular2-tinymce"),require("angularfire2/auth"),require("angularfire2/storage"),require("ng-pli-util"),require("primeng/dialog"),require("primeng/dropdown"),require("primeng/primeng"),require("primeng/table"),require("primeng/tieredmenu"),require("primeng/picklist"),require("ngx-toastr"),require("rxjs"),require("@angular/router"),require("rxjs/Subject"),require("rxjs/Rx"),require("xlsx"),require("@angular/platform-browser"),require("html2canvas"),require("html2pdf.js"),require("pdfjs-dist/build/pdf"),require("panzoom/dist/panzoom"),require("@angular/fire/auth"),require("@angular/fire/storage"),require("jquery"),require("rxjs/operators"),require("file-saver"),require("formiojs-proyectoscolfuturo/utils/utils"),require("cropperjs"),require("rxjs/Observable")):"function"==typeof define&&define.amd?define("ng-pli-commons",["exports","@angular/common","@angular/common/http","@angular/core","@angular/fire","@angular/forms","angular-formio-proyectoscolfuturo","angular2-tinymce","angularfire2/auth","angularfire2/storage","ng-pli-util","primeng/dialog","primeng/dropdown","primeng/primeng","primeng/table","primeng/tieredmenu","primeng/picklist","ngx-toastr","rxjs","@angular/router","rxjs/Subject","rxjs/Rx","xlsx","@angular/platform-browser","html2canvas","html2pdf.js","pdfjs-dist/build/pdf","panzoom/dist/panzoom","@angular/fire/auth","@angular/fire/storage","jquery","rxjs/operators","file-saver","formiojs-proyectoscolfuturo/utils/utils","cropperjs","rxjs/Observable"],e):e((t=t||self)["ng-pli-commons"]={},t.ng.common,t.ng.common.http,t.ng.core,t.ng.fire,t.ng.forms,t.angularFormioProyectoscolfuturo,t.angular2Tinymce,t.auth,t.storage,t.ngPliUtil,t.dialog,t.dropdown,t.primeng,t.table,t.tieredmenu,t.picklist,t.ngxToastr,t.rxjs,t.ng.router,t.rxjs.Subject,t.rxjs.Rx,t.xlsx,t.ng.platformBrowser,t.html2canvas,t.html2pdf,t.PDFJS_,t.panzoom_,t.ng.fire.auth,t.ng.fire.storage,null,t.rxjs.operators,t.fileSaver,t.utils_,t.Cropper,t.rxjs.Observable)}(this,(function(exports,common,http,core,fire,forms,angularFormioProyectoscolfuturo,angular2Tinymce,auth,storage,ngPliUtil,dialog,dropdown,primeng,table,tieredmenu,picklist,ngxToastr,rxjs,router,Subject,Rx,xlsx,platformBrowser,html2canvas,html2pdf,PDFJS_,panzoom_,auth$1,storage$1,jquery,operators,fileSaver,utils_,Cropper,Observable){"use strict";html2canvas=html2canvas&&Object.prototype.hasOwnProperty.call(html2canvas,"default")?html2canvas.default:html2canvas,html2pdf=html2pdf&&Object.prototype.hasOwnProperty.call(html2pdf,"default")?html2pdf.default:html2pdf,Cropper=Cropper&&Object.prototype.hasOwnProperty.call(Cropper,"default")?Cropper.default:Cropper;
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/common/http"),require("@angular/core"),require("@angular/fire"),require("@angular/forms"),require("angular-formio-proyectoscolfuturo"),require("angular2-tinymce"),require("angularfire2/auth"),require("angularfire2/storage"),require("ng-pli-util"),require("primeng/dialog"),require("primeng/dropdown"),require("primeng/accordion"),require("primeng/api"),require("primeng/table"),require("primeng/tieredmenu"),require("primeng/picklist"),require("ngx-toastr"),require("rxjs"),require("@angular/router"),require("rxjs/Subject"),require("rxjs/Rx"),require("xlsx"),require("@angular/platform-browser"),require("html2canvas"),require("html2pdf.js"),require("pdfjs-dist/build/pdf"),require("panzoom/dist/panzoom"),require("@angular/fire/auth"),require("@angular/fire/storage"),require("jquery"),require("rxjs/operators"),require("file-saver"),require("formiojs-proyectoscolfuturo/utils/utils"),require("cropperjs"),require("rxjs/Observable")):"function"==typeof define&&define.amd?define("ng-pli-commons",["exports","@angular/common","@angular/common/http","@angular/core","@angular/fire","@angular/forms","angular-formio-proyectoscolfuturo","angular2-tinymce","angularfire2/auth","angularfire2/storage","ng-pli-util","primeng/dialog","primeng/dropdown","primeng/accordion","primeng/api","primeng/table","primeng/tieredmenu","primeng/picklist","ngx-toastr","rxjs","@angular/router","rxjs/Subject","rxjs/Rx","xlsx","@angular/platform-browser","html2canvas","html2pdf.js","pdfjs-dist/build/pdf","panzoom/dist/panzoom","@angular/fire/auth","@angular/fire/storage","jquery","rxjs/operators","file-saver","formiojs-proyectoscolfuturo/utils/utils","cropperjs","rxjs/Observable"],e):e((t=t||self)["ng-pli-commons"]={},t.ng.common,t.ng.common.http,t.ng.core,t.ng.fire,t.ng.forms,t.angularFormioProyectoscolfuturo,t.angular2Tinymce,t.auth,t.storage,t.ngPliUtil,t.dialog,t.dropdown,t.accordion,t.api,t.table,t.tieredmenu,t.picklist,t.ngxToastr,t.rxjs,t.ng.router,t.rxjs.Subject,t.rxjs.Rx,t.xlsx,t.ng.platformBrowser,t.html2canvas,t.html2pdf,t.PDFJS_,t.panzoom_,t.ng.fire.auth,t.ng.fire.storage,null,t.rxjs.operators,t.fileSaver,t.utils_,t.Cropper,t.rxjs.Observable)}(this,(function(exports,common,http,core,fire,forms,angularFormioProyectoscolfuturo,angular2Tinymce,auth,storage,ngPliUtil,dialog,dropdown,accordion,api,table,tieredmenu,picklist,ngxToastr,rxjs,router,Subject,Rx,xlsx,platformBrowser,html2canvas,html2pdf,PDFJS_,panzoom_,auth$1,storage$1,jquery,operators,fileSaver,utils_,Cropper,Observable){"use strict";html2canvas=html2canvas&&Object.prototype.hasOwnProperty.call(html2canvas,"default")?html2canvas.default:html2canvas,html2pdf=html2pdf&&Object.prototype.hasOwnProperty.call(html2pdf,"default")?html2pdf.default:html2pdf,Cropper=Cropper&&Object.prototype.hasOwnProperty.call(Cropper,"default")?Cropper.default:Cropper;
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -13,5 +13,5 @@
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
15
  ***************************************************************************** */
16
- var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function __extends(t,e){function n(){this.constructor=t}extendStatics(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var __assign=function(){return(__assign=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function __rest(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n}function __decorate(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function __param(t,e){return function(n,o){e(n,o,t)}}function __metadata(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function __awaiter(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))}function __generator(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function __createBinding(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}function __exportStar(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function __values(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function __spread(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(__read(arguments[e]));return t}function __spreadArrays(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var o=Array(t),r=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o}function __await(t){return this instanceof __await?(this.v=t,this):new __await(t)}function __asyncGenerator(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(t,e||[]),i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(t){r[t]&&(o[t]=function(e){return new Promise((function(n,o){i.push([t,e,n,o])>1||s(t,e)}))})}function s(t,e){try{(n=r[t](e)).value instanceof __await?Promise.resolve(n.value.v).then(c,p):l(i[0][2],n)}catch(t){l(i[0][3],t)}var n}function c(t){s("next",t)}function p(t){s("throw",t)}function l(t,e){t(e),i.shift(),i.length&&s(i[0][0],i[0][1])}}function __asyncDelegator(t){var e,n;return e={},o("next"),o("throw",(function(t){throw t})),o("return"),e[Symbol.iterator]=function(){return this},e;function o(o,r){e[o]=t[o]?function(e){return(n=!n)?{value:__await(t[o](e)),done:"return"===o}:r?r(e):e}:r}}function __asyncValues(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),e={},o("next"),o("throw"),o("return"),e[Symbol.asyncIterator]=function(){return this},e);function o(n){e[n]=t[n]&&function(e){return new Promise((function(o,r){(function(t,e,n,o){Promise.resolve(o).then((function(e){t({value:e,done:n})}),e)})(o,r,(e=t[n](e)).done,e.value)}))}}}function __makeTemplateObject(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function __importStar(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function __importDefault(t){return t&&t.__esModule?t:{default:t}}function __classPrivateFieldGet(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function __classPrivateFieldSet(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}var PliCnfEvaluationTaskService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}var e;return e=t,t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfEvaluationTask/getByPromCodigo/"+t)},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfEvaluationTask/getById/"+t)},t.prototype.getByPromCodeAndId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfEvaluationTask/promCode/"+t+"/id/"+e)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfEvaluationTask/save",t)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfEvaluationTask/"+t)},t.prototype.getByPromCodigoAndNoSegmentation=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfEvaluationTask/getByPromCodigoAndNoSegmentation",{params:(new http.HttpParams).set("listPromCodigo",t.toString())})},t.prototype.getByPromCodigoAndEvaluator=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfEvaluationTask/getByPromCodigoAndEvaluator",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("evaluator",e)})},t.prototype.getByPromCodigoAndTypeAndVisible=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfEvaluationTask/getByPromCodigoAndTypeAndVisible",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("type",e.toString())})},t.prototype.getEncryptedTasks=function(t,n,o){var r=this;return new Promise((function(i,a){var s,c=localStorage.getItem(e.TASK_STORAGE);c&&(s=JSON.parse(c))[o]?i(s[o]):r.getByProfile(t,n,o).subscribe((function(t){if(t){var n=ngPliUtil.JwtUtil.parseJwt(t.encrypt);if(n&&n.tasks)return s?s[o]=n.tasks:s={},localStorage.setItem(e.TASK_STORAGE,JSON.stringify(s)),void i(n.tasks)}a("No se logro generar token de tareas por perfil")}),(function(t){a(t)}))}))},t.prototype.getByProfile=function(t,e,n){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfEvaluationTask/getByUserProfiles",{params:(new http.HttpParams).set("username",t).set("patCodigo",e).set("promCodigo",n)})},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfEvaluationTask/saveAll",t)},t.TASK_STORAGE="tokenTask",t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=e=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),FormUtil=function(){function t(){}return t.validateFormFields=function(e){Object.keys(e.controls).forEach((function(n){var o=e.get(n);o instanceof forms.FormControl?o.markAsTouched({onlySelf:!0}):o instanceof forms.FormGroup&&t.validateFormFields(o)}))},t.getInvalidControls=function(t){var e=[],n=t.controls;for(var o in n)n[o].invalid&&e.push(o);return e},t.hasErrors=function(t){return t&&t.errors&&(t.dirty||t.touched)},t.hasError=function(e,n){return t.hasErrors(e)&&e.errors[n]},t}(),CommonListsComponent=function(){function t(t,e){this.commonService=t,this.cdRef=e}return t.prototype.ngOnInit=function(){this.onCurrencyInit(),this.primeLocaleEs=ngPliUtil.primeLocaleEs},t.prototype.printCurrencyCode=function(t){return t.monCodigoIso+"-"+t.monMoneda},t.prototype.onCurrencyInit=function(){var t=this;this.commonService.onCurrencyChanged().subscribe((function(e){if(e)for(var n in t.lCurrency=e,t.lSICurrency=[],t.lCurrency){var o=t.lCurrency[n];t.lSICurrency.push({label:t.printCurrencyCode(o),value:o})}})),this.commonService.onCategoryChanged().subscribe((function(e){if(e)for(var n in t.lCategory=e,t.lSICategory=[],t.lCategory){var o=t.lCategory[n];t.lSICategory.push({label:o.rubRubro,value:o})}})),this.commonService.onLanguageChanged().subscribe((function(e){e&&(t.lLanguage=e)})),this.commonService.onExchangeRateChanged().subscribe((function(e){e&&(t.lExchangeRate=e,t.adjustmentIsoExchange())})),this.commonService.onProcessChanged().subscribe((function(e){if(e)for(var n in t.lProcess=e,t.lSIProcess=[],t.lProcess){var o=t.lProcess[n];t.lSIProcess.push({label:o.proNombre,value:o})}})),this.commonService.initValues()},t.prototype.adjustmentIsoExchange=function(){var t=[];for(var e in this.lExchangeRate){var n=[];void 0!==t[(r=this.lExchangeRate[e]).monedaOrigen.monCodigoIso]&&(n=t[r.monedaOrigen.monCodigoIso]),n[r.monedaDestino.monCodigoIso]=r,t[r.monedaOrigen.monCodigoIso]=n}if(t)for(var e in this.lIsoExchangeRate=[],t)for(var o in t[e]){var r=t[e][o];this.lIsoExchangeRate[e+"-"+o]=r.tcamTasaCambio}},t.prototype.hasErrors=function(t){return FormUtil.hasErrors(t)},t.prototype.hasError=function(t,e){return FormUtil.hasError(t,e)},t.prototype.isFormValid=function(t){return FormUtil.validateFormFields(t),!!t.valid||(console.log("Invalid controls: ",FormUtil.getInvalidControls(t)),!1)},t.prototype.copyMessage=function(t){ngPliUtil.UtilString.copyMessage(t)},t.prototype.p=function(t){return ngPliUtil.EPermission[t]},t.prototype.cloneObject=function(t){if(null==t||"object"!=typeof t)return t;var e=t.constructor();for(var n in t)t.hasOwnProperty(n)&&(e[n]=this.cloneObject(t[n]));return e},t.prototype.getActualDate=function(t){var e=this;return void 0===t&&(t=!1),t=void 0===t?!ngPliUtil.UtilString.isValid(this.actualDate):t,new Promise((function(n,o){t?e.commonService.getActualDate().subscribe((function(t){e.actualDate=t,n(t)}),(function(t){o(t)})):n(e.actualDate)}))},Object.defineProperty(t.prototype,"timeZoneBogota",{get:function(){return ngPliUtil.DateUtil.UTC_AMERICA_BOGOTA},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"utcBogota",{get:function(){return ngPliUtil.DateUtil.UTC_AMERICA_BOGOTA},enumerable:!0,configurable:!0}),t.LABEL_RECORDS_PER_PAGE="Registros por página",__decorate([core.Inject(core.LOCALE_ID),__metadata("design:type",String)],t.prototype,"locale",void 0),t}(),TasaCambioService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAllTasaCambioLightInDate=function(t){return this.httpClient.get(this.environment.host.backend.plis+"tasacambio/getAllTasaCambioLightInDate",{params:(new http.HttpParams).set("date",t)})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),HashService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getHash=function(t,e,n){var o=(new http.HttpParams).set("idPatrocinador",t).set("idPlataforma",e).set("idPatrocinadorPLIC",n);return this.httpClient.get(this.environment.host.backend.configuration+"hash",{params:o})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),AuthenticationService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.hashService=n,this.isLoginSubject=new rxjs.BehaviorSubject(ngPliUtil.AuthenticationUtil.hasToken())}return t.prototype.login=function(t){return localStorage.clear(),this.httpClient.post(this.environment.host.backend.configuration+"sesion/getByLoginAndSesion",t,ngPliUtil.HEADER_JSON)},t.prototype.getUserByLogin=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"sesion/getByLogin",t,ngPliUtil.HEADER_JSON)},t.prototype.getTokenByLogin=function(t){return this.httpClient.get(this.environment.host.backend.plis+"login/getSession",{params:(new http.HttpParams).set("login",t)})},t.prototype.logout=function(t){this.removeTokens(),window.location.href=t||this.environment.host.frontend.login},t.prototype.setToken=function(t){ngPliUtil.AuthenticationUtil.setToken(t),this.isLoginSubject.next(!0)},t.prototype.verifyToken=function(){this.isLoginSubject.next(ngPliUtil.AuthenticationUtil.verifyToken())},t.prototype.removeTokens=function(){localStorage.clear(),this.isLoginSubject.next(!1)},t.prototype.isAuthenticated=function(){return this.isLoginSubject.asObservable()},t.prototype.getHash=function(t,e,n){var o=this;return new Promise((function(r,i){o.hashService.getHash(t,e,n).subscribe((function(t){t&&t.hash?r(t.hash):i("No se pudo generar el hash")}),(function(t){return i("No se pudo generar el hash")}))}))},t.prototype.getLink=function(t){return __awaiter(this,void 0,void 0,(function(){var e,n,o,r,i;return __generator(this,(function(a){switch(a.label){case 0:e="",n=new URL(this.environment.host.frontend.login),o=n.searchParams.get("idPatrocinador"),r=n.searchParams.get("idPlataforma"),n.searchParams.append("idPatrocinadorPLIC",t),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.getHash(o,r,t)];case 2:return i=a.sent(),n.searchParams.set("hash",i),e=n.href,[3,4];case 3:return a.sent(),[3,4];case 4:return[2,e]}}))}))},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:HashService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(HashService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,HashService])],t)}(),StatusService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getById",{params:(new http.HttpParams).set("statusId",t.toString())})},t.prototype.getAllByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getAllByPromCode",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getAllByPromCodeAndName=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getAllByPromCodeAndName",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("name",e)})},t.prototype.getFinalStatusByStaticInteraction=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getFinalStatusByStaticInteraction",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("staticInteractionId",e.toString())})},t.prototype.getInitialStatusByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getInitialStatusByPromCode",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfStatus/save",t,ngPliUtil.HEADER_JSON)},t.prototype.getStatusByPromcodigoAndPageSection=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getStatusByPromcodigoAndPageSection",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("pageId",e.toString())})},t.prototype.getStatusByPromCodigoAndCategoryId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getStatusByPromCodigoAndCategoryId",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("categoryId",e.toString())})},t.prototype.getByInitialStatusAndPromCodigoAndCategoryId=function(t,e,n){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getByInitialStatusAndPromCodigoAndCategoryId",{params:(new http.HttpParams).set("initialStatus",t.toString()).set("promCodigo",e.toString()).set("categoryId",n.toString())})},t.prototype.getByPromCodigoAndFinalStatus=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getByPromCodigoAndFinalStatus",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("finalStatus",e.toString())})},t.prototype.getInitialStatusByStaticInteraction=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getInitialStatusByStaticInteraction",{params:(new http.HttpParams).set("promCodigo",t).set("staticInteractionId",e)})},t.prototype.getConfigCloningStatusMap=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfStatus/getConfigCloningStatusMap",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),ConfigurationService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getActualDate=function(){return this.httpClient.get(this.environment.host.backend.configuration+"configuration/getActualDate")},t.prototype.getDate=function(t){return void 0===t&&(t=void 0),t=void 0===t?null:t,this.httpClient.post(this.environment.host.backend.configuration+"configuration/getDate",t,ngPliUtil.HEADER_JSON)},t.prototype.getFileByUrl=function(t,e){var n=new http.HttpHeaders;return n.set("Accept","application/pdf"),n.set("Authorization","Bearer "+ngPliUtil.AuthenticationUtil.getToken()),this.httpClient.get(this.environment.host.backend.configuration+"configuration/getFileByUrl",{params:(new http.HttpParams).set("url",t).set("name",e),headers:n,responseType:"blob"})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PppService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})},this.subjectPpp=new rxjs.BehaviorSubject(void 0),this.subjectListPpp=new rxjs.BehaviorSubject(void 0)}var e;return e=t,t.prototype.onChangePpp=function(){return this.subjectPpp.asObservable()},t.prototype.setPpp=function(t){t&&("string"==typeof t?t=ngPliUtil.NumberUtil.isNumber(t)?parseInt(t):0:"number"!=typeof t&&(t=0)),this.subjectPpp.next(t)},t.prototype.getListPatrocinador=function(){return this.httpClient.get(this.environment.host.backend.plis+"config/patrocinador/getAll")},t.prototype.getPatrocinadorById=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/patrocinador/getById",{params:(new http.HttpParams).set("patCodigo",t.toString())})},t.prototype.savePatrocinador=function(t,e){var n={pliPatrocinadorBefore:t,pliPatrocinador:e,pliUsuario:{usuLogin:ngPliUtil.AuthenticationUtil.getUsername()}};return this.httpClient.post(this.environment.host.backend.plis+"config/patrocinador/save",n,this.headerJson)},t.prototype.getListTipoPatrocinador=function(){return this.httpClient.get(this.environment.host.backend.plis+"config/tipo-patrocinador/getAll")},t.prototype.getListTipoPrograma=function(){return this.httpClient.get(this.environment.host.backend.plis+"config/tipo-programa/getAll")},t.prototype.getPaises=function(){return this.httpClient.get(this.environment.host.backend.plis+"pais/getAll")},t.prototype.getListProgramasBypatCodigo=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/programa/getAllByPatrocinador",{params:(new http.HttpParams).set("patCodigo",t.toString())})},t.prototype.getProgramaById=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/programa/getById",{params:(new http.HttpParams).set("progCodigo",t.toString())})},t.prototype.savePrograma=function(t,e){var n={pliProgramaBefore:t,pliPrograma:e,pliUsuario:{usuLogin:ngPliUtil.AuthenticationUtil.getUsername()}};return this.httpClient.post(this.environment.host.backend.plis+"config/programa/save",n,this.headerJson)},t.prototype.getListPromocionesByprogCodigo=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/promocion/getAllByPrograma",{params:(new http.HttpParams).set("progCodigo",t.toString())})},t.prototype.getListPromocionesBypatCodigo=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/promocion/getAllByPatrocinador",{params:(new http.HttpParams).set("patCodigo",t.toString())})},t.prototype.getListPromocionesBypatCodigoWithoutConfiguracion=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/promocion/getByPatrocinador/withoutConfiguracion",{params:(new http.HttpParams).set("patCodigo",t.toString())})},t.prototype.getPromocionById=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/promocion/getById",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.savePromocion=function(t,e){var n={pliPromocionBefore:t,pliPromocion:e,pliUsuario:{usuLogin:ngPliUtil.AuthenticationUtil.getUsername()}};return this.httpClient.post(this.environment.host.backend.plis+"config/promocion/save",n,this.headerJson)},t.prototype.getConfiguracionBypatCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.plis+"config/configuracion/getAllByPatrocinador",{params:(new http.HttpParams).set("patCodigo",t.toString()).set("cargarListas",e.toString())})},t.prototype.getConfiguracionById=function(t,e){return this.httpClient.get(this.environment.host.backend.plis+"config/configuracion/getById",{params:(new http.HttpParams).set("cconCodigo",t.toString()).set("cargarListas",e.toString())})},t.prototype.saveConfiguracion=function(t,e){var n={pliCnfConfiguracionBefore:t,pliCnfConfiguracion:e,pliUsuario:{usuLogin:ngPliUtil.AuthenticationUtil.getUsername()}};return this.httpClient.post(this.environment.host.backend.plis+"config/configuracion/save",n,this.headerJson)},t.prototype.updateConfiguracionPliPromocion=function(t,e){var n={cconCodigo:t,listaPromCodigo:e};return this.httpClient.put(this.environment.host.backend.plis+"config/promocion/updateConfigurationMassive",n,this.headerJson)},t.prototype.getListPpp=function(){var t=this;return setTimeout((function(){t.generate()}),300),this.subjectListPpp.asObservable()},t.prototype.getAvailablePromocion=function(t){return t||(t=0),this.httpClient.get(this.environment.host.backend.plis+"config/promocion/getAvailableByPatCodigo",{params:(new http.HttpParams).set("patCodigo",t.toString())})},t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.plis+"config/promocion/getAll")},t.prototype.getlPatrocinadorByToken=function(){var t,n,o,r,i,a,s=localStorage.getItem(e.TOKEN_PPP);if(s&&s.length){var c=ngPliUtil.JwtUtil.parseJwt(s);if(c&&c.ppp){var p=Array();try{for(var l=__values(c.ppp),d=l.next();!d.done;d=l.next()){var u=d.value,m=new ngPliUtil.PliPatrocinador;if(m.patCodigo=u.patCodigo,m.patNombre=u.patNombre,m.patNombreCorto=u.patNombreCorto,u.listaPliPrograma&&u.listaPliPrograma.length>0){m.lPliPrograma=Array();try{for(var h=(o=void 0,__values(u.listaPliPrograma)),g=h.next();!g.done;g=h.next()){var f=g.value,v=new ngPliUtil.PliPrograma;if(v.progCodigo=f.progCodigo,v.progNombre=f.progNombre,v.progNombreCorto=f.progNombreCorto,f.listaPliPromocion&&f.listaPliPromocion.length>0){v.lPliPromocion=Array();try{for(var y=(i=void 0,__values(f.listaPliPromocion)),C=y.next();!C.done;C=y.next()){var b=C.value,S=new ngPliUtil.PliPromocion;S.promCodigo=b.promCodigo,S.promNombre=b.promNombre,S.promNombreCorto=b.promNombreCorto,S.promFechaCreacion=b.promFechaCreacion,v.lPliPromocion.push(S)}}catch(t){i={error:t}}finally{try{C&&!C.done&&(a=y.return)&&a.call(y)}finally{if(i)throw i.error}}}m.lPliPrograma.push(v)}}catch(t){o={error:t}}finally{try{g&&!g.done&&(r=h.return)&&r.call(h)}finally{if(o)throw o.error}}}p.push(m)}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return p}}return null},t.prototype.getAllPromociones=function(){var t,n,o,r,i,a,s=[],c=localStorage.getItem(e.TOKEN_PPP);if(c&&c.length){var p=ngPliUtil.JwtUtil.parseJwt(c);if(p&&p.ppp){try{for(var l=__values(p.ppp),d=l.next();!d.done;d=l.next()){var u=d.value,m=new ngPliUtil.PliPatrocinador;if(m.patCodigo=u.patCodigo,m.patNombre=u.patNombre,m.patNombreCorto=u.patNombreCorto,u.listaPliPrograma&&u.listaPliPrograma.length>0){m.lPliPrograma=Array();try{for(var h=(o=void 0,__values(u.listaPliPrograma)),g=h.next();!g.done;g=h.next()){var f=g.value,v=new ngPliUtil.PliPrograma;if(v.progCodigo=f.progCodigo,v.progNombre=f.progNombre,v.progNombreCorto=f.progNombreCorto,f.listaPliPromocion&&f.listaPliPromocion.length>0){v.lPliPromocion=Array();try{for(var y=(i=void 0,__values(f.listaPliPromocion)),C=y.next();!C.done;C=y.next()){var b=C.value,S=new ngPliUtil.PliPromocion;S.promCodigo=b.promCodigo,S.promNombre=b.promNombre,S.promNombreCorto=b.promNombreCorto,S.promFechaCreacion=b.promFechaCreacion,s.push(S)}}catch(t){i={error:t}}finally{try{C&&!C.done&&(a=y.return)&&a.call(y)}finally{if(i)throw i.error}}}}}catch(t){o={error:t}}finally{try{g&&!g.done&&(r=h.return)&&r.call(h)}finally{if(o)throw o.error}}}}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return s}}return null},t.prototype.getPatCodigoByPromCodigo=function(t){var n,o,r,i,a,s,c=localStorage.getItem(e.TOKEN_PPP);if(c&&c.length){var p=ngPliUtil.JwtUtil.parseJwt(c);if(p&&p.ppp)try{for(var l=__values(p.ppp),d=l.next();!d.done;d=l.next()){var u=d.value;try{for(var m=(r=void 0,__values(u.listaPliPrograma)),h=m.next();!h.done;h=m.next()){var g=h.value;try{for(var f=(a=void 0,__values(g.listaPliPromocion)),v=f.next();!v.done;v=f.next()){if(v.value.promCodigo==t)return u.patCodigo}}catch(t){a={error:t}}finally{try{v&&!v.done&&(s=f.return)&&s.call(f)}finally{if(a)throw a.error}}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}}}catch(t){n={error:t}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}else;},t.prototype.getProgCodigoByPromCodigo=function(t){var n,o,r,i,a,s,c=localStorage.getItem(e.TOKEN_PPP);if(c&&c.length){var p=ngPliUtil.JwtUtil.parseJwt(c);if(p&&p.ppp)try{for(var l=__values(p.ppp),d=l.next();!d.done;d=l.next()){var u=d.value;try{for(var m=(r=void 0,__values(u.listaPliPrograma)),h=m.next();!h.done;h=m.next()){var g=h.value;try{for(var f=(a=void 0,__values(g.listaPliPromocion)),v=f.next();!v.done;v=f.next()){if(v.value.promCodigo==t)return g.progCodigo}}catch(t){a={error:t}}finally{try{v&&!v.done&&(s=f.return)&&s.call(f)}finally{if(a)throw a.error}}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}}}catch(t){n={error:t}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}else;},t.prototype.generate=function(){var t,n,o=this,r=localStorage.getItem(e.TOKEN_PPP);if(r&&r.length){var i=ngPliUtil.JwtUtil.parseJwt(r);i&&i.ppp&&this.subjectListPpp.next(i.ppp)}else{var a=ngPliUtil.AuthenticationUtil.getAuthorities();if(a&&a.length>0){var s=[];try{for(var c=__values(a),p=c.next();!p.done;p=c.next()){var l=p.value;s.push(l.patCodigo)}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}s&&this.httpClient.get(this.environment.host.backend.plis+"config/patrocinador/getLightByListPatrocinador",{params:(new http.HttpParams).set("patCodigos",s.toString())}).subscribe((function(t){t&&t.tokenPpp?(localStorage.setItem(e.TOKEN_PPP,t.tokenPpp),o.generate()):o.subjectListPpp.next([])}),(function(t){console.error("ERROR consulting ppp",t),o.subjectListPpp.next([])}))}}},t.prototype.getPPPInfoFromToken=function(){var t,n,o,r,i,a,s=localStorage.getItem(e.TOKEN_PPP),c=[];if(s&&s.length){var p=ngPliUtil.JwtUtil.parseJwt(s);if(p&&p.ppp)try{for(var l=__values(p.ppp),d=l.next();!d.done;d=l.next()){var u=d.value,m=new ngPliUtil.PliPatrocinador,h=[];try{for(var g=(o=void 0,__values(u.listaPliPrograma)),f=g.next();!f.done;f=g.next()){var v=f.value,y=new ngPliUtil.PliPrograma;y.progCodigo=v.progCodigo,y.progNombreCorto=v.progNombreCorto,y.progNombre=v.progNombre;var C=[];try{for(var b=(i=void 0,__values(v.listaPliPromocion)),S=b.next();!S.done;S=b.next()){var _=S.value,T=new ngPliUtil.PliPromocion;T.promCodigo=_.promCodigo,T.promNombreCorto=_.promNombreCorto,T.promNombre=_.promNombre,T.promAnio=_.promAnio,C.push(T)}}catch(t){i={error:t}}finally{try{S&&!S.done&&(a=b.return)&&a.call(b)}finally{if(i)throw i.error}}y.lPliPromocion=C,h.push(y)}}catch(t){o={error:t}}finally{try{f&&!f.done&&(r=g.return)&&r.call(g)}finally{if(o)throw o.error}}m.lPliPrograma=h,c.push(m)}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}}return c},t.TOKEN_PPP="tokenPpp",t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=e=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),CommonService=function(){function t(t,e,n,o,r,i){this.environment=t,this.httpClient=e,this.tasaCambioService=n,this.pppService=o,this.statusService=r,this.configurationService=i,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})},this.currencyChanged=new rxjs.BehaviorSubject(void 0),this.categoryChanged=new rxjs.BehaviorSubject(void 0),this.exchangeRateChanged=new rxjs.BehaviorSubject(void 0),this.languageChanged=new rxjs.BehaviorSubject(void 0),this.processChanged=new rxjs.BehaviorSubject(void 0),this.initValues()}return t.prototype.onLanguageChanged=function(){return this.languageChanged.asObservable()},t.prototype.onCurrencyChanged=function(){return this.currencyChanged.asObservable()},t.prototype.onCategoryChanged=function(){return this.categoryChanged.asObservable()},t.prototype.onExchangeRateChanged=function(){return this.exchangeRateChanged.asObservable()},t.prototype.onProcessChanged=function(){return this.processChanged.asObservable()},t.prototype.initValues=function(){this.searchLCurrency(),this.searchLCategory(),this.searchLExchangeRate(),this.searchLLanguage(),this.searchLProcess()},t.prototype.reloadValues=function(){localStorage.removeItem("lCurrency"),localStorage.removeItem("lCategory"),localStorage.removeItem("lExchangeRate"),localStorage.removeItem("lLanguage"),localStorage.removeItem("lProcess")},t.prototype.getLanguages=function(){var t=this;this.httpClient.get(this.environment.host.backend.plis+"idioma/getAll").subscribe((function(e){t.setLLanguage(e)}),(function(t){console.error("Error - getListCurrencies -El sistema no responde",t)}))},t.prototype.getCurrencies=function(){var t=this;this.httpClient.get(this.environment.host.backend.plis+"moneda/getAll").subscribe((function(e){t.setLCurrencies(e)}),(function(t){console.error("Error - getListCurrencies -El sistema no responde",t)}))},t.prototype.getCategories=function(){var t=this;this.httpClient.get(this.environment.host.backend.plis+"rubro/getAll",{params:(new http.HttpParams).set("cargarListas","true")}).subscribe((function(e){t.setLCategory(e)}),(function(t){console.error("Error - getCategories -El sistema no responde",t)}))},t.prototype.getExchangeRate=function(t){var e=this;this.tasaCambioService.getAllTasaCambioLightInDate(t).subscribe((function(t){e.setLExchangeRate(t)}),(function(t){console.error("Error - getExchangeRate -El sistema no responde",t)}))},t.prototype.getProcess=function(){var t=this;this.httpClient.get(this.environment.host.backend.plis+"common/getAllProcesos").subscribe((function(e){t.setLProcess(e)}),(function(t){console.error("Error - getProcess -El sistema no responde",t)}))},t.prototype.setLCurrencies=function(t){for(var e in t){var n=Object.assign(new ngPliUtil.Moneda,t[e]);t[e]=n}this.lCurrency=t;var o=this.lCurrency.slice();localStorage.setItem("lCurrency",JSON.stringify(o)),this.currencyChanged.next(o)},t.prototype.setLCategory=function(t){for(var e in t){var n=Object.assign(new ngPliUtil.Rubro,t[e]);t[e]=n}this.lCategory=t;var o=this.lCategory.slice();localStorage.setItem("lCategory",JSON.stringify(o)),this.categoryChanged.next(o)},t.prototype.setLLanguage=function(t){this.lLanguage=t;var e=this.lLanguage?this.lLanguage.slice():this.lLanguage;localStorage.setItem("lLanguage",JSON.stringify(e)),this.languageChanged.next(e)},t.prototype.setLExchangeRate=function(t){for(var e in t){var n=Object.assign(new ngPliUtil.TasaCambio,t[e]);t[e]=n}this.lExchangeRate=t;var o=this.lExchangeRate?this.lExchangeRate.slice():this.lExchangeRate;localStorage.setItem("lExchangeRate",JSON.stringify(o)),this.exchangeRateChanged.next(o)},t.prototype.setLProcess=function(t){for(var e in t){var n=Object.assign(new ngPliUtil.Proceso,t[e]);t[e]=n}this.lProcess=t;var o=this.lProcess?this.lProcess.slice():this.lProcess;localStorage.setItem("lProcess",JSON.stringify(o)),this.processChanged.next(o)},t.prototype.searchLCurrency=function(){var t=localStorage.getItem("lCurrency");t&&"undefined"!==t?this.setLCurrencies(JSON.parse(t)):this.getCurrencies()},t.prototype.searchLLanguage=function(){var t=localStorage.getItem("lLanguage");t&&"undefined"!==t?this.setLLanguage(JSON.parse(t)):this.getLanguages()},t.prototype.searchLCategory=function(){var t=localStorage.getItem("lCategory");t&&"undefined"!==t?this.setLCategory(JSON.parse(t)):this.getCategories()},t.prototype.searchLExchangeRate=function(){var t=!1,e=ngPliUtil.DateUtil.getMomentTimeZone(),n=localStorage.getItem("lExchangeRate"),o=[];if(n&&"undefined"!=n&&n.length>0){if((o=JSON.parse(n))&&o.length>0){var r=ngPliUtil.DateUtil.getFormatDateTimeZone(o[0].tcamFecha);ngPliUtil.DateUtil.isDayEqualString(e.format(),r)||(t=!0)}}else t=!0;t||!o||0==o.length?this.getExchangeRate(e.format("YYYY-MM-DD")+" 00:00:00"):this.setLExchangeRate(o)},t.prototype.searchLProcess=function(){var t=localStorage.getItem("lProcess");t&&"undefined"!==t?this.setLProcess(JSON.parse(t)):this.getProcess()},t.prototype.getBase64Pdf=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"pdf/getBase64Pdf",t,this.headerJson)},t.prototype.getBase64PdfList=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"pdf/getBase64PdfList",t,this.headerJson)},t.prototype.getBase64PdfByUrl=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"pdf/getBase64PdfByUrl",t,this.headerJson)},t.prototype.getBase64ImageByUrl=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"pdf/getBase64ImageByUrl",t,this.headerJson)},t.prototype.getActualDate=function(){return this.httpClient.get(this.environment.host.backend.configuration+"configuration/getActualDate")},t.prototype.validateCloseApplicationProcess=function(t,e,n){var o=(new http.HttpParams).set("promCodigo",t.toString()).set("appStateId",e.toString());return null!=n&&o.set("cnfIniStateId",n.toString()),this.httpClient.get(this.environment.host.backend.configuration+"configuration/validateCloseApplicationProcess",{params:o})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:TasaCambioService},{type:PppService},{type:StatusService},{type:ConfigurationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(TasaCambioService),core.ɵɵinject(PppService),core.ɵɵinject(StatusService),core.ɵɵinject(ConfigurationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,TasaCambioService,PppService,StatusService,ConfigurationService])],t)}(),BudgetService=function(){function t(t,e,n,o){this.environment=t,this.httpClient=e,this.authService=n,this.toastr=o,this.lGlobalBudgetChanged=new Subject.Subject,this.lGlobalBudgetCategoryChanged=new Subject.Subject,this.lGlobalBudgetWizardChanged=new Subject.Subject}return t.prototype.getListPresupuestoGlobal=function(t){var e=this;this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllPresupuestoGlobal",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("cargarListas","false")}).subscribe((function(t){if(t&&t.length>0)for(var n in t){var o=Object.assign(new ngPliUtil.PliCnfPresupuestoGlobal,t[n]);t[n]=o.fieldsValidation()}e.setListGlobalBudget(t)}),(function(t){e.toastr.error("El sistema no responde","Error!"),console.log("El sistema no responde",t)}))},t.prototype._getListPresupuestoGlobal=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllPresupuestoGlobal",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("cargarListas","false")})},t.prototype.savePresupuestoGlobal=function(t,e,n){var o={pliCnfPresupuestoGlobal:e,pliCnfPresupuestoGlobalBefore:t,pliUsuario:ngPliUtil.AuthenticationUtil.getPliUsuario(),patCodigo:n};return this.httpClient.post(this.environment.host.backend.plis+"config/presupuesto/save",o,ngPliUtil.HEADER_JSON)},t.prototype.setListGlobalBudget=function(t){this.lGlobalBudget=t,this.lGlobalBudgetChanged.next(t.slice())},t.prototype.getListGlobalBudget=function(){return this.lGlobalBudget.slice()},t.prototype.getListTipoPeriodo=function(){return this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllTipoPeriodo")},t.prototype.getListTipoPresupuesto=function(){return this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllTipoPresupuesto")},t.prototype.getAllTipoGeneracionPresupuesto=function(){return this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllTipoGeneracionPresupuesto")},t.prototype.getAllTipoCuentaDestino=function(){return this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllTipoCuentaDestino")},t.prototype.getListPresupuestoGlobalCategory=function(t){var e=this;this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllPresupuestoRubro",{params:(new http.HttpParams).set("cpreCodigo",t.toString())}).map((function(t){if(t&&t.length>0){for(var e in t){var n=Object.assign(new ngPliUtil.PliCnfPresupuestoGlobalRubro,t[e]);t[e]=n.fieldsValidation()}return t}return[]})).subscribe((function(t){e.setListGlobalBudgetCategory(t)}),(function(t){e.toastr.error("El sistema no responde","Error!"),console.log("El sistema no responde",t)}))},t.prototype.savePresupuestoGlobalCategory=function(t,e,n){var o={pliCnfPresupuestoGlobalRubro:e,pliCnfPresupuestoGlobalRubroBefore:t,pliUsuario:ngPliUtil.AuthenticationUtil.getPliUsuario(),patCodigo:n};return this.httpClient.post(this.environment.host.backend.plis+"config/presupuesto/saveByRubro",o,ngPliUtil.HEADER_JSON)},t.prototype.deletePresupuestoGlobalCategory=function(t){return this.httpClient.post(this.environment.host.backend.plis+"config/presupuesto/deleteByRubro",t,ngPliUtil.HEADER_JSON)},t.prototype.setListGlobalBudgetCategory=function(t){this.lGlobalBudgetCategory=t,this.lGlobalBudgetCategoryChanged.next(t)},t.prototype.getListGlobalBudgetCategory=function(){return this.lGlobalBudgetCategory},t.prototype.getListPresupuestoGlobalWizard=function(t){var e=this;this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllPresupuestoAsistente",{params:(new http.HttpParams).set("cpreCodigo",t.toString())}).map((function(t){if(t&&t.length>0){for(var e in t){var n=Object.assign(new ngPliUtil.PliCnfPresupuestoAsistente,t[e]);t[e]=n.fieldsValidation()}return t}return[]})).subscribe((function(t){e.setListGlobalBudgetWizard(t)}),(function(t){e.toastr.error("El sistema no responde","Error!"),console.log("El sistema no responde",t)}))},t.prototype.getAllPresupuestoAsistente=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllPresupuestoAsistente",{params:(new http.HttpParams).set("cpreCodigo",t.toString())})},t.prototype.savePresupuestoGlobalWizard=function(t,e,n){var o={pliCnfPresupuestoAsistente:e,pliCnfPresupuestoAsistenteBefore:t,pliUsuario:ngPliUtil.AuthenticationUtil.getPliUsuario(),patCodigo:n};return this.httpClient.post(this.environment.host.backend.plis+"config/presupuesto/saveAsistenteByRubro",o,ngPliUtil.HEADER_JSON)},t.prototype.setListGlobalBudgetWizard=function(t){this.lGlobalBudgetWizard=t,this.lGlobalBudgetWizardChanged.next(t)},t.prototype.getListGlobalBudgetWizard=function(){return this.lGlobalBudgetWizard},t.prototype.getBudgetWizardCategoryById=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getPresupuestoAsistenteById",{params:(new http.HttpParams).set("cpreasiCodigo",t.toString())})},t.prototype.isBudgetWizardUseCategory=function(t,e){return this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/validarUsoRubroEnPromocion",{params:(new http.HttpParams).set("cpreasiCodigo",t.toString()).set("rubCodigo",e.toString())})},t.prototype.updateAsistenteOrden=function(t){return this.httpClient.post(this.environment.host.backend.plis+"config/presupuesto/updateAsistenteOrden",t,ngPliUtil.HEADER_JSON)},t.prototype._getListPresupuestoGlobalCategory=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllPresupuestoRubro",{params:(new http.HttpParams).set("cpreCodigo",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService},{type:ngxToastr.ToastrService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService),core.ɵɵinject(ngxToastr.ToastrService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService,ngxToastr.ToastrService])],t)}(),FormService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"form/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"form/getAll")},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"form/getById",{params:(new http.HttpParams).set("id",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"form/save",t,this.headerJson)},t.prototype.saveFormMultiPromCodigo=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"form/saveMultiaplicacionPromCod",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"form/delete",{params:(new http.HttpParams).set("id",t)})},t.prototype.getByPromCodigoAccordingToProfile=function(t,e,n){var o=(new http.HttpParams).set("promCodigo",t.toString()).set("patCodigo",e.toString()).set("formId",void 0!==n?n:"");return this.httpClient.get(this.environment.host.backend.configuration+"form/getByPromCodigoAndProfile",{params:o})},t.prototype.getByListPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"form/getByListPromCodigo",{params:(new http.HttpParams).set("listPromCodigo",t.toString())})},t.prototype.removeFromCacheByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"form/removeFromCacheByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.removeFromCacheByPromCodigoAndTitle=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"form/removeFromCacheByPromCodigoAndTitle",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("title",e)})},t.prototype.removeFromCacheByPromCodigoAndProfile=function(t,e,n,o){return this.httpClient.get(this.environment.host.backend.configuration+"form/removeFromCacheByPromCodigoAndProfile",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("patCodigo",e.toString()).set("formId",n).set("username",o)})},t.prototype.getByStateId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"form/getByStateId",{params:(new http.HttpParams).set("statusId",t)})},t.prototype.getConfigCloningFormMap=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"form/getConfigCloningFormMap",{params:(new http.HttpParams).set("oldFormPPP",t.toString()).set("newFormPPP",e.toString())})},t.prototype.getListFormProjectSummaryConfigByPromCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"form/getListFormProjectSummaryConfigByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("patCodigo",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),TokenService=function(){function TokenService(t,e,n,o){this.environment=t,this.httpClient=e,this.formService=n,this.currencyPipe=o}var TokenService_1;return TokenService_1=TokenService,TokenService.prototype.getFormFieldsByPromCode=function(t){var e=this;return new Promise((function(n,o){var r=null;e.formService.getByPromCodigo(t).subscribe((function(o){var i,a,s=o;s&&s[0]&&s[0].promCodigo&&s[0].promCodigo==t||n(r),r=[];try{for(var c=__values(s),p=c.next();!p.done;p=c.next()){var l=p.value,d=void 0;l.components?d=l.components:l.columns&&(d=l.columns),d&&ngPliUtil.UtilString.isValid(l.title)&&(r.push({title:{key:TokenService_1.getKeyFormulario(l.title),value:l.title,object:l},value:[]}),r[r.length-1].value=e.getComponenetForm([],d,null,!1,null))}}catch(t){i={error:t}}finally{try{p&&!p.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}n(r)}),(function(t){o(t)}))}))},TokenService.prototype.getFormFieldsByFormId=function(t){var e=this;return new Promise((function(n,o){var r=null;e.formService.getById(t).subscribe((function(t){var o,i,a=t;a&&a[0]||n(r),r=[];try{for(var s=__values(a),c=s.next();!c.done;c=s.next()){var p=c.value,l=void 0;p.components?l=p.components:p.columns&&(l=p.columns),l&&ngPliUtil.UtilString.isValid(p.title)&&(r.push({title:{key:TokenService_1.getKeyFormulario(p.title),value:p.title,object:p},value:[]}),r[r.length-1].value=e.getComponenetForm([],l,null,!1,null))}}catch(t){o={error:t}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}n(r)}),(function(t){o(t)}))}))},TokenService.prototype.getFormPanelsByPromCode=function(t){var e=this;return new Promise((function(n,o){var r=null;e.formService.getByPromCodigo(t).subscribe((function(o){var i,a,s=o;s&&s[0]&&s[0].promCodigo&&s[0].promCodigo==t||n(r),r=[];try{for(var c=__values(s),p=c.next();!p.done;p=c.next()){var l=p.value,d=void 0;l.components?d=l.components:l.columns&&(d=l.columns),d&&ngPliUtil.UtilString.isValid(l.title)&&(r.push({title:{key:TokenService_1.getKeyFormulario(l.title),value:l.title,object:l},value:[]}),r[r.length-1].value=e.getPanelComponenet([],d,null))}}catch(t){i={error:t}}finally{try{p&&!p.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}n(r)}),(function(t){o(t)}))}))},TokenService.prototype.getPanelComponenet=function(t,e,n){var o,r;try{for(var i=__values(e),a=i.next();!a.done;a=i.next()){var s=a.value;if("panel"===s.type)t.push(s);else if(s.components||s.columns){var c=void 0;s.components?c=s.components:s.columns&&(c=s.columns),t=this.getPanelComponenet(t,c,n)}}}catch(t){o={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return t},TokenService.prototype.getComponenetForm=function(t,e,n,o,r){var i,a;try{for(var s=__values(e),c=s.next();!c.done;c=s.next()){var p=c.value;if(p.components||p.columns){var l=void 0;p.components?(l=p.components,"editgrid"===p.type&&(o=!0,r=p.key)):p.columns&&(l=p.columns),p.type&&"panel"===p.type&&(n=p.title),t=this.getComponenetForm(t,l,n,o,r)}else p.panelName=n,p.editgrid=o,p.editGridKey=r,t.push(p)}}catch(t){i={error:t}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return t},TokenService.prototype.getFormEditGridFieldsByPromCode=function(t){var e=this;return new Promise((function(n,o){var r=null;e.formService.getByPromCodigo(t).subscribe((function(o){var i,a,s=o;s&&s[0]&&s[0].promCodigo&&s[0].promCodigo==t||n(r),r=[];try{for(var c=__values(s),p=c.next();!p.done;p=c.next()){var l=p.value,d=void 0;l.components?d=l.components:l.columns&&(d=l.columns),d&&ngPliUtil.UtilString.isValid(l.title)&&(r.push({title:{key:TokenService_1.getKeyFormulario(l.title),value:l.title,object:l},value:[]}),r[r.length-1].value=e.getEditGridComponenet([],d,null))}}catch(t){i={error:t}}finally{try{p&&!p.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}n(r)}),(function(t){o(t)}))}))},TokenService.prototype.getEditGridComponenet=function(t,e,n){var o,r;try{for(var i=__values(e),a=i.next();!a.done;a=i.next()){var s=a.value;if("editgrid"===s.type)s.panelName=n,t.push(s);else if(s.components||s.columns){var c=void 0;s.components?c=s.components:s.columns&&(c=s.columns),s.type&&"panel"===s.type&&(n=s.title),t=this.getEditGridComponenet(t,c,n)}}}catch(t){o={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return t},TokenService.prototype.getListByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"token/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},TokenService.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"token/getById",{params:(new http.HttpParams).set("id",t.toString())})},TokenService.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"token/delete",{params:(new http.HttpParams).set("id",t)})},TokenService.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"token/save",t,ngPliUtil.HEADER_JSON)},TokenService.getKeyFormulario=function(t){return ngPliUtil.UtilString.isValid(t)?ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_FORM)+ngPliUtil.UtilString.replaceAccentSpacesOthers(t).replace(/_/g,"-"):""},TokenService.prototype.getUniqueVerificationCode=function(t,e){return this.httpClient.get(this.environment.host.backend.documentsRepository+"documento/consultarCodigoUnico/"+t+"/"+e,{params:new http.HttpParams})},TokenService.prototype.copyDocumentInformationViewer=function(t,e,n,o,r){var i={codigoUnico:n,rutaDocumento:o,documentName:r};return this.httpClient.post(this.environment.host.backend.documentsRepository+"documento/adicionarDocumento/"+t+"/"+e,i,ngPliUtil.HEADER_JSON)},TokenService.getKeyBudget=function(){return ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_BUDGET)},TokenService.getKeyDocument=function(){return ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_DOCUMENTO)},TokenService.getKeyTask=function(){return ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_TASKL)},TokenService.getKeyStatic=function(){return ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_STATIC)},TokenService.getKeyCalculated=function(t){return ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_CALCULATED)+"_"+ngPliUtil.UtilString.replaceAccentSpacesOthers(t.name)},TokenService.getKeySnapshot=function(t){return ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_SNAPSHOT)+"_"+ngPliUtil.UtilString.replaceAccentSpacesOthers(t.name)},TokenService.getKeyGuarantee=function(t){return ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_GUARANTEE)+"_"+ngPliUtil.UtilString.replaceAccentSpacesOthers(t.name)},TokenService.getKeyType=function(t){return(t=(t=t.replace("{","").replace("}","")).substring(1,t.indexOf("_"))).startsWith(ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_FORM))?1:t.startsWith(ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_BUDGET))?2:t.startsWith(ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_STATIC))?3:t.startsWith(ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_CALCULATED))?4:t.startsWith(ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_TASKL))?5:null},TokenService.prototype.getValueFromFormField=function(t,e){if("object"==typeof e&&t.type){if("address"==t.type)return e.formatted_address;if("select"==t.type&&t.searchField&&e.hasOwnProperty(t.searchField))return e[t.searchField]}return e},TokenService.prototype.replaceToken=function(t,e,n){var o=null;if(e&&"#"==e[0]){var r=e.substring(1,e.indexOf("("));if("date"==r){var i=e.substring(e.indexOf("}")+1,e.indexOf(")"));i=i.trim().replace(/\"/g,"").replace(/\'/g,"");var a=ngPliUtil.DateUtil.getDate(n);o=a?ngPliUtil.DateUtil.getMoment(a).format(i):""}else if("number"==r){var s=Number(n);if(null==s||isNaN(s))console.log("El dato ["+n+"] para el token ["+e+"] tipo númerico no es valido"),o="";else{var c=e.substring(e.indexOf("}")+1,e.indexOf(")"));c=c.trim().replace(/\"/g,"").replace(/\'/g,""),o=this.currencyPipe.transform(s,this.locale,"",c)}}else console.log("tipo de token indefinido. [typeToken["+r+"]]")}else e&&"$"==e[0]?o=n:console.log("El token no es valido. [token["+e+"]]");return t&&null!==o&&(t=t.split(e).join(o)),t},TokenService.prototype.getListTokensByStringSegmentation=function(t){var e,n,o,r,i=t.match(/\${([^}]+)\}/g),a=t.match(/\#date[^)]+\)/g),s=t.match(/\#number[^)]+\)/g),c=[];a&&a.length>0&&s&&s.length>0?c=a.concat(s):a&&a.length>0?c=a.slice():s&&s.length>0&&(c=s.slice());var p=[];if(i)try{for(var l=__values(i),d=l.next();!d.done;d=l.next()){var u=d.value,m={key:u,value:u};if(c)try{for(var h=(o=void 0,__values(c)),g=h.next();!g.done;g=h.next()){var f=g.value;if(f.indexOf(u)>=0){m.value=f;break}}}catch(t){o={error:t}}finally{try{g&&!g.done&&(r=h.return)&&r.call(h)}finally{if(o)throw o.error}}p.push(m)}}catch(t){e={error:t}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}return p},TokenService.prototype.changeIdPropertiesOfObject=function(t,e){var n=[];return e.forEach((function(e){var o={};Object.keys(e).forEach((function(n){e.hasOwnProperty(n)&&t.forEach((function(t){t.idColumn.toString()===n&&(o[t.key]=e[n])}))})),o&&n.push(o)})),n},TokenService.prototype.generateHtmlByTokensAndData=function(t,e,n){var o=[];return e.forEach((function(e){var r={},i={html:t};Object.keys(e).forEach((function(t){n.forEach((function(n){t==n.key.replace("${","").replace("}","")&&(r[n.key]=e[t],i.html=i.html.replace(n.key,e[t]))}))})),o.push(i)})),o},TokenService.prototype.getListTokensByString=function(t){var e,n,o,r,i=t.match(/\${([^}]+)\}/g),a=t.match(/\#date[^)]+\)/g),s=t.match(/\#number[^)]+\)/g),c=[];a&&a.length>0&&s&&s.length>0?c=a.concat(s):a&&a.length>0?c=a.slice():s&&s.length>0&&(c=s.slice());var p=[];if(i)try{for(var l=__values(i),d=l.next();!d.done;d=l.next()){var u=d.value;if(null!==TokenService_1.getKeyType(u)){var m={key:u,value:u};if(c)try{for(var h=(o=void 0,__values(c)),g=h.next();!g.done;g=h.next()){var f=g.value;if(f.indexOf(u)>=0){m.value=f;break}}}catch(t){o={error:t}}finally{try{g&&!g.done&&(r=h.return)&&r.call(h)}finally{if(o)throw o.error}}p.push(m)}}}catch(t){e={error:t}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}return p},TokenService.prototype.nextValidPositionTokens=function(t,e){var n=t.indexOf("$",e),o=t.indexOf("#",e);return n<0&&o>=0?o:o<0&&n>=0||n<o?n:o},TokenService.prototype.replaceTokensFromListObjectPublic=function(t,e,n){var o=[];if(n)for(var r in n)o[r.toLowerCase()]=n[r];return this.replaceTokensFromListObject(t,e,o)},TokenService.prototype.replaceTokensFromListObject=function(t,e,n){if(!e||0==e.length)throw{message:"La formula del token "+t+" esta vacía",title:"Alerta!",error:"La formula del token "+t+" esta vacía. [formula["+e+"]]"};var o=e.toString();if(o.startsWith("file://"))return o;var r=this.getListTokensByString(o);if(0==r.length)return o;for(var i=0;i<r.length;i++){var a=void 0!==n[r[i].key]?n[r[i].key]:null,s=void 0;if(null==a&&null==(a=void 0!==n[s=r[i].key.replace("${","").replace("}","").toLowerCase()]?n[s]:null)&&(a=void 0!==n[s=r[i].key.replace("{","").replace("}","").split("_")[1].toLowerCase()]?n[s]:null),null==a&&(a=""),null!=a){var c=Number(a)?a:Array.isArray(a)?JSON.stringify(a):"'"+a+"'";o=this.replaceToken(o,r[i].value,c)}}return o},TokenService.prototype.validateFormula=function(lStaticToken,formulaName,formula){var e_12,_a,e_13,_b,e_14,_c,e_15,_d,evalFormula=!1,objectTokens=[];try{for(var lStaticToken_1=__values(lStaticToken),lStaticToken_1_1=lStaticToken_1.next();!lStaticToken_1_1.done;lStaticToken_1_1=lStaticToken_1.next()){var panel=lStaticToken_1_1.value;try{for(var _e=(e_13=void 0,__values(panel.value)),_f=_e.next();!_f.done;_f=_e.next()){var groupToken=_f.value;try{for(var _g=(e_14=void 0,__values(groupToken.value)),_h=_g.next();!_h.done;_h=_g.next()){var staticToken=_h.value;try{for(var staticToken_1=(e_15=void 0,__values(staticToken)),staticToken_1_1=staticToken_1.next();!staticToken_1_1.done;staticToken_1_1=staticToken_1.next()){var arrayTokenInfo=staticToken_1_1.value;objectTokens[arrayTokenInfo.key]=arrayTokenInfo.object&&"number"==arrayTokenInfo.object.type?"0":""}}catch(t){e_15={error:t}}finally{try{staticToken_1_1&&!staticToken_1_1.done&&(_d=staticToken_1.return)&&_d.call(staticToken_1)}finally{if(e_15)throw e_15.error}}}}catch(t){e_14={error:t}}finally{try{_h&&!_h.done&&(_c=_g.return)&&_c.call(_g)}finally{if(e_14)throw e_14.error}}}}catch(t){e_13={error:t}}finally{try{_f&&!_f.done&&(_b=_e.return)&&_b.call(_e)}finally{if(e_13)throw e_13.error}}}}catch(t){e_12={error:t}}finally{try{lStaticToken_1_1&&!lStaticToken_1_1.done&&(_a=lStaticToken_1.return)&&_a.call(lStaticToken_1)}finally{if(e_12)throw e_12.error}}try{formula=this.replaceTokensFromListObject(formulaName,formula,objectTokens)}catch(t){throw t}if(null!==formula)try{var result=formula.startsWith("file://")?formula:eval(formula);evalFormula=!0}catch(t){throw{message:"La formula no fue posible evaluar",title:"Alerta!",error:t}}return evalFormula},TokenService.prototype.getConfigCloningTokenMap=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"token/getConfigCloningTokenMap",{params:(new http.HttpParams).set("oldPPP",t.toString()).set("newPPP",e.toString())})},TokenService.SIGN_LETTER_TAG_ID="_sign-letter-tag-id",TokenService.TOKEN_LABEL_FORM="Frm",TokenService.TOKEN_LABEL_BUDGET="Presupuesto",TokenService.TOKEN_LABEL_CALCULATED="Calculado",TokenService.TOKEN_LABEL_SNAPSHOT="Snapshot",TokenService.TOKEN_LABEL_STATIC="Estático",TokenService.TOKEN_LABEL_DOCUMENTO="Documento",TokenService.TOKEN_LABEL_TASK="Tarea",TokenService.TOKEN_LABEL_TASKL="task",TokenService.TOKEN_LABEL_GUARANTEE="Garantia",TokenService.BUDGET_TOKENS_KEY_TOTAL_AMOUNT="totalAmount",TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_AMOUNT="applicationTotal",TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_OWN_FOUNDS="applicationOwnFounds",TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_FINANCING="applicationFinancing",TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_AMOUNT="legalizationTotal",TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_OWN_FOUNDS="legalizationOwnFounds",TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_FINANCING="legalizationFinancing",TokenService.BUDGET_TOKENS_KEY_INSURANCE_AMOUNT="insuranceAmount",TokenService.LEGALIZATION_OR_APPLICATION_TOTAL_FINANCING="leglizationOrApplicationTotalFinancing",TokenService.BUDGET_TOKENS_KEY_RESUME_CATEGORY_YEAR="resumeCategoryYear",TokenService.BUDGET_TOKENS_KEY_FECHA_FINANCING_START="fechaInicioFinanciacion",TokenService.BUDGET_TOKENS_KEY_FECHA_FINANCING_END="fechaFinFinanciacion",TokenService.BUDGET_TOKENS_DURATION_STUDIES="duracionEstudios",TokenService.BUDGET_TOKENS_FINANCING_DURATION="duracionFinanciacion",TokenService.STATIC_TOKENS_KEY_CODIGO_VERIFICACION="codigoVerificacion",TokenService.STATIC_TOKENS_KEY_A_QUIEN_VA_DIRIGIDO="aQuienVaDirigido",TokenService.STATIC_TOKENS_KEY_FECHA_ACTUAL="fechaActual",TokenService.STATIC_TOKENS_KEY_STATUS_NAME="statusName",TokenService.STATIC_TOKENS_KEY_PATROCINADOR="pliPatrocinador",TokenService.STATIC_TOKENS_KEY_PATROCINADOR_CORTO="pliPatrocinadorCorto",TokenService.STATIC_TOKENS_KEY_PROGRAMA="pliPrograma",TokenService.STATIC_TOKENS_KEY_PROGRAMA_CORTO="pliProgramaCorto",TokenService.STATIC_TOKENS_KEY_PROMOCION="pliPromocion",TokenService.STATIC_TOKENS_KEY_PROMOCION_CORTO="pliPromocionCorto",TokenService.STATIC_TOKENS_KEY_ANIO_PROMOCION="anioPromocion",TokenService.STATIC_TOKENS_KEY_ISO_MONEDA_BASE="isoMonedaBase",TokenService.STATIC_TOKENS_KEY_SALUDO_COMPLEMENTARIO="saludoComplementario",TokenService.STATIC_TOKENS_KEY_NUMBER_APPLICATION="numeroRadicado",TokenService.STATIC_TOKENS_KEY_USER_INITIALS="inicialesUsuario",TokenService.STATIC_TOKENS_KEY_LETTER_SIGN="firmaCarta",TokenService.STATIC_TOKENS_COMMITTEE_NAME="comiteNombre",TokenService.STATIC_TOKENS_COMMITTEE_SEGMENTATION="comiteSegmentacion",TokenService.STATIC_TOKENS_COMMITTEE_AGGRUPATION="comiteAgrupacion",TokenService.STATIC_TOKENS_COMMITTEE_CUTLINE_DATE="comiteFechaLinea",TokenService.STATIC_TOKENS_CONFIRM_LEGALIZATION_APPOINTMENT="confirmacionCita",TokenService.STATIC_TOKENS_CODEBTOR_DOCUMENT_NUMBER="numeroDocumentoCodeudor",TokenService.STATIC_TOKENS_CODEBTOR_DOCUMENT_TYPE="tipoDocumentoCodeudor",TokenService.STATIC_TOKENS_CODEBTOR_NAME="nombresCodeudor",TokenService.STATIC_TOKENS_CODEBTOR_LASTNAME="apellidosCodeudor",TokenService.STATIC_TOKENS_TYPE_CODEBTOR="tipoPersonaCodeudor",TokenService.STATIC_TOKENS_CODEBTOR_REVIEWER="revisorCodeudores",TokenService.STATIC_TOKENS_TOTAL_WEIGHTED="ponderadoTotal",TokenService.STATIC_TOKENS_CONSECUTIVE_GUARANTEE="consecutivoGarantias",TokenService.STATIC_TOKENS_DAY="dia",TokenService.STATIC_TOKENS_MONTH="mes",TokenService.STATIC_TOKENS_YEAR="ano",TokenService.STATIC_TOKENS_REPRESENTATIVE_NAME="nombresRepresentante",TokenService.STATIC_TOKENS_REPRESENTATIVE_LASTNAME="apellidosRepresentante",TokenService.STATIC_TOKENS_REPRESENTATIVE_DOCUMENT_NUMBER="cedulaRepresentante",TokenService.STATIC_TOKENS_CITY_SIGNATURE="ciudadFirma",TokenService.STATIC_TOKENS_USER_TYPE_CREDIT_STUDY="tipoUsuarioEstudioCredito",TokenService.STATIC_TOKENS_CODEBTOR_VEHICLES_QUANTITY="cantidadVehiculosCodeudor",TokenService.STATIC_TOKENS_CODEBTOR_ASSETS_QUANTITY="cantidadBienesCodeudor",TokenService.STATIC_TOKENS_LIST_CODEBTORS="listaCodeudores",TokenService.STATIC_TOKEN_INGRESO_CODEUDOR_HABEAS_DATA="ingresoCodeudorHabeasData",TokenService.STATIC_TOKEN_PDF_RESUMEN_CODEUDOR="pdfResumenCodeudor",TokenService.STATIC_TOKENS_QUANTITY_VEHICLE_BENEFICIARY="cantidadVehiculosSeleccionado",TokenService.STATIC_TOKENS_QUANTITY_ASSETS_BENEFICIARY="cantidadBienesSeleccionado",TokenService.STATIC_TOKENS_BEN_CODIGO="benCodigo",TokenService.STATIC_TOKEN_CREDIT_REVIEWER_OBSERVATIONS_CODEBTOR="creditReviewerObservationsCodebtor",TokenService.STATIC_TOKEN_CREDIT_REVIEWER_OBSERVATIONS="creditReviewerObservations",TokenService.STATIC_TOKENS=[{key:TokenService_1.STATIC_TOKENS_KEY_PATROCINADOR,label:"Patrocinador"},{key:TokenService_1.STATIC_TOKENS_KEY_PROGRAMA,label:"Programa"},{key:TokenService_1.STATIC_TOKENS_KEY_PROMOCION,label:"Promoción"},{key:TokenService_1.STATIC_TOKENS_KEY_ANIO_PROMOCION,label:"Año promoción"},{key:TokenService_1.STATIC_TOKENS_KEY_ISO_MONEDA_BASE,label:"ISO Moneda base"},{key:TokenService_1.STATIC_TOKENS_KEY_SALUDO_COMPLEMENTARIO,label:"Saludo complementario"},{key:TokenService_1.STATIC_TOKENS_KEY_CODIGO_VERIFICACION,label:"Código de verificación"},{key:TokenService_1.STATIC_TOKENS_KEY_A_QUIEN_VA_DIRIGIDO,label:"A quien va dirigido"},{key:TokenService_1.STATIC_TOKENS_KEY_FECHA_ACTUAL,label:"Fecha actual"},{key:TokenService_1.STATIC_TOKENS_KEY_STATUS_NAME,label:"Estado actual"},{key:TokenService_1.STATIC_TOKENS_KEY_NUMBER_APPLICATION,label:"Número radicado"},{key:TokenService_1.STATIC_TOKENS_KEY_USER_INITIALS,label:"Iniciales de usuario"},{key:TokenService_1.STATIC_TOKENS_KEY_LETTER_SIGN,label:"Firma de cartas"},{key:TokenService_1.STATIC_TOKENS_COMMITTEE_NAME,label:"Nombre comité"},{key:TokenService_1.STATIC_TOKENS_COMMITTEE_SEGMENTATION,label:"Segmentación comité"},{key:TokenService_1.STATIC_TOKENS_COMMITTEE_AGGRUPATION,label:"Agrupación comité"},{key:TokenService_1.STATIC_TOKENS_COMMITTEE_CUTLINE_DATE,label:"Fecha Línea de corte"},{key:TokenService_1.STATIC_TOKENS_CONFIRM_LEGALIZATION_APPOINTMENT,label:"Confirmación de cita"},{key:TokenService_1.STATIC_TOKENS_CODEBTOR_DOCUMENT_NUMBER,label:"Número de documento de codeudor"},{key:TokenService_1.STATIC_TOKENS_CODEBTOR_DOCUMENT_TYPE,label:"Tipo de documento de codeudor"},{key:TokenService_1.STATIC_TOKENS_CODEBTOR_NAME,label:"Nombres codeudor"},{key:TokenService_1.STATIC_TOKENS_CODEBTOR_LASTNAME,label:"Apellidos codeudor"},{key:TokenService_1.STATIC_TOKENS_TYPE_CODEBTOR,label:"Tipo de persona codeudor"},{key:TokenService_1.STATIC_TOKENS_CODEBTOR_VEHICLES_QUANTITY,label:"Cantidad vehiculos codeudor"},{key:TokenService_1.STATIC_TOKENS_CODEBTOR_ASSETS_QUANTITY,label:"Cantidad bienes codeudor"},{key:TokenService_1.STATIC_TOKENS_CODEBTOR_REVIEWER,label:"Revisor de codeudores"},{key:TokenService_1.STATIC_TOKENS_TOTAL_WEIGHTED,label:"Ponderado total"},{key:TokenService_1.STATIC_TOKENS_CONSECUTIVE_GUARANTEE,label:"Consecutivo de garantias"},{key:TokenService_1.STATIC_TOKENS_REPRESENTATIVE_NAME,label:"Nombres representante legal"},{key:TokenService_1.STATIC_TOKENS_REPRESENTATIVE_LASTNAME,label:"Apellidos representante legal"},{key:TokenService_1.STATIC_TOKENS_REPRESENTATIVE_DOCUMENT_NUMBER,label:"Cedula representante legal"},{key:TokenService_1.STATIC_TOKENS_USER_TYPE_CREDIT_STUDY,label:"Tipo usuario estudio crédito"},{key:TokenService_1.STATIC_TOKENS_DAY,label:"Dia"},{key:TokenService_1.STATIC_TOKENS_MONTH,label:"Mes"},{key:TokenService_1.STATIC_TOKENS_YEAR,label:"Año"},{key:TokenService_1.STATIC_TOKENS_CITY_SIGNATURE,label:"Ciudad de la firma"},{key:TokenService_1.STATIC_TOKENS_LIST_CODEBTORS,label:"Lista de codeudores"},{key:TokenService_1.STATIC_TOKEN_INGRESO_CODEUDOR_HABEAS_DATA,label:"Ingreso Codeudor Habeas Data"},{key:TokenService_1.STATIC_TOKEN_PDF_RESUMEN_CODEUDOR,label:"Pdf codeudor"},{key:TokenService_1.STATIC_TOKENS_QUANTITY_VEHICLE_BENEFICIARY,label:"Cantidad de vehículos del seleccionado"},{key:TokenService_1.STATIC_TOKENS_QUANTITY_ASSETS_BENEFICIARY,label:"Cantidad bienes del seleccionado"},{key:TokenService_1.STATIC_TOKENS_BEN_CODIGO,label:"Código beneficiario"},{key:TokenService_1.STATIC_TOKEN_CREDIT_REVIEWER_OBSERVATIONS,label:"Observaciones revisor financiero seleccionado"},{key:TokenService_1.STATIC_TOKEN_CREDIT_REVIEWER_OBSERVATIONS_CODEBTOR,label:"Observaciones revisor financiero codeudores"}],TokenService.excludedToken=[TokenService_1.STATIC_TOKENS_USER_TYPE_CREDIT_STUDY.toLowerCase(),TokenService_1.STATIC_TOKENS_CODEBTOR_VEHICLES_QUANTITY.toLowerCase(),TokenService_1.STATIC_TOKENS_CODEBTOR_ASSETS_QUANTITY.toLowerCase()],TokenService.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:FormService},{type:common.CurrencyPipe}]},TokenService.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new TokenService(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(FormService),core.ɵɵinject(common.CurrencyPipe))},token:TokenService,providedIn:"root"}),__decorate([core.Inject(core.LOCALE_ID),__metadata("design:type",String)],TokenService.prototype,"locale",void 0),TokenService=TokenService_1=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,FormService,common.CurrencyPipe])],TokenService),TokenService}(),PliCnfSnapshotTokenServices=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAllByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"snapshot-token/getByPromCodigo?promCodigo="+t)},t.prototype.getAllType=function(){return this.httpClient.get(this.environment.host.backend.configuration+"snapshot-token/getAllType")},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"snapshot-token/save",t)},t.prototype.getConfigCloningTokenSnapshotMap=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"snapshot-token/getConfigCloningTokenSnapshotMap",{params:(new http.HttpParams).set("oldPPP",t.toString()).set("newPPP",e.toString())})},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"snapshot-token/delete?id="+t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),ConfigurationDocumentService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}var e;return e=t,t.prototype.geListByPromCodigoAndTgdocCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getByPromCodigoAndTgdocCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("tgdocCodigo",e.toString())})},t.prototype.getListByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"configuration-document/save",t,this.headerJson)},t.prototype.getConfigCloningConDocumentMap=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getConfigCloningConDocumentMap",{params:(new http.HttpParams).set("oldPPP",t.toString()).set("newPPP",e.toString())})},t.prototype.updatePosition=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"configuration-document/updatePosition",t,this.headerJson)},t.prototype.getByTdlCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getByTdlCodigo",{params:(new http.HttpParams).set("tdlCodigo",t.toString())})},t.prototype.getByPromCodigoAndTdlCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getByPromCodigoAndTdlCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("tdlCodigo",e.toString())})},t.prototype.getListTipoGrupoDocumental=function(){return this.httpClient.get(this.environment.host.backend.plis+"config/documento/getTipoGrupoDocumental")},t.prototype.createDocumentName=function(t,e,n){var o=t&&t.tdlNombre?ngPliUtil.UtilString.replaceAccentSpacesOthers(t.tdlNombre):null,r=e?ngPliUtil.UtilString.replaceAccentSpacesOthers(e):null,i=n?ngPliUtil.UtilString.replaceAccentSpacesOthers(n):null,a=o?"_"+o:"";return a+=r?"_"+r:"",a=(a+=i?"_"+i:"").length>0?a.substring(1):""},t.prototype.getByPromCodigoAndProfile=function(t,e){var n=(new http.HttpParams).set("promCodigo",t.toString()).set("patCodigo",e.toString());return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getByPromCodigoAndProfile",{params:n})},t.prototype.getDocumentProfiles=function(t){var e=(new http.HttpParams).set("configurationDocumentId",t.toString());return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getDocumentProfiles",{params:e})},t.prototype.getDocumentsEncrypted=function(t,n){var o=this;return new Promise((function(r,i){var a,s=localStorage.getItem(e.DOCUMENT_STORAGE);s&&(a=JSON.parse(s))[n]?r(a[n]):o.getEncryptedByPromCodigoProfile(t,n).subscribe((function(t){if(t){var o=ngPliUtil.JwtUtil.parseJwt(t.encrypt);if(o&&o.documents)return a?a[n]=o.documents:a={},localStorage.setItem(e.DOCUMENT_STORAGE,JSON.stringify(a)),void r(o.documents)}i("No se logro generar token de tareas por perfil")}),(function(t){i(t)}))}))},t.prototype.getEncryptedByPromCodigoProfile=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getEncryptedByPromCodigoAndProfile",{params:(new http.HttpParams).set("patCodigo",t).set("promCodigo",e)})},t.prototype.saveProfiles=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"configuration-document/saveProfiles",t)},t.prototype.deleteProfileByIdAndFormId=function(t,e){var n=(new http.HttpParams).set("configurationDocumentId",e.toString()).set("profileId",t.toString());return this.httpClient.delete(this.environment.host.backend.configuration+"configuration-document/deleteProfileByIdAndFormId",{params:n})},t.prototype.deleteByListId=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"configuration-document/deleteByListId",t)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"configuration-document/saveAll",t,this.headerJson)},t.prototype.getByFormAssociationFormId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getByFormAssociationFormId",{params:(new http.HttpParams).set("formId",t.toString())})},t.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO="espacio",t.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO_1="espacio1",t.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO_2="espacio2",t.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO_3="espacio3",t.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO_4="espacio4",t.STATIC_TOKEN_DOCUMENTARY_KEY_PROGRAMA_ORIGEN="PCBProgramaOrigen",t.STATIC_TOKEN_DOCUMENTARY_KEY_TIPO_DOCUMENTAL="tipoDocumental",t.STATIC_TOKEN_DOCUMENTARY_KEY_NOMBRES_APELLIDOS="nombresApellidos",t.STATIC_TOKEN_DOCUMENTARY_KEY_NUMERO_DOCUMENTO="numeroDocumento",t.STATIC_TOKEN_DOCUMENTARY_KEY_ANO_PROMOCION="anoPromocion",t.STATIC_TOKEN_DOCUMENTARY_KEY_PROMOCION="promocion",t.STATIC_TOKEN_DOCUMENTARY_KEY_PROGRAMA="programa",t.STATIC_TOKEN_DOCUMENTARY_KEY_PATROCINADOR="patrocinador",t.STATIC_TOKEN_DOCUMENTARY_KEY_FECHA_ACTUAL="fechaActual",t.STATIC_TOKEN_DOCUMENTARY_KEY_RUTA_DOCUMENTO="rutaDocumento",t.STATIC_TOKEN_DOCUMENTARY_KEY_CONSECUTIVO="consecutivo",t.STATIC_TOKEN_DOCUMENTARY_KEY_TIPO_ARCHIVO="tipoArchivo",t.STATIC_TOKEN_DOCUMENTARY_KEY_EMAIL="email",t.STATIC_TOKEN_DOCUMENTARY=[{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_TIPO_DOCUMENTAL,label:"Tipo documental",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_NOMBRES_APELLIDOS,label:"Nombres apellidos",knowSource:!1},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_NUMERO_DOCUMENTO,label:"Número documento",knowSource:!1},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO,label:"Espacio 1",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_ANO_PROMOCION,label:"Año promoción",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_FECHA_ACTUAL,label:"Fecha actual",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_RUTA_DOCUMENTO,label:"Ruta documento",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_CONSECUTIVO,label:"Consecutivo",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_TIPO_ARCHIVO,label:"Tipo archivo",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_EMAIL,label:"Email",knowSource:!1},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_PROGRAMA_ORIGEN,label:"Programa origen PCB",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_PROGRAMA,label:"Programa",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_PATROCINADOR,label:"Patrocinador",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_PROMOCION,label:"Promoción",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO_1,label:"Espacio 2",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO_2,label:"Espacio 3",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO_3,label:"Espacio 4",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO_4,label:"Espacio 5",knowSource:!0}],t.DOCUMENT_STORAGE="tokenDocuments",t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=e=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),PliCnfGuaranteeTokenService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getAllByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfGuaranteeToken/getAllByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfGuaranteeToken/save",t)},t.prototype.getConfigCloningGuaranteeTokenMap=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfGuaranteeToken/getConfigCloningGuaranteeTokenMap",{params:(new http.HttpParams).set("oldPPP",t.toString()).set("newPPP",e.toString())})},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfGuaranteeToken/delete",{params:(new http.HttpParams).set("id",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),ConfigurationTokenComponent=function(t){function e(e,n,o,r,i,a,s,c,p,l,d){var u=t.call(this,o,n)||this;return u.toastrService=e,u.cdRef=n,u.commonService=o,u.pppService=r,u.router=i,u.budgetService=a,u.tokenService=s,u.snapshotTokenService=c,u.configurationDocumentService=p,u.pliCnfTaskService=l,u.pliCnfGuaranteeTokenService=d,u.showFrm=!1,u.showFrmMultiple=!1,u.showStatic=!1,u.showBudget=!1,u.showCalculated=!1,u.showCalculatedForm=!1,u.showSnapshot=!1,u.showSnapshotForm=!1,u.showDocument=!0,u.showTask=!0,u.showGuatantee=!1,u.showGuatanteeForm=!1,u.onStaticToken=new core.EventEmitter,u.lGuaranteeTokens=[],u.showAsTitle=!1,u.ready=!1,u.lStaticToken=[],u.lCalculatedToken=[],u.callBudgetService=!1,u.currencyPipe=new common.CurrencyPipe(u.locale),u}return __extends(e,t),e.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this),this.ready=!1,this.getTokenSnapshot(),this.getTokenGuarantee(),(this.showFrm||this.showFrmMultiple||this.showStatic||this.showBudget||this.showCalculated)&&this.initListTokens()},e.prototype.initListTokens=function(){this.promCodigo&&(this.patCodigo=this.pppService.getPatCodigoByPromCodigo(this.promCodigo),this.lStaticToken=[],this.lCalculatedToken=[],this.initListTokenForm())},e.prototype.initListTokenForm=function(){var t=this;this.tokenService.getFormFieldsByPromCode(this.promCodigo).then((function(e){var n,o,r,i;if(e){try{for(var a=__values(e),s=a.next();!s.done;s=a.next()){var c=s.value;c.tokenType=TokenService.TOKEN_LABEL_FORM;var p=[];try{for(var l=(r=void 0,__values(c.value)),d=l.next();!d.done;d=l.next()){var u=d.value;p.push(u),u.type&&"select"===u.type&&u.data&&u.data.url&&u.data.url.indexOf("getUniversitiesByName")>=0&&p.push({type:"select-attribute",label:"País",key:u.key+"_level1"})}}catch(t){r={error:t}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}c.value=p}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}Array.prototype.push.apply(t.lStaticToken,e)}t.initListTokenDocuments()}),(function(e){console.log("Error initListTokenForm-getFormFieldsByPromCode",e),t.toastrService.error("Error consultando tokens de formulario")}))},e.prototype.initListTokenDocuments=function(){var t=this;this.configurationDocumentService.getListByPromCodigo(this.promCodigo).subscribe((function(e){e&&(t.lStaticToken[t.lStaticToken.length]={title:{key:TokenService.getKeyDocument(),value:TokenService.TOKEN_LABEL_DOCUMENTO},tokenType:TokenService.TOKEN_LABEL_DOCUMENTO,value:[]},e.forEach((function(e){t.lStaticToken[t.lStaticToken.length-1].value.push({key:e.id+"_info",label:e.name})}))),t.initListTokenPresupuesto()}),(function(e){return t.toastrService.error("Error consultando la información de documentos")}))},e.prototype.initListTokenPresupuesto=function(){var t=this;this.budgetService.lGlobalBudgetChanged.subscribe((function(e){var n,o,r,i;if(t.callBudgetService&&(t.callBudgetService=!1,e)){var a=[];try{for(var s=__values(e),c=s.next();!c.done;c=s.next()){var p=c.value;(p.pliTipoPresupuesto.tpresCodigo===ngPliUtil.ETipoPresupuesto.PRIMARY||p.pliTipoPresupuesto.tpresCodigo===ngPliUtil.ETipoPresupuesto.SECONDARY)&&a.push(p)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}if(a&&Object.keys(a).length>0){t.lStaticToken[t.lStaticToken.length]={title:{key:TokenService.getKeyBudget(),value:TokenService.TOKEN_LABEL_BUDGET},tokenType:TokenService.TOKEN_LABEL_BUDGET,value:[]};try{for(var l=__values(a),d=l.next();!d.done;d=l.next()){var u=d.value,m=u.pliTipoPresupuesto.tpresCodigo;t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_FECHA_FINANCING_START,label:u.cpreNombre+" fecha inicio financiación"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_FECHA_FINANCING_END,label:u.cpreNombre+" fecha fin financiación"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_AMOUNT,label:"Convocatoria- "+u.cpreNombre+" total"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_OWN_FOUNDS,label:"Convocatoria- "+u.cpreNombre+" fondos propios"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_FINANCING,label:"Convocatoria- "+u.cpreNombre+" financiación"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_AMOUNT,label:"Legalización- "+u.cpreNombre+" total"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_OWN_FOUNDS,label:"Legalización- "+u.cpreNombre+" fondos propios"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_FINANCING,label:"Legalización- "+u.cpreNombre+" financiación"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_INSURANCE_AMOUNT,label:"Legalización- "+u.cpreNombre+" financiación + seguro"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.LEGALIZATION_OR_APPLICATION_TOTAL_FINANCING,label:"Financiación - "+u.cpreNombre+" legalización (+ seguro) o Convocatoria "}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_RESUME_CATEGORY_YEAR,label:u.cpreNombre+" resumen rubro y año"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_DURATION_STUDIES,label:u.cpreNombre+" duración de estudios en meses"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_FINANCING_DURATION,label:u.cpreNombre+" duración de financiación en meses"})}}catch(t){r={error:t}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}t.initListTokenTasks()}})),this.budgetService.getListPresupuestoGlobal(this.promCodigo),this.callBudgetService=!0},e.prototype.initListTokenTasks=function(){var t=this;this.pliCnfTaskService.getByPromCodigo(this.promCodigo).subscribe((function(e){if(e){for(var n=[],o=0;o<e.length;o++)n.push(e[o]),n[o].formulaToken=t.camelize(t.eliminarDiacriticos(e[o].name))+"_"+e[o].id;t.lStaticToken[t.lStaticToken.length]={title:{key:TokenService.TOKEN_LABEL_TASKL,value:TokenService.TOKEN_LABEL_TASK},tokenType:TokenService.TOKEN_LABEL_TASK,value:[]},n.forEach((function(e){t.lStaticToken[t.lStaticToken.length-1].value.push({key:e.formulaToken,label:e.name})})),t.adjustStaticTokensInfo(),t.getTokenCalculated()}}))},e.prototype.adjustStaticTokensInfo=function(){var t,e,n,o,r,i,a,s,c,p,l,d;this.lStaticToken[this.lStaticToken.length]={title:{key:TokenService.getKeyStatic(),value:TokenService.TOKEN_LABEL_STATIC},tokenType:TokenService.TOKEN_LABEL_STATIC,value:TokenService.STATIC_TOKENS};try{for(var u=__values(this.lStaticToken),m=u.next();!m.done;m=u.next()){var h=m.value,g=[];if(h.tokenType==TokenService.TOKEN_LABEL_FORM){var f=null,v=null;try{for(var y=(n=void 0,__values(h.value)),C=y.next();!C.done;C=y.next()){var b=C.value;!this.showFrmMultiple&&b.editgrid&&!0===b.editgrid||(b.panelName&&(f=b.panelName),null!==f&&f!=v?g.push({title:{value:f},value:[]}):null===f&&0===g.length&&g.push({title:{value:h.title.value},value:[]}),g[g.length-1].value.push(b),v=f)}}catch(t){n={error:t}}finally{try{C&&!C.done&&(o=y.return)&&o.call(y)}finally{if(n)throw n.error}}}else{g.push({title:{value:h.title.value},value:[]});try{for(var S=(r=void 0,__values(h.value)),_=S.next();!_.done;_=S.next()){b=_.value;g[g.length-1].value.push(b)}}catch(t){r={error:t}}finally{try{_&&!_.done&&(i=S.return)&&i.call(S)}finally{if(r)throw r.error}}}h.value=g}}catch(e){t={error:e}}finally{try{m&&!m.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}try{for(var T=__values(this.lStaticToken),k=T.next();!k.done;k=T.next()){g=k.value;try{for(var P=(c=void 0,__values(g.value)),I=P.next();!I.done;I=P.next()){h=I.value;var E=0,A=0,w=[];w[A]=[];try{for(var O=(l=void 0,__values(h.value)),B=O.next();!B.done;B=O.next()){(b=B.value).type&&"button"===b.type||(w[A]||(w[A]=[]),g.tokenType,TokenService.TOKEN_LABEL_TASK,w[A].push({key:"${"+g.title.key+"_"+b.key+"}",value:b.label,object:b}),4==++E&&(A++,E=0))}}catch(t){l={error:t}}finally{try{B&&!B.done&&(d=O.return)&&d.call(O)}finally{if(l)throw l.error}}if(E>0)for(var j=E;j<4;j++)w[A].push({key:null,value:null});h.value=w}}catch(t){c={error:t}}finally{try{I&&!I.done&&(p=P.return)&&p.call(P)}finally{if(c)throw c.error}}}}catch(t){a={error:t}}finally{try{k&&!k.done&&(s=T.return)&&s.call(T)}finally{if(a)throw a.error}}this.onStaticToken.emit(this.lStaticToken),localStorage.setItem("lStaticToken",JSON.stringify(this.lStaticToken))},e.prototype.getTokenCalculated=function(){var t=this;this.tokenService.getListByPromCodigo(this.promCodigo).subscribe((function(e){t.lCalculatedToken=e,t.ready=!0}),(function(e){console.log("Error getTokenCalculated -getListByPromCodigo",e),t.toastrService.error("Error el formulario")}))},e.prototype.getTokenSnapshot=function(){var t=this;this.showSnapshot&&this.snapshotTokenService.getAllByPromCode(this.promCodigo).subscribe((function(e){t.snapShotTokens=e,t.ready=!0}))},e.prototype.getTokenGuarantee=function(){var t=this;this.showGuatantee&&this.pliCnfGuaranteeTokenService.getAllByPromCodigo(this.promCodigo).subscribe((function(e){t.lGuaranteeTokens=e,t.ready=!0}),(function(e){t.toastrService.error("Error al obtener los token de garantias","Error")}))},e.prototype.eliminarDiacriticos=function(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")},e.prototype.camelize=function(t){return t.trim().split(" ").map((function(t){return t.trim()})).map((function(t){return t[0].toUpperCase()+t.substring(1)})).join("")},e.prototype.delete=function(t){var e=this;confirm("¿Está seguro que desea eliminar el token "+t.name+"?")&&this.tokenService.delete(t.id).subscribe((function(t){e.toastrService.success("El token fué eliminada exitosamente"),e.getTokenCalculated()}),(function(t){e.toastrService.error("Error al intentar eliminar el token")}))},e.prototype.labelCalculated=function(t){return"${"+TokenService.getKeyCalculated(t)+"}"},e.prototype.labelSnapshot=function(t){return"${"+TokenService.getKeySnapshot(t)+"}"},e.prototype.labelGuarantee=function(t){return"${"+TokenService.getKeyGuarantee(t)+"}"},e.prototype.initForm=function(t){this.tokenSelected=null==t?new ngPliUtil.Token:Object.assign(new ngPliUtil.Token,JSON.parse(JSON.stringify(t))),this.tokenSelected.promCodigo||(this.tokenSelected.promCodigo=this.promCodigo),this.controlName=new forms.FormControl(this.tokenSelected.name,forms.Validators.required),this.controlFormula=new forms.FormControl(this.tokenSelected.formula,forms.Validators.required),this.frmToken=new forms.FormGroup({controlName:this.controlName,controlFormula:this.controlFormula})},e.prototype.resolveKeyCalculatedToken=function(){return ngPliUtil.UtilString.replaceAccentSpacesOthers(this.tokenSelected.name)},e.prototype.save=function(){var t,e,n=this;if(this.isFormValid(this.frmToken)){if(this.lCalculatedToken&&this.lCalculatedToken.length>0)try{for(var o=__values(this.lCalculatedToken),r=o.next();!r.done;r=o.next()){var i=r.value;if(ngPliUtil.UtilString.replaceAccentSpacesOthers(i.name)===ngPliUtil.UtilString.replaceAccentSpacesOthers(this.tokenSelected.name)&&(!this.tokenSelected.id||this.tokenSelected.id!==i.id))return void this.toastrService.warning("El token "+i.name+" tiene la misma llave","Alerta!")}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}var a=!1;try{a=this.tokenService.validateFormula(this.lStaticToken,this.tokenSelected.name,this.tokenSelected.formula)}catch(t){return console.error(t.error),void this.toastrService.error(t.message,t.title)}if(!a)return void this.toastrService.error("No se logro evaluar la formular","Error!");this.tokenService.save(this.tokenSelected).subscribe((function(t){n.toastrService.success("Se ha guardado exitosamente ","Guardado exitoso!"),n.tokenSelected=null,n.getTokenCalculated()}),(function(t){console.error(t),n.toastrService.error("Error al intentar guardar el token","Error!")}))}},e.prototype.cancel=function(){this.tokenSelected=null},e.prototype.isGroupFrm=function(t){return t===TokenService.TOKEN_LABEL_FORM},e.prototype.isGroupStatic=function(t){return t===TokenService.TOKEN_LABEL_STATIC},e.prototype.isGroupBudget=function(t){return t===TokenService.TOKEN_LABEL_BUDGET},e.prototype.isGroupDocument=function(t){return t===TokenService.TOKEN_LABEL_DOCUMENTO},e.prototype.isGroupTask=function(t){return t===TokenService.TOKEN_LABEL_TASK},e.prototype.validateVisibility=function(t){return this.isGroupFrm(t)&&this.showFrm||this.isGroupStatic(t)&&this.showStatic||this.isGroupBudget(t)&&this.showBudget||this.isGroupDocument(t)&&this.showDocument||this.isGroupTask(t)&&this.showTask},e.ctorParameters=function(){return[{type:ngxToastr.ToastrService},{type:core.ChangeDetectorRef},{type:CommonService},{type:PppService},{type:router.Router},{type:BudgetService},{type:TokenService},{type:PliCnfSnapshotTokenServices},{type:ConfigurationDocumentService},{type:PliCnfEvaluationTaskService},{type:PliCnfGuaranteeTokenService}]},__decorate([core.Input(),__metadata("design:type",Number)],e.prototype,"promCodigo",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showFrm",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showFrmMultiple",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showStatic",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showBudget",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showCalculated",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showCalculatedForm",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showSnapshot",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showSnapshotForm",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showDocument",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showTask",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showGuatantee",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showGuatanteeForm",void 0),__decorate([core.Output(),__metadata("design:type",Object)],e.prototype,"onStaticToken",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showAsTitle",void 0),__decorate([core.Inject(core.LOCALE_ID),__metadata("design:type",String)],e.prototype,"locale",void 0),e=__decorate([core.Component({selector:"pli-configuration-token",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áticos\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áticos\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\x3c!-- <input type="input" class="form-control" name="formula" id="formula" placeholder="Fórmula"\r\n formControlName="formula" [(ngModel)]="tokenSelected.formula" /> --\x3e\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órmula 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',styles:[""]}),__metadata("design:paramtypes",[ngxToastr.ToastrService,core.ChangeDetectorRef,CommonService,PppService,router.Router,BudgetService,TokenService,PliCnfSnapshotTokenServices,ConfigurationDocumentService,PliCnfEvaluationTaskService,PliCnfGuaranteeTokenService])],e)}(CommonListsComponent),DynamicFilterComponent=function(){function t(t,e){this.cdRef=t,this.commonService=e,this.searchFilter=new core.EventEmitter}return t.prototype.ngOnInit=function(){},t.prototype.ngOnChanges=function(t){var e=t.comboColumnWork;e&&e.currentValue&&(this.comboColumnWork=e.currentValue,this.active=!0,this.lSegFilter&&0!=this.lSegFilter.length||this.addFilter());var n=t.lSegColumn;n&&n.currentValue&&(this.lSegColumn=n.currentValue,this.loadMapColumn())},t.prototype.loadMapColumn=function(){var t,e;this.mapSegColumnById=new Map;try{for(var n=__values(this.lSegColumn),o=n.next();!o.done;o=n.next()){var r=o.value;this.mapSegColumnById.set(r.idColumn.toString(),r)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},t.prototype.onSelectColumn=function(t){if(t.idColumn){var e=this.getColumnById(t.idColumn.toString());e&&(t.idColumn=e.idColumn,t.type=e.type,t.label=e.label,t.key=e.key),Number(t.type)==this.getTypeNumber()||Number(t.type)==this.getTypeDate()?t.operator="1":t.operator="3",console.log("filter",t)}},t.prototype.getTypeText=function(){return ngPliUtil.ETypeColumn.TEXTO},t.prototype.getTypeNumber=function(){return ngPliUtil.ETypeColumn.NUMERICO},t.prototype.getTypeDate=function(){return ngPliUtil.ETypeColumn.FECHA},t.prototype.deleteFilter=function(t){console.log("Eliminar ",t),this.lSegFilter&&this.lSegFilter.splice(t,1),this.lSegFilter&&this.lSegFilter.length||this.addFilter()},t.prototype.setConjunction=function(t,e){t.conjunction=e},t.prototype.addFilter=function(){this.lSegFilter||(this.lSegFilter=[]);var t=new ngPliUtil.SegFilter;t.conjunction="Y",this.lSegFilter.push(t)},t.prototype.clean=function(){this.lSegFilter=[],this.addFilter()},t.prototype.deleteAll=function(){var t,e;if(this.lSegFilter)try{for(var n=__values(this.lSegFilter),o=n.next();!o.done;o=n.next()){o.value.value=void 0}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},t.prototype.search=function(){this.searchFilter.emit(this.lSegFilter)},t.prototype.getTypeInput=function(t){return t==this.getTypeDate()?"date":(this.getTypeNumber(),"text")},t.prototype.getColumnById=function(t){return this.mapSegColumnById.get(t)},t.ctorParameters=function(){return[{type:core.ChangeDetectorRef},{type:CommonService}]},__decorate([core.Input(),__metadata("design:type",Array)],t.prototype,"lSegFilter",void 0),__decorate([core.Input(),__metadata("design:type",Array)],t.prototype,"lSegColumn",void 0),__decorate([core.Input(),__metadata("design:type",Array)],t.prototype,"comboColumnWork",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],t.prototype,"searchFilter",void 0),t=__decorate([core.Component({selector:"app-dynamic-filter",template:'<div class="flex flow-row-wrap" style="margin:10px 0 0;justify-content: normal" *ngIf="active">\r\n <div class="segmentation-filter" *ngFor="let filter of lSegFilter; let i = index">\r\n <div *ngIf="filter.idColumn == undefined">\r\n <div class="ml-sm">\r\n <p-dropdown [style]="{ width: \'100%\' }" placeholder="-- Seleccione opción" [options]="comboColumnWork" [group]="true" [(ngModel)]="filter.idColumn" (onChange)="onSelectColumn(filter)" [filter]="true">\r\n </p-dropdown>\r\n </div>\r\n </div>\r\n <div class="flex align-items-center" *ngIf="filter.idColumn != undefined">\r\n <div class="ml-sm mr-sm">\r\n <span class="input-group-btn conector" *ngIf="i != 0">\r\n\t\t\t\t\t<button\r\n\t\t\t\t\t\ttype="button"\r\n\t\t\t\t\t\tclass="btn btn-info btn-sm br-5"\r\n\t\t\t\t\t\t*ngIf="filter.conjunction == \'Y\'"\r\n\t\t\t\t\t\t(click)="setConjunction(filter, \'O\')"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tY\r\n\t\t\t\t\t</button>\r\n\t\t\t\t\t<button\r\n\t\t\t\t\t\ttype="button"\r\n\t\t\t\t\t\tclass="btn btn-warning btn-sm br-5"\r\n\t\t\t\t\t\t*ngIf="filter.conjunction == \'O\'"\r\n\t\t\t\t\t\t(click)="setConjunction(filter, \'Y\')"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tO\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</span>\r\n <span class="ml-sm" *ngIf="i == 0">\r\n\t\t\t\t\t<span class="btn btn-sm br-5" style="cursor:auto;">&nbsp;</span>\r\n </span>\r\n </div>\r\n <div class="mr-sm">\r\n <select class="form-control input-sm select-operation" style="width: 125px;" [(ngModel)]="filter.operator">\r\n\t\t\t\t\t<option value="1">Igual a</option>\r\n\t\t\t\t\t<option value="2">Diferente a</option>\r\n\t\t\t\t\t<option value="3" *ngIf="filter.type == getTypeText()">Contiene</option>\r\n\t\t\t\t\t<option value="4" *ngIf="filter.type == getTypeText()">No contiene</option>\r\n\t\t\t\t\t<option\r\n\t\t\t\t\t\tvalue="5"\r\n\t\t\t\t\t\t*ngIf="filter.type == getTypeNumber() || filter.type == getTypeDate()"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tMayor a</option\r\n\t\t\t\t\t>\r\n\t\t\t\t\t<option\r\n\t\t\t\t\t\tvalue="6"\r\n\t\t\t\t\t\t*ngIf="filter.type == getTypeNumber() || filter.type == getTypeDate()"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tMayor o igual a</option\r\n\t\t\t\t\t>\r\n\t\t\t\t\t<option\r\n\t\t\t\t\t\tvalue="7"\r\n\t\t\t\t\t\t*ngIf="filter.type == getTypeNumber() || filter.type == getTypeDate()"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tMenor a</option\r\n\t\t\t\t\t>\r\n\t\t\t\t\t<option\r\n\t\t\t\t\t\tvalue="8"\r\n\t\t\t\t\t\t*ngIf="filter.type == getTypeNumber() || filter.type == getTypeDate()"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tMenor o igual a</option\r\n\t\t\t\t\t>\r\n\t\t\t\t\t<option value="9">Es vacío</option>\r\n\t\t\t\t</select>\r\n </div>\r\n <div>\r\n <input [type]="getTypeInput(filter.type)" [disabled]="filter.operator == 9" class="form-control input-value input-sm" [(ngModel)]="filter.value" [placeholder]="filter.label" style="width: 165px;" (keyup.enter)="search()" />\r\n </div>\r\n <div class="flex ml-sm button_filter">\r\n <button type="button" class="btn btn-danger btn-sm btn-rounded" (click)="deleteFilter(i)">\r\n\t\t\t\t\t<span class="fa fa-minus"></span>\r\n\t\t\t\t</button>\r\n <button type="button" class="btn btn-success btn-sm btn-rounded ml-sm" (click)="addFilter()" *ngIf="i + 1 == lSegFilter.length">\r\n\t\t\t\t\t<span class="fa fa-plus"></span>\r\n\t\t\t\t</button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<div class="row" style="margin:0 0 10px" *ngIf="active">\r\n <div class="col-sm-12 panel-button">\r\n <div class="btn-toolbar">\r\n <div class="btn-group">\r\n <button type="button" class="btn btn-primary btn-sm btn-consult" (click)="search()">\r\n\t\t\t\t\tConsultar\r\n\t\t\t\t</button>\r\n </div>\r\n <div class="btn-group">\r\n <button type="button" class="btn btn-danger btn-sm btn-delete" (click)="clean()">\r\n\t\t\t\t\tBorrar filtros\r\n\t\t\t\t</button>\r\n </div>\r\n <div class="btn-group">\r\n <button type="button" class="btn btn-warning btn-sm btn-clear" (click)="deleteAll()">\r\n\t\t\t\t\tlimpiar datos\r\n\t\t\t\t</button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>',styles:[".button_filter .btn{line-height:12px;width:22px;height:22px}.button_filter .btn.btn-success{background-color:transparent;border:1px solid #4cae4c;color:#4cae4c}.button_filter .btn.btn-success:hover{background-color:#4cae4c;color:#fff}.button_filter .btn-danger{background-color:transparent;color:#d43f3a}.button_filter .btn-danger:hover{background-color:#d43f3a;color:#fff}.conector .btn{height:22px;line-height:12px}.btn{padding:5px}.btn-rounded{border-radius:50%!important}.btn-clear,.btn-definition,.btn-delete,.btn-save{background-color:transparent;color:#333;transition:.3s}.btn-delete:hover{background-color:#d43f3a;color:#fff}.btn-save:hover{background-color:#4cae4c;color:#fff}.btn-definition:hover{color:#fff;background-color:#ccc}.btn-clear:hover{background-color:#eea236;color:#fff}.br-5{border-radius:5px!important}.mr-sm{margin-right:5px}.ml-sm{margin-left:5px}.flex{display:flex!important}.flow-row-wrap{flex-flow:row wrap}.align-items-center{align-items:center}.dialog-max-size .ui-dialog{width:95%!important}.segmentation-group .form-control.select-operation{width:40%;font-size:11px;padding-left:3px;padding-right:3px}.segmentation-group .form-control.input-value{width:60%}.segmentation-filter{margin-bottom:10px}.panel-button{background-color:#f8f8f8;padding-top:10px;padding-bottom:10px;border-top:1px solid #e7e7e7;border-bottom:1px solid #e7e7e7;text-align:right}"]}),__metadata("design:paramtypes",[core.ChangeDetectorRef,CommonService])],t)}(),ExcelToJsonComponent=function(){function t(){this.disableButton=!1,this.onLoadFile=new core.EventEmitter}return t.prototype.ngOnInit=function(){},t.prototype.onFileChange=function(t){var e=this;this.excelWorkbook=[];var n=t.target;if(1!==n.files.length)throw new Error("Cannot use multiple files");this.disableButton=!0;var o=new FileReader;o.onload=function(t){for(var n=t.target.result,o=xlsx.read(n,{type:"binary",cellDates:!0}),r=0;r<o.SheetNames.length;r++){var i=o.SheetNames[r],a=o.Sheets[i],s={sheet:{label:i,content:xlsx.utils.sheet_to_json(a,{raw:!0,defval:"",header:1})}};e.excelWorkbook.push(s)}e.onLoadFile.emit({data:e.excelWorkbook}),e.disableButton=!1},o.readAsBinaryString(n.files[0])},__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],t.prototype,"onLoadFile",void 0),t=__decorate([core.Component({selector:"pli-excel-to-json",template:'<input type="file" [disabled]="disableButton" (change)="onFileChange($event)" multiple="false" />\r\n',styles:[""]}),__metadata("design:paramtypes",[])],t)}(),ConfigurationCommonsComponent=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.commonService=e,o.cdRef=n,o.fullWidth=!1,o}return __extends(e,t),e.prototype.ngOnInit=function(){if(t.prototype.ngOnInit.call(this),this.fullWidth){var e=document.getElementById("mainContainer");e&&e.classList.remove("container")}},e.prototype.ngOnDestroy=function(){if(this.fullWidth){var t=document.getElementById("mainContainer");t&&t.classList.add("container")}},e}(CommonListsComponent),PdfConfigComponent=function(t){function e(e,n,o){var r=t.call(this,n,e)||this;return r.cdRef=e,r.commonService=n,r.configurationDocumentService=o,r.showFormula=!0,r.showSnapshot=!1,r.showSnapshotForm=!1,r.showName=!1,r.showIdiCodigo=!1,r.showCdocCodigo=!1,r.showTemplate=!1,r.showVisibles=!1,r.showMargins=!1,r.showHeader=!1,r.showFooter=!1,r.showFont=!1,r.showTokens=!1,r.showFrm=!0,r.showStatic=!0,r.showBudget=!0,r.showCalculated=!0,r.showCalculatedForm=!1,r.showSize=!1,r.showOrientation=!1,r.showRepeatHeader=!1,r.showRepeatFooter=!1,r.showPager=!1,r.showHeaderFooterHeight=!1,r.tgdocCodigo=10,r.pdfConfigChange=new core.EventEmitter,r.options={branding:!1},r}return __extends(e,t),e.prototype.ngOnInit=function(){this.handleOptions(),this.initLists()},e.prototype.handleOptions=function(){this.toolbar&&(this.options.toolbar=this.toolbar)},e.prototype.initLists=function(){var t=this;this.listFont=[{value:"Arial",label:"Arial"},{value:"Calibri",label:"Calibri"},{value:"Georgia",label:"Georgia"},{value:"Times",label:"Times New Roman"},{value:"Verdana",label:"Verdana"}],this.listSizes=[ngPliUtil.EPdfSize.LETTER,ngPliUtil.EPdfSize.LEGAL],this.listOrientation=[ngPliUtil.EPdfOrientation.PORTRAIT,ngPliUtil.EPdfOrientation.LANDSCAPE],this.pdfConfig.size=this.pdfConfig.size||ngPliUtil.EPdfSize.LETTER.id,this.pdfConfig.orientation=this.pdfConfig.orientation||ngPliUtil.EPdfOrientation.PORTRAIT.id,this.pdfConfig.showPager=void 0===this.pdfConfig.showPager||this.pdfConfig.showPager,this.pdfConfig.repeatHeader=void 0===this.pdfConfig.repeatHeader||this.pdfConfig.repeatHeader,this.pdfConfig.repeatFooter=void 0===this.pdfConfig.repeatFooter||this.pdfConfig.repeatFooter,this.showIdiCodigo&&this.commonService.onLanguageChanged().subscribe((function(e){e&&(t.listLanguage=e)})),this.showCdocCodigo&&this.configurationDocumentService.geListByPromCodigoAndTgdocCodigo(this.promCodigo,this.tgdocCodigo).subscribe((function(e){t.listDocument=e})),this.showBr=this.showRepeatHeader||this.showRepeatFooter||this.showPager},e.prototype.setListToken=function(t){this.listStaticToken=t},e.ctorParameters=function(){return[{type:core.ChangeDetectorRef},{type:CommonService},{type:ConfigurationDocumentService}]},__decorate([core.Input(),__metadata("design:type",Number)],e.prototype,"promCodigo",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showFormula",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showSnapshot",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showSnapshotForm",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showName",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showIdiCodigo",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showCdocCodigo",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showTemplate",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showVisibles",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showMargins",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showHeader",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showFooter",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showFont",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showTokens",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showFrm",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showStatic",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showBudget",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showCalculated",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showCalculatedForm",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showSize",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showOrientation",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showRepeatHeader",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showRepeatFooter",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showPager",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showHeaderFooterHeight",void 0),__decorate([core.Input(),__metadata("design:type",Number)],e.prototype,"tgdocCodigo",void 0),__decorate([core.Input(),__metadata("design:type",ngPliUtil.PdfConfig)],e.prototype,"pdfConfig",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],e.prototype,"pdfConfigChange",void 0),__decorate([core.Input(),__metadata("design:type",String)],e.prototype,"toolbar",void 0),e=__decorate([core.Component({selector:"pli-pdf-config",template:'<div class="row">\r\n\t<div class="col-md-3">\r\n\t\t<div class="row">\r\n\t\t\t<div class="col-sm-12" *ngIf="showName">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="name" class="form-control-label">Nombre *</label>\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="text"\r\n\t\t\t\t\t\tname="name"\r\n\t\t\t\t\t\tid="name"\r\n\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t[(ngModel)]="pdfConfig.name"\r\n\t\t\t\t\t\tplaceholder="Nombre"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<div class="form-control-error"></div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t\t<div class="col-sm-12" *ngIf="showFormula">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="formula" class="form-control-label"\r\n\t\t\t\t\t\t>Fórmula de la visibilidad del documento</label\r\n\t\t\t\t\t>\r\n\t\t\t\t\t<textarea\r\n\t\t\t\t\t\tstyle="resize: vertical"\r\n\t\t\t\t\t\trows="2"\r\n\t\t\t\t\t\ttype="text"\r\n\t\t\t\t\t\tname="formula"\r\n\t\t\t\t\t\tid="formula"\r\n\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t[(ngModel)]="pdfConfig.formula"\r\n\t\t\t\t\t\tplaceholder="Formula de la visibilidad del documento"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t</textarea>\r\n\t\t\t\t\t<div class="form-control-error"></div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12" *ngIf="showIdiCodigo">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="idiCodigo" class="form-control-label">Idioma *</label>\r\n\t\t\t\t\t<select\r\n\t\t\t\t\t\tname="idiCodigo"\r\n\t\t\t\t\t\tid="idiCodigo"\r\n\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t[(ngModel)]="pdfConfig.idiCodigo"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<option value="">-- Seleccione opción</option>\r\n\t\t\t\t\t\t<option *ngFor="let language of listLanguage" [value]="language.idiCodigo">\r\n\t\t\t\t\t\t\t{{ language.idiIdioma }}\r\n\t\t\t\t\t\t</option>\r\n\t\t\t\t\t</select>\r\n\t\t\t\t\t<div class="form-control-error"></div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12" *ngIf="showCdocCodigo">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="cdocCodigo" class="form-control-label">Tipo documento *</label>\r\n\t\t\t\t\t<select\r\n\t\t\t\t\t\tname="cdocCodigo"\r\n\t\t\t\t\t\tid="cdocCodigo"\r\n\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t[(ngModel)]="pdfConfig.cdocCodigo"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<option value="">-- Seleccione opción</option>\r\n\t\t\t\t\t\t<option *ngFor="let document of listDocument" [value]="document.id">\r\n\t\t\t\t\t\t\t{{ document.name }}\r\n\t\t\t\t\t\t</option>\r\n\t\t\t\t\t</select>\r\n\t\t\t\t\t<div class="form-control-error"></div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12" *ngIf="showVisibles">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="name" class="form-control-label">Visibilidad usuario</label>\r\n\t\t\t\t\t<div class="row">\r\n\t\t\t\t\t\t<div class="col-xs-12">\r\n\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\t\t\t\tid="visibleInternal"\r\n\t\t\t\t\t\t\t\tname="visibleInternal"\r\n\t\t\t\t\t\t\t\tvalue="1"\r\n\t\t\t\t\t\t\t\t[(ngModel)]="pdfConfig.visibleInternal"\r\n\t\t\t\t\t\t\t/>&nbsp; <label for="visibleInternal">Interno</label> &nbsp;&nbsp;&nbsp;\r\n\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\t\t\t\tid="visibleExternal"\r\n\t\t\t\t\t\t\t\tname="visibleExternal"\r\n\t\t\t\t\t\t\t\tvalue="1"\r\n\t\t\t\t\t\t\t\t[(ngModel)]="pdfConfig.visibleExternal"\r\n\t\t\t\t\t\t\t/>&nbsp;\r\n\t\t\t\t\t\t\t<label for="visibleExternal">Externo</label>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="form-control-error"></div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12" *ngIf="showFont">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="font" class="form-control-label">Tipo de letra</label>\r\n\t\t\t\t\t<select name="font" id="font" class="form-control" [(ngModel)]="pdfConfig.font">\r\n\t\t\t\t\t\t<option *ngFor="let font of listFont" [value]="font.value">\r\n\t\t\t\t\t\t\t{{ font.label }}\r\n\t\t\t\t\t\t</option>\r\n\t\t\t\t\t</select>\r\n\t\t\t\t\t<div class="form-control-error"></div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12" *ngIf="showSize">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="size" class="form-control-label">Tamaño de hoja</label>\r\n\t\t\t\t\t<select name="size" id="size" class="form-control" [(ngModel)]="pdfConfig.size">\r\n\t\t\t\t\t\t<option *ngFor="let size of listSizes" [value]="size.id">\r\n\t\t\t\t\t\t\t{{ size.name }}\r\n\t\t\t\t\t\t</option>\r\n\t\t\t\t\t</select>\r\n\t\t\t\t\t<div class="form-control-error"></div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12" *ngIf="showOrientation">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="orientation" class="form-control-label">Orientación</label>\r\n\t\t\t\t\t<select\r\n\t\t\t\t\t\tname="orientation"\r\n\t\t\t\t\t\tid="orientation"\r\n\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t[(ngModel)]="pdfConfig.orientation"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<option\r\n\t\t\t\t\t\t\t*ngFor="let orientation of listOrientation"\r\n\t\t\t\t\t\t\t[value]="orientation.id"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t{{ orientation.name }}\r\n\t\t\t\t\t\t</option>\r\n\t\t\t\t\t</select>\r\n\t\t\t\t\t<div class="form-control-error"></div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12" *ngIf="showPager">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\t\tclass="check-space"\r\n\t\t\t\t\t\t[(ngModel)]="pdfConfig.showPager"\r\n\t\t\t\t\t\tid="showPager"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<label for="showPager" class="form-control-label"> Ver paginador</label>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12" *ngIf="showRepeatHeader">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\t\tclass="check-space"\r\n\t\t\t\t\t\t[(ngModel)]="pdfConfig.repeatHeader"\r\n\t\t\t\t\t\tid="repeatHeader"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<label for="repeatHeader" class="form-control-label"> Repetir encabezado</label>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12" *ngIf="showRepeatFooter">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\t\tclass="check-space"\r\n\t\t\t\t\t\t[(ngModel)]="pdfConfig.repeatFooter"\r\n\t\t\t\t\t\tid="repeatFooter"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<label for="repeatFooter" class="form-control-label">\r\n\t\t\t\t\t\tRepetir pie de página</label\r\n\t\t\t\t\t>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-md-12" *ngIf="showMargins" [ngClass]="{ \'top-space\': showBr }">\r\n\t\t\t\tMárgenes (cm)\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-6" *ngIf="showMargins">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<div class="row">\r\n\t\t\t\t\t\t<div class="col-xs-12">\r\n\t\t\t\t\t\t\t<label for="pdfConfig.marginTop" class="form-control-label"\r\n\t\t\t\t\t\t\t\t>Arriba</label\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\ttype="number"\r\n\t\t\t\t\t\t\t\tname="pdfConfig.marginTop"\r\n\t\t\t\t\t\t\t\tid="pdfConfig.marginTop"\r\n\t\t\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t\t\tplaceholder="Arriba"\r\n\t\t\t\t\t\t\t\t[(ngModel)]="pdfConfig.marginTop"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-6" *ngIf="showMargins">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<div class="row">\r\n\t\t\t\t\t\t<div class="col-xs-12">\r\n\t\t\t\t\t\t\t<label for="pdfConfig.marginRight" class="form-control-label"\r\n\t\t\t\t\t\t\t\t>Derecha</label\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\ttype="number"\r\n\t\t\t\t\t\t\t\tname="pdfConfig.marginRight"\r\n\t\t\t\t\t\t\t\tid="pdfConfig.marginRight"\r\n\t\t\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t\t\tplaceholder="Derecha"\r\n\t\t\t\t\t\t\t\t[(ngModel)]="pdfConfig.marginRight"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-6" *ngIf="showMargins">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<div class="row">\r\n\t\t\t\t\t\t<div class="col-xs-12">\r\n\t\t\t\t\t\t\t<label for="pdfConfig.marginBottom" class="form-control-label"\r\n\t\t\t\t\t\t\t\t>Abajo</label\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\ttype="number"\r\n\t\t\t\t\t\t\t\tname="pdfConfig.marginBottom"\r\n\t\t\t\t\t\t\t\tid="pdfConfig.marginBottom"\r\n\t\t\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t\t\tplaceholder="Abajo"\r\n\t\t\t\t\t\t\t\t[(ngModel)]="pdfConfig.marginBottom"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-6" *ngIf="showMargins">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<div class="row">\r\n\t\t\t\t\t\t<div class="col-xs-12">\r\n\t\t\t\t\t\t\t<label for="pdfConfig.marginLeft" class="form-control-label"\r\n\t\t\t\t\t\t\t\t>Izquierda</label\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\ttype="number"\r\n\t\t\t\t\t\t\t\tname="pdfConfig.marginLeft"\r\n\t\t\t\t\t\t\t\tid="pdfConfig.marginLeft"\r\n\t\t\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t\t\tplaceholder="Izquierda"\r\n\t\t\t\t\t\t\t\t[(ngModel)]="pdfConfig.marginLeft"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div\r\n\t\t\t\tclass="col-md-12"\r\n\t\t\t\t*ngIf="showHeaderFooterHeight"\r\n\t\t\t\t[ngClass]="{ \'top-space\': showBr }"\r\n\t\t\t>\r\n\t\t\t\tAlturas (cm)\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-6" *ngIf="showHeaderFooterHeight">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<div class="row">\r\n\t\t\t\t\t\t<div class="col-xs-12">\r\n\t\t\t\t\t\t\t<label for="pdfConfig.marginTop" class="form-control-label"\r\n\t\t\t\t\t\t\t\t>Cabecera</label\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\ttype="number"\r\n\t\t\t\t\t\t\t\tname="pdfConfig.headerHeight"\r\n\t\t\t\t\t\t\t\tid="pdfConfig.headerHeight"\r\n\t\t\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t\t\tplaceholder="Cabecera"\r\n\t\t\t\t\t\t\t\t[(ngModel)]="pdfConfig.headerHeight"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t\t<div class="col-sm-6" *ngIf="showHeaderFooterHeight">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<div class="row">\r\n\t\t\t\t\t\t<div class="col-xs-12">\r\n\t\t\t\t\t\t\t<label for="pdfConfig.marginTop" class="form-control-label"\r\n\t\t\t\t\t\t\t\t>Pie de página</label\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\ttype="number"\r\n\t\t\t\t\t\t\t\tname="pdfConfig.footerHeight"\r\n\t\t\t\t\t\t\t\tid="pdfConfig.footerHeight"\r\n\t\t\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t\t\tplaceholder="Pie de pág"\r\n\t\t\t\t\t\t\t\t[(ngModel)]="pdfConfig.footerHeight"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12 margin-top" *ngIf="showTokens">\r\n\t\t\t\t<pli-configuration-token\r\n\t\t\t\t\t[promCodigo]="promCodigo"\r\n\t\t\t\t\t[showFrm]="showFrm"\r\n\t\t\t\t\t[showStatic]="showStatic"\r\n\t\t\t\t\t[showBudget]="showBudget"\r\n\t\t\t\t\t[showCalculated]="showCalculated"\r\n\t\t\t\t\t[showCalculatedForm]="showCalculatedForm"\r\n\t\t\t\t\t[showSnapshotForm]="showSnapshotForm"\r\n\t\t\t\t\t[showSnapshot]="showSnapshot"\r\n\t\t\t\t></pli-configuration-token>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class="col-md-9">\r\n\t\t<div class="row">\r\n\t\t\t<div class="col-md-12" *ngIf="showHeader">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="header" class="form-control-label">Encabezado</label>\r\n\t\t\t\t\t<app-tinymce [(ngModel)]="pdfConfig.header" [options]="options"></app-tinymce>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\r\n\t\t<div class="row margin-top" *ngIf="showTemplate">\r\n\t\t\t<div class="col-md-12">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="template" class="form-control-label">Cuerpo</label>\r\n\t\t\t\t\t<app-tinymce [(ngModel)]="pdfConfig.template" [options]="options"></app-tinymce>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\r\n\t\t<div class="row margin-top" *ngIf="showFooter">\r\n\t\t\t<div class="col-md-12">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="footer" class="form-control-label">Pie de página</label>\r\n\t\t\t\t\t<app-tinymce [(ngModel)]="pdfConfig.footer" [options]="options"></app-tinymce>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n',styles:[".top-space{margin-top:12px}.check-space{margin-right:5px}"]}),__metadata("design:paramtypes",[core.ChangeDetectorRef,CommonService,ConfigurationDocumentService])],e)}(ConfigurationCommonsComponent),ApplicationService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"application/getById",{params:(new http.HttpParams).set("id",t)})},t.prototype.getByIdLight=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"application/getByIdLight",{params:(new http.HttpParams).set("id",t)})},t.prototype.getByIdLightIn=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/getByIdLightIn",t)},t.prototype.getApplicationsByDataTableParameters=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"application/getApplicationsByDataTableParameters",t)},t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"application/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getByUsername=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"application/getByUsername",{params:(new http.HttpParams).set("username",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/save",t,this.headerJson)},t.prototype.getLastNumber=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"application/getLastNumber",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.changeStatusByCategory=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"application/changeStatusByCategory",t,this.headerJson)},t.prototype.changeMassiveStatus=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"application/changeMassiveStatus",t,this.headerJson)},t.prototype.changeColor=function(t,e){var n={applicationId:t,color:e};return this.httpClient.put(this.environment.host.backend.backoffice+"application/changeColor",n)},t.prototype.getHistoryState=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"application/getHistoryState",{params:(new http.HttpParams).set("applicationId",t.toString())})},t.prototype.saveMassive=function(t,e){var n={listApplicationDataFormRequest:t,applicationsToVerifyDocument:e};return this.httpClient.post(this.environment.host.backend.configuration+"application-dataform/saveMultiple",n,this.headerJson)},t.prototype.getByDataTablesParameters=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/getByDataTablesParameters",t,this.headerJson)},t.prototype.getByTaskIdPromCodigoAndReviewer=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"application/getByTaskPromCodigoAndReviewer",t,this.headerJson)},t.prototype.getBackAppByDataTablesParameters=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"application/getByDataTablesParameters",t,this.headerJson)},t.prototype.getByDataTablesParametersApp=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"application/getByDataTablesParametersApp",t,this.headerJson)},t.prototype.getByNumberAndPromCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+"application/getByNumberAndPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("number",e.toString())})},t.prototype.acceptCredit=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/acceptCredit",t,this.headerJson)},t.prototype.confirmBudgetAppointment=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/confirmBudgetAppointment",t,this.headerJson)},t.prototype.initGuaranteeProcess=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"application/initGuaranteeProcess",t,this.headerJson)},t.prototype.getLegalizationAndEnsuranceByApplicationId=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"application/getLegalizationAndEnsuranceByApplicationId",t,this.headerJson)},t.prototype.generateBankVisionFiles=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"application/generateBankVisionFiles",t,this.headerJson)},t.prototype.saveAcceptDataProcessing=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/saveAcceptDataProcessing",t,this.headerJson)},t.prototype.saveBudgetTotalAmount=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/saveBudgetTotalAmount",t,this.headerJson)},t.prototype.saveObservationFinancingBudget=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/saveObservationFinancingBudget",t,this.headerJson)},t.prototype.blockBudget=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/blockBudget",t,this.headerJson)},t.prototype.unblockBudget=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/unblockBudget",{applicationId:t,observation:e},this.headerJson)},t.prototype.isBlockBudget=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/isBlockBudget",t,this.headerJson)},t.prototype.sendCodebtorResponseByStaticInteraction=function(t,e,n,o,r,i,a){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/sendCodebtorResponseByStaticInteraction",i,{params:(new http.HttpParams).set("applicationId",t).set("codebtor",r).set("response",o.toString()).set("promCodigo",n.toString()).set("interaction",e.toString()).set("sendEmailToCodebtor",a.toString()),headers:this.headerJson.headers})},t.prototype.getFullNotSubmittedByPromCodigo=function(t,e,n,o,r){return void 0===r&&(r=!1),this.httpClient.post(this.environment.host.backend.backoffice+"application/getFullNotSubmittedByPromCodigo",n,{params:(new http.HttpParams).set("promCodigo",t).set("budgetTypeId",e).set("stateId",String(o)).set("atLeastOneDocument",String(r)),headers:this.headerJson.headers})},t.prototype.getNotSubmittedByFullDocuments=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+"application/getNotSubmittedByFullDocuments",{params:(new http.HttpParams).set("promCodigo",t).set("stateId",String(e))})},t.prototype.getMassiveDataByApplicationId=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"budget/getMassiveDataByApplicationId",{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.getByUsernameAndPromCodigo=function(t,e){var n={username:t,promCodigos:e};return this.httpClient.post(this.environment.host.backend.frontoffice+"application/getByUsernameAndPromCodigos",n)},t.prototype.updateAllInitialRecord=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/updateAllInitialRecord",t,this.headerJson)},t.prototype.updateSingleApplicationValue=function(t){return this.httpClient.put(this.environment.host.backend.frontoffice+"application/updateSingleApplicationValue",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),DataFormService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"data/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getByApplicationId=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"data/getByApplicationId",{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.getByApplicationIdAndFormId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"data/getByApplicationIdAndFormId",{params:(new http.HttpParams).set("applicationId",t).set("formId",e)})},t.prototype.uniqueFieldsByFormId=function(t,e,n){var o=this.environment.host.backend.frontoffice+"data/uniqueFieldsByFormId?formId="+e;return n&&(o+="&dataId="+n),this.httpClient.post(o,t,this.headerJson)},t.prototype.validateNumberDocumentLeadersAndMembers=function(t,e,n){var o=this.environment.host.backend.frontoffice+"data/validateNumberDocumentLeadersAndMembers?formId="+e+"&applicationId="+t;return this.httpClient.post(o,n,this.headerJson)},t.prototype.requiredFieldsByAppIdAndFormId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"data/getRequiredFields",{params:(new http.HttpParams).set("applicationId",t).set("formId",e)})},t.prototype.save=function(t,e,n,o){var r="data/getForm/submission?formId="+t+"&promCodigo="+o+"&applicationId="+n;return this.httpClient.post(this.environment.host.backend.frontoffice+r,e,this.headerJson)},t.prototype.saveMultiaplicacion=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"data/save",t)},t.prototype.getDataForm=function(t,e,n){var o=this.getDataFormUrl(t,e,n);return this.httpClient.get(o,this.headerJson)},t.prototype.getDataFormUrl=function(t,e,n){return this.environment.host.backend.frontoffice+"data/getForm?formId="+t+"&promCodigo="+n+"&applicationId="+e},t.prototype.update=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"data/save",t,this.headerJson)},t.prototype.updateCell=function(t,e,n,o){var r=(new http.HttpParams).set("applicationId",t).set("formId",e).set("cellName",n).set("cellValue",o);return this.httpClient.post(this.environment.host.backend.frontoffice+"data/update_cell?formId="+e+"&applicationId="+t+"&cellName="+n+"&cellValue="+o,{params:r},this.headerJson)},t.prototype.updateFields=function(t,e,n,o){var r={forms:e,keysByForm:n,fields:o};return this.httpClient.post(this.environment.host.backend.frontoffice+"data/update_fields?applicationId="+t,r,this.headerJson)},t.prototype.updateKeyValByAppIdAndFormId=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"data/updateColumn",t,this.headerJson)},t.prototype.saveMultiple=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"data/saveMultiple",t,this.headerJson)},t.prototype.saveMultiSubmission=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"data/save-multiSubmission",t,this.headerJson)},t.prototype.getByDataTablesParameters=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"data/getByDataTablesParameters",t,this.headerJson)},t.prototype.getByApplicationIdList=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"data/getByApplicationIdList",{params:(new http.HttpParams).set("lApplicationId",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfHeaderService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pli-cnf-header/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pli-cnf-header/save",t,this.headerJson)},t.prototype.saveClonning=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pli-cnf-header/saveClonning",{params:(new http.HttpParams).set("promCodigoInit",t.toString()).set("promCodigoFinal",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfLookAndFeelService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/lookAndFeel/getById",{params:(new http.HttpParams).set("idPatrocinador",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.plis+"config/lookAndFeel/save",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfPdfsService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAll=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfFormsPdf/getByPromCodigo/"+t)},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfFormsPdf/findById/"+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfFormsPdf",t,ngPliUtil.HEADER_JSON)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),TokenTransformationService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.transform=function(t,e,n){var o={txt:t,promCodigo:e,applicationId:n};return this.httpClient.post(this.environment.host.backend.configuration+"token-transformation/",o,this.headerJson)},t.prototype.transformAndKeepToken=function(t,e,n,o,r){var i={txt:t,promCodigo:e,applicationId:n,keepToken:o,locale:r};return this.httpClient.post(this.environment.host.backend.configuration+"token-transformation/transformAndKeepToken",i,this.headerJson)},t.prototype.transformByUsername=function(t,e,n){var o={txt:t,promCodigo:e,username:n};return this.httpClient.post(this.environment.host.backend.configuration+"token-transformation/transformByUsername",o,this.headerJson)},t.prototype.resolveFormula=function(t,e,n){var o={formula:t,promCodigo:e,applicationId:n};return this.httpClient.post(this.environment.host.backend.configuration+"token-transformation/resolveFormula",o,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PdfGeneratorComponent=function(){function t(t,e,n,o,r,i,a,s,c,p,l,d,u){this.sanitizer=t,this.dataFormService=e,this.applicationService=n,this.pppService=o,this.commonService=r,this.lookAndFeelService=i,this.header=a,this.resolver=s,this.activatedRoute=c,this.formService=p,this.pliCnfPdfService=l,this.pliCnfHeaderService=d,this.tokenTransformationService=u,this.showLabel=!1,this.actionClass="referenceClass",this.display=!0,this.items=[],this.dataForms=[],this.allDataForms=[],this.forms=[]}return Object.defineProperty(t.prototype,"configurations",{set:function(t){var e=this;this.items=t.map((function(t){return{label:t.name,command:function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return this.configuration=t,[4,this.htmltoPDF()];case 1:return e.sent(),[2]}}))}))}}}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"applicationId",{set:function(t){this._applicationId=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(t){this._applicationId||(this._applicationId=this.getElementIdFromEvent(t))},t.prototype.getElementIdFromEvent=function(t){var e=this.getElement(t);return e?e.getAttribute("data-element-id"):""},t.prototype.getElement=function(t){var e=this;return t.find((function(t){return t.classList&&t.classList.contains(e.actionClass)}))},t.prototype.htmltoPDF=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,n,o,r,i,a,s,c,p,l,d,u,m,h,g,f,v,y;return __generator(this,(function(C){switch(C.label){case 0:return t=this,[4,this.dataFormService.getByApplicationId(this._applicationId).toPromise()];case 1:return t.allDataForms=C.sent(),e=this.pppService.getPatCodigoByPromCodigo(this.promCode),this.configuration.isHeaderConfig?[4,this.pliCnfHeaderService.getByPromCodigo(this.promCode).toPromise()]:[3,4];case 2:return n=C.sent(),[4,this.tokenTransformationService.transform(n.html,this.promCode,this._applicationId).toPromise()];case 3:o=C.sent(),this.headerHtml=o.txt,C.label=4;case 4:return this.configuration.footer?[4,this.tokenTransformationService.transform(this.configuration.footer,this.promCode,this._applicationId).toPromise()]:[3,6];case 5:o=C.sent(),this.footerHtml=o.txt,C.label=6;case 6:r=function(t){i.configuration.forms.find((function(e){return e===t.formId}))&&(i.dataForms=__spread(i.dataForms,[t]))},i=this;try{for(a=__values(this.allDataForms),s=a.next();!s.done;s=a.next())l=s.value,r(l)}catch(t){g={error:t}}finally{try{s&&!s.done&&(f=a.return)&&f.call(a)}finally{if(g)throw g.error}}C.label=7;case 7:C.trys.push([7,12,13,14]),c=__values(this.dataForms),p=c.next(),C.label=8;case 8:return p.done?[3,11]:(l=p.value,[4,this.formService.getById(l.formId).toPromise()]);case 9:d=C.sent(),this.forms.push(d),C.label=10;case 10:return p=c.next(),[3,8];case 11:return[3,14];case 12:return u=C.sent(),v={error:u},[3,14];case 13:try{p&&!p.done&&(y=c.return)&&y.call(c)}finally{if(v)throw v.error}return[7];case 14:return m=this,[4,this.lookAndFeelService.getById(e).toPromise()];case 15:return m.lookAndFeelModel=C.sent(),this.lookAndFeelModel&&this.lookAndFeelModel.clafeUrlLogoAplicacion?[4,this.commonService.getBase64ImageByUrl(this.lookAndFeelModel.clafeUrlLogoAplicacion).toPromise()]:[3,17];case 16:h=C.sent(),this.urlLogo=this.sanitizer.bypassSecurityTrustUrl("data:image/png;base64, "+h.base64),C.label=17;case 17:return[4,this.exportAsPDF()];case 18:return C.sent(),[2]}}))}))},t.prototype.exportAsPDF=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,n,o=this;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.applicationService.getById(this._applicationId).toPromise()];case 1:return t=r.sent(),e={margin:[this.configuration.marginTop,this.configuration.marginLeft,this.configuration.marginBottom,this.configuration.marginRight],filename:t.username+"_"+this.configuration.name+".pdf",image:{type:"jpeg",quality:.98},html2canvas:{scale:2,logging:!0},jsPDF:{unit:"cm",format:"a4",orientation:"portrait"}},[4,new Promise((function(t){return setTimeout(t,5e3)}))];case 2:return r.sent(),n=html2pdf().set(e),[4,html2canvas(this.contentElement.nativeElement,{scrollX:0,scrollY:0,x:0,y:0,onclone:function(t){o.deleteButtons(t),t.getElementById("content").style.opacity="1"}}).then((function(t){n.from(t,"canvas").save()}))];case 3:return r.sent(),[2]}}))}))},t.prototype.deleteButtons=function(t){for(var e=t.querySelectorAll("button"),n=0;n<e.length;n++)e[n].style.display="none"},t.ctorParameters=function(){return[{type:platformBrowser.DomSanitizer},{type:DataFormService},{type:ApplicationService},{type:PppService},{type:CommonService},{type:PliCnfLookAndFeelService},{type:PliCnfHeaderService},{type:core.ComponentFactoryResolver},{type:router.ActivatedRoute},{type:FormService},{type:PliCnfPdfsService},{type:PliCnfHeaderService},{type:TokenTransformationService}]},__decorate([core.Input(),__metadata("design:type",Array),__metadata("design:paramtypes",[Array])],t.prototype,"configurations",null),__decorate([core.Input(),__metadata("design:type",String),__metadata("design:paramtypes",[String])],t.prototype,"applicationId",null),__decorate([core.ViewChild("content",{static:!0}),__metadata("design:type",core.ElementRef)],t.prototype,"contentElement",void 0),__decorate([core.Input(),__metadata("design:type",Object)],t.prototype,"showLabel",void 0),__decorate([core.Input(),__metadata("design:type",Object)],t.prototype,"actionClass",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"promCode",void 0),__decorate([core.HostListener("click",["$event.path"]),__metadata("design:type",Function),__metadata("design:paramtypes",[Array]),__metadata("design:returntype",void 0)],t.prototype,"onClick",null),t=__decorate([core.Component({selector:"pli-pdf-generator",template:'<div #content id="content" class="main-content" [class.main-content--show]="display">\r\n <div class="header">\r\n <div class="header-item">\r\n <img [src]="urlLogo" alt="logo" class="img-logo">\r\n </div>\r\n <div class="header-item">\r\n <div [innerHTML]="headerHtml"></div>\r\n </div>\r\n </div>\r\n <div *ngFor="let f of dataForms; index as i">\r\n <formio [form]="forms[i]" [submission]="dataForms[i]"></formio>\r\n <div class="html2pdf__page-break"></div>\r\n </div>\r\n <div [innerHTML]="footerHtml"></div>\r\n</div>\r\n<button type="button" class="btn btn-default btn-sm" (click)="menu.toggle($event)" title="PDF">\r\n <span class="fa fa-file-pdf"></span>{{ showLabel ? \'Generar PDF\' : \'\' }}\r\n</button>\r\n<p-tieredMenu #menu [model]="items" appendTo="body" [popup]="true"></p-tieredMenu>\r\n',styles:['@charset "UTF-8";.main-content{position:fixed;z-index:-1;overflow:visible;display:none;opacity:0;margin-top:10px;margin-bottom:10px;text-align:left!important}.main-content--show{top:0;left:0;display:block}.main-content ::ng-deep{@import url("https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700");@import url("https://fonts.googleapis.com/css?family=Roboto+Condensed:300,400,700&display=swap");}.main-content ::ng-deep .mat-drawer-inner-container .mat-list-base .mat-list-item,.main-content ::ng-deep .text-menu,.main-content ::ng-deep a.help_menu,.main-content ::ng-deep a.letter{color:#000;height:auto!important;padding:.3em 0;margin-bottom:0;border-left:0;font-size:15px;font-weight:300;line-height:17px;font-family:Roboto,sans-serif;min-height:20px!important}.main-content ::ng-deep .mat-drawer-inner-container .mat-list-base .mat-list-item:hover,.main-content ::ng-deep .text-menu:hover,.main-content ::ng-deep a.help_menu:hover,.main-content ::ng-deep a.letter:hover{color:#00a5e6!important;background-color:transparent}.main-content ::ng-deep .mat-drawer-inner-container .mat-list-base .mat-list-item:focus,.main-content ::ng-deep .text-menu:focus,.main-content ::ng-deep a.help_menu:focus,.main-content ::ng-deep a.letter:focus{color:#fff;background-color:#da291c}.main-content ::ng-deep body{margin:auto;display:block;max-width:1280px;background-color:#fafafa}.main-content ::ng-deep .sin-padding{padding:0!important}.main-content ::ng-deep .mat-toolbar-single-row{height:72px!important}.main-content ::ng-deep .mat-drawer-content{position:relative}.main-content ::ng-deep .img-logo{max-width:100%}.main-content ::ng-deep .card p{color:#666;font-weight:300;line-height:22px;font-family:Roboto,sans-serif;margin-top:0;margin-bottom:15px}.main-content ::ng-deep .mat-drawer-inner-container .mat-list-base{border:1px solid #ccc;padding-top:0!important;background-color:#f7f7f7;cursor:auto}.main-content ::ng-deep .mat-toolbar.mat-primary{border-bottom:2px solid #da291c!important}.main-content ::ng-deep .mat-toolbar.mat-primary .button-close-session{background-color:transparent}.main-content ::ng-deep mat-toolbar.mat-toolbar{margin-bottom:0!important;box-shadow:none}.main-content ::ng-deep .mat-drawer-side{border-right:0}.main-content ::ng-deep #list-home{margin-bottom:0!important}.main-content ::ng-deep .formio-form{padding:0 15px}.main-content ::ng-deep .mat-drawer,.main-content ::ng-deep mat-toolbar.mat-toolbar{position:relative!important}.main-content ::ng-deep .mat-toolbar{background-color:transparent}.main-content ::ng-deep .mat-toolbar.header--light{padding:0}.main-content ::ng-deep .mat-toolbar h3{width:100%;display:block;font-size:27px;font-weight:400;font-family:Roboto,sans-serif;margin-top:0;margin-bottom:0;padding-bottom:6px;border-bottom:1px solid #ccc}.main-content ::ng-deep .mat-drawer-container{background-color:#fff}.main-content ::ng-deep .mat-drawer-inner-container,.main-content ::ng-deep .mat-sidenav-content{padding-top:0}.main-content ::ng-deep .mat-drawer.mat-drawer-side{float:left}.main-content ::ng-deep .button-close-session{position:absolute!important;right:5px;height:40px;color:#fff;border-radius:0;border-left:1px solid #bbb}.main-content ::ng-deep .button-close-session:before{content:"";width:25px;height:22px;position:absolute;background-image:url(http://apps.colfuturo.org/PLIS/plantilla/img/otrocerrar.png)}.main-content ::ng-deep .button-close-session:hover{color:#fff}.main-content ::ng-deep .button-close-session:hover:before{background-image:url(http://apps.colfuturo.org/PLIS/plantilla/img/otrocerrar.png)}.main-content ::ng-deep .card{border:0!important;border-bottom:1px solid #ccc!important;background-color:#fff;border-radius:0}.main-content ::ng-deep .card .card-header{padding:0;border-bottom:0;background-color:#fff}.main-content ::ng-deep .card h4.card-title{font-size:19px;font-family:Roboto,sans-serif;font-weight:400;margin-top:5px;margin-bottom:5px!important}.main-content ::ng-deep .card .card-body{padding:.3rem 15px}.main-content ::ng-deep .stats h4.panel-title{font-size:15px}.main-content ::ng-deep .stats label.control-label--hidden{display:none}.main-content ::ng-deep .stats.required h4.panel-title{position:relative}.main-content ::ng-deep .stats.required h4.panel-title:after{content:"*";color:#da291c;margin-right:.5em;height:30px}.main-content ::ng-deep .card.No_border{border-bottom:0!important}.main-content ::ng-deep .mat-drawer-inner-container .mat-list-base{margin-top:0;padding-bottom:0}.main-content ::ng-deep .menu .mat-list-item.active:hover{background-color:#da291c!important;color:#fff!important}.main-content ::ng-deep .menu .mat-list-item.active:hover .mat-list-item-content{color:#fff!important}.main-content ::ng-deep a.letter{display:block;padding-left:10px;margin-top:10px}.main-content ::ng-deep a.letter:hover{text-decoration:none;background-color:transparent!important;color:#00a5e6!important}.main-content ::ng-deep a.letter img{margin-right:.3em}.main-content ::ng-deep a.help_menu{display:block;padding-left:10px;margin-top:5px}.main-content ::ng-deep a.help_menu img{margin-right:.3em}.main-content ::ng-deep a.help_menu:hover{text-decoration:none}.main-content ::ng-deep a.mat-list-item.letter.active{color:#da291c!important;background-color:transparent}.main-content ::ng-deep a.mat-list-item.help_menu.active{color:#da291c!important;background-color:transparent}.main-content ::ng-deep .mat-drawer.mat-drawer-end{position:fixed!important}.main-content ::ng-deep .mat-drawer-inner-container .mat-list-base .mat-list-item .mat-list-item-content{padding-right:0!important}.main-content ::ng-deep .send .mat-list-item-content{padding-left:0!important}.main-content ::ng-deep label{color:#333;font-size:14px;font-weight:300;font-family:Roboto,sans-serif;margin-bottom:0;position:relative}.main-content ::ng-deep label i.fa-question-circle{position:relative;left:2px}.main-content ::ng-deep label.control-label--hidden:after{position:absolute;right:inherit;left:0;font-size:15px;line-height:13px}.main-content ::ng-deep .no_label label.control-label--hidden{position:relative;right:inherit;left:0;float:left;width:15px;height:10px;margin-right:inherit!important}.main-content ::ng-deep .no_label input[type=text]{width:90%}.main-content ::ng-deep .no_label div.choices{margin-left:15px}.main-content ::ng-deep .form-group{margin-bottom:8px;margin-top:8px}.main-content ::ng-deep .form-group .form-control{height:22px;font-size:14px;font-weight:300;font-family:Roboto,sans-serif;padding:4px;border-radius:0!important}.main-content ::ng-deep .form-group textarea.form-control{min-height:50px;height:auto!important}.main-content ::ng-deep .form-group select.form-control{height:22px;line-height:22px;padding:0}.main-content ::ng-deep .form-group .choices.form-group.formio-choices .form-control{padding:0 10px;overflow:hidden}.main-content ::ng-deep .form-group .button-copy{color:#08c;font-size:15px;font-weight:400;padding:0}.main-content ::ng-deep .n_margin .form-group{margin-top:0;margin-bottom:0}.main-content ::ng-deep .form-group.formio-choices{margin-top:0;margin-bottom:0}.main-content ::ng-deep .n_padding{padding:0}.main-content ::ng-deep .n_padding_card .card-body{padding:0}.main-content ::ng-deep .form-control[readonly]{background-color:#f5f5f5}.main-content ::ng-deep .form-control:disabled{background-color:transparent!important;border:0!important}.main-content ::ng-deep input{border:1px solid #ccc;line-height:1;font-family:Roboto,sans-serif}.main-content ::ng-deep input:focus,.main-content ::ng-deep textarea:focus{box-shadow:0 0 0 .1rem #8daee5!important;border-color:#8daee5!important;background-color:#fff6de!important}.main-content ::ng-deep .sidenav{width:230px}.main-content ::ng-deep .btn{padding:3px 10px!important;font-size:14px!important;font-weight:400!important;font-family:Roboto,sans-serif!important;min-width:initial;width:auto;border-radius:0!important}.main-content ::ng-deep .btn:focus{box-shadow:none}.main-content ::ng-deep .btn-info,.main-content ::ng-deep .btn-info:hover{background-color:#08c;border:0;background-image:none!important}.main-content ::ng-deep .btn-primary,.main-content ::ng-deep .btn-success{border:0;border-radius:0;background-image:none}.main-content ::ng-deep .btn-primary:hover,.main-content ::ng-deep .btn-success:hover{border:0!important;background-image:none;background-color:#d20000}.main-content ::ng-deep .btn-primary{background-color:#08c}.main-content ::ng-deep .editgrid-add .btn{width:23px;height:23px;border-radius:50%!important;font-size:20px!important;line-height:1px;font-weight:400!important;border:2px solid #449d44;color:#449d44;background-color:transparent;text-align:center;padding:2px!important;transition:.3s}.main-content ::ng-deep .editgrid-add .btn:active,.main-content ::ng-deep .editgrid-add .btn:hover{background-color:#449d44;color:#fff;box-shadow:none!important;border:1px solid #fff!important}.main-content ::ng-deep .editgrid-listgroup .list-group-header{background-color:#e3e3e3!important;border-radius:0!important}.main-content ::ng-deep .editgrid-listgroup .list-group-header div{border-left:1px solid #fff;border-right:1px solid #fff;font-family:"Roboto Condensed",sans-serif;font-weight:300;font-size:14px}.main-content ::ng-deep .editgrid-listgroup .list-group-header:nth-child(1){border-right:0}.main-content ::ng-deep .editgrid-listgroup .list-group-item{border:0;position:relative;padding:0 5px!important;background-color:transparent}.main-content ::ng-deep .editgrid-listgroup .list-group-item small{font-size:14px;font-weight:300}.main-content ::ng-deep .editgrid-listgroup .list-group-item small strong{font-weight:300!important}.main-content ::ng-deep .editgrid-listgroup .list-group-item .btn-group.pull-right button{background-color:transparent;background-image:none;position:relative;padding:3px 0;border:0;color:#fff}.main-content ::ng-deep .editgrid-listgroup .list-group-item .btn-group.pull-right button.editRow{left:-5px;width:35px}.main-content ::ng-deep .editgrid-listgroup .list-group-item .btn-group.pull-right button.editRow:before{content:"";position:absolute;width:14px;height:14px;background-size:cover;background-image:url(http://apps.colfuturo.org/PLIS/plantilla/img/lapiz.png)}.main-content ::ng-deep .editgrid-listgroup .list-group-item .btn-group.pull-right button.removeRow:before{width:14px;height:14px;content:"";position:absolute;background-size:cover;background-image:url(http://apps.colfuturo.org/PLIS/img/delete_h.png)}.main-content ::ng-deep .editgrid-listgroup .list-group-item .btn-group.pull-right button.removeRow:hover:before{background-image:url(http://apps.colfuturo.org/PLIS/img/delete.png)}.main-content ::ng-deep .editgrid-listgroup .list-group-item .right_edit{position:absolute;right:0}.main-content ::ng-deep .editgrid-listgroup .editgrid-actions{margin-top:8px;margin-bottom:8px}.main-content ::ng-deep .editgrid-listgroup .editgrid-actions .btn-primary{border:0;padding:.375rem .75rem;font-size:.8125rem;background-image:none;background-color:#08c}.main-content ::ng-deep .editgrid-listgroup .editgrid-actions .btn-primary:hover{border:1px solid #016293;background-image:none;background-color:#016293}.main-content ::ng-deep .global-footer .container{padding:15px;margin-top:0;background-color:#e3e3e3}.main-content ::ng-deep .global-footer .container p{font-size:15px;text-align:left;margin-bottom:0}.main-content ::ng-deep button .fa{display:none}.main-content ::ng-deep button.btn.btn-success{margin:0;font-size:16px!important;padding:5px 20px!important;background-color:#449d44}.main-content ::ng-deep .fwwb-active{background:#4796d6;color:#fff!important}.main-content ::ng-deep .toast{opacity:1!important}.main-content ::ng-deep .toast-success{background-color:#51a351!important}.main-content ::ng-deep .toast-error{background-color:#bd362f!important}.main-content ::ng-deep .toast-info{background-color:#2f96b4!important}.main-content ::ng-deep .toast-warning{background-color:#f89406!important}.main-content ::ng-deep .has-error.alert-danger .checkbox,.main-content ::ng-deep .has-error.alert-danger .checkbox-inline,.main-content ::ng-deep .has-error.alert-danger .control-label,.main-content ::ng-deep .has-error.alert-danger .help-block,.main-content ::ng-deep .has-error.alert-danger .radio,.main-content ::ng-deep .has-error.alert-danger .radio-inline,.main-content ::ng-deep .has-error.alert-danger.checkbox label,.main-content ::ng-deep .has-error.alert-danger.checkbox-inline label,.main-content ::ng-deep .has-error.alert-danger.radio label,.main-content ::ng-deep .has-error.alert-danger.radio-inline label{color:#ed1d24!important}.main-content ::ng-deep .choices__list--single .choices__item span{white-space:nowrap}.main-content ::ng-deep .editgrid-listgroup .editgrid-actions .btn-danger:hover{color:#fff;background-color:#971b12}.main-content ::ng-deep p.Alert{color:#da291c}.main-content ::ng-deep .editgrid-body{padding:10px 0}.main-content ::ng-deep .choices__list--single .choices__item{overflow:hidden}.main-content ::ng-deep .checkbox-inline label,.main-content ::ng-deep .radio-inline label{font-weight:300!important}.main-content ::ng-deep .sin-p{padding:0!important}.main-content ::ng-deep .n_p-right .col-sm-2,.main-content ::ng-deep .n_p-right .col-sm-5,.main-content ::ng-deep .n_p-right .col-sm-6,.main-content ::ng-deep .n_p-right .col-sm-7{padding-right:0!important}.main-content ::ng-deep .n_p .col-xs-5{padding:0!important}.main-content ::ng-deep .choices[data-type*=select-one] .choices__button{margin-right:1px!important;background:#fff;opacity:1!important;width:15px!important}.main-content ::ng-deep .choices[data-type*=select-one]:after{right:5px!important}.main-content ::ng-deep .Label-left .form-check.radio{float:left;margin:0 .3em}.main-content ::ng-deep .has-feedback .form-control{padding-right:5px!important}.main-content ::ng-deep .tooltip-inner{text-align:left!important;background-color:#6d6d6d;color:#fff!important;max-width:300px;min-width:150px;padding:.6em;font-family:"Open Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:.7109375rem}.main-content ::ng-deep .alert-danger{background-color:#fffcf8;border:0!important;padding:1em 0}.main-content ::ng-deep .alert-danger p{font-size:13px;margin-bottom:0;margin-top:1em}.main-content ::ng-deep .card p{font-size:13px}.main-content ::ng-deep .form-control.is-invalid,.main-content ::ng-deep .was-validated .form-control:invalid{background-image:none}.main-content ::ng-deep .editgrid-listgroup .list-group-header div,.main-content ::ng-deep .editgrid-listgroup .list-group-header div:first-child{border-left:0!important}.main-content ::ng-deep .editgrid-listgroup .list-group-header div:last-child{border-right:0!important}.main-content ::ng-deep .Ensayo label:after,.main-content ::ng-deep .N_Left label:after,.main-content ::ng-deep .required_label label:after{right:-10px}.main-content ::ng-deep .list-group-item div{font-weight:300;font-family:Roboto,sans-serif;font-size:14px;color:#333}.main-content ::ng-deep .list-group-item .body_table div{padding-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.main-content ::ng-deep .help-block{color:#ed1d24!important;clear:both}.main-content ::ng-deep .editgrid-listgroup .editgrid-actions .btn-danger{transition:.3s;text-transform:none!important;background-color:#da291c;color:#fff;border:1px solid #f5f5f5;background-image:none}.main-content ::ng-deep .editgrid-listgroup.bloque_laboral{width:55%!important}.main-content ::ng-deep .cortado .form-group .form-check{float:left;width:50%!important;padding:0 1em}.main-content ::ng-deep .btn-group.pull-right{padding:0!important}.main-content ::ng-deep .editgrid-edit{width:980px}.main-content ::ng-deep .choices__list--dropdown{width:auto!important;word-break:normal!important}.main-content ::ng-deep .choices__list--dropdown .choices__item{font-weight:300!important;font-weight:13px!important;padding:4px 10px!important;font-family:"Roboto Condensed",sans-serif}.main-content ::ng-deep .Phone input{width:55%!important}.main-content ::ng-deep .date_full-1 .input-group{width:65%!important}.main-content ::ng-deep .date_full-2 .input-group{width:60%!important}.main-content ::ng-deep .date_full-3 .input-group{width:47%!important}.main-content ::ng-deep button.btn.btn-danger.removeRow,.main-content ::ng-deep button.btn.btn-default.editRow{padding-right:0!important;padding-left:0!important}.main-content ::ng-deep .Statistics .form-group .form-group{padding:0 17px}.main-content ::ng-deep .row_2{margin-left:-15px}.main-content ::ng-deep .mat-tab-label{min-width:120px}.main-content ::ng-deep .mat-toolbar.mat-primary button.mat-icon-button{display:none}.main-content ::ng-deep p{font-size:14px;font-weight:300;font-family:Roboto,sans-serif}.main-content ::ng-deep .margin_bottom{margin-bottom:20px;margin-top:20px}.main-content ::ng-deep .p-10{padding:10px!important}.main-content ::ng-deep .pl-30{padding-left:30px!important}.main-content ::ng-deep .mat-card-header .mat-card-header-text{margin:0!important}.main-content ::ng-deep input[type=checkbox],.main-content ::ng-deep input[type=radio]{box-shadow:none!important;border-color:transparent!important}.main-content ::ng-deep .field-required:after{font-size:12px;position:relative;left:2px}.main-content ::ng-deep .formio-component-submit{padding-left:15px}.main-content ::ng-deep .date .input-group input.form-control{margin-right:0}.main-content ::ng-deep .input-group-addon{float:right;width:30px}.main-content ::ng-deep .input-group-addon .glyphicon{width:16px;height:16px;position:absolute;right:7px;top:3px;background-size:cover;background-repeat:no-repeat}.main-content ::ng-deep .input-group-addon .glyphicon-calendar{background-image:url(http://apps.colfuturo.org/PLIS/img/calendar.svg)}.main-content ::ng-deep .numInputWrapper span{opacity:1!important}.main-content ::ng-deep .flatpickr-current-month .numInputWrapper{width:60px!important}.main-content ::ng-deep .flatpickr-months .flatpickr-month{height:39px!important}.main-content ::ng-deep .mt-0,.main-content ::ng-deep .n_margin-to{margin-top:0!important}.main-content ::ng-deep .group-item label{font-weight:300;font-family:Roboto,sans-serif;font-size:14px;color:#333;float:left;margin-right:1em}.main-content ::ng-deep .group-item{float:left;margin-right:.4em;display:-moz-flex;display:-ms-flex;display:-o-flex;display:flex}.main-content ::ng-deep .mat-card,.main-content ::ng-deep .mat-elevation-z8{box-shadow:none!important}.main-content ::ng-deep .relative{position:relative}.main-content ::ng-deep mat-card-content h4{margin-bottom:1.5rem}.main-content ::ng-deep .mat-select-panel .mat-option{height:20px!important}.main-content ::ng-deep .mat-select-arrow{border-top:5px solid #757575!important}.main-content ::ng-deep input.mat-input-element{font-family:Roboto,sans-serif;font-weight:300;font-size:14px;padding-right:5px;padding-left:5px}.main-content ::ng-deep .mat-form-field-hide-placeholder .mat-select-placeholder{color:#666!important;-webkit-text-fill-color:#666!important}.main-content ::ng-deep .mat-vertical-stepper-header{height:auto!important;padding:8px 24px!important;margin-top:5px}.main-content ::ng-deep .mat-vertical-content{padding:5px 25px 0!important}.main-content ::ng-deep .mat-form-field{margin-right:1em!important}.main-content ::ng-deep .mat-form-field-infix{margin-top:0;border:1px solid #bbb;width:auto!important;height:22px;line-height:22px;padding:0!important;min-width:55px!important}.main-content ::ng-deep .mat-select-value{padding:0 3px;overflow:visible!important;font-size:14px;color:#7a7a7a;font-weight:300}.main-content ::ng-deep table.ng-star-inserted td,.main-content ::ng-deep table.ng-star-inserted th{vertical-align:top!important;padding:10px 15px 0 0;font-weight:300;font-family:Roboto,sans-serif;font-size:14px;color:#666}.main-content ::ng-deep table.ng-star-inserted .subcategory{padding-right:15px;width:130px}.main-content ::ng-deep table.ng-star-inserted .select-repeat{margin-right:0!important}.main-content ::ng-deep table.ng-star-inserted .mat-form-field.input-money{margin-right:0!important}.main-content ::ng-deep table.summary .last{border-left:1px solid #ccc}.main-content ::ng-deep table.summary tr:last-child .last{border-left:1px solid #fff}.main-content ::ng-deep .select-currency{margin-bottom:.3em}.main-content ::ng-deep .mat-icon-button{padding:0 0 0 1em!important;width:auto!important;height:20px!important;line-height:20px!important}.main-content ::ng-deep .inner{overflow-x:scroll;margin-left:124px;margin-right:170px}.main-content ::ng-deep .presupuesto_detalle .table thead th{border-bottom:0 solid transparent!important;border-left:1px solid #ccc}.main-content ::ng-deep .presupuesto_detalle .table tbody tr.Last th{border-right:1px solid #fff!important;background-color:#cacaca!important}.main-content ::ng-deep .presupuesto_detalle .table tbody tr.Last th.Last{border-left:1px solid #fff}.main-content ::ng-deep .presupuesto_detalle .table tbody tr:hover .col1{color:#00a5e6!important}.main-content ::ng-deep .col1,.main-content ::ng-deep .col2{position:absolute;top:auto}.main-content ::ng-deep .col1{width:125px;left:0;font-weight:400!important;border-right:1px solid #ccc;border-left:0!important}.main-content ::ng-deep .col2{min-width:85px!important;font-weight:700!important;text-align:right;border-left:1px solid #ccc}.main-content ::ng-deep .mat-tab-body-content,.main-content ::ng-deep .tabla_fija .mat-tab-body-wrapper{overflow:visible!important;height:auto!important}.main-content ::ng-deep .mat-tab-body.mat-tab-body-active{overflow-y:inherit!important}.main-content ::ng-deep .mat-form-field-appearance-legacy .mat-form-field-underline{height:0!important;display:none!important}.main-content ::ng-deep .mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.main-content ::ng-deep .mat-form-field-empty.mat-form-field-label{display:none!important}.main-content ::ng-deep .mat-step-header .mat-step-icon-state-edit{background:#00aa1a!important}.main-content ::ng-deep .mat-tab-label{height:40px!important;min-width:90px!important}.main-content ::ng-deep .mat-tab-label .mat-tab-label-content{font-size:17px;font-weight:400}.main-content ::ng-deep .mat-raised-button.mat-primary{padding:5px 20px!important;font-size:16px!important;background-color:#449d44}.main-content ::ng-deep .mat-fab.mat-primary,.main-content ::ng-deep .mat-flat-button.mat-primary,.main-content ::ng-deep .mat-mini-fab.mat-primary{background:#08c}.main-content ::ng-deep .mat-fab.mat-primary:hover,.main-content ::ng-deep .mat-flat-button.mat-primary:hover,.main-content ::ng-deep .mat-mini-fab.mat-primary:hover,.main-content ::ng-deep .mat-raised-button.mat-primary:hover{background-color:#d20000}.main-content ::ng-deep .mat-raised-button{min-width:inherit!important;padding:0 10px!important;line-height:27px!important;border-radius:0!important;margin-top:20px!important}.main-content ::ng-deep .mat-raised-button:not([class*=mat-elevation-z]){box-shadow:none!important}.main-content ::ng-deep .table th{font-weight:300}.main-content ::ng-deep .mat-flat-button:not([class*=mat-elevation-z]),.main-content ::ng-deep .mat-stroked-button:not([class*=mat-elevation-z]){box-shadow:none;border-radius:0;line-height:27px;padding:0 10px}.main-content ::ng-deep .mat-list-base .mat-list-item,.main-content ::ng-deep .mat-list-base .mat-list-option{height:auto!important;margin-bottom:10px}.main-content ::ng-deep .mat-list-base{padding-top:0!important}.main-content ::ng-deep button.add span,.main-content ::ng-deep mat-icon.add{color:#449d44}.main-content ::ng-deep button.remove{color:#da291c}.main-content ::ng-deep .icon-hover{display:none!important}.main-content ::ng-deep .icon-with-hover:hover .icon-hover{display:inline!important}.main-content ::ng-deep .icon-with-hover:hover .icon-active{display:none}.main-content ::ng-deep mat-icon.edit{color:#f3ab46}.main-content ::ng-deep tr.mat-header-row{height:35px!important}.main-content ::ng-deep .mat-header-cell{font-size:14px;font-weight:300}.main-content ::ng-deep .mat-radio-container,.main-content ::ng-deep .mat-radio-inner-circle,.main-content ::ng-deep .mat-radio-outer-circle{height:12px!important;width:12px!important}.main-content ::ng-deep .mat-radio-outer-circle{border-width:1px!important;border-color:#a8a8a8!important;background-color:#dedede}.main-content ::ng-deep .mat-radio-button:not(.mat-radio-disabled).cdk-focused .mat-radio-persistent-ripple{opacity:0!important}.main-content ::ng-deep .mat-radio-button.mat-accent .mat-radio-inner-circle,.main-content ::ng-deep .mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.main-content ::ng-deep .mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.main-content ::ng-deep .mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:#666!important}.main-content ::ng-deep mat-radio-group{display:inline-block!important}.main-content ::ng-deep mat-radio-button{margin:0 10px 5px!important}.main-content ::ng-deep .mat-icon{background-color:#fff}.main-content ::ng-deep .mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:.35em}.main-content ::ng-deep .mat-step-icon .mat-icon,.main-content ::ng-deep .mat-step-icon-content{transform:translate(-45%,-53%)!important}.main-content ::ng-deep .mat-step-header .mat-step-icon{background:#aaa;position:relative;z-index:2}.main-content ::ng-deep .mat-step-label{font-size:19px!important;line-height:26px;font-family:"Roboto Condensed",sans-serif;font-weight:400}.main-content ::ng-deep .letter .mat-form-field{margin-right:0;min-width:210px}.main-content ::ng-deep .btn-info{transition:.3s}.main-content ::ng-deep .btn-info span{color:#fff}.main-content ::ng-deep .btn-info:hover{cursor:pointer;background-color:#d20000}.main-content ::ng-deep .btn-info:disabled{background-color:#ccc!important;border-color:#ccc!important}.main-content ::ng-deep .mat-standard-chip{padding:0!important;background-color:#fff!important;justify-content:center;width:100%}.main-content ::ng-deep .mat-standard-chip:hover:after{background:0 0!important}.main-content ::ng-deep .mat-select-panel{min-width:calc(100% + 10px)!important}.main-content ::ng-deep .mat-button-focus-overlay{background-color:transparent!important}.main-content ::ng-deep button.delete:focus{outline:0}.main-content ::ng-deep .mat-step-header .mat-step-icon-selected{background-color:#da291c!important}.main-content ::ng-deep .mat-card-actions .mat-button,.main-content ::ng-deep .mat-card-actions .mat-raised-button{margin:0!important}.main-content ::ng-deep .mat-card>.mat-card-actions:last-child{margin-bottom:0!important}@media screen and (max-width:1260px){.main-content ::ng-deep .col,.main-content ::ng-deep .col-1,.main-content ::ng-deep .col-10,.main-content ::ng-deep .col-11,.main-content ::ng-deep .col-12,.main-content ::ng-deep .col-2,.main-content ::ng-deep .col-3,.main-content ::ng-deep .col-4,.main-content ::ng-deep .col-5,.main-content ::ng-deep .col-6,.main-content ::ng-deep .col-7,.main-content ::ng-deep .col-8,.main-content ::ng-deep .col-9,.main-content ::ng-deep .col-auto,.main-content ::ng-deep .col-lg,.main-content ::ng-deep .col-lg-1,.main-content ::ng-deep .col-lg-10,.main-content ::ng-deep .col-lg-11,.main-content ::ng-deep .col-lg-12,.main-content ::ng-deep .col-lg-2,.main-content ::ng-deep .col-lg-3,.main-content ::ng-deep .col-lg-4,.main-content ::ng-deep .col-lg-5,.main-content ::ng-deep .col-lg-6,.main-content ::ng-deep .col-lg-7,.main-content ::ng-deep .col-lg-8,.main-content ::ng-deep .col-lg-9,.main-content ::ng-deep .col-lg-auto,.main-content ::ng-deep .col-md,.main-content ::ng-deep .col-md-1,.main-content ::ng-deep .col-md-10,.main-content ::ng-deep .col-md-11,.main-content ::ng-deep .col-md-12,.main-content ::ng-deep .col-md-2,.main-content ::ng-deep .col-md-3,.main-content ::ng-deep .col-md-4,.main-content ::ng-deep .col-md-5,.main-content ::ng-deep .col-md-6,.main-content ::ng-deep .col-md-7,.main-content ::ng-deep .col-md-8,.main-content ::ng-deep .col-md-9,.main-content ::ng-deep .col-md-auto,.main-content ::ng-deep .col-sm,.main-content ::ng-deep .col-sm-1,.main-content ::ng-deep .col-sm-10,.main-content ::ng-deep .col-sm-11,.main-content ::ng-deep .col-sm-12,.main-content ::ng-deep .col-sm-2,.main-content ::ng-deep .col-sm-3,.main-content ::ng-deep .col-sm-4,.main-content ::ng-deep .col-sm-5,.main-content ::ng-deep .col-sm-6,.main-content ::ng-deep .col-sm-7,.main-content ::ng-deep .col-sm-8,.main-content ::ng-deep .col-sm-9,.main-content ::ng-deep .col-sm-auto,.main-content ::ng-deep .col-xl,.main-content ::ng-deep .col-xl-1,.main-content ::ng-deep .col-xl-10,.main-content ::ng-deep .col-xl-11,.main-content ::ng-deep .col-xl-12,.main-content ::ng-deep .col-xl-2,.main-content ::ng-deep .col-xl-3,.main-content ::ng-deep .col-xl-4,.main-content ::ng-deep .col-xl-5,.main-content ::ng-deep .col-xl-6,.main-content ::ng-deep .col-xl-7,.main-content ::ng-deep .col-xl-8,.main-content ::ng-deep .col-xl-9,.main-content ::ng-deep .col-xl-auto{padding-right:5px}.main-content ::ng-deep .Form_2{margin:20px 4px!important}}@media screen and (max-width:1250px){.main-content ::ng-deep label{font-size:13px!important}}@media screen and (max-width:1220px){.main-content ::ng-deep .mat-drawer.sidenav{position:absolute!important}.main-content ::ng-deep .row.formio-component{margin-left:0;margin-right:0}.main-content ::ng-deep .card .card-header h4.card-title{text-align:center}.main-content ::ng-deep .card .card-body{padding:.3rem 0!important}.main-content ::ng-deep label{width:100%!important;margin:.3em 1em .3em 0!important}.main-content ::ng-deep label:after{position:relative}.main-content ::ng-deep .form-group .form-control,.main-content ::ng-deep .form-group .input-group{margin-left:0!important;margin-right:0!important;width:100%!important}.main-content ::ng-deep .formio-choices.form-group{float:left;margin-left:0!important;margin-top:0!important}.main-content ::ng-deep .mat-toolbar-row,.main-content ::ng-deep .mat-toolbar-single-row{height:75px!important}.main-content ::ng-deep .col{padding-left:5px!important;padding-right:5px!important}.main-content ::ng-deep .block .row{display:block}.main-content ::ng-deep .mat-toolbar.mat-primary button.mat-icon-button{display:block;margin-right:2em}.main-content ::ng-deep .no_label label.control-label--hidden{width:auto!important;margin-right:1em!important}.main-content ::ng-deep .hidden-responsive{display:none}}@media screen and (max-width:991px){.main-content ::ng-deep .col{flex:100%!important;max-width:inherit!important;padding-left:0!important;padding-right:0!important}.main-content ::ng-deep .form-group .input-group{width:40%!important}.main-content ::ng-deep .mat-toolbar.mat-primary .button-close-session{width:40px}.main-content ::ng-deep .row_2{margin-left:0}.main-content ::ng-deep .mat-vertical-content{padding:5px 5px 0!important;overflow:hidden}}.main-content hr{display:block;border-style:inset;border-width:1px;color:red}.header{display:flex;align-items:stretch}.header-item{margin:0 5px}']}),__metadata("design:paramtypes",[platformBrowser.DomSanitizer,DataFormService,ApplicationService,PppService,CommonService,PliCnfLookAndFeelService,PliCnfHeaderService,core.ComponentFactoryResolver,router.ActivatedRoute,FormService,PliCnfPdfsService,PliCnfHeaderService,TokenTransformationService])],t)}(),FileService=function(){function t(t,e,n,o){this.environment=t,this.afAuth=e,this.angularFireStorage=n,this.httpClient=o,this.afAuth.auth.signInAnonymously().then((function(t){}))}return t.prototype.upload=function(t,e){var n=new rxjs.BehaviorSubject(void 0);return this.angularFireStorage.upload(t,e).then((function(t){t.ref.getDownloadURL().then((function(t){n.next(t)}))})).catch((function(t){console.error("Error trying to upload file",t),n.error(t)})),n.asObservable()},t.prototype.uploadWithPercentage=function(t,e){var n=new rxjs.BehaviorSubject(void 0),o=this.angularFireStorage.upload(t,e);return o.then((function(t){t.ref.getDownloadURL().then((function(t){n.next(t)}))})).catch((function(t){console.error("Error trying to upload file",t),n.error(t)})),{UrlObs:n.asObservable(),PercentageObs:o.percentageChanges()}},t.prototype.download=function(t){return this.angularFireStorage.storage.ref().child(t).getDownloadURL()},t.prototype.delete=function(t){this.angularFireStorage.storage.refFromURL(t).delete()},t.prototype.getPath=function(t,e,n,o,r,i,a){var s=[];if(s.push("documents"),t===ngPliUtil.EProceso.CONVOCATORIA&&s.push("convocatoria"),t===ngPliUtil.EProceso.LEGALIZACION&&s.push("legalizacion"),t===ngPliUtil.EProceso.SEGUIMIENTO&&s.push("seguimiento"),s.push(e.toString()),s.push(n.toString()),s.push(o.toString()),s.push(r),a){var c=i.split(".");s.push(a+"_"+c[0]+"_"+ngPliUtil.UtilString.createRandomFilename(i))}else s.push(ngPliUtil.UtilString.createRandomFilename(i));return s.join("/")},t.prototype.getSurveyDocumentPath=function(t,e,n){var o=[];if(o.push("documents"),o.push(t),n){var r=e.split(".");o.push(n+"_"+r[0]+"_"+ngPliUtil.UtilString.createRandomFilename(e))}else o.push(ngPliUtil.UtilString.createRandomFilename(e));return o.join("/")},t.prototype.getFromUrl=function(t){return this.httpClient.get(t,{responseType:"blob"})},t.prototype.getMetadataFromPath=function(t){return this.angularFireStorage.ref(t).getMetadata()},t.prototype.getDownloadURLFromPath=function(t){return this.angularFireStorage.ref(t).getDownloadURL()},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:auth.AngularFireAuth},{type:storage.AngularFireStorage},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(auth$1.AngularFireAuth),core.ɵɵinject(storage$1.AngularFireStorage),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,auth.AngularFireAuth,storage.AngularFireStorage,http.HttpClient])],t)}(),PDFJS=PDFJS_,panzoom=panzoom_,PdfVisualizerComponent=function(){function t(t,e,n,o){this.commonService=t,this.sanitization=e,this.taostrService=n,this.fileService=o,this.showPager=!0,this.repeatHeader=!0,this.repeatFooter=!0,this.onDownload=new core.EventEmitter,this.onSendEmail=new core.EventEmitter,this.onChange=new core.EventEmitter,this.ready=!1,this.id_canvas="pdf-canvas",this.edit=!1}var e;return e=t,t.prototype.ngOnChanges=function(t){var e=t.html,n=t.urlFile;if(e&&e.currentValue)this.html=e.currentValue,this.generatePDF();else if(n&&n.currentValue)this.urlFile=n.currentValue,this.generatePDF();else if(this.ready=!1,this.pdfDocument&&this.pdfDocument.canvas){var o=this.pdfDocument.canvas;this.pdfDocument.canvas.getContext("2d").clearRect(0,0,o.width,o.height),this.pdfDocument=void 0}},t.prototype.generatePDF=function(){var t=this;if(!ngPliUtil.UtilString.isValid(this.html)&&ngPliUtil.UtilString.isValid(this.urlFile))this.commonService.getBase64PdfByUrl(this.urlFile).subscribe((function(e){t.showBase64Pdf(e)}),(function(t){console.log("Error trying to render PDF",t)}));else{var e=new ngPliUtil.RequestPdf;e.html=this.html,e.header=this.header,e.footer=this.footer,e.lang=this.lang,e.marginTop=this.marginTop,e.marginRight=this.marginRight,e.marginBottom=this.marginBottom,e.marginLeft=this.marginLeft,e.orientation=this.orientation,e.size=this.size,e.font=this.font,e.repeatHeader=this.repeatHeader,e.repeatFooter=this.repeatFooter,e.showPager=this.showPager,e.headerHeight=this.headerHeight,e.footerHeight=this.footerHeight,this.commonService.getBase64Pdf(e).subscribe((function(e){t.showBase64Pdf(e)}),(function(t){console.log("Error trying to render PDF",t)}))}},t.prototype.showBase64Pdf=function(t){this.base64=t.base64;var e=atob(this.base64);PDFJS.workerSrc="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.228/pdf.worker.js",PDFJS.GlobalWorkerOptions&&(PDFJS.GlobalWorkerOptions.workerSrc="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.228/pdf.worker.js"),this.pdfDocument=new ngPliUtil.PdfDocument(this.id_canvas);var n=this.pdfDocument;panzoom(this.pdfDocument.canvas,{smoothScroll:!1});var o=this,r=(this.ready,PDFJS.getDocument({data:e}));(r.promise?r.promise:r).then((function(t){n.pdfDoc=t,o.renderPage(1),!0}))},t.prototype.testBase64ToFile2=function(){for(var t=atob(this.base64),e=t.length,n=new Uint8Array(e);e--;)n[e]=t.charCodeAt(e);var o=new File([n],"TestOPrada2.pdf",{type:"application/pdf"});this.testEnvioDoc(o,"TestOPrada2.pdf")},t.prototype.testEnvioDoc=function(t,e){var n=this.fileService.getPath(ngPliUtil.EProceso.CONVOCATORIA,500,2,1,"aaaa",e);this.fileService.upload(n,t).subscribe((function(t){console.log("Finalizo envío documento",t)}),(function(t){console.log("Error trying to upload: ",t)}))},t.prototype.getHeight=function(){return this.height?this.height+"px":e.DEFAULT_HEIGHT+"px"},t.prototype.renderPage=function(t){this.pdfDocument.pageRendering=!0;var e=this.pdfDocument,n=this;this.pdfDocument.pdfDoc.getPage(t).then((function(t){var o=t.getViewport(e.scale);e.canvas.height=o.height,e.canvas.width=o.width;var r={canvasContext:e.canvas.getContext("2d"),viewport:o};t.render(r).promise.then((function(){e.pageRendering=!1,null!==e.pageNumPending&&(n.renderPage(e.pageNumPending),e.pageNumPending=null)}))}))},t.prototype.queueRenderPage=function(t){this.pdfDocument.pageRendering?this.pdfDocument.pageNumPending=t:this.renderPage(t)},t.prototype.onPrevPage=function(){!this.pdfDocument||this.pdfDocument.pageNum<=1||(this.pdfDocument.pageNum--,this.queueRenderPage(this.pdfDocument.pageNum))},t.prototype.onNextPage=function(){!this.pdfDocument||this.pdfDocument.pageNum>=this.pdfDocument.pdfDoc.numPages||(this.pdfDocument.pageNum++,this.queueRenderPage(this.pdfDocument.pageNum))},t.prototype.onZoomIn=function(){!this.pdfDocument||this.pdfDocument.scale>=3||(this.pdfDocument.scale=this.pdfDocument.scale+.2,this.queueRenderPage(this.pdfDocument.pageNum))},t.prototype.onZoomOut=function(){!this.pdfDocument||this.pdfDocument.scale<=.4||(this.pdfDocument.scale=this.pdfDocument.scale-.2,this.queueRenderPage(this.pdfDocument.pageNum))},t.prototype.ngOnInit=function(){},t.prototype.sendEmail=function(){if(this.email&&ngPliUtil.UtilString.validateEmail(this.email))return this.onSendEmail.emit({to:this.email,base64:this.base64}),void(this.email="");this.taostrService.warning("Correo electrónico es incorrecto")},t.prototype.download=function(){var t=this,e=this.base64,n=this.b64toBlob(e,"application/pdf"),o=URL.createObjectURL(n),r=document.createElement("a");document.body.appendChild(r),r.style.display="none",r.href=o,r.download=this.filename,r.click(),setTimeout((function(){window.URL.revokeObjectURL(o),document.body.removeChild(r),t.onDownload.emit({base64:t.base64})}),200)},t.prototype.change=function(){this.generatePDF(),this.onChange.emit(this.html)},t.prototype.toggleEdit=function(){this.edit=!this.edit},t.prototype.isPdfDocument=function(){return void 0!==this.pdfDocument},t.prototype.isTitle=function(){return void 0!==this.title},t.prototype.isPdfDoc=function(){return this.pdfDocument&&null!=this.pdfDocument.pdfDoc&&null!=this.pdfDocument.pdfDoc},t.prototype.isFilename=function(){return void 0!==this.filename},t.prototype.isEnableEdit=function(){return 1==this.enableEdit},t.prototype.isEdit=function(){return 1==this.edit},t.prototype.isEnableEmail=function(){return 1==this.enableEmail},t.prototype.b64toBlob=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=512);for(var o=[],r=atob(t),i=0;i<r.length;i+=n){for(var a=r.slice(i,i+n),s=new Array(a.length),c=0;c<a.length;c++)s[c]=a.charCodeAt(c);var p=new Uint8Array(s);o.push(p)}return new Blob(o,{type:e})},t.DEFAULT_HEIGHT=500,t.ctorParameters=function(){return[{type:CommonService},{type:platformBrowser.DomSanitizer},{type:ngxToastr.ToastrService},{type:FileService}]},__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"html",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"header",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"footer",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"marginTop",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"marginRight",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"marginBottom",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"marginLeft",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"font",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"orientation",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"size",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],t.prototype,"showPager",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],t.prototype,"repeatHeader",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],t.prototype,"repeatFooter",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"headerHeight",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"footerHeight",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],t.prototype,"enableEdit",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"title",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"height",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"filename",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],t.prototype,"enableEmail",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],t.prototype,"onDownload",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],t.prototype,"onSendEmail",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],t.prototype,"onChange",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"lang",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"urlFile",void 0),t=e=__decorate([core.Component({selector:"pli-pdf-visualizer",template:'<h3 class="pdf-visualizer-title">{{ title }}</h3>\r\n<div class="pdf-visualizer-container">\r\n\t<div class="pdf-visualizer-controls" *ngIf="isPdfDocument() === true">\r\n\t\t<div class="row">\r\n\t\t\t<div class="col-md-7">\r\n\t\t\t\t<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">\r\n\t\t\t\t\t<div class="btn-group btn-group-sm mr-2" role="group" aria-label="Second group">\r\n\t\t\t\t\t\t\x3c!-- zoom in--\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\ttitle="Acercar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\t(click)="onZoomIn()"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-search-plus"></span>\r\n\t\t\t\t\t\t</a>\r\n\r\n\t\t\t\t\t\t\x3c!-- zoom out--\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\ttitle="Alejar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\t(click)="onZoomOut()"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-search-minus"></span>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<div class="btn-group btn-group-sm mr-2" role="group" aria-label="Third group">\r\n\t\t\t\t\t\t\x3c!--prev --\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\t(click)="onPrevPage()"\r\n\t\t\t\t\t\t\ttitle="Anterior"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-chevron-left"></span>\r\n\t\t\t\t\t\t</a>\r\n\r\n\t\t\t\t\t\t\x3c!-- pagination--\x3e\r\n\t\t\t\t\t\t<span class="btn btn-outline-secondary" *ngIf="isPdfDoc() === true">\r\n\t\t\t\t\t\t\tPágina: {{ pdfDocument.pageNum }} / {{ pdfDocument.pdfDoc.numPages }}\r\n\t\t\t\t\t\t</span>\r\n\r\n\t\t\t\t\t\t\x3c!--next --\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\t(click)="onNextPage()"\r\n\t\t\t\t\t\t\ttitle="Siguiente"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-chevron-right"></span>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<div class="btn-group btn-group-sm" role="group" aria-label="First group">\r\n\t\t\t\t\t\t\x3c!-- download--\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t[download]="filename"\r\n\t\t\t\t\t\t\t*ngIf="isFilename() === true"\r\n\t\t\t\t\t\t\t(click)="download()"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\ttitle="Descargar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\x3c!-- [href]="\r\n\t\t\t\t\t\t\tsanitization.bypassSecurityTrustUrl(\r\n\t\t\t\t\t\t\t\t\'data:application/pdf;base64,\' + this.base64\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t" --\x3e\r\n\t\t\t\t\t\t\t<span class="fa fa-download"></span>\r\n\t\t\t\t\t\t</a>\r\n\r\n\t\t\t\t\t\t\x3c!-- toggle edit--\r\n <a href="Javascript:;" *ngIf="isEnableEdit() === true" class="btn btn-outline-secondary" title="Editar"\r\n data-toggle="tooltip" data-placement="top" (click)="toggleEdit()">\r\n <span class="fa fa-edit"></span>\r\n </a>\r\n\r\n \x3c!-- generate pdf--\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\t*ngIf="isEdit() === true"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\ttitle="Generar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t\t(click)="change()"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-play"></span>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-md-5 pull-right" *ngIf="isEnableEmail() === true">\r\n\t\t\t\t<div class="input-group input-group-sm">\r\n\t\t\t\t\t<label for="pdf-visualizer-email" class="pdf">\r\n\t\t\t\t\t\tEnviar mensaje a\r\n\t\t\t\t\t</label>\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="email"\r\n\t\t\t\t\t\tid="pdf-visualizer-email"\r\n\t\t\t\t\t\tname="pdf-visualizer-email"\r\n\t\t\t\t\t\trequired="true"\r\n\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\tplaceholder="Correo electrónico"\r\n\t\t\t\t\t\t[(ngModel)]="email"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<div class="input-group-append">\r\n\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\ttype="button"\r\n\t\t\t\t\t\t\t(click)="sendEmail()"\r\n\t\t\t\t\t\t\ttitle="Enviar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<img\r\n\t\t\t\t\t\t\t\tsrc="http://giro360.co/zona360/colfuturo/PLIC/img/export.svg"\r\n\t\t\t\t\t\t\t\talt=""\r\n\t\t\t\t\t\t\t\twidth="16"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</button>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<div class="pdf-visualizer-dashboard">\r\n\t\t<div class="row">\r\n\t\t\t<div class="col-md-5" *ngIf="isEdit() === true">\r\n\t\t\t\t<textarea\r\n\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t[style.height]="getHeight()"\r\n\t\t\t\t\tstyle="resize:vertical;"\r\n\t\t\t\t\t[(ngModel)]="html"\r\n\t\t\t\t></textarea>\r\n\t\t\t</div>\r\n\t\t\t<div [ngClass]="{ \'col-md-7\': edit === true, \'col-md-12\': !edit }">\r\n\t\t\t\t<div\r\n\t\t\t\t\tid="pdf-scrollable"\r\n\t\t\t\t\tclass="pdf-visualizer-scrollable"\r\n\t\t\t\t\t[style.height]="getHeight()"\r\n\t\t\t\t>\r\n\t\t\t\t\t<canvas id="pdf-canvas" class="pdf-visualizer-canvas"> </canvas>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n',styles:[".pdf-visualizer-container{border:1px solid #eee;margin:10px 0}.pdf-visualizer-controls,.pdf-visualizer-dashboard{background-color:#f5f5f5;padding:15px}.pdf-visualizer-dashboard{border-bottom:1px solid #eee;border-top:1px solid #eee}.pdf-visualizer-title{font-size:1.4rem;color:red;text-align:center;margin-bottom:1em}.pdf-visualizer-canvas{cursor:move}.text-align-center{text-align:center}.text-align-left{text-align:left}.text-align-right{text-align:right}.margin-left{margin-left:5px}.pdf-visualizer-scrollable{overflow:hidden;text-align:center}label.pdf{margin-right:.6em;line-height:24px}button.btn-outline-secondary{height:26px;line-height:12px!important}"]}),__metadata("design:paramtypes",[CommonService,platformBrowser.DomSanitizer,ngxToastr.ToastrService,FileService])],t)}(),PDFJS$1=PDFJS_,panzoom$1=panzoom_,PdfMergeVisualizerComponent=function(){function t(t,e,n){this.commonService=t,this.taostrService=e,this.sanitization=n,this.enableEdit=!1,this.onDownload=new core.EventEmitter,this.onSendEmail=new core.EventEmitter,this.onPdfRendered=new core.EventEmitter,this.edit=!1,this.ready=!1,this.id_canvas="pdf-canvas"}var e;return e=t,t.prototype.ngOnChanges=function(t){var e=t.lPdfRequest,n=t.urlFile;if(e&&e.currentValue)this.generatePDF();else if(n&&n.currentValue)this.urlFile=n.currentValue,this.generatePDF();else if(this.ready=!1,this.pdfDocument&&this.pdfDocument.canvas){var o=this.pdfDocument.canvas;this.pdfDocument.canvas.getContext("2d").clearRect(0,0,o.width,o.height),this.pdfDocument=void 0}},t.prototype.generatePDF=function(){var t=this;ngPliUtil.UtilString.isValid(this.urlFile)?this.commonService.getBase64PdfByUrl(this.urlFile).subscribe((function(e){t.showBase64Pdf(e)}),(function(t){console.error("Error trying to render PDF",t)})):this.lPdfRequest&&this.commonService.getBase64PdfList(this.lPdfRequest).subscribe((function(e){t.showBase64Pdf(e)}),(function(t){console.error("Error trying to render PDF",t)}))},t.prototype.showBase64Pdf=function(t){this.base64=t.base64;var e=atob(this.base64);PDFJS$1.workerSrc="//mozilla.github.io/pdf.js/build/pdf.worker.js",this.pdfDocument=new ngPliUtil.PdfDocument(this.id_canvas);var n=this.pdfDocument;panzoom$1(this.pdfDocument.canvas,{smoothScroll:!1});var o=this;this.ready;PDFJS$1.getDocument({data:e}).then((function(t){n.pdfDoc=t,o.renderPage(1),!0,o.onPdfRendered.emit(!0)}))},t.prototype.getHeight=function(){return this.height?this.height+"px":e.DEFAULT_HEIGHT+"px"},t.prototype.renderPage=function(t){this.pdfDocument.pageRendering=!0;var e=this.pdfDocument,n=this;this.pdfDocument.pdfDoc.getPage(t).then((function(t){var o=t.getViewport(e.scale);e.canvas.height=o.height,e.canvas.width=o.width;var r={canvasContext:e.canvas.getContext("2d"),viewport:o};t.render(r).promise.then((function(){e.pageRendering=!1,null!==e.pageNumPending&&(n.renderPage(e.pageNumPending),e.pageNumPending=null)}))}))},t.prototype.queueRenderPage=function(t){this.pdfDocument.pageRendering?this.pdfDocument.pageNumPending=t:this.renderPage(t)},t.prototype.onPrevPage=function(){!this.pdfDocument||this.pdfDocument.pageNum<=1||(this.pdfDocument.pageNum--,this.queueRenderPage(this.pdfDocument.pageNum))},t.prototype.onNextPage=function(){!this.pdfDocument||this.pdfDocument.pageNum>=this.pdfDocument.pdfDoc.numPages||(this.pdfDocument.pageNum++,this.queueRenderPage(this.pdfDocument.pageNum))},t.prototype.onZoomIn=function(){!this.pdfDocument||this.pdfDocument.scale>=3||(this.pdfDocument.scale=this.pdfDocument.scale+.2,this.queueRenderPage(this.pdfDocument.pageNum))},t.prototype.onZoomOut=function(){!this.pdfDocument||this.pdfDocument.scale<=.4||(this.pdfDocument.scale=this.pdfDocument.scale-.2,this.queueRenderPage(this.pdfDocument.pageNum))},t.prototype.sendEmail=function(){if(this.email&&ngPliUtil.UtilString.validateEmail(this.email))return this.onSendEmail.emit({to:this.email,base64:this.base64}),void(this.email="");this.taostrService.warning("Correo electrónico es incorrecto")},t.prototype.download=function(){var t=this,e=this.base64,n=this.b64toBlob(e,"application/pdf"),o=URL.createObjectURL(n),r=document.createElement("a");document.body.appendChild(r),r.style.display="none",r.href=o,r.download=this.filename,r.click(),setTimeout((function(){window.URL.revokeObjectURL(o),document.body.removeChild(r),t.onDownload.emit({base64:t.base64})}),200)},t.prototype.toggleEdit=function(){this.edit=!this.edit},t.prototype.isPdfDocument=function(){return void 0!==this.pdfDocument},t.prototype.isTitle=function(){return void 0!==this.title},t.prototype.isPdfDoc=function(){return this.pdfDocument&&null!=this.pdfDocument.pdfDoc&&null!=this.pdfDocument.pdfDoc},t.prototype.isFilename=function(){return void 0!==this.filename},t.prototype.isEnableEdit=function(){return 1==this.enableEdit},t.prototype.isEdit=function(){return 1==this.edit},t.prototype.isEnableEmail=function(){return 1==this.enableEmail},t.prototype.b64toBlob=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=512);for(var o=[],r=atob(t),i=0;i<r.length;i+=n){for(var a=r.slice(i,i+n),s=new Array(a.length),c=0;c<a.length;c++)s[c]=a.charCodeAt(c);var p=new Uint8Array(s);o.push(p)}return new Blob(o,{type:e})},t.DEFAULT_HEIGHT=500,t.ctorParameters=function(){return[{type:CommonService},{type:ngxToastr.ToastrService},{type:platformBrowser.DomSanitizer}]},__decorate([core.Input(),__metadata("design:type",Array)],t.prototype,"lPdfRequest",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],t.prototype,"enableEdit",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"title",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"height",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"filename",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],t.prototype,"enableEmail",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"urlFile",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],t.prototype,"onDownload",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],t.prototype,"onSendEmail",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],t.prototype,"onPdfRendered",void 0),t=e=__decorate([core.Component({selector:"pli-pdf-merge-visualizer",template:'<h3 class="pdf-visualizer-title">{{ title }}</h3>\r\n<div class="pdf-visualizer-container">\r\n\t<div class="pdf-visualizer-controls" *ngIf="isPdfDocument() === true">\r\n\t\t<div class="row">\r\n\t\t\t<div class="col-md-7">\r\n\t\t\t\t<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">\r\n\t\t\t\t\t<div class="btn-group btn-group-sm mr-2" role="group" aria-label="Second group">\r\n\t\t\t\t\t\t\x3c!-- zoom in--\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\ttitle="Acercar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\t(click)="onZoomIn()"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-search-plus"></span>\r\n\t\t\t\t\t\t</a>\r\n\r\n\t\t\t\t\t\t\x3c!-- zoom out--\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\ttitle="Alejar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\t(click)="onZoomOut()"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-search-minus"></span>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<div class="btn-group btn-group-sm mr-2" role="group" aria-label="Third group">\r\n\t\t\t\t\t\t\x3c!--prev --\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\t(click)="onPrevPage()"\r\n\t\t\t\t\t\t\ttitle="Anterior"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-chevron-left"></span>\r\n\t\t\t\t\t\t</a>\r\n\r\n\t\t\t\t\t\t\x3c!-- pagination--\x3e\r\n\t\t\t\t\t\t<span class="btn btn-outline-secondary" *ngIf="isPdfDoc() === true">\r\n\t\t\t\t\t\t\tPágina: {{ pdfDocument.pageNum }} / {{ pdfDocument.pdfDoc.numPages }}\r\n\t\t\t\t\t\t</span>\r\n\r\n\t\t\t\t\t\t\x3c!--next --\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\t(click)="onNextPage()"\r\n\t\t\t\t\t\t\ttitle="Siguiente"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-chevron-right"></span>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<div class="btn-group btn-group-sm" role="group" aria-label="First group">\r\n\t\t\t\t\t\t\x3c!-- download--\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t[download]="filename"\r\n\t\t\t\t\t\t\t*ngIf="isFilename() === true"\r\n\t\t\t\t\t\t\t(click)="download()"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\ttitle="Descargar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\x3c!-- [href]="\r\n\t\t\t\t\t\t\t\tsanitization.bypassSecurityTrustUrl(\r\n\t\t\t\t\t\t\t\t\t\'data:application/pdf;base64,\' + this.base64\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t" --\x3e\r\n\t\t\t\t\t\t\t<span class="fa fa-download"></span>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\x3c!-- TODO - Check functionality --\x3e\r\n\t\t\t\t\t\t\x3c!-- toggle edit--\x3e\r\n\t\t\t\t\t\t\x3c!-- <a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\t*ngIf="isEnableEdit() === true"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\ttitle="Editar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t\t(click)="toggleEdit()"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-edit"></span>\r\n\t\t\t\t\t\t</a> --\x3e\r\n\r\n\t\t\t\t\t\t\x3c!-- generate pdf--\x3e\r\n\t\t\t\t\t\t\x3c!-- <a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\t*ngIf="isEdit() === true"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\ttitle="Generar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t\t(click)="change()"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-play"></span>\r\n\t\t\t\t\t\t</a> --\x3e\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-md-5 pull-right" *ngIf="isEnableEmail() === true">\r\n\t\t\t\t<div class="input-group input-group-sm">\r\n\t\t\t\t\t<label for="pdf-visualizer-email" class="pdf">\r\n\t\t\t\t\t\tEnviar mensaje a\r\n\t\t\t\t\t</label>\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="email"\r\n\t\t\t\t\t\tid="pdf-visualizer-email"\r\n\t\t\t\t\t\tname="pdf-visualizer-email"\r\n\t\t\t\t\t\trequired="true"\r\n\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\tplaceholder="Correo electrónico"\r\n\t\t\t\t\t\t[(ngModel)]="email"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<div class="input-group-append">\r\n\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\ttype="button"\r\n\t\t\t\t\t\t\t(click)="sendEmail()"\r\n\t\t\t\t\t\t\ttitle="Enviar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<img\r\n\t\t\t\t\t\t\t\tsrc="http://giro360.co/zona360/colfuturo/PLIC/img/export.svg"\r\n\t\t\t\t\t\t\t\talt=""\r\n\t\t\t\t\t\t\t\twidth="16"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</button>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<div class="pdf-visualizer-dashboard">\r\n\t\t<div class="row">\r\n\t\t\t\x3c!-- <div class="col-md-5" *ngIf="isEdit() === true">\r\n\t\t\t\t<textarea\r\n\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t[style.height]="getHeight()"\r\n\t\t\t\t\tstyle="resize:vertical;"\r\n\t\t\t\t\t[(ngModel)]="html"\r\n\t\t\t\t></textarea>\r\n\t\t\t</div> --\x3e\r\n\t\t\t<div [ngClass]="{ \'col-md-7\': edit === true, \'col-md-12\': !edit }">\r\n\t\t\t\t<div\r\n\t\t\t\t\tid="pdf-scrollable"\r\n\t\t\t\t\tclass="pdf-visualizer-scrollable"\r\n\t\t\t\t\t[style.height]="getHeight()"\r\n\t\t\t\t>\r\n\t\t\t\t\t<canvas id="pdf-canvas" class="pdf-visualizer-canvas"> </canvas>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n',styles:[".pdf-visualizer-container{border:1px solid #eee;margin:10px 0}.pdf-visualizer-controls,.pdf-visualizer-dashboard{background-color:#f5f5f5;padding:15px}.pdf-visualizer-dashboard{border-bottom:1px solid #eee;border-top:1px solid #eee}.pdf-visualizer-title{font-size:1.4rem;color:red;text-align:center;margin-bottom:1em}.pdf-visualizer-canvas{cursor:move}.text-align-center{text-align:center}.text-align-left{text-align:left}.text-align-right{text-align:right}.margin-left{margin-left:5px}.pdf-visualizer-scrollable{overflow:hidden;text-align:center}label.pdf{margin-right:.6em;line-height:24px}button.btn-outline-secondary{height:26px;line-height:12px!important}"]}),__metadata("design:paramtypes",[CommonService,ngxToastr.ToastrService,platformBrowser.DomSanitizer])],t)}(),SelectPppComponent=function(){function t(t){var e=this;if(this.pppService=t,this.patCodigo="",this.progCodigo="",this.promCodigo="",this.onPromCodigoSelected=new core.EventEmitter,this.pppService.getListPpp().subscribe((function(t){t&&(e.listPatrocinador=t,e.initPpp())})),this.pppService.onChangePpp().subscribe((function(t){t&&(e.promCodigo=t,e.initPpp())})),!this.promCodigo){var n=this.pppService.getAllPromociones();n&&n.length&&(n.sort((function(t,e){return t.promFechaCreacion<e.promFechaCreacion?1:t.promFechaCreacion>e.promFechaCreacion?-1:0})),this.promCodigo=n[0].promCodigo,this.initPpp(),this.pppService.setPpp(this.promCodigo))}}return t.prototype.ngOnInit=function(){},t.prototype.initPpp=function(){var t,e,n,o,r,i;if(this.listPatrocinador&&this.listPatrocinador.length&&this.promCodigo)try{for(var a=__values(this.listPatrocinador),s=a.next();!s.done;s=a.next()){var c=s.value;try{for(var p=(n=void 0,__values(c.listaPliPrograma)),l=p.next();!l.done;l=p.next()){var d=l.value;try{for(var u=(r=void 0,__values(d.listaPliPromocion)),m=u.next();!m.done;m=u.next()){var h=m.value;h.promCodigo==this.promCodigo&&(this.patCodigo=c.patCodigo,this.progCodigo=d.progCodigo,this.promCodigo=h.promCodigo,this.listPrograma=c.listaPliPrograma,this.listPromocion=d.listaPliPromocion)}}catch(t){r={error:t}}finally{try{m&&!m.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}}}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}},t.prototype.onPliPatrocinadorChanged=function(){var t,e;if(this.patCodigo)try{for(var n=__values(this.listPatrocinador),o=n.next();!o.done;o=n.next()){var r=o.value;r.patCodigo==this.patCodigo&&(this.patCodigo=r.patCodigo,this.progCodigo="",this.promCodigo="",this.listPrograma=r.listaPliPrograma,this.listPromocion=[])}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}else this.progCodigo="",this.promCodigo="",this.listPrograma=[],this.listPromocion=[]},t.prototype.onPliProgramaChanged=function(){var t,e;if(this.progCodigo)try{for(var n=__values(this.listPrograma),o=n.next();!o.done;o=n.next()){var r=o.value;r.progCodigo==this.progCodigo&&(this.promCodigo="",this.listPromocion=r.listaPliPromocion)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}else this.promCodigo="",this.listPromocion=[]},t.prototype.onPliPromocionChanged=function(t){this.onPromCodigoSelected.emit(this.promCodigo)},t.ctorParameters=function(){return[{type:PppService}]},__decorate([core.Output(),__metadata("design:type",Object)],t.prototype,"onPromCodigoSelected",void 0),t=__decorate([core.Component({selector:"pli-select-ppp",template:'<div class="row">\r\n\t<div class="col-md-4">\r\n\t\t<div class="form-group">\r\n\t\t\t<label for="patCodigo" class="form-control-label">Patrocinador</label>\r\n\t\t\t<select\r\n\t\t\t\tname="patCodigo"\r\n\t\t\t\tid="patCodigo"\r\n\t\t\t\tclass="form-control"\r\n\t\t\t\t[(ngModel)]="patCodigo"\r\n\t\t\t\t(change)="onPliPatrocinadorChanged()"\r\n\t\t\t>\r\n\t\t\t\t<option value="">-- Seleccione opción</option>\r\n\t\t\t\t<option\r\n\t\t\t\t\t*ngFor="let pliPatrocinador of listPatrocinador"\r\n\t\t\t\t\t[value]="pliPatrocinador.patCodigo"\r\n\t\t\t\t\t>{{ pliPatrocinador.patNombreCorto }}</option\r\n\t\t\t\t>\r\n\t\t\t</select>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class="col-md-4">\r\n\t\t<div class="form-group">\r\n\t\t\t<label for="progCodigo" class="form-control-label">Programa</label>\r\n\t\t\t<select\r\n\t\t\t\tname="progCodigo"\r\n\t\t\t\tid="progCodigo"\r\n\t\t\t\tclass="form-control"\r\n\t\t\t\t[(ngModel)]="progCodigo"\r\n\t\t\t\t(change)="onPliProgramaChanged()"\r\n\t\t\t>\r\n\t\t\t\t<option value="">-- Seleccione opción</option>\r\n\t\t\t\t<option *ngFor="let pliPrograma of listPrograma" [value]="pliPrograma.progCodigo">{{\r\n\t\t\t\t\tpliPrograma.progNombreCorto\r\n\t\t\t\t}}</option>\r\n\t\t\t</select>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class="col-md-4">\r\n\t\t<div class="form-group">\r\n\t\t\t<label for="promCodigo" class="form-control-label">Promocion</label>\r\n\t\t\t<select\r\n\t\t\t\tname="promCodigo"\r\n\t\t\t\tid="promCodigo"\r\n\t\t\t\tclass="form-control"\r\n\t\t\t\t[(ngModel)]="promCodigo"\r\n\t\t\t\t(change)="onPliPromocionChanged($event)"\r\n\t\t\t>\r\n\t\t\t\t<option value="">-- Seleccione opción</option>\r\n\t\t\t\t<option\r\n\t\t\t\t\t*ngFor="let pliPromocion of listPromocion"\r\n\t\t\t\t\t[value]="pliPromocion.promCodigo"\r\n\t\t\t\t\t>{{ pliPromocion.promNombreCorto }}</option\r\n\t\t\t\t>\r\n\t\t\t</select>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n',styles:[""]}),__metadata("design:paramtypes",[PppService])],t)}(),ShowHideColumnsTableComponent=function(t){function e(e,n,o){var r=t.call(this,e,n)||this;return r.commonService=e,r.cdRef=n,r.toastrService=o,r.ready=!1,r.listColumnSelected=new core.EventEmitter,r}return __extends(e,t),e.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this),this.ready=!0,this.comboColumnWork&&(this.comboColumnWork.sort((function(t,e){var n=ngPliUtil.UtilString.accentsTidy(t.label).toLowerCase(),o=ngPliUtil.UtilString.accentsTidy(e.label).toLowerCase();return n>o?1:o>n?-1:0})),this.comboColumnWork.forEach((function(t){t.items&&t.items.sort((function(t,e){var n=ngPliUtil.UtilString.accentsTidy(t.label).toLowerCase(),o=ngPliUtil.UtilString.accentsTidy(e.label).toLowerCase();return n>o?1:o>n?-1:0}))})))},e.prototype.changeCategory=function(t,e){var n,o,r,i;if(e)if(t)try{for(var a=__values(e.items),s=a.next();!s.done;s=a.next()){s.value.selected=!0}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}else try{for(var c=__values(e.items),p=c.next();!p.done;p=c.next()){p.value.selected=!1}}catch(t){r={error:t}}finally{try{p&&!p.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}},e.prototype.isVisibleCategory=function(t){var e,n;try{for(var o=__values(t.items),r=o.next();!r.done;r=o.next()){var i=r.value;if(this.isVisibleColumn(i.label))return!0}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return!1},e.prototype.isVisibleColumn=function(t){return!this.columnSearch||!!(t&&t.toLowerCase().indexOf(this.columnSearch.toLowerCase())>=0)},e.prototype.sendSubject=function(){var t,e,n,o,r,i,a,s,c,p,l=[];try{for(var d=__values(this.comboColumnWork),u=d.next();!u.done;u=d.next()){var m=u.value;try{for(var h=(n=void 0,__values(m.items)),g=h.next();!g.done;g=h.next()){(k=g.value).selected&&l.push(k.value)}}catch(t){n={error:t}}finally{try{g&&!g.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(e=d.return)&&e.call(d)}finally{if(t)throw t.error}}var f=[];try{for(var v=__values(this.listColumnWork),y=v.next();!y.done;y=v.next()){var C=y.value;try{for(var b=(a=void 0,__values(this.comboColumnWork)),S=b.next();!S.done;S=b.next()){m=S.value;try{for(var _=(c=void 0,__values(m.items)),T=_.next();!T.done;T=_.next()){var k;(k=T.value).value==C.idColumn&&(k.selected?C.visible=!0:C.visible=!1)}}catch(t){c={error:t}}finally{try{T&&!T.done&&(p=_.return)&&p.call(_)}finally{if(c)throw c.error}}}}catch(t){a={error:t}}finally{try{S&&!S.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}f.push(this.cloneObject(C))}}catch(t){r={error:t}}finally{try{y&&!y.done&&(i=v.return)&&i.call(v)}finally{if(r)throw r.error}}this.listColumnSelected.emit(f)},e.ctorParameters=function(){return[{type:CommonService},{type:core.ChangeDetectorRef},{type:ngxToastr.ToastrService}]},__decorate([core.Input(),__metadata("design:type",String)],e.prototype,"title",void 0),__decorate([core.Input(),__metadata("design:type",Array)],e.prototype,"listColumnWork",void 0),__decorate([core.Input(),__metadata("design:type",Array)],e.prototype,"comboColumnWork",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],e.prototype,"listColumnSelected",void 0),e=__decorate([core.Component({selector:"app-show-hide-columns-table",template:'<button\r\n\ttype="button"\r\n\tclass="btn btn-default btn-sm "\r\n\t(click)="displayDialog = !displayDialog"\r\n\t*ngIf="ready"\r\n>\r\n\t{{ title }}\r\n</button>\r\n\r\n<p-dialog\r\n\t*ngIf="ready"\r\n\theader="Ocultar o mostrar columnas"\r\n\t[(visible)]="displayDialog"\r\n\t[modal]="true"\r\n\t[contentStyle]="{\r\n\t\t\'text-align\': \'left\',\r\n\t\twidth: \'1100px\',\r\n\t\t\'overflow-y\': \'auto\'\r\n\t}"\r\n\tdismissableMask="true"\r\n\t(onHide)="sendSubject()"\r\n>\r\n\t<div class="row">\r\n\t\t<div class="col-md-4">\r\n\t\t\t<input\r\n\t\t\t\ttype="input"\r\n\t\t\t\tclass="form-control"\r\n\t\t\t\tplaceholder="Busqueda de columnas"\r\n\t\t\t\t[(ngModel)]="columnSearch"\r\n\t\t\t/>\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<ng-container *ngFor="let category of comboColumnWork">\r\n\t\t<div class="row" *ngIf="isVisibleCategory(category)" style="margin-top:2rem;">\r\n\t\t\t<div class="col-md-12">\r\n\t\t\t\t<div class="checkbox" style="margin:0 !important;">\r\n\t\t\t\t\t<label\r\n\t\t\t\t\t\t><input\r\n\t\t\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\t\t\t(change)="changeCategory($event.currentTarget.checked, category)"\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t<strong>{{ category.label }}</strong>\r\n\t\t\t\t\t</label>\r\n\t\t\t\t\t&nbsp;<span\r\n\t\t\t\t\t\tclass="fa"\r\n\t\t\t\t\t\t[ngClass]="{\r\n\t\t\t\t\t\t\t\'fa-chevron-down\': !category.collapsed,\r\n\t\t\t\t\t\t\t\'fa-chevron-right\': category.collapsed\r\n\t\t\t\t\t\t}"\r\n\t\t\t\t\t\tstyle="cursor:pointer;"\r\n\t\t\t\t\t\t(click)="category.collapsed = !category.collapsed"\r\n\t\t\t\t\t></span>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div class="row" *ngIf="!category.collapsed">\r\n\t\t\t\t\t<div class="col-md-12">\r\n\t\t\t\t\t\t<div style="margin-left:2rem;margin-top:1rem;">\r\n\t\t\t\t\t\t\t<ng-container *ngFor="let column of category.items">\r\n\t\t\t\t\t\t\t\t<div class="col-md-3" *ngIf="isVisibleColumn(column.label)">\r\n\t\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t\t*ngIf="column.value != null"\r\n\t\t\t\t\t\t\t\t\t\tclass="checkbox"\r\n\t\t\t\t\t\t\t\t\t\tstyle="margin:0 !important;"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<label class="adjust-text-size" title="{{ column.label }}"\r\n\t\t\t\t\t\t\t\t\t\t\t><input\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]="column.selected"\r\n\t\t\t\t\t\t\t\t\t\t\t/>{{ column.label }}</label\r\n\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t<div *ngIf="column.value == null">&nbsp;</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</ng-container>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</ng-container>\r\n</p-dialog>\r\n',styles:[".adjust-text-size{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.align-left{text-align:left!important}"]}),__metadata("design:paramtypes",[CommonService,core.ChangeDetectorRef,ngxToastr.ToastrService])],e)}(CommonListsComponent),TokenComponent=function(){function TokenComponent(t,e,n,o){this.currencyPipe=t,this.tokenService=e,this.toastrService=n,this.authenticationService=o,this.onGenerate=new core.EventEmitter,this.enableDestination=!1}return TokenComponent.prototype.ngOnInit=function(){this.lTokenCalculated=null,this.lFormFieldsToken=null,this.budgetDtoPrimary=null,this.budgetDtoSecundary=null,this.evaluation=null},TokenComponent.prototype.ngOnChanges=function(t){this.uniqueVerificationCode=null;var e=t.template,n=t.data;if(e&&e.currentValue&&(this.template=e.currentValue),n&&n.currentValue&&(this.data=n.currentValue,this.promCodigo=this.data.promCodigo),this.data&&(this.budgetDtoPrimary=this.data.budgetDtoPrimary?this.data.budgetDtoPrimary:null,this.budgetDtoSecundary=this.data.budgetDtoSecundary?this.data.budgetDtoSecundary:null,this.evaluation=this.data.evaluation),this.data&&this.template&&this.promCodigo){var o=this;setTimeout((function(){o.init()}),300)}},TokenComponent.prototype.init=function(){this.translateTokens(this.template,this.data.dataFormByForm)},TokenComponent.prototype.translateCategory=function(t){var e,n,o,r,i=t;if(t&&this.data.categories&&this.data.idioma){if("es"===this.data.idioma.locale)return t;try{for(var a=__values(this.data.categories),s=a.next();!s.done;s=a.next()){var c=s.value;if(c.listaRubroIdioma&&c.rubRubro===t){try{for(var p=(o=void 0,__values(c.listaRubroIdioma)),l=p.next();!l.done;l=p.next()){var d=l.value;if(d.rubiIdioma===this.data.idioma.locale)return d.rubiTraduccion;"en"===d.rubiIdioma&&(i=d.rubiTraduccion)}}catch(t){o={error:t}}finally{try{l&&!l.done&&(r=p.return)&&r.call(p)}finally{if(o)throw o.error}}break}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}}return i},TokenComponent.prototype.translateTokens=function(t,e){this.alreadyCallReplaceTokens=!1;var n=this.getListTokens(t);n&&0!==Object.keys(n).length||(this.template=t),this.callListTokens(n,t,e)},TokenComponent.prototype.callListTokens=function(t,e,n){var o=this;if(t[TokenService.TOKEN_LABEL_CALCULATED]&&Object.keys(t[TokenService.TOKEN_LABEL_CALCULATED]).length>0?this.lTokenCalculated?this.validateListTokens(t,e,n):this.tokenService.getListByPromCodigo(this.promCodigo).subscribe((function(r){o.lTokenCalculated=r,o.validateListTokens(t,e,n)}),(function(t){console.error("Error callListTokens -getListByPromCodigo",t),o.toastrService.error("Error generando carta")})):this.validateListTokens(t,e,n),t[TokenService.TOKEN_LABEL_FORM]&&Object.keys(t[TokenService.TOKEN_LABEL_FORM]).length>0?this.lFormFieldsToken?this.validateListTokens(t,e,n):this.tokenService.getFormFieldsByPromCode(this.promCodigo).then((function(r){o.lFormFieldsToken=r,o.validateListTokens(t,e,n)}),(function(t){console.error("Error callListTokens -getFormFieldsByPromCode",t),o.toastrService.error("Error generando carta")})):this.validateListTokens(t,e,n),t[TokenService.TOKEN_LABEL_STATIC]&&Object.keys(t[TokenService.TOKEN_LABEL_STATIC]).length>0)if(null!==this.uniqueVerificationCode)this.validateListTokens(t,e,n);else{var r=t[TokenService.TOKEN_LABEL_STATIC].find((function(t){return t.key.replace("{","").replace("}","").split("_")[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_CODIGO_VERIFICACION.toLowerCase()}));if(r&&Object.keys(r).length>0){var i=ngPliUtil.AuthenticationUtil.getPliUsuario();if(i){var a=Object.assign(new ngPliUtil.PliUsuario,JSON.parse(JSON.stringify(i)));this.authenticationService.getTokenByLogin(a.usuLogin).subscribe((function(r){var i=r?r.sesion:"1";o.getUniqueVerificationCode(a.usuLogin,i,t,e,n)}),(function(r){console.error("Error consultando el login en PLIS, getTokenByLogin",r),o.getUniqueVerificationCode(a.usuLogin,"1",t,e,n)}))}else this.uniqueVerificationCode="",console.error("No se logro consultar el usuario para consultar el token",i),this.validateListTokens(t,e,n)}else this.uniqueVerificationCode="",this.validateListTokens(t,e,n)}else this.validateListTokens(t,e,n)},TokenComponent.prototype.getUniqueVerificationCode=function(t,e,n,o,r){var i=this;this.tokenService.getUniqueVerificationCode(t,e).subscribe((function(t){var e=t.codigoUnico;i.uniqueVerificationCode=e.substring(0,4)+" "+e.substring(4,8),i.validateListTokens(n,o,r)}),(function(t){console.error("Error callListTokens -getListByPromCodigo",t),i.toastrService.error("Error generando carta")}))},TokenComponent.prototype.validateListTokens=function(t,e,n){var o=!1,r=!1,i=!1;o=!(t[TokenService.TOKEN_LABEL_FORM]&&t[TokenService.TOKEN_LABEL_FORM].length>0)||!!this.lFormFieldsToken,r=!(t[TokenService.TOKEN_LABEL_CALCULATED]&&t[TokenService.TOKEN_LABEL_CALCULATED].length>0)||!!this.lTokenCalculated,i=!(t[TokenService.TOKEN_LABEL_STATIC]&&t[TokenService.TOKEN_LABEL_STATIC].length>0)||null!==this.uniqueVerificationCode,o&&i&&r&&!this.alreadyCallReplaceTokens&&(this.alreadyCallReplaceTokens=!0,this.replaceTokensWithData(t,e,n))},TokenComponent.prototype.replaceTokensWithData=function(lTokens,html,listData){var e_3,_a,e_4,_b,e_5,_c,e_6,_d,lDataOrg=[],lFormFieldsTokenOrg=[];if((lTokens[TokenService.TOKEN_LABEL_FORM]||lTokens[TokenService.TOKEN_LABEL_CALCULATED])&&listData){for(var dataForm in listData)lDataOrg[dataForm.toLowerCase()]=listData[dataForm];if(this.lFormFieldsToken)try{for(var _e=__values(this.lFormFieldsToken),_f=_e.next();!_f.done;_f=_e.next()){var formFieldToken=_f.value;try{for(var _g=(e_4=void 0,__values(formFieldToken.value)),_h=_g.next();!_h.done;_h=_g.next()){var valuesField=_h.value,keyToken="${"+formFieldToken.title.key+"_"+valuesField.key+"}";lFormFieldsTokenOrg[keyToken]=valuesField}}catch(t){e_4={error:t}}finally{try{_h&&!_h.done&&(_b=_g.return)&&_b.call(_g)}finally{if(e_4)throw e_4.error}}}}catch(t){e_3={error:t}}finally{try{_f&&!_f.done&&(_a=_e.return)&&_a.call(_e)}finally{if(e_3)throw e_3.error}}}var lTokensCalculated=[],typeToken;if(lTokens[TokenService.TOKEN_LABEL_CALCULATED]&&this.lTokenCalculated)try{for(var _j=__values(this.lTokenCalculated),_k=_j.next();!_k.done;_k=_j.next()){var tokenCal=_k.value;lTokensCalculated[ngPliUtil.UtilString.replaceAccentSpacesOthers(tokenCal.name)]=tokenCal}}catch(t){e_5={error:t}}finally{try{_k&&!_k.done&&(_c=_j.return)&&_c.call(_j)}finally{if(e_5)throw e_5.error}}var tokenTypeTranslated=[];for(typeToken in lTokens)if(lTokens[typeToken]){var tokensType=lTokens[typeToken];tokenTypeTranslated[typeToken]=[];try{for(var tokensType_1=(e_6=void 0,__values(tokensType)),tokensType_1_1=tokensType_1.next();!tokensType_1_1.done;tokensType_1_1=tokensType_1.next()){var token=tokensType_1_1.value,tokenTranslated=null,subToken=token.key.replace("{","").replace("}","").split("_");switch(typeToken){case TokenService.TOKEN_LABEL_FORM:var valueData=null,dataOrgKey=subToken[1].toLowerCase(),dataOrgKeyByForm=subToken[0].substring(1)+"_"+subToken[1].toLowerCase(),dataOrgValue=lDataOrg.hasOwnProperty(dataOrgKey)?lDataOrg[dataOrgKey]:lDataOrg.hasOwnProperty(dataOrgKeyByForm)?lDataOrg[dataOrgKeyByForm]:null;3===subToken.length&&null!=dataOrgValue&&dataOrgValue.hasOwnProperty(subToken[2])?valueData=dataOrgValue[subToken[2]]:2===subToken.length&&null!=dataOrgValue&&(valueData=dataOrgValue,lFormFieldsTokenOrg[token.key]&&(valueData=this.tokenService.getValueFromFormField(lFormFieldsTokenOrg[token.key],valueData))),valueData=valueData||"",tokenTranslated=valueData,html=this.tokenService.replaceToken(html,token.value,valueData);break;case TokenService.TOKEN_LABEL_BUDGET:var budgetResolveToken=this.resolveBudgetToken(html,token,subToken);html=budgetResolveToken.html,tokenTranslated=budgetResolveToken.value;break;case TokenService.TOKEN_LABEL_TASKL:var taskResolveToken=this.resolveTaskoken(html,token,subToken);html=taskResolveToken.html,tokenTranslated=taskResolveToken.value;break;case TokenService.TOKEN_LABEL_STATIC:var staticResolveToken=this.resolveStaticToken(html,token,subToken);html=staticResolveToken.html,tokenTranslated=staticResolveToken.value;break;case TokenService.TOKEN_LABEL_CALCULATED:var tokenName=lTokensCalculated[subToken[1]].name,formula=lTokensCalculated[subToken[1]].formula;try{formula=this.tokenService.replaceTokensFromListObject(tokenName,formula,lDataOrg)}catch(t){return formula=null,console.error(t.error?t.error:t),void this.toastrService.warning(t.message,t.tittle)}var result=null;if(null!==formula){try{result=formula.startsWith("file://")?"<img width='250px' height='auto' src='"+formula+"'/>":eval(formula)}catch(t){return console.error("Error evaluating the formula.",lTokensCalculated,subToken,t),void this.toastrService.error("No se logro evaluar la formular del token "+tokenName,"Error!")}null!==result&&(html=this.tokenService.replaceToken(html,token.value,result),tokenTranslated=result)}}tokenTypeTranslated[typeToken][token.key]=tokenTranslated}}catch(t){e_6={error:t}}finally{try{tokensType_1_1&&!tokensType_1_1.done&&(_d=tokensType_1.return)&&_d.call(tokensType_1)}finally{if(e_6)throw e_6.error}}}this.onGenerate.emit({html:html,tokenTypeTranslated:tokenTypeTranslated})},TokenComponent.prototype.resolveBudgetToken=function(t,e,n){var o=Number(n[1]),r=n[2],i=null,a=null;if(this.budgetDtoPrimary&&this.budgetDtoPrimary.budget&&o==ngPliUtil.ETipoPresupuesto.PRIMARY?(i=this.budgetDtoPrimary,a="pli-token-principal-budget-total-summary"):this.budgetDtoSecundary&&this.budgetDtoSecundary.budget&&o==ngPliUtil.ETipoPresupuesto.SECONDARY&&(i=this.budgetDtoSecundary,a="pli-token-secundary-budget-total-summary"),null===i||!i.budget)return console.error("No se logro encontrar el presupuesto del token.",e,this.budgetDtoPrimary,this.budgetDtoSecundary),{html:t,value:null};var s=null,c=r==TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_AMOUNT||r==TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_OWN_FOUNDS||r==TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_FINANCING,p=r==TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_AMOUNT||r==TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_OWN_FOUNDS||r==TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_FINANCING;if(r==TokenService.BUDGET_TOKENS_KEY_TOTAL_AMOUNT)s=i.budget&&i.budget.summary?this.currencyPipe.transform(i.budget.summary.budgetTotal,"default","","1.0-0"):0;else if(r==TokenService.BUDGET_TOKENS_KEY_RESUME_CATEGORY_YEAR){this.addInfoTokenResumeCategoryYear(o,a,i);var l=document.getElementById(a);l?s=this.removeCommentsHtml(l.innerHTML):console.log("pliTokenTotalBudget - NULL",l)}else if(r==TokenService.BUDGET_TOKENS_KEY_FECHA_FINANCING_START)s=i.budget&&i.budget.financingStart?i.budget.financingStart:"";else if(r==TokenService.BUDGET_TOKENS_KEY_FECHA_FINANCING_END)s=i.budget&&i.budget.financingEnd?i.budget.financingEnd:"";else if(r==TokenService.BUDGET_TOKENS_DURATION_STUDIES)s=i.budget&&i.budget.studyStart&&i.budget.studyEnd?ngPliUtil.DateUtil.elapsedMonths(i.budget.studyStart,i.budget.studyEnd)+1:"";else if(r==TokenService.BUDGET_TOKENS_FINANCING_DURATION)s=i.budget&&i.budget.financingEnd&&i.budget.financingStart?ngPliUtil.DateUtil.elapsedMonths(i.budget.financingStart,i.budget.financingEnd)+1:"";else if(r==TokenService.LEGALIZATION_OR_APPLICATION_TOTAL_FINANCING){if(this.data&&this.data.dataFormApplication&&this.data.dataFormApplication.budget){var d=this.data.dataFormApplication.budget;if(d.legalizationProcess&&d.legalizationProcess.totalFinancing)s=1.003*(m=Number(d.legalizationProcess.totalFinancing));else d.applicationProcess&&d.applicationProcess.totalFinancing&&(s=Number(d.applicationProcess.totalFinancing))}}else if((c||p)&&this.data&&this.data.dataFormApplication&&this.data.dataFormApplication.budget){var u=c?this.data.dataFormApplication.budget.applicationProcess:this.data.dataFormApplication.budget.legalizationProcess;if(null!=u&&null!=u)switch(r){case TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_AMOUNT:case TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_AMOUNT:s=u.totalAmount;break;case TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_OWN_FOUNDS:case TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_OWN_FOUNDS:s=u.totalOwnFunds;break;case TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_FINANCING:case TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_FINANCING:s=u.totalFinancing}}else if(r==TokenService.BUDGET_TOKENS_KEY_INSURANCE_AMOUNT){var m;s=1.003*(m=null==(m=this.data.dataFormApplication.budget.legalizationProcess&&this.data.dataFormApplication.budget.legalizationProcess.totalFinancing)||null==m?0:Number(m))}else console.error("resolveBudgetToken -No se logro resolver el token de tipo presupuesto");return s=null===s?"":s,{html:t=this.tokenService.replaceToken(t,e.value,s),value:s}},TokenComponent.prototype.resolveTaskoken=function(t,e,n){var o=null;if(n.length>2){var r=Number(n[2]);o=this.evaluation.tasks.find((function(t){return t.idTask==r})).result}return{html:t=this.tokenService.replaceToken(t,e.value,o),value:o}},TokenComponent.prototype.resolveStaticToken=function(t,e,n){var o=null;if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_CODIGO_VERIFICACION.toLowerCase())o=this.uniqueVerificationCode,t=this.tokenService.replaceToken(t,e.value,this.uniqueVerificationCode);else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_A_QUIEN_VA_DIRIGIDO.toLowerCase())t=this.resolveStaticTokensKeyAQuienVaDirigido(t,e.value),o="";else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_LETTER_SIGN.toLowerCase())t=this.resolveStaticTokensKeySign(t,e.value,n),o="";else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_SALUDO_COMPLEMENTARIO.toLowerCase())t=this.resolveStaticTokensKeySaludoComplementario(t,e.value),o="";else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_FECHA_ACTUAL.toLowerCase())o=new Date,t=this.tokenService.replaceToken(t,e.value,new Date);else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_PATROCINADOR.toLowerCase()){var r=this.data.pliPromocion&&this.data.pliPromocion.pliPrograma&&this.data.pliPromocion.pliPrograma.pliPatrocinador?this.data.pliPromocion.pliPrograma.pliPatrocinador.patNombre:"";o=r,t=this.tokenService.replaceToken(t,e.value,r)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_PROGRAMA.toLowerCase()){var i=this.data.pliPromocion&&this.data.pliPromocion.pliPrograma?this.data.pliPromocion.pliPrograma.progNombre:"";o=i,t=this.tokenService.replaceToken(t,e.value,i)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_PROMOCION.toLowerCase()){var a=this.data.pliPromocion?this.data.pliPromocion.promNombre:"";o=a,t=this.tokenService.replaceToken(t,e.value,a)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_ANIO_PROMOCION.toLowerCase()){var s=this.data.pliPromocion&&this.data.pliPromocion.promAnio?this.data.pliPromocion.promAnio:0;o=s,t=this.tokenService.replaceToken(t,e.value,s)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_ISO_MONEDA_BASE.toLowerCase()){var c=this.data.budgetDtoPrimary&&this.data.budgetDtoPrimary.budget?this.data.budgetDtoPrimary.budget.baseCurrency:this.data.budgetDtoSecundary&&this.data.budgetDtoSecundary.budget?this.data.budgetDtoSecundary.budget.baseCurrency:"";o=c,t=this.tokenService.replaceToken(t,e.value,c)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_STATUS_NAME.toLowerCase()){var p=this.data.dataFormApplication&&ngPliUtil.UtilString.isValid(this.data.dataFormApplication.stateName)?this.data.dataFormApplication.stateName:"";o=p,t=this.tokenService.replaceToken(t,e.value,p)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_USER_INITIALS.toLowerCase()){var l=ngPliUtil.AuthenticationUtil.getPliUser();o=ngPliUtil.UtilString.initialLetters(l.firstname+" "+l.lastname),t=this.tokenService.replaceToken(t,e.value,o)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_NUMBER_APPLICATION.toLowerCase()){var d=this.data.dataFormApplication&&this.data.dataFormApplication.number?this.data.dataFormApplication.number:null;o=d,t=this.tokenService.replaceToken(t,e.value,d)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_COMMITTEE_NAME.toLowerCase()){var u=this.data.dataFormByForm&&this.data.dataFormByForm.comiteNombre?this.data.dataFormByForm.comiteNombre:null;o=u,t=this.tokenService.replaceToken(t,e.value,u)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_COMMITTEE_SEGMENTATION.toLowerCase()){var m=this.data.dataFormByForm&&this.data.dataFormByForm[TokenService.STATIC_TOKENS_COMMITTEE_SEGMENTATION]?this.data.dataFormByForm[TokenService.STATIC_TOKENS_COMMITTEE_SEGMENTATION]:null;o=m,t=this.tokenService.replaceToken(t,e.value,m)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_COMMITTEE_AGGRUPATION.toLowerCase()){var h=this.data.dataFormByForm&&this.data.dataFormByForm[TokenService.STATIC_TOKENS_COMMITTEE_AGGRUPATION]?this.data.dataFormByForm[TokenService.STATIC_TOKENS_COMMITTEE_AGGRUPATION]:null;o=h,t=this.tokenService.replaceToken(t,e.value,h)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_COMMITTEE_CUTLINE_DATE.toLowerCase()){var g=this.data.dataFormByForm&&this.data.dataFormByForm[TokenService.STATIC_TOKENS_COMMITTEE_CUTLINE_DATE]?this.data.dataFormByForm[TokenService.STATIC_TOKENS_COMMITTEE_CUTLINE_DATE]:null;g instanceof Date&&(g=g.toString()),o=g,t=this.tokenService.replaceToken(t,e.value,g)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_TOTAL_WEIGHTED.toLowerCase()){var f="";if(this.evaluation&&this.evaluation.scenarios){var v=this.evaluation.scenarios.filter((function(t){return t.best}))[0];v&&(f=v.result)}t=this.tokenService.replaceToken(t,e.value,f)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_USER_TYPE_CREDIT_STUDY.toLowerCase()){var y=this.data.dataFormByForm&&this.data.dataFormByForm[TokenService.STATIC_TOKENS_USER_TYPE_CREDIT_STUDY]?this.data.dataFormByForm[TokenService.STATIC_TOKENS_USER_TYPE_CREDIT_STUDY]:null;o=y,t=this.tokenService.replaceToken(t,e.value,y)}else n[1].toLowerCase()==TokenService.STATIC_TOKENS_BEN_CODIGO.toLowerCase()?(o=this.data.dataFormApplication.benCodigo,t=this.tokenService.replaceToken(t,e.value,this.data.dataFormApplication.benCodigo)):(console.error("No se encontro el token",e),t=this.tokenService.replaceToken(t,e.value,""));return{html:t,value:o}},TokenComponent.prototype.getListTokens=function(t){var e,n,o=this.tokenService.getListTokensByString(t),r=[];try{for(var i=__values(o),a=i.next();!a.done;a=i.next()){var s=a.value;if(s){var c=TokenService.getKeyType(s.key.replace("{","").replace("}",""));if(c)switch(c){case 1:r[TokenService.TOKEN_LABEL_FORM]||(r[TokenService.TOKEN_LABEL_FORM]=[]),r[TokenService.TOKEN_LABEL_FORM].push(s);break;case 2:r[TokenService.TOKEN_LABEL_BUDGET]||(r[TokenService.TOKEN_LABEL_BUDGET]=[]),r[TokenService.TOKEN_LABEL_BUDGET].push(s);break;case 3:r[TokenService.TOKEN_LABEL_STATIC]||(r[TokenService.TOKEN_LABEL_STATIC]=[]),r[TokenService.TOKEN_LABEL_STATIC].push(s);break;case 4:r[TokenService.TOKEN_LABEL_CALCULATED]||(r[TokenService.TOKEN_LABEL_CALCULATED]=[]),r[TokenService.TOKEN_LABEL_CALCULATED].push(s);break;case 5:r[TokenService.TOKEN_LABEL_TASKL]||(r[TokenService.TOKEN_LABEL_TASKL]=[]),r[TokenService.TOKEN_LABEL_TASKL].push(s)}}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},TokenComponent.prototype.resolveStaticTokensKeyAQuienVaDirigido=function(t,e){this.enableDestination=!0,this.addInfoTokenDestination();var n=document.getElementById("pli-token-destination"),o="";return n&&n.innerHTML.length>0&&(o=this.removeCommentsHtml(n.innerHTML)),this.tokenService.replaceToken(t,e,o)},TokenComponent.prototype.addInfoTokenDestination=function(){var t=$("#pli-token-destination");if(t.empty(),this.data.dataDestination){var e=$("<div></div>");if(this.data.dataDestination.text){var n=$("<div></div>").text(this.data.dataDestination.text);e.append(n)}if(this.data.dataDestination.title){n=$("<div></div>").text(this.data.dataDestination.title);e.append(n)}if(this.data.dataDestination.name||this.data.dataDestination.lastName){var o=this.data.dataDestination.name?this.data.dataDestination.name+" ":"";o+=this.data.dataDestination.lastName?this.data.dataDestination.lastName:"";n=$("<div></div>").append("<strong>"+o+"</strong>");e.append(n)}if(this.data.dataDestination.cargo){n=$("<div></div>").text(this.data.dataDestination.cargo);e.append(n)}if(this.data.dataDestination.occupation){n=$("<div></div>").text(this.data.dataDestination.occupation);e.append(n)}if(this.data.dataDestination.company){n=$("<div></div>").text(this.data.dataDestination.company);e.append(n)}if(this.data.dataDestination.address||this.data.dataDestination.addressDetails){o=this.data.dataDestination.address?this.data.dataDestination.address+" ":"";o+=this.data.dataDestination.addressDetails?this.data.dataDestination.addressDetails:"";n=$("<div></div>").text(o);e.append(n)}if(this.data.dataDestination.city||this.data.dataDestination.country){o=this.data.dataDestination.city?this.data.dataDestination.city:"";o+=this.data.dataDestination.city&&this.data.dataDestination.country?", ":"",o+=this.data.dataDestination.country?this.data.dataDestination.country:"";n=$("<div></div>").text(o);e.append(n)}t.append(e)}},TokenComponent.prototype.resolveStaticTokensKeySaludoComplementario=function(t,e){this.enableDestination=!0,this.addInfoTokenSaludoComplementario();var n=document.getElementById("pli-token-complementary-greeting"),o="";return n&&(o=this.removeCommentsHtml(n.innerHTML)),this.tokenService.replaceToken(t,e,o)},TokenComponent.prototype.addInfoTokenSaludoComplementario=function(){var t=$("#pli-token-complementary-greeting");if(t.empty(),this.data.dataDestination){var e=$("<div></div>");if(this.data.dataDestination.greeting&&e.html(this.data.dataDestination.greeting),this.data.dataDestination.title){var n=(0==e.html().length?"":" ")+this.data.dataDestination.title;e.html(e.html()+n)}if(this.data.dataDestination.lastName){var o=this.data.dataDestination.lastName?this.data.dataDestination.lastName:"";n=(0==e.html().length?"":" ")+"<strong>"+o+"</strong>";e.html(e.html()+n)}t.append(e)}},TokenComponent.prototype.removeCommentsHtml=function(t){return t?t.replace(/<!--[\s\S]*?-->/g,""):t},TokenComponent.prototype.resolveStaticTokensKeySign=function(t,e,n){var o=$("<div></div>"),r=$('<img id="'+TokenService.SIGN_LETTER_TAG_ID+'">');return r.attr("src",""),n.length>2&&r.attr("width",n[2].toString()),n.length>3&&r.attr("height",n[3].toString()),n.length>4&&r.attr("name",n[4].toString()),o.append(r),this.tokenService.replaceToken(t,e,o.html())},TokenComponent.prototype.getRubroLabel=function(){return"es"===this.data.idioma.locale?"Rubro":"de"===this.data.idioma.locale?"Posten":"Item"},TokenComponent.prototype.getTotalLabel=function(){return"es"===this.data.idioma.locale?"Total":"de"===this.data.idioma.locale?"Gesamt":"fr"===this.data.idioma.locale?"Total":"it"===this.data.idioma.locale?"Totale":"Item"},TokenComponent.prototype.getYearLabel=function(){return"es"===this.data.idioma.locale?"Año":"de"===this.data.idioma.locale?"Jahr":"fr"===this.data.idioma.locale?"Année":"it"===this.data.idioma.locale?"Anno":"Year"},TokenComponent.prototype.addInfoTokenResumeCategoryYear=function(t,e,n){var o,r,i,a,s,c;ngPliUtil.ETipoPresupuesto.PRIMARY;var p=$("#"+e);if(p.empty(),n&&n.budget&&n.budget.summary){var l=n.budget.summary,d=$("<table></table>");d.css("border-spacing","2px"),d.css("border-collapse","collapse");var u=$("<thead>").appendTo(d),m=$("<th>",{html:this.getRubroLabel()}).appendTo(u);m.css("text-align","center"),m.css("border","1px solid black"),m.css("color","white"),m.css("background-color","grey");var h=0;try{for(var g=__values(l.years),f=g.next();!f.done;f=g.next()){var v=f.value,y=$("<th>",{html:this.getYearLabel()+ ++h}).appendTo(u);y.css("text-align","center"),y.css("border","1px solid black"),y.css("color","white"),y.css("background-color","grey"),y.css("width","80px")}}catch(t){o={error:t}}finally{try{f&&!f.done&&(r=g.return)&&r.call(g)}finally{if(o)throw o.error}}var C="&nbsp;"+this.getTotalLabel()+l.baseCurrency+"&nbsp;",b=$("<th>",{html:C}).appendTo(u);b.css("text-align","center"),b.css("border","1px solid black"),b.css("color","white"),b.css("background-color","grey"),b.css("width","80px");for(var S=$("<tbody>").appendTo(d),_=0;_<l.categories.length;_++){var T=$("<tr>").appendTo(S),k=l.categories[_],P="&nbsp;&nbsp;"+this.translateCategory(k.category)+"&nbsp;&nbsp;&nbsp;&nbsp;",I=$("<td>",{html:P}).appendTo(T);I.css("text-align","left"),I.css("border","1px solid black"),I.css("font-weight","bold");try{for(var E=(i=void 0,__values(k.years)),A=E.next();!A.done;A=E.next()){var w="&nbsp;&nbsp;"+(0==(v=A.value).total?"-":this.currencyPipe.transform(v.total,"default","","1.0-0"))+"&nbsp;&nbsp;";(U=$("<td>",{html:w}).appendTo(T)).css("text-align","right"),U.css("border","1px solid black")}}catch(t){i={error:t}}finally{try{A&&!A.done&&(a=E.return)&&a.call(E)}finally{if(i)throw i.error}}var O=0==k.total?"-":this.currencyPipe.transform(k.total,"default","","1.0-0"),B=$("<td>",{html:"&nbsp;&nbsp;"+O+"&nbsp;&nbsp;"}).appendTo(T);B.css("text-align","right"),B.css("border","1px solid black"),B.css("font-weight","bold")}var j=$("<tr>").appendTo(S),x=this.getTotalLabel()+" "+l.baseCurrency+"&nbsp;&nbsp;",N=$("<td>",{html:x}).appendTo(j);N.css("text-align","right"),N.css("border","1px solid black"),N.css("color","white"),N.css("background-color","grey");var D=0;try{for(var H=__values(l.years),F=H.next();!F.done;F=H.next()){var U;w=(0==(v=F.value).total?"-":this.currencyPipe.transform(v.total,"default","","1.0-0"))+"&nbsp;&nbsp;";(U=$("<td>",{html:w}).appendTo(j)).css("text-align","right"),U.css("border","1px solid black"),U.css("color","white"),U.css("background-color","grey"),D+=v.total}}catch(t){s={error:t}}finally{try{F&&!F.done&&(c=H.return)&&c.call(H)}finally{if(s)throw s.error}}var L=0==D?"-":this.currencyPipe.transform(D,"default","","1.0-0"),R=$("<td>",{html:"&nbsp;&nbsp;"+L+"&nbsp;&nbsp;"}).appendTo(j);R.css("text-align","right"),R.css("border","1px solid black"),R.css("color","white"),R.css("background-color","grey"),p.append(d)}},TokenComponent.ctorParameters=function(){return[{type:common.CurrencyPipe},{type:TokenService},{type:ngxToastr.ToastrService},{type:AuthenticationService}]},__decorate([core.Input(),__metadata("design:type",String)],TokenComponent.prototype,"template",void 0),__decorate([core.Input(),__metadata("design:type",ngPliUtil.DataToTranslateToken)],TokenComponent.prototype,"data",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],TokenComponent.prototype,"onGenerate",void 0),TokenComponent=__decorate([core.Component({selector:"pli-token",template:'<div style="display: none;" id="pli-token-destination">\r\n\t\x3c!-- <div *ngIf="data != undefined && data.dataDestination != undefined">\r\n\r\n <div *ngIf="data.dataDestination.text != undefined">\r\n {{data.dataDestination.text}}\r\n </div>\r\n <div *ngIf="data.dataDestination.title != undefined">\r\n {{data.dataDestination.title}}\r\n </div>\r\n <div *ngIf="data.dataDestination.name != undefined || data.dataDestination.lastName != undefined">\r\n <strong>{{data.dataDestination.name}} {{data.dataDestination.lastName}}</strong>\r\n </div>\r\n <div *ngIf="data.dataDestination.cargo != undefined">\r\n {{data.dataDestination.cargo}}\r\n </div>\r\n <div *ngIf="data.dataDestination.occupation != undefined">\r\n {{data.dataDestination.occupation}}\r\n </div>\r\n <div *ngIf="data.dataDestination.company != undefined">\r\n {{data.dataDestination.company}}\r\n </div>\r\n <div *ngIf="data.dataDestination.address != undefined || data.dataDestination.addressDetails != undefined ">\r\n {{data.dataDestination.address}} {{data.dataDestination.addressDetails}}\r\n </div>\r\n <div *ngIf="data.dataDestination.city != undefined || data.dataDestination.country != undefined ">\r\n {{data.dataDestination.city}}<span *ngIf="data.dataDestination.city != undefined && data.dataDestination.country != undefined">,</span>{{data.dataDestination.country}}\r\n </div>\r\n\r\n </div> --\x3e\r\n</div>\r\n\x3c!-- Complementary greeting--\x3e\r\n<div style="display: none;" id="pli-token-complementary-greeting">\r\n\t\x3c!-- <div\r\n\t\t*ngIf="\r\n\t\t\tdata != undefined &&\r\n\t\t\tdata.dataDestination != undefined &&\r\n\t\t\tdata.dataDestination.targetId == 2 &&\r\n\t\t\tdata.dataDestination.greeting != undefined\r\n\t\t"\r\n\t>\r\n\t\t{{ data.dataDestination.greeting\r\n\t\t}}<span *ngIf="data.dataDestination.title != undefined"\r\n\t\t\t>&nbsp;{{ data.dataDestination.title }}</span\r\n\t\t><span *ngIf="data.dataDestination.lastName != undefined"\r\n\t\t\t>&nbsp;{{ data.dataDestination.lastName }}</span\r\n\t\t>:\r\n\t</div>--\x3e\r\n</div>\r\n\r\n\x3c!-- Primary budget total summary ${presupuesto_288_resumeCategoryYear} --\x3e\r\n<div style="display: none;" id="pli-token-principal-budget-total-summary">\r\n\t\x3c!-- <div>\r\n\t\t<table\r\n\t\t\t*ngIf="\r\n\t\t\t\tbudgetDtoPrimary !== null &&\r\n\t\t\t\tbudgetDtoPrimary.budget &&\r\n\t\t\t\tbudgetDtoPrimary.budget.summary\r\n\t\t\t"\r\n\t\t\tstyle="border-spacing: 2px;border-collapse: collapse;"\r\n\t\t>\r\n\t\t\t<thead>\r\n\t\t\t\t<tr style="font-weight: bold;">\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\tstyle="text-align: center;border: 1px solid black; color: white;background-color: grey;"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tRubro\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\t*ngFor="let year of budgetDtoPrimary.budget.summary.years"\r\n\t\t\t\t\t\tstyle="text-align: center;border: 1px solid black; color: white;background-color: grey; width:80px;"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{{ year.yearNumber }}\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\tstyle="text-align: center;border: 1px solid black; color: white;background-color: grey; width: 110px;"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tTotal ({{ budgetDtoPrimary.budget.summary.baseCurrency }})\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t</thead>\r\n\t\t\t<tbody>\r\n\t\t\t\t<tr\r\n\t\t\t\t\t*ngFor="\r\n\t\t\t\t\t\tlet category of budgetDtoPrimary.budget.summary.categories;\r\n\t\t\t\t\t\tlet iCat = index\r\n\t\t\t\t\t"\r\n\t\t\t\t>\r\n\t\t\t\t\t<td style="font-weight: bold;text-align: left;border: 1px solid black;">\r\n\t\t\t\t\t\t&nbsp;&nbsp;{{\r\n\t\t\t\t\t\t\ttranslateCategory(category.category)\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\t*ngFor="let year of category.years"\r\n\t\t\t\t\t\tstyle="text-align: right;border: 1px solid black; "\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t&nbsp;&nbsp;{{\r\n\t\t\t\t\t\t\tyear.total == 0 ? \'-\' : (year.total | currency: \'default\':\'\':\'1.0-0\')\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td style="font-weight: bold; text-align: right;border: 1px solid black;">\r\n\t\t\t\t\t\t&nbsp;&nbsp;{{\r\n\t\t\t\t\t\t\tcategory.total == 0\r\n\t\t\t\t\t\t\t\t? \'-\'\r\n\t\t\t\t\t\t\t\t: (category.total | currency: \'default\':\'\':\'1.0-0\')\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr style="font-weight: bold;">\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\tstyle="text-align: right;border: 1px solid black; color: white;background-color: grey;"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tTotal ({{ budgetDtoPrimary.budget.summary.baseCurrency }})&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\t*ngFor="let year of budgetDtoPrimary.budget.summary.years"\r\n\t\t\t\t\t\tstyle="text-align: right;border: 1px solid black; color: white;background-color: grey; "\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{{\r\n\t\t\t\t\t\t\tyear.total == 0 ? \'-\' : (year.total | currency: \'default\':\'\':\'1.0-0\')\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\tstyle="text-align: right;border: 1px solid black; color: white;background-color: grey;"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{{\r\n\t\t\t\t\t\t\tbudgetDtoPrimary.budget.summary.budgetTotal == 0\r\n\t\t\t\t\t\t\t\t? \'-\'\r\n\t\t\t\t\t\t\t\t: (budgetDtoPrimary.budget.summary.budgetTotal\r\n\t\t\t\t\t\t\t\t | currency: \'default\':\'\':\'1.0-0\')\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t</tbody>\r\n\t\t</table>\r\n\t</div> --\x3e\r\n</div>\r\n\x3c!-- Secundary budget total summary ${presupuesto_288_resumeCategoryYear} --\x3e\r\n<div style="display: none;" id="pli-token-secundary-budget-total-summary">\r\n\t<div>\r\n\t\t<table\r\n\t\t\t*ngIf="\r\n\t\t\t\tbudgetDtoSecundary !== null &&\r\n\t\t\t\tbudgetDtoSecundary.budget &&\r\n\t\t\t\tbudgetDtoSecundary.budget.summary\r\n\t\t\t"\r\n\t\t\tstyle="border-spacing: 2px; border-collapse: collapse; width: 100%;"\r\n\t\t>\r\n\t\t\t<thead>\r\n\t\t\t\t<tr style="font-weight: bold;">\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\tstyle="\r\n\t\t\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\t\t\tborder: 1px solid black;\r\n\t\t\t\t\t\t\tcolor: white;\r\n\t\t\t\t\t\t\tbackground-color: grey;\r\n\t\t\t\t\t\t"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tRubro\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\t*ngFor="let year of budgetDtoSecundary.budget.summary.years"\r\n\t\t\t\t\t\tstyle="\r\n\t\t\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\t\t\tborder: 1px solid black;\r\n\t\t\t\t\t\t\tcolor: white;\r\n\t\t\t\t\t\t\tbackground-color: grey;\r\n\t\t\t\t\t\t\twidth: 80px;\r\n\t\t\t\t\t\t"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{{ year.yearNumber }}\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\tstyle="\r\n\t\t\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\t\t\tborder: 1px solid black;\r\n\t\t\t\t\t\t\tcolor: white;\r\n\t\t\t\t\t\t\tbackground-color: grey;\r\n\t\t\t\t\t\t\twidth: 110px;\r\n\t\t\t\t\t\t"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tTotal ({{ budgetDtoSecundary.budget.summary.baseCurrency }})\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t</thead>\r\n\t\t\t<tbody>\r\n\t\t\t\t<tr\r\n\t\t\t\t\t*ngFor="\r\n\t\t\t\t\t\tlet category of budgetDtoSecundary.budget.summary.categories;\r\n\t\t\t\t\t\tlet iCat = index\r\n\t\t\t\t\t"\r\n\t\t\t\t>\r\n\t\t\t\t\t<td style="font-weight: bold; text-align: left; border: 1px solid black;">\r\n\t\t\t\t\t\t&nbsp;&nbsp;{{\r\n\t\t\t\t\t\t\ttranslateCategory(category.category)\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\t*ngFor="let year of category.years"\r\n\t\t\t\t\t\tstyle="text-align: right; border: 1px solid black;"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t&nbsp;&nbsp;{{\r\n\t\t\t\t\t\t\tyear.total == 0 ? \'-\' : (year.total | currency: \'default\':\'\':\'1.0-0\')\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td style="font-weight: bold; text-align: right; border: 1px solid black;">\r\n\t\t\t\t\t\t&nbsp;&nbsp;{{\r\n\t\t\t\t\t\t\tcategory.total == 0\r\n\t\t\t\t\t\t\t\t? \'-\'\r\n\t\t\t\t\t\t\t\t: (category.total | currency: \'default\':\'\':\'1.0-0\')\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr style="font-weight: bold;">\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\tstyle="\r\n\t\t\t\t\t\t\ttext-align: right;\r\n\t\t\t\t\t\t\tborder: 1px solid black;\r\n\t\t\t\t\t\t\tcolor: white;\r\n\t\t\t\t\t\t\tbackground-color: grey;\r\n\t\t\t\t\t\t"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tTotal ({{ budgetDtoSecundary.budget.summary.baseCurrency }})&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\t*ngFor="let year of budgetDtoSecundary.budget.summary.years"\r\n\t\t\t\t\t\tstyle="\r\n\t\t\t\t\t\t\ttext-align: right;\r\n\t\t\t\t\t\t\tborder: 1px solid black;\r\n\t\t\t\t\t\t\tcolor: white;\r\n\t\t\t\t\t\t\tbackground-color: grey;\r\n\t\t\t\t\t\t"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{{\r\n\t\t\t\t\t\t\tyear.total == 0 ? \'-\' : (year.total | currency: \'default\':\'\':\'1.0-0\')\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\tstyle="\r\n\t\t\t\t\t\t\ttext-align: right;\r\n\t\t\t\t\t\t\tborder: 1px solid black;\r\n\t\t\t\t\t\t\tcolor: white;\r\n\t\t\t\t\t\t\tbackground-color: grey;\r\n\t\t\t\t\t\t"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{{\r\n\t\t\t\t\t\t\tbudgetDtoSecundary.budget.summary.budgetTotal == 0\r\n\t\t\t\t\t\t\t\t? \'-\'\r\n\t\t\t\t\t\t\t\t: (budgetDtoSecundary.budget.summary.budgetTotal\r\n\t\t\t\t\t\t\t\t | currency: \'default\':\'\':\'1.0-0\')\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t</tbody>\r\n\t\t</table>\r\n\t</div>\r\n</div>\r\n',styles:[""]}),__metadata("design:paramtypes",[common.CurrencyPipe,TokenService,ngxToastr.ToastrService,AuthenticationService])],TokenComponent),TokenComponent}(),PADDING="000000",CurrencyColfuturoPipe=function(){function t(){this.DECIMAL_SEPARATOR=",",this.THOUSANDS_SEPARATOR=".",this.ZERO="-"}return t.prototype.transform=function(t,e){if(void 0===e&&(e=0),t){var n=t+"";return n=n.replace(/\B(?=(\d{3})+(?!\d))/g,this.THOUSANDS_SEPARATOR)}return this.ZERO},t.prototype.parse=function(t,e){return void 0===e&&(e=0),t&&t!=this.ZERO?t.replace(/\./g,""):"0"},t=__decorate([core.Pipe({name:"currencyColfuturo"}),__metadata("design:paramtypes",[])],t)}(),CurrencyColfuturoFormatterDirective=function(){function t(t){this.elementRef=t,this.el=this.elementRef.nativeElement,this.currencyPipe=new CurrencyColfuturoPipe}return t.prototype.ngOnInit=function(){this.el.value&&(this.el.value=this.currencyPipe.transform(this.el.value))},t.prototype.onFocus=function(t){t&&(this.el.value=this.currencyPipe.parse(t))},t.prototype.onBlur=function(t){t&&(this.el.value=this.currencyPipe.transform(t))},t.prototype.onkeypress=function(t){var e=t.which?t.which:t.keyCode;return!(e>31&&(e<48||e>57))},t.ctorParameters=function(){return[{type:core.ElementRef}]},__decorate([core.HostListener("focus",["$event.target.value"]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],t.prototype,"onFocus",null),__decorate([core.HostListener("blur",["$event.target.value"]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],t.prototype,"onBlur",null),__decorate([core.HostListener("keypress",["$event"]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],t.prototype,"onkeypress",null),t=__decorate([core.Directive({selector:"[currencyColfuturoFormatter]"}),__metadata("design:paramtypes",[core.ElementRef])],t)}(),PADDING$1="000000",CurrencyDecimalColfuturoPipe=function(){function t(){this.DECIMAL_SEPARATOR=",",this.THOUSANDS_SEPARATOR="."}return t.prototype.transform=function(t,e){void 0===e&&(e=2);var n=__read((t||"").toString().split(this.DECIMAL_SEPARATOR),2),o=n[0],r=n[1],i=void 0===r?"":r;return i=e>0?this.DECIMAL_SEPARATOR+(i+PADDING$1).substring(0,e):"",(o=o.replace(/\B(?=(\d{3})+(?!\d))/g,this.THOUSANDS_SEPARATOR))+i},t.prototype.parse=function(t,e){void 0===e&&(e=2);var n=__read((t||"").split(this.DECIMAL_SEPARATOR),2),o=n[0],r=n[1],i=void 0===r?"":r;return(o=o.replace(/\./g,""))+(i=parseInt(i,10)>0&&e>0?this.DECIMAL_SEPARATOR+(i+PADDING$1).substring(0,e):"")},t=__decorate([core.Pipe({name:"currencyDecimalColfuturo"}),__metadata("design:paramtypes",[])],t)}(),CurrencyDecimalColfuturoFormatterDirective=function(){function t(t){this.elementRef=t,this.el=this.elementRef.nativeElement,this.currencyDecimalPipe=new CurrencyDecimalColfuturoPipe}return t.prototype.ngOnInit=function(){this.el.value=this.currencyDecimalPipe.transform(this.el.value)},t.prototype.onFocus=function(t){this.el.value=this.currencyDecimalPipe.parse(t)},t.prototype.onBlur=function(t){this.el.value=this.currencyDecimalPipe.transform(t)},t.ctorParameters=function(){return[{type:core.ElementRef}]},__decorate([core.HostListener("focus",["$event.target.value"]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],t.prototype,"onFocus",null),__decorate([core.HostListener("blur",["$event.target.value"]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],t.prototype,"onBlur",null),t=__decorate([core.Directive({selector:"[currencyDecimalColfuturoFormatter]"}),__metadata("design:paramtypes",[core.ElementRef])],t)}(),PADDING$2="000000",CurrencyPrintColfuturoPipe=function(){function t(){this.DECIMAL_SEPARATOR=",",this.THOUSANDS_SEPARATOR="."}return t.prototype.transform=function(t,e){void 0===e&&(e=0);var n=(t||"").toString().replace(/ /g,"");return"0"==(n=(n=n.replace(/\B(?=(\d{3})+(?!\d))/g,this.THOUSANDS_SEPARATOR)).replace(String.fromCharCode(160),""))?"-":n},t.prototype.parse=function(t,e){void 0===e&&(e=0);var n=(t||"").replace(/ /g,"");return"0"==(n=(n=n.replace(/\./g,"")).replace(String.fromCharCode(160),""))?"-":n},t=__decorate([core.Pipe({name:"currencyPrintColfuturo"}),__metadata("design:paramtypes",[])],t)}(),ThousandsPipe=function(){function t(){}return t.prototype.transform=function(t,e){if(isNaN(t)||""===t||null===t)return 0;e||(e={}),(void 0===e.decimals||null===e.decimals||isNaN(e.decimals)||e.decimals<0)&&(e.decimals=2);var n="number"==typeof t?t:Number(t);return e.format?n<1e3?this.returnResult(n,e):n>=1e3&&n<1e6?(e.prefix="K",this.returnResult(n/1e3,e)):n>=1e6&&n<=1e9?(e.prefix="M",this.returnResult(n/1e6,e)):n>=1e9&&n<=1e12?(e.prefix="B",this.returnResult(n/1e9,e)):void 0:this.returnResult(n,e)},t.prototype.returnResult=function(t,e){var n=e?t.toFixed(e.decimals):t.toString();return n=Number(n).toLocaleString("de-DE"),e&&1==e.format&&e.prefix&&(n+=e.prefix),n},t=__decorate([core.Pipe({name:"thousands"})],t)}(),ApplicationTagService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})},this.serviceName="application-tag"}return t.prototype.findByPromCod=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+this.serviceName,{params:(new http.HttpParams).set("promCod",t.toString())})},t.prototype.getTagByNameLike=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+this.serviceName+"/get-tag-by-name",{params:(new http.HttpParams).set("promCod",t.toString()).set("nameTag",e)})},t.prototype.findByIdApp=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+this.serviceName+"/get-by-id-app",{params:(new http.HttpParams).set("idApp",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+this.serviceName,t)},t.prototype.edit=function(t){return this.httpClient.put(this.environment.host.backend.backoffice+this.serviceName,t)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.backoffice+this.serviceName,{params:(new http.HttpParams).set("id",t)})},t.prototype.assign=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+this.serviceName+"/assign",t,{params:(new http.HttpParams).set("idTag",e)})},t.prototype.removeTag=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+this.serviceName+"/remove-tag",{},{params:(new http.HttpParams).set("idApp",t).set("idTag",e)})},t.prototype.removeTags=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+this.serviceName+"/remove-tags",e,{params:(new http.HttpParams).set("idApp",t)})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SpinnerService=function(){function t(){this.showSpinner=!0}return t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"})],t)}(),URLS={menu:"budget/menu",getById:"budget/getById",getByApplicationId:"budget/getByApplicationId",getByPromCodigo:"budget/getByPromCodigo",save:"budget/save",summarizedSave:"budget/summarizedSave",summarizedReset:"budget/summarizedReset",delete:"budget/delete",update:"budget/update",mybudget:"budget/mybudget",mysimplebudget:"budget/mysimplebudget",wizard:"budget/wizard",generate:"budget/generate",deleteWizard:"budget/deleteWizard",budgetsByProm:"budget/getBudgetsByProm",updateWizard:"budget/updateWizard",getConfiguredCurrency:"budget_setup/getConfiguredCurrency"},httpOptions={headers:new http.HttpHeaders({"Content-Type":"application/json"})},BudgetApplicationService=function(){function t(t,e){this.environment=t,this.http=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})},this.subjectValidateBudgetCheck=new rxjs.Subject}return t.prototype.handleError=function(t){return t.error,ErrorEvent,rxjs.throwError(t)},t.prototype.getBudget=function(t){var e=(new http.HttpParams).set("budgetId",t);return this.http.get(this.environment.host.backend.frontoffice+URLS.getById,{headers:httpOptions.headers,params:e}).pipe(operators.catchError(this.handleError))},t.prototype.updateBudget=function(t){return this.http.post(this.environment.host.backend.frontoffice+URLS.update,t,{headers:httpOptions.headers}).pipe(operators.catchError(this.handleError))},t.prototype.summarizedSave=function(t){return this.http.post(this.environment.host.backend.frontoffice+URLS.summarizedSave,t,{headers:httpOptions.headers}).pipe(operators.catchError(this.handleError))},t.prototype.summarizedReset=function(t,e){var n=(new http.HttpParams).set("applicationId",e).set("programTypeId",String(t));return this.http.post(this.environment.host.backend.frontoffice+URLS.summarizedReset,null,{headers:httpOptions.headers,params:n}).pipe(operators.catchError(this.handleError))},t.prototype.getMyBudgetsList=function(t){var e=(new http.HttpParams).set("applicationId",t);return this.http.get(this.environment.host.backend.frontoffice+URLS.menu,{headers:httpOptions.headers,params:e}).pipe(operators.catchError(this.handleError))},t.prototype.getMyBudget=function(t,e,n,o){var r=(new http.HttpParams).set("applicationId",t).set("promCode",n+"").set("budgetSetupId",e).set("tag",o);return this.http.get(this.environment.host.backend.frontoffice+URLS.mybudget,{headers:httpOptions.headers,params:r}).pipe(operators.catchError(this.handleError))},t.prototype.getMySimpleBudget=function(t,e){var n=(new http.HttpParams).set("applicationId",t).set("tag",e);return this.http.get(this.environment.host.backend.frontoffice+URLS.mysimplebudget,{headers:httpOptions.headers,params:n}).pipe(operators.catchError(this.handleError))},t.prototype.getBudgetsByProm=function(t,e,n){var o=(new http.HttpParams).set("applicationId",t).set("promCode",e+"").set("tag",n);return this.http.get(this.environment.host.backend.frontoffice+URLS.budgetsByProm,{headers:httpOptions.headers,params:o}).pipe(operators.catchError(this.handleError))},t.prototype.newWizard=function(t){return this.http.post(this.environment.host.backend.frontoffice+URLS.wizard,t,{headers:httpOptions.headers}).pipe(operators.catchError(this.handleError))},t.prototype.generate=function(t){return this.http.post(this.environment.host.backend.frontoffice+URLS.generate,t,{headers:httpOptions.headers}).pipe(operators.catchError(this.handleError))},t.prototype.menu=function(t){var e=(new http.HttpParams).set("promCode",t+"");return this.http.get(this.environment.host.backend.frontoffice+URLS.menu,{headers:httpOptions.headers,params:e}).pipe(operators.catchError(this.handleError))},t.prototype.deleteWizard=function(t){var e=(new http.HttpParams).set("wizardId",t);return this.http.delete(this.environment.host.backend.frontoffice+URLS.deleteWizard,{headers:httpOptions.headers,params:e}).pipe(operators.catchError(this.handleError))},t.prototype.getBudgetOwnFundByApplicationId=function(t){return this.http.get(this.environment.host.backend.frontoffice+"budgetOwnFund/getByApplicationId",{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.saveBudgetOwnFund=function(t){return this.http.post(this.environment.host.backend.frontoffice+"budgetOwnFund/save",t,this.headerJson)},t.prototype.getOtherBudgetByPromCodigo=function(t,e,n){return this.http.get(this.environment.host.backend.frontoffice+"budget/otherBudget",{params:(new http.HttpParams).set("promCode",t.toString()).set("budgetSetupId",e).set("applicationId",n)})},t.prototype.getBudgetSetupPliCnfByPromCodigo=function(t,e){return this.http.get(this.environment.host.backend.frontoffice+"budget_setup/getPliCnfByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("cargarListas",e.toString())})},t.prototype.getBudgetSetupByPromCodigo=function(t){return this.http.get(this.environment.host.backend.frontoffice+"budget_setup/getByPromCodigo",{params:(new http.HttpParams).set("promCode",t.toString())})},t.prototype.updateWizard=function(t){return this.http.post(this.environment.host.backend.frontoffice+URLS.updateWizard,t,{headers:httpOptions.headers}).pipe(operators.catchError(this.handleError))},t.prototype.getByApplicationId=function(t){return this.http.get(this.environment.host.backend.frontoffice+URLS.getByApplicationId,{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.getByPromCodigo=function(t){return this.http.get(this.environment.host.backend.frontoffice+URLS.getByPromCodigo,{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getConfiguredCurrency=function(t){return this.http.get(this.environment.host.backend.frontoffice+URLS.getConfiguredCurrency,{params:(new http.HttpParams).set("promCode",t.toString())})},t.prototype.getSubjectValidateBudgetCheck=function(){return this.subjectValidateBudgetCheck.asObservable()},t.prototype.setSubjectValidateBudgetCheck=function(t){void 0===t&&(t=!0),this.subjectValidateBudgetCheck.next(t)},t.prototype.isFullBudget=function(t){return this.http.get(this.environment.host.backend.frontoffice+"budget/isFullBudget",{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.updateCompletedFlag=function(t,e){return this.http.get(this.environment.host.backend.frontoffice+"budget/updateCompletedFlag",{params:(new http.HttpParams).set("applicationId",t).set("completed",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t=__decorate([core.Injectable(),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),DocumentManagementService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.queue=function(t){return this.httpClient.post(this.environment.host.backend.queue+"document-management/queue",t,this.headerJson)},t.prototype.queueMultiple=function(t){return this.httpClient.post(this.environment.host.backend.queue+"document-management/queueMultiple",t,this.headerJson)},t.prototype.queueViews=function(t,e){return this.httpClient.post(this.environment.host.backend.queue+"document-management/queue-views",{applicationId:t,promCodigo:e},this.headerJson)},t.prototype.queueViewsListApplication=function(t,e){return this.httpClient.post(this.environment.host.backend.queue+"document-management/queue-views",{lApplicationId:t,promCodigo:e},this.headerJson)},t.prototype.getCreditStudyDocuments=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+"document-management/getCreditStudyDocuments",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("amount",e.toString())})},t.prototype.totalCreditStudyDocuments=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"document-management/totalCreditStudyDocuments",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),DocumentService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})},this.subjectValidateDocumentsCheck=new rxjs.Subject}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"document/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getByApplicationId=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"document/getByApplicationId",{params:(new http.HttpParams).set("applicationId",t.toString())})},t.prototype.getByConfigurationDocumentId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"document/getByConfigurationDocumentId",{params:(new http.HttpParams).set("configurationDocumentId",t.toString())})},t.prototype.getByListStateInConfigurationDocumentId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"document/getByListStateInConfigurationDocumentId",{params:(new http.HttpParams).set("configurationDocumentId",e.toString()).set("listState",t.toString())})},t.prototype.getByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"document/getByPromCode",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"document/save",t,this.headerJson)},t.prototype.updateState=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"document/updateState",t,this.headerJson)},t.prototype.updateArchiveProcess=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"document/updateArchiveProcess",t,this.headerJson)},t.prototype.getByDataTablesParameters=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"document/getByDataTablesParameters",t,this.headerJson)},t.prototype.getListDocumentsByPromCodigoAndRevisor=function(t,e,n,o){return this.httpClient.get(this.environment.host.backend.frontoffice+"document/getListDocumentsByPromCodigoAndRevisor",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("revisorLogin",e).set("configurationDocumentId",n.toString()).set("taskId",o.toString())})},t.prototype.getByApplicationIdAndConfigurationDocumentId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"document/getByApplicationIdAndConfigurationDocumentId",{params:(new http.HttpParams).set("applicationId",t.toString()).set("configurationDocumentId",e.toString())})},t.prototype.updateDocumentManagementProcess=function(t){var e={applicationId:t};return this.httpClient.post(this.environment.host.backend.frontoffice+"document/updateDocumentManagementProcess",e)},t.prototype.getSubjectValidateDocumentsCheck=function(){return this.subjectValidateDocumentsCheck.asObservable()},t.prototype.setSubjectValidateDocumentsCheck=function(t){void 0===t&&(t=!0),this.subjectValidateDocumentsCheck.next(t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),DocumentaryTypeService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n}return t.prototype.getById=function(t,e){var n=(new http.HttpParams).set("tdlCodigo",t.toString()).set("cargarListas",e.toString());return this.httpClient.get(this.environment.host.backend.plis+"config/tipo-documental/getById",{params:n})},t.prototype.getAllByProceso=function(t,e){var n=new http.HttpParams;return e&&(n.set("proCodigo",e.toString()),null!==t&&(n=(new http.HttpParams).set("proCodigo",e.toString()).set("cargarListas",t.toString()))),this.httpClient.get(this.environment.host.backend.plis+"config/tipo-documental/getAllByProceso",{params:n})},t.prototype.getAllActiveByProceso=function(t){return this.getAllByProceso(!0,t)},t.prototype.save=function(t,e,n){var o={tipoDocumental:e,tipoDocumentalBefore:t,pliUsuario:ngPliUtil.AuthenticationUtil.getPliUsuario(),patCodigo:n};return this.httpClient.post(this.environment.host.backend.plis+"config/tipo-documental/save",o,ngPliUtil.HEADER_JSON)},t.prototype.delete=function(t,e){var n={tipoDocumental:t,tipoDocumentalBefore:null,pliUsuario:ngPliUtil.AuthenticationUtil.getPliUsuario(),patCodigo:e};return this.httpClient.post(this.environment.host.backend.plis+"config/tipo-documental/delete",n,ngPliUtil.HEADER_JSON)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),EmailService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.send=function(t){return this.httpClient.post(this.environment.host.backend.queue+"email/send",t,this.headerJson)},t.prototype.sendApplicationNotification=function(t){return this.httpClient.post(this.environment.host.backend.queue+"email/sendApplicationNotification",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),CubeService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.send=function(t){return this.httpClient.post(this.environment.host.backend.queue+"cube/send",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),EvaluationService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/save",t,this.headerJson)},t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"evaluation/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getByPromCodigoAndEvaluator=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/findByEvaluator",t)},t.prototype.getGroupingFormFieldsTask=function(t){var e=new http.HttpParams;return e=e.set("promCodigo",String(t)),this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/getGroupingFormFieldsTask","",{params:e})},t.prototype.getGroupedByDataTasksParameters=function(t,e,n){var o=(new http.HttpParams).set("promCodigo",String(e)).set("evaluator",String(n));return this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/getGroupedByDataTasksParameters",t,{params:o})},t.prototype.getGroupedTasksByEvaluatorAndPromCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+"evaluation/evaluator/"+t+"/promCodigo/"+e)},t.prototype.generateIndicators=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/generateIndicators",t)},t.prototype.getTotalTaskReviewerByTaskIdAndPromCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+"evaluation/reviewerByTaskIdAndPromCodigo",{params:(new http.HttpParams).set("taskId",t.toString()).set("promCodigo",e.toString())})},t.prototype.assignTaskReviwer=function(t,e,n){var o={listApplication:t,listEvaluator:e,taskId:n};return this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/assignTask",o,this.headerJson)},t.prototype.unAssignTaskReviwer=function(t,e){var n={listApplication:t,taskId:e};return this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/unAssignTaskReviwer",n,this.headerJson)},t.prototype.getByApplicationIdIn=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/getByApplicationIdIn",t,this.headerJson)},t.prototype.sendEvaluationQueue=function(t){return this.httpClient.post(this.environment.host.backend.queue+"evaluation/send",t)},t.prototype.setTemplateOutputs=function(t,e,n,o,r,i,a){var s="evaluation/application/"+t+"/task/"+e+"/evaluator/"+n+"/template/"+o+"/isComplete/"+r+"/isAllTemplatesComplete/"+i;return this.httpClient.post(this.environment.host.backend.backoffice+s,a,this.headerJson)},t.prototype.gradingJob=function(t){return this.httpClient.post(this.environment.host.backend.valpro+"grading-job/",t,this.headerJson)},t.prototype.updateProgramGrade=function(t,e,n,o,r){return this.httpClient.put(this.environment.host.backend.backoffice+"evaluation/updateProgramGrade",t,{params:(new http.HttpParams).set("needToEditComment",String(e)).set("color",String(n)).set("needToEditColor",String(o)).set("sendToEvaluationQueue",String(r))})},t.prototype.getTemplateOutputsByReviewer=function(t,e,n,o){return this.httpClient.get(this.environment.host.backend.backoffice+"evaluation/getTemplateOutputsByReviewer",{params:(new http.HttpParams).set("applicationId",t).set("taskId",e.toString()).set("reviewer",n).set("templateId",o.toString())})},t.prototype.getTemplatesByReviewer=function(t,e,n){return this.httpClient.get(this.environment.host.backend.backoffice+"evaluation/getTemplatesByReviewer",{params:(new http.HttpParams).set("applicationId",t).set("taskId",e.toString()).set("reviewer",n)})},t.prototype.getValproTemplateOutputs=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+"evaluation/getValproTemplateOutputs",{params:(new http.HttpParams).set("applicationId",t).set("taskId",e.toString())})},t.prototype.getValproTemplateOutputsByNumberAndPromCode=function(t,e,n){return this.httpClient.get(this.environment.host.backend.backoffice+"evaluation/getValproTemplateOutputsByNumberAndPromCode",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("numberApplication",e.toString()).set("taskId",n.toString())})},t.prototype.checkValproTaskExistsIn=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"evaluation/checkValproTaskExists",{params:(new http.HttpParams).set("listTasksId",t.toString())})},t.prototype.changeStateMassiveToComplete=function(t,e){return this.httpClient.put(this.environment.host.backend.backoffice+"evaluation/changeStateMassiveToComplete",t,{params:(new http.HttpParams).set("taskId",e.toString())})},t.prototype.getEssayOutputsByReviewer=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/getEssayOutputsByReviewer",t)},t.prototype.saveEssayOutputsByReviewer=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/saveEssayOutputsByReviewer",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),EXCEL_TYPE="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8",EXCEL_EXTENSION=".xlsx",ExportExcelService=function(){function t(){}return t.prototype.exportAsExcelFile=function(t,e){var n={Sheets:{data:xlsx.utils.json_to_sheet(t)},SheetNames:["data"]},o=xlsx.write(n,{bookType:"xlsx",type:"array"});this.saveAsExcelFile(o,e)},t.prototype.saveAsExcelFile=function(t,e){var n=new Blob([t],{type:EXCEL_TYPE});fileSaver.saveAs(n,e+"_export_"+(new Date).getTime()+EXCEL_EXTENSION)},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__metadata("design:paramtypes",[])],t)}(),GlobalShowTaskService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByDataTablesParameters=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"global-show-task/getByDataTablesParameters",t,this.headerJson)},t.prototype.getEvaluatorByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"global-show-task/getEvaluatorByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t)})},t.prototype.getByReviwerAndTemplateWithDataTablesParameters=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"global-show-task/getByReviwerAndTemplateWithDataTablesParameters",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),ImportDataService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"importData/saveApplication",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),InteractionApplicationUserService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByApplicationId=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"interactionApplicationUser/getByApplicationId",{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.getByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"interactionApplicationUser/getByPromCode",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"interactionApplicationUser/save",t,this.headerJson)},t.prototype.getByApplicationIdAndPliCnfStatusFlowId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"interactionApplicationUser/getByApplicationIdAndPliCnfStatusFlowId",{params:(new http.HttpParams).set("applicationId",t).set("pliCnfStatusFlowId",e.toString())})},t.prototype.getByApplicationIdAndPliCnfInteractionId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"interactionApplicationUser/getByApplicationIdAndPliCnfInteractionId",{params:(new http.HttpParams).set("applicationId",t).set("pliCnfInteractionId",e.toString())})},t.prototype.getByPromCodigoAndPliCnfInteractionIdIn=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"interactionApplicationUser/getByPromCodigoAndPliCnfInteractionIdIn",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("pliCnfInteractionId",e.toString())})},t.prototype.getByPromCodigoAndInteractionStaticId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"interactionApplicationUser/getByPromCodigoAndInteractionStaticId",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("interactionStaticId",e.toString())})},t.prototype.getByApplicationIdAndInteractionStaticId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"interactionApplicationUser/getByApplicationIdAndInteractionStaticId",{params:(new http.HttpParams).set("applicationId",t.toString()).set("interactionStaticId",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),KeysAssignationService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getByTdlCodigoAndPromCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"keys-assignation/getByTdlCodigoAndPromCodigo",{params:(new http.HttpParams).set("tdlCodigo",t.toString()).set("promCodigo",e.toString())})},t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"keys-assignation/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"keys-assignation/save",t,ngPliUtil.HEADER_JSON)},t.prototype.delete=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"keys-assignation/delete",t,ngPliUtil.HEADER_JSON)},t.prototype.getTemplateFromKeyAssignation=function(t){var e="",n=[],o=t.keys.split(","),r=t.values.split("<br/>"),i=function(t){var i=o[t],a=ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY.find((function(t){return t.key===i})),s=null;a&&!a.knowSource&&(s=r[t],e+="<br>"+i+":"+s),n.push({key:i,value:s,knowSource:a.knowSource})};for(var a in o)i(a);return e=t.tdlCodigo+"<br>"+e.substring(4),{lKeysValues:n,keysAssignation:t,template:e}},t.prototype.getValueKnowSource=function(t,e,n){return ngPliUtil.UtilString.isValid(e)?e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_TIPO_DOCUMENTAL?n.documentaryType.tdlTipoDocumentalOnbase:e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO?"":e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_ANO_PROMOCION?t.pliPromocion.promAnio:e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_PROMOCION?t.pliPromocion.promNombreCorto:e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_PROGRAMA?t.pliPromocion.pliPrograma.progNombreCorto:e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_PATROCINADOR?t.pliPromocion.pliPrograma.pliPatrocinador.patNombreCorto:e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_FECHA_ACTUAL||e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_RUTA_DOCUMENTO||e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_CONSECUTIVO||e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_TIPO_ARCHIVO?e:void 0:""},t.prototype.saveClonning=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"keys-assignation/saveClonning",{params:(new http.HttpParams).set("promCodigoInit",t.toString()).set("promCodigoFinal",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),LetterCampaingService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"letter-campaing",t,this.headerJson)},t.prototype.getTypes=function(){return this.httpClient.get(this.environment.host.backend.backoffice+"letter-campaing/getTypes")},t.prototype.findAllByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"letter-campaing/findAllByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"letter-campaing/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getLetterCampaignRulesByIdCampaign=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"letter-campaing/getLetterCampaignRulesByIdCampaign",{params:(new http.HttpParams).set("idCampaign",t.toString())})},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.backoffice+"letter-campaing",{params:(new http.HttpParams).set("id",t)})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),LogService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.backoffice+"log/getAll")},t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"log/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getByPromCodigoAndProNombre=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+"log/getByPromCodigoAndProNombre",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("proNombre",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PageService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"page/getAll")},t.prototype.getAllSection=function(){return this.httpClient.get(this.environment.host.backend.configuration+"page/getAllSection")},t.prototype.getAllPagePermissionOrder=function(){return this.httpClient.get(this.environment.host.backend.configuration+"page/getAllPagePermissionOrder")},t.prototype.getPageNameByPageKey=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"page/getPageNameByPageKey",{params:(new http.HttpParams).set("pageKey",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfPageSubProcessService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"PliCnfPageSubProcess/getAll")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PermissionService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"permission/getAll")},t.prototype.getAllTypePermission=function(){return this.httpClient.get(this.environment.host.backend.configuration+"permission/getAllTypePermission")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfAppCardFilterService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getAllCardFilterDimension=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCardFilterDimension/getAllCardFilterDimension")},t.prototype.getAllAppCardFilter=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfAppCardFilter/getAllAppCardFilter")},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfAppCardFilter/save",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfAppCardFilter/delete",{params:(new http.HttpParams).set("id",t)})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfCommitteeVisualizationModeService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getByPromCode=function(t){var e=new http.HttpParams;return e=e.set("promCode",String(t)),this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommitteeVisualizationMode/getByPromCode",{params:e=e})},t.prototype.getByCommittee=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommitteeVisualizationMode/getByCommittee?idCommittee="+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfCommitteeVisualizationMode/save",t)},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommitteeVisualizationMode/getById?id="+t)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfCommitteeVisualizationMode/delete?id="+t)},t.prototype.getConfigCloningCVisualization=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfCommitteeVisualizationMode/getConfigCloningCVisualization",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfEvaluationTemplateService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"evaluationtemplate/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getByIds=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"evaluationtemplate/getByIdIn",t)},t.prototype.getAllByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"evaluationtemplate/getAllByPromCode",{params:(new http.HttpParams).set("promCode",t.toString())})},t.prototype.getAllByPromCodeAndActve=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"evaluationtemplate/getAllByPromCodeAndActive",{params:(new http.HttpParams).set("promCode",t.toString()).set("active",e)})},t.prototype.getByPromCodeAndisValpro=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"evaluationtemplate/getByPromCodeAndIsValpro",{params:(new http.HttpParams).set("promCode",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"evaluationtemplate/save",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"evaluationtemplate/delete",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getMongoFormByEvaluationTemplateId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"evaluationtemplate/mongoForm/getByEvaluationTemplateId",{params:(new http.HttpParams).set("evaluationTemplateId",t.toString())})},t.prototype.getAllMongoFormsByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"evaluationtemplate/mongoForm/getAllByPromCode",{params:(new http.HttpParams).set("promCode",t.toString())})},t.prototype.saveMongoForm=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"evaluationtemplate/mongoForm/save",t,this.headerJson)},t.prototype.saveAll=function(t,e){return this.httpClient.post(this.environment.host.backend.configuration+"evaluationtemplate/saveAll",{lEvaluationTemplate:t,promCodigo:e},this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfIndicatorService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByUsername=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfIndicator/getByUsername")},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfIndicator/save",t,this.headerJson)},t.prototype.saveMultiple=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfIndicator/saveMultiple",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfIndicator/delete",{params:(new http.HttpParams).set("id",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfInteractionService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfInteraction/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfInteraction/save",t,this.headerJson)},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfInteraction/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getAllTypeInteraction=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfInteraction/getAllTypeInteraction")},t.prototype.getAllTypeStaticInteraction=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfInteraction/getAllTypeStaticInteraction")},t.prototype.getUnUsedStaticInteractions=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfInteraction/getUnUsedStaticInteractions",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getByPromCodigoAndTypeStaticInteractionId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfInteraction/getByPromCodigoAndTypeStaticInteractionId",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("IdTypeInteraction",e.toString())})},t.prototype.getByPromCodigoAndTypeStaticInteractionIdAndCommitteeId=function(t,e,n){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfInteraction/getByPromCodigoAndTypeStaticInteractionIdAndCommitteeId",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("IdTypeInteraction",e.toString()).set("committeeId",n.toString())})},t.prototype.getByPromCodigoAndStatusFlowNull=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfInteraction/getByPromCodigoAndStatusFlowNull",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfInteraction/saveAll",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfProfileUserService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByUserLogin=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfProfileUser/getByUserLogin",{params:(new http.HttpParams).set("userLogin",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfProfileUser/save",t,this.headerJson)},t.prototype.saveProfileByPatrocinador=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfProfileUser/saveProfileByPatrocinador",{patCodigo:t},this.headerJson)},t.prototype.deleteById=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfProfileUser/deleteById",{params:(new http.HttpParams).set("id",t)})},t.prototype.deleteByListId=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfProfileUser/deleteByListId",{params:(new http.HttpParams).set("listProfileUserId",t)})},t.prototype.deleteByUserIdAndPatCodigoAndProfileId=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfProfileUser/deleteByUserIdAndPatCodigoAndProfileId",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfScenarioService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.service_path="pli-cnf-scenario",this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+this.service_path+"/"+t.toString())},t.prototype.getAllByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+this.service_path+"/prom-codigo/"+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+this.service_path,t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+this.service_path+"/"+t.toString())},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+this.service_path+"/saveAll",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfSegmentationService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSegmentation/getAll")},t.prototype.getAllByPatCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSegmentation/getAllByPatCodigo",{params:(new http.HttpParams).set("patCodigo",t.toString())})},t.prototype.getByKey=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSegmentation/getByKey",{params:(new http.HttpParams).set("key",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSegmentation/save",t,this.headerJson)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSegmentation/saveAll",t,this.headerJson)},t.prototype.configCloningSegmentation=function(t,e,n,o,r){var i={mapForms:t,mapBudgets:e,mapTask:n,oldPPP:o,promocion:r};return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSegmentation/configCloningSegmentation",i,this.headerJson)},t.prototype.getAllTypeInput=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfTypeInput/getAll")},t.prototype.getAllSegmentationCategory=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSegmentation/category/getAll")},t.prototype.saveCategory=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSegmentation/category/save",t,this.headerJson)},t.prototype.getSegTasksByValproValuesAndBestSegmentation=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSegmentation/task/getValproValuesAndBestSegmentationTasks",{params:(new http.HttpParams).set("listPromCodigo",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfStatusFlowInteractionService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByStatusFlowId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatusFlowInteraction/getByStatusFlowId",{params:(new http.HttpParams).set("statusFlowId",t.toString())})},t.prototype.getByInteractionPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatusFlowInteraction/getByInteractionPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfStatusFlowInteraction/save",t,ngPliUtil.HEADER_JSON)},t.prototype.deleteByStatusFlowIdAndInteractionIdAndPositive=function(t,e,n){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfStatusFlowInteraction/deleteByStatusFlowIdAndInteractionIdAndPositive",{params:(new http.HttpParams).set("statusFlowId",t).set("interactionId",e).set("positive",n)})},t.prototype.deleteByListId=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfStatusFlowInteraction/deleteByListId",t,this.headerJson)},t.prototype.deleteById=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfStatusFlowInteraction/deleteById",{params:(new http.HttpParams).set("statusFlowInteractionId",t)})},t.prototype.getByPromCodigoAndStatusIdAndProfileIdIn=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfStatusFlowInteraction/getByPromCodigoAndStatusIdAndProfileIdIn",t,ngPliUtil.HEADER_JSON)},t.prototype.getByStatusStarIdAndInteractionId=function(t,e,n){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatusFlowInteraction/getByStatusStarIdAndInteractionId",{params:(new http.HttpParams).set("statusStartId",t.toString()).set("interactionId",e.toString()).set("positive",n.toString())})},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfStatusFlowInteraction/saveAll",t,ngPliUtil.HEADER_JSON)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfStatusFlowService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatusFlow/getById",{params:(new http.HttpParams).set("statusFlowId",t.toString())})},t.prototype.getAllByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatusFlow/getAllByPromCode",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getAllActiveByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatusFlow/getAllActiveByPromCode",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getMailConfiguration=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatusFlowMailing/getByStatusFlow/"+t)},t.prototype.saveMailConfiguration=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfStatusFlowMailing",t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfStatusFlow/save",t,ngPliUtil.HEADER_JSON)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfStatusFlow/saveAll",t,ngPliUtil.HEADER_JSON)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),PliCnfSupportDocumentService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSupportDocument/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getActivesByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSupportDocument/getByPromCodigoAndActive",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSupportDocument/save",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfSupportDocument/delete",{params:(new http.HttpParams).set("id",t)})},t.prototype.getConfigClonedSupportDocument=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSupportDocument/getConfigClonedSupportDocument",{params:(new http.HttpParams).set("oldPPP",t.toString()).set("newPPP",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfTextService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigoAndidTypeText=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfText/getByPromCodigoAndidTypeText",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("idTypeText",e.toString())})},t.prototype.getByPromCodigoAndidTypeTextIn=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfText/getByPromCodigoAndidTypeTextIn",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("idTypeTextList",e.toString())})},t.prototype.getByPromCodigoInAndidTypeText=function(t,e){var n=(new http.HttpParams).set("promCodigos",t.toString()).set("idTypeText",e.toString());return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfText/getByPromCodigoInAndidTypeText",{params:n})},t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfText/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfText/save",t,this.headerJson)},t.prototype.getConfigCloningText=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfText/getConfigCloningText",{params:(new http.HttpParams).set("oldPPP",t.toString()).set("newPPP",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfUserWorkspaceService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByUserName=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfUserWorkspace/getByUserName")},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfUserWorkspace/save",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"PliCnfUserWorkspace/delete",{params:(new http.HttpParams).set("id",t)})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfValproKeysService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfValProKeys/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfValProKeys/save",t,this.headerJson)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfValProKeys/saveAll",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfWorkspaceSegmentationService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfWorkspaceSegmentation/save",t,this.headerJson)},t.prototype.getFirst=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfWorkspaceSegmentation/getFirst")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliMultipleValueFilterService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"pliMultipleValueFilter/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getByKeyField=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"pliMultipleValueFilter/getByKeyField",{params:(new http.HttpParams).set("keyField",t.toString())})},t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.segmentation+"pliMultipleValueFilter/getAll")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliPromocionUsernameService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliPromocionUsername/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getByUsernameAndPromCodigoIn=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliPromocionUsername/getByUsernameAndPromCodigoIn",{params:(new http.HttpParams).set("listIds",t.toString())})},t.prototype.getUsernamesNotInPromCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliPromocionUsername/getUsernamesNotInPromCodigo",{params:(new http.HttpParams).set("listUsername",t.toString()).set("promCodigo",e.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliPromocionUsername/save",t,this.headerJson)},t.prototype.saveMultiple=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliPromocionUsername/saveMultiple",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliPromocionUsername/delete",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.deleteMultiple=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliPromocionUsername/deleteMultiple",{params:(new http.HttpParams).set("listId",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliSegmentationService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByDataTablesParameters=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/getByDataTablesParameters",t,this.headerJson)},t.prototype.generateIndicator=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/generateIndicator",t,this.headerJson)},t.prototype.generateGenericIndicator=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/generateGenericIndicator",t,this.headerJson)},t.prototype.generateStatistic=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/generateStatistic",t,this.headerJson)},t.prototype.getColumnsByPatCodigo=function(t){var e=t?t.toString():"";return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/getColumnsByPatCodigo",{params:(new http.HttpParams).set("patCodigo",e)})},t.prototype.getCards=function(){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationCard/getCards")},t.prototype.getSearchByUserTopFive=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/getSearchByUserTopFive",{params:(new http.HttpParams).set("userId",t.toString())})},t.prototype.updatePositionSearch=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/updatePositionSearch",t,this.headerJson)},t.prototype.saveAllSearch=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/saveAllSearch",t,this.headerJson)},t.prototype.deleteSearch=function(t){return this.httpClient.delete(this.environment.host.backend.segmentation+"PlicSegmentationTableController/deleteSearch",{params:(new http.HttpParams).set("id",t)})},t.prototype.changeTopFiveSearch=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/changeTopFiveSearch",{params:(new http.HttpParams).set("userId",t.toString())})},t.prototype.showEllipsisSearchByUser=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/showEllipsisSearchByUser",{params:(new http.HttpParams).set("userId",t.toString())})},t.prototype.getSearchByIdOrderByName=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/getSearchByIdOrderByName",{params:(new http.HttpParams).set("userId",t.toString())})},t.prototype.getPublicSearch=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/getPublicSearch",{params:(new http.HttpParams).set("lastNHours",t.toString())})},t.prototype.getListByUserTopFive=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/getListByUserTopFive",{params:(new http.HttpParams).set("userId",t.toString())})},t.prototype.updatePositionList=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/updatePositionList",t,this.headerJson)},t.prototype.saveAllList=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/saveAllList",t,this.headerJson)},t.prototype.deleteList=function(t){return this.httpClient.delete(this.environment.host.backend.segmentation+"PlicSegmentationTableController/deleteList",{params:(new http.HttpParams).set("id",t)})},t.prototype.changeTopFiveList=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/changeTopFiveList",{params:(new http.HttpParams).set("userId",t.toString())})},t.prototype.showEllipsisListByUser=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/showEllipsisListByUser",{params:(new http.HttpParams).set("userId",t.toString())})},t.prototype.getListByIdOrderByName=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/getListByIdOrderByName",{params:(new http.HttpParams).set("userId",t.toString())})},t.prototype.getPublicList=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/getPublicList",{params:(new http.HttpParams).set("lastNHours",t.toString())})},t.prototype.changeColor=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/changeColor",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),PliTagService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getTagByNameLike=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"plicSegmentationTag/getByNameLike",{params:(new http.HttpParams).set("name",t)})},t.prototype.save=function(t,e){return this.httpClient.post(this.environment.host.backend.segmentation+"plicSegmentationTag/save",{tag:t,applicationIds:e})},t.prototype.saveTagQueue=function(t){return this.httpClient.post(this.environment.host.backend.queue+"tag/save",t,this.headerJson)},t.prototype.deleteTagFromSegmentationList=function(t,e){return this.httpClient.post(this.environment.host.backend.segmentation+"plicSegmentationTag/deleteTagFromSegmentationList",{tagName:t,applicationIds:e})},t.prototype.deleteTagsFromSegmentation=function(t,e){return this.httpClient.post(this.environment.host.backend.segmentation+"plicSegmentationTag/deleteTagsFromSegmentation",{applicationId:t,tagNames:e})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliUserService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliUser/getAll")},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliUser/delete",{params:(new http.HttpParams).set("id",t)})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliUser/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getByLogin=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliUser/getByLogin",{params:(new http.HttpParams).set("login",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliUser/save",t,this.headerJson)},t.prototype.getByPatCodigoAndProfileIdList=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliUser/getByPatCodigoAndProfileIdList",{params:(new http.HttpParams).set("patCodigo",t.toString()).set("listProfileId",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),ProfileService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"profile/getAll")},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"profile/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getByUserIdAndPatCodigo=function(t,e,n){return this.httpClient.get(this.environment.host.backend.configuration+"profile/getByUserIdAndPatCodigo",{params:(new http.HttpParams).set("userId",t.toString()).set("patCodigo",e.toString()).set("cargarListas",n.toString())})},t.prototype.getByPatCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"profile/getByPatCodigo",{params:(new http.HttpParams).set("patCodigo",t.toString())})},t.prototype.getByFormId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"profile/getByFormId",{params:(new http.HttpParams).set("formId",t).set("cargarListas",e.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"profile/save",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"profile/delete",{params:(new http.HttpParams).set("id",t)})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SegmentationUserService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getSegmentationByUserTopFive=function(t,e){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/getSegmentationByUserTopFive",{params:(new http.HttpParams).set("username",t).set("type",e.toString())})},t.prototype.updatePositionSegmentation=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationUserController/updatePositionSegmentation",t,this.headerJson)},t.prototype.saveAllSegmentation=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationUserController/saveAllSegmentation",t,this.headerJson)},t.prototype.deleteSegmentation=function(t){return this.httpClient.delete(this.environment.host.backend.segmentation+"PlicSegmentationUserController/deleteSegmentation",{params:(new http.HttpParams).set("id",t)})},t.prototype.changeTopFiveSegmentation=function(t,e){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/changeTopFiveSegmentation",{params:(new http.HttpParams).set("username",t).set("type",e.toString())})},t.prototype.showEllipsisSegmentationByUser=function(t,e){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/showEllipsisSegmentationByUser",{params:(new http.HttpParams).set("username",t).set("type",e.toString())})},t.prototype.getSegmentationGreaterThanPosition=function(t,e,n){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/getSegmentationGreaterThanPosition",{params:(new http.HttpParams).set("username",t).set("type",e.toString()).set("position",n.toString())})},t.prototype.getSegmentationByIdOrderByName=function(t,e){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/getSegmentationByIdOrderByName",{params:(new http.HttpParams).set("username",t).set("type",e.toString())})},t.prototype.getSegmentationById=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/getSegmentationById",{params:(new http.HttpParams).set("segmentationId",t)})},t.prototype.getAllSegmentationByLoginAndType=function(t,e){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/getAllSegmentationByLoginAndType",{params:(new http.HttpParams).set("username",t).set("type",e.toString())})},t.prototype.getPublicSegmentation=function(t,e){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/getPublicSegmentation",{params:(new http.HttpParams).set("lastNHours",t.toString()).set("type",e.toString())})},t.prototype.getSegColumn=function(){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/getSegColumn",{params:new http.HttpParams})},t.prototype.getSegmentationByName=function(t,e,n){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/getSegmentationByName",{params:(new http.HttpParams).set("username",t).set("type",e.toString()).set("name",n)})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SegmentationService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.send=function(t){return this.httpClient.post(this.environment.host.backend.queue+"segmentation/send",t,this.headerJson)},t.prototype.sendMultiple=function(t){return this.httpClient.post(this.environment.host.backend.queue+"segmentation/sendMassive",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),utils=utils_,FormioUtil=function(){function t(){}return t.getFormattedComponentsByPanel=function(t){var e,n,o=[];if(t){var r=null,i=null;try{for(var a=__values(t),s=a.next();!s.done;s=a.next()){var c=s.value;c[ngPliUtil.EFormioKey.TITLE_PANEL]!==r&&(null!==r&&o.push(i),i={label:c[ngPliUtil.EFormioKey.TITLE_PANEL],items:[],toggle:!1},r=c[ngPliUtil.EFormioKey.TITLE_PANEL]),i.items.push({label:c[ngPliUtil.EFormioKey.LABEL],value:c[ngPliUtil.EFormioKey.KEY]})}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}null!==r&&o.push(i)}return o},t.getRequiredComponentsByData=function(e,n){var o=t.getRequiredComponents(e);if(n&&o)for(var r=0;r<o.length;r++){var i=o[r];if(utils.checkCondition(i,null,n,null,null)){var a=i[ngPliUtil.EFormioKey.KEY];(null!=n[a]&&null!=n[a]&&""!=n[a]||i.customConditional&&i.customConditional.includes("show"))&&(o.splice(r,1),r--)}else o.splice(r,1),r--}return o},t.getUniqueComponents=function(e){return t.getComponentsByFeature(e,[ngPliUtil.EFormioKey.UNIQUE],!0)},t.getRequiredComponents=function(e){return t.getComponentsByFeature(e,[ngPliUtil.EFormioKey.VALIDATE,ngPliUtil.EFormioKey.REQUIRED],!0)},t.getComponentsByFeature=function(e,n,o){var r=[];if(n&&n.length>0){var i=t.getComponents(e),a=n[0],s=n[n.length-1];if(i)for(var c=0;c<i.length;c++){var p=i[c],l=p;if(p[a])for(var d=0;d<n.length;d++){var u=n[d];if(!l[u])break;u===s?l[u]==o&&r.push(p):l=l[u]}}}return r},t.getComponents=function(e){return t.getComponentsByRecursion(e,"",null)},t.getComponentsByRecursion=function(e,n,o){var r,i,a=[];if(e)try{for(var s=__values(e),c=s.next();!c.done;c=s.next()){var p=c.value;if(p[ngPliUtil.EFormioKey.TYPE]!==ngPliUtil.EFormioKey.EDITGRID)if(p[ngPliUtil.EFormioKey.TYPE]===ngPliUtil.EFormioKey.PANEL&&(n=p[ngPliUtil.EFormioKey.TITLE]),void 0!==p[ngPliUtil.EFormioKey.COMPONENTS]||void 0!==p[ngPliUtil.EFormioKey.COLUMNS]){(u=this.resolveInheritanceConditional(o,p[ngPliUtil.EFormioKey.CONDITIONAL],p[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],p[ngPliUtil.EFormioKey.ID]))&&(o=u);var l=void 0!==p[ngPliUtil.EFormioKey.COMPONENTS]?p[ngPliUtil.EFormioKey.COMPONENTS]:p[ngPliUtil.EFormioKey.COLUMNS],d=t.getComponentsByRecursion(l,n,o);d&&(a=a.concat(d)),p[ngPliUtil.EFormioKey.ID]==o.id&&(o=void 0)}else{var u;if(p[ngPliUtil.EFormioKey.TYPE]!==ngPliUtil.EFormioKey.BUTTON&&p[ngPliUtil.EFormioKey.KEY]&&p[ngPliUtil.EFormioKey.LABEL])(u=this.resolveInheritanceConditional(o,p[ngPliUtil.EFormioKey.CONDITIONAL],p[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],p[ngPliUtil.EFormioKey.ID]))||(u=o),p[ngPliUtil.EFormioKey.CONDITIONAL]=u[ngPliUtil.EFormioKey.CONDITIONAL],p[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL]=u[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],p[ngPliUtil.EFormioKey.TITLE_PANEL]=n,a.push(p)}}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a},t.getComponentsWithEditGrids=function(e){return t.getComponentsByRecursionWithEditGrids(e,"",null)},t.getComponentsByRecursionWithEditGrids=function(e,n,o){var r,i,a=[];if(e)try{for(var s=__values(e),c=s.next();!c.done;c=s.next()){var p=c.value;if(p[ngPliUtil.EFormioKey.TYPE]===ngPliUtil.EFormioKey.PANEL&&(n=p[ngPliUtil.EFormioKey.TITLE]),void 0!==p[ngPliUtil.EFormioKey.COMPONENTS]||void 0!==p[ngPliUtil.EFormioKey.COLUMNS]){(u=this.resolveInheritanceConditional(o,p[ngPliUtil.EFormioKey.CONDITIONAL],p[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],p[ngPliUtil.EFormioKey.ID]))&&(o=u);var l=void 0!==p[ngPliUtil.EFormioKey.COMPONENTS]?p[ngPliUtil.EFormioKey.COMPONENTS]:p[ngPliUtil.EFormioKey.COLUMNS];p[ngPliUtil.EFormioKey.TYPE]===ngPliUtil.EFormioKey.EDITGRID&&(p[ngPliUtil.EFormioKey.TITLE_PANEL]=n,a.push(p));var d=t.getComponentsByRecursionWithEditGrids(l,n,o);d&&(a=a.concat(d)),p[ngPliUtil.EFormioKey.ID]==o.id&&(o=void 0)}else{var u;if(p[ngPliUtil.EFormioKey.TYPE]!==ngPliUtil.EFormioKey.BUTTON&&p[ngPliUtil.EFormioKey.KEY]&&p[ngPliUtil.EFormioKey.LABEL])(u=this.resolveInheritanceConditional(o,p[ngPliUtil.EFormioKey.CONDITIONAL],p[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],p[ngPliUtil.EFormioKey.ID]))||(u=o),p[ngPliUtil.EFormioKey.CONDITIONAL]=u[ngPliUtil.EFormioKey.CONDITIONAL],p[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL]=u[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],p[ngPliUtil.EFormioKey.TITLE_PANEL]=n,a.push(p)}}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a},t.resolveInheritanceConditional=function(t,e,n,o){return!t||n||e&&e[ngPliUtil.EFormioKey.WHEN]&&e[ngPliUtil.EFormioKey.EQ]||e&&e[ngPliUtil.EFormioKey.JSON]?{conditional:e,customConditional:n,id:o}:null},t.getEditGridKeyLabels=function(e){return t.getEditGridKeyLabelsByRecursion(e,"",null)},t.getEditGridKeyLabelsByRecursion=function(e,n,o){var r,i,a=[];if(e)try{for(var s=__values(e),c=s.next();!c.done;c=s.next()){var p=c.value;if(p[ngPliUtil.EFormioKey.TYPE]===ngPliUtil.EFormioKey.PANEL&&(n=p[ngPliUtil.EFormioKey.TITLE]),void 0!==p[ngPliUtil.EFormioKey.COMPONENTS]||void 0!==p[ngPliUtil.EFormioKey.COLUMNS]){var l=this.resolveInheritanceConditional(o,p[ngPliUtil.EFormioKey.CONDITIONAL],p[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],p[ngPliUtil.EFormioKey.ID]);l&&(o=l);var d=void 0!==p[ngPliUtil.EFormioKey.COMPONENTS]?p[ngPliUtil.EFormioKey.COMPONENTS]:p[ngPliUtil.EFormioKey.COLUMNS];if(p[ngPliUtil.EFormioKey.TYPE]==ngPliUtil.EFormioKey.EDITGRID)p[ngPliUtil.EFormioKey.TITLE_PANEL]=n,a.push(p);else{var u=t.getEditGridKeyLabelsByRecursion(d,n,o);u&&(a=a.concat(u)),p[ngPliUtil.EFormioKey.ID]==o.id&&(o=void 0)}}}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a},t.getComponentsIntoEditGrids=function(e,n){return t.getComponentsByRecursionIntoEditGrids(e,"",null,n,!1)},t.getComponentsByRecursionIntoEditGrids=function(e,n,o,r,i){var a,s,c=[];if(e)try{for(var p=__values(e),l=p.next();!l.done;l=p.next()){var d=l.value;if(d[ngPliUtil.EFormioKey.TYPE]===ngPliUtil.EFormioKey.PANEL&&(n=d[ngPliUtil.EFormioKey.TITLE]),void 0!==d[ngPliUtil.EFormioKey.COMPONENTS]||void 0!==d[ngPliUtil.EFormioKey.COLUMNS]){(y=this.resolveInheritanceConditional(o,d[ngPliUtil.EFormioKey.CONDITIONAL],d[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],d[ngPliUtil.EFormioKey.ID]))&&(o=y);var u=void 0!==d[ngPliUtil.EFormioKey.COMPONENTS]?d[ngPliUtil.EFormioKey.COMPONENTS]:d[ngPliUtil.EFormioKey.COLUMNS];if(d[ngPliUtil.EFormioKey.TYPE]===ngPliUtil.EFormioKey.EDITGRID&&d.key==r)if(i=!0,void 0!==d[ngPliUtil.EFormioKey.COMPONENTS]||void 0!==d[ngPliUtil.EFormioKey.COLUMNS]){var m=this.resolveInheritanceConditional(o,d[ngPliUtil.EFormioKey.CONDITIONAL],d[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],d[ngPliUtil.EFormioKey.ID]);m&&(o=m);var h=void 0!==d[ngPliUtil.EFormioKey.COMPONENTS]?d[ngPliUtil.EFormioKey.COMPONENTS]:d[ngPliUtil.EFormioKey.COLUMNS],g=t.getComponentsByRecursionIntoEditGrids(h,n,o,r,i);g&&(c=c.concat(g)),d&&o&&d[ngPliUtil.EFormioKey.ID]==o.id&&(o=void 0)}else if(d[ngPliUtil.EFormioKey.TYPE]!==ngPliUtil.EFormioKey.BUTTON&&d[ngPliUtil.EFormioKey.KEY]&&d[ngPliUtil.EFormioKey.LABEL]&&i){var f=this.resolveInheritanceConditional(o,d[ngPliUtil.EFormioKey.CONDITIONAL],d[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],d[ngPliUtil.EFormioKey.ID]);f||(f=o),d[ngPliUtil.EFormioKey.CONDITIONAL]=f[ngPliUtil.EFormioKey.CONDITIONAL],d[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL]=f[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],d[ngPliUtil.EFormioKey.TITLE_PANEL]=n,c.push(d)}var v=t.getComponentsByRecursionIntoEditGrids(u,n,o,r,i);v&&(c=c.concat(v)),d&&o&&d[ngPliUtil.EFormioKey.ID]==o.id&&(o=void 0)}else{var y;if(d[ngPliUtil.EFormioKey.TYPE]!==ngPliUtil.EFormioKey.BUTTON&&d[ngPliUtil.EFormioKey.KEY]&&d[ngPliUtil.EFormioKey.LABEL]&&i)(y=this.resolveInheritanceConditional(o,d[ngPliUtil.EFormioKey.CONDITIONAL],d[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],d[ngPliUtil.EFormioKey.ID]))||(y=o),d[ngPliUtil.EFormioKey.CONDITIONAL]=y[ngPliUtil.EFormioKey.CONDITIONAL],d[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL]=y[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],d[ngPliUtil.EFormioKey.TITLE_PANEL]=n,c.push(d)}}}catch(t){a={error:t}}finally{try{l&&!l.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}return c},t.createListDataByDataFormList=function(t,e){var n,o,r={},i={};if(t&&t.length>0){var a;r={},i={};try{for(var s=__values(t),c=s.next();!c.done;c=s.next())if((a=c.value).data){var p=e.find((function(t){return t.id==a.formId}));if(p){var l=TokenService.getKeyFormulario(p.title)+"_";for(var d in a.data)r[d]=a.data[d],i[l+d]=a.data[d]}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}return{listData:r,listDataByForm:i}},t.getPanelComponents=function(e){return t.getComponentsByPanel(e)},t.getComponentsByPanel=function(t){var e,n,o=[];if(t)try{for(var r=__values(t),i=r.next();!i.done;i=r.next()){var a=i.value;a[ngPliUtil.EFormioKey.TYPE]!==ngPliUtil.EFormioKey.EDITGRID&&a[ngPliUtil.EFormioKey.TYPE]===ngPliUtil.EFormioKey.PANEL&&o.push(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return o},t}(),SendApplicationService=function(){function SendApplicationService(t,e,n,o){this.environment=t,this.tokenService=e,this.emailService=n,this.interactionApplicationUserService=o,this.percentageSubject=new rxjs.BehaviorSubject(0)}return SendApplicationService.prototype.onChangePercentage=function(){return this.percentageSubject.asObservable()},SendApplicationService.prototype.setPercentage=function(t,e){if(t&&e){var n=t/e*100;this.percentageSubject.next(n)}else this.resetPercentage()},SendApplicationService.prototype.resetPercentage=function(){this.percentageSubject.next(0)},SendApplicationService.prototype.sendEmailMassively=function(t){var e=new ngPliUtil.Email;return e.addTo("pruebaconvo@ben.colfuturo.org"),e.setSubject("Envío de solicitud "+t.id),e.setBody("Cordial saludo, <br/>Hemos enviado la solicitud "+t.id),this.emailService.send(e)},SendApplicationService.prototype.sendEmail=function(t){var e=new ngPliUtil.Email;return e.addTo("pruebaconvo@ben.colfuturo.org"),e.setSubject("Envío de solicitud "+t.id),e.setBody("Cordial saludo, <br/>Has enviado la solicitud "+t.id),this.emailService.send(e)},SendApplicationService.prototype.saveInteraction=function(t,e,n,o){var r=new ngPliUtil.InteractionApplicationUser;return r.applicationId=t,r.promCodigo=e,n.pliCnfInteraction&&n.pliCnfInteraction.id&&(r.pliCnfInteractionId=n.pliCnfInteraction.id),n.pliCnfStatusFlow&&n.pliCnfStatusFlow.id&&(r.pliCnfStatusFlowId=n.pliCnfStatusFlow.id),n.id&&(r.pliCnfStatusFlowInteractionId=n.id),r.interactionStaticId=ngPliUtil.ETypeStaticInteraction.SEND_APPLICATION,r.pliUserId=ngPliUtil.AuthenticationUtil.getPliUsuario()?ngPliUtil.AuthenticationUtil.getPliUsuario().usuCodigo:null,r.positive=!0,r.observation=o||"Envío de solicitud",this.interactionApplicationUserService.save(r)},SendApplicationService.prototype.saveInteractionInformation=function(t,e,n){this.interactionApplicationUserService.save(t).subscribe((function(t){e(t)}),(function(t){console.error("ERROR - saveInteraction - interactionApplicationUserService.save ",t),n(t)}))},SendApplicationService.prototype.validate=function(t,e,n,o,r,i,a,s,c,p,l){var d,u,m=[];if(e&&e.length>0)for(var h=0;h<e.length;h++){var g=e[h],f=new ngPliUtil.SendApplication;f.applicationId=g.id;var v=[];if(t&&t.length&&g.stateId&&n&&n.length)try{for(var y=(d=void 0,__values(t)),C=y.next();!C.done;C=y.next()){var b=C.value;if(b.id==g.stateId){v=b;break}}}catch(t){d={error:t}}finally{try{C&&!C.done&&(u=y.return)&&u.call(y)}finally{if(d)throw d.error}}var S=this.getListFormsByStatus(v,n);f.listValidatedForm=this.getValidatedFormList(S,o,f.applicationId),f.listValidatedBudget=l?this.getValidatedBudgetSummarized(r,i,f.applicationId,v):this.getValidatedBudget(r,i,f.applicationId,v),f.listValidatedDocument=this.getValidatedDocument(v,a,s,g,o,p),f.validation=!f.listValidatedDocument.length&&!f.listValidatedBudget.length&&!f.listValidatedForm.length,m.push(f),c&&c(f,g,h,e.length)}return m},SendApplicationService.prototype.getListFormsByStatus=function(t,e){var n,o,r,i,a=[],s=t.listPliCnfStatusPageSection;if(s&&s.length)try{for(var c=__values(e),p=c.next();!p.done;p=c.next()){var l=p.value;try{for(var d=(r=void 0,__values(s)),u=d.next();!u.done;u=d.next()){if(u.value.idForm==l.id){a.push(l);break}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}}catch(t){n={error:t}}finally{try{p&&!p.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}return a},SendApplicationService.prototype.getValidatedDocument=function(currentStatus,listConfigurationDocument,listDocument,application,listDataForm,validateJustRequired){var e_4,_a,e_5,_b,e_6,_c,listValidatedDocument=[];if(listConfigurationDocument){var listConfigurationDocumentVisible=[],shouldValidateDocuments=!1,listPliCnfStatusPageSection=currentStatus.listPliCnfStatusPageSection;if(listPliCnfStatusPageSection&&listPliCnfStatusPageSection.length)try{for(var listPliCnfStatusPageSection_2=__values(listPliCnfStatusPageSection),listPliCnfStatusPageSection_2_1=listPliCnfStatusPageSection_2.next();!listPliCnfStatusPageSection_2_1.done;listPliCnfStatusPageSection_2_1=listPliCnfStatusPageSection_2.next()){var section=listPliCnfStatusPageSection_2_1.value;if(section.pliCnfPageSection)switch(section.pliCnfPageSection.keyLabel){case"documentos":shouldValidateDocuments=!0}}}catch(t){e_4={error:t}}finally{try{listPliCnfStatusPageSection_2_1&&!listPliCnfStatusPageSection_2_1.done&&(_a=listPliCnfStatusPageSection_2.return)&&_a.call(listPliCnfStatusPageSection_2)}finally{if(e_4)throw e_4.error}}if(!shouldValidateDocuments)return listValidatedDocument;if(listConfigurationDocument)try{for(var listConfigurationDocument_1=__values(listConfigurationDocument),listConfigurationDocument_1_1=listConfigurationDocument_1.next();!listConfigurationDocument_1_1.done;listConfigurationDocument_1_1=listConfigurationDocument_1.next()){var configurationDocument=listConfigurationDocument_1_1.value,visible=!0;if(configurationDocument.formula&&configurationDocument.formula.length){var formula="";try{var data={statusname:application.stateName};if(listDataForm)try{for(var listDataForm_1=(e_6=void 0,__values(listDataForm)),listDataForm_1_1=listDataForm_1.next();!listDataForm_1_1.done;listDataForm_1_1=listDataForm_1.next()){var dataForm=listDataForm_1_1.value;for(var property in dataForm.data)data[property.toLowerCase()]=dataForm.data[property]}}catch(t){e_6={error:t}}finally{try{listDataForm_1_1&&!listDataForm_1_1.done&&(_c=listDataForm_1.return)&&_c.call(listDataForm_1)}finally{if(e_6)throw e_6.error}}formula=this.tokenService.replaceTokensFromListObject(configurationDocument.name,configurationDocument.formula,data);var result=eval(formula);!0!==result&&(visible=!1)}catch(t){visible=!1}}visible&&listConfigurationDocumentVisible.push(configurationDocument)}}catch(t){e_5={error:t}}finally{try{listConfigurationDocument_1_1&&!listConfigurationDocument_1_1.done&&(_b=listConfigurationDocument_1.return)&&_b.call(listConfigurationDocument_1)}finally{if(e_5)throw e_5.error}}if(listConfigurationDocumentVisible)for(var i=0;i<listConfigurationDocumentVisible.length;i++){var configurationDocument=listConfigurationDocumentVisible[i],document_1=this.getDocumentByConfigurationId(configurationDocument.id,listDocument,application.id);validateJustRequired?(!document_1||document_1&&0==document_1.listArchive.length||this.automaticDocumentsValidated(configurationDocument,listDataForm,document_1))&&configurationDocument.required&&this.fillListValidateDocumentDefault(listValidatedDocument,application,configurationDocument):document_1?document_1.state==ngPliUtil.EDocumentState.PENDIENTE&&listValidatedDocument.push(document_1):this.fillListValidateDocumentDefault(listValidatedDocument,application,configurationDocument)}}return listValidatedDocument},SendApplicationService.prototype.fillListValidateDocumentDefault=function(t,e,n){var o=new ngPliUtil.Document;o.applicationId=e.id,o.promCodigo=n.promCodigo,o.state=ngPliUtil.EDocumentState.PENDIENTE,o.configurationDocumentId=n.id,o.listArchive=[],t.push(o)},SendApplicationService.prototype.getDocumentByConfigurationId=function(t,e,n){var o,r;if(e)try{for(var i=__values(e),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.configurationDocumentId===t&&s.applicationId===n)return s}}catch(t){o={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return null},SendApplicationService.prototype.getValidatedBudgetApplication=function(t,e,n,o){var r,i;if(n)try{for(var a=__values(n),s=a.next();!s.done;s=a.next()){var c=s.value;if(c.tag==e&&t.cpreCodigo==c.budgetSetupId&&c.applicationId==o)return this.validateBudget(c,t,e)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return this.validateBudget(null,t,e)},SendApplicationService.prototype.validateBudget=function(t,e,n){return t&&t.summary&&t.summary.budgetTotal?(n===ngPliUtil.EBudgetBuildType.financing||n===ngPliUtil.EBudgetBuildType.mixed)&&t.summary.budgetTotal>e.cpreMontoTotal?{budget:t,type:n,budgetSetting:e,error:ngPliUtil.EBudgetError.OVERCOME_MAXIMUM_AMOUNT}:n!==ngPliUtil.EBudgetBuildType.financing||t.financingStart&&t.financingEnd?null:{budget:t,type:n,budgetSetting:e,error:ngPliUtil.EBudgetError.FINANCING_DATES}:{budget:t,type:n,budgetSetting:e,error:ngPliUtil.EBudgetError.NO_OBJECT}},SendApplicationService.prototype.validateSummarizedBudget=function(t,e,n){return n&&n.summary&&n.summary.budgetTotal?null:{budget:n,type:e,budgetSetting:t,error:ngPliUtil.EBudgetError.NO_OBJECT}},SendApplicationService.prototype.validateCompleteBudget=function(t,e,n){return this.getValidatedBudget(t,e,n)},SendApplicationService.prototype.getValidatedBudget=function(t,e,n,o){var r,i,a,s,c=[];if(t){var p=!1,l=!1;if(o){var d=o.listPliCnfStatusPageSection;if(d&&d.length)try{for(var u=__values(d),m=u.next();!m.done;m=u.next()){var h=m.value;if(h.pliCnfPageSection)switch(h.pliCnfPageSection.keyLabel){case"presupuesto.total":p=!0;break;case"presupuesto.financiacion":l=!0}}}catch(t){r={error:t}}finally{try{m&&!m.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}}else p=!0,l=!0;try{for(var g=__values(t),f=g.next();!f.done;f=g.next()){var v=f.value;if(v.pliTipoPresupuesto.tpresCodigo!=ngPliUtil.ETipoPresupuesto.GENERAL){var y=this.getValidatedBudgetApplication(v,ngPliUtil.EBudgetBuildType.total,e,n);if(y&&p&&c.push(y),v.cpreEsFondosPropios){var C=this.getValidatedBudgetApplication(v,ngPliUtil.EBudgetBuildType.financing,e,n);C&&l&&c.push(C)}}}}catch(t){a={error:t}}finally{try{f&&!f.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}}return c},SendApplicationService.prototype.getValidatedFormList=function(t,e,n){var o,r,i,a,s,c,p=[];if(t)try{for(var l=__values(t),d=l.next();!d.done;d=l.next()){var u=d.value,m=this.getErrorsByFormIdAndApplicationId(e,u.id,n);if(m&&m.length){var h=FormioUtil.getComponents(u.components),g=[];try{for(var f=(i=void 0,__values(m)),v=f.next();!v.done;v=f.next()){var y=v.value;if(y&&y.component&&y.component.key&&h)try{for(var C=(s=void 0,__values(h)),b=C.next();!b.done;b=C.next()){var S=b.value;if(S.key==y.component.key){g.push(S);break}}}catch(t){s={error:t}}finally{try{b&&!b.done&&(c=C.return)&&c.call(C)}finally{if(s)throw s.error}}}}catch(t){i={error:t}}finally{try{v&&!v.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}if(g&&g.length){var _=FormioUtil.getFormattedComponentsByPanel(g);p.push({id:u.id,name:u.title,panels:_,toggle:!1})}}else{var T=this.getDataByFormIdAndApplicationId(e,u.id,n);if((h=FormioUtil.getRequiredComponentsByData(u.components,T))&&h.length){_=FormioUtil.getFormattedComponentsByPanel(h);p.push({id:u.id,name:u.title,panels:_,toggle:!1})}}}}catch(t){o={error:t}}finally{try{d&&!d.done&&(r=l.return)&&r.call(l)}finally{if(o)throw o.error}}return p},SendApplicationService.prototype.getErrorsByFormIdAndApplicationId=function(t,e,n){var o,r;if(t&&e&&n)try{for(var i=__values(t),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.formId==e&&s.applicationId==n)return s.errors}}catch(t){o={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return null},SendApplicationService.prototype.getDataByFormIdAndApplicationId=function(t,e,n){var o,r;if(t&&e&&n)try{for(var i=__values(t),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.formId==e&&s.applicationId==n)return s.data}}catch(t){o={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return null},SendApplicationService.prototype.getValidatedBudgetSummarized=function(t,e,n,o){var r,i,a=[];if(t){var s=!1;if(o){var c=o.listPliCnfStatusPageSection;if(c&&c.length)try{for(var p=__values(c),l=p.next();!l.done;l=p.next()){var d=l.value;if(d.pliCnfPageSection)switch(d.pliCnfPageSection.keyLabel){case ngPliUtil.ECnfPageSection.presupuestoResumido:s=!0}}}catch(t){r={error:t}}finally{try{l&&!l.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}}else s=!0;var u=this.validateSummarizedBudget(t[0],ngPliUtil.EBudgetBuildType.total,e[0]);u&&s&&a.push(u)}return a},SendApplicationService.prototype.automaticDocumentsValidated=function(configDocument,listDataForm,document){var e_17,_a;if(configDocument.formulaValidateMultiple&&configDocument.formulaValidateMultiple.length>0){var data={statusname:""};if(listDataForm)try{for(var listDataForm_4=__values(listDataForm),listDataForm_4_1=listDataForm_4.next();!listDataForm_4_1.done;listDataForm_4_1=listDataForm_4.next()){var dataForm=listDataForm_4_1.value;for(var property in dataForm.data)data[property.toLowerCase()]=dataForm.data[property]}}catch(t){e_17={error:t}}finally{try{listDataForm_4_1&&!listDataForm_4_1.done&&(_a=listDataForm_4.return)&&_a.call(listDataForm_4)}finally{if(e_17)throw e_17.error}}var formula=this.tokenService.replaceTokensFromListObject(configDocument.name,configDocument.formulaValidateMultiple,data),result=eval(formula);if(result){var resultArray=JSON.parse(result);if(resultArray&&resultArray.length>0&&(!document||document.listArchive.length!==resultArray.length))return!0}}return!1},SendApplicationService.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:TokenService},{type:EmailService},{type:InteractionApplicationUserService}]},SendApplicationService.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new SendApplicationService(core.ɵɵinject("environment"),core.ɵɵinject(TokenService),core.ɵɵinject(EmailService),core.ɵɵinject(InteractionApplicationUserService))},token:SendApplicationService,providedIn:"root"}),SendApplicationService=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,TokenService,EmailService,InteractionApplicationUserService])],SendApplicationService),SendApplicationService}(),SesionFormService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"sesionForm/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"sesionForm/save",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SesionService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByLogin=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"sesion/getByLogin",{params:(new http.HttpParams).set("login",t)})},t.prototype.getEmailByLogin=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"sesion/getEmailByLogin",{params:(new http.HttpParams).set("login",t)})},t.prototype.getHasSession=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"sesion/hasSession",{params:(new http.HttpParams).set("login",t)})},t.prototype.getInactiveUsers=function(){return this.httpClient.get(this.environment.host.backend.configuration+"sesion/inactive-users")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SponsorshipLetterService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})},this.subjectValidateSponsorshipLetter=new rxjs.Subject}return t.prototype.getListByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"sponsorship-letter/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"sponsorship-letter/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"sponsorship-letter/delete",{params:(new http.HttpParams).set("id",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"sponsorship-letter/save",t,this.headerJson)},t.prototype.getHtmlByNumberAndPromCodigo=function(t,e,n){return this.httpClient.get(this.environment.host.backend.configuration+"sponsorship-letter/getHtmlByNumberAndPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("id",n.toString()).set("number",e)})},t.prototype.getSubjectValidateSponsorshipLetter=function(){return this.subjectValidateSponsorshipLetter.asObservable()},t.prototype.setSubjectValidateSponsorshipLetter=function(t){void 0===t&&(t=!1),this.subjectValidateSponsorshipLetter.next(t)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"sponsorship-letter/saveAll",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),UserService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAll=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/usuario/getAll",{params:(new http.HttpParams).set("cargarListas",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfBudgetService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.removeFromCache=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfBudget/removeFromCache",{params:(new http.HttpParams).set("cpreCode",t.toString()).set("promCode",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SnapshotTokenComponent=function(t){function e(e,n,o,r){var i=t.call(this,n,e)||this;return i.cdRef=e,i.commonService=n,i.toastrService=o,i.tokenService=r,i}return __extends(e,t),e.prototype.labelSnapshot=function(t){return"${"+TokenService.getKeySnapshot(t)+"}"},e.prototype.ngOnInit=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:return t.prototype.ngOnInit.call(this),this.getTokens(),e=this,[4,this.tokenService.getAllType().toPromise()];case 1:return e.types=n.sent(),[2]}}))}))},e.prototype.initForm=function(t){this.tokenSelected=null==t?new ngPliUtil.PliCnfSnapshotToken:Object.assign(new ngPliUtil.PliCnfSnapshotToken,JSON.parse(JSON.stringify(t))),this.tokenSelected.promCodigo||(this.tokenSelected.promCodigo=this.promCodigo),this.controlName=new forms.FormControl(this.tokenSelected.name,forms.Validators.required),this.controlFormula=new forms.FormControl(this.tokenSelected.formula,forms.Validators.required),this.controlType=new forms.FormControl(this.tokenSelected.type,forms.Validators.required),this.frmToken=new forms.FormGroup({controlName:this.controlName,controlFormula:this.controlFormula,controlType:this.controlType}),this.showModal=!0},e.prototype.delete=function(t){var e=this;confirm("¿Está seguro que desea eliminar el token "+t.name+"?")&&this.tokenService.delete(t.id).subscribe((function(t){e.toastrService.success("El token fué eliminada exitosamente"),e.getTokens()}),(function(t){e.toastrService.error("Error al intentar eliminar el token")}))},e.prototype.getTokens=function(){var t=this;this.tokenService.getAllByPromCode(this.promCodigo).subscribe((function(e){t.tokens=e}),(function(e){console.log("Error getTokenCalculated -getListByPromCodigo",e),t.toastrService.error("Error el formulario")}))},e.prototype.resolveKeyCalculatedToken=function(){return ngPliUtil.UtilString.replaceAccentSpacesOthers(this.tokenSelected.name)},e.prototype.onCloseModal=function(){this.showModal=!1},e.prototype.save=function(){var t=this;this.isFormValid(this.frmToken)&&this.isValid()&&this.tokenService.save(this.tokenSelected).subscribe((function(e){t.toastrService.success("Se ha guardado exitosamente ","Guardado exitoso!"),t.tokenSelected=null,t.getTokens(),t.onCloseModal()}),(function(e){console.error(e),t.toastrService.error("Error al intentar guardar el token","Error!")}))},e.prototype.isValid=function(){var t=this,e=this.tokens.find((function(e){return ngPliUtil.UtilString.replaceAccentSpacesOthers(e.name)===ngPliUtil.UtilString.replaceAccentSpacesOthers(t.tokenSelected.name)&&(!t.tokenSelected.id||t.tokenSelected.id!==e.id)}));return!e||(this.toastrService.error("El token "+e.name+" ya existe","Alerta!"),!1)},e.ctorParameters=function(){return[{type:core.ChangeDetectorRef},{type:CommonService},{type:ngxToastr.ToastrService},{type:PliCnfSnapshotTokenServices}]},__decorate([core.Input(),__metadata("design:type",Number)],e.prototype,"promCodigo",void 0),e=__decorate([core.Component({selector:"pli-snapshot-token",template:'<h4 class="no-margin-top">\r\n Tokens Snapshot\r\n</h4>\r\n<p-table [value]="tokens" [responsive]="true">\r\n <ng-template pTemplate="header">\r\n <tr class="text-align-center">\r\n <th class="text-align-center" width="40%">Nombre</th>\r\n <th class="text-align-center">Formula</th>\r\n <th class="text-align-center">Tipo</th>\r\n <th class="text-align-center">Creado</th>\r\n <th class="text-align-center">Modificado</th>\r\n <th class="text-align-center">Acciones</th>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate="body" let-token>\r\n <tr>\r\n <td>\r\n <button\r\n type="button"\r\n (click)="copyMessage(labelSnapshot(token))"\r\n style="margin-right: 8px;"\r\n title="{{ labelSnapshot(token) }}"\r\n >\r\n <span class="fa fa-clipboard"></span>\r\n </button>\r\n {{ token.name }}\r\n </td>\r\n <td class="cut-line">{{ token.formula }}</td>\r\n <td class="cut-line">{{ token.type.name }}</td>\r\n <td>{{ token.createdAt | date: \'dd MMM yyyy\' | lowercase }}</td>\r\n <td>{{ token.modifiedAt | date: \'dd MMM yyyy\' | lowercase }}</td>\r\n <td>\r\n <div class="btn-group" role="group">\r\n <button\r\n type="button"\r\n class="btn btn-default"\r\n (click)="initForm(token)"\r\n pliAuthorityDirective\r\n [externalAllowed]="false"\r\n >\r\n Editar\r\n </button>\r\n <button\r\n type="button"\r\n class="btn btn-default dropdown-toggle"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n >\r\n <span class="caret"></span>\r\n </button>\r\n <ul class="dropdown-menu">\r\n <li>\r\n <a\r\n href="Javascript:;"\r\n (click)="delete(token)"\r\n pliAuthorityDirective\r\n [authorities]="[p(\'ROLE_TOKENS_ELIMINAR\')]"\r\n [externalAllowed]="false"\r\n >Eliminar</a\r\n >\r\n </li>\r\n </ul>\r\n </div>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n</p-table>\r\n<div class="text-align-right" style="padding: .75rem 1.25rem;">\r\n <button\r\n type="button"\r\n class="btn btn-primary"\r\n (click)="initForm(null)"\r\n >\r\n Agregar nuevo\r\n </button>\r\n</div>\r\n\r\n<p-dialog\r\n header="Snapshot Token"\r\n [(visible)]="showModal"\r\n [modal]="true"\r\n (onHide)="onCloseModal()"\r\n [contentStyle]="{\r\n\t\twidth: \'400px\',\r\n\t\t\'overflow-y\': \'auto\',\r\n\t\t\'min-height\': \'500px\',\r\n\t\t\'max-height\': \'500px\',\r\n\t\t\'text-align\': \'left\'\r\n\t}"\r\n height="500px"\r\n width="400px"\r\n dismissableMask="true"\r\n>\r\n <form [formGroup]="frmToken" (ngSubmit)="save()" *ngIf="tokenSelected">\r\n <div class="row">\r\n <div class="col-md-12">\r\n <div class="row">\r\n <div class="col-sm-12 col-md-12">\r\n <div class="form-group required">\r\n <label for="name" class="form-control-label">Nombre</label>\r\n <input\r\n type="input"\r\n class="form-control"\r\n name="name"\r\n id="name"\r\n placeholder="Nombre"\r\n formControlName="controlName"\r\n [(ngModel)]="tokenSelected.name"/>\r\n <div class="form-control-error">\r\n <small *ngIf="hasError(controlName, \'required\')">Nombre es requerido</small>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="col-sm-12 col-md-12">\r\n <div class="form-group required">\r\n <label for="type" class="form-control-label">Tipo</label>\r\n <select\r\n name="type"\r\n id="type"\r\n class="form-control"\r\n formControlName="controlType"\r\n [(ngModel)]="tokenSelected.type.id">\r\n <option value="">-- Seleccione opción</option>\r\n <option *ngFor="let type of types" [value]="type.id">{{ type.name }}</option>\r\n </select>\r\n <div class="form-control-error">\r\n <small *ngIf="hasError(controlType, \'required\')">Tipo de token requerido</small>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="col-sm-12 col-md-12">\r\n <div class="form-group required">\r\n <label class="form-control-label">Llave:</label>&nbsp;&nbsp;\r\n <span style="font-weight: bold;"> {{resolveKeyCalculatedToken()}}</span>\r\n </div>\r\n </div>\r\n <div class="col-sm-12 col-md-12">\r\n <div class="form-group required">\r\n <label for="formula" class="form-control-label"\r\n >Formula</label\r\n >\r\n <textarea\r\n cols="150"\r\n rows="4"\r\n class="form-control"\r\n name="formula"\r\n id="formula"\r\n formControlName="controlFormula"\r\n [(ngModel)]="tokenSelected.formula"\r\n ></textarea>\r\n <div class="form-control-error">\r\n <small *ngIf="hasError(controlFormula, \'required\')"\r\n >Fórmula es requerida</small\r\n >\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="card-footer text-align-right">\r\n <button type="button" (click)="onCloseModal()" class="btn btn-link">\r\n Cancelar\r\n </button>\r\n <button\r\n type="submit"\r\n class="btn btn-success"\r\n >\r\n Guardar\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n</p-dialog>\r\n\r\n\r\n'}),__metadata("design:paramtypes",[core.ChangeDetectorRef,CommonService,ngxToastr.ToastrService,PliCnfSnapshotTokenServices])],e)}(CommonListsComponent),BudgetSimulationService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.PREFIX="budget_simulation/",this.PREFIX_BUDGET="budget/",this.URLS={findByPromCodigo:this.PREFIX+"find/prom_codigo",findByApplicationId:this.PREFIX+"find/application",save:this.PREFIX+"save",saveAll:this.PREFIX+"save_all",findById:this.PREFIX+"find",findByApplications:this.PREFIX+"find/applications",getBudgetSimulatorCalculation:this.PREFIX_BUDGET+"getBudgetSimulatorCalculation"},this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+this.URLS.findByPromCodigo,{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getByApplicationId=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+this.URLS.findByApplicationId,{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+this.URLS.findById,{params:(new http.HttpParams).set("id",t)})},t.prototype.getByApplications=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+this.URLS.findByApplications,t,this.headerJson)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+this.URLS.save,t,this.headerJson)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+this.URLS.saveAll,t,this.headerJson)},t.prototype.getBudgetSimulatorCalculation=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+this.URLS.getBudgetSimulatorCalculation,t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfAcuityFieldsService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.get=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfAcuityFields/get")},t.prototype.getPliCnfAcuityFieldsByOwnerId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfAcuityFields/getPliCnfAcuityFieldsByOwnerId",{params:(new http.HttpParams).set("ownerId",String(t))})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfAcuityFields/save",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),GuaranteeService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})},this.subjectValidateSignDocument=new rxjs.Subject}return t.prototype.sendNotificationToCodebtors=function(t,e){var n={application:t,codebtor:e};return this.httpClient.post(this.environment.host.backend.frontoffice+"guarantee/sendNotificationToCodebtor",n,this.headerJson)},t.prototype.saveGuaranteeDocumentsGenerated=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"guarantee/saveGuaranteeDocumentsGenerated?applicationId="+t,e)},t.prototype.verifyTransaction=function(t){var e={headers:new http.HttpHeaders({apiKey:this.environment.ado.key,returnDocuments:"true"})};return this.httpClient.get(this.environment.ado.url+"api/"+this.environment.ado.projectName+"/Validation/"+t+"?returnImages=false",e)},t.prototype.getSubjectValidateSignDocument=function(){return this.subjectValidateSignDocument.asObservable()},t.prototype.setSubjectValidateSignDocument=function(t){void 0===t&&(t=!1),this.subjectValidateSignDocument.next(t)},t.prototype.save=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"guarantee/save",e,{params:(new http.HttpParams).set("applicationId",String(t))})},t.prototype.saveInitGuarantee=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"guarantee/saveInitGuarantee",null,{params:(new http.HttpParams).set("applicationId",String(t))})},t.prototype.saveGuaranteeCalculated=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"guarantee/saveGuaranteeCalculated",e,{params:(new http.HttpParams).set("applicationId",String(t))})},t.prototype.saveGuaranteeCalculatedByAppList=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"guarantee/saveGuaranteeCalculatedByAppList",{guarantee:e,lApplicationId:t})},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.frontoffice+"guarantee/delete",{params:(new http.HttpParams).set("applicationId",String(t))})},t.prototype.verifyStatusTransactionId=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"integrationADO/verifyStatus",{params:(new http.HttpParams).set("transactionId",t)})},t.prototype.sendFormWithSignDocuments=function(t,e,n,o,r,i){return new Promise((function(a,s){try{var c=document.createElement("form");c.method="post",c.action=i+"validar-persona";var p={callback:r,key:n,projectName:o,product:2,Parameters:'{"applicationId":"'+t+'","promCodigo":"'+e+'"}'};for(var l in p)if(p.hasOwnProperty(l)){var d=document.createElement("input");d.type="hidden",d.name=l,d.value=p[l],c.appendChild(d)}document.body.appendChild(c),c.submit(),a(t)}catch(t){s(t)}}))},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),CreditStudyService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})},this.creditStudySubjectValidation=new rxjs.Subject}return t.prototype.getCreditStudySubjectValidation=function(){return this.creditStudySubjectValidation.asObservable()},t.prototype.setCreditStudySubjectValidation=function(t,e){this.creditStudySubjectValidation.next({isComplete:t,pageSectionKey:e})},t.prototype.getCreditStudyByApplicationId=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getCreditStudy",{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.getListCodebtors=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getCodebtors",{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.getCodebtorByIdentification=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getCodebtorByIdentification",{params:(new http.HttpParams).set("applicationId",t).set("identification",e)})},t.prototype.getCodebtorByApplicationIdAndIdentification=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getCodebtorByApplicationIdAndIdentification",{params:(new http.HttpParams).set("applicationId",t).set("identification",e)})},t.prototype.saveCodebtorDocument=function(t,e,n){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveCodebtorDocument",n,{params:(new http.HttpParams).set("applicationId",t).set("identification",e),headers:this.headerJson.headers})},t.prototype.saveSelectedReviewerDocument=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveSelectedReviewerDocument",e,{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.saveCodebtorResponsabilitiesAnswer=function(t,e,n){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveCodebtorResponsabilitiesAnswer",{},{params:(new http.HttpParams).set("applicationId",t).set("identification",e).set("answer",n.toString()),headers:this.headerJson.headers})},t.prototype.removeCodebtorResponsabilitiesAnswer=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/removeCodebtorResponsabilitiesAnswer",{},{params:(new http.HttpParams).set("applicationId",t).set("identification",e),headers:this.headerJson.headers})},t.prototype.saveCodebtorHabeasDataAnswer=function(t,e,n){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveCodebtorHabeasDataAnswer",{},{params:(new http.HttpParams).set("applicationId",t).set("identification",e).set("answer",n.toString()),headers:this.headerJson.headers})},t.prototype.saveCreditReviewerDocument=function(t,e,n){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveCreditReviewerDocument",n,{params:(new http.HttpParams).set("applicationId",t).set("identification",e),headers:this.headerJson.headers})},t.prototype.getSelectedCreditReviewerDocuments=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getSelectedCreditReviewerDocuments",{params:(new http.HttpParams).set("applicationId",t.toString())})},t.prototype.getSelectedCreditReviewerDocumentByConfigurationDocumentId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getSelectedCreditReviewerDocumentByConfigurationDocumentId",{params:(new http.HttpParams).set("applicationId",t.toString()).set("configurationDocumentId",e.toString())})},t.prototype.getCodebtorDocuments=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getCodebtorDocuments",{params:(new http.HttpParams).set("applicationId",t.toString()).set("identification",e.toString())})},t.prototype.getCodebtorDocumentByConfigurationDocumentId=function(t,e,n){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getCodebtorDocumentByConfigurationDocumentId",{params:(new http.HttpParams).set("applicationId",t.toString()).set("identification",e.toString()).set("configurationDocumentId",n.toString())})},t.prototype.getCodebtorCreditReviewerDocuments=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getCodebtorCreditReviewerDocuments",{params:(new http.HttpParams).set("applicationId",t.toString()).set("identification",e.toString())})},t.prototype.getCodebtorCreditReviewerDocumentByConfigurationDocumentId=function(t,e,n){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getCodebtorCreditReviewerDocumentByConfigurationDocumentId",{params:(new http.HttpParams).set("applicationId",t.toString()).set("identification",e.toString()).set("configurationDocumentId",n.toString())})},t.prototype.saveCodebtorCreditReviewerObservation=function(t,e,n){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveCodebtorCreditReviewerObservation",n,{params:(new http.HttpParams).set("applicationId",t).set("identification",e),headers:this.headerJson.headers})},t.prototype.saveCodebtorFormData=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveCodebtorFormData",e,{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.updateCodebtorState=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/updateCodebtorState",e,{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.updateCompletedFlag=function(t,e,n){return this.httpClient.put(this.environment.host.backend.frontoffice+"creditStudy/updateCompletedFlag",t,{params:(new http.HttpParams).set("completed",e.toString()).set("idFlag",n.toString()),headers:this.headerJson.headers})},t.prototype.acceptConsultation=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/acceptConsultation",t,{params:(new http.HttpParams).set("response",e.toString()),headers:this.headerJson.headers})},t.prototype.saveCodebtor=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveCodebtor",e,{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.saveCodebtorCheckSum=function(t,e){return this.httpClient.put(this.environment.host.backend.frontoffice+"creditStudy/saveCodebtorCheckSum",e,{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.saveAllCodebtors=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveAllCodebtors",e,{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.codebtorsSendInitialEmail=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/codebtorsSendInitialEmail",null,{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.saveBeneficiaryCreditReviewerObservation=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveBeneficiaryCreditReviewerObservation",e,{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.getBeneficiaryCreditReviewerObservation=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getBeneficiaryCreditReviewerObservation",{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.acceptConsultationCodebtor=function(t,e,n){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/acceptConsultationCodebtor",t,{params:(new http.HttpParams).set("response",n.toString()).set("codebtorIdentification",e.toString()),headers:this.headerJson.headers})},t.prototype.enableCodebtor=function(t,e,n){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/enableCodebtor",n,{params:(new http.HttpParams).set("applicationId",t).set("codebtor",e),headers:this.headerJson.headers})},t.prototype.completeCreditStudyInfo=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/completeCreditStudyInfo",null,{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.getApprovedCodebtors=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getApprovedCodebtors",{params:(new http.HttpParams).set("applicationId",String(t)).set("promCodigo",String(e))})},t.prototype.getApprovedCodebtorsByAppId=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/getApprovedCodebtorsByAppId",t,{params:(new http.HttpParams).set("promCodigo",e.toString())})},t.prototype.checkCreditStudyFinalStatus=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/checkCreditStudyFinalStatus",{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.updateCreditStudyDocuments=function(t){return this.httpClient.put(this.environment.host.backend.frontoffice+"creditStudy/updateCreditStudyDocuments",t,{headers:this.headerJson.headers})},t.prototype.externalReviewerRejectCreditStudy=function(t,e,n){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/externalReviewerRejectCreditStudy",n,{params:(new http.HttpParams).set("applicationId",t).set("promCodigo",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),GuaranteeDocumentService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.generateDocument=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"guaranteeDocument/generateDocument",t)},t.prototype.updateDocuments=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"guaranteeDocument/updateDocuments",t)},t.prototype.getDocuments=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"guaranteeDocument/getDocuments",{params:(new http.HttpParams).set("applicationId",String(t))})},t.prototype.getStatusNameByIdentification=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"guaranteeDocument/getStatusNameByApplicationIdAndIdentification",{params:(new http.HttpParams).set("applicationId",String(t)).set("identification",String(e))})},t.prototype.deleteDocuments=function(t){return this.httpClient.delete(this.environment.host.backend.frontoffice+"guaranteeDocument/deleteDocuments",{params:(new http.HttpParams).set("applicationId",String(t))})},t.prototype.saveSignatureProcessStarted=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"guaranteeDocument/saveSignatureProcessStarted",e,{params:(new http.HttpParams).set("applicationId",String(t))})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),GuaranteeTokenComponent=function(t){function e(e,n,o,r){var i=t.call(this,n,e)||this;return i.cdRef=e,i.commonService=n,i.toastrService=o,i.pliCnfGuaranteeTokenService=r,i.lGuaranteeTokens=[],i}return __extends(e,t),e.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this),this.getTokenGuarantee()},e.prototype.labelGuarantee=function(t){return"${"+TokenService.getKeyGuarantee(t)+"}"},e.prototype.getTokenGuarantee=function(){var t=this;this.pliCnfGuaranteeTokenService.getAllByPromCodigo(this.promCodigo).subscribe((function(e){t.lGuaranteeTokens=e}),(function(e){t.toastrService.error("Error al obtener los token de garantias","Error")}))},e.prototype.initForm=function(t){this.tokenSelected=null==t?new ngPliUtil.PliCnfGuaranteeToken:Object.assign(new ngPliUtil.PliCnfGuaranteeToken,JSON.parse(JSON.stringify(t))),this.tokenSelected.promCodigo||(this.tokenSelected.promCodigo=this.promCodigo),this.controlName=new forms.FormControl(this.tokenSelected.name,forms.Validators.required),this.controlFormula=new forms.FormControl(this.tokenSelected.formula,forms.Validators.required),this.frmToken=new forms.FormGroup({controlName:this.controlName,controlFormula:this.controlFormula}),this.showModal=!0},e.prototype.save=function(){var t=this;this.isFormValid(this.frmToken)&&this.isValid()&&this.pliCnfGuaranteeTokenService.save(this.tokenSelected).subscribe((function(e){t.getTokenGuarantee(),t.onCloseModal(),t.toastrService.success("Se ha guardado exitosamente ","Guardado exitoso!"),t.tokenSelected=null}),(function(e){t.toastrService.error("Error al intentar guardar el token","Error")}))},e.prototype.isValid=function(){var t=this,e=this.lGuaranteeTokens.find((function(e){return ngPliUtil.UtilString.replaceAccentSpacesOthers(e.name)===ngPliUtil.UtilString.replaceAccentSpacesOthers(t.tokenSelected.name)&&(!t.tokenSelected.id||t.tokenSelected.id!==e.id)}));return!e||(this.toastrService.error("El token "+e.name+" ya existe","Alerta!"),!1)},e.prototype.onCloseModal=function(){this.showModal=!1},e.prototype.delete=function(t){var e=this;confirm("¿Está seguro que desea eliminar el token "+t.name+"?")&&this.pliCnfGuaranteeTokenService.delete(t.id).subscribe((function(t){e.getTokenGuarantee(),e.toastrService.success("El token fué eliminada exitosamente","Exito!")}),(function(t){e.toastrService.error("Error al intentar eliminar el token","Error")}))},e.prototype.resolveKeyCalculatedToken=function(){return ngPliUtil.UtilString.replaceAccentSpacesOthers(this.tokenSelected.name)},e.ctorParameters=function(){return[{type:core.ChangeDetectorRef},{type:CommonService},{type:ngxToastr.ToastrService},{type:PliCnfGuaranteeTokenService}]},__decorate([core.Input(),__metadata("design:type",Number)],e.prototype,"promCodigo",void 0),e=__decorate([core.Component({selector:"pli-guarantee-token",template:'<h4 class="no-margin-top">\r\n\tTokens Garantias\r\n</h4>\r\n<p-table [value]="lGuaranteeTokens" [responsive]="true">\r\n\t<ng-template pTemplate="header">\r\n\t\t<tr class="text-align-center">\r\n\t\t\t<th class="text-align-center" width="40%">Nombre</th>\r\n\t\t\t<th class="text-align-center">Formula</th>\r\n\t\t\t<th class="text-align-center">Creado</th>\r\n\t\t\t<th class="text-align-center">Modificado</th>\r\n\t\t\t<th class="text-align-center">Acciones</th>\r\n\t\t</tr>\r\n\t</ng-template>\r\n\t<ng-template pTemplate="body" let-token>\r\n\t\t<tr>\r\n\t\t\t<td>\r\n\t\t\t\t<button\r\n\t\t\t\t\ttype="button"\r\n\t\t\t\t\t(click)="copyMessage(labelGuarantee(token))"\r\n\t\t\t\t\tstyle="margin-right: 8px;"\r\n\t\t\t\t\ttitle="{{ labelGuarantee(token) }}"\r\n\t\t\t\t>\r\n\t\t\t\t\t<span class="fa fa-clipboard"></span>\r\n\t\t\t\t</button>\r\n\t\t\t\t{{ token.name }}\r\n\t\t\t</td>\r\n\t\t\t<td class="cut-line">{{ token.formula }}</td>\r\n\t\t\t<td>{{ token.createdAt | date: \'dd MMM yyyy\' | lowercase }}</td>\r\n\t\t\t<td>{{ token.modifiedAt | date: \'dd MMM yyyy\' | lowercase }}</td>\r\n\t\t\t<td>\r\n\t\t\t\t<div class="btn-group" role="group">\r\n\t\t\t\t\t<button\r\n\t\t\t\t\t\ttype="button"\r\n\t\t\t\t\t\tclass="btn btn-default"\r\n\t\t\t\t\t\t(click)="initForm(token)"\r\n\t\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t\t[externalAllowed]="false"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tEditar\r\n\t\t\t\t\t</button>\r\n\t\t\t\t\t<button\r\n\t\t\t\t\t\ttype="button"\r\n\t\t\t\t\t\tclass="btn btn-default dropdown-toggle"\r\n\t\t\t\t\t\tdata-toggle="dropdown"\r\n\t\t\t\t\t\taria-haspopup="true"\r\n\t\t\t\t\t\taria-expanded="false"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<span class="caret"></span>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t\t<ul class="dropdown-menu">\r\n\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\t\t(click)="delete(token)"\r\n\t\t\t\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t\t\t\t[authorities]="[p(\'ROLE_TOKENS_ELIMINAR\')]"\r\n\t\t\t\t\t\t\t\t[externalAllowed]="false"\r\n\t\t\t\t\t\t\t\t>Eliminar</a\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t</li>\r\n\t\t\t\t\t</ul>\r\n\t\t\t\t</div>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</ng-template>\r\n</p-table>\r\n<div class="text-align-right" style="padding: 0.75rem 1.25rem;">\r\n\t<button type="button" class="btn btn-primary" (click)="initForm(null)">\r\n\t\tAgregar nuevo\r\n\t</button>\r\n</div>\r\n<p-dialog\r\n\theader="Token Garantias"\r\n\t[(visible)]="showModal"\r\n\t[modal]="true"\r\n\t(onHide)="onCloseModal()"\r\n\t[contentStyle]="{\r\n\t\twidth: \'400px\',\r\n\t\t\'overflow-y\': \'auto\',\r\n\t\t\'min-height\': \'500px\',\r\n\t\t\'max-height\': \'500px\',\r\n\t\t\'text-align\': \'left\'\r\n\t}"\r\n\theight="500px"\r\n\twidth="500px"\r\n\tdismissableMask="true"\r\n>\r\n\t<form [formGroup]="frmToken" (ngSubmit)="save()" *ngIf="tokenSelected">\r\n\t\t<div class="row">\r\n\t\t\t<div class="col-sm-12 col-md-12 col-lg-12">\r\n\t\t\t\t<div class="form-group required">\r\n\t\t\t\t\t<label for="name" class="form-control-label">Nombre</label>\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="input"\r\n\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\tname="name"\r\n\t\t\t\t\t\tid="name"\r\n\t\t\t\t\t\tplaceholder="Nombre"\r\n\t\t\t\t\t\tformControlName="controlName"\r\n\t\t\t\t\t\t[(ngModel)]="tokenSelected.name"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<div class="form-control-error">\r\n\t\t\t\t\t\t<small *ngIf="hasError(controlName, \'required\')"\r\n\t\t\t\t\t\t\t>El nombre es requerido</small\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label class="form-control-label">Llave: </label>\r\n\t\t\t\t\t<p style="font-weight: bold; margin-bottom: 25px;">\r\n\t\t\t\t\t\t{{ resolveKeyCalculatedToken() }}\r\n\t\t\t\t\t</p>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="form-group required">\r\n\t\t\t\t\t<label for="formula" class="form-control-label">Formula</label>\r\n\t\t\t\t\t<textarea\r\n\t\t\t\t\t\trows="3"\r\n\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\tname="formula"\r\n\t\t\t\t\t\tid="formula"\r\n\t\t\t\t\t\tformControlName="controlFormula"\r\n\t\t\t\t\t\t[(ngModel)]="tokenSelected.formula"\r\n\t\t\t\t\t></textarea>\r\n\t\t\t\t\t<div class="form-control-error">\r\n\t\t\t\t\t\t<small *ngIf="hasError(controlFormula, \'required\')"\r\n\t\t\t\t\t\t\t>La fórmula es requerida</small\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div class="card-footer text-align-right">\r\n\t\t\t\t\t<button type="button" (click)="onCloseModal()" class="btn btn-link">\r\n\t\t\t\t\t\tCancelar\r\n\t\t\t\t\t</button>\r\n\t\t\t\t\t<button type="submit" class="btn btn-success">\r\n\t\t\t\t\t\tGuardar\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</form>\r\n</p-dialog>\r\n'}),__metadata("design:paramtypes",[core.ChangeDetectorRef,CommonService,ngxToastr.ToastrService,PliCnfGuaranteeTokenService])],e)}(CommonListsComponent),CommonInfoService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getBackofficePropertyNames=function(){return this.httpClient.get(this.environment.host.backend.backoffice+"common-info/getPropertyNames")},t.prototype.getConfigurationPropertyNames=function(){return this.httpClient.get(this.environment.host.backend.configuration+"common-info/getPropertyNames")},t.prototype.getFrontofficePropertyNames=function(){return this.httpClient.get(this.environment.host.backend.frontoffice+"common-info/getPropertyNames")},t.prototype.getSegmentationPropertyNames=function(){return this.httpClient.get(this.environment.host.backend.segmentation+"common-info/getPropertyNames")},t.prototype.getCommunicationPropertyNames=function(){return this.httpClient.get(this.environment.host.backend.communication+"common-info/getPropertyNames")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfMenuFormService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfMenuForm/getById",{params:(new http.HttpParams).set("statusId",t.toString())})},t.prototype.getAllByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfMenuForm/getAllByPromCode",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfMenuForm/save",t,ngPliUtil.HEADER_JSON)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfGuaranteeDocumentsTemplateService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getAllByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfGuaranteeDocumentsTemplate/getAllByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfGuaranteeDocumentsTemplate/save",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfGuaranteeDocumentsTemplate/delete",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfGuaranteeDocumentsTemplate/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.configCloningGDocuments=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfGuaranteeDocumentsTemplate/configCloningGDocuments",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),IntegrationADOService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.saveTransactionAndState=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"integrationADO/saveTransactionAndState",e,{params:(new http.HttpParams).set("applicationId",String(t))})},t.prototype.saveTransactionAndStateByAppList=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"integrationADO/saveTransactionAndStateByAppList",{responsableGuarantee:e,lApplicationId:t})},t.prototype.saveSignedDocuments=function(t,e,n,o){var r={applicationId:t,carta:e,contrato:n,pagare:o};return this.httpClient.post(this.environment.host.backend.frontoffice+"integrationADO/saveSignedDocuments",r)},t.prototype.saveTransactionAndStateManual=function(t,e,n,o,r){var i={applicationId:t,carta:e,contrato:n,pagare:o,configurationDocumentId:r};return this.httpClient.post(this.environment.host.backend.frontoffice+"integrationADO/saveTransactionAndStateManual",i)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),GuaranteeEnrollmentService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"guaranteeEnrollment/save",t)},t.prototype.getGuaranteeEnrollmentByIdentificationAndPatCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"guaranteeEnrollment/getGuaranteeEnrollmentByIdentificationAndPatCodigo",{params:(new http.HttpParams).set("identification",String(t)).set("patCodigo",String(e))})},t.prototype.updateGuaranteeEnrollment=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"guaranteeEnrollment/updateGuaranteeEnrollment",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfTextOptionService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfTextOption/save",t)},t.prototype.getOptionsByPliCnfTextId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfTextOption/getOptionsByPliCnfTextId",{params:(new http.HttpParams).set("pliCnfTextId",t.toString())})},t.prototype.deleteOptionList=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfTextOption/deleteOptionList",t)},t.prototype.deleteById=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfTextOption/deleteById",{params:(new http.HttpParams).set("id",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),ConfigurationMinisiteService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.saveMinisiteData=function(t){return this.httpClient.post(this.environment.host.backend.queue+"configuration-minisite/saveMinisiteData",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliTagAssignmentService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"pliTagAssignment/save",t)},t.prototype.getByUsernameAndActive=function(t,e){return this.httpClient.get(this.environment.host.backend.segmentation+"pliTagAssignment/getByUsernameAndActive",{params:(new http.HttpParams).set("username",t.toString()).set("active",e.toString())})},t.prototype.changeToDisabled=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"pliTagAssignment/changeToDisabled",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),UniversityService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"university/getById",{params:(new http.HttpParams).set("id",t)})},t.prototype.getUniversitiesByFullname=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"university/getUniversitiesByFullname",{params:(new http.HttpParams).set("fullname",t)})},t.prototype.getUniversitiesByNativeName=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"university/getUniversitiesByNativeName",{params:(new http.HttpParams).set("nativeName",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"university/save",t,ngPliUtil.HEADER_JSON)},t.prototype.getByDataTablesParameters=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"university/getByDataTablesParameters",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),ProgressBarService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.saveProgress=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"progressBar/saveProgress",t,ngPliUtil.HEADER_JSON)},t.prototype.getProgress=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"progressBar/getProgressByProcessIdAndProcessType",{params:(new http.HttpParams).set("processId",t.toString()).set("processType",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),ProgressBarComponent=function(){function t(t,e){this.toastrService=t,this.progressBarService=e,this.finishProcess=new core.EventEmitter,this.setTimeOutValue=0}return t.prototype.ngOnInit=function(){var t=this;window.addEventListener("beforeunload",this.closeTabCallback),this.setTimeOutValue=setTimeout((function(){t.initNoIn()}),1e3)},t.prototype.initNoIn=function(){return __awaiter(this,void 0,void 0,(function(){var t,e=this;return __generator(this,(function(n){switch(n.label){case 0:return void 0===this.processType?[3,2]:[4,this.handleProgress()];case 1:t=n.sent(),n.label=2;case 2:return 100===this.percentage?(this.toastrService.success("El proceso se completó con éxito!","Proceso completado"),this.clearActualTimeout(),this.finishProcess.emit(t)):this.setTimeOutValue=setTimeout((function(){e.initNoIn()}),500),[2]}}))}))},t.prototype.handleProgress=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,this.progressBarService.getProgress(this.processId,this.processType).toPromise()];case 1:return null!=(t=e.sent())?[3,3]:((void 0).processId=null,(void 0).processType=this.processType,(void 0).percentage=0,(void 0).state="",(void 0).current=this.current,(void 0).end=this.end,[4,this.progressBarService.saveProgress(void 0).toPromise()]);case 2:t=e.sent(),e.label=3;case 3:return this.processId=t.processId,this.percentage=t.percentage,[2,t]}}))}))},t.prototype.clearActualTimeout=function(){window.removeEventListener("beforeunload",this.closeTabCallback),clearTimeout(this.setTimeOutValue),this.setTimeOutValue=null},t.prototype.closeTabCallback=function(t){return t.returnValue="o/","o/"},t.prototype.ngOnDestroy=function(){this.clearActualTimeout()},t.ctorParameters=function(){return[{type:ngxToastr.ToastrService},{type:ProgressBarService}]},__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"processId",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"processType",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"percentage",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"current",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"end",void 0),__decorate([core.Output(),__metadata("design:type",Object)],t.prototype,"finishProcess",void 0),t=__decorate([core.Component({selector:"pli-progress-bar",template:'<div class="progress">\r\n <div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" [ngStyle]="{ width: percentage + \'%\' }">\r\n {{ percentage }}%\r\n </div>\r\n</div>',styles:[".progress .progress-bar{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}"]}),__metadata("design:paramtypes",[ngxToastr.ToastrService,ProgressBarService])],t)}(),PliCnfSurveyPdfService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSurveyPdf/save",t)},t.prototype.getBySurveyId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSurveyPdf/getBySurveyId",{params:(new http.HttpParams).set("id",String(t))})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSurveyPdf/getById",{params:(new http.HttpParams).set("id",String(t))})},t.prototype.clone=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSurveyPdf/clone",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SegmentationTokensService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.controllerName="segmentation-token"}return t.prototype.getTokenSintax=function(t){return"${"+t+"}"},t.prototype.getLogicalTokenSintax=function(t){return"$[["+t+"]]"},t.prototype.getHierarchicalTokenSintax=function(t){return"$(("+t+"))"},t.prototype.getSurveyStaticTokens=function(){return this.httpClient.get(this.environment.host.backend.configuration+(this.controllerName+"/getSurveyStaticTokens"))},t.prototype.transform=function(t){return this.httpClient.post(this.environment.host.backend.configuration+(this.controllerName+"/transform"),t)},t.SURVEY_TOKENS_CATEGORY="Encuesta estáticos",t.FORM_TOKENS_CATEGORY="Encuesta formulario - ",t.SEGMENTATION_TOKENS_PREFIX="seg_",t.STATIC_TOKENS_PREFIX="estatico_",t.FORM_TOKENS_PREFIX="frm_",t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SegmentationTokensComponent=function(){function t(t){this.sTokensService=t,this.showTokenCalculatorButton=!1,this.showCalculatedTokenButton=!0,this.showSurveyTokens=!1,this.segColSurveyFormioTokens=[],this.segColSurveyTokens=[],this.fullLSegColumn=[]}return t.prototype.ngOnInit=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return this.ready=!1,this.showSegmentationTokens=!1,this.showCalculatedTokens=!1,this.showTokensCalculator=!1,this.varDisplayDiv="overflow: auto;min-height: 600px; display: none;",[2]}))}))},t.prototype.initSurveyTokens=function(){var t=this;return new Promise((function(e,n){return __awaiter(t,void 0,void 0,(function(){var t,o;return __generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),this.showSurveyTokens&&this.segColSurveyTokens.length<1?(t=this,[4,this.getSegColSurveyTokens()]):[3,2];case 1:t.segColSurveyTokens=r.sent(),r.label=2;case 2:return void 0!==this.surveyFormio&&(this.segColSurveyFormioTokens=this.getSegColSurveyFormioTokens()),e(),[3,4];case 3:return o=r.sent(),n(o),[3,4];case 4:return[2]}}))}))}))},t.prototype.ngOnChanges=function(t){if(t.lSegColumn&&t.lSegColumn.currentValue){var e=this.handleSegColumns();this.initComboColumnWork(e)}if(t.surveyFormio&&t.surveyFormio.currentValue){this.surveyFormio=t.surveyFormio.currentValue;e=this.handleSegColumns();this.initComboColumnWork(e)}},t.prototype.handleSegColumns=function(){var t=JSON.parse(JSON.stringify(this.lSegColumn)).reduce((function(t,e){var n;return __assign(__assign({},t),((n={})[e.category+"-"+e.key]=e,n))}),{}),e=[];for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];o.key=SegmentationTokensService.SEGMENTATION_TOKENS_PREFIX+o.key,e.push(o)}return e},t.prototype.initComboColumnWork=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return Array.isArray(this.comboColumnWorkInput)&&this.comboColumnWorkInput.length>0?(this.comboColumnWork=JSON.parse(JSON.stringify(this.comboColumnWorkInput)),this.ready=!0,[3,3]):[3,1];case 1:return Array.isArray(t)&&t.length>0?[4,this.initSurveyTokens()]:[3,3];case 2:e.sent(),t=__spread(t,this.segColSurveyFormioTokens,this.segColSurveyTokens),this.fullLSegColumn=t.slice(),this.comboColumnWork=ngPliUtil.DatatableUtil.buildCombo(t),this.ready=!0,e.label=3;case 3:return[2]}}))}))},t.prototype.getSegColSurveyFormioTokens=function(){var t,e,n,o,r=[];if(this.surveyFormio.components){var i=FormioUtil.getFormattedComponentsByPanel(FormioUtil.getComponents(this.surveyFormio.components));try{for(var a=__values(i),s=a.next();!s.done;s=a.next()){var c=s.value;try{for(var p=(n=void 0,__values(c.items)),l=p.next();!l.done;l=p.next()){var d=l.value;r.push({label:d.label,key:SegmentationTokensService.FORM_TOKENS_PREFIX+d.value,category:SegmentationTokensService.FORM_TOKENS_CATEGORY+" "+c.label})}}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}}return r},t.prototype.getSegColSurveyTokens=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return t=SegmentationTokensService.SURVEY_TOKENS_CATEGORY,[4,this.sTokensService.getSurveyStaticTokens().toPromise()];case 1:return[2,e.sent().map((function(e){return e.key=SegmentationTokensService.STATIC_TOKENS_PREFIX+e.key,e.category=t,e}))]}}))}))},t.prototype.displaySegmentationTokensDiv=function(){this.showSegmentationTokens=!this.showSegmentationTokens,this.showCalculatedTokens=!1,this.showTokensCalculator=!1},t.prototype.displayCalculatedTokensDiv=function(){this.showCalculatedTokens=!this.showCalculatedTokens,this.showSegmentationTokens=!1,this.showTokensCalculator=!1},t.prototype.displayTokenCalculatorDiv=function(){this.showTokensCalculator=!this.showCalculatedTokens,this.showSegmentationTokens=!1,this.showCalculatedTokens=!1},t.prototype.changeCategory=function(t,e){e&&e.items.forEach((function(e){return e.selected=t}))},t.prototype.isVisibleCategory=function(t){var e,n;try{for(var o=__values(t.items),r=o.next();!r.done;r=o.next()){var i=r.value;if(this.isVisibleColumn(i.label))return!0}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return!1},t.prototype.isVisibleColumn=function(t){return!this.columnSearch||!(!t||!t.toLowerCase().includes(this.columnSearch.toLowerCase()))},t.prototype.copyToken=function(t){var e=this.getColumn(t.toString());e&&this.copyMessage(this.sTokensService.getTokenSintax(e.key))},t.prototype.copyTokenCalc=function(t){this.copyMessage(t)},t.prototype.getTitleToken=function(t){var e=this.getColumn(t.toString());return e?"${"+e.key+"}":""},t.prototype.getColumn=function(t){return this.fullLSegColumn.find((function(e){return e.idColumn==t||e.key==t}))},t.prototype.copyMessage=function(t){ngPliUtil.UtilString.copyMessage(t)},t.ctorParameters=function(){return[{type:SegmentationTokensService}]},__decorate([core.Input(),__metadata("design:type",Object)],t.prototype,"showTokenCalculatorButton",void 0),__decorate([core.Input(),__metadata("design:type",Object)],t.prototype,"showCalculatedTokenButton",void 0),__decorate([core.Input(),__metadata("design:type",Object)],t.prototype,"showSurveyTokens",void 0),__decorate([core.Input(),__metadata("design:type",Array)],t.prototype,"comboColumnWorkInput",void 0),__decorate([core.Input(),__metadata("design:type",Object)],t.prototype,"surveyFormio",void 0),__decorate([core.Input(),__metadata("design:type",Array)],t.prototype,"lSegColumn",void 0),t=__decorate([core.Component({selector:"app-segmentation-tokens",template:'<div *ngIf="ready">\r\n\t<div class="panel panel-default" class="overflow: auto;min-height: 600px; display: block;">\r\n\t\t<div class="row">\r\n\t\t\t<div class="col-md-12 row-margin">\r\n\t\t\t\t<button\r\n\t\t\t\t\ttype="button"\r\n\t\t\t\t\t(click)="displayTokenCalculatorDiv()"\r\n\t\t\t\t\tclass="btn btn-primary pull-right"\r\n\t\t\t\t>\r\n\t\t\t\t\tCalculadora de tokens\r\n\t\t\t\t</button>\r\n\t\t\t</div>\r\n\t\t\t<div class="col-md-12">\r\n\t\t\t\t<input\r\n\t\t\t\t\ttype="input"\r\n\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\tstyle="margin-bottom: 8px"\r\n\t\t\t\t\tplaceholder="Busqueda de columnas"\r\n\t\t\t\t\t[(ngModel)]="columnSearch"\r\n\t\t\t\t/>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\r\n\t\t<p-accordion [multiple]="true">\r\n\t\t\t<ng-container *ngFor="let category of comboColumnWork">\r\n\t\t\t\t<p-accordionTab *ngIf="isVisibleCategory(category)" header="{{ category.label }}">\r\n\t\t\t\t\t<div *ngFor="let column of category.items" class="ui-g">\r\n\t\t\t\t\t\t<div\r\n\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*ngIf="isVisibleColumn(column.label)"\r\n\t\t\t\t\t\t>\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)="copyToken(column.value)"\r\n\t\t\t\t\t\t\t\t[title]="getTitleToken(column.value)"\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="{{ column.label }}">{{ column.label }}</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</ng-container>\r\n\t\t</p-accordion>\r\n\t</div>\r\n\r\n\t<p-dialog\r\n\t\tappendTo="body"\r\n\t\theader="Calculadora de tokens"\r\n\t\t[(visible)]="showTokensCalculator"\r\n\t\t[modal]="true"\r\n\t\t[contentStyle]="{\r\n\t\t\t\'min-width\': \'600px\',\r\n\t\t\t\'max-width\': \'600px\',\r\n\t\t\t\'min-height\': \'420px\',\r\n\t\t\t\'max-height\': \'420px\',\r\n\t\t\tbackground: \'white\',\r\n\t\t\t\'overflow-y\': \'auto\',\r\n\t\t\t\'text-align\': \'left\'\r\n\t\t}"\r\n\t\theight="420"\r\n\t\twidth="600"\r\n\t\tdismissableMask="true"\r\n\t>\r\n\t\t<div class="container-fluid">\r\n\t\t\t<app-tokens-calculator\r\n\t\t\t\t*ngIf="showTokensCalculator"\r\n\t\t\t\t[comboColumnWorkInput]="comboColumnWork"\r\n\t\t\t></app-tokens-calculator>\r\n\t\t</div>\r\n\t</p-dialog>\r\n</div>\r\n',styles:[".row-margin{margin-top:8px;margin-bottom:8px}"]}),__metadata("design:paramtypes",[SegmentationTokensService])],t)}(),TokensCalculatorComponent=function(){function t(t,e){this.sTokensService=t,this.toastr=e,this.EQ_OPERATOR="==",this.NEQ_OPERATOR="!=",this.tokenType=this.conditionalTokenType,this.operator=this.EQ_OPERATOR,this.hierarchicalName="",this.positiveValue="",this.negativeValue="",this.source=[],this.target=[]}var e;return e=t,Object.defineProperty(t.prototype,"conditionalTokenType",{get:function(){return e.CONDITIONAL_TOKEN_TYPE.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hierarchicalTokenType",{get:function(){return e.HIERARCHICAL_TOKEN_TYPE.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isConditionalToken",{get:function(){return this.conditionalTokenType==this.tokenType},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;if(Array.isArray(this.comboColumnWorkInput)){var e=JSON.parse(JSON.stringify(this.comboColumnWorkInput));e.forEach((function(e){return e.items.forEach((function(e){return e.value=t.sTokensService.getTokenSintax(e.value)}))})),this.comboColumnWork=e,this.buildSource()}},t.prototype.buildSource=function(){var t,e,n,o,r=[];try{for(var i=__values(this.comboColumnWorkInput),a=i.next();!a.done;a=i.next()){var s=a.value;try{for(var c=(n=void 0,__values(s.items)),p=c.next();!p.done;p=c.next()){var l=p.value;r.push({category:s.label,label:l.label,value:this.sTokensService.getTokenSintax(l.value)})}}catch(t){n={error:t}}finally{try{p&&!p.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.source=r},t.prototype.generateConditionalToken=function(){var t="'"+this.keyToCalculate+"' "+this.operator+" '"+this.valueToCompare+"'";t+=" ? '"+this.positiveValue+"' : '"+this.negativeValue+"'",t=this.sTokensService.getLogicalTokenSintax(t),ngPliUtil.UtilString.copyMessage(t)},t.prototype.generateHierarchicalTokenType=function(){if(!(this.target.length<2)){var t=this.target.map((function(t){return"'"+t.value+"'"})).join(" || ");return t=this.sTokensService.getHierarchicalTokenSintax(t),ngPliUtil.UtilString.copyMessage(t),t}this.toastr.error("Es necesario al menos dos campos a evaluar")},t.prototype.useCondition=function(){if(this.hierarchicalName.length<1)this.toastr.error("Para usar como condición es necesario un nombre");else{var t={label:this.hierarchicalName,value:this.generateHierarchicalTokenType()},n=this.comboColumnWork.find((function(t){return t.label==e.HIERARCHICAL_CATEGORY}));this.hierarchicalToConditional(n,t),this.resetValues(!0),this.tokenType=this.conditionalTokenType.toString(),this.keyToCalculate=t.value}},t.prototype.hierarchicalToConditional=function(t,n){if(t){var o=t.items.find((function(t){return t.label==n.label}));o?o.value=n.value:t.items.push(n)}else this.comboColumnWork.push({label:e.HIERARCHICAL_CATEGORY,items:[n]})},t.prototype.resetValues=function(t){if(void 0===t&&(t=!1),this.hierarchicalName="",this.keyToCalculate="",this.valueToCompare="",this.positiveValue="",this.negativeValue="",t){var e=document.querySelector("button[icon='pi pi-angle-double-left']");e&&e.click()}},t.CONDITIONAL_TOKEN_TYPE=1,t.HIERARCHICAL_TOKEN_TYPE=2,t.HIERARCHICAL_CATEGORY="Jerárquicos",t.ctorParameters=function(){return[{type:SegmentationTokensService},{type:ngxToastr.ToastrService}]},__decorate([core.Input(),__metadata("design:type",Array)],t.prototype,"comboColumnWorkInput",void 0),t=e=__decorate([core.Component({selector:"app-tokens-calculator",template:'<div class="flex" style="margin-bottom: 11px; width: fit-content">\r\n\t<label class="radio-inline">\r\n\t\t<input\r\n\t\t\ttype="radio"\r\n\t\t\t[(ngModel)]="tokenType"\r\n\t\t\t[value]="conditionalTokenType"\r\n\t\t\t(click)="resetValues(true)"\r\n\t\t/>\r\n\t\tCondicional\r\n\t</label>\r\n\t<label class="radio-inline">\r\n\t\t<input\r\n\t\t\ttype="radio"\r\n\t\t\t[(ngModel)]="tokenType"\r\n\t\t\t[value]="hierarchicalTokenType"\r\n\t\t\t(click)="resetValues()"\r\n\t\t/>\r\n\t\tJerárquico\r\n\t</label>\r\n</div>\r\n\r\n<ng-container *ngIf="isConditionalToken">\r\n\t<div class="flex align-items-center" style="margin-top: 15px">\r\n\t\t<div class="mr-sm">\r\n\t\t\t<label for="field">Campo a evaluar</label>\r\n\t\t\t<p-dropdown\r\n\t\t\t\tid="field"\r\n\t\t\t\tplaceholder="-- Seleccione opción"\r\n\t\t\t\t[options]="comboColumnWork"\r\n\t\t\t\t[group]="true"\r\n\t\t\t\t[(ngModel)]="keyToCalculate"\r\n\t\t\t\t[filter]="true"\r\n\t\t\t\t[style]="{ width: \'250px\' }"\r\n\t\t\t>\r\n\t\t\t</p-dropdown>\r\n\t\t</div>\r\n\r\n\t\t<div class="mr-sm">\r\n\t\t\t<label for="operator">Operador</label>\r\n\t\t\t<select\r\n\t\t\t\tid="operator"\r\n\t\t\t\tclass="form-control input-sm select-operation"\r\n\t\t\t\tstyle="width: 80px"\r\n\t\t\t\t[(ngModel)]="operator"\r\n\t\t\t>\r\n\t\t\t\t<option [value]="EQ_OPERATOR">Igual a</option>\r\n\t\t\t\t<option [value]="NEQ_OPERATOR">Diferente a</option>\r\n\t\t\t</select>\r\n\t\t</div>\r\n\r\n\t\t<div class="mr-sm">\r\n\t\t\t<label for="compare">Valor a comparar</label>\r\n\t\t\t<input\r\n\t\t\t\tid="compare"\r\n\t\t\t\ttype="text"\r\n\t\t\t\tclass="form-control input-value input-sm"\r\n\t\t\t\t[(ngModel)]="valueToCompare"\r\n\t\t\t\tplaceholder="valor"\r\n\t\t\t\tstyle="width: 156px"\r\n\t\t\t/>\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<div class="flex align-items-center" style="margin-top: 15px">\r\n\t\t<div class="mr-sm">\r\n\t\t\t<label for="positive">Valor positivo</label>\r\n\t\t\t<input\r\n\t\t\t\tid="positive"\r\n\t\t\t\ttype="text"\r\n\t\t\t\tclass="form-control input-value input-sm"\r\n\t\t\t\t[(ngModel)]="positiveValue"\r\n\t\t\t\tplaceholder="valor"\r\n\t\t\t\tstyle="width: 250px"\r\n\t\t\t/>\r\n\t\t</div>\r\n\t\t<div class="mr-sm">\r\n\t\t\t<label for="negative">Valor negativo</label>\r\n\t\t\t<input\r\n\t\t\t\tid="negative"\r\n\t\t\t\ttype="text"\r\n\t\t\t\tclass="form-control input-value input-sm"\r\n\t\t\t\t[(ngModel)]="negativeValue"\r\n\t\t\t\tplaceholder="valor"\r\n\t\t\t\tstyle="width: 250px"\r\n\t\t\t/>\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<div class="flex align-items-center" style="margin-top: 15px" *ngIf="valueToCompare">\r\n\t\t<div class="mr-sm">\r\n\t\t\t<label for="generate">Resultado</label>\r\n\t\t\t<button\r\n\t\t\t\tid="generate"\r\n\t\t\t\ttype="button"\r\n\t\t\t\t(click)="generateConditionalToken()"\r\n\t\t\t\ttitle="Copiar"\r\n\t\t\t\tstyle="margin-left: 2px; width: 30px"\r\n\t\t\t>\r\n\t\t\t\t<span class="fa fa-clipboard"></span>\r\n\t\t\t</button>\r\n\t\t</div>\r\n\t</div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf="!isConditionalToken">\r\n\t<div class="flex align-items-center" style="margin-top: 13px; margin-bottom: 20px">\r\n\t\t<div style="margin-right: 10px">\r\n\t\t\t<label for="hierarchicalName">Nombre</label>\r\n\t\t\t<input\r\n\t\t\t\tid="hierarchicalName"\r\n\t\t\t\ttype="text"\r\n\t\t\t\tclass="form-control input-value input-sm"\r\n\t\t\t\t[(ngModel)]="hierarchicalName"\r\n\t\t\t\tplaceholder="Nombre"\r\n\t\t\t\tstyle="width: 226px"\r\n\t\t\t/>\r\n\t\t</div>\r\n\t\t<div style="margin-right: 10px">\r\n\t\t\t<label for="generate">Acciones</label>\r\n\t\t\t<button\r\n\t\t\t\tid="generate"\r\n\t\t\t\ttype="button"\r\n\t\t\t\t(click)="generateHierarchicalTokenType()"\r\n\t\t\t\ttitle="Copiar"\r\n\t\t\t\tstyle="width: 30px"\r\n\t\t\t>\r\n\t\t\t\t<span class="fa fa-clipboard"></span>\r\n\t\t\t</button>\r\n\t\t\t&nbsp;\r\n\t\t\t<button\r\n\t\t\t\tid="generate"\r\n\t\t\t\ttype="button"\r\n\t\t\t\t(click)="useCondition()"\r\n\t\t\t\ttitle="Volver condicional"\r\n\t\t\t\tstyle="margin-left: -5px; width: 30px"\r\n\t\t\t>\r\n\t\t\t\t<span class="fa fa-plus"></span>\r\n\t\t\t</button>\r\n\t\t</div>\r\n\t\t<div class="mr-sm"></div>\r\n\t</div>\r\n\t<div class="flex align-items-center" style="margin-top: 13px; margin-bottom: 20px">\r\n\t\t<p-pickList\r\n\t\t\t[dragdrop]="true"\r\n\t\t\tngDefaultControl\r\n\t\t\t[source]="source"\r\n\t\t\t[target]="target"\r\n\t\t\t[responsive]="true"\r\n\t\t\tfilterBy="category,label"\r\n\t\t\t[showSourceControls]="false"\r\n\t\t\ttargetFilterPlaceholder=" Buscar..."\r\n\t\t\tsourceFilterPlaceholder=" Buscar..."\r\n\t\t>\r\n\t\t\t\x3c!-- [sourceStyle]="{ width: \'234px\' }"\r\n\t\t\t[targetStyle]="{ width: \'234px\' }" --\x3e\r\n\t\t\t<ng-template let-field pTemplate="item">\r\n\t\t\t\t<div class="ui-helper-clearfix">\r\n\t\t\t\t\t{{ field.label }} <br />\r\n\t\t\t\t\t<small>\r\n\t\t\t\t\t\t<b> {{ field.category }} </b>\r\n\t\t\t\t\t</small>\r\n\t\t\t\t</div>\r\n\t\t\t</ng-template>\r\n\t\t</p-pickList>\r\n\t</div>\r\n</ng-container>\r\n',styles:[".mr-sm{margin-right:15px}"]}),__metadata("design:paramtypes",[SegmentationTokensService,ngxToastr.ToastrService])],t)}(),PliCnfProjectSummaryService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.service_path="project-summary/configuration"}return t.prototype.getByPatCodigoAndPromCodigo=function(t,e){var n=(new http.HttpParams).set("patCodigo",t.toString()).set("promCodigo",e.toString());return this.httpClient.get(""+this.environment.host.backend.configuration+this.service_path,{params:n})},t.prototype.getByPatCodigoAndPromCodigoIn=function(t,e){var n={patCodigo:t,promCodigos:e};return this.httpClient.post(""+this.environment.host.backend.configuration+this.service_path+"/search-by-patCodigo-and-promCodigos",n)},t.prototype.save=function(t){return this.httpClient.post(""+this.environment.host.backend.configuration+this.service_path,t)},t.prototype.update=function(t,e){return this.httpClient.patch(""+this.environment.host.backend.configuration+this.service_path+"/"+t,e)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PartnerService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getPartenerById=function(t){return this.httpClient.get(this.environment.host.backend.loginWSRest+"patrocinador/getById",{params:(new http.HttpParams).set("patCodigo",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.loginWSRest+"patrocinador/save",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PartnerSystemService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getByPatAndSystem=function(t,e){return this.httpClient.get(this.environment.host.backend.loginWSRest+"patrocinadorSistema/getByPatAndSystem",{params:(new http.HttpParams).set("patCodigo",t).set("sysCodigo",e)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.loginWSRest+"patrocinadorSistema/save",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),httpOptions$1={headers:new http.HttpHeaders({"Content-Type":"application/json"})},PdfAnalyzerService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getTextOfImage=function(t){return this.httpClient.post(this.environment.googleVision.url+"?key="+this.environment.googleVision.key,t,{headers:httpOptions$1.headers})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PdfAnalyzerComponent=function(){function t(t){this.pdfAnalyzerService=t,this.totalPages=0,this.currentpage=1,this.isCropImage=!1,this.instructivo=!0,this.render_text=!0,this.show_all=!1,this.original_size=!0,this.fit_to_page=!1,this.pdfSrc="",this.textToCompare="",this.labelToCompare="",this.documentAnalyzed=new core.EventEmitter}return t.prototype.ngOnInit=function(){},t.prototype.zoomOut=function(){this.cropper.zoom(.1)},t.prototype.zoomIn=function(){this.cropper.zoom(-.1)},t.prototype.onRange=function(t){this.cropper.zoomTo(t.target.value)},t.prototype.onRotate=function(){this.cropper.rotate(-90)},t.prototype.previous=function(){this.currentpage>0&&(1==this.currentpage?this.currentpage=this.totalPages:this.currentpage--)},t.prototype.next=function(){this.totalPages>this.currentpage?this.currentpage++:this.currentpage=1},t.prototype.crop=function(){var t=this;html2canvas(document.querySelector(".pdf-container")).then((function(e){e.getContext("2d").scale(3,3);var n=e.toDataURL("image/png").replace("image/png","image/png");$("#cropper-img").attr("src",n),$("#cropper-img").addClass("ready"),t.isCropImage=!0;var o=document.getElementById("cropper-img");t.cropper=new Cropper(o,{zoomable:!0,background:!1,guides:!1,highlight:!1,movable:!1,aspectRatio:4/3,ready:function(e){t.cropper},crop:function(t){}})}))},t.prototype.saveCapture=function(){var t=this;if(this.isCropImage){var e=this.cropper.getCroppedCanvas();this.getCanvasToImage(e)}else html2canvas(document.querySelector(".pdf-container")).then((function(e){t.getCanvasToImage(e)}))},t.prototype.getCanvasToImage=function(t){t.getContext("2d").scale(3,3);var e=t.toDataURL("image/png").replace("image/png","image/png");this.capture=e,console.log(e)},t.prototype.reset=function(){this.isCropImage=!1,this.capture=null,this.cropper.clear(),this.cropper.destroy()},t.prototype.validateImage=function(){var t=this.capture.substring(22,this.capture.length);this.documentAnalyzed.emit(t)},t.ctorParameters=function(){return[{type:PdfAnalyzerService}]},__decorate([core.Input(),__metadata("design:type",Object)],t.prototype,"pdfSrc",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"textToCompare",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"labelToCompare",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],t.prototype,"documentAnalyzed",void 0),t=__decorate([core.Component({selector:"pli-pdf-analyzer",template:'<div>\r\n\r\n <div class="checkInstructivo">\r\n <label>\r\n <input type="checkbox" [(ngModel)]="instructivo" />Instructivo\r\n </label>\r\n </div>\r\n <div *ngIf="!instructivo" class="description">\r\n Seleccionar la parte del documento donde se encuentra <strong>{{labelToCompare}}</strong>\r\n\r\n </div>\r\n <div *ngIf="instructivo" class="description">\r\n 1. Darle clic en el botón <span class="fa fa-crop"></span>\r\n <br> 2. Seleccionar la parte del documento donde se encuentra <strong>{{labelToCompare}}</strong> con el mouse dando clic y arrastrando hasta completar la selección o cambiando de tamaño el recuadro que aparece en pantalla\r\n <br> 3. Una vez seleccionado dar clic en el botón <span class="fa fa-camera"></span> para previsualizarlo mejor\r\n <br> 4. En caso de haberse equivocado puede darle clic al botón rojo "Reintentar" o al botón <span class="fa fa-undo"></span> para volver al paso 1\r\n <br> 5. Cuando ya este correcta la selección darle clic al botón verde "Guardar Captura" para proceder con el proceso\r\n </div>\r\n <div class="pdf-visualizer-controls">\r\n <a href="Javascript:;" title="Anterior" data-toggle="tooltip" data-placement="top" class="btn btn-outline-secondary" (click)="previous()">\r\n <span class="fa fa-angle-left"></span>\r\n </a>\r\n <span class="btn btn-outline-secondary">Página: {{currentpage}} / {{totalPages}}</span>\r\n <a href="Javascript:;" title="Siguiente" data-toggle="tooltip" data-placement="top" class="btn btn-outline-secondary" (click)="next()">\r\n <span class="fa fa-angle-right"></span>\r\n </a>\r\n\r\n <a href="Javascript:;" title="Acercar" data-toggle="tooltip" data-placement="top" class="btn btn-outline-secondary" *ngIf="isCropImage && !capture" (click)="zoomOut()">\r\n <span class="fa fa-search-plus"></span>\r\n </a>\r\n\r\n\r\n <a href="Javascript:;" title="Alejar" data-toggle="tooltip" data-placement="top" class="btn btn-outline-secondary" *ngIf="isCropImage && !capture" (click)="zoomIn()">\r\n <span class="fa fa-search-minus"></span>\r\n </a>\r\n </div>\r\n <div class="pdf-visualizer-controls">\r\n <a href="Javascript:;" title="Capturar" data-toggle="tooltip" data-placement="top" class="btn btn-outline-secondary" *ngIf="!isCropImage" (click)="crop()">\r\n <span class="fa fa-crop fa-2x"></span>\r\n </a>\r\n <a href="Javascript:;" title="Guardar Captura" data-toggle="tooltip" data-placement="top" class="btn btn-outline-secondary" *ngIf="isCropImage && !capture" (click)="saveCapture()">\r\n <span class="fa fa-camera fa-2x"></span>\r\n </a>\r\n <a href="Javascript:;" title="Deshacer" data-toggle="tooltip" data-placement="top" class="btn btn-outline-secondary" *ngIf="isCropImage" (click)="reset()">\r\n <span class="fa fa-undo fa-2x"></span>\r\n </a>\r\n </div>\r\n\r\n\r\n <div class="pdf-visualizer-dashboard" *ngIf="!capture">\r\n <div class="pdf-container pdf-visualizer-canvas top-margin" [hidden]="isCropImage">\r\n \x3c!-- <pdf-viewer [(src)]="pdfSrc" [(render-text)]="render_text" [(page)]="currentpage" [(show-all)]="show_all" [(original-size)]="original_size" [(fit-to-page)]="fit_to_page" (after-load-complete)="afterLoadComplete($event)" style="display: block;">\r\n </pdf-viewer> --\x3e\r\n </div>\r\n\r\n <div class="img-container" [hidden]="!isCropImage">\r\n <img #image src="" id="cropper-img" crossorigin>\r\n </div>\r\n </div>\r\n\r\n <div class="img-visualizer-dashboard" *ngIf="capture">\r\n <img [src]="capture">\r\n </div>\r\n <div class="img-visualizer-dashboard" *ngIf="capture">\r\n <button class="btns btn-success btn-lg" (click)="validateImage()" lang="es">Guardar Captura</button>\r\n\r\n <button class="btnr btn-success btn-lg" (click)="reset()" lang="es">Reintentar</button>\r\n </div>\r\n</div>',styles:[".img-visualizer-dashboard,.pdf-visualizer-controls,.pdf-visualizer-dashboard{background-color:#f5f5f5;padding:15px}.pdf-visualizer-dashboard{border-bottom:1px solid #eee;border-top:1px solid #eee}.img-visualizer-dashboard{text-align:center;border-bottom:1px solid #eee;border-top:1px solid #eee}.pdf-visualizer-canvas{cursor:move}button.btns{background-color:green;color:#fff;position:relative;left:0;margin:15px}button.btns:hover{background-color:#006400}button.btnr{background-color:red;color:#fff;position:relative;left:0;margin:15px}button.btnr:hover{background-color:#8b0000}.description{padding:0 10px;font-size:14px;font-weight:300;font-family:Roboto,sans-serif;margin-bottom:1.5em}.checkInstructivo{float:right;text-align:right}"]}),__metadata("design:paramtypes",[PdfAnalyzerService])],t)}(),NgPliCommonsModule=function(){function t(){}var e;return e=t,t.forRoot=function(t){return{ngModule:e,providers:[common.CurrencyPipe,PppService,AuthenticationService,DataFormService,FormService,LogService,LetterCampaingService,ApplicationService,ApplicationTagService,SpinnerService,SponsorshipLetterService,BudgetService,BudgetApplicationService,TokenService,TokenTransformationService,UserService,EmailService,CubeService,PliCnfInteractionService,PliCnfIndicatorService,PliCnfHeaderService,DocumentManagementService,DocumentService,SegmentationService,PliCnfLookAndFeelService,FileService,PliUserService,PliCnfProfileUserService,DocumentaryTypeService,SendApplicationService,KeysAssignationService,ConfigurationDocumentService,PermissionService,ProfileService,PageService,PliCnfPageSubProcessService,StatusService,UniversityService,PliCnfMenuFormService,ConfigurationService,CommonInfoService,PliCnfStatusFlowService,PliCnfStatusFlowInteractionService,SesionFormService,PliCnfTextService,PliCnfBudgetService,PliCnfSupportDocumentService,InteractionApplicationUserService,SesionService,PliCnfSegmentationService,PliCnfUserWorkspaceService,PliCnfAppCardFilterService,PliSegmentationService,PliTagService,SegmentationUserService,ImportDataService,PliPromocionUsernameService,PliCnfWorkspaceSegmentationService,PliMultipleValueFilterService,EvaluationService,BudgetSimulationService,ExportExcelService,GlobalShowTaskService,GuaranteeService,CreditStudyService,GuaranteeDocumentService,PliCnfEvaluationTemplateService,PliCnfCommitteeVisualizationModeService,PliCnfScenarioService,PliCnfValproKeysService,TasaCambioService,PliCnfAcuityFieldsService,PliCnfGuaranteeTokenService,PliCnfGuaranteeDocumentsTemplateService,IntegrationADOService,GuaranteeEnrollmentService,PliCnfTextOptionService,ConfigurationMinisiteService,ProgressBarService,PliCnfSurveyPdfService,PliTagAssignmentService,PliCnfProjectSummaryService,HashService,PartnerService,PartnerSystemService,PdfAnalyzerService,{provide:"environment",useValue:t},{provide:fire.FirebaseOptionsToken,useValue:t.firebase}]}},t=e=__decorate([core.NgModule({imports:[common.CommonModule,angularFormioProyectoscolfuturo.FormioModule,http.HttpClientModule,forms.FormsModule,primeng.AccordionModule,primeng.SharedModule,table.TableModule,tieredmenu.TieredMenuModule,picklist.PickListModule,forms.ReactiveFormsModule,fire.AngularFireModule,storage.AngularFireStorageModule,auth.AngularFireAuthModule,angular2Tinymce.TinymceModule.withConfig({plugins:["code","preview","autoresize","paste","colorpicker","textcolor","link","table","lists","advlist","image"],toolbar:"undo redo | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | forecolor backcolor fontsizeselect | code preview image link",forced_root_block:"div"}),dropdown.DropdownModule,dialog.DialogModule,ngPliUtil.NgPliUtilModule.forRoot()],entryComponents:[angularFormioProyectoscolfuturo.FormioComponent],declarations:[SelectPppComponent,CurrencyColfuturoPipe,CurrencyPrintColfuturoPipe,CurrencyDecimalColfuturoPipe,CurrencyColfuturoFormatterDirective,CurrencyDecimalColfuturoFormatterDirective,PdfVisualizerComponent,PdfMergeVisualizerComponent,PdfGeneratorComponent,TokenComponent,SegmentationTokensComponent,TokensCalculatorComponent,ConfigurationTokenComponent,ExcelToJsonComponent,ThousandsPipe,DynamicFilterComponent,ShowHideColumnsTableComponent,PdfConfigComponent,SnapshotTokenComponent,GuaranteeTokenComponent,ProgressBarComponent,PdfAnalyzerComponent],exports:[SelectPppComponent,PdfVisualizerComponent,PdfMergeVisualizerComponent,PdfGeneratorComponent,TokenComponent,SegmentationTokensComponent,TokensCalculatorComponent,CurrencyColfuturoPipe,CurrencyPrintColfuturoPipe,CurrencyDecimalColfuturoPipe,CurrencyColfuturoFormatterDirective,CurrencyDecimalColfuturoFormatterDirective,ConfigurationTokenComponent,ThousandsPipe,ExcelToJsonComponent,DynamicFilterComponent,ShowHideColumnsTableComponent,PdfConfigComponent,ProgressBarComponent,PdfAnalyzerComponent]})],t)}(),BackofficeCommonsComponent=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.commonService=e,o.cdRef=n,o.fullWidth=!1,o}return __extends(e,t),e.prototype.ngOnInit=function(){if(t.prototype.ngOnInit.call(this),this.fullWidth){var e=document.getElementById("mainContainer");e&&e.classList.remove("container")}},e.prototype.ngOnDestroy=function(){if(this.fullWidth){var t=document.getElementById("mainContainer");t&&t.classList.add("container")}},e.BEST_SCENARIO_COLUMN_ID="-6",e}(CommonListsComponent),DashboardCommonsComponent=function(){function t(t,e,n){this.commonService=t,this.cdRef=e,this.commonInfoService=n}return t.prototype.ngOnInit=function(){this.lVersionInfo=[]},t.prototype.addVersionProjectInfo=function(){this.lVersionInfo.push({name:"Proyecto Commons",version:this.commonsVersion,build:this.commonsBuildTimestamp}),this.lVersionInfo.push({name:"Proyecto Security",version:this.securityVersion,build:this.securityBuildTimestamp}),this.lVersionInfo.push({name:"Proyecto Util",version:this.utilVersion,build:this.utilBuildTimestamp})},t.prototype.createVersionAndBuildTimeProject=function(t,e){var n=this.createVersionAndBuildTime(t,e);console.log("VersionAndBuildTime-Project",n),this.version=n.version,this.buildTimestamp=n.buildTimes},t.prototype.createVersionAndBuildTimeCommons=function(t,e){var n=this.createVersionAndBuildTime(t,e);console.log("VersionAndBuildTime-Commons",n),this.commonsVersion=n.version,this.commonsBuildTimestamp=n.buildTimes},t.prototype.createVersionAndBuildTimeSecurity=function(t,e){var n=this.createVersionAndBuildTime(t,e);console.log("VersionAndBuildTime-Security",n),this.securityVersion=n.version,this.securityBuildTimestamp=n.buildTimes},t.prototype.createVersionAndBuildTimeUtil=function(t,e){var n=this.createVersionAndBuildTime(t,e);console.log("VersionAndBuildTime-Util",n),this.utilVersion=n.version,this.utilBuildTimestamp=n.buildTimes},t.prototype.createVersionAndBuildTime=function(t,e){var n,o;(n=null,t&&(n=t),o=null,e)&&(o=ngPliUtil.DateUtil.getMoment(e).utcOffset(0,!0).utcOffset(ngPliUtil.DateUtil.UTC_AMERICA_BOGOTA).format("DD MMM YYYY HH:mm"));return{version:n,buildTimes:o}},t}(),FrontofficeCommonsComponent=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.commonService=e,o.cdRef=n,o.toastDuration=1e4,o}return __extends(e,t),e.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this)},e.prototype.createApplicationBudgetTotalAmount=function(t,e,n,o,r,i){void 0===o&&(o=void 0),void 0===r&&(r=void 0),void 0===i&&(i=void 0);var a=this.createBudgetApplication(e,n,o,r,i);return e=a.budget,{applicationBudgetTotalAmount:{applicationBudgetTotal:a.applicationBudgetTotal,applicationId:t,creditAccepted:n},budget:e}},e.prototype.createBudgetApplication=function(t,e,n,o,r){void 0===n&&(n=void 0),void 0===o&&(o=void 0),void 0===r&&(r=void 0);var i=null==e||0==e,a=i?t.applicationProcess:t.legalizationProcess;return null==a||null==a?(n=null==n?0:n,o=null==o?0:o,r=null==r?0:r,a=new ngPliUtil.ApplicationBudgetTotal):(n=null==n?a.totalAmount:n,o=null==o?a.totalOwnFunds:o,r=null==r?a.totalFinancing:r),a.totalAmount=n,a.totalOwnFunds=o,a.totalFinancing=r,i?t.applicationProcess=a:t.legalizationProcess=a,{applicationBudgetTotal:a,budget:t}},e.prototype.validateCloseApplicationProcess=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.commonService.validateCloseApplicationProcess(this.promCodigo,this.stateId,t).toPromise()];case 1:return e=n.sent(),this.dateClose=e.closeApplicationDate,[2,new Promise((function(t){t(e.userAllowSave)}))]}}))}))},e}(CommonListsComponent),UploadDocumentsService=function(){function t(t,e){this.fileService=t,this.pppService=e}return t.prototype.initPpp=function(t){var e=this;return Observable.Observable.create((function(n){return t.promCodigo&&(e.dataFormApplication=t,e.promCodigo=t.promCodigo,e.pppService.getPromocionById(e.promCodigo).subscribe((function(t){t&&(e.patCodigo=t.pliPrograma.pliPatrocinador.patCodigo,e.progCodigo=t.pliPrograma.progCodigo,n.next(),n.complete())}))),{unsubscribe:function(){}}}))},t.prototype.uploading=function(t,e){var n=this;return Observable.Observable.create((function(o){return n.initPpp(e).subscribe((function(){var e=n.fileService.getPath(ngPliUtil.EProceso.CONVOCATORIA,n.patCodigo,n.progCodigo,n.promCodigo,n.dataFormApplication.applicationId,t.name);n.fileService.upload(e,t).subscribe((function(e){if(e){var n=new ngPliUtil.Archive;n.name=t.name,n.url=e,n.documentManagementProcess=!1,o.next(n),o.complete()}}),(function(t){console.error("Error trying to upload: ",t)}))})),{unsubscribe:function(){}}}))},t.ctorParameters=function(){return[{type:FileService},{type:PppService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject(FileService),core.ɵɵinject(PppService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__metadata("design:paramtypes",[FileService,PppService])],t)}(),ApplicationFillPercentageService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.send=function(t){return this.httpClient.post(this.environment.host.backend.queue+"applicationFillPercentage/send",t,this.headerJson)},t.prototype.sendMultiple=function(t){return this.httpClient.post(this.environment.host.backend.queue+"applicationFillPercentage/sendMultiple",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),CommitteePdfService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.send=function(t){return this.httpClient.post(this.environment.host.backend.queue+"committee-pdf/send",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),CommitteMoneyServiceService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getByOneCommittee=function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var r=new http.HttpParams;return r=(r=(r=(r=(r=r.set("promCode",String(t))).set("idCommittee",String(e))).set("keyGroupDimension",n[0])).set("keySegmentationDimension",n[1])).set("valueSegmentationDimension",n[2]),this.httpClient.get(this.environment.host.backend.backoffice+"committe-money/getByOneCommittee",{params:r=r})},t.prototype.getByAllCommittee=function(t,e,n){for(var o=[],r=3;r<arguments.length;r++)o[r-3]=arguments[r];var i=new http.HttpParams;return i=(i=(i=(i=(i=i.set("promCode",String(t))).set("keyGroupDimension",o[0])).set("keySegmentationDimension",o[1])).set("selectedStatusId",String(e))).set("negativeStatusId",String(n)),this.httpClient.get(this.environment.host.backend.backoffice+"committe-money/getByAllCommittee",{params:i=i})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),CommitteeSnapshotService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getSnapshotMetadata=function(t,e,n){return this.httpClient.get(this.environment.host.backend.backoffice+"committee-snapshot/getSnapshotMetadata?committeeId="+t+"&segmentation="+e+"&aggrupation="+n)},t.prototype.getSnapshotMetadataFindOne=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"committee-snapshot/getSnapshotMetadataFindOne?committeeId="+t)},t.prototype.getListByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"committee-snapshot/getListByPromCode?promCodigo="+t)},t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.backoffice+"committee-snapshot/getAll")},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"committee-snapshot/getById?id="+t)},t.prototype.getByName=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"committee-snapshot/getByName?name="+t)},t.prototype.getByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"committee-snapshot/getByPromCode?promCodigo="+t)},t.prototype.getByCommitteeId=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"committee-snapshot/getByCommitteeId?committeeId="+t)},t.prototype.getByCommitteeType=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"committee-snapshot/getByCommitteeType?committeeType="+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"committee-snapshot/save",t)},t.prototype.deleteByName=function(t){return this.httpClient.delete(this.environment.host.backend.backoffice+"committee-snapshot/deleteByName?name="+t)},t.prototype.deleteByPromCode=function(t){return this.httpClient.delete(this.environment.host.backend.backoffice+"committee-snapshot/deleteByPromCode?promCodigo="+t)},t.prototype.deleteByCommitteeId=function(t){return this.httpClient.delete(this.environment.host.backend.backoffice+"committee-snapshot/deleteByCommitteeId?committeeId="+t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),CreditScoreService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.calculateCodebtorsScore=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+"credit-score/calculateCodebtorsScore",{params:(new http.HttpParams).set("applicationId",e).set("promCodigo",String(t))})},t.prototype.calculateScore=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+"credit-score/calculateScore",e,{params:(new http.HttpParams).set("promCodigo",String(t))})},t.prototype.getCreditScoreDate=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+"credit-score/getCreditScoreDate",t,{params:(new http.HttpParams).set("promCodigo",String(e))})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),DataLetterSegmentationService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.generateDataLetterFromSnapshot=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"data-letter/generateDataLetterFromSnapshot",t,this.headerJson)},t.prototype.segment=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"data-letter/segment",t,this.headerJson)},t.prototype.findSegmentationByCommitteeIdAndCampaignIdAndActive=function(t,e,n){return this.httpClient.get(this.environment.host.backend.backoffice+"data-letter/findSegmentationByCommitteeIdAndCampaignIdAndActive",{params:(new http.HttpParams).set("idCommittee",t.toString()).set("idCampaign",e.toString()).set("active",n.toString())})},t.prototype.findDataLetterByCampaignId=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"data-letter/findByCampaignId",{params:(new http.HttpParams).set("idCampaign",t.toString())})},t.prototype.generateLetter=function(t,e,n){var o={promCodigo:t,campaignId:e,filter:n};return this.httpClient.post(this.environment.host.backend.backoffice+"data-letter/generateLetter",o,this.headerJson)},t.prototype.sendLetters=function(t,e,n,o){var r={test:t,campaignId:e,email:n,filter:o};return this.httpClient.post(this.environment.host.backend.queue+"letterCampaing",r,this.headerJson)},t.prototype.findLogs=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"data-letter/findLogs?idCampaign="+t)},t.prototype.getUniversities=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"data-letter/universities?idCampaign="+t)},t.prototype.getParagraphs=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"data-letter/paragraphs?promCodigo="+t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),DocumentValidationAttemptService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getByApplicationIdAndDocumentId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"getByApplicationIdAndDocumentId",{params:(new http.HttpParams).set("applicationId",t).set("configurationDocumentId",e.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"save",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),InitialRecordService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"initial-record/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"initialRecord/getById",{params:(new http.HttpParams).set("id",t)})},t.prototype.getByIdLight=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"initialRecord/getByIdLight",{params:(new http.HttpParams).set("id",t)})},t.prototype.getByPatCodigo=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"initialRecord/getByPatCodigo",{params:(new http.HttpParams).set("patCodigo",t.toString())})},t.prototype.getByUsername=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"initialRecord/getByUsername",{params:(new http.HttpParams).set("username",t)})},t.prototype.getByUsernameAndPatCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"initialRecord/getByUsernameAndPatCodigo",{params:(new http.HttpParams).set("username",t).set("patCodigo",e.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"initialRecord/save",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),LetterTaskMappingService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.findAllByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfLetterTaskMapping/getAllByPromCode",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfLetterTaskMapping/save",t,this.headerJson)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfLetterTaskMapping/saveAll",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),LegalizationService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.subjectValidateConfirmAppoiment=new rxjs.Subject}return t.prototype.getLegalizationSection=function(t){var e=new http.HttpParams;return e=e.set("applicationId",String(t)),this.httpClient.get(this.environment.host.backend.backoffice+"application/getLegalizationSection",{params:e})},t.prototype.updateLegalizationSection=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+"application/updateLegalizationSection?applicationId="+e,t)},t.prototype.getBudgetAppointment=function(t){var e=new http.HttpParams;return e=e.set("applicationId",String(t)),this.httpClient.get(this.environment.host.backend.backoffice+"legalization/getBudgetAppointment",{params:e})},t.prototype.getLegalization=function(t){var e=new http.HttpParams;return e=e.set("applicationId",String(t)),this.httpClient.get(this.environment.host.backend.backoffice+"legalization/getLegalization",{params:e})},t.prototype.getEnsurance=function(t){var e=new http.HttpParams;return e=e.set("applicationId",String(t)),this.httpClient.get(this.environment.host.backend.backoffice+"legalization/getEnsurance",{params:e})},t.prototype.saveAppointmentClosingAndStateUpdate=function(t){var e=t.applicationId,n=t.promCodigo,o=t.IdInteractionType,r=t.isPositiveState,i=t.pliUserUsername,a=t.survey,s=t.observations,c=t.formId;return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveAppointmentClosingAndStateUpdate",{applicationId:e,promCodigo:n,IdInteractionType:o,isPositiveState:r,survey:a,observations:s,pliUserUsername:i,formId:c})},t.prototype.saveAppointmentObservations=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveAppointmentObservations?applicationId="+t,e)},t.prototype.getLegalizationSectionBySectionKey=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+"application/getLegalizationSectionBySectionKey",{params:(new http.HttpParams).set("applicationId",String(t)).set("sectionKey",String(e))})},t.prototype.getSubjectValidateConfirmAppoiment=function(){return this.subjectValidateConfirmAppoiment.asObservable()},t.prototype.setSubjectValidateConfirmAppoiment=function(t){void 0===t&&(t=!1),this.subjectValidateConfirmAppoiment.next(t)},t.prototype.updateErrorsConfirmAppoiment=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveErrorsAppointment?applicationId="+t,e)},t.prototype.updateInfoLogginCodebtor=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveInfoLogginCodebtor?applicationId="+t,e)},t.prototype.saveUniversidadRecibeSeguro=function(t,e){var n={applicationId:t,universidadRecibeSeguro:e};return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveUniversidadRecibeSeguro",n,ngPliUtil.HEADER_JSON)},t.prototype.getGuarantees=function(t){var e=new http.HttpParams;return e=e.set("applicationId",String(t)),this.httpClient.get(this.environment.host.backend.backoffice+"legalization/getGuarantee",{params:e})},t.prototype.getCodebtorByIdentification=function(t,e){var n=new http.HttpParams;return n=(n=n.set("applicationId",String(t))).set("identification",String(e)),this.httpClient.get(this.environment.backend.frontoffice+"legalization/getCodebtorByIdentification",{params:n})},t.prototype.getCodebtorDocuments=function(t,e){var n=new http.HttpParams;return n=(n=n.set("applicationId",String(t))).set("identification",String(e)),this.httpClient.get(this.environment.backend.frontoffice+"legalization/getCodebtorDocuments",{params:n})},t.prototype.getCodebtorDocumentByConfigurationDocumentId=function(t,e,n){var o=new http.HttpParams;return o=(o=(o=o.set("applicationId",String(t))).set("identification",String(e))).set("configurationDocumentId",String(n)),this.httpClient.get(this.environment.backend.frontoffice+"legalization/getCodebtorDocumentByConfigurationDocumentId",{params:o})},t.prototype.getCodebtorCreditReviewerObservations=function(t,e){var n=new http.HttpParams;return n=(n=n.set("applicationId",String(t))).set("identification",String(e)),this.httpClient.get(this.environment.backend.frontoffice+"legalization/getCodebtorCreditReviewerObservations",{params:n})},t.prototype.saveCodebtor=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveCodebtor?applicationId="+t,e)},t.prototype.saveCodebtorFormData=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveCodebtorFormData?applicationId="+t,e)},t.prototype.saveCodebtorCreditReviewerObservation=function(t,e,n){return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveCodebtorCreditReviewerObservation?applicationId="+t+"?identification="+e,n)},t.prototype.saveCodebtorDocument=function(t,e,n){return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveCodebtorDocument?applicationId="+t+"?identification="+e,n)},t.prototype.saveCreditReviewerDocument=function(t,e,n){return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveCreditReviewerDocument?applicationId="+t+"?identification="+e,n)},t.prototype.updateCompletedFlag=function(t,e){return this.httpClient.put(this.environment.host.backend.backoffice+"legalization/updateCompletedFlag?completed="+e,t)},t.prototype.acceptConsultation=function(t,e){return this.httpClient.put(this.environment.host.backend.backoffice+"legalization/acceptConsultation?response="+e,t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),MigrationPlisService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.send=function(t){return this.httpClient.post(this.environment.host.backend.queue+"migration-plis/send",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),MigrationSurveyQueueService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.send=function(t){return this.httpClient.post(this.environment.host.backend.queue+"migration-segmentation-survey/send",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SummaryBudgetService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.sendSummaryBudgetQueue=function(t){return this.httpClient.post(this.environment.host.backend.queue+"summary-budget/send",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfAppointmentTypeService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfAppointmentType/getById?id="+t)},t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfAppointmentType/getByPromCodigo?promCodigo="+t)},t.prototype.getByAppointmentTypeId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfAppointmentType/getByAppointmentTypeId?appointmentTypeId="+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfAppointmentType/save",t)},t.prototype.getConfigCloningAppointment=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfAppointmentType/getConfigCloningAppointment",{params:(new http.HttpParams).set("oldPPP",t.toString()).set("newPPP",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfBudgetProgramTypeService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.url=this.environment.host.backend.configuration+"budgetProgramType/"}return t.prototype.getAllByPromCodigo=function(t){var e=(new http.HttpParams).set("promCodigo",String(t));return this.httpClient.get(this.url+"getAllByPromCodigo",{params:e})},t.prototype.getAllByPromCodigoLight=function(t){var e=(new http.HttpParams).set("promCodigo",String(t));return this.httpClient.get(this.url+"getAllByPromCodigoLight",{params:e})},t.prototype.save=function(t){return this.httpClient.post(this.url+"save",t)},t.prototype.getById=function(t){var e=(new http.HttpParams).set("id",String(t));return this.httpClient.get(this.url+"getById",{params:e})},t.prototype.delete=function(t){var e=(new http.HttpParams).set("id",String(t));return this.httpClient.delete(this.url+"delete",{params:e})},t.prototype.getConfigCloningBudgetProgramMap=function(t,e){var n=(new http.HttpParams).set("oldPPP",String(t)).set("newPPP",String(e));return this.httpClient.get(this.url+"getConfigCloningBudgetProgram",{params:n})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfConfigMinisiteService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfConfigMiniSite/save",t,this.headerJson)},t.prototype.saveMinisiteData=function(t){var e=t.configMiniSiteId,n=t.searchListId;return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/saveMinisiteData",{configMiniSiteId:e,searchListId:n},this.headerJson)},t.prototype.saveHeaderFooter=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfConfigMiniSite/saveHeaderFooter",t,this.headerJson)},t.prototype.findById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfConfigMiniSite/findById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.findHeaderFooter=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfConfigMiniSite/findHeaderFooter")},t.prototype.findAllByUserId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfConfigMiniSite/findAllByUserId",{params:(new http.HttpParams).set("idUser",t.toString())})},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfConfigMiniSite/delete?id="+t)},t.prototype.getDatatableSearchListByDtblSearchListId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"PliDatatableSearchListController/getDatatableSearchListByDtblSearchListId",{params:(new http.HttpParams).set("dtblSearchListId",t).set("type",e.toString())}).map((function(t){return t.sort((function(t,e){var n=t.recordSize,o=e.recordSize;return n<o?1:n>o?-1:0})),t}))},t.prototype.getByDataTablesParameters=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfConfigMiniSite/getByDataTablesParameters",t,this.headerJson)},t.prototype.saveAllDatatableSearchList=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"PliDatatableSearchListController/saveAllDatatableSearchList",t,this.headerJson)},t.prototype.getDatatableSearchListById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"PliDatatableSearchListController/getDatatableSearchListById",{params:(new http.HttpParams).set("id",t)})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfCommitteePdfConfigTableConfigService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommitteePdfConfigTableConfig/getAll")},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfCommitteePdfConfigTableConfig/save",t)},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommitteePdfConfigTableConfig/getById?id="+t)},t.prototype.getByPliCnfCommitteePdfConfig=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommitteePdfConfigTableConfig/getByPliCnfCommitteePdfConfig?pdfConfigId="+t)},t.prototype.getPdfConfigById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommitteePdfConfigTableConfig/getPdfConfigById?pdfConfigId="+t)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfCommitteePdfConfigTableConfig/delete?id="+t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfCommitteePdfGenStatusService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getByPdfConfigId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"committee-pdf-generation-status/getByPdfConfigId",{params:(new http.HttpParams).set("id",String(t))})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"committee-pdf-generation-status/save",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfCommitteeService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommittee/getAll")},t.prototype.getAllByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommittee/getAllByPromCode?promCodigo="+t)},t.prototype.getAllByPromCodeLight=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommittee/getAllByPromCodeLight?promCodigo="+t)},t.prototype.getAllTypeCommittee=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommittee/getAllTypeCommittee")},t.prototype.getAllByHavingVisualizationMode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommittee/getAllByHavingVisualizationMode?promCodigo="+t)},t.prototype.getAllWithNoInteraction=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommittee/getAllWithNoInteraction?promCodigo="+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfCommittee/save",t)},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommittee/getById?id="+t)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfCommittee/delete?id="+t)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfCommittee/saveAll",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfDynamicKeysAssignService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfDynamicKeysAssign/getByPromCodigo?promCodigo="+t)},t.prototype.getByPromCodigoAndCategoryId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfDynamicKeysAssign/getByPromCodigoAndCategoryId",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("categoryId",e.toString())})},t.prototype.getByPromCodigoAndListStaticKeyId=function(t,e){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfDynamicKeysAssign/getByPromCodigoAndListStaticKeyId",{promCodigo:t,lStaticKeyId:e},this.headerJson)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfDynamicKeysAssign/save",t)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfDynamicKeysAssign/saveAll",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfDocumentManagementService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfDocumentManagement/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfDocumentManagement/save",t,this.headerJson)},t.prototype.configCloningDocumentManagement=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfDocumentManagement/configCloningDocumentManagement",{params:(new http.HttpParams).set("oldPromCodigo",t.toString()).set("newPromCodigo",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfInformationSystemService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pli_cnf_information_system/getAll")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfLetterTemplateService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getListByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfLetterTemplate/getAllByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfLetterTemplate/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfLetterTemplate/save",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfLetterTemplate",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getConfigCloningLetterTemplate=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfLetterTemplate/getConfigCloningLetterTemplate",{params:(new http.HttpParams).set("oldPPP",t.toString()).set("newPPP",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),PliCnfLetterTemplateTypeService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfLetterTemplateType/getAll")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),PliCnfMigrationStatusPlisService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"pliCnfMigrationStatusPlis/save",t,ngPliUtil.HEADER_JSON)},t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.backoffice+"pliCnfMigrationStatusPlis/getAll")},t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"pliCnfMigrationStatusPlis/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getAllNotIn=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"pliCnfMigrationStatusPlis/getAllNotIn",t,ngPliUtil.HEADER_JSON)},t.prototype.getByApplicationId=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"pliCnfMigrationStatusPlis/getByApplicationId",{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.backoffice+"pliCnfMigrationStatusPlis/delete",{params:(new http.HttpParams).set("id",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfMigrationPlisFieldService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfMigrationPlisField/getByPromCodigo?promCodigo="+t)},t.prototype.getByPromCodigoAndCategoryId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfMigrationPlisField/getByPromCodigoAndCategoryId",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("categoryId",e.toString())})},t.prototype.getByPromCodigoAndListStaticKeyId=function(t,e){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfMigrationPlisField/getByPromCodigoAndListStaticKeyId",{promCodigo:t,lStaticKeyId:e},this.headerJson)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfMigrationPlisField/save",t)},t.prototype.configCloningMigrationConf=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfMigrationPlisField/configCloningMigrationConf",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfPageSectionFormService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.findByPromCodigoAndPageSectionId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfPageSectionForm/findByPromCodigoAndPageSectionId",{params:(new http.HttpParams).set("promCodigo",t).set("pageSectionId",e)})},t.prototype.findByPromCodigoAndformId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfPageSectionForm/findByPromCodigoAndformId",{params:(new http.HttpParams).set("promCodigo",t).set("formId",e)})},t.prototype.findByPromCodigoAndPageSectionKey=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfPageSectionForm/findByPromCodigoAndPageSectionKey",{params:(new http.HttpParams).set("promCodigo",t).set("pageSectionKey",e)})},t.prototype.getAllByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfPageSectionForm/getAllByPromCode",{params:(new http.HttpParams).set("promCodigo",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfPageSectionForm/save",t,this.headerJson)},t.prototype.deleteByPromCodigoAndPageSectionId=function(t,e){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfPageSectionForm/deleteByPromCodigoAndPageSectionId",{params:(new http.HttpParams).set("promCodigo",t).set("pageSectionId",e)})},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfPageSectionForm/saveAll",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfFormEditService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"formEdit/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getByIds=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"formEdit/getByIdIn",t)},t.prototype.getAllByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"formEdit/getAllByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"formEdit/save",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"formEdit/delete",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getByPageSection=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"formEdit/getByPageSection",{params:(new http.HttpParams).set("pageSection",t)})},t.prototype.getByPageSectionAndPromCode=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"formEdit/getByPageSectionAndPromCodigo",{params:(new http.HttpParams).set("pageSection",t).set("promCodigo",String(e))})},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"formEdit/saveAll",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfFormMultiaplicacionService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"formMulti/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getByPatCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"formMulti/getByPatCodigo",{params:(new http.HttpParams).set("patCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"formMulti/save",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"formMulti/delete",{params:(new http.HttpParams).set("id",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfProfileFormService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfProfileForm/save",t,this.headerJson)},t.prototype.deleteByProfileIdAndFormId=function(t,e){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfProfileForm/deleteByProfileIdAndFormId",{params:(new http.HttpParams).set("profileId",t).set("formId",e)})},t.prototype.deleteById=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfProfileForm/deleteById",{params:(new http.HttpParams).set("profileUserId",t)})},t.prototype.deleteByListId=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfProfileForm/deleteByListId",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfSurveyService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSurvey/save",t)},t.prototype.clone=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSurvey/clone",t)},t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSurvey/getAll")},t.prototype.getAllEnable=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSurvey/getAllEnable")},t.prototype.getAllSent=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSurvey/getAllSent")},t.prototype.getEnableByUsername=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSurvey/getEnableByUsername",{params:(new http.HttpParams).set("username",t)})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSurvey/getById",{params:(new http.HttpParams).set("id",String(t))})},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfSurvey",{params:(new http.HttpParams).set("id",String(t))})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfSurveyDocumentService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSurveyDocument/save",t)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSurveyDocument/saveAll",t)},t.prototype.getBySurveyId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSurveyDocument/getBySurveyId",{params:(new http.HttpParams).set("id",String(t))})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSurveyDocument/getById",{params:(new http.HttpParams).set("id",String(t))})},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfSurveyDocument",{params:(new http.HttpParams).set("id",String(t))})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfTaskGroupService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfTaskGroup/getAll")},t.prototype.getAllByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfTaskGroup/getAllByPromCode?promCodigo="+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfTaskGroup/save",t)},t.prototype.deleteAllByPromCode=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfTaskGroup/deleteAllByPromCode?promCodigo="+t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfTextCategoryService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfTextCategory/save",t,this.headerJson)},t.prototype.findById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfTextCategory/findById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.findAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfTextCategory/findAll")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfTypeTextService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfTypeText/save",t,this.headerJson)},t.prototype.findById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfTypeText/findById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.findAllByCategoryId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfTypeText/findAllByCategoryId",{params:(new http.HttpParams).set("categoryId",t.toString())})},t.prototype.findAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfTypeText/findAll")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfUserCalendarService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfUserCalendar/getById?id="+t)},t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfUserCalendar/getByPromCodigo?promCodigo="+t)},t.prototype.getByUsername=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfUserCalendar/getByUsername?username="+t)},t.prototype.getByCalendarId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfUserCalendar/getByCalendarId?calendarId="+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfUserCalendar/save",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfMigrationPlisFieldBudgetService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.saveBudget=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfMigrationPlisFieldBudget/saveBudget",t)},t.prototype.getBudgetByPromCodigo=function(t){return this.httpClient.get("\n\t\t\t"+this.environment.host.backend.configuration+"pliCnfMigrationPlisFieldBudget/getBudgetByPromCodigo?promCodigo="+t)},t.prototype.saveEquivalencePLICtoPLIS=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfMigrationPlisFieldBudget/saveEquivalencePlicToPlis",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliSegActionUserService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getActions=function(){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicMassiveAction/getActions")},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicMassiveAction/save",t)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicMassiveAction/saveAll",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),PromotionScoreService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.calculateScoresByApplicationIdList=function(t,e){var n=(new http.HttpParams).set("promCodigo",String(e));return this.httpClient.post(this.environment.host.backend.backoffice+"promotionScoreController/calculateScoresByApplicationIdList",t,{params:n})},t.prototype.calculatePromotionScoreByApplicationIdList=function(t,e){var n=(new http.HttpParams).set("promCodigo",String(e));return this.httpClient.post(this.environment.host.backend.backoffice+"promotionScoreController/calculatePromotionScoreByApplicationIdList",t,{params:n})},t.prototype.creditStudyClassification=function(t,e){var n=(new http.HttpParams).set("promCodigo",String(e));return this.httpClient.post(this.environment.host.backend.backoffice+"promotionScoreController/creditStudyClassification",t,{params:n})},t.prototype.getCreditStudyGroup=function(t,e){var n=(new http.HttpParams).set("promCodigo",String(e)).set("applicationId",t);return this.httpClient.get(this.environment.host.backend.backoffice+"promotionScoreController/getCreditStudyGroup",{params:n})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SurveyService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"survey/save",t)},t.prototype.updateState=function(t,e){return this.httpClient.put(this.environment.host.backend.frontoffice+"survey/updateState",null,{params:(new http.HttpParams).set("stateId",String(e)).set("surveyId",t)})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"survey/getById",{params:(new http.HttpParams).set("id",String(t))})},t.prototype.saveDocument=function(t,e,n){return this.httpClient.post(this.environment.host.backend.frontoffice+"survey/saveDocument",t,{params:(new http.HttpParams).set("pliCnfSurveyId",String(e)).set("username",n)})},t.prototype.getByUsernameAndPliCnfSurveyId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"survey/getByUsernameAndPliCnfSurveyId",{params:(new http.HttpParams).set("pliCnfSurveyId",String(t)).set("username",e)})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SurveyMetadataService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"survey-metadata/save",t)},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"survey-metadata/getByPliCnfSurveyId",{params:(new http.HttpParams).set("id",String(t))})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SurveyQueueService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.send=function(t){return this.httpClient.post(this.environment.host.backend.queue+"survey/send",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),VisualizationCommitteeService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.subjectCutlineName=new rxjs.Subject,this.subjectCommitteeName=new rxjs.BehaviorSubject(null)}return t.prototype.getByDataTablesParameters=function(t,e){var n=new http.HttpParams;return n=n.set("idCommittee",String(e)),this.httpClient.post(this.environment.host.backend.backoffice+"visualization-committee/getByDataTablesParameters",t,{params:n})},t.prototype.getGroupedByDataTablesParameters=function(t,e){var n=new http.HttpParams;return n=n.set("idCommittee",String(e)),this.httpClient.post(this.environment.host.backend.backoffice+"visualization-committee/getGroupedByDataTablesParameters",t,{params:n})},t.prototype.generateIndicator=function(t,e,n){var o=new http.HttpParams;return o=(o=o.set("idCommittee",String(e))).set("promCodigo",String(n)),this.httpClient.post(this.environment.host.backend.backoffice+"visualization-committee/generateGenericIndicator",t,{params:o})},t.prototype.getSegmentationValues=function(t,e){var n=new http.HttpParams;return n=(n=n.set("formId",String(t))).set("keyField",String(e)),this.httpClient.get(this.environment.host.backend.backoffice+"visualization-committee/getSegmentationValues",{params:n})},t.prototype.getByCommitteeId=function(t){var e=new http.HttpParams;return e=e.set("committeeId",String(t)),this.httpClient.get(this.environment.host.backend.backoffice+"committee-consult/getByCommitteeId",{params:e})},t.prototype.saveCommitteeConsult=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"committee-consult/save",t)},t.prototype.cloneCommitteeConsult=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+"committee-consult/cloneCommitteeConsult?committeeOrigin="+t+"&committeeTarget="+e,{})},t.prototype.getDataCommitteeName=function(){return this.subjectCommitteeName.asObservable()},t.prototype.dataCommitteeName=function(t){return this.subjectCommitteeName.next(t)},t.prototype.getDataCutlineName=function(){return this.subjectCutlineName.asObservable()},t.prototype.setDataCutlineName=function(t){return this.subjectCutlineName.next(t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfConfigurationCreditStudyService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCreditStudyConfig/getById?id="+t)},t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCreditStudyConfig/getByPromCodigo?promCodigo="+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfCreditStudyConfig/save",t)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfCreditStudyConfig/"+t)},t.prototype.getConfigCloningCreditStudy=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCreditStudyConfig/getConfigCloningCreditStudy",{params:(new http.HttpParams).set("oldPPP",t.toString()).set("newPPP",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfUniversityArticleService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfUniversityArticle")},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfUniversityArticle/"+t)},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfUniversityArticle/"+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfUniversityArticle/",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfCloningService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getCloningIdsByPromCodeDestiny=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCloning/getCloningIdsByPromCodeDestiny?promCodigo="+t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),CustomValidator=function(){function t(){}return t.match=function(t){return function(e){return e.value===t.value?null:{match:!0}}},t.matchValues=function(t,e){return function(n){return e.indexOf(Number(t.value))>=0&&!n.value?{matchvalues:!0}:null}},t.requiredIf=function(t,e){return function(n){if(null!=t&&null!=t){var o=n.value;if(t.value==e&&!o)return{requiredIf:!0}}return null}},t.mindate=function(t){return function(e){if(null!=t&&null!=t){var n=e.value,o=t.value,r=ngPliUtil.DateUtil.getDate(n),i=ngPliUtil.DateUtil.getDate(o);if(null!=r&&null!=i&&r.getTime()<i.getTime())return{mindate:!0}}return null}},t.maxdate=function(t){return function(e){if(null!=t&&null!=t){var n=e.value,o=t.value,r=ngPliUtil.DateUtil.getDate(n),i=ngPliUtil.DateUtil.getDate(o);if(null!=r&&null!=i&&r.getTime()>i.getTime())return{maxdate:!0}}return null}},t.number=function(){return function(t){return!t.value||ngPliUtil.NumberUtil.isNumber(t.value)?null:{number:!0}}},t.validNumberByCheck=function(t){return function(e){return null==t.value||!0!==t.value||e.value&&ngPliUtil.NumberUtil.isNumber(e.value)?null:{validnumberbycheck:!0}}},t.emailValidator=function(t){return t.value.match(/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/)?null:{invalidEmailAddress:!0}},t}(),VERSION={dirty:!0,raw:"v0.0.18-1853-gebd64a85-dirty",hash:"gebd64a85",distance:1853,tag:"v0.0.18",semver:{options:{loose:!1,includePrerelease:!1},loose:!1,raw:"v0.0.18",major:0,minor:0,patch:18,prerelease:[],build:[],version:"0.0.18"},suffix:"1853-gebd64a85-dirty",semverString:"0.0.18+1853.gebd64a85",version:"0.0.1321",buildTimestamp:"2022-02-07T21:09:53.528Z"},VersionCommons=function(){function t(){}return t.showVersion=function(){return VERSION.version},t.showBuildTimestamp=function(){return VERSION.buildTimestamp},t}();exports.ApplicationFillPercentageService=ApplicationFillPercentageService,exports.ApplicationService=ApplicationService,exports.ApplicationTagService=ApplicationTagService,exports.AuthenticationService=AuthenticationService,exports.BackofficeCommonsComponent=BackofficeCommonsComponent,exports.BudgetApplicationService=BudgetApplicationService,exports.BudgetService=BudgetService,exports.BudgetSimulationService=BudgetSimulationService,exports.CommitteMoneyServiceService=CommitteMoneyServiceService,exports.CommitteePdfService=CommitteePdfService,exports.CommitteeSnapshotService=CommitteeSnapshotService,exports.CommonInfoService=CommonInfoService,exports.CommonListsComponent=CommonListsComponent,exports.CommonService=CommonService,exports.ConfigurationCommonsComponent=ConfigurationCommonsComponent,exports.ConfigurationDocumentService=ConfigurationDocumentService,exports.ConfigurationMinisiteService=ConfigurationMinisiteService,exports.ConfigurationService=ConfigurationService,exports.ConfigurationTokenComponent=ConfigurationTokenComponent,exports.CreditScoreService=CreditScoreService,exports.CreditStudyService=CreditStudyService,exports.CubeService=CubeService,exports.CurrencyColfuturoFormatterDirective=CurrencyColfuturoFormatterDirective,exports.CurrencyColfuturoPipe=CurrencyColfuturoPipe,exports.CurrencyDecimalColfuturoFormatterDirective=CurrencyDecimalColfuturoFormatterDirective,exports.CurrencyDecimalColfuturoPipe=CurrencyDecimalColfuturoPipe,exports.CurrencyPrintColfuturoPipe=CurrencyPrintColfuturoPipe,exports.CustomValidator=CustomValidator,exports.DashboardCommonsComponent=DashboardCommonsComponent,exports.DataFormService=DataFormService,exports.DataLetterSegmentationService=DataLetterSegmentationService,exports.DocumentManagementService=DocumentManagementService,exports.DocumentService=DocumentService,exports.DocumentValidationAttemptService=DocumentValidationAttemptService,exports.DocumentaryTypeService=DocumentaryTypeService,exports.DynamicFilterComponent=DynamicFilterComponent,exports.EmailService=EmailService,exports.EvaluationService=EvaluationService,exports.ExcelToJsonComponent=ExcelToJsonComponent,exports.ExportExcelService=ExportExcelService,exports.FileService=FileService,exports.FormService=FormService,exports.FormUtil=FormUtil,exports.FormioUtil=FormioUtil,exports.FrontofficeCommonsComponent=FrontofficeCommonsComponent,exports.GlobalShowTaskService=GlobalShowTaskService,exports.GuaranteeDocumentService=GuaranteeDocumentService,exports.GuaranteeEnrollmentService=GuaranteeEnrollmentService,exports.GuaranteeService=GuaranteeService,exports.GuaranteeTokenComponent=GuaranteeTokenComponent,exports.HashService=HashService,exports.ImportDataService=ImportDataService,exports.InitialRecordService=InitialRecordService,exports.IntegrationADOService=IntegrationADOService,exports.InteractionApplicationUserService=InteractionApplicationUserService,exports.KeysAssignationService=KeysAssignationService,exports.LegalizationService=LegalizationService,exports.LetterCampaingService=LetterCampaingService,exports.LetterTaskMappingService=LetterTaskMappingService,exports.LogService=LogService,exports.MigrationPlisService=MigrationPlisService,exports.MigrationSurveyQueueService=MigrationSurveyQueueService,exports.NgPliCommonsModule=NgPliCommonsModule,exports.PageService=PageService,exports.PartnerService=PartnerService,exports.PartnerSystemService=PartnerSystemService,exports.PdfAnalyzerComponent=PdfAnalyzerComponent,exports.PdfAnalyzerService=PdfAnalyzerService,exports.PdfConfigComponent=PdfConfigComponent,exports.PdfGeneratorComponent=PdfGeneratorComponent,exports.PdfMergeVisualizerComponent=PdfMergeVisualizerComponent,exports.PdfVisualizerComponent=PdfVisualizerComponent,exports.PermissionService=PermissionService,exports.PliCnfAcuityFieldsService=PliCnfAcuityFieldsService,exports.PliCnfAppCardFilterService=PliCnfAppCardFilterService,exports.PliCnfAppointmentTypeService=PliCnfAppointmentTypeService,exports.PliCnfBudgetProgramTypeService=PliCnfBudgetProgramTypeService,exports.PliCnfBudgetService=PliCnfBudgetService,exports.PliCnfCloningService=PliCnfCloningService,exports.PliCnfCommitteePdfConfigTableConfigService=PliCnfCommitteePdfConfigTableConfigService,exports.PliCnfCommitteePdfGenStatusService=PliCnfCommitteePdfGenStatusService,exports.PliCnfCommitteeService=PliCnfCommitteeService,exports.PliCnfCommitteeVisualizationModeService=PliCnfCommitteeVisualizationModeService,exports.PliCnfConfigMinisiteService=PliCnfConfigMinisiteService,exports.PliCnfConfigurationCreditStudyService=PliCnfConfigurationCreditStudyService,exports.PliCnfDocumentManagementService=PliCnfDocumentManagementService,exports.PliCnfDynamicKeysAssignService=PliCnfDynamicKeysAssignService,exports.PliCnfEvaluationTaskService=PliCnfEvaluationTaskService,exports.PliCnfEvaluationTemplateService=PliCnfEvaluationTemplateService,exports.PliCnfFormEditService=PliCnfFormEditService,exports.PliCnfFormMultiaplicacionService=PliCnfFormMultiaplicacionService,exports.PliCnfGuaranteeDocumentsTemplateService=PliCnfGuaranteeDocumentsTemplateService,exports.PliCnfGuaranteeTokenService=PliCnfGuaranteeTokenService,exports.PliCnfHeaderService=PliCnfHeaderService,exports.PliCnfIndicatorService=PliCnfIndicatorService,exports.PliCnfInformationSystemService=PliCnfInformationSystemService,exports.PliCnfInteractionService=PliCnfInteractionService,exports.PliCnfLetterTemplateService=PliCnfLetterTemplateService,exports.PliCnfLetterTemplateTypeService=PliCnfLetterTemplateTypeService,exports.PliCnfLookAndFeelService=PliCnfLookAndFeelService,exports.PliCnfMenuFormService=PliCnfMenuFormService,exports.PliCnfMigrationPlisFieldBudgetService=PliCnfMigrationPlisFieldBudgetService,exports.PliCnfMigrationPlisFieldService=PliCnfMigrationPlisFieldService,exports.PliCnfMigrationStatusPlisService=PliCnfMigrationStatusPlisService,exports.PliCnfPageSectionFormService=PliCnfPageSectionFormService,exports.PliCnfPageSubProcessService=PliCnfPageSubProcessService,exports.PliCnfPdfsService=PliCnfPdfsService,exports.PliCnfProfileFormService=PliCnfProfileFormService,exports.PliCnfProfileUserService=PliCnfProfileUserService,exports.PliCnfProjectSummaryService=PliCnfProjectSummaryService,exports.PliCnfScenarioService=PliCnfScenarioService,exports.PliCnfSegmentationService=PliCnfSegmentationService,exports.PliCnfSnapshotTokenServices=PliCnfSnapshotTokenServices,exports.PliCnfStatusFlowInteractionService=PliCnfStatusFlowInteractionService,exports.PliCnfStatusFlowService=PliCnfStatusFlowService,exports.PliCnfSupportDocumentService=PliCnfSupportDocumentService,exports.PliCnfSurveyDocumentService=PliCnfSurveyDocumentService,exports.PliCnfSurveyPdfService=PliCnfSurveyPdfService,exports.PliCnfSurveyService=PliCnfSurveyService,exports.PliCnfTaskGroupService=PliCnfTaskGroupService,exports.PliCnfTextCategoryService=PliCnfTextCategoryService,exports.PliCnfTextOptionService=PliCnfTextOptionService,exports.PliCnfTextService=PliCnfTextService,exports.PliCnfTypeTextService=PliCnfTypeTextService,exports.PliCnfUniversityArticleService=PliCnfUniversityArticleService,exports.PliCnfUserCalendarService=PliCnfUserCalendarService,exports.PliCnfUserWorkspaceService=PliCnfUserWorkspaceService,exports.PliCnfValproKeysService=PliCnfValproKeysService,exports.PliCnfWorkspaceSegmentationService=PliCnfWorkspaceSegmentationService,exports.PliMultipleValueFilterService=PliMultipleValueFilterService,exports.PliPromocionUsernameService=PliPromocionUsernameService,exports.PliSegActionUserService=PliSegActionUserService,exports.PliSegmentationService=PliSegmentationService,exports.PliTagAssignmentService=PliTagAssignmentService,exports.PliTagService=PliTagService,exports.PliUserService=PliUserService,exports.PppService=PppService,exports.ProfileService=ProfileService,exports.ProgressBarComponent=ProgressBarComponent,exports.ProgressBarService=ProgressBarService,exports.PromotionScoreService=PromotionScoreService,exports.SegmentationService=SegmentationService,exports.SegmentationTokensComponent=SegmentationTokensComponent,exports.SegmentationTokensService=SegmentationTokensService,exports.SegmentationUserService=SegmentationUserService,exports.SelectPppComponent=SelectPppComponent,exports.SendApplicationService=SendApplicationService,exports.SesionFormService=SesionFormService,exports.SesionService=SesionService,exports.ShowHideColumnsTableComponent=ShowHideColumnsTableComponent,exports.SpinnerService=SpinnerService,exports.SponsorshipLetterService=SponsorshipLetterService,exports.StatusService=StatusService,exports.SummaryBudgetService=SummaryBudgetService,exports.SurveyMetadataService=SurveyMetadataService,exports.SurveyQueueService=SurveyQueueService,exports.SurveyService=SurveyService,exports.TasaCambioService=TasaCambioService,exports.ThousandsPipe=ThousandsPipe,exports.TokenComponent=TokenComponent,exports.TokenService=TokenService,exports.TokenTransformationService=TokenTransformationService,exports.TokensCalculatorComponent=TokensCalculatorComponent,exports.UniversityService=UniversityService,exports.UploadDocumentsService=UploadDocumentsService,exports.UserService=UserService,exports.VersionCommons=VersionCommons,exports.VisualizationCommitteeService=VisualizationCommitteeService,exports.ɵa=SnapshotTokenComponent,exports.ɵb=VERSION,Object.defineProperty(exports,"__esModule",{value:!0})}));
16
+ var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function __extends(t,e){function n(){this.constructor=t}extendStatics(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var __assign=function(){return(__assign=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function __rest(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n}function __decorate(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function __param(t,e){return function(n,o){e(n,o,t)}}function __metadata(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function __awaiter(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))}function __generator(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function __createBinding(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}function __exportStar(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function __values(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function __spread(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(__read(arguments[e]));return t}function __spreadArrays(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var o=Array(t),r=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o}function __await(t){return this instanceof __await?(this.v=t,this):new __await(t)}function __asyncGenerator(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(t,e||[]),i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(t){r[t]&&(o[t]=function(e){return new Promise((function(n,o){i.push([t,e,n,o])>1||s(t,e)}))})}function s(t,e){try{(n=r[t](e)).value instanceof __await?Promise.resolve(n.value.v).then(c,p):l(i[0][2],n)}catch(t){l(i[0][3],t)}var n}function c(t){s("next",t)}function p(t){s("throw",t)}function l(t,e){t(e),i.shift(),i.length&&s(i[0][0],i[0][1])}}function __asyncDelegator(t){var e,n;return e={},o("next"),o("throw",(function(t){throw t})),o("return"),e[Symbol.iterator]=function(){return this},e;function o(o,r){e[o]=t[o]?function(e){return(n=!n)?{value:__await(t[o](e)),done:"return"===o}:r?r(e):e}:r}}function __asyncValues(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),e={},o("next"),o("throw"),o("return"),e[Symbol.asyncIterator]=function(){return this},e);function o(n){e[n]=t[n]&&function(e){return new Promise((function(o,r){(function(t,e,n,o){Promise.resolve(o).then((function(e){t({value:e,done:n})}),e)})(o,r,(e=t[n](e)).done,e.value)}))}}}function __makeTemplateObject(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function __importStar(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function __importDefault(t){return t&&t.__esModule?t:{default:t}}function __classPrivateFieldGet(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function __classPrivateFieldSet(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}var PliCnfEvaluationTaskService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}var e;return e=t,t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfEvaluationTask/getByPromCodigo/"+t)},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfEvaluationTask/getById/"+t)},t.prototype.getByPromCodeAndId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfEvaluationTask/promCode/"+t+"/id/"+e)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfEvaluationTask/save",t)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfEvaluationTask/"+t)},t.prototype.getByPromCodigoAndNoSegmentation=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfEvaluationTask/getByPromCodigoAndNoSegmentation",{params:(new http.HttpParams).set("listPromCodigo",t.toString())})},t.prototype.getByPromCodigoAndEvaluator=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfEvaluationTask/getByPromCodigoAndEvaluator",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("evaluator",e)})},t.prototype.getByPromCodigoAndTypeAndVisible=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfEvaluationTask/getByPromCodigoAndTypeAndVisible",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("type",e.toString())})},t.prototype.getEncryptedTasks=function(t,n,o){var r=this;return new Promise((function(i,a){var s,c=localStorage.getItem(e.TASK_STORAGE);c&&(s=JSON.parse(c))[o]?i(s[o]):r.getByProfile(t,n,o).subscribe((function(t){if(t){var n=ngPliUtil.JwtUtil.parseJwt(t.encrypt);if(n&&n.tasks)return s?s[o]=n.tasks:s={},localStorage.setItem(e.TASK_STORAGE,JSON.stringify(s)),void i(n.tasks)}a("No se logro generar token de tareas por perfil")}),(function(t){a(t)}))}))},t.prototype.getByProfile=function(t,e,n){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfEvaluationTask/getByUserProfiles",{params:(new http.HttpParams).set("username",t).set("patCodigo",e).set("promCodigo",n)})},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfEvaluationTask/saveAll",t)},t.TASK_STORAGE="tokenTask",t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=e=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),FormUtil=function(){function t(){}return t.validateFormFields=function(e){Object.keys(e.controls).forEach((function(n){var o=e.get(n);o instanceof forms.FormControl?o.markAsTouched({onlySelf:!0}):o instanceof forms.FormGroup&&t.validateFormFields(o)}))},t.getInvalidControls=function(t){var e=[],n=t.controls;for(var o in n)n[o].invalid&&e.push(o);return e},t.hasErrors=function(t){return t&&t.errors&&(t.dirty||t.touched)},t.hasError=function(e,n){return t.hasErrors(e)&&e.errors[n]},t}(),CommonListsComponent=function(){function t(t,e){this.commonService=t,this.cdRef=e}return t.prototype.ngOnInit=function(){this.onCurrencyInit(),this.primeLocaleEs=ngPliUtil.primeLocaleEs},t.prototype.printCurrencyCode=function(t){return t.monCodigoIso+"-"+t.monMoneda},t.prototype.onCurrencyInit=function(){var t=this;this.commonService.onCurrencyChanged().subscribe((function(e){if(e)for(var n in t.lCurrency=e,t.lSICurrency=[],t.lCurrency){var o=t.lCurrency[n];t.lSICurrency.push({label:t.printCurrencyCode(o),value:o})}})),this.commonService.onCategoryChanged().subscribe((function(e){if(e)for(var n in t.lCategory=e,t.lSICategory=[],t.lCategory){var o=t.lCategory[n];t.lSICategory.push({label:o.rubRubro,value:o})}})),this.commonService.onLanguageChanged().subscribe((function(e){e&&(t.lLanguage=e)})),this.commonService.onExchangeRateChanged().subscribe((function(e){e&&(t.lExchangeRate=e,t.adjustmentIsoExchange())})),this.commonService.onProcessChanged().subscribe((function(e){if(e)for(var n in t.lProcess=e,t.lSIProcess=[],t.lProcess){var o=t.lProcess[n];t.lSIProcess.push({label:o.proNombre,value:o})}})),this.commonService.initValues()},t.prototype.adjustmentIsoExchange=function(){var t=[];for(var e in this.lExchangeRate){var n=[];void 0!==t[(r=this.lExchangeRate[e]).monedaOrigen.monCodigoIso]&&(n=t[r.monedaOrigen.monCodigoIso]),n[r.monedaDestino.monCodigoIso]=r,t[r.monedaOrigen.monCodigoIso]=n}if(t)for(var e in this.lIsoExchangeRate=[],t)for(var o in t[e]){var r=t[e][o];this.lIsoExchangeRate[e+"-"+o]=r.tcamTasaCambio}},t.prototype.hasErrors=function(t){return FormUtil.hasErrors(t)},t.prototype.hasError=function(t,e){return FormUtil.hasError(t,e)},t.prototype.isFormValid=function(t){return FormUtil.validateFormFields(t),!!t.valid||(console.log("Invalid controls: ",FormUtil.getInvalidControls(t)),!1)},t.prototype.copyMessage=function(t){ngPliUtil.UtilString.copyMessage(t)},t.prototype.p=function(t){return ngPliUtil.EPermission[t]},t.prototype.cloneObject=function(t){if(null==t||"object"!=typeof t)return t;var e=t.constructor();for(var n in t)t.hasOwnProperty(n)&&(e[n]=this.cloneObject(t[n]));return e},t.prototype.getActualDate=function(t){var e=this;return void 0===t&&(t=!1),t=void 0===t?!ngPliUtil.UtilString.isValid(this.actualDate):t,new Promise((function(n,o){t?e.commonService.getActualDate().subscribe((function(t){e.actualDate=t,n(t)}),(function(t){o(t)})):n(e.actualDate)}))},Object.defineProperty(t.prototype,"timeZoneBogota",{get:function(){return ngPliUtil.DateUtil.UTC_AMERICA_BOGOTA},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"utcBogota",{get:function(){return ngPliUtil.DateUtil.UTC_AMERICA_BOGOTA},enumerable:!0,configurable:!0}),t.LABEL_RECORDS_PER_PAGE="Registros por página",__decorate([core.Inject(core.LOCALE_ID),__metadata("design:type",String)],t.prototype,"locale",void 0),t}(),TasaCambioService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAllTasaCambioLightInDate=function(t){return this.httpClient.get(this.environment.host.backend.plis+"tasacambio/getAllTasaCambioLightInDate",{params:(new http.HttpParams).set("date",t)})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),HashService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getHash=function(t,e,n){var o=(new http.HttpParams).set("idPatrocinador",t).set("idPlataforma",e).set("idPatrocinadorPLIC",n);return this.httpClient.get(this.environment.host.backend.configuration+"hash",{params:o})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),AuthenticationService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.hashService=n,this.isLoginSubject=new rxjs.BehaviorSubject(ngPliUtil.AuthenticationUtil.hasToken())}return t.prototype.login=function(t){return localStorage.clear(),this.httpClient.post(this.environment.host.backend.configuration+"sesion/getByLoginAndSesion",t,ngPliUtil.HEADER_JSON)},t.prototype.getUserByLogin=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"sesion/getByLogin",t,ngPliUtil.HEADER_JSON)},t.prototype.getTokenByLogin=function(t){return this.httpClient.get(this.environment.host.backend.plis+"login/getSession",{params:(new http.HttpParams).set("login",t)})},t.prototype.logout=function(t){this.removeTokens(),window.location.href=t||this.environment.host.frontend.login},t.prototype.setToken=function(t){ngPliUtil.AuthenticationUtil.setToken(t),this.isLoginSubject.next(!0)},t.prototype.verifyToken=function(){this.isLoginSubject.next(ngPliUtil.AuthenticationUtil.verifyToken())},t.prototype.removeTokens=function(){localStorage.clear(),this.isLoginSubject.next(!1)},t.prototype.isAuthenticated=function(){return this.isLoginSubject.asObservable()},t.prototype.getHash=function(t,e,n){var o=this;return new Promise((function(r,i){o.hashService.getHash(t,e,n).subscribe((function(t){t&&t.hash?r(t.hash):i("No se pudo generar el hash")}),(function(t){return i("No se pudo generar el hash")}))}))},t.prototype.getLink=function(t){return __awaiter(this,void 0,void 0,(function(){var e,n,o,r,i;return __generator(this,(function(a){switch(a.label){case 0:e="",n=new URL(this.environment.host.frontend.login),o=n.searchParams.get("idPatrocinador"),r=n.searchParams.get("idPlataforma"),n.searchParams.append("idPatrocinadorPLIC",t),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.getHash(o,r,t)];case 2:return i=a.sent(),n.searchParams.set("hash",i),e=n.href,[3,4];case 3:return a.sent(),[3,4];case 4:return[2,e]}}))}))},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:HashService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(HashService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,HashService])],t)}(),StatusService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getById",{params:(new http.HttpParams).set("statusId",t.toString())})},t.prototype.getAllByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getAllByPromCode",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getAllByPromCodeAndName=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getAllByPromCodeAndName",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("name",e)})},t.prototype.getFinalStatusByStaticInteraction=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getFinalStatusByStaticInteraction",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("staticInteractionId",e.toString())})},t.prototype.getInitialStatusByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getInitialStatusByPromCode",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfStatus/save",t,ngPliUtil.HEADER_JSON)},t.prototype.getStatusByPromcodigoAndPageSection=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getStatusByPromcodigoAndPageSection",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("pageId",e.toString())})},t.prototype.getStatusByPromCodigoAndCategoryId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getStatusByPromCodigoAndCategoryId",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("categoryId",e.toString())})},t.prototype.getByInitialStatusAndPromCodigoAndCategoryId=function(t,e,n){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getByInitialStatusAndPromCodigoAndCategoryId",{params:(new http.HttpParams).set("initialStatus",t.toString()).set("promCodigo",e.toString()).set("categoryId",n.toString())})},t.prototype.getByPromCodigoAndFinalStatus=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getByPromCodigoAndFinalStatus",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("finalStatus",e.toString())})},t.prototype.getInitialStatusByStaticInteraction=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatus/getInitialStatusByStaticInteraction",{params:(new http.HttpParams).set("promCodigo",t).set("staticInteractionId",e)})},t.prototype.getConfigCloningStatusMap=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfStatus/getConfigCloningStatusMap",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),ConfigurationService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getActualDate=function(){return this.httpClient.get(this.environment.host.backend.configuration+"configuration/getActualDate")},t.prototype.getDate=function(t){return void 0===t&&(t=void 0),t=void 0===t?null:t,this.httpClient.post(this.environment.host.backend.configuration+"configuration/getDate",t,ngPliUtil.HEADER_JSON)},t.prototype.getFileByUrl=function(t,e){var n=new http.HttpHeaders;return n.set("Accept","application/pdf"),n.set("Authorization","Bearer "+ngPliUtil.AuthenticationUtil.getToken()),this.httpClient.get(this.environment.host.backend.configuration+"configuration/getFileByUrl",{params:(new http.HttpParams).set("url",t).set("name",e),headers:n,responseType:"blob"})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PppService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})},this.subjectPpp=new rxjs.BehaviorSubject(void 0),this.subjectListPpp=new rxjs.BehaviorSubject(void 0)}var e;return e=t,t.prototype.onChangePpp=function(){return this.subjectPpp.asObservable()},t.prototype.setPpp=function(t){t&&("string"==typeof t?t=ngPliUtil.NumberUtil.isNumber(t)?parseInt(t):0:"number"!=typeof t&&(t=0)),this.subjectPpp.next(t)},t.prototype.getListPatrocinador=function(){return this.httpClient.get(this.environment.host.backend.plis+"config/patrocinador/getAll")},t.prototype.getPatrocinadorById=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/patrocinador/getById",{params:(new http.HttpParams).set("patCodigo",t.toString())})},t.prototype.savePatrocinador=function(t,e){var n={pliPatrocinadorBefore:t,pliPatrocinador:e,pliUsuario:{usuLogin:ngPliUtil.AuthenticationUtil.getUsername()}};return this.httpClient.post(this.environment.host.backend.plis+"config/patrocinador/save",n,this.headerJson)},t.prototype.getListTipoPatrocinador=function(){return this.httpClient.get(this.environment.host.backend.plis+"config/tipo-patrocinador/getAll")},t.prototype.getListTipoPrograma=function(){return this.httpClient.get(this.environment.host.backend.plis+"config/tipo-programa/getAll")},t.prototype.getPaises=function(){return this.httpClient.get(this.environment.host.backend.plis+"pais/getAll")},t.prototype.getListProgramasBypatCodigo=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/programa/getAllByPatrocinador",{params:(new http.HttpParams).set("patCodigo",t.toString())})},t.prototype.getProgramaById=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/programa/getById",{params:(new http.HttpParams).set("progCodigo",t.toString())})},t.prototype.savePrograma=function(t,e){var n={pliProgramaBefore:t,pliPrograma:e,pliUsuario:{usuLogin:ngPliUtil.AuthenticationUtil.getUsername()}};return this.httpClient.post(this.environment.host.backend.plis+"config/programa/save",n,this.headerJson)},t.prototype.getListPromocionesByprogCodigo=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/promocion/getAllByPrograma",{params:(new http.HttpParams).set("progCodigo",t.toString())})},t.prototype.getListPromocionesBypatCodigo=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/promocion/getAllByPatrocinador",{params:(new http.HttpParams).set("patCodigo",t.toString())})},t.prototype.getListPromocionesBypatCodigoWithoutConfiguracion=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/promocion/getByPatrocinador/withoutConfiguracion",{params:(new http.HttpParams).set("patCodigo",t.toString())})},t.prototype.getPromocionById=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/promocion/getById",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.savePromocion=function(t,e){var n={pliPromocionBefore:t,pliPromocion:e,pliUsuario:{usuLogin:ngPliUtil.AuthenticationUtil.getUsername()}};return this.httpClient.post(this.environment.host.backend.plis+"config/promocion/save",n,this.headerJson)},t.prototype.getConfiguracionBypatCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.plis+"config/configuracion/getAllByPatrocinador",{params:(new http.HttpParams).set("patCodigo",t.toString()).set("cargarListas",e.toString())})},t.prototype.getConfiguracionById=function(t,e){return this.httpClient.get(this.environment.host.backend.plis+"config/configuracion/getById",{params:(new http.HttpParams).set("cconCodigo",t.toString()).set("cargarListas",e.toString())})},t.prototype.saveConfiguracion=function(t,e){var n={pliCnfConfiguracionBefore:t,pliCnfConfiguracion:e,pliUsuario:{usuLogin:ngPliUtil.AuthenticationUtil.getUsername()}};return this.httpClient.post(this.environment.host.backend.plis+"config/configuracion/save",n,this.headerJson)},t.prototype.updateConfiguracionPliPromocion=function(t,e){var n={cconCodigo:t,listaPromCodigo:e};return this.httpClient.put(this.environment.host.backend.plis+"config/promocion/updateConfigurationMassive",n,this.headerJson)},t.prototype.getListPpp=function(){var t=this;return setTimeout((function(){t.generate()}),300),this.subjectListPpp.asObservable()},t.prototype.getAvailablePromocion=function(t){return t||(t=0),this.httpClient.get(this.environment.host.backend.plis+"config/promocion/getAvailableByPatCodigo",{params:(new http.HttpParams).set("patCodigo",t.toString())})},t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.plis+"config/promocion/getAll")},t.prototype.getlPatrocinadorByToken=function(){var t,n,o,r,i,a,s=localStorage.getItem(e.TOKEN_PPP);if(s&&s.length){var c=ngPliUtil.JwtUtil.parseJwt(s);if(c&&c.ppp){var p=Array();try{for(var l=__values(c.ppp),d=l.next();!d.done;d=l.next()){var u=d.value,m=new ngPliUtil.PliPatrocinador;if(m.patCodigo=u.patCodigo,m.patNombre=u.patNombre,m.patNombreCorto=u.patNombreCorto,u.listaPliPrograma&&u.listaPliPrograma.length>0){m.lPliPrograma=Array();try{for(var h=(o=void 0,__values(u.listaPliPrograma)),g=h.next();!g.done;g=h.next()){var f=g.value,v=new ngPliUtil.PliPrograma;if(v.progCodigo=f.progCodigo,v.progNombre=f.progNombre,v.progNombreCorto=f.progNombreCorto,f.listaPliPromocion&&f.listaPliPromocion.length>0){v.lPliPromocion=Array();try{for(var y=(i=void 0,__values(f.listaPliPromocion)),C=y.next();!C.done;C=y.next()){var b=C.value,S=new ngPliUtil.PliPromocion;S.promCodigo=b.promCodigo,S.promNombre=b.promNombre,S.promNombreCorto=b.promNombreCorto,S.promFechaCreacion=b.promFechaCreacion,v.lPliPromocion.push(S)}}catch(t){i={error:t}}finally{try{C&&!C.done&&(a=y.return)&&a.call(y)}finally{if(i)throw i.error}}}m.lPliPrograma.push(v)}}catch(t){o={error:t}}finally{try{g&&!g.done&&(r=h.return)&&r.call(h)}finally{if(o)throw o.error}}}p.push(m)}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return p}}return null},t.prototype.getAllPromociones=function(){var t,n,o,r,i,a,s=[],c=localStorage.getItem(e.TOKEN_PPP);if(c&&c.length){var p=ngPliUtil.JwtUtil.parseJwt(c);if(p&&p.ppp){try{for(var l=__values(p.ppp),d=l.next();!d.done;d=l.next()){var u=d.value,m=new ngPliUtil.PliPatrocinador;if(m.patCodigo=u.patCodigo,m.patNombre=u.patNombre,m.patNombreCorto=u.patNombreCorto,u.listaPliPrograma&&u.listaPliPrograma.length>0){m.lPliPrograma=Array();try{for(var h=(o=void 0,__values(u.listaPliPrograma)),g=h.next();!g.done;g=h.next()){var f=g.value,v=new ngPliUtil.PliPrograma;if(v.progCodigo=f.progCodigo,v.progNombre=f.progNombre,v.progNombreCorto=f.progNombreCorto,f.listaPliPromocion&&f.listaPliPromocion.length>0){v.lPliPromocion=Array();try{for(var y=(i=void 0,__values(f.listaPliPromocion)),C=y.next();!C.done;C=y.next()){var b=C.value,S=new ngPliUtil.PliPromocion;S.promCodigo=b.promCodigo,S.promNombre=b.promNombre,S.promNombreCorto=b.promNombreCorto,S.promFechaCreacion=b.promFechaCreacion,s.push(S)}}catch(t){i={error:t}}finally{try{C&&!C.done&&(a=y.return)&&a.call(y)}finally{if(i)throw i.error}}}}}catch(t){o={error:t}}finally{try{g&&!g.done&&(r=h.return)&&r.call(h)}finally{if(o)throw o.error}}}}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return s}}return null},t.prototype.getPatCodigoByPromCodigo=function(t){var n,o,r,i,a,s,c=localStorage.getItem(e.TOKEN_PPP);if(c&&c.length){var p=ngPliUtil.JwtUtil.parseJwt(c);if(p&&p.ppp)try{for(var l=__values(p.ppp),d=l.next();!d.done;d=l.next()){var u=d.value;try{for(var m=(r=void 0,__values(u.listaPliPrograma)),h=m.next();!h.done;h=m.next()){var g=h.value;try{for(var f=(a=void 0,__values(g.listaPliPromocion)),v=f.next();!v.done;v=f.next()){if(v.value.promCodigo==t)return u.patCodigo}}catch(t){a={error:t}}finally{try{v&&!v.done&&(s=f.return)&&s.call(f)}finally{if(a)throw a.error}}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}}}catch(t){n={error:t}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}else;},t.prototype.getProgCodigoByPromCodigo=function(t){var n,o,r,i,a,s,c=localStorage.getItem(e.TOKEN_PPP);if(c&&c.length){var p=ngPliUtil.JwtUtil.parseJwt(c);if(p&&p.ppp)try{for(var l=__values(p.ppp),d=l.next();!d.done;d=l.next()){var u=d.value;try{for(var m=(r=void 0,__values(u.listaPliPrograma)),h=m.next();!h.done;h=m.next()){var g=h.value;try{for(var f=(a=void 0,__values(g.listaPliPromocion)),v=f.next();!v.done;v=f.next()){if(v.value.promCodigo==t)return g.progCodigo}}catch(t){a={error:t}}finally{try{v&&!v.done&&(s=f.return)&&s.call(f)}finally{if(a)throw a.error}}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}}}catch(t){n={error:t}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}else;},t.prototype.generate=function(){var t,n,o=this,r=localStorage.getItem(e.TOKEN_PPP);if(r&&r.length){var i=ngPliUtil.JwtUtil.parseJwt(r);i&&i.ppp&&this.subjectListPpp.next(i.ppp)}else{var a=ngPliUtil.AuthenticationUtil.getAuthorities();if(a&&a.length>0){var s=[];try{for(var c=__values(a),p=c.next();!p.done;p=c.next()){var l=p.value;s.push(l.patCodigo)}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}s&&this.httpClient.get(this.environment.host.backend.plis+"config/patrocinador/getLightByListPatrocinador",{params:(new http.HttpParams).set("patCodigos",s.toString())}).subscribe((function(t){t&&t.tokenPpp?(localStorage.setItem(e.TOKEN_PPP,t.tokenPpp),o.generate()):o.subjectListPpp.next([])}),(function(t){console.error("ERROR consulting ppp",t),o.subjectListPpp.next([])}))}}},t.prototype.getPPPInfoFromToken=function(){var t,n,o,r,i,a,s=localStorage.getItem(e.TOKEN_PPP),c=[];if(s&&s.length){var p=ngPliUtil.JwtUtil.parseJwt(s);if(p&&p.ppp)try{for(var l=__values(p.ppp),d=l.next();!d.done;d=l.next()){var u=d.value,m=new ngPliUtil.PliPatrocinador,h=[];try{for(var g=(o=void 0,__values(u.listaPliPrograma)),f=g.next();!f.done;f=g.next()){var v=f.value,y=new ngPliUtil.PliPrograma;y.progCodigo=v.progCodigo,y.progNombreCorto=v.progNombreCorto,y.progNombre=v.progNombre;var C=[];try{for(var b=(i=void 0,__values(v.listaPliPromocion)),S=b.next();!S.done;S=b.next()){var _=S.value,T=new ngPliUtil.PliPromocion;T.promCodigo=_.promCodigo,T.promNombreCorto=_.promNombreCorto,T.promNombre=_.promNombre,T.promAnio=_.promAnio,C.push(T)}}catch(t){i={error:t}}finally{try{S&&!S.done&&(a=b.return)&&a.call(b)}finally{if(i)throw i.error}}y.lPliPromocion=C,h.push(y)}}catch(t){o={error:t}}finally{try{f&&!f.done&&(r=g.return)&&r.call(g)}finally{if(o)throw o.error}}m.lPliPrograma=h,c.push(m)}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}}return c},t.TOKEN_PPP="tokenPpp",t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=e=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),CommonService=function(){function t(t,e,n,o,r,i){this.environment=t,this.httpClient=e,this.tasaCambioService=n,this.pppService=o,this.statusService=r,this.configurationService=i,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})},this.currencyChanged=new rxjs.BehaviorSubject(void 0),this.categoryChanged=new rxjs.BehaviorSubject(void 0),this.exchangeRateChanged=new rxjs.BehaviorSubject(void 0),this.languageChanged=new rxjs.BehaviorSubject(void 0),this.processChanged=new rxjs.BehaviorSubject(void 0),this.initValues()}return t.prototype.onLanguageChanged=function(){return this.languageChanged.asObservable()},t.prototype.onCurrencyChanged=function(){return this.currencyChanged.asObservable()},t.prototype.onCategoryChanged=function(){return this.categoryChanged.asObservable()},t.prototype.onExchangeRateChanged=function(){return this.exchangeRateChanged.asObservable()},t.prototype.onProcessChanged=function(){return this.processChanged.asObservable()},t.prototype.initValues=function(){this.searchLCurrency(),this.searchLCategory(),this.searchLExchangeRate(),this.searchLLanguage(),this.searchLProcess()},t.prototype.reloadValues=function(){localStorage.removeItem("lCurrency"),localStorage.removeItem("lCategory"),localStorage.removeItem("lExchangeRate"),localStorage.removeItem("lLanguage"),localStorage.removeItem("lProcess")},t.prototype.getLanguages=function(){var t=this;this.httpClient.get(this.environment.host.backend.plis+"idioma/getAll").subscribe((function(e){t.setLLanguage(e)}),(function(t){console.error("Error - getListCurrencies -El sistema no responde",t)}))},t.prototype.getCurrencies=function(){var t=this;this.httpClient.get(this.environment.host.backend.plis+"moneda/getAll").subscribe((function(e){t.setLCurrencies(e)}),(function(t){console.error("Error - getListCurrencies -El sistema no responde",t)}))},t.prototype.getCategories=function(){var t=this;this.httpClient.get(this.environment.host.backend.plis+"rubro/getAll",{params:(new http.HttpParams).set("cargarListas","true")}).subscribe((function(e){t.setLCategory(e)}),(function(t){console.error("Error - getCategories -El sistema no responde",t)}))},t.prototype.getExchangeRate=function(t){var e=this;this.tasaCambioService.getAllTasaCambioLightInDate(t).subscribe((function(t){e.setLExchangeRate(t)}),(function(t){console.error("Error - getExchangeRate -El sistema no responde",t)}))},t.prototype.getProcess=function(){var t=this;this.httpClient.get(this.environment.host.backend.plis+"common/getAllProcesos").subscribe((function(e){t.setLProcess(e)}),(function(t){console.error("Error - getProcess -El sistema no responde",t)}))},t.prototype.setLCurrencies=function(t){for(var e in t){var n=Object.assign(new ngPliUtil.Moneda,t[e]);t[e]=n}this.lCurrency=t;var o=this.lCurrency.slice();localStorage.setItem("lCurrency",JSON.stringify(o)),this.currencyChanged.next(o)},t.prototype.setLCategory=function(t){for(var e in t){var n=Object.assign(new ngPliUtil.Rubro,t[e]);t[e]=n}this.lCategory=t;var o=this.lCategory.slice();localStorage.setItem("lCategory",JSON.stringify(o)),this.categoryChanged.next(o)},t.prototype.setLLanguage=function(t){this.lLanguage=t;var e=this.lLanguage?this.lLanguage.slice():this.lLanguage;localStorage.setItem("lLanguage",JSON.stringify(e)),this.languageChanged.next(e)},t.prototype.setLExchangeRate=function(t){for(var e in t){var n=Object.assign(new ngPliUtil.TasaCambio,t[e]);t[e]=n}this.lExchangeRate=t;var o=this.lExchangeRate?this.lExchangeRate.slice():this.lExchangeRate;localStorage.setItem("lExchangeRate",JSON.stringify(o)),this.exchangeRateChanged.next(o)},t.prototype.setLProcess=function(t){for(var e in t){var n=Object.assign(new ngPliUtil.Proceso,t[e]);t[e]=n}this.lProcess=t;var o=this.lProcess?this.lProcess.slice():this.lProcess;localStorage.setItem("lProcess",JSON.stringify(o)),this.processChanged.next(o)},t.prototype.searchLCurrency=function(){var t=localStorage.getItem("lCurrency");t&&"undefined"!==t?this.setLCurrencies(JSON.parse(t)):this.getCurrencies()},t.prototype.searchLLanguage=function(){var t=localStorage.getItem("lLanguage");t&&"undefined"!==t?this.setLLanguage(JSON.parse(t)):this.getLanguages()},t.prototype.searchLCategory=function(){var t=localStorage.getItem("lCategory");t&&"undefined"!==t?this.setLCategory(JSON.parse(t)):this.getCategories()},t.prototype.searchLExchangeRate=function(){var t=!1,e=ngPliUtil.DateUtil.getMomentTimeZone(),n=localStorage.getItem("lExchangeRate"),o=[];if(n&&"undefined"!=n&&n.length>0){if((o=JSON.parse(n))&&o.length>0){var r=ngPliUtil.DateUtil.getFormatDateTimeZone(o[0].tcamFecha);ngPliUtil.DateUtil.isDayEqualString(e.format(),r)||(t=!0)}}else t=!0;t||!o||0==o.length?this.getExchangeRate(e.format("YYYY-MM-DD")+" 00:00:00"):this.setLExchangeRate(o)},t.prototype.searchLProcess=function(){var t=localStorage.getItem("lProcess");t&&"undefined"!==t?this.setLProcess(JSON.parse(t)):this.getProcess()},t.prototype.getBase64Pdf=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"pdf/getBase64Pdf",t,this.headerJson)},t.prototype.getBase64PdfList=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"pdf/getBase64PdfList",t,this.headerJson)},t.prototype.getBase64PdfByUrl=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"pdf/getBase64PdfByUrl",t,this.headerJson)},t.prototype.getBase64ImageByUrl=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"pdf/getBase64ImageByUrl",t,this.headerJson)},t.prototype.getActualDate=function(){return this.httpClient.get(this.environment.host.backend.configuration+"configuration/getActualDate")},t.prototype.validateCloseApplicationProcess=function(t,e,n){var o=(new http.HttpParams).set("promCodigo",t.toString()).set("appStateId",e.toString());return null!=n&&o.set("cnfIniStateId",n.toString()),this.httpClient.get(this.environment.host.backend.configuration+"configuration/validateCloseApplicationProcess",{params:o})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:TasaCambioService},{type:PppService},{type:StatusService},{type:ConfigurationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(TasaCambioService),core.ɵɵinject(PppService),core.ɵɵinject(StatusService),core.ɵɵinject(ConfigurationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,TasaCambioService,PppService,StatusService,ConfigurationService])],t)}(),BudgetService=function(){function t(t,e,n,o){this.environment=t,this.httpClient=e,this.authService=n,this.toastr=o,this.lGlobalBudgetChanged=new Subject.Subject,this.lGlobalBudgetCategoryChanged=new Subject.Subject,this.lGlobalBudgetWizardChanged=new Subject.Subject}return t.prototype.getListPresupuestoGlobal=function(t){var e=this;this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllPresupuestoGlobal",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("cargarListas","false")}).subscribe((function(t){if(t&&t.length>0)for(var n in t){var o=Object.assign(new ngPliUtil.PliCnfPresupuestoGlobal,t[n]);t[n]=o.fieldsValidation()}e.setListGlobalBudget(t)}),(function(t){e.toastr.error("El sistema no responde","Error!"),console.log("El sistema no responde",t)}))},t.prototype._getListPresupuestoGlobal=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllPresupuestoGlobal",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("cargarListas","false")})},t.prototype.savePresupuestoGlobal=function(t,e,n){var o={pliCnfPresupuestoGlobal:e,pliCnfPresupuestoGlobalBefore:t,pliUsuario:ngPliUtil.AuthenticationUtil.getPliUsuario(),patCodigo:n};return this.httpClient.post(this.environment.host.backend.plis+"config/presupuesto/save",o,ngPliUtil.HEADER_JSON)},t.prototype.setListGlobalBudget=function(t){this.lGlobalBudget=t,this.lGlobalBudgetChanged.next(t.slice())},t.prototype.getListGlobalBudget=function(){return this.lGlobalBudget.slice()},t.prototype.getListTipoPeriodo=function(){return this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllTipoPeriodo")},t.prototype.getListTipoPresupuesto=function(){return this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllTipoPresupuesto")},t.prototype.getAllTipoGeneracionPresupuesto=function(){return this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllTipoGeneracionPresupuesto")},t.prototype.getAllTipoCuentaDestino=function(){return this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllTipoCuentaDestino")},t.prototype.getListPresupuestoGlobalCategory=function(t){var e=this;this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllPresupuestoRubro",{params:(new http.HttpParams).set("cpreCodigo",t.toString())}).map((function(t){if(t&&t.length>0){for(var e in t){var n=Object.assign(new ngPliUtil.PliCnfPresupuestoGlobalRubro,t[e]);t[e]=n.fieldsValidation()}return t}return[]})).subscribe((function(t){e.setListGlobalBudgetCategory(t)}),(function(t){e.toastr.error("El sistema no responde","Error!"),console.log("El sistema no responde",t)}))},t.prototype.savePresupuestoGlobalCategory=function(t,e,n){var o={pliCnfPresupuestoGlobalRubro:e,pliCnfPresupuestoGlobalRubroBefore:t,pliUsuario:ngPliUtil.AuthenticationUtil.getPliUsuario(),patCodigo:n};return this.httpClient.post(this.environment.host.backend.plis+"config/presupuesto/saveByRubro",o,ngPliUtil.HEADER_JSON)},t.prototype.deletePresupuestoGlobalCategory=function(t){return this.httpClient.post(this.environment.host.backend.plis+"config/presupuesto/deleteByRubro",t,ngPliUtil.HEADER_JSON)},t.prototype.setListGlobalBudgetCategory=function(t){this.lGlobalBudgetCategory=t,this.lGlobalBudgetCategoryChanged.next(t)},t.prototype.getListGlobalBudgetCategory=function(){return this.lGlobalBudgetCategory},t.prototype.getListPresupuestoGlobalWizard=function(t){var e=this;this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllPresupuestoAsistente",{params:(new http.HttpParams).set("cpreCodigo",t.toString())}).map((function(t){if(t&&t.length>0){for(var e in t){var n=Object.assign(new ngPliUtil.PliCnfPresupuestoAsistente,t[e]);t[e]=n.fieldsValidation()}return t}return[]})).subscribe((function(t){e.setListGlobalBudgetWizard(t)}),(function(t){e.toastr.error("El sistema no responde","Error!"),console.log("El sistema no responde",t)}))},t.prototype.getAllPresupuestoAsistente=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllPresupuestoAsistente",{params:(new http.HttpParams).set("cpreCodigo",t.toString())})},t.prototype.savePresupuestoGlobalWizard=function(t,e,n){var o={pliCnfPresupuestoAsistente:e,pliCnfPresupuestoAsistenteBefore:t,pliUsuario:ngPliUtil.AuthenticationUtil.getPliUsuario(),patCodigo:n};return this.httpClient.post(this.environment.host.backend.plis+"config/presupuesto/saveAsistenteByRubro",o,ngPliUtil.HEADER_JSON)},t.prototype.setListGlobalBudgetWizard=function(t){this.lGlobalBudgetWizard=t,this.lGlobalBudgetWizardChanged.next(t)},t.prototype.getListGlobalBudgetWizard=function(){return this.lGlobalBudgetWizard},t.prototype.getBudgetWizardCategoryById=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getPresupuestoAsistenteById",{params:(new http.HttpParams).set("cpreasiCodigo",t.toString())})},t.prototype.isBudgetWizardUseCategory=function(t,e){return this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/validarUsoRubroEnPromocion",{params:(new http.HttpParams).set("cpreasiCodigo",t.toString()).set("rubCodigo",e.toString())})},t.prototype.updateAsistenteOrden=function(t){return this.httpClient.post(this.environment.host.backend.plis+"config/presupuesto/updateAsistenteOrden",t,ngPliUtil.HEADER_JSON)},t.prototype._getListPresupuestoGlobalCategory=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/presupuesto/getAllPresupuestoRubro",{params:(new http.HttpParams).set("cpreCodigo",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService},{type:ngxToastr.ToastrService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService),core.ɵɵinject(ngxToastr.ToastrService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService,ngxToastr.ToastrService])],t)}(),FormService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"form/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"form/getAll")},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"form/getById",{params:(new http.HttpParams).set("id",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"form/save",t,this.headerJson)},t.prototype.saveFormMultiPromCodigo=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"form/saveMultiaplicacionPromCod",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"form/delete",{params:(new http.HttpParams).set("id",t)})},t.prototype.getByPromCodigoAccordingToProfile=function(t,e,n){var o=(new http.HttpParams).set("promCodigo",t.toString()).set("patCodigo",e.toString()).set("formId",void 0!==n?n:"");return this.httpClient.get(this.environment.host.backend.configuration+"form/getByPromCodigoAndProfile",{params:o})},t.prototype.getByListPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"form/getByListPromCodigo",{params:(new http.HttpParams).set("listPromCodigo",t.toString())})},t.prototype.removeFromCacheByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"form/removeFromCacheByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.removeFromCacheByPromCodigoAndTitle=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"form/removeFromCacheByPromCodigoAndTitle",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("title",e)})},t.prototype.removeFromCacheByPromCodigoAndProfile=function(t,e,n,o){return this.httpClient.get(this.environment.host.backend.configuration+"form/removeFromCacheByPromCodigoAndProfile",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("patCodigo",e.toString()).set("formId",n).set("username",o)})},t.prototype.getByStateId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"form/getByStateId",{params:(new http.HttpParams).set("statusId",t)})},t.prototype.getConfigCloningFormMap=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"form/getConfigCloningFormMap",{params:(new http.HttpParams).set("oldFormPPP",t.toString()).set("newFormPPP",e.toString())})},t.prototype.getListFormProjectSummaryConfigByPromCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"form/getListFormProjectSummaryConfigByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("patCodigo",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),TokenService=function(){function TokenService(t,e,n,o){this.environment=t,this.httpClient=e,this.formService=n,this.currencyPipe=o}var TokenService_1;return TokenService_1=TokenService,TokenService.prototype.getFormFieldsByPromCode=function(t){var e=this;return new Promise((function(n,o){var r=null;e.formService.getByPromCodigo(t).subscribe((function(o){var i,a,s=o;s&&s[0]&&s[0].promCodigo&&s[0].promCodigo==t||n(r),r=[];try{for(var c=__values(s),p=c.next();!p.done;p=c.next()){var l=p.value,d=void 0;l.components?d=l.components:l.columns&&(d=l.columns),d&&ngPliUtil.UtilString.isValid(l.title)&&(r.push({title:{key:TokenService_1.getKeyFormulario(l.title),value:l.title,object:l},value:[]}),r[r.length-1].value=e.getComponenetForm([],d,null,!1,null))}}catch(t){i={error:t}}finally{try{p&&!p.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}n(r)}),(function(t){o(t)}))}))},TokenService.prototype.getFormFieldsByFormId=function(t){var e=this;return new Promise((function(n,o){var r=null;e.formService.getById(t).subscribe((function(t){var o,i,a=t;a&&a[0]||n(r),r=[];try{for(var s=__values(a),c=s.next();!c.done;c=s.next()){var p=c.value,l=void 0;p.components?l=p.components:p.columns&&(l=p.columns),l&&ngPliUtil.UtilString.isValid(p.title)&&(r.push({title:{key:TokenService_1.getKeyFormulario(p.title),value:p.title,object:p},value:[]}),r[r.length-1].value=e.getComponenetForm([],l,null,!1,null))}}catch(t){o={error:t}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}n(r)}),(function(t){o(t)}))}))},TokenService.prototype.getFormPanelsByPromCode=function(t){var e=this;return new Promise((function(n,o){var r=null;e.formService.getByPromCodigo(t).subscribe((function(o){var i,a,s=o;s&&s[0]&&s[0].promCodigo&&s[0].promCodigo==t||n(r),r=[];try{for(var c=__values(s),p=c.next();!p.done;p=c.next()){var l=p.value,d=void 0;l.components?d=l.components:l.columns&&(d=l.columns),d&&ngPliUtil.UtilString.isValid(l.title)&&(r.push({title:{key:TokenService_1.getKeyFormulario(l.title),value:l.title,object:l},value:[]}),r[r.length-1].value=e.getPanelComponenet([],d,null))}}catch(t){i={error:t}}finally{try{p&&!p.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}n(r)}),(function(t){o(t)}))}))},TokenService.prototype.getPanelComponenet=function(t,e,n){var o,r;try{for(var i=__values(e),a=i.next();!a.done;a=i.next()){var s=a.value;if("panel"===s.type)t.push(s);else if(s.components||s.columns){var c=void 0;s.components?c=s.components:s.columns&&(c=s.columns),t=this.getPanelComponenet(t,c,n)}}}catch(t){o={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return t},TokenService.prototype.getComponenetForm=function(t,e,n,o,r){var i,a;try{for(var s=__values(e),c=s.next();!c.done;c=s.next()){var p=c.value;if(p.components||p.columns){var l=void 0;p.components?(l=p.components,"editgrid"===p.type&&(o=!0,r=p.key)):p.columns&&(l=p.columns),p.type&&"panel"===p.type&&(n=p.title),t=this.getComponenetForm(t,l,n,o,r)}else p.panelName=n,p.editgrid=o,p.editGridKey=r,t.push(p)}}catch(t){i={error:t}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return t},TokenService.prototype.getFormEditGridFieldsByPromCode=function(t){var e=this;return new Promise((function(n,o){var r=null;e.formService.getByPromCodigo(t).subscribe((function(o){var i,a,s=o;s&&s[0]&&s[0].promCodigo&&s[0].promCodigo==t||n(r),r=[];try{for(var c=__values(s),p=c.next();!p.done;p=c.next()){var l=p.value,d=void 0;l.components?d=l.components:l.columns&&(d=l.columns),d&&ngPliUtil.UtilString.isValid(l.title)&&(r.push({title:{key:TokenService_1.getKeyFormulario(l.title),value:l.title,object:l},value:[]}),r[r.length-1].value=e.getEditGridComponenet([],d,null))}}catch(t){i={error:t}}finally{try{p&&!p.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}n(r)}),(function(t){o(t)}))}))},TokenService.prototype.getEditGridComponenet=function(t,e,n){var o,r;try{for(var i=__values(e),a=i.next();!a.done;a=i.next()){var s=a.value;if("editgrid"===s.type)s.panelName=n,t.push(s);else if(s.components||s.columns){var c=void 0;s.components?c=s.components:s.columns&&(c=s.columns),s.type&&"panel"===s.type&&(n=s.title),t=this.getEditGridComponenet(t,c,n)}}}catch(t){o={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return t},TokenService.prototype.getListByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"token/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},TokenService.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"token/getById",{params:(new http.HttpParams).set("id",t.toString())})},TokenService.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"token/delete",{params:(new http.HttpParams).set("id",t)})},TokenService.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"token/save",t,ngPliUtil.HEADER_JSON)},TokenService.getKeyFormulario=function(t){return ngPliUtil.UtilString.isValid(t)?ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_FORM)+ngPliUtil.UtilString.replaceAccentSpacesOthers(t).replace(/_/g,"-"):""},TokenService.prototype.getUniqueVerificationCode=function(t,e){return this.httpClient.get(this.environment.host.backend.documentsRepository+"documento/consultarCodigoUnico/"+t+"/"+e,{params:new http.HttpParams})},TokenService.prototype.copyDocumentInformationViewer=function(t,e,n,o,r){var i={codigoUnico:n,rutaDocumento:o,documentName:r};return this.httpClient.post(this.environment.host.backend.documentsRepository+"documento/adicionarDocumento/"+t+"/"+e,i,ngPliUtil.HEADER_JSON)},TokenService.getKeyBudget=function(){return ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_BUDGET)},TokenService.getKeyDocument=function(){return ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_DOCUMENTO)},TokenService.getKeyTask=function(){return ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_TASKL)},TokenService.getKeyStatic=function(){return ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_STATIC)},TokenService.getKeyCalculated=function(t){return ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_CALCULATED)+"_"+ngPliUtil.UtilString.replaceAccentSpacesOthers(t.name)},TokenService.getKeySnapshot=function(t){return ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_SNAPSHOT)+"_"+ngPliUtil.UtilString.replaceAccentSpacesOthers(t.name)},TokenService.getKeyGuarantee=function(t){return ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_GUARANTEE)+"_"+ngPliUtil.UtilString.replaceAccentSpacesOthers(t.name)},TokenService.getKeyType=function(t){return(t=(t=t.replace("{","").replace("}","")).substring(1,t.indexOf("_"))).startsWith(ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_FORM))?1:t.startsWith(ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_BUDGET))?2:t.startsWith(ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_STATIC))?3:t.startsWith(ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_CALCULATED))?4:t.startsWith(ngPliUtil.UtilString.replaceAccentSpacesOthers(TokenService_1.TOKEN_LABEL_TASKL))?5:null},TokenService.prototype.getValueFromFormField=function(t,e){if("object"==typeof e&&t.type){if("address"==t.type)return e.formatted_address;if("select"==t.type&&t.searchField&&e.hasOwnProperty(t.searchField))return e[t.searchField]}return e},TokenService.prototype.replaceToken=function(t,e,n){var o=null;if(e&&"#"==e[0]){var r=e.substring(1,e.indexOf("("));if("date"==r){var i=e.substring(e.indexOf("}")+1,e.indexOf(")"));i=i.trim().replace(/\"/g,"").replace(/\'/g,"");var a=ngPliUtil.DateUtil.getDate(n);o=a?ngPliUtil.DateUtil.getMoment(a).format(i):""}else if("number"==r){var s=Number(n);if(null==s||isNaN(s))console.log("El dato ["+n+"] para el token ["+e+"] tipo númerico no es valido"),o="";else{var c=e.substring(e.indexOf("}")+1,e.indexOf(")"));c=c.trim().replace(/\"/g,"").replace(/\'/g,""),o=this.currencyPipe.transform(s,this.locale,"",c)}}else console.log("tipo de token indefinido. [typeToken["+r+"]]")}else e&&"$"==e[0]?o=n:console.log("El token no es valido. [token["+e+"]]");return t&&null!==o&&(t=t.split(e).join(o)),t},TokenService.prototype.getListTokensByStringSegmentation=function(t){var e,n,o,r,i=t.match(/\${([^}]+)\}/g),a=t.match(/\#date[^)]+\)/g),s=t.match(/\#number[^)]+\)/g),c=[];a&&a.length>0&&s&&s.length>0?c=a.concat(s):a&&a.length>0?c=a.slice():s&&s.length>0&&(c=s.slice());var p=[];if(i)try{for(var l=__values(i),d=l.next();!d.done;d=l.next()){var u=d.value,m={key:u,value:u};if(c)try{for(var h=(o=void 0,__values(c)),g=h.next();!g.done;g=h.next()){var f=g.value;if(f.indexOf(u)>=0){m.value=f;break}}}catch(t){o={error:t}}finally{try{g&&!g.done&&(r=h.return)&&r.call(h)}finally{if(o)throw o.error}}p.push(m)}}catch(t){e={error:t}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}return p},TokenService.prototype.changeIdPropertiesOfObject=function(t,e){var n=[];return e.forEach((function(e){var o={};Object.keys(e).forEach((function(n){e.hasOwnProperty(n)&&t.forEach((function(t){t.idColumn.toString()===n&&(o[t.key]=e[n])}))})),o&&n.push(o)})),n},TokenService.prototype.generateHtmlByTokensAndData=function(t,e,n){var o=[];return e.forEach((function(e){var r={},i={html:t};Object.keys(e).forEach((function(t){n.forEach((function(n){t==n.key.replace("${","").replace("}","")&&(r[n.key]=e[t],i.html=i.html.replace(n.key,e[t]))}))})),o.push(i)})),o},TokenService.prototype.getListTokensByString=function(t){var e,n,o,r,i=t.match(/\${([^}]+)\}/g),a=t.match(/\#date[^)]+\)/g),s=t.match(/\#number[^)]+\)/g),c=[];a&&a.length>0&&s&&s.length>0?c=a.concat(s):a&&a.length>0?c=a.slice():s&&s.length>0&&(c=s.slice());var p=[];if(i)try{for(var l=__values(i),d=l.next();!d.done;d=l.next()){var u=d.value;if(null!==TokenService_1.getKeyType(u)){var m={key:u,value:u};if(c)try{for(var h=(o=void 0,__values(c)),g=h.next();!g.done;g=h.next()){var f=g.value;if(f.indexOf(u)>=0){m.value=f;break}}}catch(t){o={error:t}}finally{try{g&&!g.done&&(r=h.return)&&r.call(h)}finally{if(o)throw o.error}}p.push(m)}}}catch(t){e={error:t}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}return p},TokenService.prototype.nextValidPositionTokens=function(t,e){var n=t.indexOf("$",e),o=t.indexOf("#",e);return n<0&&o>=0?o:o<0&&n>=0||n<o?n:o},TokenService.prototype.replaceTokensFromListObjectPublic=function(t,e,n){var o=[];if(n)for(var r in n)o[r.toLowerCase()]=n[r];return this.replaceTokensFromListObject(t,e,o)},TokenService.prototype.replaceTokensFromListObject=function(t,e,n){if(!e||0==e.length)throw{message:"La formula del token "+t+" esta vacía",title:"Alerta!",error:"La formula del token "+t+" esta vacía. [formula["+e+"]]"};var o=e.toString();if(o.startsWith("file://"))return o;var r=this.getListTokensByString(o);if(0==r.length)return o;for(var i=0;i<r.length;i++){var a=void 0!==n[r[i].key]?n[r[i].key]:null,s=void 0;if(null==a&&null==(a=void 0!==n[s=r[i].key.replace("${","").replace("}","").toLowerCase()]?n[s]:null)&&(a=void 0!==n[s=r[i].key.replace("{","").replace("}","").split("_")[1].toLowerCase()]?n[s]:null),null==a&&(a=""),null!=a){var c=Number(a)?a:Array.isArray(a)?JSON.stringify(a):"'"+a+"'";o=this.replaceToken(o,r[i].value,c)}}return o},TokenService.prototype.validateFormula=function(lStaticToken,formulaName,formula){var e_12,_a,e_13,_b,e_14,_c,e_15,_d,evalFormula=!1,objectTokens=[];try{for(var lStaticToken_1=__values(lStaticToken),lStaticToken_1_1=lStaticToken_1.next();!lStaticToken_1_1.done;lStaticToken_1_1=lStaticToken_1.next()){var panel=lStaticToken_1_1.value;try{for(var _e=(e_13=void 0,__values(panel.value)),_f=_e.next();!_f.done;_f=_e.next()){var groupToken=_f.value;try{for(var _g=(e_14=void 0,__values(groupToken.value)),_h=_g.next();!_h.done;_h=_g.next()){var staticToken=_h.value;try{for(var staticToken_1=(e_15=void 0,__values(staticToken)),staticToken_1_1=staticToken_1.next();!staticToken_1_1.done;staticToken_1_1=staticToken_1.next()){var arrayTokenInfo=staticToken_1_1.value;objectTokens[arrayTokenInfo.key]=arrayTokenInfo.object&&"number"==arrayTokenInfo.object.type?"0":""}}catch(t){e_15={error:t}}finally{try{staticToken_1_1&&!staticToken_1_1.done&&(_d=staticToken_1.return)&&_d.call(staticToken_1)}finally{if(e_15)throw e_15.error}}}}catch(t){e_14={error:t}}finally{try{_h&&!_h.done&&(_c=_g.return)&&_c.call(_g)}finally{if(e_14)throw e_14.error}}}}catch(t){e_13={error:t}}finally{try{_f&&!_f.done&&(_b=_e.return)&&_b.call(_e)}finally{if(e_13)throw e_13.error}}}}catch(t){e_12={error:t}}finally{try{lStaticToken_1_1&&!lStaticToken_1_1.done&&(_a=lStaticToken_1.return)&&_a.call(lStaticToken_1)}finally{if(e_12)throw e_12.error}}try{formula=this.replaceTokensFromListObject(formulaName,formula,objectTokens)}catch(t){throw t}if(null!==formula)try{var result=formula.startsWith("file://")?formula:eval(formula);evalFormula=!0}catch(t){throw{message:"La formula no fue posible evaluar",title:"Alerta!",error:t}}return evalFormula},TokenService.prototype.getConfigCloningTokenMap=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"token/getConfigCloningTokenMap",{params:(new http.HttpParams).set("oldPPP",t.toString()).set("newPPP",e.toString())})},TokenService.SIGN_LETTER_TAG_ID="_sign-letter-tag-id",TokenService.TOKEN_LABEL_FORM="Frm",TokenService.TOKEN_LABEL_BUDGET="Presupuesto",TokenService.TOKEN_LABEL_CALCULATED="Calculado",TokenService.TOKEN_LABEL_SNAPSHOT="Snapshot",TokenService.TOKEN_LABEL_STATIC="Estático",TokenService.TOKEN_LABEL_DOCUMENTO="Documento",TokenService.TOKEN_LABEL_TASK="Tarea",TokenService.TOKEN_LABEL_TASKL="task",TokenService.TOKEN_LABEL_GUARANTEE="Garantia",TokenService.BUDGET_TOKENS_KEY_TOTAL_AMOUNT="totalAmount",TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_AMOUNT="applicationTotal",TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_OWN_FOUNDS="applicationOwnFounds",TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_FINANCING="applicationFinancing",TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_AMOUNT="legalizationTotal",TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_OWN_FOUNDS="legalizationOwnFounds",TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_FINANCING="legalizationFinancing",TokenService.BUDGET_TOKENS_KEY_INSURANCE_AMOUNT="insuranceAmount",TokenService.LEGALIZATION_OR_APPLICATION_TOTAL_FINANCING="leglizationOrApplicationTotalFinancing",TokenService.BUDGET_TOKENS_KEY_RESUME_CATEGORY_YEAR="resumeCategoryYear",TokenService.BUDGET_TOKENS_KEY_FECHA_FINANCING_START="fechaInicioFinanciacion",TokenService.BUDGET_TOKENS_KEY_FECHA_FINANCING_END="fechaFinFinanciacion",TokenService.BUDGET_TOKENS_DURATION_STUDIES="duracionEstudios",TokenService.BUDGET_TOKENS_FINANCING_DURATION="duracionFinanciacion",TokenService.STATIC_TOKENS_KEY_CODIGO_VERIFICACION="codigoVerificacion",TokenService.STATIC_TOKENS_KEY_A_QUIEN_VA_DIRIGIDO="aQuienVaDirigido",TokenService.STATIC_TOKENS_KEY_FECHA_ACTUAL="fechaActual",TokenService.STATIC_TOKENS_KEY_STATUS_NAME="statusName",TokenService.STATIC_TOKENS_KEY_PATROCINADOR="pliPatrocinador",TokenService.STATIC_TOKENS_KEY_PATROCINADOR_CORTO="pliPatrocinadorCorto",TokenService.STATIC_TOKENS_KEY_PROGRAMA="pliPrograma",TokenService.STATIC_TOKENS_KEY_PROGRAMA_CORTO="pliProgramaCorto",TokenService.STATIC_TOKENS_KEY_PROMOCION="pliPromocion",TokenService.STATIC_TOKENS_KEY_PROMOCION_CORTO="pliPromocionCorto",TokenService.STATIC_TOKENS_KEY_ANIO_PROMOCION="anioPromocion",TokenService.STATIC_TOKENS_KEY_ISO_MONEDA_BASE="isoMonedaBase",TokenService.STATIC_TOKENS_KEY_SALUDO_COMPLEMENTARIO="saludoComplementario",TokenService.STATIC_TOKENS_KEY_NUMBER_APPLICATION="numeroRadicado",TokenService.STATIC_TOKENS_KEY_USER_INITIALS="inicialesUsuario",TokenService.STATIC_TOKENS_KEY_LETTER_SIGN="firmaCarta",TokenService.STATIC_TOKENS_COMMITTEE_NAME="comiteNombre",TokenService.STATIC_TOKENS_COMMITTEE_SEGMENTATION="comiteSegmentacion",TokenService.STATIC_TOKENS_COMMITTEE_AGGRUPATION="comiteAgrupacion",TokenService.STATIC_TOKENS_COMMITTEE_CUTLINE_DATE="comiteFechaLinea",TokenService.STATIC_TOKENS_CONFIRM_LEGALIZATION_APPOINTMENT="confirmacionCita",TokenService.STATIC_TOKENS_CODEBTOR_DOCUMENT_NUMBER="numeroDocumentoCodeudor",TokenService.STATIC_TOKENS_CODEBTOR_DOCUMENT_TYPE="tipoDocumentoCodeudor",TokenService.STATIC_TOKENS_CODEBTOR_NAME="nombresCodeudor",TokenService.STATIC_TOKENS_CODEBTOR_LASTNAME="apellidosCodeudor",TokenService.STATIC_TOKENS_TYPE_CODEBTOR="tipoPersonaCodeudor",TokenService.STATIC_TOKENS_CODEBTOR_REVIEWER="revisorCodeudores",TokenService.STATIC_TOKENS_TOTAL_WEIGHTED="ponderadoTotal",TokenService.STATIC_TOKENS_CONSECUTIVE_GUARANTEE="consecutivoGarantias",TokenService.STATIC_TOKENS_DAY="dia",TokenService.STATIC_TOKENS_MONTH="mes",TokenService.STATIC_TOKENS_YEAR="ano",TokenService.STATIC_TOKENS_REPRESENTATIVE_NAME="nombresRepresentante",TokenService.STATIC_TOKENS_REPRESENTATIVE_LASTNAME="apellidosRepresentante",TokenService.STATIC_TOKENS_REPRESENTATIVE_DOCUMENT_NUMBER="cedulaRepresentante",TokenService.STATIC_TOKENS_CITY_SIGNATURE="ciudadFirma",TokenService.STATIC_TOKENS_USER_TYPE_CREDIT_STUDY="tipoUsuarioEstudioCredito",TokenService.STATIC_TOKENS_CODEBTOR_VEHICLES_QUANTITY="cantidadVehiculosCodeudor",TokenService.STATIC_TOKENS_CODEBTOR_ASSETS_QUANTITY="cantidadBienesCodeudor",TokenService.STATIC_TOKENS_LIST_CODEBTORS="listaCodeudores",TokenService.STATIC_TOKEN_INGRESO_CODEUDOR_HABEAS_DATA="ingresoCodeudorHabeasData",TokenService.STATIC_TOKEN_PDF_RESUMEN_CODEUDOR="pdfResumenCodeudor",TokenService.STATIC_TOKENS_QUANTITY_VEHICLE_BENEFICIARY="cantidadVehiculosSeleccionado",TokenService.STATIC_TOKENS_QUANTITY_ASSETS_BENEFICIARY="cantidadBienesSeleccionado",TokenService.STATIC_TOKENS_BEN_CODIGO="benCodigo",TokenService.STATIC_TOKEN_CREDIT_REVIEWER_OBSERVATIONS_CODEBTOR="creditReviewerObservationsCodebtor",TokenService.STATIC_TOKEN_CREDIT_REVIEWER_OBSERVATIONS="creditReviewerObservations",TokenService.STATIC_TOKENS=[{key:TokenService_1.STATIC_TOKENS_KEY_PATROCINADOR,label:"Patrocinador"},{key:TokenService_1.STATIC_TOKENS_KEY_PROGRAMA,label:"Programa"},{key:TokenService_1.STATIC_TOKENS_KEY_PROMOCION,label:"Promoción"},{key:TokenService_1.STATIC_TOKENS_KEY_ANIO_PROMOCION,label:"Año promoción"},{key:TokenService_1.STATIC_TOKENS_KEY_ISO_MONEDA_BASE,label:"ISO Moneda base"},{key:TokenService_1.STATIC_TOKENS_KEY_SALUDO_COMPLEMENTARIO,label:"Saludo complementario"},{key:TokenService_1.STATIC_TOKENS_KEY_CODIGO_VERIFICACION,label:"Código de verificación"},{key:TokenService_1.STATIC_TOKENS_KEY_A_QUIEN_VA_DIRIGIDO,label:"A quien va dirigido"},{key:TokenService_1.STATIC_TOKENS_KEY_FECHA_ACTUAL,label:"Fecha actual"},{key:TokenService_1.STATIC_TOKENS_KEY_STATUS_NAME,label:"Estado actual"},{key:TokenService_1.STATIC_TOKENS_KEY_NUMBER_APPLICATION,label:"Número radicado"},{key:TokenService_1.STATIC_TOKENS_KEY_USER_INITIALS,label:"Iniciales de usuario"},{key:TokenService_1.STATIC_TOKENS_KEY_LETTER_SIGN,label:"Firma de cartas"},{key:TokenService_1.STATIC_TOKENS_COMMITTEE_NAME,label:"Nombre comité"},{key:TokenService_1.STATIC_TOKENS_COMMITTEE_SEGMENTATION,label:"Segmentación comité"},{key:TokenService_1.STATIC_TOKENS_COMMITTEE_AGGRUPATION,label:"Agrupación comité"},{key:TokenService_1.STATIC_TOKENS_COMMITTEE_CUTLINE_DATE,label:"Fecha Línea de corte"},{key:TokenService_1.STATIC_TOKENS_CONFIRM_LEGALIZATION_APPOINTMENT,label:"Confirmación de cita"},{key:TokenService_1.STATIC_TOKENS_CODEBTOR_DOCUMENT_NUMBER,label:"Número de documento de codeudor"},{key:TokenService_1.STATIC_TOKENS_CODEBTOR_DOCUMENT_TYPE,label:"Tipo de documento de codeudor"},{key:TokenService_1.STATIC_TOKENS_CODEBTOR_NAME,label:"Nombres codeudor"},{key:TokenService_1.STATIC_TOKENS_CODEBTOR_LASTNAME,label:"Apellidos codeudor"},{key:TokenService_1.STATIC_TOKENS_TYPE_CODEBTOR,label:"Tipo de persona codeudor"},{key:TokenService_1.STATIC_TOKENS_CODEBTOR_VEHICLES_QUANTITY,label:"Cantidad vehiculos codeudor"},{key:TokenService_1.STATIC_TOKENS_CODEBTOR_ASSETS_QUANTITY,label:"Cantidad bienes codeudor"},{key:TokenService_1.STATIC_TOKENS_CODEBTOR_REVIEWER,label:"Revisor de codeudores"},{key:TokenService_1.STATIC_TOKENS_TOTAL_WEIGHTED,label:"Ponderado total"},{key:TokenService_1.STATIC_TOKENS_CONSECUTIVE_GUARANTEE,label:"Consecutivo de garantias"},{key:TokenService_1.STATIC_TOKENS_REPRESENTATIVE_NAME,label:"Nombres representante legal"},{key:TokenService_1.STATIC_TOKENS_REPRESENTATIVE_LASTNAME,label:"Apellidos representante legal"},{key:TokenService_1.STATIC_TOKENS_REPRESENTATIVE_DOCUMENT_NUMBER,label:"Cedula representante legal"},{key:TokenService_1.STATIC_TOKENS_USER_TYPE_CREDIT_STUDY,label:"Tipo usuario estudio crédito"},{key:TokenService_1.STATIC_TOKENS_DAY,label:"Dia"},{key:TokenService_1.STATIC_TOKENS_MONTH,label:"Mes"},{key:TokenService_1.STATIC_TOKENS_YEAR,label:"Año"},{key:TokenService_1.STATIC_TOKENS_CITY_SIGNATURE,label:"Ciudad de la firma"},{key:TokenService_1.STATIC_TOKENS_LIST_CODEBTORS,label:"Lista de codeudores"},{key:TokenService_1.STATIC_TOKEN_INGRESO_CODEUDOR_HABEAS_DATA,label:"Ingreso Codeudor Habeas Data"},{key:TokenService_1.STATIC_TOKEN_PDF_RESUMEN_CODEUDOR,label:"Pdf codeudor"},{key:TokenService_1.STATIC_TOKENS_QUANTITY_VEHICLE_BENEFICIARY,label:"Cantidad de vehículos del seleccionado"},{key:TokenService_1.STATIC_TOKENS_QUANTITY_ASSETS_BENEFICIARY,label:"Cantidad bienes del seleccionado"},{key:TokenService_1.STATIC_TOKENS_BEN_CODIGO,label:"Código beneficiario"},{key:TokenService_1.STATIC_TOKEN_CREDIT_REVIEWER_OBSERVATIONS,label:"Observaciones revisor financiero seleccionado"},{key:TokenService_1.STATIC_TOKEN_CREDIT_REVIEWER_OBSERVATIONS_CODEBTOR,label:"Observaciones revisor financiero codeudores"}],TokenService.excludedToken=[TokenService_1.STATIC_TOKENS_USER_TYPE_CREDIT_STUDY.toLowerCase(),TokenService_1.STATIC_TOKENS_CODEBTOR_VEHICLES_QUANTITY.toLowerCase(),TokenService_1.STATIC_TOKENS_CODEBTOR_ASSETS_QUANTITY.toLowerCase()],TokenService.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:FormService},{type:common.CurrencyPipe}]},TokenService.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new TokenService(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(FormService),core.ɵɵinject(common.CurrencyPipe))},token:TokenService,providedIn:"root"}),__decorate([core.Inject(core.LOCALE_ID),__metadata("design:type",String)],TokenService.prototype,"locale",void 0),TokenService=TokenService_1=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,FormService,common.CurrencyPipe])],TokenService),TokenService}(),PliCnfSnapshotTokenServices=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAllByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"snapshot-token/getByPromCodigo?promCodigo="+t)},t.prototype.getAllType=function(){return this.httpClient.get(this.environment.host.backend.configuration+"snapshot-token/getAllType")},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"snapshot-token/save",t)},t.prototype.getConfigCloningTokenSnapshotMap=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"snapshot-token/getConfigCloningTokenSnapshotMap",{params:(new http.HttpParams).set("oldPPP",t.toString()).set("newPPP",e.toString())})},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"snapshot-token/delete?id="+t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),ConfigurationDocumentService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}var e;return e=t,t.prototype.geListByPromCodigoAndTgdocCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getByPromCodigoAndTgdocCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("tgdocCodigo",e.toString())})},t.prototype.getListByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"configuration-document/save",t,this.headerJson)},t.prototype.getConfigCloningConDocumentMap=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getConfigCloningConDocumentMap",{params:(new http.HttpParams).set("oldPPP",t.toString()).set("newPPP",e.toString())})},t.prototype.updatePosition=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"configuration-document/updatePosition",t,this.headerJson)},t.prototype.getByTdlCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getByTdlCodigo",{params:(new http.HttpParams).set("tdlCodigo",t.toString())})},t.prototype.getByPromCodigoAndTdlCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getByPromCodigoAndTdlCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("tdlCodigo",e.toString())})},t.prototype.getListTipoGrupoDocumental=function(){return this.httpClient.get(this.environment.host.backend.plis+"config/documento/getTipoGrupoDocumental")},t.prototype.createDocumentName=function(t,e,n){var o=t&&t.tdlNombre?ngPliUtil.UtilString.replaceAccentSpacesOthers(t.tdlNombre):null,r=e?ngPliUtil.UtilString.replaceAccentSpacesOthers(e):null,i=n?ngPliUtil.UtilString.replaceAccentSpacesOthers(n):null,a=o?"_"+o:"";return a+=r?"_"+r:"",a=(a+=i?"_"+i:"").length>0?a.substring(1):""},t.prototype.getByPromCodigoAndProfile=function(t,e){var n=(new http.HttpParams).set("promCodigo",t.toString()).set("patCodigo",e.toString());return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getByPromCodigoAndProfile",{params:n})},t.prototype.getDocumentProfiles=function(t){var e=(new http.HttpParams).set("configurationDocumentId",t.toString());return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getDocumentProfiles",{params:e})},t.prototype.getDocumentsEncrypted=function(t,n){var o=this;return new Promise((function(r,i){var a,s=localStorage.getItem(e.DOCUMENT_STORAGE);s&&(a=JSON.parse(s))[n]?r(a[n]):o.getEncryptedByPromCodigoProfile(t,n).subscribe((function(t){if(t){var o=ngPliUtil.JwtUtil.parseJwt(t.encrypt);if(o&&o.documents)return a?a[n]=o.documents:a={},localStorage.setItem(e.DOCUMENT_STORAGE,JSON.stringify(a)),void r(o.documents)}i("No se logro generar token de tareas por perfil")}),(function(t){i(t)}))}))},t.prototype.getEncryptedByPromCodigoProfile=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getEncryptedByPromCodigoAndProfile",{params:(new http.HttpParams).set("patCodigo",t).set("promCodigo",e)})},t.prototype.saveProfiles=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"configuration-document/saveProfiles",t)},t.prototype.deleteProfileByIdAndFormId=function(t,e){var n=(new http.HttpParams).set("configurationDocumentId",e.toString()).set("profileId",t.toString());return this.httpClient.delete(this.environment.host.backend.configuration+"configuration-document/deleteProfileByIdAndFormId",{params:n})},t.prototype.deleteByListId=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"configuration-document/deleteByListId",t)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"configuration-document/saveAll",t,this.headerJson)},t.prototype.getByFormAssociationFormId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"configuration-document/getByFormAssociationFormId",{params:(new http.HttpParams).set("formId",t.toString())})},t.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO="espacio",t.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO_1="espacio1",t.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO_2="espacio2",t.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO_3="espacio3",t.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO_4="espacio4",t.STATIC_TOKEN_DOCUMENTARY_KEY_PROGRAMA_ORIGEN="PCBProgramaOrigen",t.STATIC_TOKEN_DOCUMENTARY_KEY_TIPO_DOCUMENTAL="tipoDocumental",t.STATIC_TOKEN_DOCUMENTARY_KEY_NOMBRES_APELLIDOS="nombresApellidos",t.STATIC_TOKEN_DOCUMENTARY_KEY_NUMERO_DOCUMENTO="numeroDocumento",t.STATIC_TOKEN_DOCUMENTARY_KEY_ANO_PROMOCION="anoPromocion",t.STATIC_TOKEN_DOCUMENTARY_KEY_PROMOCION="promocion",t.STATIC_TOKEN_DOCUMENTARY_KEY_PROGRAMA="programa",t.STATIC_TOKEN_DOCUMENTARY_KEY_PATROCINADOR="patrocinador",t.STATIC_TOKEN_DOCUMENTARY_KEY_FECHA_ACTUAL="fechaActual",t.STATIC_TOKEN_DOCUMENTARY_KEY_RUTA_DOCUMENTO="rutaDocumento",t.STATIC_TOKEN_DOCUMENTARY_KEY_CONSECUTIVO="consecutivo",t.STATIC_TOKEN_DOCUMENTARY_KEY_TIPO_ARCHIVO="tipoArchivo",t.STATIC_TOKEN_DOCUMENTARY_KEY_EMAIL="email",t.STATIC_TOKEN_DOCUMENTARY=[{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_TIPO_DOCUMENTAL,label:"Tipo documental",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_NOMBRES_APELLIDOS,label:"Nombres apellidos",knowSource:!1},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_NUMERO_DOCUMENTO,label:"Número documento",knowSource:!1},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO,label:"Espacio 1",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_ANO_PROMOCION,label:"Año promoción",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_FECHA_ACTUAL,label:"Fecha actual",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_RUTA_DOCUMENTO,label:"Ruta documento",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_CONSECUTIVO,label:"Consecutivo",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_TIPO_ARCHIVO,label:"Tipo archivo",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_EMAIL,label:"Email",knowSource:!1},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_PROGRAMA_ORIGEN,label:"Programa origen PCB",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_PROGRAMA,label:"Programa",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_PATROCINADOR,label:"Patrocinador",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_PROMOCION,label:"Promoción",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO_1,label:"Espacio 2",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO_2,label:"Espacio 3",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO_3,label:"Espacio 4",knowSource:!0},{key:e.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO_4,label:"Espacio 5",knowSource:!0}],t.DOCUMENT_STORAGE="tokenDocuments",t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=e=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),PliCnfGuaranteeTokenService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getAllByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfGuaranteeToken/getAllByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfGuaranteeToken/save",t)},t.prototype.getConfigCloningGuaranteeTokenMap=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfGuaranteeToken/getConfigCloningGuaranteeTokenMap",{params:(new http.HttpParams).set("oldPPP",t.toString()).set("newPPP",e.toString())})},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfGuaranteeToken/delete",{params:(new http.HttpParams).set("id",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),ConfigurationTokenComponent=function(t){function e(e,n,o,r,i,a,s,c,p,l,d){var u=t.call(this,o,n)||this;return u.toastrService=e,u.cdRef=n,u.commonService=o,u.pppService=r,u.router=i,u.budgetService=a,u.tokenService=s,u.snapshotTokenService=c,u.configurationDocumentService=p,u.pliCnfTaskService=l,u.pliCnfGuaranteeTokenService=d,u.showFrm=!1,u.showFrmMultiple=!1,u.showStatic=!1,u.showBudget=!1,u.showCalculated=!1,u.showCalculatedForm=!1,u.showSnapshot=!1,u.showSnapshotForm=!1,u.showDocument=!0,u.showTask=!0,u.showGuatantee=!1,u.showGuatanteeForm=!1,u.onStaticToken=new core.EventEmitter,u.lGuaranteeTokens=[],u.showAsTitle=!1,u.ready=!1,u.lStaticToken=[],u.lCalculatedToken=[],u.callBudgetService=!1,u.currencyPipe=new common.CurrencyPipe(u.locale),u}return __extends(e,t),e.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this),this.ready=!1,this.getTokenSnapshot(),this.getTokenGuarantee(),(this.showFrm||this.showFrmMultiple||this.showStatic||this.showBudget||this.showCalculated)&&this.initListTokens()},e.prototype.initListTokens=function(){this.promCodigo&&(this.patCodigo=this.pppService.getPatCodigoByPromCodigo(this.promCodigo),this.lStaticToken=[],this.lCalculatedToken=[],this.initListTokenForm())},e.prototype.initListTokenForm=function(){var t=this;this.tokenService.getFormFieldsByPromCode(this.promCodigo).then((function(e){var n,o,r,i;if(e){try{for(var a=__values(e),s=a.next();!s.done;s=a.next()){var c=s.value;c.tokenType=TokenService.TOKEN_LABEL_FORM;var p=[];try{for(var l=(r=void 0,__values(c.value)),d=l.next();!d.done;d=l.next()){var u=d.value;p.push(u),u.type&&"select"===u.type&&u.data&&u.data.url&&u.data.url.indexOf("getUniversitiesByName")>=0&&p.push({type:"select-attribute",label:"País",key:u.key+"_level1"})}}catch(t){r={error:t}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}c.value=p}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}Array.prototype.push.apply(t.lStaticToken,e)}t.initListTokenDocuments()}),(function(e){console.log("Error initListTokenForm-getFormFieldsByPromCode",e),t.toastrService.error("Error consultando tokens de formulario")}))},e.prototype.initListTokenDocuments=function(){var t=this;this.configurationDocumentService.getListByPromCodigo(this.promCodigo).subscribe((function(e){e&&(t.lStaticToken[t.lStaticToken.length]={title:{key:TokenService.getKeyDocument(),value:TokenService.TOKEN_LABEL_DOCUMENTO},tokenType:TokenService.TOKEN_LABEL_DOCUMENTO,value:[]},e.forEach((function(e){t.lStaticToken[t.lStaticToken.length-1].value.push({key:e.id+"_info",label:e.name})}))),t.initListTokenPresupuesto()}),(function(e){return t.toastrService.error("Error consultando la información de documentos")}))},e.prototype.initListTokenPresupuesto=function(){var t=this;this.budgetService.lGlobalBudgetChanged.subscribe((function(e){var n,o,r,i;if(t.callBudgetService&&(t.callBudgetService=!1,e)){var a=[];try{for(var s=__values(e),c=s.next();!c.done;c=s.next()){var p=c.value;(p.pliTipoPresupuesto.tpresCodigo===ngPliUtil.ETipoPresupuesto.PRIMARY||p.pliTipoPresupuesto.tpresCodigo===ngPliUtil.ETipoPresupuesto.SECONDARY)&&a.push(p)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}if(a&&Object.keys(a).length>0){t.lStaticToken[t.lStaticToken.length]={title:{key:TokenService.getKeyBudget(),value:TokenService.TOKEN_LABEL_BUDGET},tokenType:TokenService.TOKEN_LABEL_BUDGET,value:[]};try{for(var l=__values(a),d=l.next();!d.done;d=l.next()){var u=d.value,m=u.pliTipoPresupuesto.tpresCodigo;t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_FECHA_FINANCING_START,label:u.cpreNombre+" fecha inicio financiación"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_FECHA_FINANCING_END,label:u.cpreNombre+" fecha fin financiación"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_AMOUNT,label:"Convocatoria- "+u.cpreNombre+" total"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_OWN_FOUNDS,label:"Convocatoria- "+u.cpreNombre+" fondos propios"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_FINANCING,label:"Convocatoria- "+u.cpreNombre+" financiación"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_AMOUNT,label:"Legalización- "+u.cpreNombre+" total"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_OWN_FOUNDS,label:"Legalización- "+u.cpreNombre+" fondos propios"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_FINANCING,label:"Legalización- "+u.cpreNombre+" financiación"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_INSURANCE_AMOUNT,label:"Legalización- "+u.cpreNombre+" financiación + seguro"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.LEGALIZATION_OR_APPLICATION_TOTAL_FINANCING,label:"Financiación - "+u.cpreNombre+" legalización (+ seguro) o Convocatoria "}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_KEY_RESUME_CATEGORY_YEAR,label:u.cpreNombre+" resumen rubro y año"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_DURATION_STUDIES,label:u.cpreNombre+" duración de estudios en meses"}),t.lStaticToken[t.lStaticToken.length-1].value.push({key:m+"_"+TokenService.BUDGET_TOKENS_FINANCING_DURATION,label:u.cpreNombre+" duración de financiación en meses"})}}catch(t){r={error:t}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}t.initListTokenTasks()}})),this.budgetService.getListPresupuestoGlobal(this.promCodigo),this.callBudgetService=!0},e.prototype.initListTokenTasks=function(){var t=this;this.pliCnfTaskService.getByPromCodigo(this.promCodigo).subscribe((function(e){if(e){for(var n=[],o=0;o<e.length;o++)n.push(e[o]),n[o].formulaToken=t.camelize(t.eliminarDiacriticos(e[o].name))+"_"+e[o].id;t.lStaticToken[t.lStaticToken.length]={title:{key:TokenService.TOKEN_LABEL_TASKL,value:TokenService.TOKEN_LABEL_TASK},tokenType:TokenService.TOKEN_LABEL_TASK,value:[]},n.forEach((function(e){t.lStaticToken[t.lStaticToken.length-1].value.push({key:e.formulaToken,label:e.name})})),t.adjustStaticTokensInfo(),t.getTokenCalculated()}}))},e.prototype.adjustStaticTokensInfo=function(){var t,e,n,o,r,i,a,s,c,p,l,d;this.lStaticToken[this.lStaticToken.length]={title:{key:TokenService.getKeyStatic(),value:TokenService.TOKEN_LABEL_STATIC},tokenType:TokenService.TOKEN_LABEL_STATIC,value:TokenService.STATIC_TOKENS};try{for(var u=__values(this.lStaticToken),m=u.next();!m.done;m=u.next()){var h=m.value,g=[];if(h.tokenType==TokenService.TOKEN_LABEL_FORM){var f=null,v=null;try{for(var y=(n=void 0,__values(h.value)),C=y.next();!C.done;C=y.next()){var b=C.value;!this.showFrmMultiple&&b.editgrid&&!0===b.editgrid||(b.panelName&&(f=b.panelName),null!==f&&f!=v?g.push({title:{value:f},value:[]}):null===f&&0===g.length&&g.push({title:{value:h.title.value},value:[]}),g[g.length-1].value.push(b),v=f)}}catch(t){n={error:t}}finally{try{C&&!C.done&&(o=y.return)&&o.call(y)}finally{if(n)throw n.error}}}else{g.push({title:{value:h.title.value},value:[]});try{for(var S=(r=void 0,__values(h.value)),_=S.next();!_.done;_=S.next()){b=_.value;g[g.length-1].value.push(b)}}catch(t){r={error:t}}finally{try{_&&!_.done&&(i=S.return)&&i.call(S)}finally{if(r)throw r.error}}}h.value=g}}catch(e){t={error:e}}finally{try{m&&!m.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}try{for(var T=__values(this.lStaticToken),k=T.next();!k.done;k=T.next()){g=k.value;try{for(var P=(c=void 0,__values(g.value)),I=P.next();!I.done;I=P.next()){h=I.value;var E=0,A=0,w=[];w[A]=[];try{for(var O=(l=void 0,__values(h.value)),B=O.next();!B.done;B=O.next()){(b=B.value).type&&"button"===b.type||(w[A]||(w[A]=[]),g.tokenType,TokenService.TOKEN_LABEL_TASK,w[A].push({key:"${"+g.title.key+"_"+b.key+"}",value:b.label,object:b}),4==++E&&(A++,E=0))}}catch(t){l={error:t}}finally{try{B&&!B.done&&(d=O.return)&&d.call(O)}finally{if(l)throw l.error}}if(E>0)for(var j=E;j<4;j++)w[A].push({key:null,value:null});h.value=w}}catch(t){c={error:t}}finally{try{I&&!I.done&&(p=P.return)&&p.call(P)}finally{if(c)throw c.error}}}}catch(t){a={error:t}}finally{try{k&&!k.done&&(s=T.return)&&s.call(T)}finally{if(a)throw a.error}}this.onStaticToken.emit(this.lStaticToken),localStorage.setItem("lStaticToken",JSON.stringify(this.lStaticToken))},e.prototype.getTokenCalculated=function(){var t=this;this.tokenService.getListByPromCodigo(this.promCodigo).subscribe((function(e){t.lCalculatedToken=e,t.ready=!0}),(function(e){console.log("Error getTokenCalculated -getListByPromCodigo",e),t.toastrService.error("Error el formulario")}))},e.prototype.getTokenSnapshot=function(){var t=this;this.showSnapshot&&this.snapshotTokenService.getAllByPromCode(this.promCodigo).subscribe((function(e){t.snapShotTokens=e,t.ready=!0}))},e.prototype.getTokenGuarantee=function(){var t=this;this.showGuatantee&&this.pliCnfGuaranteeTokenService.getAllByPromCodigo(this.promCodigo).subscribe((function(e){t.lGuaranteeTokens=e,t.ready=!0}),(function(e){t.toastrService.error("Error al obtener los token de garantias","Error")}))},e.prototype.eliminarDiacriticos=function(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")},e.prototype.camelize=function(t){return t.trim().split(" ").map((function(t){return t.trim()})).map((function(t){return t[0].toUpperCase()+t.substring(1)})).join("")},e.prototype.delete=function(t){var e=this;confirm("¿Está seguro que desea eliminar el token "+t.name+"?")&&this.tokenService.delete(t.id).subscribe((function(t){e.toastrService.success("El token fué eliminada exitosamente"),e.getTokenCalculated()}),(function(t){e.toastrService.error("Error al intentar eliminar el token")}))},e.prototype.labelCalculated=function(t){return"${"+TokenService.getKeyCalculated(t)+"}"},e.prototype.labelSnapshot=function(t){return"${"+TokenService.getKeySnapshot(t)+"}"},e.prototype.labelGuarantee=function(t){return"${"+TokenService.getKeyGuarantee(t)+"}"},e.prototype.initForm=function(t){this.tokenSelected=null==t?new ngPliUtil.Token:Object.assign(new ngPliUtil.Token,JSON.parse(JSON.stringify(t))),this.tokenSelected.promCodigo||(this.tokenSelected.promCodigo=this.promCodigo),this.controlName=new forms.FormControl(this.tokenSelected.name,forms.Validators.required),this.controlFormula=new forms.FormControl(this.tokenSelected.formula,forms.Validators.required),this.frmToken=new forms.FormGroup({controlName:this.controlName,controlFormula:this.controlFormula})},e.prototype.resolveKeyCalculatedToken=function(){return ngPliUtil.UtilString.replaceAccentSpacesOthers(this.tokenSelected.name)},e.prototype.save=function(){var t,e,n=this;if(this.isFormValid(this.frmToken)){if(this.lCalculatedToken&&this.lCalculatedToken.length>0)try{for(var o=__values(this.lCalculatedToken),r=o.next();!r.done;r=o.next()){var i=r.value;if(ngPliUtil.UtilString.replaceAccentSpacesOthers(i.name)===ngPliUtil.UtilString.replaceAccentSpacesOthers(this.tokenSelected.name)&&(!this.tokenSelected.id||this.tokenSelected.id!==i.id))return void this.toastrService.warning("El token "+i.name+" tiene la misma llave","Alerta!")}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}var a=!1;try{a=this.tokenService.validateFormula(this.lStaticToken,this.tokenSelected.name,this.tokenSelected.formula)}catch(t){return console.error(t.error),void this.toastrService.error(t.message,t.title)}if(!a)return void this.toastrService.error("No se logro evaluar la formular","Error!");this.tokenService.save(this.tokenSelected).subscribe((function(t){n.toastrService.success("Se ha guardado exitosamente ","Guardado exitoso!"),n.tokenSelected=null,n.getTokenCalculated()}),(function(t){console.error(t),n.toastrService.error("Error al intentar guardar el token","Error!")}))}},e.prototype.cancel=function(){this.tokenSelected=null},e.prototype.isGroupFrm=function(t){return t===TokenService.TOKEN_LABEL_FORM},e.prototype.isGroupStatic=function(t){return t===TokenService.TOKEN_LABEL_STATIC},e.prototype.isGroupBudget=function(t){return t===TokenService.TOKEN_LABEL_BUDGET},e.prototype.isGroupDocument=function(t){return t===TokenService.TOKEN_LABEL_DOCUMENTO},e.prototype.isGroupTask=function(t){return t===TokenService.TOKEN_LABEL_TASK},e.prototype.validateVisibility=function(t){return this.isGroupFrm(t)&&this.showFrm||this.isGroupStatic(t)&&this.showStatic||this.isGroupBudget(t)&&this.showBudget||this.isGroupDocument(t)&&this.showDocument||this.isGroupTask(t)&&this.showTask},e.ctorParameters=function(){return[{type:ngxToastr.ToastrService},{type:core.ChangeDetectorRef},{type:CommonService},{type:PppService},{type:router.Router},{type:BudgetService},{type:TokenService},{type:PliCnfSnapshotTokenServices},{type:ConfigurationDocumentService},{type:PliCnfEvaluationTaskService},{type:PliCnfGuaranteeTokenService}]},__decorate([core.Input(),__metadata("design:type",Number)],e.prototype,"promCodigo",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showFrm",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showFrmMultiple",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showStatic",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showBudget",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showCalculated",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showCalculatedForm",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showSnapshot",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showSnapshotForm",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showDocument",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showTask",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showGuatantee",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showGuatanteeForm",void 0),__decorate([core.Output(),__metadata("design:type",Object)],e.prototype,"onStaticToken",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showAsTitle",void 0),__decorate([core.Inject(core.LOCALE_ID),__metadata("design:type",String)],e.prototype,"locale",void 0),e=__decorate([core.Component({selector:"pli-configuration-token",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áticos\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áticos\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\x3c!-- <input type="input" class="form-control" name="formula" id="formula" placeholder="Fórmula"\r\n formControlName="formula" [(ngModel)]="tokenSelected.formula" /> --\x3e\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órmula 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',styles:[""]}),__metadata("design:paramtypes",[ngxToastr.ToastrService,core.ChangeDetectorRef,CommonService,PppService,router.Router,BudgetService,TokenService,PliCnfSnapshotTokenServices,ConfigurationDocumentService,PliCnfEvaluationTaskService,PliCnfGuaranteeTokenService])],e)}(CommonListsComponent),DynamicFilterComponent=function(){function t(t,e){this.cdRef=t,this.commonService=e,this.searchFilter=new core.EventEmitter}return t.prototype.ngOnInit=function(){},t.prototype.ngOnChanges=function(t){var e=t.comboColumnWork;e&&e.currentValue&&(this.comboColumnWork=e.currentValue,this.active=!0,this.lSegFilter&&0!=this.lSegFilter.length||this.addFilter());var n=t.lSegColumn;n&&n.currentValue&&(this.lSegColumn=n.currentValue,this.loadMapColumn())},t.prototype.loadMapColumn=function(){var t,e;this.mapSegColumnById=new Map;try{for(var n=__values(this.lSegColumn),o=n.next();!o.done;o=n.next()){var r=o.value;this.mapSegColumnById.set(r.idColumn.toString(),r)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},t.prototype.onSelectColumn=function(t){if(t.idColumn){var e=this.getColumnById(t.idColumn.toString());e&&(t.idColumn=e.idColumn,t.type=e.type,t.label=e.label,t.key=e.key),Number(t.type)==this.getTypeNumber()||Number(t.type)==this.getTypeDate()?t.operator="1":t.operator="3",console.log("filter",t)}},t.prototype.getTypeText=function(){return ngPliUtil.ETypeColumn.TEXTO},t.prototype.getTypeNumber=function(){return ngPliUtil.ETypeColumn.NUMERICO},t.prototype.getTypeDate=function(){return ngPliUtil.ETypeColumn.FECHA},t.prototype.deleteFilter=function(t){console.log("Eliminar ",t),this.lSegFilter&&this.lSegFilter.splice(t,1),this.lSegFilter&&this.lSegFilter.length||this.addFilter()},t.prototype.setConjunction=function(t,e){t.conjunction=e},t.prototype.addFilter=function(){this.lSegFilter||(this.lSegFilter=[]);var t=new ngPliUtil.SegFilter;t.conjunction="Y",this.lSegFilter.push(t)},t.prototype.clean=function(){this.lSegFilter=[],this.addFilter()},t.prototype.deleteAll=function(){var t,e;if(this.lSegFilter)try{for(var n=__values(this.lSegFilter),o=n.next();!o.done;o=n.next()){o.value.value=void 0}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},t.prototype.search=function(){this.searchFilter.emit(this.lSegFilter)},t.prototype.getTypeInput=function(t){return t==this.getTypeDate()?"date":(this.getTypeNumber(),"text")},t.prototype.getColumnById=function(t){return this.mapSegColumnById.get(t)},t.ctorParameters=function(){return[{type:core.ChangeDetectorRef},{type:CommonService}]},__decorate([core.Input(),__metadata("design:type",Array)],t.prototype,"lSegFilter",void 0),__decorate([core.Input(),__metadata("design:type",Array)],t.prototype,"lSegColumn",void 0),__decorate([core.Input(),__metadata("design:type",Array)],t.prototype,"comboColumnWork",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],t.prototype,"searchFilter",void 0),t=__decorate([core.Component({selector:"app-dynamic-filter",template:'<div class="flex flow-row-wrap" style="margin:10px 0 0;justify-content: normal" *ngIf="active">\r\n <div class="segmentation-filter" *ngFor="let filter of lSegFilter; let i = index">\r\n <div *ngIf="filter.idColumn == undefined">\r\n <div class="ml-sm">\r\n <p-dropdown [style]="{ width: \'100%\' }" placeholder="-- Seleccione opción" [options]="comboColumnWork" [group]="true" [(ngModel)]="filter.idColumn" (onChange)="onSelectColumn(filter)" [filter]="true">\r\n </p-dropdown>\r\n </div>\r\n </div>\r\n <div class="flex align-items-center" *ngIf="filter.idColumn != undefined">\r\n <div class="ml-sm mr-sm">\r\n <span class="input-group-btn conector" *ngIf="i != 0">\r\n\t\t\t\t\t<button\r\n\t\t\t\t\t\ttype="button"\r\n\t\t\t\t\t\tclass="btn btn-info btn-sm br-5"\r\n\t\t\t\t\t\t*ngIf="filter.conjunction == \'Y\'"\r\n\t\t\t\t\t\t(click)="setConjunction(filter, \'O\')"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tY\r\n\t\t\t\t\t</button>\r\n\t\t\t\t\t<button\r\n\t\t\t\t\t\ttype="button"\r\n\t\t\t\t\t\tclass="btn btn-warning btn-sm br-5"\r\n\t\t\t\t\t\t*ngIf="filter.conjunction == \'O\'"\r\n\t\t\t\t\t\t(click)="setConjunction(filter, \'Y\')"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tO\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</span>\r\n <span class="ml-sm" *ngIf="i == 0">\r\n\t\t\t\t\t<span class="btn btn-sm br-5" style="cursor:auto;">&nbsp;</span>\r\n </span>\r\n </div>\r\n <div class="mr-sm">\r\n <select class="form-control input-sm select-operation" style="width: 125px;" [(ngModel)]="filter.operator">\r\n\t\t\t\t\t<option value="1">Igual a</option>\r\n\t\t\t\t\t<option value="2">Diferente a</option>\r\n\t\t\t\t\t<option value="3" *ngIf="filter.type == getTypeText()">Contiene</option>\r\n\t\t\t\t\t<option value="4" *ngIf="filter.type == getTypeText()">No contiene</option>\r\n\t\t\t\t\t<option\r\n\t\t\t\t\t\tvalue="5"\r\n\t\t\t\t\t\t*ngIf="filter.type == getTypeNumber() || filter.type == getTypeDate()"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tMayor a</option\r\n\t\t\t\t\t>\r\n\t\t\t\t\t<option\r\n\t\t\t\t\t\tvalue="6"\r\n\t\t\t\t\t\t*ngIf="filter.type == getTypeNumber() || filter.type == getTypeDate()"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tMayor o igual a</option\r\n\t\t\t\t\t>\r\n\t\t\t\t\t<option\r\n\t\t\t\t\t\tvalue="7"\r\n\t\t\t\t\t\t*ngIf="filter.type == getTypeNumber() || filter.type == getTypeDate()"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tMenor a</option\r\n\t\t\t\t\t>\r\n\t\t\t\t\t<option\r\n\t\t\t\t\t\tvalue="8"\r\n\t\t\t\t\t\t*ngIf="filter.type == getTypeNumber() || filter.type == getTypeDate()"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tMenor o igual a</option\r\n\t\t\t\t\t>\r\n\t\t\t\t\t<option value="9">Es vacío</option>\r\n\t\t\t\t</select>\r\n </div>\r\n <div>\r\n <input [type]="getTypeInput(filter.type)" [disabled]="filter.operator == 9" class="form-control input-value input-sm" [(ngModel)]="filter.value" [placeholder]="filter.label" style="width: 165px;" (keyup.enter)="search()" />\r\n </div>\r\n <div class="flex ml-sm button_filter">\r\n <button type="button" class="btn btn-danger btn-sm btn-rounded" (click)="deleteFilter(i)">\r\n\t\t\t\t\t<span class="fa fa-minus"></span>\r\n\t\t\t\t</button>\r\n <button type="button" class="btn btn-success btn-sm btn-rounded ml-sm" (click)="addFilter()" *ngIf="i + 1 == lSegFilter.length">\r\n\t\t\t\t\t<span class="fa fa-plus"></span>\r\n\t\t\t\t</button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<div class="row" style="margin:0 0 10px" *ngIf="active">\r\n <div class="col-sm-12 panel-button">\r\n <div class="btn-toolbar">\r\n <div class="btn-group">\r\n <button type="button" class="btn btn-primary btn-sm btn-consult" (click)="search()">\r\n\t\t\t\t\tConsultar\r\n\t\t\t\t</button>\r\n </div>\r\n <div class="btn-group">\r\n <button type="button" class="btn btn-danger btn-sm btn-delete" (click)="clean()">\r\n\t\t\t\t\tBorrar filtros\r\n\t\t\t\t</button>\r\n </div>\r\n <div class="btn-group">\r\n <button type="button" class="btn btn-warning btn-sm btn-clear" (click)="deleteAll()">\r\n\t\t\t\t\tlimpiar datos\r\n\t\t\t\t</button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>',styles:[".button_filter .btn{line-height:12px;width:22px;height:22px}.button_filter .btn.btn-success{background-color:transparent;border:1px solid #4cae4c;color:#4cae4c}.button_filter .btn.btn-success:hover{background-color:#4cae4c;color:#fff}.button_filter .btn-danger{background-color:transparent;color:#d43f3a}.button_filter .btn-danger:hover{background-color:#d43f3a;color:#fff}.conector .btn{height:22px;line-height:12px}.btn{padding:5px}.btn-rounded{border-radius:50%!important}.btn-clear,.btn-definition,.btn-delete,.btn-save{background-color:transparent;color:#333;transition:.3s}.btn-delete:hover{background-color:#d43f3a;color:#fff}.btn-save:hover{background-color:#4cae4c;color:#fff}.btn-definition:hover{color:#fff;background-color:#ccc}.btn-clear:hover{background-color:#eea236;color:#fff}.br-5{border-radius:5px!important}.mr-sm{margin-right:5px}.ml-sm{margin-left:5px}.flex{display:flex!important}.flow-row-wrap{flex-flow:row wrap}.align-items-center{align-items:center}.dialog-max-size .ui-dialog{width:95%!important}.segmentation-group .form-control.select-operation{width:40%;font-size:11px;padding-left:3px;padding-right:3px}.segmentation-group .form-control.input-value{width:60%}.segmentation-filter{margin-bottom:10px}.panel-button{background-color:#f8f8f8;padding-top:10px;padding-bottom:10px;border-top:1px solid #e7e7e7;border-bottom:1px solid #e7e7e7;text-align:right}"]}),__metadata("design:paramtypes",[core.ChangeDetectorRef,CommonService])],t)}(),ExcelToJsonComponent=function(){function t(){this.disableButton=!1,this.onLoadFile=new core.EventEmitter}return t.prototype.ngOnInit=function(){},t.prototype.onFileChange=function(t){var e=this;this.excelWorkbook=[];var n=t.target;if(1!==n.files.length)throw new Error("Cannot use multiple files");this.disableButton=!0;var o=new FileReader;o.onload=function(t){for(var n=t.target.result,o=xlsx.read(n,{type:"binary",cellDates:!0}),r=0;r<o.SheetNames.length;r++){var i=o.SheetNames[r],a=o.Sheets[i],s={sheet:{label:i,content:xlsx.utils.sheet_to_json(a,{raw:!0,defval:"",header:1})}};e.excelWorkbook.push(s)}e.onLoadFile.emit({data:e.excelWorkbook}),e.disableButton=!1},o.readAsBinaryString(n.files[0])},__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],t.prototype,"onLoadFile",void 0),t=__decorate([core.Component({selector:"pli-excel-to-json",template:'<input type="file" [disabled]="disableButton" (change)="onFileChange($event)" multiple="false" />\r\n',styles:[""]}),__metadata("design:paramtypes",[])],t)}(),ConfigurationCommonsComponent=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.commonService=e,o.cdRef=n,o.fullWidth=!1,o}return __extends(e,t),e.prototype.ngOnInit=function(){if(t.prototype.ngOnInit.call(this),this.fullWidth){var e=document.getElementById("mainContainer");e&&e.classList.remove("container")}},e.prototype.ngOnDestroy=function(){if(this.fullWidth){var t=document.getElementById("mainContainer");t&&t.classList.add("container")}},e}(CommonListsComponent),PdfConfigComponent=function(t){function e(e,n,o){var r=t.call(this,n,e)||this;return r.cdRef=e,r.commonService=n,r.configurationDocumentService=o,r.showFormula=!0,r.showSnapshot=!1,r.showSnapshotForm=!1,r.showName=!1,r.showIdiCodigo=!1,r.showCdocCodigo=!1,r.showTemplate=!1,r.showVisibles=!1,r.showMargins=!1,r.showHeader=!1,r.showFooter=!1,r.showFont=!1,r.showTokens=!1,r.showFrm=!0,r.showStatic=!0,r.showBudget=!0,r.showCalculated=!0,r.showCalculatedForm=!1,r.showSize=!1,r.showOrientation=!1,r.showRepeatHeader=!1,r.showRepeatFooter=!1,r.showPager=!1,r.showHeaderFooterHeight=!1,r.tgdocCodigo=10,r.pdfConfigChange=new core.EventEmitter,r.options={branding:!1},r}return __extends(e,t),e.prototype.ngOnInit=function(){this.handleOptions(),this.initLists()},e.prototype.handleOptions=function(){this.toolbar&&(this.options.toolbar=this.toolbar)},e.prototype.initLists=function(){var t=this;this.listFont=[{value:"Arial",label:"Arial"},{value:"Calibri",label:"Calibri"},{value:"Georgia",label:"Georgia"},{value:"Times",label:"Times New Roman"},{value:"Verdana",label:"Verdana"}],this.listSizes=[ngPliUtil.EPdfSize.LETTER,ngPliUtil.EPdfSize.LEGAL],this.listOrientation=[ngPliUtil.EPdfOrientation.PORTRAIT,ngPliUtil.EPdfOrientation.LANDSCAPE],this.pdfConfig.size=this.pdfConfig.size||ngPliUtil.EPdfSize.LETTER.id,this.pdfConfig.orientation=this.pdfConfig.orientation||ngPliUtil.EPdfOrientation.PORTRAIT.id,this.pdfConfig.showPager=void 0===this.pdfConfig.showPager||this.pdfConfig.showPager,this.pdfConfig.repeatHeader=void 0===this.pdfConfig.repeatHeader||this.pdfConfig.repeatHeader,this.pdfConfig.repeatFooter=void 0===this.pdfConfig.repeatFooter||this.pdfConfig.repeatFooter,this.showIdiCodigo&&this.commonService.onLanguageChanged().subscribe((function(e){e&&(t.listLanguage=e)})),this.showCdocCodigo&&this.configurationDocumentService.geListByPromCodigoAndTgdocCodigo(this.promCodigo,this.tgdocCodigo).subscribe((function(e){t.listDocument=e})),this.showBr=this.showRepeatHeader||this.showRepeatFooter||this.showPager},e.prototype.setListToken=function(t){this.listStaticToken=t},e.ctorParameters=function(){return[{type:core.ChangeDetectorRef},{type:CommonService},{type:ConfigurationDocumentService}]},__decorate([core.Input(),__metadata("design:type",Number)],e.prototype,"promCodigo",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showFormula",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showSnapshot",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showSnapshotForm",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showName",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showIdiCodigo",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showCdocCodigo",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showTemplate",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showVisibles",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showMargins",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showHeader",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showFooter",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showFont",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showTokens",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showFrm",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showStatic",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showBudget",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showCalculated",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showCalculatedForm",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showSize",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showOrientation",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showRepeatHeader",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showRepeatFooter",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showPager",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],e.prototype,"showHeaderFooterHeight",void 0),__decorate([core.Input(),__metadata("design:type",Number)],e.prototype,"tgdocCodigo",void 0),__decorate([core.Input(),__metadata("design:type",ngPliUtil.PdfConfig)],e.prototype,"pdfConfig",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],e.prototype,"pdfConfigChange",void 0),__decorate([core.Input(),__metadata("design:type",String)],e.prototype,"toolbar",void 0),e=__decorate([core.Component({selector:"pli-pdf-config",template:'<div class="row">\r\n\t<div class="col-md-3">\r\n\t\t<div class="row">\r\n\t\t\t<div class="col-sm-12" *ngIf="showName">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="name" class="form-control-label">Nombre *</label>\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="text"\r\n\t\t\t\t\t\tname="name"\r\n\t\t\t\t\t\tid="name"\r\n\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t[(ngModel)]="pdfConfig.name"\r\n\t\t\t\t\t\tplaceholder="Nombre"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<div class="form-control-error"></div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t\t<div class="col-sm-12" *ngIf="showFormula">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="formula" class="form-control-label"\r\n\t\t\t\t\t\t>Fórmula de la visibilidad del documento</label\r\n\t\t\t\t\t>\r\n\t\t\t\t\t<textarea\r\n\t\t\t\t\t\tstyle="resize: vertical"\r\n\t\t\t\t\t\trows="2"\r\n\t\t\t\t\t\ttype="text"\r\n\t\t\t\t\t\tname="formula"\r\n\t\t\t\t\t\tid="formula"\r\n\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t[(ngModel)]="pdfConfig.formula"\r\n\t\t\t\t\t\tplaceholder="Formula de la visibilidad del documento"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t</textarea>\r\n\t\t\t\t\t<div class="form-control-error"></div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12" *ngIf="showIdiCodigo">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="idiCodigo" class="form-control-label">Idioma *</label>\r\n\t\t\t\t\t<select\r\n\t\t\t\t\t\tname="idiCodigo"\r\n\t\t\t\t\t\tid="idiCodigo"\r\n\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t[(ngModel)]="pdfConfig.idiCodigo"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<option value="">-- Seleccione opción</option>\r\n\t\t\t\t\t\t<option *ngFor="let language of listLanguage" [value]="language.idiCodigo">\r\n\t\t\t\t\t\t\t{{ language.idiIdioma }}\r\n\t\t\t\t\t\t</option>\r\n\t\t\t\t\t</select>\r\n\t\t\t\t\t<div class="form-control-error"></div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12" *ngIf="showCdocCodigo">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="cdocCodigo" class="form-control-label">Tipo documento *</label>\r\n\t\t\t\t\t<select\r\n\t\t\t\t\t\tname="cdocCodigo"\r\n\t\t\t\t\t\tid="cdocCodigo"\r\n\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t[(ngModel)]="pdfConfig.cdocCodigo"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<option value="">-- Seleccione opción</option>\r\n\t\t\t\t\t\t<option *ngFor="let document of listDocument" [value]="document.id">\r\n\t\t\t\t\t\t\t{{ document.name }}\r\n\t\t\t\t\t\t</option>\r\n\t\t\t\t\t</select>\r\n\t\t\t\t\t<div class="form-control-error"></div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12" *ngIf="showVisibles">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="name" class="form-control-label">Visibilidad usuario</label>\r\n\t\t\t\t\t<div class="row">\r\n\t\t\t\t\t\t<div class="col-xs-12">\r\n\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\t\t\t\tid="visibleInternal"\r\n\t\t\t\t\t\t\t\tname="visibleInternal"\r\n\t\t\t\t\t\t\t\tvalue="1"\r\n\t\t\t\t\t\t\t\t[(ngModel)]="pdfConfig.visibleInternal"\r\n\t\t\t\t\t\t\t/>&nbsp; <label for="visibleInternal">Interno</label> &nbsp;&nbsp;&nbsp;\r\n\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\t\t\t\tid="visibleExternal"\r\n\t\t\t\t\t\t\t\tname="visibleExternal"\r\n\t\t\t\t\t\t\t\tvalue="1"\r\n\t\t\t\t\t\t\t\t[(ngModel)]="pdfConfig.visibleExternal"\r\n\t\t\t\t\t\t\t/>&nbsp;\r\n\t\t\t\t\t\t\t<label for="visibleExternal">Externo</label>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="form-control-error"></div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12" *ngIf="showFont">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="font" class="form-control-label">Tipo de letra</label>\r\n\t\t\t\t\t<select name="font" id="font" class="form-control" [(ngModel)]="pdfConfig.font">\r\n\t\t\t\t\t\t<option *ngFor="let font of listFont" [value]="font.value">\r\n\t\t\t\t\t\t\t{{ font.label }}\r\n\t\t\t\t\t\t</option>\r\n\t\t\t\t\t</select>\r\n\t\t\t\t\t<div class="form-control-error"></div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12" *ngIf="showSize">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="size" class="form-control-label">Tamaño de hoja</label>\r\n\t\t\t\t\t<select name="size" id="size" class="form-control" [(ngModel)]="pdfConfig.size">\r\n\t\t\t\t\t\t<option *ngFor="let size of listSizes" [value]="size.id">\r\n\t\t\t\t\t\t\t{{ size.name }}\r\n\t\t\t\t\t\t</option>\r\n\t\t\t\t\t</select>\r\n\t\t\t\t\t<div class="form-control-error"></div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12" *ngIf="showOrientation">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="orientation" class="form-control-label">Orientación</label>\r\n\t\t\t\t\t<select\r\n\t\t\t\t\t\tname="orientation"\r\n\t\t\t\t\t\tid="orientation"\r\n\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t[(ngModel)]="pdfConfig.orientation"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<option\r\n\t\t\t\t\t\t\t*ngFor="let orientation of listOrientation"\r\n\t\t\t\t\t\t\t[value]="orientation.id"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t{{ orientation.name }}\r\n\t\t\t\t\t\t</option>\r\n\t\t\t\t\t</select>\r\n\t\t\t\t\t<div class="form-control-error"></div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12" *ngIf="showPager">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\t\tclass="check-space"\r\n\t\t\t\t\t\t[(ngModel)]="pdfConfig.showPager"\r\n\t\t\t\t\t\tid="showPager"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<label for="showPager" class="form-control-label"> Ver paginador</label>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12" *ngIf="showRepeatHeader">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\t\tclass="check-space"\r\n\t\t\t\t\t\t[(ngModel)]="pdfConfig.repeatHeader"\r\n\t\t\t\t\t\tid="repeatHeader"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<label for="repeatHeader" class="form-control-label"> Repetir encabezado</label>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12" *ngIf="showRepeatFooter">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\t\tclass="check-space"\r\n\t\t\t\t\t\t[(ngModel)]="pdfConfig.repeatFooter"\r\n\t\t\t\t\t\tid="repeatFooter"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<label for="repeatFooter" class="form-control-label">\r\n\t\t\t\t\t\tRepetir pie de página</label\r\n\t\t\t\t\t>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-md-12" *ngIf="showMargins" [ngClass]="{ \'top-space\': showBr }">\r\n\t\t\t\tMárgenes (cm)\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-6" *ngIf="showMargins">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<div class="row">\r\n\t\t\t\t\t\t<div class="col-xs-12">\r\n\t\t\t\t\t\t\t<label for="pdfConfig.marginTop" class="form-control-label"\r\n\t\t\t\t\t\t\t\t>Arriba</label\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\ttype="number"\r\n\t\t\t\t\t\t\t\tname="pdfConfig.marginTop"\r\n\t\t\t\t\t\t\t\tid="pdfConfig.marginTop"\r\n\t\t\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t\t\tplaceholder="Arriba"\r\n\t\t\t\t\t\t\t\t[(ngModel)]="pdfConfig.marginTop"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-6" *ngIf="showMargins">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<div class="row">\r\n\t\t\t\t\t\t<div class="col-xs-12">\r\n\t\t\t\t\t\t\t<label for="pdfConfig.marginRight" class="form-control-label"\r\n\t\t\t\t\t\t\t\t>Derecha</label\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\ttype="number"\r\n\t\t\t\t\t\t\t\tname="pdfConfig.marginRight"\r\n\t\t\t\t\t\t\t\tid="pdfConfig.marginRight"\r\n\t\t\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t\t\tplaceholder="Derecha"\r\n\t\t\t\t\t\t\t\t[(ngModel)]="pdfConfig.marginRight"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-6" *ngIf="showMargins">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<div class="row">\r\n\t\t\t\t\t\t<div class="col-xs-12">\r\n\t\t\t\t\t\t\t<label for="pdfConfig.marginBottom" class="form-control-label"\r\n\t\t\t\t\t\t\t\t>Abajo</label\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\ttype="number"\r\n\t\t\t\t\t\t\t\tname="pdfConfig.marginBottom"\r\n\t\t\t\t\t\t\t\tid="pdfConfig.marginBottom"\r\n\t\t\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t\t\tplaceholder="Abajo"\r\n\t\t\t\t\t\t\t\t[(ngModel)]="pdfConfig.marginBottom"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-6" *ngIf="showMargins">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<div class="row">\r\n\t\t\t\t\t\t<div class="col-xs-12">\r\n\t\t\t\t\t\t\t<label for="pdfConfig.marginLeft" class="form-control-label"\r\n\t\t\t\t\t\t\t\t>Izquierda</label\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\ttype="number"\r\n\t\t\t\t\t\t\t\tname="pdfConfig.marginLeft"\r\n\t\t\t\t\t\t\t\tid="pdfConfig.marginLeft"\r\n\t\t\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t\t\tplaceholder="Izquierda"\r\n\t\t\t\t\t\t\t\t[(ngModel)]="pdfConfig.marginLeft"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div\r\n\t\t\t\tclass="col-md-12"\r\n\t\t\t\t*ngIf="showHeaderFooterHeight"\r\n\t\t\t\t[ngClass]="{ \'top-space\': showBr }"\r\n\t\t\t>\r\n\t\t\t\tAlturas (cm)\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-6" *ngIf="showHeaderFooterHeight">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<div class="row">\r\n\t\t\t\t\t\t<div class="col-xs-12">\r\n\t\t\t\t\t\t\t<label for="pdfConfig.marginTop" class="form-control-label"\r\n\t\t\t\t\t\t\t\t>Cabecera</label\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\ttype="number"\r\n\t\t\t\t\t\t\t\tname="pdfConfig.headerHeight"\r\n\t\t\t\t\t\t\t\tid="pdfConfig.headerHeight"\r\n\t\t\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t\t\tplaceholder="Cabecera"\r\n\t\t\t\t\t\t\t\t[(ngModel)]="pdfConfig.headerHeight"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t\t<div class="col-sm-6" *ngIf="showHeaderFooterHeight">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<div class="row">\r\n\t\t\t\t\t\t<div class="col-xs-12">\r\n\t\t\t\t\t\t\t<label for="pdfConfig.marginTop" class="form-control-label"\r\n\t\t\t\t\t\t\t\t>Pie de página</label\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\ttype="number"\r\n\t\t\t\t\t\t\t\tname="pdfConfig.footerHeight"\r\n\t\t\t\t\t\t\t\tid="pdfConfig.footerHeight"\r\n\t\t\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\t\t\tplaceholder="Pie de pág"\r\n\t\t\t\t\t\t\t\t[(ngModel)]="pdfConfig.footerHeight"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-sm-12 margin-top" *ngIf="showTokens">\r\n\t\t\t\t<pli-configuration-token\r\n\t\t\t\t\t[promCodigo]="promCodigo"\r\n\t\t\t\t\t[showFrm]="showFrm"\r\n\t\t\t\t\t[showStatic]="showStatic"\r\n\t\t\t\t\t[showBudget]="showBudget"\r\n\t\t\t\t\t[showCalculated]="showCalculated"\r\n\t\t\t\t\t[showCalculatedForm]="showCalculatedForm"\r\n\t\t\t\t\t[showSnapshotForm]="showSnapshotForm"\r\n\t\t\t\t\t[showSnapshot]="showSnapshot"\r\n\t\t\t\t></pli-configuration-token>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class="col-md-9">\r\n\t\t<div class="row">\r\n\t\t\t<div class="col-md-12" *ngIf="showHeader">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="header" class="form-control-label">Encabezado</label>\r\n\t\t\t\t\t<app-tinymce [(ngModel)]="pdfConfig.header" [options]="options"></app-tinymce>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\r\n\t\t<div class="row margin-top" *ngIf="showTemplate">\r\n\t\t\t<div class="col-md-12">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="template" class="form-control-label">Cuerpo</label>\r\n\t\t\t\t\t<app-tinymce [(ngModel)]="pdfConfig.template" [options]="options"></app-tinymce>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\r\n\t\t<div class="row margin-top" *ngIf="showFooter">\r\n\t\t\t<div class="col-md-12">\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label for="footer" class="form-control-label">Pie de página</label>\r\n\t\t\t\t\t<app-tinymce [(ngModel)]="pdfConfig.footer" [options]="options"></app-tinymce>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n',styles:[".top-space{margin-top:12px}.check-space{margin-right:5px}"]}),__metadata("design:paramtypes",[core.ChangeDetectorRef,CommonService,ConfigurationDocumentService])],e)}(ConfigurationCommonsComponent),ApplicationService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"application/getById",{params:(new http.HttpParams).set("id",t)})},t.prototype.getByIdLight=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"application/getByIdLight",{params:(new http.HttpParams).set("id",t)})},t.prototype.getByIdLightIn=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/getByIdLightIn",t)},t.prototype.getApplicationsByDataTableParameters=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"application/getApplicationsByDataTableParameters",t)},t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"application/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getByUsername=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"application/getByUsername",{params:(new http.HttpParams).set("username",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/save",t,this.headerJson)},t.prototype.getLastNumber=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"application/getLastNumber",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.changeStatusByCategory=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"application/changeStatusByCategory",t,this.headerJson)},t.prototype.changeMassiveStatus=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"application/changeMassiveStatus",t,this.headerJson)},t.prototype.changeColor=function(t,e){var n={applicationId:t,color:e};return this.httpClient.put(this.environment.host.backend.backoffice+"application/changeColor",n)},t.prototype.getHistoryState=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"application/getHistoryState",{params:(new http.HttpParams).set("applicationId",t.toString())})},t.prototype.saveMassive=function(t,e){var n={listApplicationDataFormRequest:t,applicationsToVerifyDocument:e};return this.httpClient.post(this.environment.host.backend.configuration+"application-dataform/saveMultiple",n,this.headerJson)},t.prototype.getByDataTablesParameters=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/getByDataTablesParameters",t,this.headerJson)},t.prototype.getByTaskIdPromCodigoAndReviewer=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"application/getByTaskPromCodigoAndReviewer",t,this.headerJson)},t.prototype.getBackAppByDataTablesParameters=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"application/getByDataTablesParameters",t,this.headerJson)},t.prototype.getByDataTablesParametersApp=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"application/getByDataTablesParametersApp",t,this.headerJson)},t.prototype.getByNumberAndPromCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+"application/getByNumberAndPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("number",e.toString())})},t.prototype.acceptCredit=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/acceptCredit",t,this.headerJson)},t.prototype.confirmBudgetAppointment=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/confirmBudgetAppointment",t,this.headerJson)},t.prototype.initGuaranteeProcess=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"application/initGuaranteeProcess",t,this.headerJson)},t.prototype.getLegalizationAndEnsuranceByApplicationId=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"application/getLegalizationAndEnsuranceByApplicationId",t,this.headerJson)},t.prototype.generateBankVisionFiles=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"application/generateBankVisionFiles",t,this.headerJson)},t.prototype.saveAcceptDataProcessing=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/saveAcceptDataProcessing",t,this.headerJson)},t.prototype.saveBudgetTotalAmount=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/saveBudgetTotalAmount",t,this.headerJson)},t.prototype.saveObservationFinancingBudget=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/saveObservationFinancingBudget",t,this.headerJson)},t.prototype.blockBudget=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/blockBudget",t,this.headerJson)},t.prototype.unblockBudget=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/unblockBudget",{applicationId:t,observation:e},this.headerJson)},t.prototype.isBlockBudget=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/isBlockBudget",t,this.headerJson)},t.prototype.sendCodebtorResponseByStaticInteraction=function(t,e,n,o,r,i,a){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/sendCodebtorResponseByStaticInteraction",i,{params:(new http.HttpParams).set("applicationId",t).set("codebtor",r).set("response",o.toString()).set("promCodigo",n.toString()).set("interaction",e.toString()).set("sendEmailToCodebtor",a.toString()),headers:this.headerJson.headers})},t.prototype.getFullNotSubmittedByPromCodigo=function(t,e,n,o,r){return void 0===r&&(r=!1),this.httpClient.post(this.environment.host.backend.backoffice+"application/getFullNotSubmittedByPromCodigo",n,{params:(new http.HttpParams).set("promCodigo",t).set("budgetTypeId",e).set("stateId",String(o)).set("atLeastOneDocument",String(r)),headers:this.headerJson.headers})},t.prototype.getNotSubmittedByFullDocuments=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+"application/getNotSubmittedByFullDocuments",{params:(new http.HttpParams).set("promCodigo",t).set("stateId",String(e))})},t.prototype.getMassiveDataByApplicationId=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"budget/getMassiveDataByApplicationId",{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.getByUsernameAndPromCodigo=function(t,e){var n={username:t,promCodigos:e};return this.httpClient.post(this.environment.host.backend.frontoffice+"application/getByUsernameAndPromCodigos",n)},t.prototype.updateAllInitialRecord=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"application/updateAllInitialRecord",t,this.headerJson)},t.prototype.updateSingleApplicationValue=function(t){return this.httpClient.put(this.environment.host.backend.frontoffice+"application/updateSingleApplicationValue",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),DataFormService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"data/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getByApplicationId=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"data/getByApplicationId",{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.getByApplicationIdAndFormId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"data/getByApplicationIdAndFormId",{params:(new http.HttpParams).set("applicationId",t).set("formId",e)})},t.prototype.uniqueFieldsByFormId=function(t,e,n){var o=this.environment.host.backend.frontoffice+"data/uniqueFieldsByFormId?formId="+e;return n&&(o+="&dataId="+n),this.httpClient.post(o,t,this.headerJson)},t.prototype.validateNumberDocumentLeadersAndMembers=function(t,e,n){var o=this.environment.host.backend.frontoffice+"data/validateNumberDocumentLeadersAndMembers?formId="+e+"&applicationId="+t;return this.httpClient.post(o,n,this.headerJson)},t.prototype.requiredFieldsByAppIdAndFormId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"data/getRequiredFields",{params:(new http.HttpParams).set("applicationId",t).set("formId",e)})},t.prototype.save=function(t,e,n,o){var r="data/getForm/submission?formId="+t+"&promCodigo="+o+"&applicationId="+n;return this.httpClient.post(this.environment.host.backend.frontoffice+r,e,this.headerJson)},t.prototype.saveMultiaplicacion=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"data/save",t)},t.prototype.getDataForm=function(t,e,n){var o=this.getDataFormUrl(t,e,n);return this.httpClient.get(o,this.headerJson)},t.prototype.getDataFormUrl=function(t,e,n){return this.environment.host.backend.frontoffice+"data/getForm?formId="+t+"&promCodigo="+n+"&applicationId="+e},t.prototype.update=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"data/save",t,this.headerJson)},t.prototype.updateCell=function(t,e,n,o){var r=(new http.HttpParams).set("applicationId",t).set("formId",e).set("cellName",n).set("cellValue",o);return this.httpClient.post(this.environment.host.backend.frontoffice+"data/update_cell?formId="+e+"&applicationId="+t+"&cellName="+n+"&cellValue="+o,{params:r},this.headerJson)},t.prototype.updateFields=function(t,e,n,o){var r={forms:e,keysByForm:n,fields:o};return this.httpClient.post(this.environment.host.backend.frontoffice+"data/update_fields?applicationId="+t,r,this.headerJson)},t.prototype.updateKeyValByAppIdAndFormId=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"data/updateColumn",t,this.headerJson)},t.prototype.saveMultiple=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"data/saveMultiple",t,this.headerJson)},t.prototype.saveMultiSubmission=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"data/save-multiSubmission",t,this.headerJson)},t.prototype.getByDataTablesParameters=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"data/getByDataTablesParameters",t,this.headerJson)},t.prototype.getByApplicationIdList=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"data/getByApplicationIdList",{params:(new http.HttpParams).set("lApplicationId",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfHeaderService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pli-cnf-header/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pli-cnf-header/save",t,this.headerJson)},t.prototype.saveClonning=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pli-cnf-header/saveClonning",{params:(new http.HttpParams).set("promCodigoInit",t.toString()).set("promCodigoFinal",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfLookAndFeelService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/lookAndFeel/getById",{params:(new http.HttpParams).set("idPatrocinador",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.plis+"config/lookAndFeel/save",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfPdfsService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAll=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfFormsPdf/getByPromCodigo/"+t)},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfFormsPdf/findById/"+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfFormsPdf",t,ngPliUtil.HEADER_JSON)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),TokenTransformationService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.transform=function(t,e,n){var o={txt:t,promCodigo:e,applicationId:n};return this.httpClient.post(this.environment.host.backend.configuration+"token-transformation/",o,this.headerJson)},t.prototype.transformAndKeepToken=function(t,e,n,o,r){var i={txt:t,promCodigo:e,applicationId:n,keepToken:o,locale:r};return this.httpClient.post(this.environment.host.backend.configuration+"token-transformation/transformAndKeepToken",i,this.headerJson)},t.prototype.transformByUsername=function(t,e,n){var o={txt:t,promCodigo:e,username:n};return this.httpClient.post(this.environment.host.backend.configuration+"token-transformation/transformByUsername",o,this.headerJson)},t.prototype.resolveFormula=function(t,e,n){var o={formula:t,promCodigo:e,applicationId:n};return this.httpClient.post(this.environment.host.backend.configuration+"token-transformation/resolveFormula",o,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PdfGeneratorComponent=function(){function t(t,e,n,o,r,i,a,s,c,p,l,d,u){this.sanitizer=t,this.dataFormService=e,this.applicationService=n,this.pppService=o,this.commonService=r,this.lookAndFeelService=i,this.header=a,this.resolver=s,this.activatedRoute=c,this.formService=p,this.pliCnfPdfService=l,this.pliCnfHeaderService=d,this.tokenTransformationService=u,this.showLabel=!1,this.actionClass="referenceClass",this.display=!0,this.items=[],this.dataForms=[],this.allDataForms=[],this.forms=[]}return Object.defineProperty(t.prototype,"configurations",{set:function(t){var e=this;this.items=t.map((function(t){return{label:t.name,command:function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return this.configuration=t,[4,this.htmltoPDF()];case 1:return e.sent(),[2]}}))}))}}}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"applicationId",{set:function(t){this._applicationId=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(t){this._applicationId||(this._applicationId=this.getElementIdFromEvent(t))},t.prototype.getElementIdFromEvent=function(t){var e=this.getElement(t);return e?e.getAttribute("data-element-id"):""},t.prototype.getElement=function(t){var e=this;return t.find((function(t){return t.classList&&t.classList.contains(e.actionClass)}))},t.prototype.htmltoPDF=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,n,o,r,i,a,s,c,p,l,d,u,m,h,g,f,v,y;return __generator(this,(function(C){switch(C.label){case 0:return t=this,[4,this.dataFormService.getByApplicationId(this._applicationId).toPromise()];case 1:return t.allDataForms=C.sent(),e=this.pppService.getPatCodigoByPromCodigo(this.promCode),this.configuration.isHeaderConfig?[4,this.pliCnfHeaderService.getByPromCodigo(this.promCode).toPromise()]:[3,4];case 2:return n=C.sent(),[4,this.tokenTransformationService.transform(n.html,this.promCode,this._applicationId).toPromise()];case 3:o=C.sent(),this.headerHtml=o.txt,C.label=4;case 4:return this.configuration.footer?[4,this.tokenTransformationService.transform(this.configuration.footer,this.promCode,this._applicationId).toPromise()]:[3,6];case 5:o=C.sent(),this.footerHtml=o.txt,C.label=6;case 6:r=function(t){i.configuration.forms.find((function(e){return e===t.formId}))&&(i.dataForms=__spread(i.dataForms,[t]))},i=this;try{for(a=__values(this.allDataForms),s=a.next();!s.done;s=a.next())l=s.value,r(l)}catch(t){g={error:t}}finally{try{s&&!s.done&&(f=a.return)&&f.call(a)}finally{if(g)throw g.error}}C.label=7;case 7:C.trys.push([7,12,13,14]),c=__values(this.dataForms),p=c.next(),C.label=8;case 8:return p.done?[3,11]:(l=p.value,[4,this.formService.getById(l.formId).toPromise()]);case 9:d=C.sent(),this.forms.push(d),C.label=10;case 10:return p=c.next(),[3,8];case 11:return[3,14];case 12:return u=C.sent(),v={error:u},[3,14];case 13:try{p&&!p.done&&(y=c.return)&&y.call(c)}finally{if(v)throw v.error}return[7];case 14:return m=this,[4,this.lookAndFeelService.getById(e).toPromise()];case 15:return m.lookAndFeelModel=C.sent(),this.lookAndFeelModel&&this.lookAndFeelModel.clafeUrlLogoAplicacion?[4,this.commonService.getBase64ImageByUrl(this.lookAndFeelModel.clafeUrlLogoAplicacion).toPromise()]:[3,17];case 16:h=C.sent(),this.urlLogo=this.sanitizer.bypassSecurityTrustUrl("data:image/png;base64, "+h.base64),C.label=17;case 17:return[4,this.exportAsPDF()];case 18:return C.sent(),[2]}}))}))},t.prototype.exportAsPDF=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,n,o=this;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.applicationService.getById(this._applicationId).toPromise()];case 1:return t=r.sent(),e={margin:[this.configuration.marginTop,this.configuration.marginLeft,this.configuration.marginBottom,this.configuration.marginRight],filename:t.username+"_"+this.configuration.name+".pdf",image:{type:"jpeg",quality:.98},html2canvas:{scale:2,logging:!0},jsPDF:{unit:"cm",format:"a4",orientation:"portrait"}},[4,new Promise((function(t){return setTimeout(t,5e3)}))];case 2:return r.sent(),n=html2pdf().set(e),[4,html2canvas(this.contentElement.nativeElement,{scrollX:0,scrollY:0,x:0,y:0,onclone:function(t){o.deleteButtons(t),t.getElementById("content").style.opacity="1"}}).then((function(t){n.from(t,"canvas").save()}))];case 3:return r.sent(),[2]}}))}))},t.prototype.deleteButtons=function(t){for(var e=t.querySelectorAll("button"),n=0;n<e.length;n++)e[n].style.display="none"},t.ctorParameters=function(){return[{type:platformBrowser.DomSanitizer},{type:DataFormService},{type:ApplicationService},{type:PppService},{type:CommonService},{type:PliCnfLookAndFeelService},{type:PliCnfHeaderService},{type:core.ComponentFactoryResolver},{type:router.ActivatedRoute},{type:FormService},{type:PliCnfPdfsService},{type:PliCnfHeaderService},{type:TokenTransformationService}]},__decorate([core.Input(),__metadata("design:type",Array),__metadata("design:paramtypes",[Array])],t.prototype,"configurations",null),__decorate([core.Input(),__metadata("design:type",String),__metadata("design:paramtypes",[String])],t.prototype,"applicationId",null),__decorate([core.ViewChild("content",{static:!0}),__metadata("design:type",core.ElementRef)],t.prototype,"contentElement",void 0),__decorate([core.Input(),__metadata("design:type",Object)],t.prototype,"showLabel",void 0),__decorate([core.Input(),__metadata("design:type",Object)],t.prototype,"actionClass",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"promCode",void 0),__decorate([core.HostListener("click",["$event.path"]),__metadata("design:type",Function),__metadata("design:paramtypes",[Array]),__metadata("design:returntype",void 0)],t.prototype,"onClick",null),t=__decorate([core.Component({selector:"pli-pdf-generator",template:'<div #content id="content" class="main-content" [class.main-content--show]="display">\r\n <div class="header">\r\n <div class="header-item">\r\n <img [src]="urlLogo" alt="logo" class="img-logo">\r\n </div>\r\n <div class="header-item">\r\n <div [innerHTML]="headerHtml"></div>\r\n </div>\r\n </div>\r\n <div *ngFor="let f of dataForms; index as i">\r\n <formio [form]="forms[i]" [submission]="dataForms[i]"></formio>\r\n <div class="html2pdf__page-break"></div>\r\n </div>\r\n <div [innerHTML]="footerHtml"></div>\r\n</div>\r\n<button type="button" class="btn btn-default btn-sm" (click)="menu.toggle($event)" title="PDF">\r\n <span class="fa fa-file-pdf"></span>{{ showLabel ? \'Generar PDF\' : \'\' }}\r\n</button>\r\n<p-tieredMenu #menu [model]="items" appendTo="body" [popup]="true"></p-tieredMenu>\r\n',styles:['@charset "UTF-8";.main-content{position:fixed;z-index:-1;overflow:visible;display:none;opacity:0;margin-top:10px;margin-bottom:10px;text-align:left!important}.main-content--show{top:0;left:0;display:block}.main-content ::ng-deep{@import url("https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700");@import url("https://fonts.googleapis.com/css?family=Roboto+Condensed:300,400,700&display=swap");}.main-content ::ng-deep .mat-drawer-inner-container .mat-list-base .mat-list-item,.main-content ::ng-deep .text-menu,.main-content ::ng-deep a.help_menu,.main-content ::ng-deep a.letter{color:#000;height:auto!important;padding:.3em 0;margin-bottom:0;border-left:0;font-size:15px;font-weight:300;line-height:17px;font-family:Roboto,sans-serif;min-height:20px!important}.main-content ::ng-deep .mat-drawer-inner-container .mat-list-base .mat-list-item:hover,.main-content ::ng-deep .text-menu:hover,.main-content ::ng-deep a.help_menu:hover,.main-content ::ng-deep a.letter:hover{color:#00a5e6!important;background-color:transparent}.main-content ::ng-deep .mat-drawer-inner-container .mat-list-base .mat-list-item:focus,.main-content ::ng-deep .text-menu:focus,.main-content ::ng-deep a.help_menu:focus,.main-content ::ng-deep a.letter:focus{color:#fff;background-color:#da291c}.main-content ::ng-deep body{margin:auto;display:block;max-width:1280px;background-color:#fafafa}.main-content ::ng-deep .sin-padding{padding:0!important}.main-content ::ng-deep .mat-toolbar-single-row{height:72px!important}.main-content ::ng-deep .mat-drawer-content{position:relative}.main-content ::ng-deep .img-logo{max-width:100%}.main-content ::ng-deep .card p{color:#666;font-weight:300;line-height:22px;font-family:Roboto,sans-serif;margin-top:0;margin-bottom:15px}.main-content ::ng-deep .mat-drawer-inner-container .mat-list-base{border:1px solid #ccc;padding-top:0!important;background-color:#f7f7f7;cursor:auto}.main-content ::ng-deep .mat-toolbar.mat-primary{border-bottom:2px solid #da291c!important}.main-content ::ng-deep .mat-toolbar.mat-primary .button-close-session{background-color:transparent}.main-content ::ng-deep mat-toolbar.mat-toolbar{margin-bottom:0!important;box-shadow:none}.main-content ::ng-deep .mat-drawer-side{border-right:0}.main-content ::ng-deep #list-home{margin-bottom:0!important}.main-content ::ng-deep .formio-form{padding:0 15px}.main-content ::ng-deep .mat-drawer,.main-content ::ng-deep mat-toolbar.mat-toolbar{position:relative!important}.main-content ::ng-deep .mat-toolbar{background-color:transparent}.main-content ::ng-deep .mat-toolbar.header--light{padding:0}.main-content ::ng-deep .mat-toolbar h3{width:100%;display:block;font-size:27px;font-weight:400;font-family:Roboto,sans-serif;margin-top:0;margin-bottom:0;padding-bottom:6px;border-bottom:1px solid #ccc}.main-content ::ng-deep .mat-drawer-container{background-color:#fff}.main-content ::ng-deep .mat-drawer-inner-container,.main-content ::ng-deep .mat-sidenav-content{padding-top:0}.main-content ::ng-deep .mat-drawer.mat-drawer-side{float:left}.main-content ::ng-deep .button-close-session{position:absolute!important;right:5px;height:40px;color:#fff;border-radius:0;border-left:1px solid #bbb}.main-content ::ng-deep .button-close-session:before{content:"";width:25px;height:22px;position:absolute;background-image:url(http://apps.colfuturo.org/PLIS/plantilla/img/otrocerrar.png)}.main-content ::ng-deep .button-close-session:hover{color:#fff}.main-content ::ng-deep .button-close-session:hover:before{background-image:url(http://apps.colfuturo.org/PLIS/plantilla/img/otrocerrar.png)}.main-content ::ng-deep .card{border:0!important;border-bottom:1px solid #ccc!important;background-color:#fff;border-radius:0}.main-content ::ng-deep .card .card-header{padding:0;border-bottom:0;background-color:#fff}.main-content ::ng-deep .card h4.card-title{font-size:19px;font-family:Roboto,sans-serif;font-weight:400;margin-top:5px;margin-bottom:5px!important}.main-content ::ng-deep .card .card-body{padding:.3rem 15px}.main-content ::ng-deep .stats h4.panel-title{font-size:15px}.main-content ::ng-deep .stats label.control-label--hidden{display:none}.main-content ::ng-deep .stats.required h4.panel-title{position:relative}.main-content ::ng-deep .stats.required h4.panel-title:after{content:"*";color:#da291c;margin-right:.5em;height:30px}.main-content ::ng-deep .card.No_border{border-bottom:0!important}.main-content ::ng-deep .mat-drawer-inner-container .mat-list-base{margin-top:0;padding-bottom:0}.main-content ::ng-deep .menu .mat-list-item.active:hover{background-color:#da291c!important;color:#fff!important}.main-content ::ng-deep .menu .mat-list-item.active:hover .mat-list-item-content{color:#fff!important}.main-content ::ng-deep a.letter{display:block;padding-left:10px;margin-top:10px}.main-content ::ng-deep a.letter:hover{text-decoration:none;background-color:transparent!important;color:#00a5e6!important}.main-content ::ng-deep a.letter img{margin-right:.3em}.main-content ::ng-deep a.help_menu{display:block;padding-left:10px;margin-top:5px}.main-content ::ng-deep a.help_menu img{margin-right:.3em}.main-content ::ng-deep a.help_menu:hover{text-decoration:none}.main-content ::ng-deep a.mat-list-item.letter.active{color:#da291c!important;background-color:transparent}.main-content ::ng-deep a.mat-list-item.help_menu.active{color:#da291c!important;background-color:transparent}.main-content ::ng-deep .mat-drawer.mat-drawer-end{position:fixed!important}.main-content ::ng-deep .mat-drawer-inner-container .mat-list-base .mat-list-item .mat-list-item-content{padding-right:0!important}.main-content ::ng-deep .send .mat-list-item-content{padding-left:0!important}.main-content ::ng-deep label{color:#333;font-size:14px;font-weight:300;font-family:Roboto,sans-serif;margin-bottom:0;position:relative}.main-content ::ng-deep label i.fa-question-circle{position:relative;left:2px}.main-content ::ng-deep label.control-label--hidden:after{position:absolute;right:inherit;left:0;font-size:15px;line-height:13px}.main-content ::ng-deep .no_label label.control-label--hidden{position:relative;right:inherit;left:0;float:left;width:15px;height:10px;margin-right:inherit!important}.main-content ::ng-deep .no_label input[type=text]{width:90%}.main-content ::ng-deep .no_label div.choices{margin-left:15px}.main-content ::ng-deep .form-group{margin-bottom:8px;margin-top:8px}.main-content ::ng-deep .form-group .form-control{height:22px;font-size:14px;font-weight:300;font-family:Roboto,sans-serif;padding:4px;border-radius:0!important}.main-content ::ng-deep .form-group textarea.form-control{min-height:50px;height:auto!important}.main-content ::ng-deep .form-group select.form-control{height:22px;line-height:22px;padding:0}.main-content ::ng-deep .form-group .choices.form-group.formio-choices .form-control{padding:0 10px;overflow:hidden}.main-content ::ng-deep .form-group .button-copy{color:#08c;font-size:15px;font-weight:400;padding:0}.main-content ::ng-deep .n_margin .form-group{margin-top:0;margin-bottom:0}.main-content ::ng-deep .form-group.formio-choices{margin-top:0;margin-bottom:0}.main-content ::ng-deep .n_padding{padding:0}.main-content ::ng-deep .n_padding_card .card-body{padding:0}.main-content ::ng-deep .form-control[readonly]{background-color:#f5f5f5}.main-content ::ng-deep .form-control:disabled{background-color:transparent!important;border:0!important}.main-content ::ng-deep input{border:1px solid #ccc;line-height:1;font-family:Roboto,sans-serif}.main-content ::ng-deep input:focus,.main-content ::ng-deep textarea:focus{box-shadow:0 0 0 .1rem #8daee5!important;border-color:#8daee5!important;background-color:#fff6de!important}.main-content ::ng-deep .sidenav{width:230px}.main-content ::ng-deep .btn{padding:3px 10px!important;font-size:14px!important;font-weight:400!important;font-family:Roboto,sans-serif!important;min-width:initial;width:auto;border-radius:0!important}.main-content ::ng-deep .btn:focus{box-shadow:none}.main-content ::ng-deep .btn-info,.main-content ::ng-deep .btn-info:hover{background-color:#08c;border:0;background-image:none!important}.main-content ::ng-deep .btn-primary,.main-content ::ng-deep .btn-success{border:0;border-radius:0;background-image:none}.main-content ::ng-deep .btn-primary:hover,.main-content ::ng-deep .btn-success:hover{border:0!important;background-image:none;background-color:#d20000}.main-content ::ng-deep .btn-primary{background-color:#08c}.main-content ::ng-deep .editgrid-add .btn{width:23px;height:23px;border-radius:50%!important;font-size:20px!important;line-height:1px;font-weight:400!important;border:2px solid #449d44;color:#449d44;background-color:transparent;text-align:center;padding:2px!important;transition:.3s}.main-content ::ng-deep .editgrid-add .btn:active,.main-content ::ng-deep .editgrid-add .btn:hover{background-color:#449d44;color:#fff;box-shadow:none!important;border:1px solid #fff!important}.main-content ::ng-deep .editgrid-listgroup .list-group-header{background-color:#e3e3e3!important;border-radius:0!important}.main-content ::ng-deep .editgrid-listgroup .list-group-header div{border-left:1px solid #fff;border-right:1px solid #fff;font-family:"Roboto Condensed",sans-serif;font-weight:300;font-size:14px}.main-content ::ng-deep .editgrid-listgroup .list-group-header:nth-child(1){border-right:0}.main-content ::ng-deep .editgrid-listgroup .list-group-item{border:0;position:relative;padding:0 5px!important;background-color:transparent}.main-content ::ng-deep .editgrid-listgroup .list-group-item small{font-size:14px;font-weight:300}.main-content ::ng-deep .editgrid-listgroup .list-group-item small strong{font-weight:300!important}.main-content ::ng-deep .editgrid-listgroup .list-group-item .btn-group.pull-right button{background-color:transparent;background-image:none;position:relative;padding:3px 0;border:0;color:#fff}.main-content ::ng-deep .editgrid-listgroup .list-group-item .btn-group.pull-right button.editRow{left:-5px;width:35px}.main-content ::ng-deep .editgrid-listgroup .list-group-item .btn-group.pull-right button.editRow:before{content:"";position:absolute;width:14px;height:14px;background-size:cover;background-image:url(http://apps.colfuturo.org/PLIS/plantilla/img/lapiz.png)}.main-content ::ng-deep .editgrid-listgroup .list-group-item .btn-group.pull-right button.removeRow:before{width:14px;height:14px;content:"";position:absolute;background-size:cover;background-image:url(http://apps.colfuturo.org/PLIS/img/delete_h.png)}.main-content ::ng-deep .editgrid-listgroup .list-group-item .btn-group.pull-right button.removeRow:hover:before{background-image:url(http://apps.colfuturo.org/PLIS/img/delete.png)}.main-content ::ng-deep .editgrid-listgroup .list-group-item .right_edit{position:absolute;right:0}.main-content ::ng-deep .editgrid-listgroup .editgrid-actions{margin-top:8px;margin-bottom:8px}.main-content ::ng-deep .editgrid-listgroup .editgrid-actions .btn-primary{border:0;padding:.375rem .75rem;font-size:.8125rem;background-image:none;background-color:#08c}.main-content ::ng-deep .editgrid-listgroup .editgrid-actions .btn-primary:hover{border:1px solid #016293;background-image:none;background-color:#016293}.main-content ::ng-deep .global-footer .container{padding:15px;margin-top:0;background-color:#e3e3e3}.main-content ::ng-deep .global-footer .container p{font-size:15px;text-align:left;margin-bottom:0}.main-content ::ng-deep button .fa{display:none}.main-content ::ng-deep button.btn.btn-success{margin:0;font-size:16px!important;padding:5px 20px!important;background-color:#449d44}.main-content ::ng-deep .fwwb-active{background:#4796d6;color:#fff!important}.main-content ::ng-deep .toast{opacity:1!important}.main-content ::ng-deep .toast-success{background-color:#51a351!important}.main-content ::ng-deep .toast-error{background-color:#bd362f!important}.main-content ::ng-deep .toast-info{background-color:#2f96b4!important}.main-content ::ng-deep .toast-warning{background-color:#f89406!important}.main-content ::ng-deep .has-error.alert-danger .checkbox,.main-content ::ng-deep .has-error.alert-danger .checkbox-inline,.main-content ::ng-deep .has-error.alert-danger .control-label,.main-content ::ng-deep .has-error.alert-danger .help-block,.main-content ::ng-deep .has-error.alert-danger .radio,.main-content ::ng-deep .has-error.alert-danger .radio-inline,.main-content ::ng-deep .has-error.alert-danger.checkbox label,.main-content ::ng-deep .has-error.alert-danger.checkbox-inline label,.main-content ::ng-deep .has-error.alert-danger.radio label,.main-content ::ng-deep .has-error.alert-danger.radio-inline label{color:#ed1d24!important}.main-content ::ng-deep .choices__list--single .choices__item span{white-space:nowrap}.main-content ::ng-deep .editgrid-listgroup .editgrid-actions .btn-danger:hover{color:#fff;background-color:#971b12}.main-content ::ng-deep p.Alert{color:#da291c}.main-content ::ng-deep .editgrid-body{padding:10px 0}.main-content ::ng-deep .choices__list--single .choices__item{overflow:hidden}.main-content ::ng-deep .checkbox-inline label,.main-content ::ng-deep .radio-inline label{font-weight:300!important}.main-content ::ng-deep .sin-p{padding:0!important}.main-content ::ng-deep .n_p-right .col-sm-2,.main-content ::ng-deep .n_p-right .col-sm-5,.main-content ::ng-deep .n_p-right .col-sm-6,.main-content ::ng-deep .n_p-right .col-sm-7{padding-right:0!important}.main-content ::ng-deep .n_p .col-xs-5{padding:0!important}.main-content ::ng-deep .choices[data-type*=select-one] .choices__button{margin-right:1px!important;background:#fff;opacity:1!important;width:15px!important}.main-content ::ng-deep .choices[data-type*=select-one]:after{right:5px!important}.main-content ::ng-deep .Label-left .form-check.radio{float:left;margin:0 .3em}.main-content ::ng-deep .has-feedback .form-control{padding-right:5px!important}.main-content ::ng-deep .tooltip-inner{text-align:left!important;background-color:#6d6d6d;color:#fff!important;max-width:300px;min-width:150px;padding:.6em;font-family:"Open Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:.7109375rem}.main-content ::ng-deep .alert-danger{background-color:#fffcf8;border:0!important;padding:1em 0}.main-content ::ng-deep .alert-danger p{font-size:13px;margin-bottom:0;margin-top:1em}.main-content ::ng-deep .card p{font-size:13px}.main-content ::ng-deep .form-control.is-invalid,.main-content ::ng-deep .was-validated .form-control:invalid{background-image:none}.main-content ::ng-deep .editgrid-listgroup .list-group-header div,.main-content ::ng-deep .editgrid-listgroup .list-group-header div:first-child{border-left:0!important}.main-content ::ng-deep .editgrid-listgroup .list-group-header div:last-child{border-right:0!important}.main-content ::ng-deep .Ensayo label:after,.main-content ::ng-deep .N_Left label:after,.main-content ::ng-deep .required_label label:after{right:-10px}.main-content ::ng-deep .list-group-item div{font-weight:300;font-family:Roboto,sans-serif;font-size:14px;color:#333}.main-content ::ng-deep .list-group-item .body_table div{padding-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.main-content ::ng-deep .help-block{color:#ed1d24!important;clear:both}.main-content ::ng-deep .editgrid-listgroup .editgrid-actions .btn-danger{transition:.3s;text-transform:none!important;background-color:#da291c;color:#fff;border:1px solid #f5f5f5;background-image:none}.main-content ::ng-deep .editgrid-listgroup.bloque_laboral{width:55%!important}.main-content ::ng-deep .cortado .form-group .form-check{float:left;width:50%!important;padding:0 1em}.main-content ::ng-deep .btn-group.pull-right{padding:0!important}.main-content ::ng-deep .editgrid-edit{width:980px}.main-content ::ng-deep .choices__list--dropdown{width:auto!important;word-break:normal!important}.main-content ::ng-deep .choices__list--dropdown .choices__item{font-weight:300!important;font-weight:13px!important;padding:4px 10px!important;font-family:"Roboto Condensed",sans-serif}.main-content ::ng-deep .Phone input{width:55%!important}.main-content ::ng-deep .date_full-1 .input-group{width:65%!important}.main-content ::ng-deep .date_full-2 .input-group{width:60%!important}.main-content ::ng-deep .date_full-3 .input-group{width:47%!important}.main-content ::ng-deep button.btn.btn-danger.removeRow,.main-content ::ng-deep button.btn.btn-default.editRow{padding-right:0!important;padding-left:0!important}.main-content ::ng-deep .Statistics .form-group .form-group{padding:0 17px}.main-content ::ng-deep .row_2{margin-left:-15px}.main-content ::ng-deep .mat-tab-label{min-width:120px}.main-content ::ng-deep .mat-toolbar.mat-primary button.mat-icon-button{display:none}.main-content ::ng-deep p{font-size:14px;font-weight:300;font-family:Roboto,sans-serif}.main-content ::ng-deep .margin_bottom{margin-bottom:20px;margin-top:20px}.main-content ::ng-deep .p-10{padding:10px!important}.main-content ::ng-deep .pl-30{padding-left:30px!important}.main-content ::ng-deep .mat-card-header .mat-card-header-text{margin:0!important}.main-content ::ng-deep input[type=checkbox],.main-content ::ng-deep input[type=radio]{box-shadow:none!important;border-color:transparent!important}.main-content ::ng-deep .field-required:after{font-size:12px;position:relative;left:2px}.main-content ::ng-deep .formio-component-submit{padding-left:15px}.main-content ::ng-deep .date .input-group input.form-control{margin-right:0}.main-content ::ng-deep .input-group-addon{float:right;width:30px}.main-content ::ng-deep .input-group-addon .glyphicon{width:16px;height:16px;position:absolute;right:7px;top:3px;background-size:cover;background-repeat:no-repeat}.main-content ::ng-deep .input-group-addon .glyphicon-calendar{background-image:url(http://apps.colfuturo.org/PLIS/img/calendar.svg)}.main-content ::ng-deep .numInputWrapper span{opacity:1!important}.main-content ::ng-deep .flatpickr-current-month .numInputWrapper{width:60px!important}.main-content ::ng-deep .flatpickr-months .flatpickr-month{height:39px!important}.main-content ::ng-deep .mt-0,.main-content ::ng-deep .n_margin-to{margin-top:0!important}.main-content ::ng-deep .group-item label{font-weight:300;font-family:Roboto,sans-serif;font-size:14px;color:#333;float:left;margin-right:1em}.main-content ::ng-deep .group-item{float:left;margin-right:.4em;display:-moz-flex;display:-ms-flex;display:-o-flex;display:flex}.main-content ::ng-deep .mat-card,.main-content ::ng-deep .mat-elevation-z8{box-shadow:none!important}.main-content ::ng-deep .relative{position:relative}.main-content ::ng-deep mat-card-content h4{margin-bottom:1.5rem}.main-content ::ng-deep .mat-select-panel .mat-option{height:20px!important}.main-content ::ng-deep .mat-select-arrow{border-top:5px solid #757575!important}.main-content ::ng-deep input.mat-input-element{font-family:Roboto,sans-serif;font-weight:300;font-size:14px;padding-right:5px;padding-left:5px}.main-content ::ng-deep .mat-form-field-hide-placeholder .mat-select-placeholder{color:#666!important;-webkit-text-fill-color:#666!important}.main-content ::ng-deep .mat-vertical-stepper-header{height:auto!important;padding:8px 24px!important;margin-top:5px}.main-content ::ng-deep .mat-vertical-content{padding:5px 25px 0!important}.main-content ::ng-deep .mat-form-field{margin-right:1em!important}.main-content ::ng-deep .mat-form-field-infix{margin-top:0;border:1px solid #bbb;width:auto!important;height:22px;line-height:22px;padding:0!important;min-width:55px!important}.main-content ::ng-deep .mat-select-value{padding:0 3px;overflow:visible!important;font-size:14px;color:#7a7a7a;font-weight:300}.main-content ::ng-deep table.ng-star-inserted td,.main-content ::ng-deep table.ng-star-inserted th{vertical-align:top!important;padding:10px 15px 0 0;font-weight:300;font-family:Roboto,sans-serif;font-size:14px;color:#666}.main-content ::ng-deep table.ng-star-inserted .subcategory{padding-right:15px;width:130px}.main-content ::ng-deep table.ng-star-inserted .select-repeat{margin-right:0!important}.main-content ::ng-deep table.ng-star-inserted .mat-form-field.input-money{margin-right:0!important}.main-content ::ng-deep table.summary .last{border-left:1px solid #ccc}.main-content ::ng-deep table.summary tr:last-child .last{border-left:1px solid #fff}.main-content ::ng-deep .select-currency{margin-bottom:.3em}.main-content ::ng-deep .mat-icon-button{padding:0 0 0 1em!important;width:auto!important;height:20px!important;line-height:20px!important}.main-content ::ng-deep .inner{overflow-x:scroll;margin-left:124px;margin-right:170px}.main-content ::ng-deep .presupuesto_detalle .table thead th{border-bottom:0 solid transparent!important;border-left:1px solid #ccc}.main-content ::ng-deep .presupuesto_detalle .table tbody tr.Last th{border-right:1px solid #fff!important;background-color:#cacaca!important}.main-content ::ng-deep .presupuesto_detalle .table tbody tr.Last th.Last{border-left:1px solid #fff}.main-content ::ng-deep .presupuesto_detalle .table tbody tr:hover .col1{color:#00a5e6!important}.main-content ::ng-deep .col1,.main-content ::ng-deep .col2{position:absolute;top:auto}.main-content ::ng-deep .col1{width:125px;left:0;font-weight:400!important;border-right:1px solid #ccc;border-left:0!important}.main-content ::ng-deep .col2{min-width:85px!important;font-weight:700!important;text-align:right;border-left:1px solid #ccc}.main-content ::ng-deep .mat-tab-body-content,.main-content ::ng-deep .tabla_fija .mat-tab-body-wrapper{overflow:visible!important;height:auto!important}.main-content ::ng-deep .mat-tab-body.mat-tab-body-active{overflow-y:inherit!important}.main-content ::ng-deep .mat-form-field-appearance-legacy .mat-form-field-underline{height:0!important;display:none!important}.main-content ::ng-deep .mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.main-content ::ng-deep .mat-form-field-empty.mat-form-field-label{display:none!important}.main-content ::ng-deep .mat-step-header .mat-step-icon-state-edit{background:#00aa1a!important}.main-content ::ng-deep .mat-tab-label{height:40px!important;min-width:90px!important}.main-content ::ng-deep .mat-tab-label .mat-tab-label-content{font-size:17px;font-weight:400}.main-content ::ng-deep .mat-raised-button.mat-primary{padding:5px 20px!important;font-size:16px!important;background-color:#449d44}.main-content ::ng-deep .mat-fab.mat-primary,.main-content ::ng-deep .mat-flat-button.mat-primary,.main-content ::ng-deep .mat-mini-fab.mat-primary{background:#08c}.main-content ::ng-deep .mat-fab.mat-primary:hover,.main-content ::ng-deep .mat-flat-button.mat-primary:hover,.main-content ::ng-deep .mat-mini-fab.mat-primary:hover,.main-content ::ng-deep .mat-raised-button.mat-primary:hover{background-color:#d20000}.main-content ::ng-deep .mat-raised-button{min-width:inherit!important;padding:0 10px!important;line-height:27px!important;border-radius:0!important;margin-top:20px!important}.main-content ::ng-deep .mat-raised-button:not([class*=mat-elevation-z]){box-shadow:none!important}.main-content ::ng-deep .table th{font-weight:300}.main-content ::ng-deep .mat-flat-button:not([class*=mat-elevation-z]),.main-content ::ng-deep .mat-stroked-button:not([class*=mat-elevation-z]){box-shadow:none;border-radius:0;line-height:27px;padding:0 10px}.main-content ::ng-deep .mat-list-base .mat-list-item,.main-content ::ng-deep .mat-list-base .mat-list-option{height:auto!important;margin-bottom:10px}.main-content ::ng-deep .mat-list-base{padding-top:0!important}.main-content ::ng-deep button.add span,.main-content ::ng-deep mat-icon.add{color:#449d44}.main-content ::ng-deep button.remove{color:#da291c}.main-content ::ng-deep .icon-hover{display:none!important}.main-content ::ng-deep .icon-with-hover:hover .icon-hover{display:inline!important}.main-content ::ng-deep .icon-with-hover:hover .icon-active{display:none}.main-content ::ng-deep mat-icon.edit{color:#f3ab46}.main-content ::ng-deep tr.mat-header-row{height:35px!important}.main-content ::ng-deep .mat-header-cell{font-size:14px;font-weight:300}.main-content ::ng-deep .mat-radio-container,.main-content ::ng-deep .mat-radio-inner-circle,.main-content ::ng-deep .mat-radio-outer-circle{height:12px!important;width:12px!important}.main-content ::ng-deep .mat-radio-outer-circle{border-width:1px!important;border-color:#a8a8a8!important;background-color:#dedede}.main-content ::ng-deep .mat-radio-button:not(.mat-radio-disabled).cdk-focused .mat-radio-persistent-ripple{opacity:0!important}.main-content ::ng-deep .mat-radio-button.mat-accent .mat-radio-inner-circle,.main-content ::ng-deep .mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.main-content ::ng-deep .mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.main-content ::ng-deep .mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:#666!important}.main-content ::ng-deep mat-radio-group{display:inline-block!important}.main-content ::ng-deep mat-radio-button{margin:0 10px 5px!important}.main-content ::ng-deep .mat-icon{background-color:#fff}.main-content ::ng-deep .mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:.35em}.main-content ::ng-deep .mat-step-icon .mat-icon,.main-content ::ng-deep .mat-step-icon-content{transform:translate(-45%,-53%)!important}.main-content ::ng-deep .mat-step-header .mat-step-icon{background:#aaa;position:relative;z-index:2}.main-content ::ng-deep .mat-step-label{font-size:19px!important;line-height:26px;font-family:"Roboto Condensed",sans-serif;font-weight:400}.main-content ::ng-deep .letter .mat-form-field{margin-right:0;min-width:210px}.main-content ::ng-deep .btn-info{transition:.3s}.main-content ::ng-deep .btn-info span{color:#fff}.main-content ::ng-deep .btn-info:hover{cursor:pointer;background-color:#d20000}.main-content ::ng-deep .btn-info:disabled{background-color:#ccc!important;border-color:#ccc!important}.main-content ::ng-deep .mat-standard-chip{padding:0!important;background-color:#fff!important;justify-content:center;width:100%}.main-content ::ng-deep .mat-standard-chip:hover:after{background:0 0!important}.main-content ::ng-deep .mat-select-panel{min-width:calc(100% + 10px)!important}.main-content ::ng-deep .mat-button-focus-overlay{background-color:transparent!important}.main-content ::ng-deep button.delete:focus{outline:0}.main-content ::ng-deep .mat-step-header .mat-step-icon-selected{background-color:#da291c!important}.main-content ::ng-deep .mat-card-actions .mat-button,.main-content ::ng-deep .mat-card-actions .mat-raised-button{margin:0!important}.main-content ::ng-deep .mat-card>.mat-card-actions:last-child{margin-bottom:0!important}@media screen and (max-width:1260px){.main-content ::ng-deep .col,.main-content ::ng-deep .col-1,.main-content ::ng-deep .col-10,.main-content ::ng-deep .col-11,.main-content ::ng-deep .col-12,.main-content ::ng-deep .col-2,.main-content ::ng-deep .col-3,.main-content ::ng-deep .col-4,.main-content ::ng-deep .col-5,.main-content ::ng-deep .col-6,.main-content ::ng-deep .col-7,.main-content ::ng-deep .col-8,.main-content ::ng-deep .col-9,.main-content ::ng-deep .col-auto,.main-content ::ng-deep .col-lg,.main-content ::ng-deep .col-lg-1,.main-content ::ng-deep .col-lg-10,.main-content ::ng-deep .col-lg-11,.main-content ::ng-deep .col-lg-12,.main-content ::ng-deep .col-lg-2,.main-content ::ng-deep .col-lg-3,.main-content ::ng-deep .col-lg-4,.main-content ::ng-deep .col-lg-5,.main-content ::ng-deep .col-lg-6,.main-content ::ng-deep .col-lg-7,.main-content ::ng-deep .col-lg-8,.main-content ::ng-deep .col-lg-9,.main-content ::ng-deep .col-lg-auto,.main-content ::ng-deep .col-md,.main-content ::ng-deep .col-md-1,.main-content ::ng-deep .col-md-10,.main-content ::ng-deep .col-md-11,.main-content ::ng-deep .col-md-12,.main-content ::ng-deep .col-md-2,.main-content ::ng-deep .col-md-3,.main-content ::ng-deep .col-md-4,.main-content ::ng-deep .col-md-5,.main-content ::ng-deep .col-md-6,.main-content ::ng-deep .col-md-7,.main-content ::ng-deep .col-md-8,.main-content ::ng-deep .col-md-9,.main-content ::ng-deep .col-md-auto,.main-content ::ng-deep .col-sm,.main-content ::ng-deep .col-sm-1,.main-content ::ng-deep .col-sm-10,.main-content ::ng-deep .col-sm-11,.main-content ::ng-deep .col-sm-12,.main-content ::ng-deep .col-sm-2,.main-content ::ng-deep .col-sm-3,.main-content ::ng-deep .col-sm-4,.main-content ::ng-deep .col-sm-5,.main-content ::ng-deep .col-sm-6,.main-content ::ng-deep .col-sm-7,.main-content ::ng-deep .col-sm-8,.main-content ::ng-deep .col-sm-9,.main-content ::ng-deep .col-sm-auto,.main-content ::ng-deep .col-xl,.main-content ::ng-deep .col-xl-1,.main-content ::ng-deep .col-xl-10,.main-content ::ng-deep .col-xl-11,.main-content ::ng-deep .col-xl-12,.main-content ::ng-deep .col-xl-2,.main-content ::ng-deep .col-xl-3,.main-content ::ng-deep .col-xl-4,.main-content ::ng-deep .col-xl-5,.main-content ::ng-deep .col-xl-6,.main-content ::ng-deep .col-xl-7,.main-content ::ng-deep .col-xl-8,.main-content ::ng-deep .col-xl-9,.main-content ::ng-deep .col-xl-auto{padding-right:5px}.main-content ::ng-deep .Form_2{margin:20px 4px!important}}@media screen and (max-width:1250px){.main-content ::ng-deep label{font-size:13px!important}}@media screen and (max-width:1220px){.main-content ::ng-deep .mat-drawer.sidenav{position:absolute!important}.main-content ::ng-deep .row.formio-component{margin-left:0;margin-right:0}.main-content ::ng-deep .card .card-header h4.card-title{text-align:center}.main-content ::ng-deep .card .card-body{padding:.3rem 0!important}.main-content ::ng-deep label{width:100%!important;margin:.3em 1em .3em 0!important}.main-content ::ng-deep label:after{position:relative}.main-content ::ng-deep .form-group .form-control,.main-content ::ng-deep .form-group .input-group{margin-left:0!important;margin-right:0!important;width:100%!important}.main-content ::ng-deep .formio-choices.form-group{float:left;margin-left:0!important;margin-top:0!important}.main-content ::ng-deep .mat-toolbar-row,.main-content ::ng-deep .mat-toolbar-single-row{height:75px!important}.main-content ::ng-deep .col{padding-left:5px!important;padding-right:5px!important}.main-content ::ng-deep .block .row{display:block}.main-content ::ng-deep .mat-toolbar.mat-primary button.mat-icon-button{display:block;margin-right:2em}.main-content ::ng-deep .no_label label.control-label--hidden{width:auto!important;margin-right:1em!important}.main-content ::ng-deep .hidden-responsive{display:none}}@media screen and (max-width:991px){.main-content ::ng-deep .col{flex:100%!important;max-width:inherit!important;padding-left:0!important;padding-right:0!important}.main-content ::ng-deep .form-group .input-group{width:40%!important}.main-content ::ng-deep .mat-toolbar.mat-primary .button-close-session{width:40px}.main-content ::ng-deep .row_2{margin-left:0}.main-content ::ng-deep .mat-vertical-content{padding:5px 5px 0!important;overflow:hidden}}.main-content hr{display:block;border-style:inset;border-width:1px;color:red}.header{display:flex;align-items:stretch}.header-item{margin:0 5px}']}),__metadata("design:paramtypes",[platformBrowser.DomSanitizer,DataFormService,ApplicationService,PppService,CommonService,PliCnfLookAndFeelService,PliCnfHeaderService,core.ComponentFactoryResolver,router.ActivatedRoute,FormService,PliCnfPdfsService,PliCnfHeaderService,TokenTransformationService])],t)}(),FileService=function(){function t(t,e,n,o){this.environment=t,this.afAuth=e,this.angularFireStorage=n,this.httpClient=o,this.afAuth.auth.signInAnonymously().then((function(t){}))}return t.prototype.upload=function(t,e){var n=new rxjs.BehaviorSubject(void 0);return this.angularFireStorage.upload(t,e).then((function(t){t.ref.getDownloadURL().then((function(t){n.next(t)}))})).catch((function(t){console.error("Error trying to upload file",t),n.error(t)})),n.asObservable()},t.prototype.uploadWithPercentage=function(t,e){var n=new rxjs.BehaviorSubject(void 0),o=this.angularFireStorage.upload(t,e);return o.then((function(t){t.ref.getDownloadURL().then((function(t){n.next(t)}))})).catch((function(t){console.error("Error trying to upload file",t),n.error(t)})),{UrlObs:n.asObservable(),PercentageObs:o.percentageChanges()}},t.prototype.download=function(t){return this.angularFireStorage.storage.ref().child(t).getDownloadURL()},t.prototype.delete=function(t){this.angularFireStorage.storage.refFromURL(t).delete()},t.prototype.getPath=function(t,e,n,o,r,i,a){var s=[];if(s.push("documents"),t===ngPliUtil.EProceso.CONVOCATORIA&&s.push("convocatoria"),t===ngPliUtil.EProceso.LEGALIZACION&&s.push("legalizacion"),t===ngPliUtil.EProceso.SEGUIMIENTO&&s.push("seguimiento"),s.push(e.toString()),s.push(n.toString()),s.push(o.toString()),s.push(r),a){var c=i.split(".");s.push(a+"_"+c[0]+"_"+ngPliUtil.UtilString.createRandomFilename(i))}else s.push(ngPliUtil.UtilString.createRandomFilename(i));return s.join("/")},t.prototype.getSurveyDocumentPath=function(t,e,n){var o=[];if(o.push("documents"),o.push(t),n){var r=e.split(".");o.push(n+"_"+r[0]+"_"+ngPliUtil.UtilString.createRandomFilename(e))}else o.push(ngPliUtil.UtilString.createRandomFilename(e));return o.join("/")},t.prototype.getFromUrl=function(t){return this.httpClient.get(t,{responseType:"blob"})},t.prototype.getMetadataFromPath=function(t){return this.angularFireStorage.ref(t).getMetadata()},t.prototype.getDownloadURLFromPath=function(t){return this.angularFireStorage.ref(t).getDownloadURL()},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:auth.AngularFireAuth},{type:storage.AngularFireStorage},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(auth$1.AngularFireAuth),core.ɵɵinject(storage$1.AngularFireStorage),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,auth.AngularFireAuth,storage.AngularFireStorage,http.HttpClient])],t)}(),PDFJS=PDFJS_,panzoom=panzoom_,PdfVisualizerComponent=function(){function t(t,e,n,o){this.commonService=t,this.sanitization=e,this.taostrService=n,this.fileService=o,this.showPager=!0,this.repeatHeader=!0,this.repeatFooter=!0,this.onDownload=new core.EventEmitter,this.onSendEmail=new core.EventEmitter,this.onChange=new core.EventEmitter,this.ready=!1,this.id_canvas="pdf-canvas",this.edit=!1}var e;return e=t,t.prototype.ngOnChanges=function(t){var e=t.html,n=t.urlFile;if(e&&e.currentValue)this.html=e.currentValue,this.generatePDF();else if(n&&n.currentValue)this.urlFile=n.currentValue,this.generatePDF();else if(this.ready=!1,this.pdfDocument&&this.pdfDocument.canvas){var o=this.pdfDocument.canvas;this.pdfDocument.canvas.getContext("2d").clearRect(0,0,o.width,o.height),this.pdfDocument=void 0}},t.prototype.generatePDF=function(){var t=this;if(!ngPliUtil.UtilString.isValid(this.html)&&ngPliUtil.UtilString.isValid(this.urlFile))this.commonService.getBase64PdfByUrl(this.urlFile).subscribe((function(e){t.showBase64Pdf(e)}),(function(t){console.log("Error trying to render PDF",t)}));else{var e=new ngPliUtil.RequestPdf;e.html=this.html,e.header=this.header,e.footer=this.footer,e.lang=this.lang,e.marginTop=this.marginTop,e.marginRight=this.marginRight,e.marginBottom=this.marginBottom,e.marginLeft=this.marginLeft,e.orientation=this.orientation,e.size=this.size,e.font=this.font,e.repeatHeader=this.repeatHeader,e.repeatFooter=this.repeatFooter,e.showPager=this.showPager,e.headerHeight=this.headerHeight,e.footerHeight=this.footerHeight,this.commonService.getBase64Pdf(e).subscribe((function(e){t.showBase64Pdf(e)}),(function(t){console.log("Error trying to render PDF",t)}))}},t.prototype.showBase64Pdf=function(t){this.base64=t.base64;var e=atob(this.base64);PDFJS.workerSrc="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.228/pdf.worker.js",PDFJS.GlobalWorkerOptions&&(PDFJS.GlobalWorkerOptions.workerSrc="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.228/pdf.worker.js"),this.pdfDocument=new ngPliUtil.PdfDocument(this.id_canvas);var n=this.pdfDocument;panzoom(this.pdfDocument.canvas,{smoothScroll:!1});var o=this,r=(this.ready,PDFJS.getDocument({data:e}));(r.promise?r.promise:r).then((function(t){n.pdfDoc=t,o.renderPage(1),!0}))},t.prototype.testBase64ToFile2=function(){for(var t=atob(this.base64),e=t.length,n=new Uint8Array(e);e--;)n[e]=t.charCodeAt(e);var o=new File([n],"TestOPrada2.pdf",{type:"application/pdf"});this.testEnvioDoc(o,"TestOPrada2.pdf")},t.prototype.testEnvioDoc=function(t,e){var n=this.fileService.getPath(ngPliUtil.EProceso.CONVOCATORIA,500,2,1,"aaaa",e);this.fileService.upload(n,t).subscribe((function(t){console.log("Finalizo envío documento",t)}),(function(t){console.log("Error trying to upload: ",t)}))},t.prototype.getHeight=function(){return this.height?this.height+"px":e.DEFAULT_HEIGHT+"px"},t.prototype.renderPage=function(t){this.pdfDocument.pageRendering=!0;var e=this.pdfDocument,n=this;this.pdfDocument.pdfDoc.getPage(t).then((function(t){var o=t.getViewport(e.scale);e.canvas.height=o.height,e.canvas.width=o.width;var r={canvasContext:e.canvas.getContext("2d"),viewport:o};t.render(r).promise.then((function(){e.pageRendering=!1,null!==e.pageNumPending&&(n.renderPage(e.pageNumPending),e.pageNumPending=null)}))}))},t.prototype.queueRenderPage=function(t){this.pdfDocument.pageRendering?this.pdfDocument.pageNumPending=t:this.renderPage(t)},t.prototype.onPrevPage=function(){!this.pdfDocument||this.pdfDocument.pageNum<=1||(this.pdfDocument.pageNum--,this.queueRenderPage(this.pdfDocument.pageNum))},t.prototype.onNextPage=function(){!this.pdfDocument||this.pdfDocument.pageNum>=this.pdfDocument.pdfDoc.numPages||(this.pdfDocument.pageNum++,this.queueRenderPage(this.pdfDocument.pageNum))},t.prototype.onZoomIn=function(){!this.pdfDocument||this.pdfDocument.scale>=3||(this.pdfDocument.scale=this.pdfDocument.scale+.2,this.queueRenderPage(this.pdfDocument.pageNum))},t.prototype.onZoomOut=function(){!this.pdfDocument||this.pdfDocument.scale<=.4||(this.pdfDocument.scale=this.pdfDocument.scale-.2,this.queueRenderPage(this.pdfDocument.pageNum))},t.prototype.ngOnInit=function(){},t.prototype.sendEmail=function(){if(this.email&&ngPliUtil.UtilString.validateEmail(this.email))return this.onSendEmail.emit({to:this.email,base64:this.base64}),void(this.email="");this.taostrService.warning("Correo electrónico es incorrecto")},t.prototype.download=function(){var t=this,e=this.base64,n=this.b64toBlob(e,"application/pdf"),o=URL.createObjectURL(n),r=document.createElement("a");document.body.appendChild(r),r.style.display="none",r.href=o,r.download=this.filename,r.click(),setTimeout((function(){window.URL.revokeObjectURL(o),document.body.removeChild(r),t.onDownload.emit({base64:t.base64})}),200)},t.prototype.change=function(){this.generatePDF(),this.onChange.emit(this.html)},t.prototype.toggleEdit=function(){this.edit=!this.edit},t.prototype.isPdfDocument=function(){return void 0!==this.pdfDocument},t.prototype.isTitle=function(){return void 0!==this.title},t.prototype.isPdfDoc=function(){return this.pdfDocument&&null!=this.pdfDocument.pdfDoc&&null!=this.pdfDocument.pdfDoc},t.prototype.isFilename=function(){return void 0!==this.filename},t.prototype.isEnableEdit=function(){return 1==this.enableEdit},t.prototype.isEdit=function(){return 1==this.edit},t.prototype.isEnableEmail=function(){return 1==this.enableEmail},t.prototype.b64toBlob=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=512);for(var o=[],r=atob(t),i=0;i<r.length;i+=n){for(var a=r.slice(i,i+n),s=new Array(a.length),c=0;c<a.length;c++)s[c]=a.charCodeAt(c);var p=new Uint8Array(s);o.push(p)}return new Blob(o,{type:e})},t.DEFAULT_HEIGHT=500,t.ctorParameters=function(){return[{type:CommonService},{type:platformBrowser.DomSanitizer},{type:ngxToastr.ToastrService},{type:FileService}]},__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"html",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"header",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"footer",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"marginTop",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"marginRight",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"marginBottom",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"marginLeft",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"font",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"orientation",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"size",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],t.prototype,"showPager",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],t.prototype,"repeatHeader",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],t.prototype,"repeatFooter",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"headerHeight",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"footerHeight",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],t.prototype,"enableEdit",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"title",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"height",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"filename",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],t.prototype,"enableEmail",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],t.prototype,"onDownload",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],t.prototype,"onSendEmail",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],t.prototype,"onChange",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"lang",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"urlFile",void 0),t=e=__decorate([core.Component({selector:"pli-pdf-visualizer",template:'<h3 class="pdf-visualizer-title">{{ title }}</h3>\r\n<div class="pdf-visualizer-container">\r\n\t<div class="pdf-visualizer-controls" *ngIf="isPdfDocument() === true">\r\n\t\t<div class="row">\r\n\t\t\t<div class="col-md-7">\r\n\t\t\t\t<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">\r\n\t\t\t\t\t<div class="btn-group btn-group-sm mr-2" role="group" aria-label="Second group">\r\n\t\t\t\t\t\t\x3c!-- zoom in--\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\ttitle="Acercar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\t(click)="onZoomIn()"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-search-plus"></span>\r\n\t\t\t\t\t\t</a>\r\n\r\n\t\t\t\t\t\t\x3c!-- zoom out--\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\ttitle="Alejar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\t(click)="onZoomOut()"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-search-minus"></span>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<div class="btn-group btn-group-sm mr-2" role="group" aria-label="Third group">\r\n\t\t\t\t\t\t\x3c!--prev --\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\t(click)="onPrevPage()"\r\n\t\t\t\t\t\t\ttitle="Anterior"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-chevron-left"></span>\r\n\t\t\t\t\t\t</a>\r\n\r\n\t\t\t\t\t\t\x3c!-- pagination--\x3e\r\n\t\t\t\t\t\t<span class="btn btn-outline-secondary" *ngIf="isPdfDoc() === true">\r\n\t\t\t\t\t\t\tPágina: {{ pdfDocument.pageNum }} / {{ pdfDocument.pdfDoc.numPages }}\r\n\t\t\t\t\t\t</span>\r\n\r\n\t\t\t\t\t\t\x3c!--next --\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\t(click)="onNextPage()"\r\n\t\t\t\t\t\t\ttitle="Siguiente"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-chevron-right"></span>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<div class="btn-group btn-group-sm" role="group" aria-label="First group">\r\n\t\t\t\t\t\t\x3c!-- download--\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t[download]="filename"\r\n\t\t\t\t\t\t\t*ngIf="isFilename() === true"\r\n\t\t\t\t\t\t\t(click)="download()"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\ttitle="Descargar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\x3c!-- [href]="\r\n\t\t\t\t\t\t\tsanitization.bypassSecurityTrustUrl(\r\n\t\t\t\t\t\t\t\t\'data:application/pdf;base64,\' + this.base64\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t" --\x3e\r\n\t\t\t\t\t\t\t<span class="fa fa-download"></span>\r\n\t\t\t\t\t\t</a>\r\n\r\n\t\t\t\t\t\t\x3c!-- toggle edit--\r\n <a href="Javascript:;" *ngIf="isEnableEdit() === true" class="btn btn-outline-secondary" title="Editar"\r\n data-toggle="tooltip" data-placement="top" (click)="toggleEdit()">\r\n <span class="fa fa-edit"></span>\r\n </a>\r\n\r\n \x3c!-- generate pdf--\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\t*ngIf="isEdit() === true"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\ttitle="Generar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t\t(click)="change()"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-play"></span>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-md-5 pull-right" *ngIf="isEnableEmail() === true">\r\n\t\t\t\t<div class="input-group input-group-sm">\r\n\t\t\t\t\t<label for="pdf-visualizer-email" class="pdf">\r\n\t\t\t\t\t\tEnviar mensaje a\r\n\t\t\t\t\t</label>\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="email"\r\n\t\t\t\t\t\tid="pdf-visualizer-email"\r\n\t\t\t\t\t\tname="pdf-visualizer-email"\r\n\t\t\t\t\t\trequired="true"\r\n\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\tplaceholder="Correo electrónico"\r\n\t\t\t\t\t\t[(ngModel)]="email"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<div class="input-group-append">\r\n\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\ttype="button"\r\n\t\t\t\t\t\t\t(click)="sendEmail()"\r\n\t\t\t\t\t\t\ttitle="Enviar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<img\r\n\t\t\t\t\t\t\t\tsrc="http://giro360.co/zona360/colfuturo/PLIC/img/export.svg"\r\n\t\t\t\t\t\t\t\talt=""\r\n\t\t\t\t\t\t\t\twidth="16"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</button>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<div class="pdf-visualizer-dashboard">\r\n\t\t<div class="row">\r\n\t\t\t<div class="col-md-5" *ngIf="isEdit() === true">\r\n\t\t\t\t<textarea\r\n\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t[style.height]="getHeight()"\r\n\t\t\t\t\tstyle="resize:vertical;"\r\n\t\t\t\t\t[(ngModel)]="html"\r\n\t\t\t\t></textarea>\r\n\t\t\t</div>\r\n\t\t\t<div [ngClass]="{ \'col-md-7\': edit === true, \'col-md-12\': !edit }">\r\n\t\t\t\t<div\r\n\t\t\t\t\tid="pdf-scrollable"\r\n\t\t\t\t\tclass="pdf-visualizer-scrollable"\r\n\t\t\t\t\t[style.height]="getHeight()"\r\n\t\t\t\t>\r\n\t\t\t\t\t<canvas id="pdf-canvas" class="pdf-visualizer-canvas"> </canvas>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n',styles:[".pdf-visualizer-container{border:1px solid #eee;margin:10px 0}.pdf-visualizer-controls,.pdf-visualizer-dashboard{background-color:#f5f5f5;padding:15px}.pdf-visualizer-dashboard{border-bottom:1px solid #eee;border-top:1px solid #eee}.pdf-visualizer-title{font-size:1.4rem;color:red;text-align:center;margin-bottom:1em}.pdf-visualizer-canvas{cursor:move}.text-align-center{text-align:center}.text-align-left{text-align:left}.text-align-right{text-align:right}.margin-left{margin-left:5px}.pdf-visualizer-scrollable{overflow:hidden;text-align:center}label.pdf{margin-right:.6em;line-height:24px}button.btn-outline-secondary{height:26px;line-height:12px!important}"]}),__metadata("design:paramtypes",[CommonService,platformBrowser.DomSanitizer,ngxToastr.ToastrService,FileService])],t)}(),PDFJS$1=PDFJS_,panzoom$1=panzoom_,PdfMergeVisualizerComponent=function(){function t(t,e,n){this.commonService=t,this.taostrService=e,this.sanitization=n,this.enableEdit=!1,this.onDownload=new core.EventEmitter,this.onSendEmail=new core.EventEmitter,this.onPdfRendered=new core.EventEmitter,this.edit=!1,this.ready=!1,this.id_canvas="pdf-canvas"}var e;return e=t,t.prototype.ngOnChanges=function(t){var e=t.lPdfRequest,n=t.urlFile;if(e&&e.currentValue)this.generatePDF();else if(n&&n.currentValue)this.urlFile=n.currentValue,this.generatePDF();else if(this.ready=!1,this.pdfDocument&&this.pdfDocument.canvas){var o=this.pdfDocument.canvas;this.pdfDocument.canvas.getContext("2d").clearRect(0,0,o.width,o.height),this.pdfDocument=void 0}},t.prototype.generatePDF=function(){var t=this;ngPliUtil.UtilString.isValid(this.urlFile)?this.commonService.getBase64PdfByUrl(this.urlFile).subscribe((function(e){t.showBase64Pdf(e)}),(function(t){console.error("Error trying to render PDF",t)})):this.lPdfRequest&&this.commonService.getBase64PdfList(this.lPdfRequest).subscribe((function(e){t.showBase64Pdf(e)}),(function(t){console.error("Error trying to render PDF",t)}))},t.prototype.showBase64Pdf=function(t){this.base64=t.base64;var e=atob(this.base64);PDFJS$1.workerSrc="//mozilla.github.io/pdf.js/build/pdf.worker.js",this.pdfDocument=new ngPliUtil.PdfDocument(this.id_canvas);var n=this.pdfDocument;panzoom$1(this.pdfDocument.canvas,{smoothScroll:!1});var o=this;this.ready;PDFJS$1.getDocument({data:e}).then((function(t){n.pdfDoc=t,o.renderPage(1),!0,o.onPdfRendered.emit(!0)}))},t.prototype.getHeight=function(){return this.height?this.height+"px":e.DEFAULT_HEIGHT+"px"},t.prototype.renderPage=function(t){this.pdfDocument.pageRendering=!0;var e=this.pdfDocument,n=this;this.pdfDocument.pdfDoc.getPage(t).then((function(t){var o=t.getViewport(e.scale);e.canvas.height=o.height,e.canvas.width=o.width;var r={canvasContext:e.canvas.getContext("2d"),viewport:o};t.render(r).promise.then((function(){e.pageRendering=!1,null!==e.pageNumPending&&(n.renderPage(e.pageNumPending),e.pageNumPending=null)}))}))},t.prototype.queueRenderPage=function(t){this.pdfDocument.pageRendering?this.pdfDocument.pageNumPending=t:this.renderPage(t)},t.prototype.onPrevPage=function(){!this.pdfDocument||this.pdfDocument.pageNum<=1||(this.pdfDocument.pageNum--,this.queueRenderPage(this.pdfDocument.pageNum))},t.prototype.onNextPage=function(){!this.pdfDocument||this.pdfDocument.pageNum>=this.pdfDocument.pdfDoc.numPages||(this.pdfDocument.pageNum++,this.queueRenderPage(this.pdfDocument.pageNum))},t.prototype.onZoomIn=function(){!this.pdfDocument||this.pdfDocument.scale>=3||(this.pdfDocument.scale=this.pdfDocument.scale+.2,this.queueRenderPage(this.pdfDocument.pageNum))},t.prototype.onZoomOut=function(){!this.pdfDocument||this.pdfDocument.scale<=.4||(this.pdfDocument.scale=this.pdfDocument.scale-.2,this.queueRenderPage(this.pdfDocument.pageNum))},t.prototype.sendEmail=function(){if(this.email&&ngPliUtil.UtilString.validateEmail(this.email))return this.onSendEmail.emit({to:this.email,base64:this.base64}),void(this.email="");this.taostrService.warning("Correo electrónico es incorrecto")},t.prototype.download=function(){var t=this,e=this.base64,n=this.b64toBlob(e,"application/pdf"),o=URL.createObjectURL(n),r=document.createElement("a");document.body.appendChild(r),r.style.display="none",r.href=o,r.download=this.filename,r.click(),setTimeout((function(){window.URL.revokeObjectURL(o),document.body.removeChild(r),t.onDownload.emit({base64:t.base64})}),200)},t.prototype.toggleEdit=function(){this.edit=!this.edit},t.prototype.isPdfDocument=function(){return void 0!==this.pdfDocument},t.prototype.isTitle=function(){return void 0!==this.title},t.prototype.isPdfDoc=function(){return this.pdfDocument&&null!=this.pdfDocument.pdfDoc&&null!=this.pdfDocument.pdfDoc},t.prototype.isFilename=function(){return void 0!==this.filename},t.prototype.isEnableEdit=function(){return 1==this.enableEdit},t.prototype.isEdit=function(){return 1==this.edit},t.prototype.isEnableEmail=function(){return 1==this.enableEmail},t.prototype.b64toBlob=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=512);for(var o=[],r=atob(t),i=0;i<r.length;i+=n){for(var a=r.slice(i,i+n),s=new Array(a.length),c=0;c<a.length;c++)s[c]=a.charCodeAt(c);var p=new Uint8Array(s);o.push(p)}return new Blob(o,{type:e})},t.DEFAULT_HEIGHT=500,t.ctorParameters=function(){return[{type:CommonService},{type:ngxToastr.ToastrService},{type:platformBrowser.DomSanitizer}]},__decorate([core.Input(),__metadata("design:type",Array)],t.prototype,"lPdfRequest",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],t.prototype,"enableEdit",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"title",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"height",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"filename",void 0),__decorate([core.Input(),__metadata("design:type",Boolean)],t.prototype,"enableEmail",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"urlFile",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],t.prototype,"onDownload",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],t.prototype,"onSendEmail",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],t.prototype,"onPdfRendered",void 0),t=e=__decorate([core.Component({selector:"pli-pdf-merge-visualizer",template:'<h3 class="pdf-visualizer-title">{{ title }}</h3>\r\n<div class="pdf-visualizer-container">\r\n\t<div class="pdf-visualizer-controls" *ngIf="isPdfDocument() === true">\r\n\t\t<div class="row">\r\n\t\t\t<div class="col-md-7">\r\n\t\t\t\t<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">\r\n\t\t\t\t\t<div class="btn-group btn-group-sm mr-2" role="group" aria-label="Second group">\r\n\t\t\t\t\t\t\x3c!-- zoom in--\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\ttitle="Acercar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\t(click)="onZoomIn()"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-search-plus"></span>\r\n\t\t\t\t\t\t</a>\r\n\r\n\t\t\t\t\t\t\x3c!-- zoom out--\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\ttitle="Alejar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\t(click)="onZoomOut()"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-search-minus"></span>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<div class="btn-group btn-group-sm mr-2" role="group" aria-label="Third group">\r\n\t\t\t\t\t\t\x3c!--prev --\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\t(click)="onPrevPage()"\r\n\t\t\t\t\t\t\ttitle="Anterior"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-chevron-left"></span>\r\n\t\t\t\t\t\t</a>\r\n\r\n\t\t\t\t\t\t\x3c!-- pagination--\x3e\r\n\t\t\t\t\t\t<span class="btn btn-outline-secondary" *ngIf="isPdfDoc() === true">\r\n\t\t\t\t\t\t\tPágina: {{ pdfDocument.pageNum }} / {{ pdfDocument.pdfDoc.numPages }}\r\n\t\t\t\t\t\t</span>\r\n\r\n\t\t\t\t\t\t\x3c!--next --\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\t(click)="onNextPage()"\r\n\t\t\t\t\t\t\ttitle="Siguiente"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-chevron-right"></span>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<div class="btn-group btn-group-sm" role="group" aria-label="First group">\r\n\t\t\t\t\t\t\x3c!-- download--\x3e\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t[download]="filename"\r\n\t\t\t\t\t\t\t*ngIf="isFilename() === true"\r\n\t\t\t\t\t\t\t(click)="download()"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\ttitle="Descargar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\x3c!-- [href]="\r\n\t\t\t\t\t\t\t\tsanitization.bypassSecurityTrustUrl(\r\n\t\t\t\t\t\t\t\t\t\'data:application/pdf;base64,\' + this.base64\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t" --\x3e\r\n\t\t\t\t\t\t\t<span class="fa fa-download"></span>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\x3c!-- TODO - Check functionality --\x3e\r\n\t\t\t\t\t\t\x3c!-- toggle edit--\x3e\r\n\t\t\t\t\t\t\x3c!-- <a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\t*ngIf="isEnableEdit() === true"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\ttitle="Editar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t\t(click)="toggleEdit()"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-edit"></span>\r\n\t\t\t\t\t\t</a> --\x3e\r\n\r\n\t\t\t\t\t\t\x3c!-- generate pdf--\x3e\r\n\t\t\t\t\t\t\x3c!-- <a\r\n\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\t*ngIf="isEdit() === true"\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\ttitle="Generar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t\t(click)="change()"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class="fa fa-play"></span>\r\n\t\t\t\t\t\t</a> --\x3e\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="col-md-5 pull-right" *ngIf="isEnableEmail() === true">\r\n\t\t\t\t<div class="input-group input-group-sm">\r\n\t\t\t\t\t<label for="pdf-visualizer-email" class="pdf">\r\n\t\t\t\t\t\tEnviar mensaje a\r\n\t\t\t\t\t</label>\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="email"\r\n\t\t\t\t\t\tid="pdf-visualizer-email"\r\n\t\t\t\t\t\tname="pdf-visualizer-email"\r\n\t\t\t\t\t\trequired="true"\r\n\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\tplaceholder="Correo electrónico"\r\n\t\t\t\t\t\t[(ngModel)]="email"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<div class="input-group-append">\r\n\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\tclass="btn btn-outline-secondary"\r\n\t\t\t\t\t\t\ttype="button"\r\n\t\t\t\t\t\t\t(click)="sendEmail()"\r\n\t\t\t\t\t\t\ttitle="Enviar"\r\n\t\t\t\t\t\t\tdata-toggle="tooltip"\r\n\t\t\t\t\t\t\tdata-placement="top"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<img\r\n\t\t\t\t\t\t\t\tsrc="http://giro360.co/zona360/colfuturo/PLIC/img/export.svg"\r\n\t\t\t\t\t\t\t\talt=""\r\n\t\t\t\t\t\t\t\twidth="16"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</button>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<div class="pdf-visualizer-dashboard">\r\n\t\t<div class="row">\r\n\t\t\t\x3c!-- <div class="col-md-5" *ngIf="isEdit() === true">\r\n\t\t\t\t<textarea\r\n\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t[style.height]="getHeight()"\r\n\t\t\t\t\tstyle="resize:vertical;"\r\n\t\t\t\t\t[(ngModel)]="html"\r\n\t\t\t\t></textarea>\r\n\t\t\t</div> --\x3e\r\n\t\t\t<div [ngClass]="{ \'col-md-7\': edit === true, \'col-md-12\': !edit }">\r\n\t\t\t\t<div\r\n\t\t\t\t\tid="pdf-scrollable"\r\n\t\t\t\t\tclass="pdf-visualizer-scrollable"\r\n\t\t\t\t\t[style.height]="getHeight()"\r\n\t\t\t\t>\r\n\t\t\t\t\t<canvas id="pdf-canvas" class="pdf-visualizer-canvas"> </canvas>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n',styles:[".pdf-visualizer-container{border:1px solid #eee;margin:10px 0}.pdf-visualizer-controls,.pdf-visualizer-dashboard{background-color:#f5f5f5;padding:15px}.pdf-visualizer-dashboard{border-bottom:1px solid #eee;border-top:1px solid #eee}.pdf-visualizer-title{font-size:1.4rem;color:red;text-align:center;margin-bottom:1em}.pdf-visualizer-canvas{cursor:move}.text-align-center{text-align:center}.text-align-left{text-align:left}.text-align-right{text-align:right}.margin-left{margin-left:5px}.pdf-visualizer-scrollable{overflow:hidden;text-align:center}label.pdf{margin-right:.6em;line-height:24px}button.btn-outline-secondary{height:26px;line-height:12px!important}"]}),__metadata("design:paramtypes",[CommonService,ngxToastr.ToastrService,platformBrowser.DomSanitizer])],t)}(),SelectPppComponent=function(){function t(t){var e=this;if(this.pppService=t,this.patCodigo="",this.progCodigo="",this.promCodigo="",this.onPromCodigoSelected=new core.EventEmitter,this.pppService.getListPpp().subscribe((function(t){t&&(e.listPatrocinador=t,e.initPpp())})),this.pppService.onChangePpp().subscribe((function(t){t&&(e.promCodigo=t,e.initPpp())})),!this.promCodigo){var n=this.pppService.getAllPromociones();n&&n.length&&(n.sort((function(t,e){return t.promFechaCreacion<e.promFechaCreacion?1:t.promFechaCreacion>e.promFechaCreacion?-1:0})),this.promCodigo=n[0].promCodigo,this.initPpp(),this.pppService.setPpp(this.promCodigo))}}return t.prototype.ngOnInit=function(){},t.prototype.initPpp=function(){var t,e,n,o,r,i;if(this.listPatrocinador&&this.listPatrocinador.length&&this.promCodigo)try{for(var a=__values(this.listPatrocinador),s=a.next();!s.done;s=a.next()){var c=s.value;try{for(var p=(n=void 0,__values(c.listaPliPrograma)),l=p.next();!l.done;l=p.next()){var d=l.value;try{for(var u=(r=void 0,__values(d.listaPliPromocion)),m=u.next();!m.done;m=u.next()){var h=m.value;h.promCodigo==this.promCodigo&&(this.patCodigo=c.patCodigo,this.progCodigo=d.progCodigo,this.promCodigo=h.promCodigo,this.listPrograma=c.listaPliPrograma,this.listPromocion=d.listaPliPromocion)}}catch(t){r={error:t}}finally{try{m&&!m.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}}}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}},t.prototype.onPliPatrocinadorChanged=function(){var t,e;if(this.patCodigo)try{for(var n=__values(this.listPatrocinador),o=n.next();!o.done;o=n.next()){var r=o.value;r.patCodigo==this.patCodigo&&(this.patCodigo=r.patCodigo,this.progCodigo="",this.promCodigo="",this.listPrograma=r.listaPliPrograma,this.listPromocion=[])}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}else this.progCodigo="",this.promCodigo="",this.listPrograma=[],this.listPromocion=[]},t.prototype.onPliProgramaChanged=function(){var t,e;if(this.progCodigo)try{for(var n=__values(this.listPrograma),o=n.next();!o.done;o=n.next()){var r=o.value;r.progCodigo==this.progCodigo&&(this.promCodigo="",this.listPromocion=r.listaPliPromocion)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}else this.promCodigo="",this.listPromocion=[]},t.prototype.onPliPromocionChanged=function(t){this.onPromCodigoSelected.emit(this.promCodigo)},t.ctorParameters=function(){return[{type:PppService}]},__decorate([core.Output(),__metadata("design:type",Object)],t.prototype,"onPromCodigoSelected",void 0),t=__decorate([core.Component({selector:"pli-select-ppp",template:'<div class="row">\r\n\t<div class="col-md-4">\r\n\t\t<div class="form-group">\r\n\t\t\t<label for="patCodigo" class="form-control-label">Patrocinador</label>\r\n\t\t\t<select\r\n\t\t\t\tname="patCodigo"\r\n\t\t\t\tid="patCodigo"\r\n\t\t\t\tclass="form-control"\r\n\t\t\t\t[(ngModel)]="patCodigo"\r\n\t\t\t\t(change)="onPliPatrocinadorChanged()"\r\n\t\t\t>\r\n\t\t\t\t<option value="">-- Seleccione opción</option>\r\n\t\t\t\t<option\r\n\t\t\t\t\t*ngFor="let pliPatrocinador of listPatrocinador"\r\n\t\t\t\t\t[value]="pliPatrocinador.patCodigo"\r\n\t\t\t\t\t>{{ pliPatrocinador.patNombreCorto }}</option\r\n\t\t\t\t>\r\n\t\t\t</select>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class="col-md-4">\r\n\t\t<div class="form-group">\r\n\t\t\t<label for="progCodigo" class="form-control-label">Programa</label>\r\n\t\t\t<select\r\n\t\t\t\tname="progCodigo"\r\n\t\t\t\tid="progCodigo"\r\n\t\t\t\tclass="form-control"\r\n\t\t\t\t[(ngModel)]="progCodigo"\r\n\t\t\t\t(change)="onPliProgramaChanged()"\r\n\t\t\t>\r\n\t\t\t\t<option value="">-- Seleccione opción</option>\r\n\t\t\t\t<option *ngFor="let pliPrograma of listPrograma" [value]="pliPrograma.progCodigo">{{\r\n\t\t\t\t\tpliPrograma.progNombreCorto\r\n\t\t\t\t}}</option>\r\n\t\t\t</select>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class="col-md-4">\r\n\t\t<div class="form-group">\r\n\t\t\t<label for="promCodigo" class="form-control-label">Promocion</label>\r\n\t\t\t<select\r\n\t\t\t\tname="promCodigo"\r\n\t\t\t\tid="promCodigo"\r\n\t\t\t\tclass="form-control"\r\n\t\t\t\t[(ngModel)]="promCodigo"\r\n\t\t\t\t(change)="onPliPromocionChanged($event)"\r\n\t\t\t>\r\n\t\t\t\t<option value="">-- Seleccione opción</option>\r\n\t\t\t\t<option\r\n\t\t\t\t\t*ngFor="let pliPromocion of listPromocion"\r\n\t\t\t\t\t[value]="pliPromocion.promCodigo"\r\n\t\t\t\t\t>{{ pliPromocion.promNombreCorto }}</option\r\n\t\t\t\t>\r\n\t\t\t</select>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n',styles:[""]}),__metadata("design:paramtypes",[PppService])],t)}(),ShowHideColumnsTableComponent=function(t){function e(e,n,o){var r=t.call(this,e,n)||this;return r.commonService=e,r.cdRef=n,r.toastrService=o,r.ready=!1,r.listColumnSelected=new core.EventEmitter,r}return __extends(e,t),e.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this),this.ready=!0,this.comboColumnWork&&(this.comboColumnWork.sort((function(t,e){var n=ngPliUtil.UtilString.accentsTidy(t.label).toLowerCase(),o=ngPliUtil.UtilString.accentsTidy(e.label).toLowerCase();return n>o?1:o>n?-1:0})),this.comboColumnWork.forEach((function(t){t.items&&t.items.sort((function(t,e){var n=ngPliUtil.UtilString.accentsTidy(t.label).toLowerCase(),o=ngPliUtil.UtilString.accentsTidy(e.label).toLowerCase();return n>o?1:o>n?-1:0}))})))},e.prototype.changeCategory=function(t,e){var n,o,r,i;if(e)if(t)try{for(var a=__values(e.items),s=a.next();!s.done;s=a.next()){s.value.selected=!0}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}else try{for(var c=__values(e.items),p=c.next();!p.done;p=c.next()){p.value.selected=!1}}catch(t){r={error:t}}finally{try{p&&!p.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}},e.prototype.isVisibleCategory=function(t){var e,n;try{for(var o=__values(t.items),r=o.next();!r.done;r=o.next()){var i=r.value;if(this.isVisibleColumn(i.label))return!0}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return!1},e.prototype.isVisibleColumn=function(t){return!this.columnSearch||!!(t&&t.toLowerCase().indexOf(this.columnSearch.toLowerCase())>=0)},e.prototype.sendSubject=function(){var t,e,n,o,r,i,a,s,c,p,l=[];try{for(var d=__values(this.comboColumnWork),u=d.next();!u.done;u=d.next()){var m=u.value;try{for(var h=(n=void 0,__values(m.items)),g=h.next();!g.done;g=h.next()){(k=g.value).selected&&l.push(k.value)}}catch(t){n={error:t}}finally{try{g&&!g.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(e=d.return)&&e.call(d)}finally{if(t)throw t.error}}var f=[];try{for(var v=__values(this.listColumnWork),y=v.next();!y.done;y=v.next()){var C=y.value;try{for(var b=(a=void 0,__values(this.comboColumnWork)),S=b.next();!S.done;S=b.next()){m=S.value;try{for(var _=(c=void 0,__values(m.items)),T=_.next();!T.done;T=_.next()){var k;(k=T.value).value==C.idColumn&&(k.selected?C.visible=!0:C.visible=!1)}}catch(t){c={error:t}}finally{try{T&&!T.done&&(p=_.return)&&p.call(_)}finally{if(c)throw c.error}}}}catch(t){a={error:t}}finally{try{S&&!S.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}f.push(this.cloneObject(C))}}catch(t){r={error:t}}finally{try{y&&!y.done&&(i=v.return)&&i.call(v)}finally{if(r)throw r.error}}this.listColumnSelected.emit(f)},e.ctorParameters=function(){return[{type:CommonService},{type:core.ChangeDetectorRef},{type:ngxToastr.ToastrService}]},__decorate([core.Input(),__metadata("design:type",String)],e.prototype,"title",void 0),__decorate([core.Input(),__metadata("design:type",Array)],e.prototype,"listColumnWork",void 0),__decorate([core.Input(),__metadata("design:type",Array)],e.prototype,"comboColumnWork",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],e.prototype,"listColumnSelected",void 0),e=__decorate([core.Component({selector:"app-show-hide-columns-table",template:'<button\r\n\ttype="button"\r\n\tclass="btn btn-default btn-sm "\r\n\t(click)="displayDialog = !displayDialog"\r\n\t*ngIf="ready"\r\n>\r\n\t{{ title }}\r\n</button>\r\n\r\n<p-dialog\r\n\t*ngIf="ready"\r\n\theader="Ocultar o mostrar columnas"\r\n\t[(visible)]="displayDialog"\r\n\t[modal]="true"\r\n\t[contentStyle]="{\r\n\t\t\'text-align\': \'left\',\r\n\t\twidth: \'1100px\',\r\n\t\t\'overflow-y\': \'auto\'\r\n\t}"\r\n\tdismissableMask="true"\r\n\t(onHide)="sendSubject()"\r\n>\r\n\t<div class="row">\r\n\t\t<div class="col-md-4">\r\n\t\t\t<input\r\n\t\t\t\ttype="input"\r\n\t\t\t\tclass="form-control"\r\n\t\t\t\tplaceholder="Busqueda de columnas"\r\n\t\t\t\t[(ngModel)]="columnSearch"\r\n\t\t\t/>\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<ng-container *ngFor="let category of comboColumnWork">\r\n\t\t<div class="row" *ngIf="isVisibleCategory(category)" style="margin-top:2rem;">\r\n\t\t\t<div class="col-md-12">\r\n\t\t\t\t<div class="checkbox" style="margin:0 !important;">\r\n\t\t\t\t\t<label\r\n\t\t\t\t\t\t><input\r\n\t\t\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\t\t\t(change)="changeCategory($event.currentTarget.checked, category)"\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t<strong>{{ category.label }}</strong>\r\n\t\t\t\t\t</label>\r\n\t\t\t\t\t&nbsp;<span\r\n\t\t\t\t\t\tclass="fa"\r\n\t\t\t\t\t\t[ngClass]="{\r\n\t\t\t\t\t\t\t\'fa-chevron-down\': !category.collapsed,\r\n\t\t\t\t\t\t\t\'fa-chevron-right\': category.collapsed\r\n\t\t\t\t\t\t}"\r\n\t\t\t\t\t\tstyle="cursor:pointer;"\r\n\t\t\t\t\t\t(click)="category.collapsed = !category.collapsed"\r\n\t\t\t\t\t></span>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div class="row" *ngIf="!category.collapsed">\r\n\t\t\t\t\t<div class="col-md-12">\r\n\t\t\t\t\t\t<div style="margin-left:2rem;margin-top:1rem;">\r\n\t\t\t\t\t\t\t<ng-container *ngFor="let column of category.items">\r\n\t\t\t\t\t\t\t\t<div class="col-md-3" *ngIf="isVisibleColumn(column.label)">\r\n\t\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t\t*ngIf="column.value != null"\r\n\t\t\t\t\t\t\t\t\t\tclass="checkbox"\r\n\t\t\t\t\t\t\t\t\t\tstyle="margin:0 !important;"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<label class="adjust-text-size" title="{{ column.label }}"\r\n\t\t\t\t\t\t\t\t\t\t\t><input\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]="column.selected"\r\n\t\t\t\t\t\t\t\t\t\t\t/>{{ column.label }}</label\r\n\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t<div *ngIf="column.value == null">&nbsp;</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</ng-container>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</ng-container>\r\n</p-dialog>\r\n',styles:[".adjust-text-size{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.align-left{text-align:left!important}"]}),__metadata("design:paramtypes",[CommonService,core.ChangeDetectorRef,ngxToastr.ToastrService])],e)}(CommonListsComponent),TokenComponent=function(){function TokenComponent(t,e,n,o){this.currencyPipe=t,this.tokenService=e,this.toastrService=n,this.authenticationService=o,this.onGenerate=new core.EventEmitter,this.enableDestination=!1}return TokenComponent.prototype.ngOnInit=function(){this.lTokenCalculated=null,this.lFormFieldsToken=null,this.budgetDtoPrimary=null,this.budgetDtoSecundary=null,this.evaluation=null},TokenComponent.prototype.ngOnChanges=function(t){this.uniqueVerificationCode=null;var e=t.template,n=t.data;if(e&&e.currentValue&&(this.template=e.currentValue),n&&n.currentValue&&(this.data=n.currentValue,this.promCodigo=this.data.promCodigo),this.data&&(this.budgetDtoPrimary=this.data.budgetDtoPrimary?this.data.budgetDtoPrimary:null,this.budgetDtoSecundary=this.data.budgetDtoSecundary?this.data.budgetDtoSecundary:null,this.evaluation=this.data.evaluation),this.data&&this.template&&this.promCodigo){var o=this;setTimeout((function(){o.init()}),300)}},TokenComponent.prototype.init=function(){this.translateTokens(this.template,this.data.dataFormByForm)},TokenComponent.prototype.translateCategory=function(t){var e,n,o,r,i=t;if(t&&this.data.categories&&this.data.idioma){if("es"===this.data.idioma.locale)return t;try{for(var a=__values(this.data.categories),s=a.next();!s.done;s=a.next()){var c=s.value;if(c.listaRubroIdioma&&c.rubRubro===t){try{for(var p=(o=void 0,__values(c.listaRubroIdioma)),l=p.next();!l.done;l=p.next()){var d=l.value;if(d.rubiIdioma===this.data.idioma.locale)return d.rubiTraduccion;"en"===d.rubiIdioma&&(i=d.rubiTraduccion)}}catch(t){o={error:t}}finally{try{l&&!l.done&&(r=p.return)&&r.call(p)}finally{if(o)throw o.error}}break}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}}return i},TokenComponent.prototype.translateTokens=function(t,e){this.alreadyCallReplaceTokens=!1;var n=this.getListTokens(t);n&&0!==Object.keys(n).length||(this.template=t),this.callListTokens(n,t,e)},TokenComponent.prototype.callListTokens=function(t,e,n){var o=this;if(t[TokenService.TOKEN_LABEL_CALCULATED]&&Object.keys(t[TokenService.TOKEN_LABEL_CALCULATED]).length>0?this.lTokenCalculated?this.validateListTokens(t,e,n):this.tokenService.getListByPromCodigo(this.promCodigo).subscribe((function(r){o.lTokenCalculated=r,o.validateListTokens(t,e,n)}),(function(t){console.error("Error callListTokens -getListByPromCodigo",t),o.toastrService.error("Error generando carta")})):this.validateListTokens(t,e,n),t[TokenService.TOKEN_LABEL_FORM]&&Object.keys(t[TokenService.TOKEN_LABEL_FORM]).length>0?this.lFormFieldsToken?this.validateListTokens(t,e,n):this.tokenService.getFormFieldsByPromCode(this.promCodigo).then((function(r){o.lFormFieldsToken=r,o.validateListTokens(t,e,n)}),(function(t){console.error("Error callListTokens -getFormFieldsByPromCode",t),o.toastrService.error("Error generando carta")})):this.validateListTokens(t,e,n),t[TokenService.TOKEN_LABEL_STATIC]&&Object.keys(t[TokenService.TOKEN_LABEL_STATIC]).length>0)if(null!==this.uniqueVerificationCode)this.validateListTokens(t,e,n);else{var r=t[TokenService.TOKEN_LABEL_STATIC].find((function(t){return t.key.replace("{","").replace("}","").split("_")[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_CODIGO_VERIFICACION.toLowerCase()}));if(r&&Object.keys(r).length>0){var i=ngPliUtil.AuthenticationUtil.getPliUsuario();if(i){var a=Object.assign(new ngPliUtil.PliUsuario,JSON.parse(JSON.stringify(i)));this.authenticationService.getTokenByLogin(a.usuLogin).subscribe((function(r){var i=r?r.sesion:"1";o.getUniqueVerificationCode(a.usuLogin,i,t,e,n)}),(function(r){console.error("Error consultando el login en PLIS, getTokenByLogin",r),o.getUniqueVerificationCode(a.usuLogin,"1",t,e,n)}))}else this.uniqueVerificationCode="",console.error("No se logro consultar el usuario para consultar el token",i),this.validateListTokens(t,e,n)}else this.uniqueVerificationCode="",this.validateListTokens(t,e,n)}else this.validateListTokens(t,e,n)},TokenComponent.prototype.getUniqueVerificationCode=function(t,e,n,o,r){var i=this;this.tokenService.getUniqueVerificationCode(t,e).subscribe((function(t){var e=t.codigoUnico;i.uniqueVerificationCode=e.substring(0,4)+" "+e.substring(4,8),i.validateListTokens(n,o,r)}),(function(t){console.error("Error callListTokens -getListByPromCodigo",t),i.toastrService.error("Error generando carta")}))},TokenComponent.prototype.validateListTokens=function(t,e,n){var o=!1,r=!1,i=!1;o=!(t[TokenService.TOKEN_LABEL_FORM]&&t[TokenService.TOKEN_LABEL_FORM].length>0)||!!this.lFormFieldsToken,r=!(t[TokenService.TOKEN_LABEL_CALCULATED]&&t[TokenService.TOKEN_LABEL_CALCULATED].length>0)||!!this.lTokenCalculated,i=!(t[TokenService.TOKEN_LABEL_STATIC]&&t[TokenService.TOKEN_LABEL_STATIC].length>0)||null!==this.uniqueVerificationCode,o&&i&&r&&!this.alreadyCallReplaceTokens&&(this.alreadyCallReplaceTokens=!0,this.replaceTokensWithData(t,e,n))},TokenComponent.prototype.replaceTokensWithData=function(lTokens,html,listData){var e_3,_a,e_4,_b,e_5,_c,e_6,_d,lDataOrg=[],lFormFieldsTokenOrg=[];if((lTokens[TokenService.TOKEN_LABEL_FORM]||lTokens[TokenService.TOKEN_LABEL_CALCULATED])&&listData){for(var dataForm in listData)lDataOrg[dataForm.toLowerCase()]=listData[dataForm];if(this.lFormFieldsToken)try{for(var _e=__values(this.lFormFieldsToken),_f=_e.next();!_f.done;_f=_e.next()){var formFieldToken=_f.value;try{for(var _g=(e_4=void 0,__values(formFieldToken.value)),_h=_g.next();!_h.done;_h=_g.next()){var valuesField=_h.value,keyToken="${"+formFieldToken.title.key+"_"+valuesField.key+"}";lFormFieldsTokenOrg[keyToken]=valuesField}}catch(t){e_4={error:t}}finally{try{_h&&!_h.done&&(_b=_g.return)&&_b.call(_g)}finally{if(e_4)throw e_4.error}}}}catch(t){e_3={error:t}}finally{try{_f&&!_f.done&&(_a=_e.return)&&_a.call(_e)}finally{if(e_3)throw e_3.error}}}var lTokensCalculated=[],typeToken;if(lTokens[TokenService.TOKEN_LABEL_CALCULATED]&&this.lTokenCalculated)try{for(var _j=__values(this.lTokenCalculated),_k=_j.next();!_k.done;_k=_j.next()){var tokenCal=_k.value;lTokensCalculated[ngPliUtil.UtilString.replaceAccentSpacesOthers(tokenCal.name)]=tokenCal}}catch(t){e_5={error:t}}finally{try{_k&&!_k.done&&(_c=_j.return)&&_c.call(_j)}finally{if(e_5)throw e_5.error}}var tokenTypeTranslated=[];for(typeToken in lTokens)if(lTokens[typeToken]){var tokensType=lTokens[typeToken];tokenTypeTranslated[typeToken]=[];try{for(var tokensType_1=(e_6=void 0,__values(tokensType)),tokensType_1_1=tokensType_1.next();!tokensType_1_1.done;tokensType_1_1=tokensType_1.next()){var token=tokensType_1_1.value,tokenTranslated=null,subToken=token.key.replace("{","").replace("}","").split("_");switch(typeToken){case TokenService.TOKEN_LABEL_FORM:var valueData=null,dataOrgKey=subToken[1].toLowerCase(),dataOrgKeyByForm=subToken[0].substring(1)+"_"+subToken[1].toLowerCase(),dataOrgValue=lDataOrg.hasOwnProperty(dataOrgKey)?lDataOrg[dataOrgKey]:lDataOrg.hasOwnProperty(dataOrgKeyByForm)?lDataOrg[dataOrgKeyByForm]:null;3===subToken.length&&null!=dataOrgValue&&dataOrgValue.hasOwnProperty(subToken[2])?valueData=dataOrgValue[subToken[2]]:2===subToken.length&&null!=dataOrgValue&&(valueData=dataOrgValue,lFormFieldsTokenOrg[token.key]&&(valueData=this.tokenService.getValueFromFormField(lFormFieldsTokenOrg[token.key],valueData))),valueData=valueData||"",tokenTranslated=valueData,html=this.tokenService.replaceToken(html,token.value,valueData);break;case TokenService.TOKEN_LABEL_BUDGET:var budgetResolveToken=this.resolveBudgetToken(html,token,subToken);html=budgetResolveToken.html,tokenTranslated=budgetResolveToken.value;break;case TokenService.TOKEN_LABEL_TASKL:var taskResolveToken=this.resolveTaskoken(html,token,subToken);html=taskResolveToken.html,tokenTranslated=taskResolveToken.value;break;case TokenService.TOKEN_LABEL_STATIC:var staticResolveToken=this.resolveStaticToken(html,token,subToken);html=staticResolveToken.html,tokenTranslated=staticResolveToken.value;break;case TokenService.TOKEN_LABEL_CALCULATED:var tokenName=lTokensCalculated[subToken[1]].name,formula=lTokensCalculated[subToken[1]].formula;try{formula=this.tokenService.replaceTokensFromListObject(tokenName,formula,lDataOrg)}catch(t){return formula=null,console.error(t.error?t.error:t),void this.toastrService.warning(t.message,t.tittle)}var result=null;if(null!==formula){try{result=formula.startsWith("file://")?"<img width='250px' height='auto' src='"+formula+"'/>":eval(formula)}catch(t){return console.error("Error evaluating the formula.",lTokensCalculated,subToken,t),void this.toastrService.error("No se logro evaluar la formular del token "+tokenName,"Error!")}null!==result&&(html=this.tokenService.replaceToken(html,token.value,result),tokenTranslated=result)}}tokenTypeTranslated[typeToken][token.key]=tokenTranslated}}catch(t){e_6={error:t}}finally{try{tokensType_1_1&&!tokensType_1_1.done&&(_d=tokensType_1.return)&&_d.call(tokensType_1)}finally{if(e_6)throw e_6.error}}}this.onGenerate.emit({html:html,tokenTypeTranslated:tokenTypeTranslated})},TokenComponent.prototype.resolveBudgetToken=function(t,e,n){var o=Number(n[1]),r=n[2],i=null,a=null;if(this.budgetDtoPrimary&&this.budgetDtoPrimary.budget&&o==ngPliUtil.ETipoPresupuesto.PRIMARY?(i=this.budgetDtoPrimary,a="pli-token-principal-budget-total-summary"):this.budgetDtoSecundary&&this.budgetDtoSecundary.budget&&o==ngPliUtil.ETipoPresupuesto.SECONDARY&&(i=this.budgetDtoSecundary,a="pli-token-secundary-budget-total-summary"),null===i||!i.budget)return console.error("No se logro encontrar el presupuesto del token.",e,this.budgetDtoPrimary,this.budgetDtoSecundary),{html:t,value:null};var s=null,c=r==TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_AMOUNT||r==TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_OWN_FOUNDS||r==TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_FINANCING,p=r==TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_AMOUNT||r==TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_OWN_FOUNDS||r==TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_FINANCING;if(r==TokenService.BUDGET_TOKENS_KEY_TOTAL_AMOUNT)s=i.budget&&i.budget.summary?this.currencyPipe.transform(i.budget.summary.budgetTotal,"default","","1.0-0"):0;else if(r==TokenService.BUDGET_TOKENS_KEY_RESUME_CATEGORY_YEAR){this.addInfoTokenResumeCategoryYear(o,a,i);var l=document.getElementById(a);l?s=this.removeCommentsHtml(l.innerHTML):console.log("pliTokenTotalBudget - NULL",l)}else if(r==TokenService.BUDGET_TOKENS_KEY_FECHA_FINANCING_START)s=i.budget&&i.budget.financingStart?i.budget.financingStart:"";else if(r==TokenService.BUDGET_TOKENS_KEY_FECHA_FINANCING_END)s=i.budget&&i.budget.financingEnd?i.budget.financingEnd:"";else if(r==TokenService.BUDGET_TOKENS_DURATION_STUDIES)s=i.budget&&i.budget.studyStart&&i.budget.studyEnd?ngPliUtil.DateUtil.elapsedMonths(i.budget.studyStart,i.budget.studyEnd)+1:"";else if(r==TokenService.BUDGET_TOKENS_FINANCING_DURATION)s=i.budget&&i.budget.financingEnd&&i.budget.financingStart?ngPliUtil.DateUtil.elapsedMonths(i.budget.financingStart,i.budget.financingEnd)+1:"";else if(r==TokenService.LEGALIZATION_OR_APPLICATION_TOTAL_FINANCING){if(this.data&&this.data.dataFormApplication&&this.data.dataFormApplication.budget){var d=this.data.dataFormApplication.budget;if(d.legalizationProcess&&d.legalizationProcess.totalFinancing)s=1.003*(m=Number(d.legalizationProcess.totalFinancing));else d.applicationProcess&&d.applicationProcess.totalFinancing&&(s=Number(d.applicationProcess.totalFinancing))}}else if((c||p)&&this.data&&this.data.dataFormApplication&&this.data.dataFormApplication.budget){var u=c?this.data.dataFormApplication.budget.applicationProcess:this.data.dataFormApplication.budget.legalizationProcess;if(null!=u&&null!=u)switch(r){case TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_AMOUNT:case TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_AMOUNT:s=u.totalAmount;break;case TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_OWN_FOUNDS:case TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_OWN_FOUNDS:s=u.totalOwnFunds;break;case TokenService.BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_FINANCING:case TokenService.BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_FINANCING:s=u.totalFinancing}}else if(r==TokenService.BUDGET_TOKENS_KEY_INSURANCE_AMOUNT){var m;s=1.003*(m=null==(m=this.data.dataFormApplication.budget.legalizationProcess&&this.data.dataFormApplication.budget.legalizationProcess.totalFinancing)||null==m?0:Number(m))}else console.error("resolveBudgetToken -No se logro resolver el token de tipo presupuesto");return s=null===s?"":s,{html:t=this.tokenService.replaceToken(t,e.value,s),value:s}},TokenComponent.prototype.resolveTaskoken=function(t,e,n){var o=null;if(n.length>2){var r=Number(n[2]);o=this.evaluation.tasks.find((function(t){return t.idTask==r})).result}return{html:t=this.tokenService.replaceToken(t,e.value,o),value:o}},TokenComponent.prototype.resolveStaticToken=function(t,e,n){var o=null;if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_CODIGO_VERIFICACION.toLowerCase())o=this.uniqueVerificationCode,t=this.tokenService.replaceToken(t,e.value,this.uniqueVerificationCode);else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_A_QUIEN_VA_DIRIGIDO.toLowerCase())t=this.resolveStaticTokensKeyAQuienVaDirigido(t,e.value),o="";else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_LETTER_SIGN.toLowerCase())t=this.resolveStaticTokensKeySign(t,e.value,n),o="";else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_SALUDO_COMPLEMENTARIO.toLowerCase())t=this.resolveStaticTokensKeySaludoComplementario(t,e.value),o="";else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_FECHA_ACTUAL.toLowerCase())o=new Date,t=this.tokenService.replaceToken(t,e.value,new Date);else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_PATROCINADOR.toLowerCase()){var r=this.data.pliPromocion&&this.data.pliPromocion.pliPrograma&&this.data.pliPromocion.pliPrograma.pliPatrocinador?this.data.pliPromocion.pliPrograma.pliPatrocinador.patNombre:"";o=r,t=this.tokenService.replaceToken(t,e.value,r)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_PROGRAMA.toLowerCase()){var i=this.data.pliPromocion&&this.data.pliPromocion.pliPrograma?this.data.pliPromocion.pliPrograma.progNombre:"";o=i,t=this.tokenService.replaceToken(t,e.value,i)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_PROMOCION.toLowerCase()){var a=this.data.pliPromocion?this.data.pliPromocion.promNombre:"";o=a,t=this.tokenService.replaceToken(t,e.value,a)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_ANIO_PROMOCION.toLowerCase()){var s=this.data.pliPromocion&&this.data.pliPromocion.promAnio?this.data.pliPromocion.promAnio:0;o=s,t=this.tokenService.replaceToken(t,e.value,s)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_ISO_MONEDA_BASE.toLowerCase()){var c=this.data.budgetDtoPrimary&&this.data.budgetDtoPrimary.budget?this.data.budgetDtoPrimary.budget.baseCurrency:this.data.budgetDtoSecundary&&this.data.budgetDtoSecundary.budget?this.data.budgetDtoSecundary.budget.baseCurrency:"";o=c,t=this.tokenService.replaceToken(t,e.value,c)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_STATUS_NAME.toLowerCase()){var p=this.data.dataFormApplication&&ngPliUtil.UtilString.isValid(this.data.dataFormApplication.stateName)?this.data.dataFormApplication.stateName:"";o=p,t=this.tokenService.replaceToken(t,e.value,p)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_USER_INITIALS.toLowerCase()){var l=ngPliUtil.AuthenticationUtil.getPliUser();o=ngPliUtil.UtilString.initialLetters(l.firstname+" "+l.lastname),t=this.tokenService.replaceToken(t,e.value,o)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_KEY_NUMBER_APPLICATION.toLowerCase()){var d=this.data.dataFormApplication&&this.data.dataFormApplication.number?this.data.dataFormApplication.number:null;o=d,t=this.tokenService.replaceToken(t,e.value,d)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_COMMITTEE_NAME.toLowerCase()){var u=this.data.dataFormByForm&&this.data.dataFormByForm.comiteNombre?this.data.dataFormByForm.comiteNombre:null;o=u,t=this.tokenService.replaceToken(t,e.value,u)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_COMMITTEE_SEGMENTATION.toLowerCase()){var m=this.data.dataFormByForm&&this.data.dataFormByForm[TokenService.STATIC_TOKENS_COMMITTEE_SEGMENTATION]?this.data.dataFormByForm[TokenService.STATIC_TOKENS_COMMITTEE_SEGMENTATION]:null;o=m,t=this.tokenService.replaceToken(t,e.value,m)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_COMMITTEE_AGGRUPATION.toLowerCase()){var h=this.data.dataFormByForm&&this.data.dataFormByForm[TokenService.STATIC_TOKENS_COMMITTEE_AGGRUPATION]?this.data.dataFormByForm[TokenService.STATIC_TOKENS_COMMITTEE_AGGRUPATION]:null;o=h,t=this.tokenService.replaceToken(t,e.value,h)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_COMMITTEE_CUTLINE_DATE.toLowerCase()){var g=this.data.dataFormByForm&&this.data.dataFormByForm[TokenService.STATIC_TOKENS_COMMITTEE_CUTLINE_DATE]?this.data.dataFormByForm[TokenService.STATIC_TOKENS_COMMITTEE_CUTLINE_DATE]:null;g instanceof Date&&(g=g.toString()),o=g,t=this.tokenService.replaceToken(t,e.value,g)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_TOTAL_WEIGHTED.toLowerCase()){var f="";if(this.evaluation&&this.evaluation.scenarios){var v=this.evaluation.scenarios.filter((function(t){return t.best}))[0];v&&(f=v.result)}t=this.tokenService.replaceToken(t,e.value,f)}else if(n[1].toLowerCase()==TokenService.STATIC_TOKENS_USER_TYPE_CREDIT_STUDY.toLowerCase()){var y=this.data.dataFormByForm&&this.data.dataFormByForm[TokenService.STATIC_TOKENS_USER_TYPE_CREDIT_STUDY]?this.data.dataFormByForm[TokenService.STATIC_TOKENS_USER_TYPE_CREDIT_STUDY]:null;o=y,t=this.tokenService.replaceToken(t,e.value,y)}else n[1].toLowerCase()==TokenService.STATIC_TOKENS_BEN_CODIGO.toLowerCase()?(o=this.data.dataFormApplication.benCodigo,t=this.tokenService.replaceToken(t,e.value,this.data.dataFormApplication.benCodigo)):(console.error("No se encontro el token",e),t=this.tokenService.replaceToken(t,e.value,""));return{html:t,value:o}},TokenComponent.prototype.getListTokens=function(t){var e,n,o=this.tokenService.getListTokensByString(t),r=[];try{for(var i=__values(o),a=i.next();!a.done;a=i.next()){var s=a.value;if(s){var c=TokenService.getKeyType(s.key.replace("{","").replace("}",""));if(c)switch(c){case 1:r[TokenService.TOKEN_LABEL_FORM]||(r[TokenService.TOKEN_LABEL_FORM]=[]),r[TokenService.TOKEN_LABEL_FORM].push(s);break;case 2:r[TokenService.TOKEN_LABEL_BUDGET]||(r[TokenService.TOKEN_LABEL_BUDGET]=[]),r[TokenService.TOKEN_LABEL_BUDGET].push(s);break;case 3:r[TokenService.TOKEN_LABEL_STATIC]||(r[TokenService.TOKEN_LABEL_STATIC]=[]),r[TokenService.TOKEN_LABEL_STATIC].push(s);break;case 4:r[TokenService.TOKEN_LABEL_CALCULATED]||(r[TokenService.TOKEN_LABEL_CALCULATED]=[]),r[TokenService.TOKEN_LABEL_CALCULATED].push(s);break;case 5:r[TokenService.TOKEN_LABEL_TASKL]||(r[TokenService.TOKEN_LABEL_TASKL]=[]),r[TokenService.TOKEN_LABEL_TASKL].push(s)}}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},TokenComponent.prototype.resolveStaticTokensKeyAQuienVaDirigido=function(t,e){this.enableDestination=!0,this.addInfoTokenDestination();var n=document.getElementById("pli-token-destination"),o="";return n&&n.innerHTML.length>0&&(o=this.removeCommentsHtml(n.innerHTML)),this.tokenService.replaceToken(t,e,o)},TokenComponent.prototype.addInfoTokenDestination=function(){var t=$("#pli-token-destination");if(t.empty(),this.data.dataDestination){var e=$("<div></div>");if(this.data.dataDestination.text){var n=$("<div></div>").text(this.data.dataDestination.text);e.append(n)}if(this.data.dataDestination.title){n=$("<div></div>").text(this.data.dataDestination.title);e.append(n)}if(this.data.dataDestination.name||this.data.dataDestination.lastName){var o=this.data.dataDestination.name?this.data.dataDestination.name+" ":"";o+=this.data.dataDestination.lastName?this.data.dataDestination.lastName:"";n=$("<div></div>").append("<strong>"+o+"</strong>");e.append(n)}if(this.data.dataDestination.cargo){n=$("<div></div>").text(this.data.dataDestination.cargo);e.append(n)}if(this.data.dataDestination.occupation){n=$("<div></div>").text(this.data.dataDestination.occupation);e.append(n)}if(this.data.dataDestination.company){n=$("<div></div>").text(this.data.dataDestination.company);e.append(n)}if(this.data.dataDestination.address||this.data.dataDestination.addressDetails){o=this.data.dataDestination.address?this.data.dataDestination.address+" ":"";o+=this.data.dataDestination.addressDetails?this.data.dataDestination.addressDetails:"";n=$("<div></div>").text(o);e.append(n)}if(this.data.dataDestination.city||this.data.dataDestination.country){o=this.data.dataDestination.city?this.data.dataDestination.city:"";o+=this.data.dataDestination.city&&this.data.dataDestination.country?", ":"",o+=this.data.dataDestination.country?this.data.dataDestination.country:"";n=$("<div></div>").text(o);e.append(n)}t.append(e)}},TokenComponent.prototype.resolveStaticTokensKeySaludoComplementario=function(t,e){this.enableDestination=!0,this.addInfoTokenSaludoComplementario();var n=document.getElementById("pli-token-complementary-greeting"),o="";return n&&(o=this.removeCommentsHtml(n.innerHTML)),this.tokenService.replaceToken(t,e,o)},TokenComponent.prototype.addInfoTokenSaludoComplementario=function(){var t=$("#pli-token-complementary-greeting");if(t.empty(),this.data.dataDestination){var e=$("<div></div>");if(this.data.dataDestination.greeting&&e.html(this.data.dataDestination.greeting),this.data.dataDestination.title){var n=(0==e.html().length?"":" ")+this.data.dataDestination.title;e.html(e.html()+n)}if(this.data.dataDestination.lastName){var o=this.data.dataDestination.lastName?this.data.dataDestination.lastName:"";n=(0==e.html().length?"":" ")+"<strong>"+o+"</strong>";e.html(e.html()+n)}t.append(e)}},TokenComponent.prototype.removeCommentsHtml=function(t){return t?t.replace(/<!--[\s\S]*?-->/g,""):t},TokenComponent.prototype.resolveStaticTokensKeySign=function(t,e,n){var o=$("<div></div>"),r=$('<img id="'+TokenService.SIGN_LETTER_TAG_ID+'">');return r.attr("src",""),n.length>2&&r.attr("width",n[2].toString()),n.length>3&&r.attr("height",n[3].toString()),n.length>4&&r.attr("name",n[4].toString()),o.append(r),this.tokenService.replaceToken(t,e,o.html())},TokenComponent.prototype.getRubroLabel=function(){return"es"===this.data.idioma.locale?"Rubro":"de"===this.data.idioma.locale?"Posten":"Item"},TokenComponent.prototype.getTotalLabel=function(){return"es"===this.data.idioma.locale?"Total":"de"===this.data.idioma.locale?"Gesamt":"fr"===this.data.idioma.locale?"Total":"it"===this.data.idioma.locale?"Totale":"Item"},TokenComponent.prototype.getYearLabel=function(){return"es"===this.data.idioma.locale?"Año":"de"===this.data.idioma.locale?"Jahr":"fr"===this.data.idioma.locale?"Année":"it"===this.data.idioma.locale?"Anno":"Year"},TokenComponent.prototype.addInfoTokenResumeCategoryYear=function(t,e,n){var o,r,i,a,s,c;ngPliUtil.ETipoPresupuesto.PRIMARY;var p=$("#"+e);if(p.empty(),n&&n.budget&&n.budget.summary){var l=n.budget.summary,d=$("<table></table>");d.css("border-spacing","2px"),d.css("border-collapse","collapse");var u=$("<thead>").appendTo(d),m=$("<th>",{html:this.getRubroLabel()}).appendTo(u);m.css("text-align","center"),m.css("border","1px solid black"),m.css("color","white"),m.css("background-color","grey");var h=0;try{for(var g=__values(l.years),f=g.next();!f.done;f=g.next()){var v=f.value,y=$("<th>",{html:this.getYearLabel()+ ++h}).appendTo(u);y.css("text-align","center"),y.css("border","1px solid black"),y.css("color","white"),y.css("background-color","grey"),y.css("width","80px")}}catch(t){o={error:t}}finally{try{f&&!f.done&&(r=g.return)&&r.call(g)}finally{if(o)throw o.error}}var C="&nbsp;"+this.getTotalLabel()+l.baseCurrency+"&nbsp;",b=$("<th>",{html:C}).appendTo(u);b.css("text-align","center"),b.css("border","1px solid black"),b.css("color","white"),b.css("background-color","grey"),b.css("width","80px");for(var S=$("<tbody>").appendTo(d),_=0;_<l.categories.length;_++){var T=$("<tr>").appendTo(S),k=l.categories[_],P="&nbsp;&nbsp;"+this.translateCategory(k.category)+"&nbsp;&nbsp;&nbsp;&nbsp;",I=$("<td>",{html:P}).appendTo(T);I.css("text-align","left"),I.css("border","1px solid black"),I.css("font-weight","bold");try{for(var E=(i=void 0,__values(k.years)),A=E.next();!A.done;A=E.next()){var w="&nbsp;&nbsp;"+(0==(v=A.value).total?"-":this.currencyPipe.transform(v.total,"default","","1.0-0"))+"&nbsp;&nbsp;";(U=$("<td>",{html:w}).appendTo(T)).css("text-align","right"),U.css("border","1px solid black")}}catch(t){i={error:t}}finally{try{A&&!A.done&&(a=E.return)&&a.call(E)}finally{if(i)throw i.error}}var O=0==k.total?"-":this.currencyPipe.transform(k.total,"default","","1.0-0"),B=$("<td>",{html:"&nbsp;&nbsp;"+O+"&nbsp;&nbsp;"}).appendTo(T);B.css("text-align","right"),B.css("border","1px solid black"),B.css("font-weight","bold")}var j=$("<tr>").appendTo(S),x=this.getTotalLabel()+" "+l.baseCurrency+"&nbsp;&nbsp;",N=$("<td>",{html:x}).appendTo(j);N.css("text-align","right"),N.css("border","1px solid black"),N.css("color","white"),N.css("background-color","grey");var D=0;try{for(var H=__values(l.years),F=H.next();!F.done;F=H.next()){var U;w=(0==(v=F.value).total?"-":this.currencyPipe.transform(v.total,"default","","1.0-0"))+"&nbsp;&nbsp;";(U=$("<td>",{html:w}).appendTo(j)).css("text-align","right"),U.css("border","1px solid black"),U.css("color","white"),U.css("background-color","grey"),D+=v.total}}catch(t){s={error:t}}finally{try{F&&!F.done&&(c=H.return)&&c.call(H)}finally{if(s)throw s.error}}var L=0==D?"-":this.currencyPipe.transform(D,"default","","1.0-0"),R=$("<td>",{html:"&nbsp;&nbsp;"+L+"&nbsp;&nbsp;"}).appendTo(j);R.css("text-align","right"),R.css("border","1px solid black"),R.css("color","white"),R.css("background-color","grey"),p.append(d)}},TokenComponent.ctorParameters=function(){return[{type:common.CurrencyPipe},{type:TokenService},{type:ngxToastr.ToastrService},{type:AuthenticationService}]},__decorate([core.Input(),__metadata("design:type",String)],TokenComponent.prototype,"template",void 0),__decorate([core.Input(),__metadata("design:type",ngPliUtil.DataToTranslateToken)],TokenComponent.prototype,"data",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],TokenComponent.prototype,"onGenerate",void 0),TokenComponent=__decorate([core.Component({selector:"pli-token",template:'<div style="display: none;" id="pli-token-destination">\r\n\t\x3c!-- <div *ngIf="data != undefined && data.dataDestination != undefined">\r\n\r\n <div *ngIf="data.dataDestination.text != undefined">\r\n {{data.dataDestination.text}}\r\n </div>\r\n <div *ngIf="data.dataDestination.title != undefined">\r\n {{data.dataDestination.title}}\r\n </div>\r\n <div *ngIf="data.dataDestination.name != undefined || data.dataDestination.lastName != undefined">\r\n <strong>{{data.dataDestination.name}} {{data.dataDestination.lastName}}</strong>\r\n </div>\r\n <div *ngIf="data.dataDestination.cargo != undefined">\r\n {{data.dataDestination.cargo}}\r\n </div>\r\n <div *ngIf="data.dataDestination.occupation != undefined">\r\n {{data.dataDestination.occupation}}\r\n </div>\r\n <div *ngIf="data.dataDestination.company != undefined">\r\n {{data.dataDestination.company}}\r\n </div>\r\n <div *ngIf="data.dataDestination.address != undefined || data.dataDestination.addressDetails != undefined ">\r\n {{data.dataDestination.address}} {{data.dataDestination.addressDetails}}\r\n </div>\r\n <div *ngIf="data.dataDestination.city != undefined || data.dataDestination.country != undefined ">\r\n {{data.dataDestination.city}}<span *ngIf="data.dataDestination.city != undefined && data.dataDestination.country != undefined">,</span>{{data.dataDestination.country}}\r\n </div>\r\n\r\n </div> --\x3e\r\n</div>\r\n\x3c!-- Complementary greeting--\x3e\r\n<div style="display: none;" id="pli-token-complementary-greeting">\r\n\t\x3c!-- <div\r\n\t\t*ngIf="\r\n\t\t\tdata != undefined &&\r\n\t\t\tdata.dataDestination != undefined &&\r\n\t\t\tdata.dataDestination.targetId == 2 &&\r\n\t\t\tdata.dataDestination.greeting != undefined\r\n\t\t"\r\n\t>\r\n\t\t{{ data.dataDestination.greeting\r\n\t\t}}<span *ngIf="data.dataDestination.title != undefined"\r\n\t\t\t>&nbsp;{{ data.dataDestination.title }}</span\r\n\t\t><span *ngIf="data.dataDestination.lastName != undefined"\r\n\t\t\t>&nbsp;{{ data.dataDestination.lastName }}</span\r\n\t\t>:\r\n\t</div>--\x3e\r\n</div>\r\n\r\n\x3c!-- Primary budget total summary ${presupuesto_288_resumeCategoryYear} --\x3e\r\n<div style="display: none;" id="pli-token-principal-budget-total-summary">\r\n\t\x3c!-- <div>\r\n\t\t<table\r\n\t\t\t*ngIf="\r\n\t\t\t\tbudgetDtoPrimary !== null &&\r\n\t\t\t\tbudgetDtoPrimary.budget &&\r\n\t\t\t\tbudgetDtoPrimary.budget.summary\r\n\t\t\t"\r\n\t\t\tstyle="border-spacing: 2px;border-collapse: collapse;"\r\n\t\t>\r\n\t\t\t<thead>\r\n\t\t\t\t<tr style="font-weight: bold;">\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\tstyle="text-align: center;border: 1px solid black; color: white;background-color: grey;"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tRubro\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\t*ngFor="let year of budgetDtoPrimary.budget.summary.years"\r\n\t\t\t\t\t\tstyle="text-align: center;border: 1px solid black; color: white;background-color: grey; width:80px;"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{{ year.yearNumber }}\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\tstyle="text-align: center;border: 1px solid black; color: white;background-color: grey; width: 110px;"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tTotal ({{ budgetDtoPrimary.budget.summary.baseCurrency }})\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t</thead>\r\n\t\t\t<tbody>\r\n\t\t\t\t<tr\r\n\t\t\t\t\t*ngFor="\r\n\t\t\t\t\t\tlet category of budgetDtoPrimary.budget.summary.categories;\r\n\t\t\t\t\t\tlet iCat = index\r\n\t\t\t\t\t"\r\n\t\t\t\t>\r\n\t\t\t\t\t<td style="font-weight: bold;text-align: left;border: 1px solid black;">\r\n\t\t\t\t\t\t&nbsp;&nbsp;{{\r\n\t\t\t\t\t\t\ttranslateCategory(category.category)\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\t*ngFor="let year of category.years"\r\n\t\t\t\t\t\tstyle="text-align: right;border: 1px solid black; "\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t&nbsp;&nbsp;{{\r\n\t\t\t\t\t\t\tyear.total == 0 ? \'-\' : (year.total | currency: \'default\':\'\':\'1.0-0\')\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td style="font-weight: bold; text-align: right;border: 1px solid black;">\r\n\t\t\t\t\t\t&nbsp;&nbsp;{{\r\n\t\t\t\t\t\t\tcategory.total == 0\r\n\t\t\t\t\t\t\t\t? \'-\'\r\n\t\t\t\t\t\t\t\t: (category.total | currency: \'default\':\'\':\'1.0-0\')\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr style="font-weight: bold;">\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\tstyle="text-align: right;border: 1px solid black; color: white;background-color: grey;"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tTotal ({{ budgetDtoPrimary.budget.summary.baseCurrency }})&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\t*ngFor="let year of budgetDtoPrimary.budget.summary.years"\r\n\t\t\t\t\t\tstyle="text-align: right;border: 1px solid black; color: white;background-color: grey; "\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{{\r\n\t\t\t\t\t\t\tyear.total == 0 ? \'-\' : (year.total | currency: \'default\':\'\':\'1.0-0\')\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\tstyle="text-align: right;border: 1px solid black; color: white;background-color: grey;"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{{\r\n\t\t\t\t\t\t\tbudgetDtoPrimary.budget.summary.budgetTotal == 0\r\n\t\t\t\t\t\t\t\t? \'-\'\r\n\t\t\t\t\t\t\t\t: (budgetDtoPrimary.budget.summary.budgetTotal\r\n\t\t\t\t\t\t\t\t | currency: \'default\':\'\':\'1.0-0\')\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t</tbody>\r\n\t\t</table>\r\n\t</div> --\x3e\r\n</div>\r\n\x3c!-- Secundary budget total summary ${presupuesto_288_resumeCategoryYear} --\x3e\r\n<div style="display: none;" id="pli-token-secundary-budget-total-summary">\r\n\t<div>\r\n\t\t<table\r\n\t\t\t*ngIf="\r\n\t\t\t\tbudgetDtoSecundary !== null &&\r\n\t\t\t\tbudgetDtoSecundary.budget &&\r\n\t\t\t\tbudgetDtoSecundary.budget.summary\r\n\t\t\t"\r\n\t\t\tstyle="border-spacing: 2px; border-collapse: collapse; width: 100%;"\r\n\t\t>\r\n\t\t\t<thead>\r\n\t\t\t\t<tr style="font-weight: bold;">\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\tstyle="\r\n\t\t\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\t\t\tborder: 1px solid black;\r\n\t\t\t\t\t\t\tcolor: white;\r\n\t\t\t\t\t\t\tbackground-color: grey;\r\n\t\t\t\t\t\t"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tRubro\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\t*ngFor="let year of budgetDtoSecundary.budget.summary.years"\r\n\t\t\t\t\t\tstyle="\r\n\t\t\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\t\t\tborder: 1px solid black;\r\n\t\t\t\t\t\t\tcolor: white;\r\n\t\t\t\t\t\t\tbackground-color: grey;\r\n\t\t\t\t\t\t\twidth: 80px;\r\n\t\t\t\t\t\t"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{{ year.yearNumber }}\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\tstyle="\r\n\t\t\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\t\t\tborder: 1px solid black;\r\n\t\t\t\t\t\t\tcolor: white;\r\n\t\t\t\t\t\t\tbackground-color: grey;\r\n\t\t\t\t\t\t\twidth: 110px;\r\n\t\t\t\t\t\t"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tTotal ({{ budgetDtoSecundary.budget.summary.baseCurrency }})\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t</thead>\r\n\t\t\t<tbody>\r\n\t\t\t\t<tr\r\n\t\t\t\t\t*ngFor="\r\n\t\t\t\t\t\tlet category of budgetDtoSecundary.budget.summary.categories;\r\n\t\t\t\t\t\tlet iCat = index\r\n\t\t\t\t\t"\r\n\t\t\t\t>\r\n\t\t\t\t\t<td style="font-weight: bold; text-align: left; border: 1px solid black;">\r\n\t\t\t\t\t\t&nbsp;&nbsp;{{\r\n\t\t\t\t\t\t\ttranslateCategory(category.category)\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\t*ngFor="let year of category.years"\r\n\t\t\t\t\t\tstyle="text-align: right; border: 1px solid black;"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t&nbsp;&nbsp;{{\r\n\t\t\t\t\t\t\tyear.total == 0 ? \'-\' : (year.total | currency: \'default\':\'\':\'1.0-0\')\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td style="font-weight: bold; text-align: right; border: 1px solid black;">\r\n\t\t\t\t\t\t&nbsp;&nbsp;{{\r\n\t\t\t\t\t\t\tcategory.total == 0\r\n\t\t\t\t\t\t\t\t? \'-\'\r\n\t\t\t\t\t\t\t\t: (category.total | currency: \'default\':\'\':\'1.0-0\')\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr style="font-weight: bold;">\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\tstyle="\r\n\t\t\t\t\t\t\ttext-align: right;\r\n\t\t\t\t\t\t\tborder: 1px solid black;\r\n\t\t\t\t\t\t\tcolor: white;\r\n\t\t\t\t\t\t\tbackground-color: grey;\r\n\t\t\t\t\t\t"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tTotal ({{ budgetDtoSecundary.budget.summary.baseCurrency }})&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\t*ngFor="let year of budgetDtoSecundary.budget.summary.years"\r\n\t\t\t\t\t\tstyle="\r\n\t\t\t\t\t\t\ttext-align: right;\r\n\t\t\t\t\t\t\tborder: 1px solid black;\r\n\t\t\t\t\t\t\tcolor: white;\r\n\t\t\t\t\t\t\tbackground-color: grey;\r\n\t\t\t\t\t\t"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{{\r\n\t\t\t\t\t\t\tyear.total == 0 ? \'-\' : (year.total | currency: \'default\':\'\':\'1.0-0\')\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td\r\n\t\t\t\t\t\tstyle="\r\n\t\t\t\t\t\t\ttext-align: right;\r\n\t\t\t\t\t\t\tborder: 1px solid black;\r\n\t\t\t\t\t\t\tcolor: white;\r\n\t\t\t\t\t\t\tbackground-color: grey;\r\n\t\t\t\t\t\t"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{{\r\n\t\t\t\t\t\t\tbudgetDtoSecundary.budget.summary.budgetTotal == 0\r\n\t\t\t\t\t\t\t\t? \'-\'\r\n\t\t\t\t\t\t\t\t: (budgetDtoSecundary.budget.summary.budgetTotal\r\n\t\t\t\t\t\t\t\t | currency: \'default\':\'\':\'1.0-0\')\r\n\t\t\t\t\t\t}}&nbsp;&nbsp;\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t</tbody>\r\n\t\t</table>\r\n\t</div>\r\n</div>\r\n',styles:[""]}),__metadata("design:paramtypes",[common.CurrencyPipe,TokenService,ngxToastr.ToastrService,AuthenticationService])],TokenComponent),TokenComponent}(),PADDING="000000",CurrencyColfuturoPipe=function(){function t(){this.DECIMAL_SEPARATOR=",",this.THOUSANDS_SEPARATOR=".",this.ZERO="-"}return t.prototype.transform=function(t,e){if(void 0===e&&(e=0),t){var n=t+"";return n=n.replace(/\B(?=(\d{3})+(?!\d))/g,this.THOUSANDS_SEPARATOR)}return this.ZERO},t.prototype.parse=function(t,e){return void 0===e&&(e=0),t&&t!=this.ZERO?t.replace(/\./g,""):"0"},t=__decorate([core.Pipe({name:"currencyColfuturo"}),__metadata("design:paramtypes",[])],t)}(),CurrencyColfuturoFormatterDirective=function(){function t(t){this.elementRef=t,this.el=this.elementRef.nativeElement,this.currencyPipe=new CurrencyColfuturoPipe}return t.prototype.ngOnInit=function(){this.el.value&&(this.el.value=this.currencyPipe.transform(this.el.value))},t.prototype.onFocus=function(t){t&&(this.el.value=this.currencyPipe.parse(t))},t.prototype.onBlur=function(t){t&&(this.el.value=this.currencyPipe.transform(t))},t.prototype.onkeypress=function(t){var e=t.which?t.which:t.keyCode;return!(e>31&&(e<48||e>57))},t.ctorParameters=function(){return[{type:core.ElementRef}]},__decorate([core.HostListener("focus",["$event.target.value"]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],t.prototype,"onFocus",null),__decorate([core.HostListener("blur",["$event.target.value"]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],t.prototype,"onBlur",null),__decorate([core.HostListener("keypress",["$event"]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],t.prototype,"onkeypress",null),t=__decorate([core.Directive({selector:"[currencyColfuturoFormatter]"}),__metadata("design:paramtypes",[core.ElementRef])],t)}(),PADDING$1="000000",CurrencyDecimalColfuturoPipe=function(){function t(){this.DECIMAL_SEPARATOR=",",this.THOUSANDS_SEPARATOR="."}return t.prototype.transform=function(t,e){void 0===e&&(e=2);var n=__read((t||"").toString().split(this.DECIMAL_SEPARATOR),2),o=n[0],r=n[1],i=void 0===r?"":r;return i=e>0?this.DECIMAL_SEPARATOR+(i+PADDING$1).substring(0,e):"",(o=o.replace(/\B(?=(\d{3})+(?!\d))/g,this.THOUSANDS_SEPARATOR))+i},t.prototype.parse=function(t,e){void 0===e&&(e=2);var n=__read((t||"").split(this.DECIMAL_SEPARATOR),2),o=n[0],r=n[1],i=void 0===r?"":r;return(o=o.replace(/\./g,""))+(i=parseInt(i,10)>0&&e>0?this.DECIMAL_SEPARATOR+(i+PADDING$1).substring(0,e):"")},t=__decorate([core.Pipe({name:"currencyDecimalColfuturo"}),__metadata("design:paramtypes",[])],t)}(),CurrencyDecimalColfuturoFormatterDirective=function(){function t(t){this.elementRef=t,this.el=this.elementRef.nativeElement,this.currencyDecimalPipe=new CurrencyDecimalColfuturoPipe}return t.prototype.ngOnInit=function(){this.el.value=this.currencyDecimalPipe.transform(this.el.value)},t.prototype.onFocus=function(t){this.el.value=this.currencyDecimalPipe.parse(t)},t.prototype.onBlur=function(t){this.el.value=this.currencyDecimalPipe.transform(t)},t.ctorParameters=function(){return[{type:core.ElementRef}]},__decorate([core.HostListener("focus",["$event.target.value"]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],t.prototype,"onFocus",null),__decorate([core.HostListener("blur",["$event.target.value"]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],t.prototype,"onBlur",null),t=__decorate([core.Directive({selector:"[currencyDecimalColfuturoFormatter]"}),__metadata("design:paramtypes",[core.ElementRef])],t)}(),PADDING$2="000000",CurrencyPrintColfuturoPipe=function(){function t(){this.DECIMAL_SEPARATOR=",",this.THOUSANDS_SEPARATOR="."}return t.prototype.transform=function(t,e){void 0===e&&(e=0);var n=(t||"").toString().replace(/ /g,"");return"0"==(n=(n=n.replace(/\B(?=(\d{3})+(?!\d))/g,this.THOUSANDS_SEPARATOR)).replace(String.fromCharCode(160),""))?"-":n},t.prototype.parse=function(t,e){void 0===e&&(e=0);var n=(t||"").replace(/ /g,"");return"0"==(n=(n=n.replace(/\./g,"")).replace(String.fromCharCode(160),""))?"-":n},t=__decorate([core.Pipe({name:"currencyPrintColfuturo"}),__metadata("design:paramtypes",[])],t)}(),ThousandsPipe=function(){function t(){}return t.prototype.transform=function(t,e){if(isNaN(t)||""===t||null===t)return 0;e||(e={}),(void 0===e.decimals||null===e.decimals||isNaN(e.decimals)||e.decimals<0)&&(e.decimals=2);var n="number"==typeof t?t:Number(t);return e.format?n<1e3?this.returnResult(n,e):n>=1e3&&n<1e6?(e.prefix="K",this.returnResult(n/1e3,e)):n>=1e6&&n<=1e9?(e.prefix="M",this.returnResult(n/1e6,e)):n>=1e9&&n<=1e12?(e.prefix="B",this.returnResult(n/1e9,e)):void 0:this.returnResult(n,e)},t.prototype.returnResult=function(t,e){var n=e?t.toFixed(e.decimals):t.toString();return n=Number(n).toLocaleString("de-DE"),e&&1==e.format&&e.prefix&&(n+=e.prefix),n},t=__decorate([core.Pipe({name:"thousands"})],t)}(),ApplicationTagService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})},this.serviceName="application-tag"}return t.prototype.findByPromCod=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+this.serviceName,{params:(new http.HttpParams).set("promCod",t.toString())})},t.prototype.getTagByNameLike=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+this.serviceName+"/get-tag-by-name",{params:(new http.HttpParams).set("promCod",t.toString()).set("nameTag",e)})},t.prototype.findByIdApp=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+this.serviceName+"/get-by-id-app",{params:(new http.HttpParams).set("idApp",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+this.serviceName,t)},t.prototype.edit=function(t){return this.httpClient.put(this.environment.host.backend.backoffice+this.serviceName,t)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.backoffice+this.serviceName,{params:(new http.HttpParams).set("id",t)})},t.prototype.assign=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+this.serviceName+"/assign",t,{params:(new http.HttpParams).set("idTag",e)})},t.prototype.removeTag=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+this.serviceName+"/remove-tag",{},{params:(new http.HttpParams).set("idApp",t).set("idTag",e)})},t.prototype.removeTags=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+this.serviceName+"/remove-tags",e,{params:(new http.HttpParams).set("idApp",t)})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SpinnerService=function(){function t(){this.showSpinner=!0}return t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"})],t)}(),URLS={menu:"budget/menu",getById:"budget/getById",getByApplicationId:"budget/getByApplicationId",getByPromCodigo:"budget/getByPromCodigo",save:"budget/save",summarizedSave:"budget/summarizedSave",summarizedReset:"budget/summarizedReset",delete:"budget/delete",update:"budget/update",mybudget:"budget/mybudget",mysimplebudget:"budget/mysimplebudget",wizard:"budget/wizard",generate:"budget/generate",deleteWizard:"budget/deleteWizard",budgetsByProm:"budget/getBudgetsByProm",updateWizard:"budget/updateWizard",getConfiguredCurrency:"budget_setup/getConfiguredCurrency"},httpOptions={headers:new http.HttpHeaders({"Content-Type":"application/json"})},BudgetApplicationService=function(){function t(t,e){this.environment=t,this.http=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})},this.subjectValidateBudgetCheck=new rxjs.Subject}return t.prototype.handleError=function(t){return t.error,ErrorEvent,rxjs.throwError(t)},t.prototype.getBudget=function(t){var e=(new http.HttpParams).set("budgetId",t);return this.http.get(this.environment.host.backend.frontoffice+URLS.getById,{headers:httpOptions.headers,params:e}).pipe(operators.catchError(this.handleError))},t.prototype.updateBudget=function(t){return this.http.post(this.environment.host.backend.frontoffice+URLS.update,t,{headers:httpOptions.headers}).pipe(operators.catchError(this.handleError))},t.prototype.summarizedSave=function(t){return this.http.post(this.environment.host.backend.frontoffice+URLS.summarizedSave,t,{headers:httpOptions.headers}).pipe(operators.catchError(this.handleError))},t.prototype.summarizedReset=function(t,e){var n=(new http.HttpParams).set("applicationId",e).set("programTypeId",String(t));return this.http.post(this.environment.host.backend.frontoffice+URLS.summarizedReset,null,{headers:httpOptions.headers,params:n}).pipe(operators.catchError(this.handleError))},t.prototype.getMyBudgetsList=function(t){var e=(new http.HttpParams).set("applicationId",t);return this.http.get(this.environment.host.backend.frontoffice+URLS.menu,{headers:httpOptions.headers,params:e}).pipe(operators.catchError(this.handleError))},t.prototype.getMyBudget=function(t,e,n,o){var r=(new http.HttpParams).set("applicationId",t).set("promCode",n+"").set("budgetSetupId",e).set("tag",o);return this.http.get(this.environment.host.backend.frontoffice+URLS.mybudget,{headers:httpOptions.headers,params:r}).pipe(operators.catchError(this.handleError))},t.prototype.getMySimpleBudget=function(t,e){var n=(new http.HttpParams).set("applicationId",t).set("tag",e);return this.http.get(this.environment.host.backend.frontoffice+URLS.mysimplebudget,{headers:httpOptions.headers,params:n}).pipe(operators.catchError(this.handleError))},t.prototype.getBudgetsByProm=function(t,e,n){var o=(new http.HttpParams).set("applicationId",t).set("promCode",e+"").set("tag",n);return this.http.get(this.environment.host.backend.frontoffice+URLS.budgetsByProm,{headers:httpOptions.headers,params:o}).pipe(operators.catchError(this.handleError))},t.prototype.newWizard=function(t){return this.http.post(this.environment.host.backend.frontoffice+URLS.wizard,t,{headers:httpOptions.headers}).pipe(operators.catchError(this.handleError))},t.prototype.generate=function(t){return this.http.post(this.environment.host.backend.frontoffice+URLS.generate,t,{headers:httpOptions.headers}).pipe(operators.catchError(this.handleError))},t.prototype.menu=function(t){var e=(new http.HttpParams).set("promCode",t+"");return this.http.get(this.environment.host.backend.frontoffice+URLS.menu,{headers:httpOptions.headers,params:e}).pipe(operators.catchError(this.handleError))},t.prototype.deleteWizard=function(t){var e=(new http.HttpParams).set("wizardId",t);return this.http.delete(this.environment.host.backend.frontoffice+URLS.deleteWizard,{headers:httpOptions.headers,params:e}).pipe(operators.catchError(this.handleError))},t.prototype.getBudgetOwnFundByApplicationId=function(t){return this.http.get(this.environment.host.backend.frontoffice+"budgetOwnFund/getByApplicationId",{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.saveBudgetOwnFund=function(t){return this.http.post(this.environment.host.backend.frontoffice+"budgetOwnFund/save",t,this.headerJson)},t.prototype.getOtherBudgetByPromCodigo=function(t,e,n){return this.http.get(this.environment.host.backend.frontoffice+"budget/otherBudget",{params:(new http.HttpParams).set("promCode",t.toString()).set("budgetSetupId",e).set("applicationId",n)})},t.prototype.getBudgetSetupPliCnfByPromCodigo=function(t,e){return this.http.get(this.environment.host.backend.frontoffice+"budget_setup/getPliCnfByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("cargarListas",e.toString())})},t.prototype.getBudgetSetupByPromCodigo=function(t){return this.http.get(this.environment.host.backend.frontoffice+"budget_setup/getByPromCodigo",{params:(new http.HttpParams).set("promCode",t.toString())})},t.prototype.updateWizard=function(t){return this.http.post(this.environment.host.backend.frontoffice+URLS.updateWizard,t,{headers:httpOptions.headers}).pipe(operators.catchError(this.handleError))},t.prototype.getByApplicationId=function(t){return this.http.get(this.environment.host.backend.frontoffice+URLS.getByApplicationId,{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.getByPromCodigo=function(t){return this.http.get(this.environment.host.backend.frontoffice+URLS.getByPromCodigo,{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getConfiguredCurrency=function(t){return this.http.get(this.environment.host.backend.frontoffice+URLS.getConfiguredCurrency,{params:(new http.HttpParams).set("promCode",t.toString())})},t.prototype.getSubjectValidateBudgetCheck=function(){return this.subjectValidateBudgetCheck.asObservable()},t.prototype.setSubjectValidateBudgetCheck=function(t){void 0===t&&(t=!0),this.subjectValidateBudgetCheck.next(t)},t.prototype.isFullBudget=function(t){return this.http.get(this.environment.host.backend.frontoffice+"budget/isFullBudget",{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.updateCompletedFlag=function(t,e){return this.http.get(this.environment.host.backend.frontoffice+"budget/updateCompletedFlag",{params:(new http.HttpParams).set("applicationId",t).set("completed",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t=__decorate([core.Injectable(),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),DocumentManagementService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.queue=function(t){return this.httpClient.post(this.environment.host.backend.queue+"document-management/queue",t,this.headerJson)},t.prototype.queueMultiple=function(t){return this.httpClient.post(this.environment.host.backend.queue+"document-management/queueMultiple",t,this.headerJson)},t.prototype.queueViews=function(t,e){return this.httpClient.post(this.environment.host.backend.queue+"document-management/queue-views",{applicationId:t,promCodigo:e},this.headerJson)},t.prototype.queueViewsListApplication=function(t,e){return this.httpClient.post(this.environment.host.backend.queue+"document-management/queue-views",{lApplicationId:t,promCodigo:e},this.headerJson)},t.prototype.getCreditStudyDocuments=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+"document-management/getCreditStudyDocuments",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("amount",e.toString())})},t.prototype.totalCreditStudyDocuments=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"document-management/totalCreditStudyDocuments",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),DocumentService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})},this.subjectValidateDocumentsCheck=new rxjs.Subject}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"document/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getByApplicationId=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"document/getByApplicationId",{params:(new http.HttpParams).set("applicationId",t.toString())})},t.prototype.getByConfigurationDocumentId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"document/getByConfigurationDocumentId",{params:(new http.HttpParams).set("configurationDocumentId",t.toString())})},t.prototype.getByListStateInConfigurationDocumentId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"document/getByListStateInConfigurationDocumentId",{params:(new http.HttpParams).set("configurationDocumentId",e.toString()).set("listState",t.toString())})},t.prototype.getByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"document/getByPromCode",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"document/save",t,this.headerJson)},t.prototype.updateState=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"document/updateState",t,this.headerJson)},t.prototype.updateArchiveProcess=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"document/updateArchiveProcess",t,this.headerJson)},t.prototype.getByDataTablesParameters=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"document/getByDataTablesParameters",t,this.headerJson)},t.prototype.getListDocumentsByPromCodigoAndRevisor=function(t,e,n,o){return this.httpClient.get(this.environment.host.backend.frontoffice+"document/getListDocumentsByPromCodigoAndRevisor",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("revisorLogin",e).set("configurationDocumentId",n.toString()).set("taskId",o.toString())})},t.prototype.getByApplicationIdAndConfigurationDocumentId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"document/getByApplicationIdAndConfigurationDocumentId",{params:(new http.HttpParams).set("applicationId",t.toString()).set("configurationDocumentId",e.toString())})},t.prototype.updateDocumentManagementProcess=function(t){var e={applicationId:t};return this.httpClient.post(this.environment.host.backend.frontoffice+"document/updateDocumentManagementProcess",e)},t.prototype.getSubjectValidateDocumentsCheck=function(){return this.subjectValidateDocumentsCheck.asObservable()},t.prototype.setSubjectValidateDocumentsCheck=function(t){void 0===t&&(t=!0),this.subjectValidateDocumentsCheck.next(t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),DocumentaryTypeService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n}return t.prototype.getById=function(t,e){var n=(new http.HttpParams).set("tdlCodigo",t.toString()).set("cargarListas",e.toString());return this.httpClient.get(this.environment.host.backend.plis+"config/tipo-documental/getById",{params:n})},t.prototype.getAllByProceso=function(t,e){var n=new http.HttpParams;return e&&(n.set("proCodigo",e.toString()),null!==t&&(n=(new http.HttpParams).set("proCodigo",e.toString()).set("cargarListas",t.toString()))),this.httpClient.get(this.environment.host.backend.plis+"config/tipo-documental/getAllByProceso",{params:n})},t.prototype.getAllActiveByProceso=function(t){return this.getAllByProceso(!0,t)},t.prototype.save=function(t,e,n){var o={tipoDocumental:e,tipoDocumentalBefore:t,pliUsuario:ngPliUtil.AuthenticationUtil.getPliUsuario(),patCodigo:n};return this.httpClient.post(this.environment.host.backend.plis+"config/tipo-documental/save",o,ngPliUtil.HEADER_JSON)},t.prototype.delete=function(t,e){var n={tipoDocumental:t,tipoDocumentalBefore:null,pliUsuario:ngPliUtil.AuthenticationUtil.getPliUsuario(),patCodigo:e};return this.httpClient.post(this.environment.host.backend.plis+"config/tipo-documental/delete",n,ngPliUtil.HEADER_JSON)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),EmailService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.send=function(t){return this.httpClient.post(this.environment.host.backend.queue+"email/send",t,this.headerJson)},t.prototype.sendApplicationNotification=function(t){return this.httpClient.post(this.environment.host.backend.queue+"email/sendApplicationNotification",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),CubeService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.send=function(t){return this.httpClient.post(this.environment.host.backend.queue+"cube/send",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),EvaluationService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/save",t,this.headerJson)},t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"evaluation/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getByPromCodigoAndEvaluator=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/findByEvaluator",t)},t.prototype.getGroupingFormFieldsTask=function(t){var e=new http.HttpParams;return e=e.set("promCodigo",String(t)),this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/getGroupingFormFieldsTask","",{params:e})},t.prototype.getGroupedByDataTasksParameters=function(t,e,n){var o=(new http.HttpParams).set("promCodigo",String(e)).set("evaluator",String(n));return this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/getGroupedByDataTasksParameters",t,{params:o})},t.prototype.getGroupedTasksByEvaluatorAndPromCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+"evaluation/evaluator/"+t+"/promCodigo/"+e)},t.prototype.generateIndicators=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/generateIndicators",t)},t.prototype.getTotalTaskReviewerByTaskIdAndPromCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+"evaluation/reviewerByTaskIdAndPromCodigo",{params:(new http.HttpParams).set("taskId",t.toString()).set("promCodigo",e.toString())})},t.prototype.assignTaskReviwer=function(t,e,n){var o={listApplication:t,listEvaluator:e,taskId:n};return this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/assignTask",o,this.headerJson)},t.prototype.unAssignTaskReviwer=function(t,e){var n={listApplication:t,taskId:e};return this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/unAssignTaskReviwer",n,this.headerJson)},t.prototype.getByApplicationIdIn=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/getByApplicationIdIn",t,this.headerJson)},t.prototype.sendEvaluationQueue=function(t){return this.httpClient.post(this.environment.host.backend.queue+"evaluation/send",t)},t.prototype.setTemplateOutputs=function(t,e,n,o,r,i,a){var s="evaluation/application/"+t+"/task/"+e+"/evaluator/"+n+"/template/"+o+"/isComplete/"+r+"/isAllTemplatesComplete/"+i;return this.httpClient.post(this.environment.host.backend.backoffice+s,a,this.headerJson)},t.prototype.gradingJob=function(t){return this.httpClient.post(this.environment.host.backend.valpro+"grading-job/",t,this.headerJson)},t.prototype.updateProgramGrade=function(t,e,n,o,r){return this.httpClient.put(this.environment.host.backend.backoffice+"evaluation/updateProgramGrade",t,{params:(new http.HttpParams).set("needToEditComment",String(e)).set("color",String(n)).set("needToEditColor",String(o)).set("sendToEvaluationQueue",String(r))})},t.prototype.getTemplateOutputsByReviewer=function(t,e,n,o){return this.httpClient.get(this.environment.host.backend.backoffice+"evaluation/getTemplateOutputsByReviewer",{params:(new http.HttpParams).set("applicationId",t).set("taskId",e.toString()).set("reviewer",n).set("templateId",o.toString())})},t.prototype.getTemplatesByReviewer=function(t,e,n){return this.httpClient.get(this.environment.host.backend.backoffice+"evaluation/getTemplatesByReviewer",{params:(new http.HttpParams).set("applicationId",t).set("taskId",e.toString()).set("reviewer",n)})},t.prototype.getValproTemplateOutputs=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+"evaluation/getValproTemplateOutputs",{params:(new http.HttpParams).set("applicationId",t).set("taskId",e.toString())})},t.prototype.getValproTemplateOutputsByNumberAndPromCode=function(t,e,n){return this.httpClient.get(this.environment.host.backend.backoffice+"evaluation/getValproTemplateOutputsByNumberAndPromCode",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("numberApplication",e.toString()).set("taskId",n.toString())})},t.prototype.checkValproTaskExistsIn=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"evaluation/checkValproTaskExists",{params:(new http.HttpParams).set("listTasksId",t.toString())})},t.prototype.changeStateMassiveToComplete=function(t,e){return this.httpClient.put(this.environment.host.backend.backoffice+"evaluation/changeStateMassiveToComplete",t,{params:(new http.HttpParams).set("taskId",e.toString())})},t.prototype.getEssayOutputsByReviewer=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/getEssayOutputsByReviewer",t)},t.prototype.saveEssayOutputsByReviewer=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"evaluation/saveEssayOutputsByReviewer",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),EXCEL_TYPE="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8",EXCEL_EXTENSION=".xlsx",ExportExcelService=function(){function t(){}return t.prototype.exportAsExcelFile=function(t,e){var n={Sheets:{data:xlsx.utils.json_to_sheet(t)},SheetNames:["data"]},o=xlsx.write(n,{bookType:"xlsx",type:"array"});this.saveAsExcelFile(o,e)},t.prototype.saveAsExcelFile=function(t,e){var n=new Blob([t],{type:EXCEL_TYPE});fileSaver.saveAs(n,e+"_export_"+(new Date).getTime()+EXCEL_EXTENSION)},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__metadata("design:paramtypes",[])],t)}(),GlobalShowTaskService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByDataTablesParameters=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"global-show-task/getByDataTablesParameters",t,this.headerJson)},t.prototype.getEvaluatorByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"global-show-task/getEvaluatorByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t)})},t.prototype.getByReviwerAndTemplateWithDataTablesParameters=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"global-show-task/getByReviwerAndTemplateWithDataTablesParameters",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),ImportDataService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"importData/saveApplication",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),InteractionApplicationUserService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByApplicationId=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"interactionApplicationUser/getByApplicationId",{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.getByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"interactionApplicationUser/getByPromCode",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"interactionApplicationUser/save",t,this.headerJson)},t.prototype.getByApplicationIdAndPliCnfStatusFlowId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"interactionApplicationUser/getByApplicationIdAndPliCnfStatusFlowId",{params:(new http.HttpParams).set("applicationId",t).set("pliCnfStatusFlowId",e.toString())})},t.prototype.getByApplicationIdAndPliCnfInteractionId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"interactionApplicationUser/getByApplicationIdAndPliCnfInteractionId",{params:(new http.HttpParams).set("applicationId",t).set("pliCnfInteractionId",e.toString())})},t.prototype.getByPromCodigoAndPliCnfInteractionIdIn=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"interactionApplicationUser/getByPromCodigoAndPliCnfInteractionIdIn",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("pliCnfInteractionId",e.toString())})},t.prototype.getByPromCodigoAndInteractionStaticId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"interactionApplicationUser/getByPromCodigoAndInteractionStaticId",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("interactionStaticId",e.toString())})},t.prototype.getByApplicationIdAndInteractionStaticId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"interactionApplicationUser/getByApplicationIdAndInteractionStaticId",{params:(new http.HttpParams).set("applicationId",t.toString()).set("interactionStaticId",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),KeysAssignationService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getByTdlCodigoAndPromCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"keys-assignation/getByTdlCodigoAndPromCodigo",{params:(new http.HttpParams).set("tdlCodigo",t.toString()).set("promCodigo",e.toString())})},t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"keys-assignation/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"keys-assignation/save",t,ngPliUtil.HEADER_JSON)},t.prototype.delete=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"keys-assignation/delete",t,ngPliUtil.HEADER_JSON)},t.prototype.getTemplateFromKeyAssignation=function(t){var e="",n=[],o=t.keys.split(","),r=t.values.split("<br/>"),i=function(t){var i=o[t],a=ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY.find((function(t){return t.key===i})),s=null;a&&!a.knowSource&&(s=r[t],e+="<br>"+i+":"+s),n.push({key:i,value:s,knowSource:a.knowSource})};for(var a in o)i(a);return e=t.tdlCodigo+"<br>"+e.substring(4),{lKeysValues:n,keysAssignation:t,template:e}},t.prototype.getValueKnowSource=function(t,e,n){return ngPliUtil.UtilString.isValid(e)?e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_TIPO_DOCUMENTAL?n.documentaryType.tdlTipoDocumentalOnbase:e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO?"":e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_ANO_PROMOCION?t.pliPromocion.promAnio:e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_PROMOCION?t.pliPromocion.promNombreCorto:e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_PROGRAMA?t.pliPromocion.pliPrograma.progNombreCorto:e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_PATROCINADOR?t.pliPromocion.pliPrograma.pliPatrocinador.patNombreCorto:e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_FECHA_ACTUAL||e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_RUTA_DOCUMENTO||e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_CONSECUTIVO||e===ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_TIPO_ARCHIVO?e:void 0:""},t.prototype.saveClonning=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"keys-assignation/saveClonning",{params:(new http.HttpParams).set("promCodigoInit",t.toString()).set("promCodigoFinal",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),LetterCampaingService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"letter-campaing",t,this.headerJson)},t.prototype.getTypes=function(){return this.httpClient.get(this.environment.host.backend.backoffice+"letter-campaing/getTypes")},t.prototype.findAllByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"letter-campaing/findAllByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"letter-campaing/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getLetterCampaignRulesByIdCampaign=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"letter-campaing/getLetterCampaignRulesByIdCampaign",{params:(new http.HttpParams).set("idCampaign",t.toString())})},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.backoffice+"letter-campaing",{params:(new http.HttpParams).set("id",t)})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),LogService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.backoffice+"log/getAll")},t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"log/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getByPromCodigoAndProNombre=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+"log/getByPromCodigoAndProNombre",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("proNombre",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PageService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"page/getAll")},t.prototype.getAllSection=function(){return this.httpClient.get(this.environment.host.backend.configuration+"page/getAllSection")},t.prototype.getAllPagePermissionOrder=function(){return this.httpClient.get(this.environment.host.backend.configuration+"page/getAllPagePermissionOrder")},t.prototype.getPageNameByPageKey=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"page/getPageNameByPageKey",{params:(new http.HttpParams).set("pageKey",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfPageSubProcessService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"PliCnfPageSubProcess/getAll")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PermissionService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"permission/getAll")},t.prototype.getAllTypePermission=function(){return this.httpClient.get(this.environment.host.backend.configuration+"permission/getAllTypePermission")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfAppCardFilterService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getAllCardFilterDimension=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCardFilterDimension/getAllCardFilterDimension")},t.prototype.getAllAppCardFilter=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfAppCardFilter/getAllAppCardFilter")},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfAppCardFilter/save",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfAppCardFilter/delete",{params:(new http.HttpParams).set("id",t)})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfCommitteeVisualizationModeService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getByPromCode=function(t){var e=new http.HttpParams;return e=e.set("promCode",String(t)),this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommitteeVisualizationMode/getByPromCode",{params:e=e})},t.prototype.getByCommittee=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommitteeVisualizationMode/getByCommittee?idCommittee="+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfCommitteeVisualizationMode/save",t)},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommitteeVisualizationMode/getById?id="+t)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfCommitteeVisualizationMode/delete?id="+t)},t.prototype.getConfigCloningCVisualization=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfCommitteeVisualizationMode/getConfigCloningCVisualization",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfEvaluationTemplateService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"evaluationtemplate/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getByIds=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"evaluationtemplate/getByIdIn",t)},t.prototype.getAllByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"evaluationtemplate/getAllByPromCode",{params:(new http.HttpParams).set("promCode",t.toString())})},t.prototype.getAllByPromCodeAndActve=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"evaluationtemplate/getAllByPromCodeAndActive",{params:(new http.HttpParams).set("promCode",t.toString()).set("active",e)})},t.prototype.getByPromCodeAndisValpro=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"evaluationtemplate/getByPromCodeAndIsValpro",{params:(new http.HttpParams).set("promCode",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"evaluationtemplate/save",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"evaluationtemplate/delete",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getMongoFormByEvaluationTemplateId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"evaluationtemplate/mongoForm/getByEvaluationTemplateId",{params:(new http.HttpParams).set("evaluationTemplateId",t.toString())})},t.prototype.getAllMongoFormsByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"evaluationtemplate/mongoForm/getAllByPromCode",{params:(new http.HttpParams).set("promCode",t.toString())})},t.prototype.saveMongoForm=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"evaluationtemplate/mongoForm/save",t,this.headerJson)},t.prototype.saveAll=function(t,e){return this.httpClient.post(this.environment.host.backend.configuration+"evaluationtemplate/saveAll",{lEvaluationTemplate:t,promCodigo:e},this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfIndicatorService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByUsername=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfIndicator/getByUsername")},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfIndicator/save",t,this.headerJson)},t.prototype.saveMultiple=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfIndicator/saveMultiple",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfIndicator/delete",{params:(new http.HttpParams).set("id",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfInteractionService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfInteraction/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfInteraction/save",t,this.headerJson)},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfInteraction/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getAllTypeInteraction=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfInteraction/getAllTypeInteraction")},t.prototype.getAllTypeStaticInteraction=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfInteraction/getAllTypeStaticInteraction")},t.prototype.getUnUsedStaticInteractions=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfInteraction/getUnUsedStaticInteractions",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getByPromCodigoAndTypeStaticInteractionId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfInteraction/getByPromCodigoAndTypeStaticInteractionId",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("IdTypeInteraction",e.toString())})},t.prototype.getByPromCodigoAndTypeStaticInteractionIdAndCommitteeId=function(t,e,n){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfInteraction/getByPromCodigoAndTypeStaticInteractionIdAndCommitteeId",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("IdTypeInteraction",e.toString()).set("committeeId",n.toString())})},t.prototype.getByPromCodigoAndStatusFlowNull=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfInteraction/getByPromCodigoAndStatusFlowNull",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfInteraction/saveAll",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfProfileUserService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByUserLogin=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfProfileUser/getByUserLogin",{params:(new http.HttpParams).set("userLogin",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfProfileUser/save",t,this.headerJson)},t.prototype.saveProfileByPatrocinador=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfProfileUser/saveProfileByPatrocinador",{patCodigo:t},this.headerJson)},t.prototype.deleteById=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfProfileUser/deleteById",{params:(new http.HttpParams).set("id",t)})},t.prototype.deleteByListId=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfProfileUser/deleteByListId",{params:(new http.HttpParams).set("listProfileUserId",t)})},t.prototype.deleteByUserIdAndPatCodigoAndProfileId=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfProfileUser/deleteByUserIdAndPatCodigoAndProfileId",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfScenarioService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.service_path="pli-cnf-scenario",this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+this.service_path+"/"+t.toString())},t.prototype.getAllByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+this.service_path+"/prom-codigo/"+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+this.service_path,t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+this.service_path+"/"+t.toString())},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+this.service_path+"/saveAll",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfSegmentationService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSegmentation/getAll")},t.prototype.getAllByPatCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSegmentation/getAllByPatCodigo",{params:(new http.HttpParams).set("patCodigo",t.toString())})},t.prototype.getByKey=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSegmentation/getByKey",{params:(new http.HttpParams).set("key",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSegmentation/save",t,this.headerJson)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSegmentation/saveAll",t,this.headerJson)},t.prototype.configCloningSegmentation=function(t,e,n,o,r){var i={mapForms:t,mapBudgets:e,mapTask:n,oldPPP:o,promocion:r};return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSegmentation/configCloningSegmentation",i,this.headerJson)},t.prototype.getAllTypeInput=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfTypeInput/getAll")},t.prototype.getAllSegmentationCategory=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSegmentation/category/getAll")},t.prototype.saveCategory=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSegmentation/category/save",t,this.headerJson)},t.prototype.getSegTasksByValproValuesAndBestSegmentation=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSegmentation/task/getValproValuesAndBestSegmentationTasks",{params:(new http.HttpParams).set("listPromCodigo",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfStatusFlowInteractionService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByStatusFlowId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatusFlowInteraction/getByStatusFlowId",{params:(new http.HttpParams).set("statusFlowId",t.toString())})},t.prototype.getByInteractionPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatusFlowInteraction/getByInteractionPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfStatusFlowInteraction/save",t,ngPliUtil.HEADER_JSON)},t.prototype.deleteByStatusFlowIdAndInteractionIdAndPositive=function(t,e,n){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfStatusFlowInteraction/deleteByStatusFlowIdAndInteractionIdAndPositive",{params:(new http.HttpParams).set("statusFlowId",t).set("interactionId",e).set("positive",n)})},t.prototype.deleteByListId=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfStatusFlowInteraction/deleteByListId",t,this.headerJson)},t.prototype.deleteById=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfStatusFlowInteraction/deleteById",{params:(new http.HttpParams).set("statusFlowInteractionId",t)})},t.prototype.getByPromCodigoAndStatusIdAndProfileIdIn=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfStatusFlowInteraction/getByPromCodigoAndStatusIdAndProfileIdIn",t,ngPliUtil.HEADER_JSON)},t.prototype.getByStatusStarIdAndInteractionId=function(t,e,n){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatusFlowInteraction/getByStatusStarIdAndInteractionId",{params:(new http.HttpParams).set("statusStartId",t.toString()).set("interactionId",e.toString()).set("positive",n.toString())})},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfStatusFlowInteraction/saveAll",t,ngPliUtil.HEADER_JSON)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfStatusFlowService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatusFlow/getById",{params:(new http.HttpParams).set("statusFlowId",t.toString())})},t.prototype.getAllByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatusFlow/getAllByPromCode",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getAllActiveByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatusFlow/getAllActiveByPromCode",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getMailConfiguration=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfStatusFlowMailing/getByStatusFlow/"+t)},t.prototype.saveMailConfiguration=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfStatusFlowMailing",t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfStatusFlow/save",t,ngPliUtil.HEADER_JSON)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfStatusFlow/saveAll",t,ngPliUtil.HEADER_JSON)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),PliCnfSupportDocumentService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSupportDocument/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getActivesByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSupportDocument/getByPromCodigoAndActive",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSupportDocument/save",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfSupportDocument/delete",{params:(new http.HttpParams).set("id",t)})},t.prototype.getConfigClonedSupportDocument=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSupportDocument/getConfigClonedSupportDocument",{params:(new http.HttpParams).set("oldPPP",t.toString()).set("newPPP",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfTextService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigoAndidTypeText=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfText/getByPromCodigoAndidTypeText",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("idTypeText",e.toString())})},t.prototype.getByPromCodigoAndidTypeTextIn=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfText/getByPromCodigoAndidTypeTextIn",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("idTypeTextList",e.toString())})},t.prototype.getByPromCodigoInAndidTypeText=function(t,e){var n=(new http.HttpParams).set("promCodigos",t.toString()).set("idTypeText",e.toString());return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfText/getByPromCodigoInAndidTypeText",{params:n})},t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfText/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfText/save",t,this.headerJson)},t.prototype.getConfigCloningText=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfText/getConfigCloningText",{params:(new http.HttpParams).set("oldPPP",t.toString()).set("newPPP",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfUserWorkspaceService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByUserName=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfUserWorkspace/getByUserName")},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfUserWorkspace/save",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"PliCnfUserWorkspace/delete",{params:(new http.HttpParams).set("id",t)})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfValproKeysService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfValProKeys/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfValProKeys/save",t,this.headerJson)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfValProKeys/saveAll",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfWorkspaceSegmentationService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfWorkspaceSegmentation/save",t,this.headerJson)},t.prototype.getFirst=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfWorkspaceSegmentation/getFirst")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliMultipleValueFilterService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"pliMultipleValueFilter/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getByKeyField=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"pliMultipleValueFilter/getByKeyField",{params:(new http.HttpParams).set("keyField",t.toString())})},t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.segmentation+"pliMultipleValueFilter/getAll")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliPromocionUsernameService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliPromocionUsername/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getByUsernameAndPromCodigoIn=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliPromocionUsername/getByUsernameAndPromCodigoIn",{params:(new http.HttpParams).set("listIds",t.toString())})},t.prototype.getUsernamesNotInPromCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliPromocionUsername/getUsernamesNotInPromCodigo",{params:(new http.HttpParams).set("listUsername",t.toString()).set("promCodigo",e.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliPromocionUsername/save",t,this.headerJson)},t.prototype.saveMultiple=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliPromocionUsername/saveMultiple",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliPromocionUsername/delete",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.deleteMultiple=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliPromocionUsername/deleteMultiple",{params:(new http.HttpParams).set("listId",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliSegmentationService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByDataTablesParameters=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/getByDataTablesParameters",t,this.headerJson)},t.prototype.generateIndicator=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/generateIndicator",t,this.headerJson)},t.prototype.generateGenericIndicator=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/generateGenericIndicator",t,this.headerJson)},t.prototype.generateStatistic=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/generateStatistic",t,this.headerJson)},t.prototype.getColumnsByPatCodigo=function(t){var e=t?t.toString():"";return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/getColumnsByPatCodigo",{params:(new http.HttpParams).set("patCodigo",e)})},t.prototype.getCards=function(){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationCard/getCards")},t.prototype.getSearchByUserTopFive=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/getSearchByUserTopFive",{params:(new http.HttpParams).set("userId",t.toString())})},t.prototype.updatePositionSearch=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/updatePositionSearch",t,this.headerJson)},t.prototype.saveAllSearch=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/saveAllSearch",t,this.headerJson)},t.prototype.deleteSearch=function(t){return this.httpClient.delete(this.environment.host.backend.segmentation+"PlicSegmentationTableController/deleteSearch",{params:(new http.HttpParams).set("id",t)})},t.prototype.changeTopFiveSearch=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/changeTopFiveSearch",{params:(new http.HttpParams).set("userId",t.toString())})},t.prototype.showEllipsisSearchByUser=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/showEllipsisSearchByUser",{params:(new http.HttpParams).set("userId",t.toString())})},t.prototype.getSearchByIdOrderByName=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/getSearchByIdOrderByName",{params:(new http.HttpParams).set("userId",t.toString())})},t.prototype.getPublicSearch=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/getPublicSearch",{params:(new http.HttpParams).set("lastNHours",t.toString())})},t.prototype.getListByUserTopFive=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/getListByUserTopFive",{params:(new http.HttpParams).set("userId",t.toString())})},t.prototype.updatePositionList=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/updatePositionList",t,this.headerJson)},t.prototype.saveAllList=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/saveAllList",t,this.headerJson)},t.prototype.deleteList=function(t){return this.httpClient.delete(this.environment.host.backend.segmentation+"PlicSegmentationTableController/deleteList",{params:(new http.HttpParams).set("id",t)})},t.prototype.changeTopFiveList=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/changeTopFiveList",{params:(new http.HttpParams).set("userId",t.toString())})},t.prototype.showEllipsisListByUser=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/showEllipsisListByUser",{params:(new http.HttpParams).set("userId",t.toString())})},t.prototype.getListByIdOrderByName=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/getListByIdOrderByName",{params:(new http.HttpParams).set("userId",t.toString())})},t.prototype.getPublicList=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationTableController/getPublicList",{params:(new http.HttpParams).set("lastNHours",t.toString())})},t.prototype.changeColor=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/changeColor",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),PliTagService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getTagByNameLike=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"plicSegmentationTag/getByNameLike",{params:(new http.HttpParams).set("name",t)})},t.prototype.save=function(t,e){return this.httpClient.post(this.environment.host.backend.segmentation+"plicSegmentationTag/save",{tag:t,applicationIds:e})},t.prototype.saveTagQueue=function(t){return this.httpClient.post(this.environment.host.backend.queue+"tag/save",t,this.headerJson)},t.prototype.deleteTagFromSegmentationList=function(t,e){return this.httpClient.post(this.environment.host.backend.segmentation+"plicSegmentationTag/deleteTagFromSegmentationList",{tagName:t,applicationIds:e})},t.prototype.deleteTagsFromSegmentation=function(t,e){return this.httpClient.post(this.environment.host.backend.segmentation+"plicSegmentationTag/deleteTagsFromSegmentation",{applicationId:t,tagNames:e})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliUserService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliUser/getAll")},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliUser/delete",{params:(new http.HttpParams).set("id",t)})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliUser/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getByLogin=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliUser/getByLogin",{params:(new http.HttpParams).set("login",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliUser/save",t,this.headerJson)},t.prototype.getByPatCodigoAndProfileIdList=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliUser/getByPatCodigoAndProfileIdList",{params:(new http.HttpParams).set("patCodigo",t.toString()).set("listProfileId",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),ProfileService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"profile/getAll")},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"profile/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getByUserIdAndPatCodigo=function(t,e,n){return this.httpClient.get(this.environment.host.backend.configuration+"profile/getByUserIdAndPatCodigo",{params:(new http.HttpParams).set("userId",t.toString()).set("patCodigo",e.toString()).set("cargarListas",n.toString())})},t.prototype.getByPatCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"profile/getByPatCodigo",{params:(new http.HttpParams).set("patCodigo",t.toString())})},t.prototype.getByFormId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"profile/getByFormId",{params:(new http.HttpParams).set("formId",t).set("cargarListas",e.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"profile/save",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"profile/delete",{params:(new http.HttpParams).set("id",t)})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SegmentationUserService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getSegmentationByUserTopFive=function(t,e){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/getSegmentationByUserTopFive",{params:(new http.HttpParams).set("username",t).set("type",e.toString())})},t.prototype.updatePositionSegmentation=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationUserController/updatePositionSegmentation",t,this.headerJson)},t.prototype.saveAllSegmentation=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationUserController/saveAllSegmentation",t,this.headerJson)},t.prototype.deleteSegmentation=function(t){return this.httpClient.delete(this.environment.host.backend.segmentation+"PlicSegmentationUserController/deleteSegmentation",{params:(new http.HttpParams).set("id",t)})},t.prototype.changeTopFiveSegmentation=function(t,e){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/changeTopFiveSegmentation",{params:(new http.HttpParams).set("username",t).set("type",e.toString())})},t.prototype.showEllipsisSegmentationByUser=function(t,e){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/showEllipsisSegmentationByUser",{params:(new http.HttpParams).set("username",t).set("type",e.toString())})},t.prototype.getSegmentationGreaterThanPosition=function(t,e,n){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/getSegmentationGreaterThanPosition",{params:(new http.HttpParams).set("username",t).set("type",e.toString()).set("position",n.toString())})},t.prototype.getSegmentationByIdOrderByName=function(t,e){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/getSegmentationByIdOrderByName",{params:(new http.HttpParams).set("username",t).set("type",e.toString())})},t.prototype.getSegmentationById=function(t){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/getSegmentationById",{params:(new http.HttpParams).set("segmentationId",t)})},t.prototype.getAllSegmentationByLoginAndType=function(t,e){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/getAllSegmentationByLoginAndType",{params:(new http.HttpParams).set("username",t).set("type",e.toString())})},t.prototype.getPublicSegmentation=function(t,e){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/getPublicSegmentation",{params:(new http.HttpParams).set("lastNHours",t.toString()).set("type",e.toString())})},t.prototype.getSegColumn=function(){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/getSegColumn",{params:new http.HttpParams})},t.prototype.getSegmentationByName=function(t,e,n){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicSegmentationUserController/getSegmentationByName",{params:(new http.HttpParams).set("username",t).set("type",e.toString()).set("name",n)})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SegmentationService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.send=function(t){return this.httpClient.post(this.environment.host.backend.queue+"segmentation/send",t,this.headerJson)},t.prototype.sendMultiple=function(t){return this.httpClient.post(this.environment.host.backend.queue+"segmentation/sendMassive",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),utils=utils_,FormioUtil=function(){function t(){}return t.getFormattedComponentsByPanel=function(t){var e,n,o=[];if(t){var r=null,i=null;try{for(var a=__values(t),s=a.next();!s.done;s=a.next()){var c=s.value;c[ngPliUtil.EFormioKey.TITLE_PANEL]!==r&&(null!==r&&o.push(i),i={label:c[ngPliUtil.EFormioKey.TITLE_PANEL],items:[],toggle:!1},r=c[ngPliUtil.EFormioKey.TITLE_PANEL]),i.items.push({label:c[ngPliUtil.EFormioKey.LABEL],value:c[ngPliUtil.EFormioKey.KEY]})}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}null!==r&&o.push(i)}return o},t.getRequiredComponentsByData=function(e,n){var o=t.getRequiredComponents(e);if(n&&o)for(var r=0;r<o.length;r++){var i=o[r];if(utils.checkCondition(i,null,n,null,null)){var a=i[ngPliUtil.EFormioKey.KEY];(null!=n[a]&&null!=n[a]&&""!=n[a]||i.customConditional&&i.customConditional.includes("show"))&&(o.splice(r,1),r--)}else o.splice(r,1),r--}return o},t.getUniqueComponents=function(e){return t.getComponentsByFeature(e,[ngPliUtil.EFormioKey.UNIQUE],!0)},t.getRequiredComponents=function(e){return t.getComponentsByFeature(e,[ngPliUtil.EFormioKey.VALIDATE,ngPliUtil.EFormioKey.REQUIRED],!0)},t.getComponentsByFeature=function(e,n,o){var r=[];if(n&&n.length>0){var i=t.getComponents(e),a=n[0],s=n[n.length-1];if(i)for(var c=0;c<i.length;c++){var p=i[c],l=p;if(p[a])for(var d=0;d<n.length;d++){var u=n[d];if(!l[u])break;u===s?l[u]==o&&r.push(p):l=l[u]}}}return r},t.getComponents=function(e){return t.getComponentsByRecursion(e,"",null)},t.getComponentsByRecursion=function(e,n,o){var r,i,a=[];if(e)try{for(var s=__values(e),c=s.next();!c.done;c=s.next()){var p=c.value;if(p[ngPliUtil.EFormioKey.TYPE]!==ngPliUtil.EFormioKey.EDITGRID)if(p[ngPliUtil.EFormioKey.TYPE]===ngPliUtil.EFormioKey.PANEL&&(n=p[ngPliUtil.EFormioKey.TITLE]),void 0!==p[ngPliUtil.EFormioKey.COMPONENTS]||void 0!==p[ngPliUtil.EFormioKey.COLUMNS]){(u=this.resolveInheritanceConditional(o,p[ngPliUtil.EFormioKey.CONDITIONAL],p[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],p[ngPliUtil.EFormioKey.ID]))&&(o=u);var l=void 0!==p[ngPliUtil.EFormioKey.COMPONENTS]?p[ngPliUtil.EFormioKey.COMPONENTS]:p[ngPliUtil.EFormioKey.COLUMNS],d=t.getComponentsByRecursion(l,n,o);d&&(a=a.concat(d)),p[ngPliUtil.EFormioKey.ID]==o.id&&(o=void 0)}else{var u;if(p[ngPliUtil.EFormioKey.TYPE]!==ngPliUtil.EFormioKey.BUTTON&&p[ngPliUtil.EFormioKey.KEY]&&p[ngPliUtil.EFormioKey.LABEL])(u=this.resolveInheritanceConditional(o,p[ngPliUtil.EFormioKey.CONDITIONAL],p[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],p[ngPliUtil.EFormioKey.ID]))||(u=o),p[ngPliUtil.EFormioKey.CONDITIONAL]=u[ngPliUtil.EFormioKey.CONDITIONAL],p[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL]=u[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],p[ngPliUtil.EFormioKey.TITLE_PANEL]=n,a.push(p)}}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a},t.getComponentsWithEditGrids=function(e){return t.getComponentsByRecursionWithEditGrids(e,"",null)},t.getComponentsByRecursionWithEditGrids=function(e,n,o){var r,i,a=[];if(e)try{for(var s=__values(e),c=s.next();!c.done;c=s.next()){var p=c.value;if(p[ngPliUtil.EFormioKey.TYPE]===ngPliUtil.EFormioKey.PANEL&&(n=p[ngPliUtil.EFormioKey.TITLE]),void 0!==p[ngPliUtil.EFormioKey.COMPONENTS]||void 0!==p[ngPliUtil.EFormioKey.COLUMNS]){(u=this.resolveInheritanceConditional(o,p[ngPliUtil.EFormioKey.CONDITIONAL],p[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],p[ngPliUtil.EFormioKey.ID]))&&(o=u);var l=void 0!==p[ngPliUtil.EFormioKey.COMPONENTS]?p[ngPliUtil.EFormioKey.COMPONENTS]:p[ngPliUtil.EFormioKey.COLUMNS];p[ngPliUtil.EFormioKey.TYPE]===ngPliUtil.EFormioKey.EDITGRID&&(p[ngPliUtil.EFormioKey.TITLE_PANEL]=n,a.push(p));var d=t.getComponentsByRecursionWithEditGrids(l,n,o);d&&(a=a.concat(d)),p[ngPliUtil.EFormioKey.ID]==o.id&&(o=void 0)}else{var u;if(p[ngPliUtil.EFormioKey.TYPE]!==ngPliUtil.EFormioKey.BUTTON&&p[ngPliUtil.EFormioKey.KEY]&&p[ngPliUtil.EFormioKey.LABEL])(u=this.resolveInheritanceConditional(o,p[ngPliUtil.EFormioKey.CONDITIONAL],p[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],p[ngPliUtil.EFormioKey.ID]))||(u=o),p[ngPliUtil.EFormioKey.CONDITIONAL]=u[ngPliUtil.EFormioKey.CONDITIONAL],p[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL]=u[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],p[ngPliUtil.EFormioKey.TITLE_PANEL]=n,a.push(p)}}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a},t.resolveInheritanceConditional=function(t,e,n,o){return!t||n||e&&e[ngPliUtil.EFormioKey.WHEN]&&e[ngPliUtil.EFormioKey.EQ]||e&&e[ngPliUtil.EFormioKey.JSON]?{conditional:e,customConditional:n,id:o}:null},t.getEditGridKeyLabels=function(e){return t.getEditGridKeyLabelsByRecursion(e,"",null)},t.getEditGridKeyLabelsByRecursion=function(e,n,o){var r,i,a=[];if(e)try{for(var s=__values(e),c=s.next();!c.done;c=s.next()){var p=c.value;if(p[ngPliUtil.EFormioKey.TYPE]===ngPliUtil.EFormioKey.PANEL&&(n=p[ngPliUtil.EFormioKey.TITLE]),void 0!==p[ngPliUtil.EFormioKey.COMPONENTS]||void 0!==p[ngPliUtil.EFormioKey.COLUMNS]){var l=this.resolveInheritanceConditional(o,p[ngPliUtil.EFormioKey.CONDITIONAL],p[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],p[ngPliUtil.EFormioKey.ID]);l&&(o=l);var d=void 0!==p[ngPliUtil.EFormioKey.COMPONENTS]?p[ngPliUtil.EFormioKey.COMPONENTS]:p[ngPliUtil.EFormioKey.COLUMNS];if(p[ngPliUtil.EFormioKey.TYPE]==ngPliUtil.EFormioKey.EDITGRID)p[ngPliUtil.EFormioKey.TITLE_PANEL]=n,a.push(p);else{var u=t.getEditGridKeyLabelsByRecursion(d,n,o);u&&(a=a.concat(u)),p[ngPliUtil.EFormioKey.ID]==o.id&&(o=void 0)}}}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a},t.getComponentsIntoEditGrids=function(e,n){return t.getComponentsByRecursionIntoEditGrids(e,"",null,n,!1)},t.getComponentsByRecursionIntoEditGrids=function(e,n,o,r,i){var a,s,c=[];if(e)try{for(var p=__values(e),l=p.next();!l.done;l=p.next()){var d=l.value;if(d[ngPliUtil.EFormioKey.TYPE]===ngPliUtil.EFormioKey.PANEL&&(n=d[ngPliUtil.EFormioKey.TITLE]),void 0!==d[ngPliUtil.EFormioKey.COMPONENTS]||void 0!==d[ngPliUtil.EFormioKey.COLUMNS]){(y=this.resolveInheritanceConditional(o,d[ngPliUtil.EFormioKey.CONDITIONAL],d[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],d[ngPliUtil.EFormioKey.ID]))&&(o=y);var u=void 0!==d[ngPliUtil.EFormioKey.COMPONENTS]?d[ngPliUtil.EFormioKey.COMPONENTS]:d[ngPliUtil.EFormioKey.COLUMNS];if(d[ngPliUtil.EFormioKey.TYPE]===ngPliUtil.EFormioKey.EDITGRID&&d.key==r)if(i=!0,void 0!==d[ngPliUtil.EFormioKey.COMPONENTS]||void 0!==d[ngPliUtil.EFormioKey.COLUMNS]){var m=this.resolveInheritanceConditional(o,d[ngPliUtil.EFormioKey.CONDITIONAL],d[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],d[ngPliUtil.EFormioKey.ID]);m&&(o=m);var h=void 0!==d[ngPliUtil.EFormioKey.COMPONENTS]?d[ngPliUtil.EFormioKey.COMPONENTS]:d[ngPliUtil.EFormioKey.COLUMNS],g=t.getComponentsByRecursionIntoEditGrids(h,n,o,r,i);g&&(c=c.concat(g)),d&&o&&d[ngPliUtil.EFormioKey.ID]==o.id&&(o=void 0)}else if(d[ngPliUtil.EFormioKey.TYPE]!==ngPliUtil.EFormioKey.BUTTON&&d[ngPliUtil.EFormioKey.KEY]&&d[ngPliUtil.EFormioKey.LABEL]&&i){var f=this.resolveInheritanceConditional(o,d[ngPliUtil.EFormioKey.CONDITIONAL],d[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],d[ngPliUtil.EFormioKey.ID]);f||(f=o),d[ngPliUtil.EFormioKey.CONDITIONAL]=f[ngPliUtil.EFormioKey.CONDITIONAL],d[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL]=f[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],d[ngPliUtil.EFormioKey.TITLE_PANEL]=n,c.push(d)}var v=t.getComponentsByRecursionIntoEditGrids(u,n,o,r,i);v&&(c=c.concat(v)),d&&o&&d[ngPliUtil.EFormioKey.ID]==o.id&&(o=void 0)}else{var y;if(d[ngPliUtil.EFormioKey.TYPE]!==ngPliUtil.EFormioKey.BUTTON&&d[ngPliUtil.EFormioKey.KEY]&&d[ngPliUtil.EFormioKey.LABEL]&&i)(y=this.resolveInheritanceConditional(o,d[ngPliUtil.EFormioKey.CONDITIONAL],d[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],d[ngPliUtil.EFormioKey.ID]))||(y=o),d[ngPliUtil.EFormioKey.CONDITIONAL]=y[ngPliUtil.EFormioKey.CONDITIONAL],d[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL]=y[ngPliUtil.EFormioKey.CUSTOM_CONDITIONAL],d[ngPliUtil.EFormioKey.TITLE_PANEL]=n,c.push(d)}}}catch(t){a={error:t}}finally{try{l&&!l.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}return c},t.createListDataByDataFormList=function(t,e){var n,o,r={},i={};if(t&&t.length>0){var a;r={},i={};try{for(var s=__values(t),c=s.next();!c.done;c=s.next())if((a=c.value).data){var p=e.find((function(t){return t.id==a.formId}));if(p){var l=TokenService.getKeyFormulario(p.title)+"_";for(var d in a.data)r[d]=a.data[d],i[l+d]=a.data[d]}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}return{listData:r,listDataByForm:i}},t.getPanelComponents=function(e){return t.getComponentsByPanel(e)},t.getComponentsByPanel=function(t){var e,n,o=[];if(t)try{for(var r=__values(t),i=r.next();!i.done;i=r.next()){var a=i.value;a[ngPliUtil.EFormioKey.TYPE]!==ngPliUtil.EFormioKey.EDITGRID&&a[ngPliUtil.EFormioKey.TYPE]===ngPliUtil.EFormioKey.PANEL&&o.push(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return o},t}(),SendApplicationService=function(){function SendApplicationService(t,e,n,o){this.environment=t,this.tokenService=e,this.emailService=n,this.interactionApplicationUserService=o,this.percentageSubject=new rxjs.BehaviorSubject(0)}return SendApplicationService.prototype.onChangePercentage=function(){return this.percentageSubject.asObservable()},SendApplicationService.prototype.setPercentage=function(t,e){if(t&&e){var n=t/e*100;this.percentageSubject.next(n)}else this.resetPercentage()},SendApplicationService.prototype.resetPercentage=function(){this.percentageSubject.next(0)},SendApplicationService.prototype.sendEmailMassively=function(t){var e=new ngPliUtil.Email;return e.addTo("pruebaconvo@ben.colfuturo.org"),e.setSubject("Envío de solicitud "+t.id),e.setBody("Cordial saludo, <br/>Hemos enviado la solicitud "+t.id),this.emailService.send(e)},SendApplicationService.prototype.sendEmail=function(t){var e=new ngPliUtil.Email;return e.addTo("pruebaconvo@ben.colfuturo.org"),e.setSubject("Envío de solicitud "+t.id),e.setBody("Cordial saludo, <br/>Has enviado la solicitud "+t.id),this.emailService.send(e)},SendApplicationService.prototype.saveInteraction=function(t,e,n,o){var r=new ngPliUtil.InteractionApplicationUser;return r.applicationId=t,r.promCodigo=e,n.pliCnfInteraction&&n.pliCnfInteraction.id&&(r.pliCnfInteractionId=n.pliCnfInteraction.id),n.pliCnfStatusFlow&&n.pliCnfStatusFlow.id&&(r.pliCnfStatusFlowId=n.pliCnfStatusFlow.id),n.id&&(r.pliCnfStatusFlowInteractionId=n.id),r.interactionStaticId=ngPliUtil.ETypeStaticInteraction.SEND_APPLICATION,r.pliUserId=ngPliUtil.AuthenticationUtil.getPliUsuario()?ngPliUtil.AuthenticationUtil.getPliUsuario().usuCodigo:null,r.positive=!0,r.observation=o||"Envío de solicitud",this.interactionApplicationUserService.save(r)},SendApplicationService.prototype.saveInteractionInformation=function(t,e,n){this.interactionApplicationUserService.save(t).subscribe((function(t){e(t)}),(function(t){console.error("ERROR - saveInteraction - interactionApplicationUserService.save ",t),n(t)}))},SendApplicationService.prototype.validate=function(t,e,n,o,r,i,a,s,c,p,l){var d,u,m=[];if(e&&e.length>0)for(var h=0;h<e.length;h++){var g=e[h],f=new ngPliUtil.SendApplication;f.applicationId=g.id;var v=[];if(t&&t.length&&g.stateId&&n&&n.length)try{for(var y=(d=void 0,__values(t)),C=y.next();!C.done;C=y.next()){var b=C.value;if(b.id==g.stateId){v=b;break}}}catch(t){d={error:t}}finally{try{C&&!C.done&&(u=y.return)&&u.call(y)}finally{if(d)throw d.error}}var S=this.getListFormsByStatus(v,n);f.listValidatedForm=this.getValidatedFormList(S,o,f.applicationId),f.listValidatedBudget=l?this.getValidatedBudgetSummarized(r,i,f.applicationId,v):this.getValidatedBudget(r,i,f.applicationId,v),f.listValidatedDocument=this.getValidatedDocument(v,a,s,g,o,p),f.validation=!f.listValidatedDocument.length&&!f.listValidatedBudget.length&&!f.listValidatedForm.length,m.push(f),c&&c(f,g,h,e.length)}return m},SendApplicationService.prototype.getListFormsByStatus=function(t,e){var n,o,r,i,a=[],s=t.listPliCnfStatusPageSection;if(s&&s.length)try{for(var c=__values(e),p=c.next();!p.done;p=c.next()){var l=p.value;try{for(var d=(r=void 0,__values(s)),u=d.next();!u.done;u=d.next()){if(u.value.idForm==l.id){a.push(l);break}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}}catch(t){n={error:t}}finally{try{p&&!p.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}return a},SendApplicationService.prototype.getValidatedDocument=function(currentStatus,listConfigurationDocument,listDocument,application,listDataForm,validateJustRequired){var e_4,_a,e_5,_b,e_6,_c,listValidatedDocument=[];if(listConfigurationDocument){var listConfigurationDocumentVisible=[],shouldValidateDocuments=!1,listPliCnfStatusPageSection=currentStatus.listPliCnfStatusPageSection;if(listPliCnfStatusPageSection&&listPliCnfStatusPageSection.length)try{for(var listPliCnfStatusPageSection_2=__values(listPliCnfStatusPageSection),listPliCnfStatusPageSection_2_1=listPliCnfStatusPageSection_2.next();!listPliCnfStatusPageSection_2_1.done;listPliCnfStatusPageSection_2_1=listPliCnfStatusPageSection_2.next()){var section=listPliCnfStatusPageSection_2_1.value;if(section.pliCnfPageSection)switch(section.pliCnfPageSection.keyLabel){case"documentos":shouldValidateDocuments=!0}}}catch(t){e_4={error:t}}finally{try{listPliCnfStatusPageSection_2_1&&!listPliCnfStatusPageSection_2_1.done&&(_a=listPliCnfStatusPageSection_2.return)&&_a.call(listPliCnfStatusPageSection_2)}finally{if(e_4)throw e_4.error}}if(!shouldValidateDocuments)return listValidatedDocument;if(listConfigurationDocument)try{for(var listConfigurationDocument_1=__values(listConfigurationDocument),listConfigurationDocument_1_1=listConfigurationDocument_1.next();!listConfigurationDocument_1_1.done;listConfigurationDocument_1_1=listConfigurationDocument_1.next()){var configurationDocument=listConfigurationDocument_1_1.value,visible=!0;if(configurationDocument.formula&&configurationDocument.formula.length){var formula="";try{var data={statusname:application.stateName};if(listDataForm)try{for(var listDataForm_1=(e_6=void 0,__values(listDataForm)),listDataForm_1_1=listDataForm_1.next();!listDataForm_1_1.done;listDataForm_1_1=listDataForm_1.next()){var dataForm=listDataForm_1_1.value;for(var property in dataForm.data)data[property.toLowerCase()]=dataForm.data[property]}}catch(t){e_6={error:t}}finally{try{listDataForm_1_1&&!listDataForm_1_1.done&&(_c=listDataForm_1.return)&&_c.call(listDataForm_1)}finally{if(e_6)throw e_6.error}}formula=this.tokenService.replaceTokensFromListObject(configurationDocument.name,configurationDocument.formula,data);var result=eval(formula);!0!==result&&(visible=!1)}catch(t){visible=!1}}visible&&listConfigurationDocumentVisible.push(configurationDocument)}}catch(t){e_5={error:t}}finally{try{listConfigurationDocument_1_1&&!listConfigurationDocument_1_1.done&&(_b=listConfigurationDocument_1.return)&&_b.call(listConfigurationDocument_1)}finally{if(e_5)throw e_5.error}}if(listConfigurationDocumentVisible)for(var i=0;i<listConfigurationDocumentVisible.length;i++){var configurationDocument=listConfigurationDocumentVisible[i],document_1=this.getDocumentByConfigurationId(configurationDocument.id,listDocument,application.id);validateJustRequired?(!document_1||document_1&&0==document_1.listArchive.length||this.automaticDocumentsValidated(configurationDocument,listDataForm,document_1))&&configurationDocument.required&&this.fillListValidateDocumentDefault(listValidatedDocument,application,configurationDocument):document_1?document_1.state==ngPliUtil.EDocumentState.PENDIENTE&&listValidatedDocument.push(document_1):this.fillListValidateDocumentDefault(listValidatedDocument,application,configurationDocument)}}return listValidatedDocument},SendApplicationService.prototype.fillListValidateDocumentDefault=function(t,e,n){var o=new ngPliUtil.Document;o.applicationId=e.id,o.promCodigo=n.promCodigo,o.state=ngPliUtil.EDocumentState.PENDIENTE,o.configurationDocumentId=n.id,o.listArchive=[],t.push(o)},SendApplicationService.prototype.getDocumentByConfigurationId=function(t,e,n){var o,r;if(e)try{for(var i=__values(e),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.configurationDocumentId===t&&s.applicationId===n)return s}}catch(t){o={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return null},SendApplicationService.prototype.getValidatedBudgetApplication=function(t,e,n,o){var r,i;if(n)try{for(var a=__values(n),s=a.next();!s.done;s=a.next()){var c=s.value;if(c.tag==e&&t.cpreCodigo==c.budgetSetupId&&c.applicationId==o)return this.validateBudget(c,t,e)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return this.validateBudget(null,t,e)},SendApplicationService.prototype.validateBudget=function(t,e,n){return t&&t.summary&&t.summary.budgetTotal?(n===ngPliUtil.EBudgetBuildType.financing||n===ngPliUtil.EBudgetBuildType.mixed)&&t.summary.budgetTotal>e.cpreMontoTotal?{budget:t,type:n,budgetSetting:e,error:ngPliUtil.EBudgetError.OVERCOME_MAXIMUM_AMOUNT}:n!==ngPliUtil.EBudgetBuildType.financing||t.financingStart&&t.financingEnd?null:{budget:t,type:n,budgetSetting:e,error:ngPliUtil.EBudgetError.FINANCING_DATES}:{budget:t,type:n,budgetSetting:e,error:ngPliUtil.EBudgetError.NO_OBJECT}},SendApplicationService.prototype.validateSummarizedBudget=function(t,e,n){return n&&n.summary&&n.summary.budgetTotal?null:{budget:n,type:e,budgetSetting:t,error:ngPliUtil.EBudgetError.NO_OBJECT}},SendApplicationService.prototype.validateCompleteBudget=function(t,e,n){return this.getValidatedBudget(t,e,n)},SendApplicationService.prototype.getValidatedBudget=function(t,e,n,o){var r,i,a,s,c=[];if(t){var p=!1,l=!1;if(o){var d=o.listPliCnfStatusPageSection;if(d&&d.length)try{for(var u=__values(d),m=u.next();!m.done;m=u.next()){var h=m.value;if(h.pliCnfPageSection)switch(h.pliCnfPageSection.keyLabel){case"presupuesto.total":p=!0;break;case"presupuesto.financiacion":l=!0}}}catch(t){r={error:t}}finally{try{m&&!m.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}}else p=!0,l=!0;try{for(var g=__values(t),f=g.next();!f.done;f=g.next()){var v=f.value;if(v.pliTipoPresupuesto.tpresCodigo!=ngPliUtil.ETipoPresupuesto.GENERAL){var y=this.getValidatedBudgetApplication(v,ngPliUtil.EBudgetBuildType.total,e,n);if(y&&p&&c.push(y),v.cpreEsFondosPropios){var C=this.getValidatedBudgetApplication(v,ngPliUtil.EBudgetBuildType.financing,e,n);C&&l&&c.push(C)}}}}catch(t){a={error:t}}finally{try{f&&!f.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}}return c},SendApplicationService.prototype.getValidatedFormList=function(t,e,n){var o,r,i,a,s,c,p=[];if(t)try{for(var l=__values(t),d=l.next();!d.done;d=l.next()){var u=d.value,m=this.getErrorsByFormIdAndApplicationId(e,u.id,n);if(m&&m.length){var h=FormioUtil.getComponents(u.components),g=[];try{for(var f=(i=void 0,__values(m)),v=f.next();!v.done;v=f.next()){var y=v.value;if(y&&y.component&&y.component.key&&h)try{for(var C=(s=void 0,__values(h)),b=C.next();!b.done;b=C.next()){var S=b.value;if(S.key==y.component.key){g.push(S);break}}}catch(t){s={error:t}}finally{try{b&&!b.done&&(c=C.return)&&c.call(C)}finally{if(s)throw s.error}}}}catch(t){i={error:t}}finally{try{v&&!v.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}if(g&&g.length){var _=FormioUtil.getFormattedComponentsByPanel(g);p.push({id:u.id,name:u.title,panels:_,toggle:!1})}}else{var T=this.getDataByFormIdAndApplicationId(e,u.id,n);if((h=FormioUtil.getRequiredComponentsByData(u.components,T))&&h.length){_=FormioUtil.getFormattedComponentsByPanel(h);p.push({id:u.id,name:u.title,panels:_,toggle:!1})}}}}catch(t){o={error:t}}finally{try{d&&!d.done&&(r=l.return)&&r.call(l)}finally{if(o)throw o.error}}return p},SendApplicationService.prototype.getErrorsByFormIdAndApplicationId=function(t,e,n){var o,r;if(t&&e&&n)try{for(var i=__values(t),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.formId==e&&s.applicationId==n)return s.errors}}catch(t){o={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return null},SendApplicationService.prototype.getDataByFormIdAndApplicationId=function(t,e,n){var o,r;if(t&&e&&n)try{for(var i=__values(t),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.formId==e&&s.applicationId==n)return s.data}}catch(t){o={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return null},SendApplicationService.prototype.getValidatedBudgetSummarized=function(t,e,n,o){var r,i,a=[];if(t){var s=!1;if(o){var c=o.listPliCnfStatusPageSection;if(c&&c.length)try{for(var p=__values(c),l=p.next();!l.done;l=p.next()){var d=l.value;if(d.pliCnfPageSection)switch(d.pliCnfPageSection.keyLabel){case ngPliUtil.ECnfPageSection.presupuestoResumido:s=!0}}}catch(t){r={error:t}}finally{try{l&&!l.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}}else s=!0;var u=this.validateSummarizedBudget(t[0],ngPliUtil.EBudgetBuildType.total,e[0]);u&&s&&a.push(u)}return a},SendApplicationService.prototype.automaticDocumentsValidated=function(configDocument,listDataForm,document){var e_17,_a;if(configDocument.formulaValidateMultiple&&configDocument.formulaValidateMultiple.length>0){var data={statusname:""};if(listDataForm)try{for(var listDataForm_4=__values(listDataForm),listDataForm_4_1=listDataForm_4.next();!listDataForm_4_1.done;listDataForm_4_1=listDataForm_4.next()){var dataForm=listDataForm_4_1.value;for(var property in dataForm.data)data[property.toLowerCase()]=dataForm.data[property]}}catch(t){e_17={error:t}}finally{try{listDataForm_4_1&&!listDataForm_4_1.done&&(_a=listDataForm_4.return)&&_a.call(listDataForm_4)}finally{if(e_17)throw e_17.error}}var formula=this.tokenService.replaceTokensFromListObject(configDocument.name,configDocument.formulaValidateMultiple,data),result=eval(formula);if(result){var resultArray=JSON.parse(result);if(resultArray&&resultArray.length>0&&(!document||document.listArchive.length!==resultArray.length))return!0}}return!1},SendApplicationService.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:TokenService},{type:EmailService},{type:InteractionApplicationUserService}]},SendApplicationService.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new SendApplicationService(core.ɵɵinject("environment"),core.ɵɵinject(TokenService),core.ɵɵinject(EmailService),core.ɵɵinject(InteractionApplicationUserService))},token:SendApplicationService,providedIn:"root"}),SendApplicationService=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,TokenService,EmailService,InteractionApplicationUserService])],SendApplicationService),SendApplicationService}(),SesionFormService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"sesionForm/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"sesionForm/save",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SesionService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByLogin=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"sesion/getByLogin",{params:(new http.HttpParams).set("login",t)})},t.prototype.getEmailByLogin=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"sesion/getEmailByLogin",{params:(new http.HttpParams).set("login",t)})},t.prototype.getHasSession=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"sesion/hasSession",{params:(new http.HttpParams).set("login",t)})},t.prototype.getInactiveUsers=function(){return this.httpClient.get(this.environment.host.backend.configuration+"sesion/inactive-users")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SponsorshipLetterService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})},this.subjectValidateSponsorshipLetter=new rxjs.Subject}return t.prototype.getListByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"sponsorship-letter/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"sponsorship-letter/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"sponsorship-letter/delete",{params:(new http.HttpParams).set("id",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"sponsorship-letter/save",t,this.headerJson)},t.prototype.getHtmlByNumberAndPromCodigo=function(t,e,n){return this.httpClient.get(this.environment.host.backend.configuration+"sponsorship-letter/getHtmlByNumberAndPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("id",n.toString()).set("number",e)})},t.prototype.getSubjectValidateSponsorshipLetter=function(){return this.subjectValidateSponsorshipLetter.asObservable()},t.prototype.setSubjectValidateSponsorshipLetter=function(t){void 0===t&&(t=!1),this.subjectValidateSponsorshipLetter.next(t)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"sponsorship-letter/saveAll",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),UserService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAll=function(t){return this.httpClient.get(this.environment.host.backend.plis+"config/usuario/getAll",{params:(new http.HttpParams).set("cargarListas",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfBudgetService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.removeFromCache=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfBudget/removeFromCache",{params:(new http.HttpParams).set("cpreCode",t.toString()).set("promCode",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SnapshotTokenComponent=function(t){function e(e,n,o,r){var i=t.call(this,n,e)||this;return i.cdRef=e,i.commonService=n,i.toastrService=o,i.tokenService=r,i}return __extends(e,t),e.prototype.labelSnapshot=function(t){return"${"+TokenService.getKeySnapshot(t)+"}"},e.prototype.ngOnInit=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:return t.prototype.ngOnInit.call(this),this.getTokens(),e=this,[4,this.tokenService.getAllType().toPromise()];case 1:return e.types=n.sent(),[2]}}))}))},e.prototype.initForm=function(t){this.tokenSelected=null==t?new ngPliUtil.PliCnfSnapshotToken:Object.assign(new ngPliUtil.PliCnfSnapshotToken,JSON.parse(JSON.stringify(t))),this.tokenSelected.promCodigo||(this.tokenSelected.promCodigo=this.promCodigo),this.controlName=new forms.FormControl(this.tokenSelected.name,forms.Validators.required),this.controlFormula=new forms.FormControl(this.tokenSelected.formula,forms.Validators.required),this.controlType=new forms.FormControl(this.tokenSelected.type,forms.Validators.required),this.frmToken=new forms.FormGroup({controlName:this.controlName,controlFormula:this.controlFormula,controlType:this.controlType}),this.showModal=!0},e.prototype.delete=function(t){var e=this;confirm("¿Está seguro que desea eliminar el token "+t.name+"?")&&this.tokenService.delete(t.id).subscribe((function(t){e.toastrService.success("El token fué eliminada exitosamente"),e.getTokens()}),(function(t){e.toastrService.error("Error al intentar eliminar el token")}))},e.prototype.getTokens=function(){var t=this;this.tokenService.getAllByPromCode(this.promCodigo).subscribe((function(e){t.tokens=e}),(function(e){console.log("Error getTokenCalculated -getListByPromCodigo",e),t.toastrService.error("Error el formulario")}))},e.prototype.resolveKeyCalculatedToken=function(){return ngPliUtil.UtilString.replaceAccentSpacesOthers(this.tokenSelected.name)},e.prototype.onCloseModal=function(){this.showModal=!1},e.prototype.save=function(){var t=this;this.isFormValid(this.frmToken)&&this.isValid()&&this.tokenService.save(this.tokenSelected).subscribe((function(e){t.toastrService.success("Se ha guardado exitosamente ","Guardado exitoso!"),t.tokenSelected=null,t.getTokens(),t.onCloseModal()}),(function(e){console.error(e),t.toastrService.error("Error al intentar guardar el token","Error!")}))},e.prototype.isValid=function(){var t=this,e=this.tokens.find((function(e){return ngPliUtil.UtilString.replaceAccentSpacesOthers(e.name)===ngPliUtil.UtilString.replaceAccentSpacesOthers(t.tokenSelected.name)&&(!t.tokenSelected.id||t.tokenSelected.id!==e.id)}));return!e||(this.toastrService.error("El token "+e.name+" ya existe","Alerta!"),!1)},e.ctorParameters=function(){return[{type:core.ChangeDetectorRef},{type:CommonService},{type:ngxToastr.ToastrService},{type:PliCnfSnapshotTokenServices}]},__decorate([core.Input(),__metadata("design:type",Number)],e.prototype,"promCodigo",void 0),e=__decorate([core.Component({selector:"pli-snapshot-token",template:'<h4 class="no-margin-top">\r\n Tokens Snapshot\r\n</h4>\r\n<p-table [value]="tokens" [responsive]="true">\r\n <ng-template pTemplate="header">\r\n <tr class="text-align-center">\r\n <th class="text-align-center" width="40%">Nombre</th>\r\n <th class="text-align-center">Formula</th>\r\n <th class="text-align-center">Tipo</th>\r\n <th class="text-align-center">Creado</th>\r\n <th class="text-align-center">Modificado</th>\r\n <th class="text-align-center">Acciones</th>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate="body" let-token>\r\n <tr>\r\n <td>\r\n <button\r\n type="button"\r\n (click)="copyMessage(labelSnapshot(token))"\r\n style="margin-right: 8px;"\r\n title="{{ labelSnapshot(token) }}"\r\n >\r\n <span class="fa fa-clipboard"></span>\r\n </button>\r\n {{ token.name }}\r\n </td>\r\n <td class="cut-line">{{ token.formula }}</td>\r\n <td class="cut-line">{{ token.type.name }}</td>\r\n <td>{{ token.createdAt | date: \'dd MMM yyyy\' | lowercase }}</td>\r\n <td>{{ token.modifiedAt | date: \'dd MMM yyyy\' | lowercase }}</td>\r\n <td>\r\n <div class="btn-group" role="group">\r\n <button\r\n type="button"\r\n class="btn btn-default"\r\n (click)="initForm(token)"\r\n pliAuthorityDirective\r\n [externalAllowed]="false"\r\n >\r\n Editar\r\n </button>\r\n <button\r\n type="button"\r\n class="btn btn-default dropdown-toggle"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n >\r\n <span class="caret"></span>\r\n </button>\r\n <ul class="dropdown-menu">\r\n <li>\r\n <a\r\n href="Javascript:;"\r\n (click)="delete(token)"\r\n pliAuthorityDirective\r\n [authorities]="[p(\'ROLE_TOKENS_ELIMINAR\')]"\r\n [externalAllowed]="false"\r\n >Eliminar</a\r\n >\r\n </li>\r\n </ul>\r\n </div>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n</p-table>\r\n<div class="text-align-right" style="padding: .75rem 1.25rem;">\r\n <button\r\n type="button"\r\n class="btn btn-primary"\r\n (click)="initForm(null)"\r\n >\r\n Agregar nuevo\r\n </button>\r\n</div>\r\n\r\n<p-dialog\r\n header="Snapshot Token"\r\n [(visible)]="showModal"\r\n [modal]="true"\r\n (onHide)="onCloseModal()"\r\n [contentStyle]="{\r\n\t\twidth: \'400px\',\r\n\t\t\'overflow-y\': \'auto\',\r\n\t\t\'min-height\': \'500px\',\r\n\t\t\'max-height\': \'500px\',\r\n\t\t\'text-align\': \'left\'\r\n\t}"\r\n height="500px"\r\n width="400px"\r\n dismissableMask="true"\r\n>\r\n <form [formGroup]="frmToken" (ngSubmit)="save()" *ngIf="tokenSelected">\r\n <div class="row">\r\n <div class="col-md-12">\r\n <div class="row">\r\n <div class="col-sm-12 col-md-12">\r\n <div class="form-group required">\r\n <label for="name" class="form-control-label">Nombre</label>\r\n <input\r\n type="input"\r\n class="form-control"\r\n name="name"\r\n id="name"\r\n placeholder="Nombre"\r\n formControlName="controlName"\r\n [(ngModel)]="tokenSelected.name"/>\r\n <div class="form-control-error">\r\n <small *ngIf="hasError(controlName, \'required\')">Nombre es requerido</small>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="col-sm-12 col-md-12">\r\n <div class="form-group required">\r\n <label for="type" class="form-control-label">Tipo</label>\r\n <select\r\n name="type"\r\n id="type"\r\n class="form-control"\r\n formControlName="controlType"\r\n [(ngModel)]="tokenSelected.type.id">\r\n <option value="">-- Seleccione opción</option>\r\n <option *ngFor="let type of types" [value]="type.id">{{ type.name }}</option>\r\n </select>\r\n <div class="form-control-error">\r\n <small *ngIf="hasError(controlType, \'required\')">Tipo de token requerido</small>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="col-sm-12 col-md-12">\r\n <div class="form-group required">\r\n <label class="form-control-label">Llave:</label>&nbsp;&nbsp;\r\n <span style="font-weight: bold;"> {{resolveKeyCalculatedToken()}}</span>\r\n </div>\r\n </div>\r\n <div class="col-sm-12 col-md-12">\r\n <div class="form-group required">\r\n <label for="formula" class="form-control-label"\r\n >Formula</label\r\n >\r\n <textarea\r\n cols="150"\r\n rows="4"\r\n class="form-control"\r\n name="formula"\r\n id="formula"\r\n formControlName="controlFormula"\r\n [(ngModel)]="tokenSelected.formula"\r\n ></textarea>\r\n <div class="form-control-error">\r\n <small *ngIf="hasError(controlFormula, \'required\')"\r\n >Fórmula es requerida</small\r\n >\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="card-footer text-align-right">\r\n <button type="button" (click)="onCloseModal()" class="btn btn-link">\r\n Cancelar\r\n </button>\r\n <button\r\n type="submit"\r\n class="btn btn-success"\r\n >\r\n Guardar\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n</p-dialog>\r\n\r\n\r\n'}),__metadata("design:paramtypes",[core.ChangeDetectorRef,CommonService,ngxToastr.ToastrService,PliCnfSnapshotTokenServices])],e)}(CommonListsComponent),BudgetSimulationService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.PREFIX="budget_simulation/",this.PREFIX_BUDGET="budget/",this.URLS={findByPromCodigo:this.PREFIX+"find/prom_codigo",findByApplicationId:this.PREFIX+"find/application",save:this.PREFIX+"save",saveAll:this.PREFIX+"save_all",findById:this.PREFIX+"find",findByApplications:this.PREFIX+"find/applications",getBudgetSimulatorCalculation:this.PREFIX_BUDGET+"getBudgetSimulatorCalculation"},this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+this.URLS.findByPromCodigo,{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getByApplicationId=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+this.URLS.findByApplicationId,{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+this.URLS.findById,{params:(new http.HttpParams).set("id",t)})},t.prototype.getByApplications=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+this.URLS.findByApplications,t,this.headerJson)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+this.URLS.save,t,this.headerJson)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+this.URLS.saveAll,t,this.headerJson)},t.prototype.getBudgetSimulatorCalculation=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+this.URLS.getBudgetSimulatorCalculation,t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfAcuityFieldsService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.get=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfAcuityFields/get")},t.prototype.getPliCnfAcuityFieldsByOwnerId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfAcuityFields/getPliCnfAcuityFieldsByOwnerId",{params:(new http.HttpParams).set("ownerId",String(t))})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfAcuityFields/save",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),GuaranteeService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})},this.subjectValidateSignDocument=new rxjs.Subject}return t.prototype.sendNotificationToCodebtors=function(t,e){var n={application:t,codebtor:e};return this.httpClient.post(this.environment.host.backend.frontoffice+"guarantee/sendNotificationToCodebtor",n,this.headerJson)},t.prototype.saveGuaranteeDocumentsGenerated=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"guarantee/saveGuaranteeDocumentsGenerated?applicationId="+t,e)},t.prototype.verifyTransaction=function(t){var e={headers:new http.HttpHeaders({apiKey:this.environment.ado.key,returnDocuments:"true"})};return this.httpClient.get(this.environment.ado.url+"api/"+this.environment.ado.projectName+"/Validation/"+t+"?returnImages=false",e)},t.prototype.getSubjectValidateSignDocument=function(){return this.subjectValidateSignDocument.asObservable()},t.prototype.setSubjectValidateSignDocument=function(t){void 0===t&&(t=!1),this.subjectValidateSignDocument.next(t)},t.prototype.save=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"guarantee/save",e,{params:(new http.HttpParams).set("applicationId",String(t))})},t.prototype.saveInitGuarantee=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"guarantee/saveInitGuarantee",null,{params:(new http.HttpParams).set("applicationId",String(t))})},t.prototype.saveGuaranteeCalculated=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"guarantee/saveGuaranteeCalculated",e,{params:(new http.HttpParams).set("applicationId",String(t))})},t.prototype.saveGuaranteeCalculatedByAppList=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"guarantee/saveGuaranteeCalculatedByAppList",{guarantee:e,lApplicationId:t})},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.frontoffice+"guarantee/delete",{params:(new http.HttpParams).set("applicationId",String(t))})},t.prototype.verifyStatusTransactionId=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"integrationADO/verifyStatus",{params:(new http.HttpParams).set("transactionId",t)})},t.prototype.sendFormWithSignDocuments=function(t,e,n,o,r,i){return new Promise((function(a,s){try{var c=document.createElement("form");c.method="post",c.action=i+"validar-persona";var p={callback:r,key:n,projectName:o,product:2,Parameters:'{"applicationId":"'+t+'","promCodigo":"'+e+'"}'};for(var l in p)if(p.hasOwnProperty(l)){var d=document.createElement("input");d.type="hidden",d.name=l,d.value=p[l],c.appendChild(d)}document.body.appendChild(c),c.submit(),a(t)}catch(t){s(t)}}))},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),CreditStudyService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})},this.creditStudySubjectValidation=new rxjs.Subject}return t.prototype.getCreditStudySubjectValidation=function(){return this.creditStudySubjectValidation.asObservable()},t.prototype.setCreditStudySubjectValidation=function(t,e){this.creditStudySubjectValidation.next({isComplete:t,pageSectionKey:e})},t.prototype.getCreditStudyByApplicationId=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getCreditStudy",{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.getListCodebtors=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getCodebtors",{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.getCodebtorByIdentification=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getCodebtorByIdentification",{params:(new http.HttpParams).set("applicationId",t).set("identification",e)})},t.prototype.getCodebtorByApplicationIdAndIdentification=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getCodebtorByApplicationIdAndIdentification",{params:(new http.HttpParams).set("applicationId",t).set("identification",e)})},t.prototype.saveCodebtorDocument=function(t,e,n){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveCodebtorDocument",n,{params:(new http.HttpParams).set("applicationId",t).set("identification",e),headers:this.headerJson.headers})},t.prototype.saveSelectedReviewerDocument=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveSelectedReviewerDocument",e,{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.saveCodebtorResponsabilitiesAnswer=function(t,e,n){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveCodebtorResponsabilitiesAnswer",{},{params:(new http.HttpParams).set("applicationId",t).set("identification",e).set("answer",n.toString()),headers:this.headerJson.headers})},t.prototype.removeCodebtorResponsabilitiesAnswer=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/removeCodebtorResponsabilitiesAnswer",{},{params:(new http.HttpParams).set("applicationId",t).set("identification",e),headers:this.headerJson.headers})},t.prototype.saveCodebtorHabeasDataAnswer=function(t,e,n){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveCodebtorHabeasDataAnswer",{},{params:(new http.HttpParams).set("applicationId",t).set("identification",e).set("answer",n.toString()),headers:this.headerJson.headers})},t.prototype.saveCreditReviewerDocument=function(t,e,n){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveCreditReviewerDocument",n,{params:(new http.HttpParams).set("applicationId",t).set("identification",e),headers:this.headerJson.headers})},t.prototype.getSelectedCreditReviewerDocuments=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getSelectedCreditReviewerDocuments",{params:(new http.HttpParams).set("applicationId",t.toString())})},t.prototype.getSelectedCreditReviewerDocumentByConfigurationDocumentId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getSelectedCreditReviewerDocumentByConfigurationDocumentId",{params:(new http.HttpParams).set("applicationId",t.toString()).set("configurationDocumentId",e.toString())})},t.prototype.getCodebtorDocuments=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getCodebtorDocuments",{params:(new http.HttpParams).set("applicationId",t.toString()).set("identification",e.toString())})},t.prototype.getCodebtorDocumentByConfigurationDocumentId=function(t,e,n){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getCodebtorDocumentByConfigurationDocumentId",{params:(new http.HttpParams).set("applicationId",t.toString()).set("identification",e.toString()).set("configurationDocumentId",n.toString())})},t.prototype.getCodebtorCreditReviewerDocuments=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getCodebtorCreditReviewerDocuments",{params:(new http.HttpParams).set("applicationId",t.toString()).set("identification",e.toString())})},t.prototype.getCodebtorCreditReviewerDocumentByConfigurationDocumentId=function(t,e,n){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getCodebtorCreditReviewerDocumentByConfigurationDocumentId",{params:(new http.HttpParams).set("applicationId",t.toString()).set("identification",e.toString()).set("configurationDocumentId",n.toString())})},t.prototype.saveCodebtorCreditReviewerObservation=function(t,e,n){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveCodebtorCreditReviewerObservation",n,{params:(new http.HttpParams).set("applicationId",t).set("identification",e),headers:this.headerJson.headers})},t.prototype.saveCodebtorFormData=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveCodebtorFormData",e,{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.updateCodebtorState=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/updateCodebtorState",e,{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.updateCompletedFlag=function(t,e,n){return this.httpClient.put(this.environment.host.backend.frontoffice+"creditStudy/updateCompletedFlag",t,{params:(new http.HttpParams).set("completed",e.toString()).set("idFlag",n.toString()),headers:this.headerJson.headers})},t.prototype.acceptConsultation=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/acceptConsultation",t,{params:(new http.HttpParams).set("response",e.toString()),headers:this.headerJson.headers})},t.prototype.saveCodebtor=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveCodebtor",e,{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.saveCodebtorCheckSum=function(t,e){return this.httpClient.put(this.environment.host.backend.frontoffice+"creditStudy/saveCodebtorCheckSum",e,{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.saveAllCodebtors=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveAllCodebtors",e,{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.codebtorsSendInitialEmail=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/codebtorsSendInitialEmail",null,{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.saveBeneficiaryCreditReviewerObservation=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/saveBeneficiaryCreditReviewerObservation",e,{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.getBeneficiaryCreditReviewerObservation=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getBeneficiaryCreditReviewerObservation",{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.acceptConsultationCodebtor=function(t,e,n){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/acceptConsultationCodebtor",t,{params:(new http.HttpParams).set("response",n.toString()).set("codebtorIdentification",e.toString()),headers:this.headerJson.headers})},t.prototype.enableCodebtor=function(t,e,n){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/enableCodebtor",n,{params:(new http.HttpParams).set("applicationId",t).set("codebtor",e),headers:this.headerJson.headers})},t.prototype.completeCreditStudyInfo=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/completeCreditStudyInfo",null,{params:(new http.HttpParams).set("applicationId",t),headers:this.headerJson.headers})},t.prototype.getApprovedCodebtors=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/getApprovedCodebtors",{params:(new http.HttpParams).set("applicationId",String(t)).set("promCodigo",String(e))})},t.prototype.getApprovedCodebtorsByAppId=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/getApprovedCodebtorsByAppId",t,{params:(new http.HttpParams).set("promCodigo",e.toString())})},t.prototype.checkCreditStudyFinalStatus=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"creditStudy/checkCreditStudyFinalStatus",{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.updateCreditStudyDocuments=function(t){return this.httpClient.put(this.environment.host.backend.frontoffice+"creditStudy/updateCreditStudyDocuments",t,{headers:this.headerJson.headers})},t.prototype.externalReviewerRejectCreditStudy=function(t,e,n){return this.httpClient.post(this.environment.host.backend.frontoffice+"creditStudy/externalReviewerRejectCreditStudy",n,{params:(new http.HttpParams).set("applicationId",t).set("promCodigo",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),GuaranteeDocumentService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.generateDocument=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"guaranteeDocument/generateDocument",t)},t.prototype.updateDocuments=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"guaranteeDocument/updateDocuments",t)},t.prototype.getDocuments=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"guaranteeDocument/getDocuments",{params:(new http.HttpParams).set("applicationId",String(t))})},t.prototype.getStatusNameByIdentification=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"guaranteeDocument/getStatusNameByApplicationIdAndIdentification",{params:(new http.HttpParams).set("applicationId",String(t)).set("identification",String(e))})},t.prototype.deleteDocuments=function(t){return this.httpClient.delete(this.environment.host.backend.frontoffice+"guaranteeDocument/deleteDocuments",{params:(new http.HttpParams).set("applicationId",String(t))})},t.prototype.saveSignatureProcessStarted=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"guaranteeDocument/saveSignatureProcessStarted",e,{params:(new http.HttpParams).set("applicationId",String(t))})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),GuaranteeTokenComponent=function(t){function e(e,n,o,r){var i=t.call(this,n,e)||this;return i.cdRef=e,i.commonService=n,i.toastrService=o,i.pliCnfGuaranteeTokenService=r,i.lGuaranteeTokens=[],i}return __extends(e,t),e.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this),this.getTokenGuarantee()},e.prototype.labelGuarantee=function(t){return"${"+TokenService.getKeyGuarantee(t)+"}"},e.prototype.getTokenGuarantee=function(){var t=this;this.pliCnfGuaranteeTokenService.getAllByPromCodigo(this.promCodigo).subscribe((function(e){t.lGuaranteeTokens=e}),(function(e){t.toastrService.error("Error al obtener los token de garantias","Error")}))},e.prototype.initForm=function(t){this.tokenSelected=null==t?new ngPliUtil.PliCnfGuaranteeToken:Object.assign(new ngPliUtil.PliCnfGuaranteeToken,JSON.parse(JSON.stringify(t))),this.tokenSelected.promCodigo||(this.tokenSelected.promCodigo=this.promCodigo),this.controlName=new forms.FormControl(this.tokenSelected.name,forms.Validators.required),this.controlFormula=new forms.FormControl(this.tokenSelected.formula,forms.Validators.required),this.frmToken=new forms.FormGroup({controlName:this.controlName,controlFormula:this.controlFormula}),this.showModal=!0},e.prototype.save=function(){var t=this;this.isFormValid(this.frmToken)&&this.isValid()&&this.pliCnfGuaranteeTokenService.save(this.tokenSelected).subscribe((function(e){t.getTokenGuarantee(),t.onCloseModal(),t.toastrService.success("Se ha guardado exitosamente ","Guardado exitoso!"),t.tokenSelected=null}),(function(e){t.toastrService.error("Error al intentar guardar el token","Error")}))},e.prototype.isValid=function(){var t=this,e=this.lGuaranteeTokens.find((function(e){return ngPliUtil.UtilString.replaceAccentSpacesOthers(e.name)===ngPliUtil.UtilString.replaceAccentSpacesOthers(t.tokenSelected.name)&&(!t.tokenSelected.id||t.tokenSelected.id!==e.id)}));return!e||(this.toastrService.error("El token "+e.name+" ya existe","Alerta!"),!1)},e.prototype.onCloseModal=function(){this.showModal=!1},e.prototype.delete=function(t){var e=this;confirm("¿Está seguro que desea eliminar el token "+t.name+"?")&&this.pliCnfGuaranteeTokenService.delete(t.id).subscribe((function(t){e.getTokenGuarantee(),e.toastrService.success("El token fué eliminada exitosamente","Exito!")}),(function(t){e.toastrService.error("Error al intentar eliminar el token","Error")}))},e.prototype.resolveKeyCalculatedToken=function(){return ngPliUtil.UtilString.replaceAccentSpacesOthers(this.tokenSelected.name)},e.ctorParameters=function(){return[{type:core.ChangeDetectorRef},{type:CommonService},{type:ngxToastr.ToastrService},{type:PliCnfGuaranteeTokenService}]},__decorate([core.Input(),__metadata("design:type",Number)],e.prototype,"promCodigo",void 0),e=__decorate([core.Component({selector:"pli-guarantee-token",template:'<h4 class="no-margin-top">\r\n\tTokens Garantias\r\n</h4>\r\n<p-table [value]="lGuaranteeTokens" [responsive]="true">\r\n\t<ng-template pTemplate="header">\r\n\t\t<tr class="text-align-center">\r\n\t\t\t<th class="text-align-center" width="40%">Nombre</th>\r\n\t\t\t<th class="text-align-center">Formula</th>\r\n\t\t\t<th class="text-align-center">Creado</th>\r\n\t\t\t<th class="text-align-center">Modificado</th>\r\n\t\t\t<th class="text-align-center">Acciones</th>\r\n\t\t</tr>\r\n\t</ng-template>\r\n\t<ng-template pTemplate="body" let-token>\r\n\t\t<tr>\r\n\t\t\t<td>\r\n\t\t\t\t<button\r\n\t\t\t\t\ttype="button"\r\n\t\t\t\t\t(click)="copyMessage(labelGuarantee(token))"\r\n\t\t\t\t\tstyle="margin-right: 8px;"\r\n\t\t\t\t\ttitle="{{ labelGuarantee(token) }}"\r\n\t\t\t\t>\r\n\t\t\t\t\t<span class="fa fa-clipboard"></span>\r\n\t\t\t\t</button>\r\n\t\t\t\t{{ token.name }}\r\n\t\t\t</td>\r\n\t\t\t<td class="cut-line">{{ token.formula }}</td>\r\n\t\t\t<td>{{ token.createdAt | date: \'dd MMM yyyy\' | lowercase }}</td>\r\n\t\t\t<td>{{ token.modifiedAt | date: \'dd MMM yyyy\' | lowercase }}</td>\r\n\t\t\t<td>\r\n\t\t\t\t<div class="btn-group" role="group">\r\n\t\t\t\t\t<button\r\n\t\t\t\t\t\ttype="button"\r\n\t\t\t\t\t\tclass="btn btn-default"\r\n\t\t\t\t\t\t(click)="initForm(token)"\r\n\t\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t\t[externalAllowed]="false"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tEditar\r\n\t\t\t\t\t</button>\r\n\t\t\t\t\t<button\r\n\t\t\t\t\t\ttype="button"\r\n\t\t\t\t\t\tclass="btn btn-default dropdown-toggle"\r\n\t\t\t\t\t\tdata-toggle="dropdown"\r\n\t\t\t\t\t\taria-haspopup="true"\r\n\t\t\t\t\t\taria-expanded="false"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<span class="caret"></span>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t\t<ul class="dropdown-menu">\r\n\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t\thref="Javascript:;"\r\n\t\t\t\t\t\t\t\t(click)="delete(token)"\r\n\t\t\t\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t\t\t\t[authorities]="[p(\'ROLE_TOKENS_ELIMINAR\')]"\r\n\t\t\t\t\t\t\t\t[externalAllowed]="false"\r\n\t\t\t\t\t\t\t\t>Eliminar</a\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t</li>\r\n\t\t\t\t\t</ul>\r\n\t\t\t\t</div>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</ng-template>\r\n</p-table>\r\n<div class="text-align-right" style="padding: 0.75rem 1.25rem;">\r\n\t<button type="button" class="btn btn-primary" (click)="initForm(null)">\r\n\t\tAgregar nuevo\r\n\t</button>\r\n</div>\r\n<p-dialog\r\n\theader="Token Garantias"\r\n\t[(visible)]="showModal"\r\n\t[modal]="true"\r\n\t(onHide)="onCloseModal()"\r\n\t[contentStyle]="{\r\n\t\twidth: \'400px\',\r\n\t\t\'overflow-y\': \'auto\',\r\n\t\t\'min-height\': \'500px\',\r\n\t\t\'max-height\': \'500px\',\r\n\t\t\'text-align\': \'left\'\r\n\t}"\r\n\theight="500px"\r\n\twidth="500px"\r\n\tdismissableMask="true"\r\n>\r\n\t<form [formGroup]="frmToken" (ngSubmit)="save()" *ngIf="tokenSelected">\r\n\t\t<div class="row">\r\n\t\t\t<div class="col-sm-12 col-md-12 col-lg-12">\r\n\t\t\t\t<div class="form-group required">\r\n\t\t\t\t\t<label for="name" class="form-control-label">Nombre</label>\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="input"\r\n\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\tname="name"\r\n\t\t\t\t\t\tid="name"\r\n\t\t\t\t\t\tplaceholder="Nombre"\r\n\t\t\t\t\t\tformControlName="controlName"\r\n\t\t\t\t\t\t[(ngModel)]="tokenSelected.name"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<div class="form-control-error">\r\n\t\t\t\t\t\t<small *ngIf="hasError(controlName, \'required\')"\r\n\t\t\t\t\t\t\t>El nombre es requerido</small\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="form-group">\r\n\t\t\t\t\t<label class="form-control-label">Llave: </label>\r\n\t\t\t\t\t<p style="font-weight: bold; margin-bottom: 25px;">\r\n\t\t\t\t\t\t{{ resolveKeyCalculatedToken() }}\r\n\t\t\t\t\t</p>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class="form-group required">\r\n\t\t\t\t\t<label for="formula" class="form-control-label">Formula</label>\r\n\t\t\t\t\t<textarea\r\n\t\t\t\t\t\trows="3"\r\n\t\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\t\tname="formula"\r\n\t\t\t\t\t\tid="formula"\r\n\t\t\t\t\t\tformControlName="controlFormula"\r\n\t\t\t\t\t\t[(ngModel)]="tokenSelected.formula"\r\n\t\t\t\t\t></textarea>\r\n\t\t\t\t\t<div class="form-control-error">\r\n\t\t\t\t\t\t<small *ngIf="hasError(controlFormula, \'required\')"\r\n\t\t\t\t\t\t\t>La fórmula es requerida</small\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div class="card-footer text-align-right">\r\n\t\t\t\t\t<button type="button" (click)="onCloseModal()" class="btn btn-link">\r\n\t\t\t\t\t\tCancelar\r\n\t\t\t\t\t</button>\r\n\t\t\t\t\t<button type="submit" class="btn btn-success">\r\n\t\t\t\t\t\tGuardar\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</form>\r\n</p-dialog>\r\n'}),__metadata("design:paramtypes",[core.ChangeDetectorRef,CommonService,ngxToastr.ToastrService,PliCnfGuaranteeTokenService])],e)}(CommonListsComponent),CommonInfoService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getBackofficePropertyNames=function(){return this.httpClient.get(this.environment.host.backend.backoffice+"common-info/getPropertyNames")},t.prototype.getConfigurationPropertyNames=function(){return this.httpClient.get(this.environment.host.backend.configuration+"common-info/getPropertyNames")},t.prototype.getFrontofficePropertyNames=function(){return this.httpClient.get(this.environment.host.backend.frontoffice+"common-info/getPropertyNames")},t.prototype.getSegmentationPropertyNames=function(){return this.httpClient.get(this.environment.host.backend.segmentation+"common-info/getPropertyNames")},t.prototype.getCommunicationPropertyNames=function(){return this.httpClient.get(this.environment.host.backend.communication+"common-info/getPropertyNames")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfMenuFormService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfMenuForm/getById",{params:(new http.HttpParams).set("statusId",t.toString())})},t.prototype.getAllByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfMenuForm/getAllByPromCode",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfMenuForm/save",t,ngPliUtil.HEADER_JSON)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfGuaranteeDocumentsTemplateService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getAllByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfGuaranteeDocumentsTemplate/getAllByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfGuaranteeDocumentsTemplate/save",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfGuaranteeDocumentsTemplate/delete",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfGuaranteeDocumentsTemplate/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.configCloningGDocuments=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfGuaranteeDocumentsTemplate/configCloningGDocuments",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),IntegrationADOService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.saveTransactionAndState=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"integrationADO/saveTransactionAndState",e,{params:(new http.HttpParams).set("applicationId",String(t))})},t.prototype.saveTransactionAndStateByAppList=function(t,e){return this.httpClient.post(this.environment.host.backend.frontoffice+"integrationADO/saveTransactionAndStateByAppList",{responsableGuarantee:e,lApplicationId:t})},t.prototype.saveSignedDocuments=function(t,e,n,o){var r={applicationId:t,carta:e,contrato:n,pagare:o};return this.httpClient.post(this.environment.host.backend.frontoffice+"integrationADO/saveSignedDocuments",r)},t.prototype.saveTransactionAndStateManual=function(t,e,n,o,r){var i={applicationId:t,carta:e,contrato:n,pagare:o,configurationDocumentId:r};return this.httpClient.post(this.environment.host.backend.frontoffice+"integrationADO/saveTransactionAndStateManual",i)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),GuaranteeEnrollmentService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"guaranteeEnrollment/save",t)},t.prototype.getGuaranteeEnrollmentByIdentificationAndPatCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"guaranteeEnrollment/getGuaranteeEnrollmentByIdentificationAndPatCodigo",{params:(new http.HttpParams).set("identification",String(t)).set("patCodigo",String(e))})},t.prototype.updateGuaranteeEnrollment=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"guaranteeEnrollment/updateGuaranteeEnrollment",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfTextOptionService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfTextOption/save",t)},t.prototype.getOptionsByPliCnfTextId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfTextOption/getOptionsByPliCnfTextId",{params:(new http.HttpParams).set("pliCnfTextId",t.toString())})},t.prototype.deleteOptionList=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfTextOption/deleteOptionList",t)},t.prototype.deleteById=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfTextOption/deleteById",{params:(new http.HttpParams).set("id",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),ConfigurationMinisiteService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.saveMinisiteData=function(t){return this.httpClient.post(this.environment.host.backend.queue+"configuration-minisite/saveMinisiteData",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliTagAssignmentService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"pliTagAssignment/save",t)},t.prototype.getByUsernameAndActive=function(t,e){return this.httpClient.get(this.environment.host.backend.segmentation+"pliTagAssignment/getByUsernameAndActive",{params:(new http.HttpParams).set("username",t.toString()).set("active",e.toString())})},t.prototype.changeToDisabled=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"pliTagAssignment/changeToDisabled",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),UniversityService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"university/getById",{params:(new http.HttpParams).set("id",t)})},t.prototype.getUniversitiesByFullname=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"university/getUniversitiesByFullname",{params:(new http.HttpParams).set("fullname",t)})},t.prototype.getUniversitiesByNativeName=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"university/getUniversitiesByNativeName",{params:(new http.HttpParams).set("nativeName",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"university/save",t,ngPliUtil.HEADER_JSON)},t.prototype.getByDataTablesParameters=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"university/getByDataTablesParameters",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),ProgressBarService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.saveProgress=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"progressBar/saveProgress",t,ngPliUtil.HEADER_JSON)},t.prototype.getProgress=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"progressBar/getProgressByProcessIdAndProcessType",{params:(new http.HttpParams).set("processId",t.toString()).set("processType",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),ProgressBarComponent=function(){function t(t,e){this.toastrService=t,this.progressBarService=e,this.finishProcess=new core.EventEmitter,this.setTimeOutValue=0}return t.prototype.ngOnInit=function(){var t=this;window.addEventListener("beforeunload",this.closeTabCallback),this.setTimeOutValue=setTimeout((function(){t.initNoIn()}),1e3)},t.prototype.initNoIn=function(){return __awaiter(this,void 0,void 0,(function(){var t,e=this;return __generator(this,(function(n){switch(n.label){case 0:return void 0===this.processType?[3,2]:[4,this.handleProgress()];case 1:t=n.sent(),n.label=2;case 2:return 100===this.percentage?(this.toastrService.success("El proceso se completó con éxito!","Proceso completado"),this.clearActualTimeout(),this.finishProcess.emit(t)):this.setTimeOutValue=setTimeout((function(){e.initNoIn()}),500),[2]}}))}))},t.prototype.handleProgress=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,this.progressBarService.getProgress(this.processId,this.processType).toPromise()];case 1:return null!=(t=e.sent())?[3,3]:((void 0).processId=null,(void 0).processType=this.processType,(void 0).percentage=0,(void 0).state="",(void 0).current=this.current,(void 0).end=this.end,[4,this.progressBarService.saveProgress(void 0).toPromise()]);case 2:t=e.sent(),e.label=3;case 3:return this.processId=t.processId,this.percentage=t.percentage,[2,t]}}))}))},t.prototype.clearActualTimeout=function(){window.removeEventListener("beforeunload",this.closeTabCallback),clearTimeout(this.setTimeOutValue),this.setTimeOutValue=null},t.prototype.closeTabCallback=function(t){return t.returnValue="o/","o/"},t.prototype.ngOnDestroy=function(){this.clearActualTimeout()},t.ctorParameters=function(){return[{type:ngxToastr.ToastrService},{type:ProgressBarService}]},__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"processId",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"processType",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"percentage",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"current",void 0),__decorate([core.Input(),__metadata("design:type",Number)],t.prototype,"end",void 0),__decorate([core.Output(),__metadata("design:type",Object)],t.prototype,"finishProcess",void 0),t=__decorate([core.Component({selector:"pli-progress-bar",template:'<div class="progress">\r\n <div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" [ngStyle]="{ width: percentage + \'%\' }">\r\n {{ percentage }}%\r\n </div>\r\n</div>',styles:[".progress .progress-bar{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}"]}),__metadata("design:paramtypes",[ngxToastr.ToastrService,ProgressBarService])],t)}(),PliCnfSurveyPdfService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSurveyPdf/save",t)},t.prototype.getBySurveyId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSurveyPdf/getBySurveyId",{params:(new http.HttpParams).set("id",String(t))})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSurveyPdf/getById",{params:(new http.HttpParams).set("id",String(t))})},t.prototype.clone=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSurveyPdf/clone",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SegmentationTokensService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.controllerName="segmentation-token"}return t.prototype.getTokenSintax=function(t){return"${"+t+"}"},t.prototype.getLogicalTokenSintax=function(t){return"$[["+t+"]]"},t.prototype.getHierarchicalTokenSintax=function(t){return"$(("+t+"))"},t.prototype.getSurveyStaticTokens=function(){return this.httpClient.get(this.environment.host.backend.configuration+(this.controllerName+"/getSurveyStaticTokens"))},t.prototype.transform=function(t){return this.httpClient.post(this.environment.host.backend.configuration+(this.controllerName+"/transform"),t)},t.SURVEY_TOKENS_CATEGORY="Encuesta estáticos",t.FORM_TOKENS_CATEGORY="Encuesta formulario - ",t.SEGMENTATION_TOKENS_PREFIX="seg_",t.STATIC_TOKENS_PREFIX="estatico_",t.FORM_TOKENS_PREFIX="frm_",t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SegmentationTokensComponent=function(){function t(t){this.sTokensService=t,this.showTokenCalculatorButton=!1,this.showCalculatedTokenButton=!0,this.showSurveyTokens=!1,this.segColSurveyFormioTokens=[],this.segColSurveyTokens=[],this.fullLSegColumn=[]}return t.prototype.ngOnInit=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return this.ready=!1,this.showSegmentationTokens=!1,this.showCalculatedTokens=!1,this.showTokensCalculator=!1,this.varDisplayDiv="overflow: auto;min-height: 600px; display: none;",[2]}))}))},t.prototype.initSurveyTokens=function(){var t=this;return new Promise((function(e,n){return __awaiter(t,void 0,void 0,(function(){var t,o;return __generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),this.showSurveyTokens&&this.segColSurveyTokens.length<1?(t=this,[4,this.getSegColSurveyTokens()]):[3,2];case 1:t.segColSurveyTokens=r.sent(),r.label=2;case 2:return void 0!==this.surveyFormio&&(this.segColSurveyFormioTokens=this.getSegColSurveyFormioTokens()),e(),[3,4];case 3:return o=r.sent(),n(o),[3,4];case 4:return[2]}}))}))}))},t.prototype.ngOnChanges=function(t){if(t.lSegColumn&&t.lSegColumn.currentValue){var e=this.handleSegColumns();this.initComboColumnWork(e)}if(t.surveyFormio&&t.surveyFormio.currentValue){this.surveyFormio=t.surveyFormio.currentValue;e=this.handleSegColumns();this.initComboColumnWork(e)}},t.prototype.handleSegColumns=function(){var t=JSON.parse(JSON.stringify(this.lSegColumn)).reduce((function(t,e){var n;return __assign(__assign({},t),((n={})[e.category+"-"+e.key]=e,n))}),{}),e=[];for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];o.key=SegmentationTokensService.SEGMENTATION_TOKENS_PREFIX+o.key,e.push(o)}return e},t.prototype.initComboColumnWork=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return Array.isArray(this.comboColumnWorkInput)&&this.comboColumnWorkInput.length>0?(this.comboColumnWork=JSON.parse(JSON.stringify(this.comboColumnWorkInput)),this.ready=!0,[3,3]):[3,1];case 1:return Array.isArray(t)&&t.length>0?[4,this.initSurveyTokens()]:[3,3];case 2:e.sent(),t=__spread(t,this.segColSurveyFormioTokens,this.segColSurveyTokens),this.fullLSegColumn=t.slice(),this.comboColumnWork=ngPliUtil.DatatableUtil.buildCombo(t),this.ready=!0,e.label=3;case 3:return[2]}}))}))},t.prototype.getSegColSurveyFormioTokens=function(){var t,e,n,o,r=[];if(this.surveyFormio.components){var i=FormioUtil.getFormattedComponentsByPanel(FormioUtil.getComponents(this.surveyFormio.components));try{for(var a=__values(i),s=a.next();!s.done;s=a.next()){var c=s.value;try{for(var p=(n=void 0,__values(c.items)),l=p.next();!l.done;l=p.next()){var d=l.value;r.push({label:d.label,key:SegmentationTokensService.FORM_TOKENS_PREFIX+d.value,category:SegmentationTokensService.FORM_TOKENS_CATEGORY+" "+c.label})}}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}}return r},t.prototype.getSegColSurveyTokens=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return t=SegmentationTokensService.SURVEY_TOKENS_CATEGORY,[4,this.sTokensService.getSurveyStaticTokens().toPromise()];case 1:return[2,e.sent().map((function(e){return e.key=SegmentationTokensService.STATIC_TOKENS_PREFIX+e.key,e.category=t,e}))]}}))}))},t.prototype.displaySegmentationTokensDiv=function(){this.showSegmentationTokens=!this.showSegmentationTokens,this.showCalculatedTokens=!1,this.showTokensCalculator=!1},t.prototype.displayCalculatedTokensDiv=function(){this.showCalculatedTokens=!this.showCalculatedTokens,this.showSegmentationTokens=!1,this.showTokensCalculator=!1},t.prototype.displayTokenCalculatorDiv=function(){this.showTokensCalculator=!this.showCalculatedTokens,this.showSegmentationTokens=!1,this.showCalculatedTokens=!1},t.prototype.changeCategory=function(t,e){e&&e.items.forEach((function(e){return e.selected=t}))},t.prototype.isVisibleCategory=function(t){var e,n;try{for(var o=__values(t.items),r=o.next();!r.done;r=o.next()){var i=r.value;if(this.isVisibleColumn(i.label))return!0}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return!1},t.prototype.isVisibleColumn=function(t){return!this.columnSearch||!(!t||!t.toLowerCase().includes(this.columnSearch.toLowerCase()))},t.prototype.copyToken=function(t){var e=this.getColumn(t.toString());e&&this.copyMessage(this.sTokensService.getTokenSintax(e.key))},t.prototype.copyTokenCalc=function(t){this.copyMessage(t)},t.prototype.getTitleToken=function(t){var e=this.getColumn(t.toString());return e?"${"+e.key+"}":""},t.prototype.getColumn=function(t){return this.fullLSegColumn.find((function(e){return e.idColumn==t||e.key==t}))},t.prototype.copyMessage=function(t){ngPliUtil.UtilString.copyMessage(t)},t.ctorParameters=function(){return[{type:SegmentationTokensService}]},__decorate([core.Input(),__metadata("design:type",Object)],t.prototype,"showTokenCalculatorButton",void 0),__decorate([core.Input(),__metadata("design:type",Object)],t.prototype,"showCalculatedTokenButton",void 0),__decorate([core.Input(),__metadata("design:type",Object)],t.prototype,"showSurveyTokens",void 0),__decorate([core.Input(),__metadata("design:type",Array)],t.prototype,"comboColumnWorkInput",void 0),__decorate([core.Input(),__metadata("design:type",Object)],t.prototype,"surveyFormio",void 0),__decorate([core.Input(),__metadata("design:type",Array)],t.prototype,"lSegColumn",void 0),t=__decorate([core.Component({selector:"app-segmentation-tokens",template:'<div *ngIf="ready">\r\n\t<div class="panel panel-default" class="overflow: auto;min-height: 600px; display: block;">\r\n\t\t<div class="row">\r\n\t\t\t<div class="col-md-12 row-margin">\r\n\t\t\t\t<button\r\n\t\t\t\t\ttype="button"\r\n\t\t\t\t\t(click)="displayTokenCalculatorDiv()"\r\n\t\t\t\t\tclass="btn btn-primary pull-right"\r\n\t\t\t\t>\r\n\t\t\t\t\tCalculadora de tokens\r\n\t\t\t\t</button>\r\n\t\t\t</div>\r\n\t\t\t<div class="col-md-12">\r\n\t\t\t\t<input\r\n\t\t\t\t\ttype="input"\r\n\t\t\t\t\tclass="form-control"\r\n\t\t\t\t\tstyle="margin-bottom: 8px"\r\n\t\t\t\t\tplaceholder="Busqueda de columnas"\r\n\t\t\t\t\t[(ngModel)]="columnSearch"\r\n\t\t\t\t/>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\r\n\t\t<p-accordion [multiple]="true">\r\n\t\t\t<ng-container *ngFor="let category of comboColumnWork">\r\n\t\t\t\t<p-accordionTab *ngIf="isVisibleCategory(category)" header="{{ category.label }}">\r\n\t\t\t\t\t<div *ngFor="let column of category.items" class="ui-g">\r\n\t\t\t\t\t\t<div\r\n\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*ngIf="isVisibleColumn(column.label)"\r\n\t\t\t\t\t\t>\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)="copyToken(column.value)"\r\n\t\t\t\t\t\t\t\t[title]="getTitleToken(column.value)"\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="{{ column.label }}">{{ column.label }}</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</ng-container>\r\n\t\t</p-accordion>\r\n\t</div>\r\n\r\n\t<p-dialog\r\n\t\tappendTo="body"\r\n\t\theader="Calculadora de tokens"\r\n\t\t[(visible)]="showTokensCalculator"\r\n\t\t[modal]="true"\r\n\t\t[contentStyle]="{\r\n\t\t\t\'min-width\': \'600px\',\r\n\t\t\t\'max-width\': \'600px\',\r\n\t\t\t\'min-height\': \'420px\',\r\n\t\t\t\'max-height\': \'420px\',\r\n\t\t\tbackground: \'white\',\r\n\t\t\t\'overflow-y\': \'auto\',\r\n\t\t\t\'text-align\': \'left\'\r\n\t\t}"\r\n\t\theight="420"\r\n\t\twidth="600"\r\n\t\tdismissableMask="true"\r\n\t>\r\n\t\t<div class="container-fluid">\r\n\t\t\t<app-tokens-calculator\r\n\t\t\t\t*ngIf="showTokensCalculator"\r\n\t\t\t\t[comboColumnWorkInput]="comboColumnWork"\r\n\t\t\t></app-tokens-calculator>\r\n\t\t</div>\r\n\t</p-dialog>\r\n</div>\r\n',styles:[".row-margin{margin-top:8px;margin-bottom:8px}"]}),__metadata("design:paramtypes",[SegmentationTokensService])],t)}(),TokensCalculatorComponent=function(){function t(t,e){this.sTokensService=t,this.toastr=e,this.EQ_OPERATOR="==",this.NEQ_OPERATOR="!=",this.tokenType=this.conditionalTokenType,this.operator=this.EQ_OPERATOR,this.hierarchicalName="",this.positiveValue="",this.negativeValue="",this.source=[],this.target=[]}var e;return e=t,Object.defineProperty(t.prototype,"conditionalTokenType",{get:function(){return e.CONDITIONAL_TOKEN_TYPE.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hierarchicalTokenType",{get:function(){return e.HIERARCHICAL_TOKEN_TYPE.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isConditionalToken",{get:function(){return this.conditionalTokenType==this.tokenType},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;if(Array.isArray(this.comboColumnWorkInput)){var e=JSON.parse(JSON.stringify(this.comboColumnWorkInput));e.forEach((function(e){return e.items.forEach((function(e){return e.value=t.sTokensService.getTokenSintax(e.value)}))})),this.comboColumnWork=e,this.buildSource()}},t.prototype.buildSource=function(){var t,e,n,o,r=[];try{for(var i=__values(this.comboColumnWorkInput),a=i.next();!a.done;a=i.next()){var s=a.value;try{for(var c=(n=void 0,__values(s.items)),p=c.next();!p.done;p=c.next()){var l=p.value;r.push({category:s.label,label:l.label,value:this.sTokensService.getTokenSintax(l.value)})}}catch(t){n={error:t}}finally{try{p&&!p.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.source=r},t.prototype.generateConditionalToken=function(){var t="'"+this.keyToCalculate+"' "+this.operator+" '"+this.valueToCompare+"'";t+=" ? '"+this.positiveValue+"' : '"+this.negativeValue+"'",t=this.sTokensService.getLogicalTokenSintax(t),ngPliUtil.UtilString.copyMessage(t)},t.prototype.generateHierarchicalTokenType=function(){if(!(this.target.length<2)){var t=this.target.map((function(t){return"'"+t.value+"'"})).join(" || ");return t=this.sTokensService.getHierarchicalTokenSintax(t),ngPliUtil.UtilString.copyMessage(t),t}this.toastr.error("Es necesario al menos dos campos a evaluar")},t.prototype.useCondition=function(){if(this.hierarchicalName.length<1)this.toastr.error("Para usar como condición es necesario un nombre");else{var t={label:this.hierarchicalName,value:this.generateHierarchicalTokenType()},n=this.comboColumnWork.find((function(t){return t.label==e.HIERARCHICAL_CATEGORY}));this.hierarchicalToConditional(n,t),this.resetValues(!0),this.tokenType=this.conditionalTokenType.toString(),this.keyToCalculate=t.value}},t.prototype.hierarchicalToConditional=function(t,n){if(t){var o=t.items.find((function(t){return t.label==n.label}));o?o.value=n.value:t.items.push(n)}else this.comboColumnWork.push({label:e.HIERARCHICAL_CATEGORY,items:[n]})},t.prototype.resetValues=function(t){if(void 0===t&&(t=!1),this.hierarchicalName="",this.keyToCalculate="",this.valueToCompare="",this.positiveValue="",this.negativeValue="",t){var e=document.querySelector("button[icon='pi pi-angle-double-left']");e&&e.click()}},t.CONDITIONAL_TOKEN_TYPE=1,t.HIERARCHICAL_TOKEN_TYPE=2,t.HIERARCHICAL_CATEGORY="Jerárquicos",t.ctorParameters=function(){return[{type:SegmentationTokensService},{type:ngxToastr.ToastrService}]},__decorate([core.Input(),__metadata("design:type",Array)],t.prototype,"comboColumnWorkInput",void 0),t=e=__decorate([core.Component({selector:"app-tokens-calculator",template:'<div class="flex" style="margin-bottom: 11px; width: fit-content">\r\n\t<label class="radio-inline">\r\n\t\t<input\r\n\t\t\ttype="radio"\r\n\t\t\t[(ngModel)]="tokenType"\r\n\t\t\t[value]="conditionalTokenType"\r\n\t\t\t(click)="resetValues(true)"\r\n\t\t/>\r\n\t\tCondicional\r\n\t</label>\r\n\t<label class="radio-inline">\r\n\t\t<input\r\n\t\t\ttype="radio"\r\n\t\t\t[(ngModel)]="tokenType"\r\n\t\t\t[value]="hierarchicalTokenType"\r\n\t\t\t(click)="resetValues()"\r\n\t\t/>\r\n\t\tJerárquico\r\n\t</label>\r\n</div>\r\n\r\n<ng-container *ngIf="isConditionalToken">\r\n\t<div class="flex align-items-center" style="margin-top: 15px">\r\n\t\t<div class="mr-sm">\r\n\t\t\t<label for="field">Campo a evaluar</label>\r\n\t\t\t<p-dropdown\r\n\t\t\t\tid="field"\r\n\t\t\t\tplaceholder="-- Seleccione opción"\r\n\t\t\t\t[options]="comboColumnWork"\r\n\t\t\t\t[group]="true"\r\n\t\t\t\t[(ngModel)]="keyToCalculate"\r\n\t\t\t\t[filter]="true"\r\n\t\t\t\t[style]="{ width: \'250px\' }"\r\n\t\t\t>\r\n\t\t\t</p-dropdown>\r\n\t\t</div>\r\n\r\n\t\t<div class="mr-sm">\r\n\t\t\t<label for="operator">Operador</label>\r\n\t\t\t<select\r\n\t\t\t\tid="operator"\r\n\t\t\t\tclass="form-control input-sm select-operation"\r\n\t\t\t\tstyle="width: 80px"\r\n\t\t\t\t[(ngModel)]="operator"\r\n\t\t\t>\r\n\t\t\t\t<option [value]="EQ_OPERATOR">Igual a</option>\r\n\t\t\t\t<option [value]="NEQ_OPERATOR">Diferente a</option>\r\n\t\t\t</select>\r\n\t\t</div>\r\n\r\n\t\t<div class="mr-sm">\r\n\t\t\t<label for="compare">Valor a comparar</label>\r\n\t\t\t<input\r\n\t\t\t\tid="compare"\r\n\t\t\t\ttype="text"\r\n\t\t\t\tclass="form-control input-value input-sm"\r\n\t\t\t\t[(ngModel)]="valueToCompare"\r\n\t\t\t\tplaceholder="valor"\r\n\t\t\t\tstyle="width: 156px"\r\n\t\t\t/>\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<div class="flex align-items-center" style="margin-top: 15px">\r\n\t\t<div class="mr-sm">\r\n\t\t\t<label for="positive">Valor positivo</label>\r\n\t\t\t<input\r\n\t\t\t\tid="positive"\r\n\t\t\t\ttype="text"\r\n\t\t\t\tclass="form-control input-value input-sm"\r\n\t\t\t\t[(ngModel)]="positiveValue"\r\n\t\t\t\tplaceholder="valor"\r\n\t\t\t\tstyle="width: 250px"\r\n\t\t\t/>\r\n\t\t</div>\r\n\t\t<div class="mr-sm">\r\n\t\t\t<label for="negative">Valor negativo</label>\r\n\t\t\t<input\r\n\t\t\t\tid="negative"\r\n\t\t\t\ttype="text"\r\n\t\t\t\tclass="form-control input-value input-sm"\r\n\t\t\t\t[(ngModel)]="negativeValue"\r\n\t\t\t\tplaceholder="valor"\r\n\t\t\t\tstyle="width: 250px"\r\n\t\t\t/>\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<div class="flex align-items-center" style="margin-top: 15px" *ngIf="valueToCompare">\r\n\t\t<div class="mr-sm">\r\n\t\t\t<label for="generate">Resultado</label>\r\n\t\t\t<button\r\n\t\t\t\tid="generate"\r\n\t\t\t\ttype="button"\r\n\t\t\t\t(click)="generateConditionalToken()"\r\n\t\t\t\ttitle="Copiar"\r\n\t\t\t\tstyle="margin-left: 2px; width: 30px"\r\n\t\t\t>\r\n\t\t\t\t<span class="fa fa-clipboard"></span>\r\n\t\t\t</button>\r\n\t\t</div>\r\n\t</div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf="!isConditionalToken">\r\n\t<div class="flex align-items-center" style="margin-top: 13px; margin-bottom: 20px">\r\n\t\t<div style="margin-right: 10px">\r\n\t\t\t<label for="hierarchicalName">Nombre</label>\r\n\t\t\t<input\r\n\t\t\t\tid="hierarchicalName"\r\n\t\t\t\ttype="text"\r\n\t\t\t\tclass="form-control input-value input-sm"\r\n\t\t\t\t[(ngModel)]="hierarchicalName"\r\n\t\t\t\tplaceholder="Nombre"\r\n\t\t\t\tstyle="width: 226px"\r\n\t\t\t/>\r\n\t\t</div>\r\n\t\t<div style="margin-right: 10px">\r\n\t\t\t<label for="generate">Acciones</label>\r\n\t\t\t<button\r\n\t\t\t\tid="generate"\r\n\t\t\t\ttype="button"\r\n\t\t\t\t(click)="generateHierarchicalTokenType()"\r\n\t\t\t\ttitle="Copiar"\r\n\t\t\t\tstyle="width: 30px"\r\n\t\t\t>\r\n\t\t\t\t<span class="fa fa-clipboard"></span>\r\n\t\t\t</button>\r\n\t\t\t&nbsp;\r\n\t\t\t<button\r\n\t\t\t\tid="generate"\r\n\t\t\t\ttype="button"\r\n\t\t\t\t(click)="useCondition()"\r\n\t\t\t\ttitle="Volver condicional"\r\n\t\t\t\tstyle="margin-left: -5px; width: 30px"\r\n\t\t\t>\r\n\t\t\t\t<span class="fa fa-plus"></span>\r\n\t\t\t</button>\r\n\t\t</div>\r\n\t\t<div class="mr-sm"></div>\r\n\t</div>\r\n\t<div class="flex align-items-center" style="margin-top: 13px; margin-bottom: 20px">\r\n\t\t<p-pickList\r\n\t\t\t[dragdrop]="true"\r\n\t\t\tngDefaultControl\r\n\t\t\t[source]="source"\r\n\t\t\t[target]="target"\r\n\t\t\t[responsive]="true"\r\n\t\t\tfilterBy="category,label"\r\n\t\t\t[showSourceControls]="false"\r\n\t\t\ttargetFilterPlaceholder=" Buscar..."\r\n\t\t\tsourceFilterPlaceholder=" Buscar..."\r\n\t\t>\r\n\t\t\t\x3c!-- [sourceStyle]="{ width: \'234px\' }"\r\n\t\t\t[targetStyle]="{ width: \'234px\' }" --\x3e\r\n\t\t\t<ng-template let-field pTemplate="item">\r\n\t\t\t\t<div class="ui-helper-clearfix">\r\n\t\t\t\t\t{{ field.label }} <br />\r\n\t\t\t\t\t<small>\r\n\t\t\t\t\t\t<b> {{ field.category }} </b>\r\n\t\t\t\t\t</small>\r\n\t\t\t\t</div>\r\n\t\t\t</ng-template>\r\n\t\t</p-pickList>\r\n\t</div>\r\n</ng-container>\r\n',styles:[".mr-sm{margin-right:15px}"]}),__metadata("design:paramtypes",[SegmentationTokensService,ngxToastr.ToastrService])],t)}(),PliCnfProjectSummaryService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.service_path="project-summary/configuration"}return t.prototype.getByPatCodigoAndPromCodigo=function(t,e){var n=(new http.HttpParams).set("patCodigo",t.toString()).set("promCodigo",e.toString());return this.httpClient.get(""+this.environment.host.backend.configuration+this.service_path,{params:n})},t.prototype.getByPatCodigoAndPromCodigoIn=function(t,e){var n={patCodigo:t,promCodigos:e};return this.httpClient.post(""+this.environment.host.backend.configuration+this.service_path+"/search-by-patCodigo-and-promCodigos",n)},t.prototype.save=function(t){return this.httpClient.post(""+this.environment.host.backend.configuration+this.service_path,t)},t.prototype.update=function(t,e){return this.httpClient.patch(""+this.environment.host.backend.configuration+this.service_path+"/"+t,e)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PartnerService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getPartenerById=function(t){return this.httpClient.get(this.environment.host.backend.loginWSRest+"patrocinador/getById",{params:(new http.HttpParams).set("patCodigo",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.loginWSRest+"patrocinador/save",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PartnerSystemService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getByPatAndSystem=function(t,e){return this.httpClient.get(this.environment.host.backend.loginWSRest+"patrocinadorSistema/getByPatAndSystem",{params:(new http.HttpParams).set("patCodigo",t).set("sysCodigo",e)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.loginWSRest+"patrocinadorSistema/save",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),httpOptions$1={headers:new http.HttpHeaders({"Content-Type":"application/json"})},PdfAnalyzerService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getTextOfImage=function(t){return this.httpClient.post(this.environment.googleVision.url+"?key="+this.environment.googleVision.key,t,{headers:httpOptions$1.headers})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PdfAnalyzerComponent=function(){function t(t){this.pdfAnalyzerService=t,this.totalPages=0,this.currentpage=1,this.isCropImage=!1,this.instructivo=!0,this.render_text=!0,this.show_all=!1,this.original_size=!0,this.fit_to_page=!1,this.pdfSrc="",this.textToCompare="",this.labelToCompare="",this.documentAnalyzed=new core.EventEmitter}return t.prototype.ngOnInit=function(){},t.prototype.zoomOut=function(){this.cropper.zoom(.1)},t.prototype.zoomIn=function(){this.cropper.zoom(-.1)},t.prototype.onRange=function(t){this.cropper.zoomTo(t.target.value)},t.prototype.onRotate=function(){this.cropper.rotate(-90)},t.prototype.previous=function(){this.currentpage>0&&(1==this.currentpage?this.currentpage=this.totalPages:this.currentpage--)},t.prototype.next=function(){this.totalPages>this.currentpage?this.currentpage++:this.currentpage=1},t.prototype.crop=function(){var t=this;html2canvas(document.querySelector(".pdf-container")).then((function(e){e.getContext("2d").scale(3,3);var n=e.toDataURL("image/png").replace("image/png","image/png");$("#cropper-img").attr("src",n),$("#cropper-img").addClass("ready"),t.isCropImage=!0;var o=document.getElementById("cropper-img");t.cropper=new Cropper(o,{zoomable:!0,background:!1,guides:!1,highlight:!1,movable:!1,aspectRatio:4/3,ready:function(e){t.cropper},crop:function(t){}})}))},t.prototype.saveCapture=function(){var t=this;if(this.isCropImage){var e=this.cropper.getCroppedCanvas();this.getCanvasToImage(e)}else html2canvas(document.querySelector(".pdf-container")).then((function(e){t.getCanvasToImage(e)}))},t.prototype.getCanvasToImage=function(t){t.getContext("2d").scale(3,3);var e=t.toDataURL("image/png").replace("image/png","image/png");this.capture=e,console.log(e)},t.prototype.reset=function(){this.isCropImage=!1,this.capture=null,this.cropper.clear(),this.cropper.destroy()},t.prototype.validateImage=function(){var t=this.capture.substring(22,this.capture.length);this.documentAnalyzed.emit(t)},t.ctorParameters=function(){return[{type:PdfAnalyzerService}]},__decorate([core.Input(),__metadata("design:type",Object)],t.prototype,"pdfSrc",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"textToCompare",void 0),__decorate([core.Input(),__metadata("design:type",String)],t.prototype,"labelToCompare",void 0),__decorate([core.Output(),__metadata("design:type",core.EventEmitter)],t.prototype,"documentAnalyzed",void 0),t=__decorate([core.Component({selector:"pli-pdf-analyzer",template:'<div>\r\n\r\n <div class="checkInstructivo">\r\n <label>\r\n <input type="checkbox" [(ngModel)]="instructivo" />Instructivo\r\n </label>\r\n </div>\r\n <div *ngIf="!instructivo" class="description">\r\n Seleccionar la parte del documento donde se encuentra <strong>{{labelToCompare}}</strong>\r\n\r\n </div>\r\n <div *ngIf="instructivo" class="description">\r\n 1. Darle clic en el botón <span class="fa fa-crop"></span>\r\n <br> 2. Seleccionar la parte del documento donde se encuentra <strong>{{labelToCompare}}</strong> con el mouse dando clic y arrastrando hasta completar la selección o cambiando de tamaño el recuadro que aparece en pantalla\r\n <br> 3. Una vez seleccionado dar clic en el botón <span class="fa fa-camera"></span> para previsualizarlo mejor\r\n <br> 4. En caso de haberse equivocado puede darle clic al botón rojo "Reintentar" o al botón <span class="fa fa-undo"></span> para volver al paso 1\r\n <br> 5. Cuando ya este correcta la selección darle clic al botón verde "Guardar Captura" para proceder con el proceso\r\n </div>\r\n <div class="pdf-visualizer-controls">\r\n <a href="Javascript:;" title="Anterior" data-toggle="tooltip" data-placement="top" class="btn btn-outline-secondary" (click)="previous()">\r\n <span class="fa fa-angle-left"></span>\r\n </a>\r\n <span class="btn btn-outline-secondary">Página: {{currentpage}} / {{totalPages}}</span>\r\n <a href="Javascript:;" title="Siguiente" data-toggle="tooltip" data-placement="top" class="btn btn-outline-secondary" (click)="next()">\r\n <span class="fa fa-angle-right"></span>\r\n </a>\r\n\r\n <a href="Javascript:;" title="Acercar" data-toggle="tooltip" data-placement="top" class="btn btn-outline-secondary" *ngIf="isCropImage && !capture" (click)="zoomOut()">\r\n <span class="fa fa-search-plus"></span>\r\n </a>\r\n\r\n\r\n <a href="Javascript:;" title="Alejar" data-toggle="tooltip" data-placement="top" class="btn btn-outline-secondary" *ngIf="isCropImage && !capture" (click)="zoomIn()">\r\n <span class="fa fa-search-minus"></span>\r\n </a>\r\n </div>\r\n <div class="pdf-visualizer-controls">\r\n <a href="Javascript:;" title="Capturar" data-toggle="tooltip" data-placement="top" class="btn btn-outline-secondary" *ngIf="!isCropImage" (click)="crop()">\r\n <span class="fa fa-crop fa-2x"></span>\r\n </a>\r\n <a href="Javascript:;" title="Guardar Captura" data-toggle="tooltip" data-placement="top" class="btn btn-outline-secondary" *ngIf="isCropImage && !capture" (click)="saveCapture()">\r\n <span class="fa fa-camera fa-2x"></span>\r\n </a>\r\n <a href="Javascript:;" title="Deshacer" data-toggle="tooltip" data-placement="top" class="btn btn-outline-secondary" *ngIf="isCropImage" (click)="reset()">\r\n <span class="fa fa-undo fa-2x"></span>\r\n </a>\r\n </div>\r\n\r\n\r\n <div class="pdf-visualizer-dashboard" *ngIf="!capture">\r\n <div class="pdf-container pdf-visualizer-canvas top-margin" [hidden]="isCropImage">\r\n \x3c!-- <pdf-viewer [(src)]="pdfSrc" [(render-text)]="render_text" [(page)]="currentpage" [(show-all)]="show_all" [(original-size)]="original_size" [(fit-to-page)]="fit_to_page" (after-load-complete)="afterLoadComplete($event)" style="display: block;">\r\n </pdf-viewer> --\x3e\r\n </div>\r\n\r\n <div class="img-container" [hidden]="!isCropImage">\r\n <img #image src="" id="cropper-img" crossorigin>\r\n </div>\r\n </div>\r\n\r\n <div class="img-visualizer-dashboard" *ngIf="capture">\r\n <img [src]="capture">\r\n </div>\r\n <div class="img-visualizer-dashboard" *ngIf="capture">\r\n <button class="btns btn-success btn-lg" (click)="validateImage()" lang="es">Guardar Captura</button>\r\n\r\n <button class="btnr btn-success btn-lg" (click)="reset()" lang="es">Reintentar</button>\r\n </div>\r\n</div>',styles:[".img-visualizer-dashboard,.pdf-visualizer-controls,.pdf-visualizer-dashboard{background-color:#f5f5f5;padding:15px}.pdf-visualizer-dashboard{border-bottom:1px solid #eee;border-top:1px solid #eee}.img-visualizer-dashboard{text-align:center;border-bottom:1px solid #eee;border-top:1px solid #eee}.pdf-visualizer-canvas{cursor:move}button.btns{background-color:green;color:#fff;position:relative;left:0;margin:15px}button.btns:hover{background-color:#006400}button.btnr{background-color:red;color:#fff;position:relative;left:0;margin:15px}button.btnr:hover{background-color:#8b0000}.description{padding:0 10px;font-size:14px;font-weight:300;font-family:Roboto,sans-serif;margin-bottom:1.5em}.checkInstructivo{float:right;text-align:right}"]}),__metadata("design:paramtypes",[PdfAnalyzerService])],t)}(),NgPliCommonsModule=function(){function t(){}var e;return e=t,t.forRoot=function(t){return{ngModule:e,providers:[common.CurrencyPipe,PppService,AuthenticationService,DataFormService,FormService,LogService,LetterCampaingService,ApplicationService,ApplicationTagService,SpinnerService,SponsorshipLetterService,BudgetService,BudgetApplicationService,TokenService,TokenTransformationService,UserService,EmailService,CubeService,PliCnfInteractionService,PliCnfIndicatorService,PliCnfHeaderService,DocumentManagementService,DocumentService,SegmentationService,PliCnfLookAndFeelService,FileService,PliUserService,PliCnfProfileUserService,DocumentaryTypeService,SendApplicationService,KeysAssignationService,ConfigurationDocumentService,PermissionService,ProfileService,PageService,PliCnfPageSubProcessService,StatusService,UniversityService,PliCnfMenuFormService,ConfigurationService,CommonInfoService,PliCnfStatusFlowService,PliCnfStatusFlowInteractionService,SesionFormService,PliCnfTextService,PliCnfBudgetService,PliCnfSupportDocumentService,InteractionApplicationUserService,SesionService,PliCnfSegmentationService,PliCnfUserWorkspaceService,PliCnfAppCardFilterService,PliSegmentationService,PliTagService,SegmentationUserService,ImportDataService,PliPromocionUsernameService,PliCnfWorkspaceSegmentationService,PliMultipleValueFilterService,EvaluationService,BudgetSimulationService,ExportExcelService,GlobalShowTaskService,GuaranteeService,CreditStudyService,GuaranteeDocumentService,PliCnfEvaluationTemplateService,PliCnfCommitteeVisualizationModeService,PliCnfScenarioService,PliCnfValproKeysService,TasaCambioService,PliCnfAcuityFieldsService,PliCnfGuaranteeTokenService,PliCnfGuaranteeDocumentsTemplateService,IntegrationADOService,GuaranteeEnrollmentService,PliCnfTextOptionService,ConfigurationMinisiteService,ProgressBarService,PliCnfSurveyPdfService,PliTagAssignmentService,PliCnfProjectSummaryService,HashService,PartnerService,PartnerSystemService,PdfAnalyzerService,{provide:"environment",useValue:t},{provide:fire.FirebaseOptionsToken,useValue:t.firebase}]}},t=e=__decorate([core.NgModule({imports:[common.CommonModule,angularFormioProyectoscolfuturo.FormioModule,http.HttpClientModule,forms.FormsModule,accordion.AccordionModule,api.SharedModule,table.TableModule,tieredmenu.TieredMenuModule,picklist.PickListModule,forms.ReactiveFormsModule,fire.AngularFireModule,storage.AngularFireStorageModule,auth.AngularFireAuthModule,angular2Tinymce.TinymceModule.withConfig({plugins:["code","preview","autoresize","paste","colorpicker","textcolor","link","table","lists","advlist","image"],toolbar:"undo redo | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | forecolor backcolor fontsizeselect | code preview image link",forced_root_block:"div"}),dropdown.DropdownModule,dialog.DialogModule,ngPliUtil.NgPliUtilModule.forRoot()],entryComponents:[angularFormioProyectoscolfuturo.FormioComponent],declarations:[SelectPppComponent,CurrencyColfuturoPipe,CurrencyPrintColfuturoPipe,CurrencyDecimalColfuturoPipe,CurrencyColfuturoFormatterDirective,CurrencyDecimalColfuturoFormatterDirective,PdfVisualizerComponent,PdfMergeVisualizerComponent,PdfGeneratorComponent,TokenComponent,SegmentationTokensComponent,TokensCalculatorComponent,ConfigurationTokenComponent,ExcelToJsonComponent,ThousandsPipe,DynamicFilterComponent,ShowHideColumnsTableComponent,PdfConfigComponent,SnapshotTokenComponent,GuaranteeTokenComponent,ProgressBarComponent,PdfAnalyzerComponent],exports:[SelectPppComponent,PdfVisualizerComponent,PdfMergeVisualizerComponent,PdfGeneratorComponent,TokenComponent,SegmentationTokensComponent,TokensCalculatorComponent,CurrencyColfuturoPipe,CurrencyPrintColfuturoPipe,CurrencyDecimalColfuturoPipe,CurrencyColfuturoFormatterDirective,CurrencyDecimalColfuturoFormatterDirective,ConfigurationTokenComponent,ThousandsPipe,ExcelToJsonComponent,DynamicFilterComponent,ShowHideColumnsTableComponent,PdfConfigComponent,ProgressBarComponent,PdfAnalyzerComponent]})],t)}(),BackofficeCommonsComponent=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.commonService=e,o.cdRef=n,o.fullWidth=!1,o}return __extends(e,t),e.prototype.ngOnInit=function(){if(t.prototype.ngOnInit.call(this),this.fullWidth){var e=document.getElementById("mainContainer");e&&e.classList.remove("container")}},e.prototype.ngOnDestroy=function(){if(this.fullWidth){var t=document.getElementById("mainContainer");t&&t.classList.add("container")}},e.BEST_SCENARIO_COLUMN_ID="-6",e}(CommonListsComponent),DashboardCommonsComponent=function(){function t(t,e,n){this.commonService=t,this.cdRef=e,this.commonInfoService=n}return t.prototype.ngOnInit=function(){this.lVersionInfo=[]},t.prototype.addVersionProjectInfo=function(){this.lVersionInfo.push({name:"Proyecto Commons",version:this.commonsVersion,build:this.commonsBuildTimestamp}),this.lVersionInfo.push({name:"Proyecto Security",version:this.securityVersion,build:this.securityBuildTimestamp}),this.lVersionInfo.push({name:"Proyecto Util",version:this.utilVersion,build:this.utilBuildTimestamp})},t.prototype.createVersionAndBuildTimeProject=function(t,e){var n=this.createVersionAndBuildTime(t,e);console.log("VersionAndBuildTime-Project",n),this.version=n.version,this.buildTimestamp=n.buildTimes},t.prototype.createVersionAndBuildTimeCommons=function(t,e){var n=this.createVersionAndBuildTime(t,e);console.log("VersionAndBuildTime-Commons",n),this.commonsVersion=n.version,this.commonsBuildTimestamp=n.buildTimes},t.prototype.createVersionAndBuildTimeSecurity=function(t,e){var n=this.createVersionAndBuildTime(t,e);console.log("VersionAndBuildTime-Security",n),this.securityVersion=n.version,this.securityBuildTimestamp=n.buildTimes},t.prototype.createVersionAndBuildTimeUtil=function(t,e){var n=this.createVersionAndBuildTime(t,e);console.log("VersionAndBuildTime-Util",n),this.utilVersion=n.version,this.utilBuildTimestamp=n.buildTimes},t.prototype.createVersionAndBuildTime=function(t,e){var n,o;(n=null,t&&(n=t),o=null,e)&&(o=ngPliUtil.DateUtil.getMoment(e).utcOffset(0,!0).utcOffset(ngPliUtil.DateUtil.UTC_AMERICA_BOGOTA).format("DD MMM YYYY HH:mm"));return{version:n,buildTimes:o}},t}(),FrontofficeCommonsComponent=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.commonService=e,o.cdRef=n,o.toastDuration=1e4,o}return __extends(e,t),e.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this)},e.prototype.createApplicationBudgetTotalAmount=function(t,e,n,o,r,i){void 0===o&&(o=void 0),void 0===r&&(r=void 0),void 0===i&&(i=void 0);var a=this.createBudgetApplication(e,n,o,r,i);return e=a.budget,{applicationBudgetTotalAmount:{applicationBudgetTotal:a.applicationBudgetTotal,applicationId:t,creditAccepted:n},budget:e}},e.prototype.createBudgetApplication=function(t,e,n,o,r){void 0===n&&(n=void 0),void 0===o&&(o=void 0),void 0===r&&(r=void 0);var i=null==e||0==e,a=i?t.applicationProcess:t.legalizationProcess;return null==a||null==a?(n=null==n?0:n,o=null==o?0:o,r=null==r?0:r,a=new ngPliUtil.ApplicationBudgetTotal):(n=null==n?a.totalAmount:n,o=null==o?a.totalOwnFunds:o,r=null==r?a.totalFinancing:r),a.totalAmount=n,a.totalOwnFunds=o,a.totalFinancing=r,i?t.applicationProcess=a:t.legalizationProcess=a,{applicationBudgetTotal:a,budget:t}},e.prototype.validateCloseApplicationProcess=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.commonService.validateCloseApplicationProcess(this.promCodigo,this.stateId,t).toPromise()];case 1:return e=n.sent(),this.dateClose=e.closeApplicationDate,[2,new Promise((function(t){t(e.userAllowSave)}))]}}))}))},e}(CommonListsComponent),UploadDocumentsService=function(){function t(t,e){this.fileService=t,this.pppService=e}return t.prototype.initPpp=function(t){var e=this;return Observable.Observable.create((function(n){return t.promCodigo&&(e.dataFormApplication=t,e.promCodigo=t.promCodigo,e.pppService.getPromocionById(e.promCodigo).subscribe((function(t){t&&(e.patCodigo=t.pliPrograma.pliPatrocinador.patCodigo,e.progCodigo=t.pliPrograma.progCodigo,n.next(),n.complete())}))),{unsubscribe:function(){}}}))},t.prototype.uploading=function(t,e){var n=this;return Observable.Observable.create((function(o){return n.initPpp(e).subscribe((function(){var e=n.fileService.getPath(ngPliUtil.EProceso.CONVOCATORIA,n.patCodigo,n.progCodigo,n.promCodigo,n.dataFormApplication.applicationId,t.name);n.fileService.upload(e,t).subscribe((function(e){if(e){var n=new ngPliUtil.Archive;n.name=t.name,n.url=e,n.documentManagementProcess=!1,o.next(n),o.complete()}}),(function(t){console.error("Error trying to upload: ",t)}))})),{unsubscribe:function(){}}}))},t.ctorParameters=function(){return[{type:FileService},{type:PppService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject(FileService),core.ɵɵinject(PppService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__metadata("design:paramtypes",[FileService,PppService])],t)}(),ApplicationFillPercentageService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.send=function(t){return this.httpClient.post(this.environment.host.backend.queue+"applicationFillPercentage/send",t,this.headerJson)},t.prototype.sendMultiple=function(t){return this.httpClient.post(this.environment.host.backend.queue+"applicationFillPercentage/sendMultiple",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),CommitteePdfService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.send=function(t){return this.httpClient.post(this.environment.host.backend.queue+"committee-pdf/send",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),CommitteMoneyServiceService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getByOneCommittee=function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var r=new http.HttpParams;return r=(r=(r=(r=(r=r.set("promCode",String(t))).set("idCommittee",String(e))).set("keyGroupDimension",n[0])).set("keySegmentationDimension",n[1])).set("valueSegmentationDimension",n[2]),this.httpClient.get(this.environment.host.backend.backoffice+"committe-money/getByOneCommittee",{params:r=r})},t.prototype.getByAllCommittee=function(t,e,n){for(var o=[],r=3;r<arguments.length;r++)o[r-3]=arguments[r];var i=new http.HttpParams;return i=(i=(i=(i=(i=i.set("promCode",String(t))).set("keyGroupDimension",o[0])).set("keySegmentationDimension",o[1])).set("selectedStatusId",String(e))).set("negativeStatusId",String(n)),this.httpClient.get(this.environment.host.backend.backoffice+"committe-money/getByAllCommittee",{params:i=i})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),CommitteeSnapshotService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getSnapshotMetadata=function(t,e,n){return this.httpClient.get(this.environment.host.backend.backoffice+"committee-snapshot/getSnapshotMetadata?committeeId="+t+"&segmentation="+e+"&aggrupation="+n)},t.prototype.getSnapshotMetadataFindOne=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"committee-snapshot/getSnapshotMetadataFindOne?committeeId="+t)},t.prototype.getListByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"committee-snapshot/getListByPromCode?promCodigo="+t)},t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.backoffice+"committee-snapshot/getAll")},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"committee-snapshot/getById?id="+t)},t.prototype.getByName=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"committee-snapshot/getByName?name="+t)},t.prototype.getByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"committee-snapshot/getByPromCode?promCodigo="+t)},t.prototype.getByCommitteeId=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"committee-snapshot/getByCommitteeId?committeeId="+t)},t.prototype.getByCommitteeType=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"committee-snapshot/getByCommitteeType?committeeType="+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"committee-snapshot/save",t)},t.prototype.deleteByName=function(t){return this.httpClient.delete(this.environment.host.backend.backoffice+"committee-snapshot/deleteByName?name="+t)},t.prototype.deleteByPromCode=function(t){return this.httpClient.delete(this.environment.host.backend.backoffice+"committee-snapshot/deleteByPromCode?promCodigo="+t)},t.prototype.deleteByCommitteeId=function(t){return this.httpClient.delete(this.environment.host.backend.backoffice+"committee-snapshot/deleteByCommitteeId?committeeId="+t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),CreditScoreService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.calculateCodebtorsScore=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+"credit-score/calculateCodebtorsScore",{params:(new http.HttpParams).set("applicationId",e).set("promCodigo",String(t))})},t.prototype.calculateScore=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+"credit-score/calculateScore",e,{params:(new http.HttpParams).set("promCodigo",String(t))})},t.prototype.getCreditScoreDate=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+"credit-score/getCreditScoreDate",t,{params:(new http.HttpParams).set("promCodigo",String(e))})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),DataLetterSegmentationService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.generateDataLetterFromSnapshot=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"data-letter/generateDataLetterFromSnapshot",t,this.headerJson)},t.prototype.segment=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"data-letter/segment",t,this.headerJson)},t.prototype.findSegmentationByCommitteeIdAndCampaignIdAndActive=function(t,e,n){return this.httpClient.get(this.environment.host.backend.backoffice+"data-letter/findSegmentationByCommitteeIdAndCampaignIdAndActive",{params:(new http.HttpParams).set("idCommittee",t.toString()).set("idCampaign",e.toString()).set("active",n.toString())})},t.prototype.findDataLetterByCampaignId=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"data-letter/findByCampaignId",{params:(new http.HttpParams).set("idCampaign",t.toString())})},t.prototype.generateLetter=function(t,e,n){var o={promCodigo:t,campaignId:e,filter:n};return this.httpClient.post(this.environment.host.backend.backoffice+"data-letter/generateLetter",o,this.headerJson)},t.prototype.sendLetters=function(t,e,n,o){var r={test:t,campaignId:e,email:n,filter:o};return this.httpClient.post(this.environment.host.backend.queue+"letterCampaing",r,this.headerJson)},t.prototype.findLogs=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"data-letter/findLogs?idCampaign="+t)},t.prototype.getUniversities=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"data-letter/universities?idCampaign="+t)},t.prototype.getParagraphs=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"data-letter/paragraphs?promCodigo="+t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),DocumentValidationAttemptService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getByApplicationIdAndDocumentId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"getByApplicationIdAndDocumentId",{params:(new http.HttpParams).set("applicationId",t).set("configurationDocumentId",e.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"save",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),InitialRecordService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"initial-record/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"initialRecord/getById",{params:(new http.HttpParams).set("id",t)})},t.prototype.getByIdLight=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"initialRecord/getByIdLight",{params:(new http.HttpParams).set("id",t)})},t.prototype.getByPatCodigo=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"initialRecord/getByPatCodigo",{params:(new http.HttpParams).set("patCodigo",t.toString())})},t.prototype.getByUsername=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"initialRecord/getByUsername",{params:(new http.HttpParams).set("username",t)})},t.prototype.getByUsernameAndPatCodigo=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"initialRecord/getByUsernameAndPatCodigo",{params:(new http.HttpParams).set("username",t).set("patCodigo",e.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"initialRecord/save",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),LetterTaskMappingService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.findAllByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfLetterTaskMapping/getAllByPromCode",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfLetterTaskMapping/save",t,this.headerJson)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfLetterTaskMapping/saveAll",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),LegalizationService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.subjectValidateConfirmAppoiment=new rxjs.Subject}return t.prototype.getLegalizationSection=function(t){var e=new http.HttpParams;return e=e.set("applicationId",String(t)),this.httpClient.get(this.environment.host.backend.backoffice+"application/getLegalizationSection",{params:e})},t.prototype.updateLegalizationSection=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+"application/updateLegalizationSection?applicationId="+e,t)},t.prototype.getBudgetAppointment=function(t){var e=new http.HttpParams;return e=e.set("applicationId",String(t)),this.httpClient.get(this.environment.host.backend.backoffice+"legalization/getBudgetAppointment",{params:e})},t.prototype.getLegalization=function(t){var e=new http.HttpParams;return e=e.set("applicationId",String(t)),this.httpClient.get(this.environment.host.backend.backoffice+"legalization/getLegalization",{params:e})},t.prototype.getEnsurance=function(t){var e=new http.HttpParams;return e=e.set("applicationId",String(t)),this.httpClient.get(this.environment.host.backend.backoffice+"legalization/getEnsurance",{params:e})},t.prototype.saveAppointmentClosingAndStateUpdate=function(t){var e=t.applicationId,n=t.promCodigo,o=t.IdInteractionType,r=t.isPositiveState,i=t.pliUserUsername,a=t.survey,s=t.observations,c=t.formId;return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveAppointmentClosingAndStateUpdate",{applicationId:e,promCodigo:n,IdInteractionType:o,isPositiveState:r,survey:a,observations:s,pliUserUsername:i,formId:c})},t.prototype.saveAppointmentObservations=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveAppointmentObservations?applicationId="+t,e)},t.prototype.getLegalizationSectionBySectionKey=function(t,e){return this.httpClient.get(this.environment.host.backend.backoffice+"application/getLegalizationSectionBySectionKey",{params:(new http.HttpParams).set("applicationId",String(t)).set("sectionKey",String(e))})},t.prototype.getSubjectValidateConfirmAppoiment=function(){return this.subjectValidateConfirmAppoiment.asObservable()},t.prototype.setSubjectValidateConfirmAppoiment=function(t){void 0===t&&(t=!1),this.subjectValidateConfirmAppoiment.next(t)},t.prototype.updateErrorsConfirmAppoiment=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveErrorsAppointment?applicationId="+t,e)},t.prototype.updateInfoLogginCodebtor=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveInfoLogginCodebtor?applicationId="+t,e)},t.prototype.saveUniversidadRecibeSeguro=function(t,e){var n={applicationId:t,universidadRecibeSeguro:e};return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveUniversidadRecibeSeguro",n,ngPliUtil.HEADER_JSON)},t.prototype.getGuarantees=function(t){var e=new http.HttpParams;return e=e.set("applicationId",String(t)),this.httpClient.get(this.environment.host.backend.backoffice+"legalization/getGuarantee",{params:e})},t.prototype.getCodebtorByIdentification=function(t,e){var n=new http.HttpParams;return n=(n=n.set("applicationId",String(t))).set("identification",String(e)),this.httpClient.get(this.environment.backend.frontoffice+"legalization/getCodebtorByIdentification",{params:n})},t.prototype.getCodebtorDocuments=function(t,e){var n=new http.HttpParams;return n=(n=n.set("applicationId",String(t))).set("identification",String(e)),this.httpClient.get(this.environment.backend.frontoffice+"legalization/getCodebtorDocuments",{params:n})},t.prototype.getCodebtorDocumentByConfigurationDocumentId=function(t,e,n){var o=new http.HttpParams;return o=(o=(o=o.set("applicationId",String(t))).set("identification",String(e))).set("configurationDocumentId",String(n)),this.httpClient.get(this.environment.backend.frontoffice+"legalization/getCodebtorDocumentByConfigurationDocumentId",{params:o})},t.prototype.getCodebtorCreditReviewerObservations=function(t,e){var n=new http.HttpParams;return n=(n=n.set("applicationId",String(t))).set("identification",String(e)),this.httpClient.get(this.environment.backend.frontoffice+"legalization/getCodebtorCreditReviewerObservations",{params:n})},t.prototype.saveCodebtor=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveCodebtor?applicationId="+t,e)},t.prototype.saveCodebtorFormData=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveCodebtorFormData?applicationId="+t,e)},t.prototype.saveCodebtorCreditReviewerObservation=function(t,e,n){return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveCodebtorCreditReviewerObservation?applicationId="+t+"?identification="+e,n)},t.prototype.saveCodebtorDocument=function(t,e,n){return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveCodebtorDocument?applicationId="+t+"?identification="+e,n)},t.prototype.saveCreditReviewerDocument=function(t,e,n){return this.httpClient.post(this.environment.host.backend.backoffice+"legalization/saveCreditReviewerDocument?applicationId="+t+"?identification="+e,n)},t.prototype.updateCompletedFlag=function(t,e){return this.httpClient.put(this.environment.host.backend.backoffice+"legalization/updateCompletedFlag?completed="+e,t)},t.prototype.acceptConsultation=function(t,e){return this.httpClient.put(this.environment.host.backend.backoffice+"legalization/acceptConsultation?response="+e,t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),MigrationPlisService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.send=function(t){return this.httpClient.post(this.environment.host.backend.queue+"migration-plis/send",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),MigrationSurveyQueueService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.send=function(t){return this.httpClient.post(this.environment.host.backend.queue+"migration-segmentation-survey/send",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SummaryBudgetService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.sendSummaryBudgetQueue=function(t){return this.httpClient.post(this.environment.host.backend.queue+"summary-budget/send",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfAppointmentTypeService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfAppointmentType/getById?id="+t)},t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfAppointmentType/getByPromCodigo?promCodigo="+t)},t.prototype.getByAppointmentTypeId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfAppointmentType/getByAppointmentTypeId?appointmentTypeId="+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfAppointmentType/save",t)},t.prototype.getConfigCloningAppointment=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfAppointmentType/getConfigCloningAppointment",{params:(new http.HttpParams).set("oldPPP",t.toString()).set("newPPP",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfBudgetProgramTypeService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.url=this.environment.host.backend.configuration+"budgetProgramType/"}return t.prototype.getAllByPromCodigo=function(t){var e=(new http.HttpParams).set("promCodigo",String(t));return this.httpClient.get(this.url+"getAllByPromCodigo",{params:e})},t.prototype.getAllByPromCodigoLight=function(t){var e=(new http.HttpParams).set("promCodigo",String(t));return this.httpClient.get(this.url+"getAllByPromCodigoLight",{params:e})},t.prototype.save=function(t){return this.httpClient.post(this.url+"save",t)},t.prototype.getById=function(t){var e=(new http.HttpParams).set("id",String(t));return this.httpClient.get(this.url+"getById",{params:e})},t.prototype.delete=function(t){var e=(new http.HttpParams).set("id",String(t));return this.httpClient.delete(this.url+"delete",{params:e})},t.prototype.getConfigCloningBudgetProgramMap=function(t,e){var n=(new http.HttpParams).set("oldPPP",String(t)).set("newPPP",String(e));return this.httpClient.get(this.url+"getConfigCloningBudgetProgram",{params:n})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfConfigMinisiteService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfConfigMiniSite/save",t,this.headerJson)},t.prototype.saveMinisiteData=function(t){var e=t.configMiniSiteId,n=t.searchListId;return this.httpClient.post(this.environment.host.backend.segmentation+"PlicSegmentationTableController/saveMinisiteData",{configMiniSiteId:e,searchListId:n},this.headerJson)},t.prototype.saveHeaderFooter=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfConfigMiniSite/saveHeaderFooter",t,this.headerJson)},t.prototype.findById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfConfigMiniSite/findById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.findHeaderFooter=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfConfigMiniSite/findHeaderFooter")},t.prototype.findAllByUserId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfConfigMiniSite/findAllByUserId",{params:(new http.HttpParams).set("idUser",t.toString())})},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfConfigMiniSite/delete?id="+t)},t.prototype.getDatatableSearchListByDtblSearchListId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"PliDatatableSearchListController/getDatatableSearchListByDtblSearchListId",{params:(new http.HttpParams).set("dtblSearchListId",t).set("type",e.toString())}).map((function(t){return t.sort((function(t,e){var n=t.recordSize,o=e.recordSize;return n<o?1:n>o?-1:0})),t}))},t.prototype.getByDataTablesParameters=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfConfigMiniSite/getByDataTablesParameters",t,this.headerJson)},t.prototype.saveAllDatatableSearchList=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"PliDatatableSearchListController/saveAllDatatableSearchList",t,this.headerJson)},t.prototype.getDatatableSearchListById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"PliDatatableSearchListController/getDatatableSearchListById",{params:(new http.HttpParams).set("id",t)})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfCommitteePdfConfigTableConfigService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommitteePdfConfigTableConfig/getAll")},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfCommitteePdfConfigTableConfig/save",t)},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommitteePdfConfigTableConfig/getById?id="+t)},t.prototype.getByPliCnfCommitteePdfConfig=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommitteePdfConfigTableConfig/getByPliCnfCommitteePdfConfig?pdfConfigId="+t)},t.prototype.getPdfConfigById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommitteePdfConfigTableConfig/getPdfConfigById?pdfConfigId="+t)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfCommitteePdfConfigTableConfig/delete?id="+t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfCommitteePdfGenStatusService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getByPdfConfigId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"committee-pdf-generation-status/getByPdfConfigId",{params:(new http.HttpParams).set("id",String(t))})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"committee-pdf-generation-status/save",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfCommitteeService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommittee/getAll")},t.prototype.getAllByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommittee/getAllByPromCode?promCodigo="+t)},t.prototype.getAllByPromCodeLight=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommittee/getAllByPromCodeLight?promCodigo="+t)},t.prototype.getAllTypeCommittee=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommittee/getAllTypeCommittee")},t.prototype.getAllByHavingVisualizationMode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommittee/getAllByHavingVisualizationMode?promCodigo="+t)},t.prototype.getAllWithNoInteraction=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommittee/getAllWithNoInteraction?promCodigo="+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfCommittee/save",t)},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCommittee/getById?id="+t)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfCommittee/delete?id="+t)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfCommittee/saveAll",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfDynamicKeysAssignService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfDynamicKeysAssign/getByPromCodigo?promCodigo="+t)},t.prototype.getByPromCodigoAndCategoryId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfDynamicKeysAssign/getByPromCodigoAndCategoryId",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("categoryId",e.toString())})},t.prototype.getByPromCodigoAndListStaticKeyId=function(t,e){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfDynamicKeysAssign/getByPromCodigoAndListStaticKeyId",{promCodigo:t,lStaticKeyId:e},this.headerJson)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfDynamicKeysAssign/save",t)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfDynamicKeysAssign/saveAll",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfDocumentManagementService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfDocumentManagement/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfDocumentManagement/save",t,this.headerJson)},t.prototype.configCloningDocumentManagement=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfDocumentManagement/configCloningDocumentManagement",{params:(new http.HttpParams).set("oldPromCodigo",t.toString()).set("newPromCodigo",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfInformationSystemService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pli_cnf_information_system/getAll")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfLetterTemplateService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getListByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfLetterTemplate/getAllByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfLetterTemplate/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfLetterTemplate/save",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfLetterTemplate",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getConfigCloningLetterTemplate=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfLetterTemplate/getConfigCloningLetterTemplate",{params:(new http.HttpParams).set("oldPPP",t.toString()).set("newPPP",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),PliCnfLetterTemplateTypeService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfLetterTemplateType/getAll")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),PliCnfMigrationStatusPlisService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"pliCnfMigrationStatusPlis/save",t,ngPliUtil.HEADER_JSON)},t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.backoffice+"pliCnfMigrationStatusPlis/getAll")},t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"pliCnfMigrationStatusPlis/getByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.getAllNotIn=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"pliCnfMigrationStatusPlis/getAllNotIn",t,ngPliUtil.HEADER_JSON)},t.prototype.getByApplicationId=function(t){return this.httpClient.get(this.environment.host.backend.backoffice+"pliCnfMigrationStatusPlis/getByApplicationId",{params:(new http.HttpParams).set("applicationId",t)})},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.backoffice+"pliCnfMigrationStatusPlis/delete",{params:(new http.HttpParams).set("id",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfMigrationPlisFieldService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfMigrationPlisField/getByPromCodigo?promCodigo="+t)},t.prototype.getByPromCodigoAndCategoryId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfMigrationPlisField/getByPromCodigoAndCategoryId",{params:(new http.HttpParams).set("promCodigo",t.toString()).set("categoryId",e.toString())})},t.prototype.getByPromCodigoAndListStaticKeyId=function(t,e){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfMigrationPlisField/getByPromCodigoAndListStaticKeyId",{promCodigo:t,lStaticKeyId:e},this.headerJson)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfMigrationPlisField/save",t)},t.prototype.configCloningMigrationConf=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfMigrationPlisField/configCloningMigrationConf",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfPageSectionFormService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.findByPromCodigoAndPageSectionId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfPageSectionForm/findByPromCodigoAndPageSectionId",{params:(new http.HttpParams).set("promCodigo",t).set("pageSectionId",e)})},t.prototype.findByPromCodigoAndformId=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfPageSectionForm/findByPromCodigoAndformId",{params:(new http.HttpParams).set("promCodigo",t).set("formId",e)})},t.prototype.findByPromCodigoAndPageSectionKey=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfPageSectionForm/findByPromCodigoAndPageSectionKey",{params:(new http.HttpParams).set("promCodigo",t).set("pageSectionKey",e)})},t.prototype.getAllByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfPageSectionForm/getAllByPromCode",{params:(new http.HttpParams).set("promCodigo",t)})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfPageSectionForm/save",t,this.headerJson)},t.prototype.deleteByPromCodigoAndPageSectionId=function(t,e){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfPageSectionForm/deleteByPromCodigoAndPageSectionId",{params:(new http.HttpParams).set("promCodigo",t).set("pageSectionId",e)})},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfPageSectionForm/saveAll",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfFormEditService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"formEdit/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getByIds=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"formEdit/getByIdIn",t)},t.prototype.getAllByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"formEdit/getAllByPromCodigo",{params:(new http.HttpParams).set("promCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"formEdit/save",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"formEdit/delete",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getByPageSection=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"formEdit/getByPageSection",{params:(new http.HttpParams).set("pageSection",t)})},t.prototype.getByPageSectionAndPromCode=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"formEdit/getByPageSectionAndPromCodigo",{params:(new http.HttpParams).set("pageSection",t).set("promCodigo",String(e))})},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"formEdit/saveAll",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfFormMultiaplicacionService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"formMulti/getById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.getByPatCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"formMulti/getByPatCodigo",{params:(new http.HttpParams).set("patCodigo",t.toString())})},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"formMulti/save",t,this.headerJson)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"formMulti/delete",{params:(new http.HttpParams).set("id",t.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfProfileFormService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfProfileForm/save",t,this.headerJson)},t.prototype.deleteByProfileIdAndFormId=function(t,e){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfProfileForm/deleteByProfileIdAndFormId",{params:(new http.HttpParams).set("profileId",t).set("formId",e)})},t.prototype.deleteById=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfProfileForm/deleteById",{params:(new http.HttpParams).set("profileUserId",t)})},t.prototype.deleteByListId=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfProfileForm/deleteByListId",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfSurveyService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSurvey/save",t)},t.prototype.clone=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSurvey/clone",t)},t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSurvey/getAll")},t.prototype.getAllEnable=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSurvey/getAllEnable")},t.prototype.getAllSent=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSurvey/getAllSent")},t.prototype.getEnableByUsername=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSurvey/getEnableByUsername",{params:(new http.HttpParams).set("username",t)})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSurvey/getById",{params:(new http.HttpParams).set("id",String(t))})},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfSurvey",{params:(new http.HttpParams).set("id",String(t))})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfSurveyDocumentService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSurveyDocument/save",t)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfSurveyDocument/saveAll",t)},t.prototype.getBySurveyId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSurveyDocument/getBySurveyId",{params:(new http.HttpParams).set("id",String(t))})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfSurveyDocument/getById",{params:(new http.HttpParams).set("id",String(t))})},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfSurveyDocument",{params:(new http.HttpParams).set("id",String(t))})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfTaskGroupService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfTaskGroup/getAll")},t.prototype.getAllByPromCode=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfTaskGroup/getAllByPromCode?promCodigo="+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfTaskGroup/save",t)},t.prototype.deleteAllByPromCode=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfTaskGroup/deleteAllByPromCode?promCodigo="+t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfTextCategoryService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfTextCategory/save",t,this.headerJson)},t.prototype.findById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfTextCategory/findById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.findAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfTextCategory/findAll")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfTypeTextService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfTypeText/save",t,this.headerJson)},t.prototype.findById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfTypeText/findById",{params:(new http.HttpParams).set("id",t.toString())})},t.prototype.findAllByCategoryId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfTypeText/findAllByCategoryId",{params:(new http.HttpParams).set("categoryId",t.toString())})},t.prototype.findAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfTypeText/findAll")},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfUserCalendarService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfUserCalendar/getById?id="+t)},t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfUserCalendar/getByPromCodigo?promCodigo="+t)},t.prototype.getByUsername=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfUserCalendar/getByUsername?username="+t)},t.prototype.getByCalendarId=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfUserCalendar/getByCalendarId?calendarId="+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfUserCalendar/save",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfMigrationPlisFieldBudgetService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.saveBudget=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfMigrationPlisFieldBudget/saveBudget",t)},t.prototype.getBudgetByPromCodigo=function(t){return this.httpClient.get("\n\t\t\t"+this.environment.host.backend.configuration+"pliCnfMigrationPlisFieldBudget/getBudgetByPromCodigo?promCodigo="+t)},t.prototype.saveEquivalencePLICtoPLIS=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfMigrationPlisFieldBudget/saveEquivalencePlicToPlis",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliSegActionUserService=function(){function t(t,e,n){this.environment=t,this.httpClient=e,this.authService=n,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getActions=function(){return this.httpClient.get(this.environment.host.backend.segmentation+"PlicMassiveAction/getActions")},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicMassiveAction/save",t)},t.prototype.saveAll=function(t){return this.httpClient.post(this.environment.host.backend.segmentation+"PlicMassiveAction/saveAll",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient},{type:AuthenticationService}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient),core.ɵɵinject(AuthenticationService))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient,AuthenticationService])],t)}(),PromotionScoreService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.calculateScoresByApplicationIdList=function(t,e){var n=(new http.HttpParams).set("promCodigo",String(e));return this.httpClient.post(this.environment.host.backend.backoffice+"promotionScoreController/calculateScoresByApplicationIdList",t,{params:n})},t.prototype.calculatePromotionScoreByApplicationIdList=function(t,e){var n=(new http.HttpParams).set("promCodigo",String(e));return this.httpClient.post(this.environment.host.backend.backoffice+"promotionScoreController/calculatePromotionScoreByApplicationIdList",t,{params:n})},t.prototype.creditStudyClassification=function(t,e){var n=(new http.HttpParams).set("promCodigo",String(e));return this.httpClient.post(this.environment.host.backend.backoffice+"promotionScoreController/creditStudyClassification",t,{params:n})},t.prototype.getCreditStudyGroup=function(t,e){var n=(new http.HttpParams).set("promCodigo",String(e)).set("applicationId",t);return this.httpClient.get(this.environment.host.backend.backoffice+"promotionScoreController/getCreditStudyGroup",{params:n})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SurveyService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.frontoffice+"survey/save",t)},t.prototype.updateState=function(t,e){return this.httpClient.put(this.environment.host.backend.frontoffice+"survey/updateState",null,{params:(new http.HttpParams).set("stateId",String(e)).set("surveyId",t)})},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.frontoffice+"survey/getById",{params:(new http.HttpParams).set("id",String(t))})},t.prototype.saveDocument=function(t,e,n){return this.httpClient.post(this.environment.host.backend.frontoffice+"survey/saveDocument",t,{params:(new http.HttpParams).set("pliCnfSurveyId",String(e)).set("username",n)})},t.prototype.getByUsernameAndPliCnfSurveyId=function(t,e){return this.httpClient.get(this.environment.host.backend.frontoffice+"survey/getByUsernameAndPliCnfSurveyId",{params:(new http.HttpParams).set("pliCnfSurveyId",String(t)).set("username",e)})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SurveyMetadataService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"survey-metadata/save",t)},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"survey-metadata/getByPliCnfSurveyId",{params:(new http.HttpParams).set("id",String(t))})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),SurveyQueueService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.send=function(t){return this.httpClient.post(this.environment.host.backend.queue+"survey/send",t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),VisualizationCommitteeService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.subjectCutlineName=new rxjs.Subject,this.subjectCommitteeName=new rxjs.BehaviorSubject(null)}return t.prototype.getByDataTablesParameters=function(t,e){var n=new http.HttpParams;return n=n.set("idCommittee",String(e)),this.httpClient.post(this.environment.host.backend.backoffice+"visualization-committee/getByDataTablesParameters",t,{params:n})},t.prototype.getGroupedByDataTablesParameters=function(t,e){var n=new http.HttpParams;return n=n.set("idCommittee",String(e)),this.httpClient.post(this.environment.host.backend.backoffice+"visualization-committee/getGroupedByDataTablesParameters",t,{params:n})},t.prototype.generateIndicator=function(t,e,n){var o=new http.HttpParams;return o=(o=o.set("idCommittee",String(e))).set("promCodigo",String(n)),this.httpClient.post(this.environment.host.backend.backoffice+"visualization-committee/generateGenericIndicator",t,{params:o})},t.prototype.getSegmentationValues=function(t,e){var n=new http.HttpParams;return n=(n=n.set("formId",String(t))).set("keyField",String(e)),this.httpClient.get(this.environment.host.backend.backoffice+"visualization-committee/getSegmentationValues",{params:n})},t.prototype.getByCommitteeId=function(t){var e=new http.HttpParams;return e=e.set("committeeId",String(t)),this.httpClient.get(this.environment.host.backend.backoffice+"committee-consult/getByCommitteeId",{params:e})},t.prototype.saveCommitteeConsult=function(t){return this.httpClient.post(this.environment.host.backend.backoffice+"committee-consult/save",t)},t.prototype.cloneCommitteeConsult=function(t,e){return this.httpClient.post(this.environment.host.backend.backoffice+"committee-consult/cloneCommitteeConsult?committeeOrigin="+t+"&committeeTarget="+e,{})},t.prototype.getDataCommitteeName=function(){return this.subjectCommitteeName.asObservable()},t.prototype.dataCommitteeName=function(t){return this.subjectCommitteeName.next(t)},t.prototype.getDataCutlineName=function(){return this.subjectCutlineName.asObservable()},t.prototype.setDataCutlineName=function(t){return this.subjectCutlineName.next(t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfConfigurationCreditStudyService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCreditStudyConfig/getById?id="+t)},t.prototype.getByPromCodigo=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCreditStudyConfig/getByPromCodigo?promCodigo="+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfCreditStudyConfig/save",t)},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfCreditStudyConfig/"+t)},t.prototype.getConfigCloningCreditStudy=function(t,e){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCreditStudyConfig/getConfigCloningCreditStudy",{params:(new http.HttpParams).set("oldPPP",t.toString()).set("newPPP",e.toString())})},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfUniversityArticleService=function(){function t(t,e){this.environment=t,this.httpClient=e,this.headerJson={headers:new http.HttpHeaders({"Content-Type":"application/json"})}}return t.prototype.getAll=function(){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfUniversityArticle")},t.prototype.delete=function(t){return this.httpClient.delete(this.environment.host.backend.configuration+"pliCnfUniversityArticle/"+t)},t.prototype.getById=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfUniversityArticle/"+t)},t.prototype.save=function(t){return this.httpClient.post(this.environment.host.backend.configuration+"pliCnfUniversityArticle/",t,this.headerJson)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),PliCnfCloningService=function(){function t(t,e){this.environment=t,this.httpClient=e}return t.prototype.getCloningIdsByPromCodeDestiny=function(t){return this.httpClient.get(this.environment.host.backend.configuration+"pliCnfCloning/getCloningIdsByPromCodeDestiny?promCodigo="+t)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:core.Inject,args:["environment"]}]},{type:http.HttpClient}]},t.ɵprov=core.ɵɵdefineInjectable({factory:function(){return new t(core.ɵɵinject("environment"),core.ɵɵinject(http.HttpClient))},token:t,providedIn:"root"}),t=__decorate([core.Injectable({providedIn:"root"}),__param(0,core.Inject("environment")),__metadata("design:paramtypes",[Object,http.HttpClient])],t)}(),CustomValidator=function(){function t(){}return t.match=function(t){return function(e){return e.value===t.value?null:{match:!0}}},t.matchValues=function(t,e){return function(n){return e.indexOf(Number(t.value))>=0&&!n.value?{matchvalues:!0}:null}},t.requiredIf=function(t,e){return function(n){if(null!=t&&null!=t){var o=n.value;if(t.value==e&&!o)return{requiredIf:!0}}return null}},t.mindate=function(t){return function(e){if(null!=t&&null!=t){var n=e.value,o=t.value,r=ngPliUtil.DateUtil.getDate(n),i=ngPliUtil.DateUtil.getDate(o);if(null!=r&&null!=i&&r.getTime()<i.getTime())return{mindate:!0}}return null}},t.maxdate=function(t){return function(e){if(null!=t&&null!=t){var n=e.value,o=t.value,r=ngPliUtil.DateUtil.getDate(n),i=ngPliUtil.DateUtil.getDate(o);if(null!=r&&null!=i&&r.getTime()>i.getTime())return{maxdate:!0}}return null}},t.number=function(){return function(t){return!t.value||ngPliUtil.NumberUtil.isNumber(t.value)?null:{number:!0}}},t.validNumberByCheck=function(t){return function(e){return null==t.value||!0!==t.value||e.value&&ngPliUtil.NumberUtil.isNumber(e.value)?null:{validnumberbycheck:!0}}},t.emailValidator=function(t){return t.value.match(/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/)?null:{invalidEmailAddress:!0}},t}(),VERSION={dirty:!0,raw:"v0.0.18-1853-gebd64a85-dirty",hash:"gebd64a85",distance:1853,tag:"v0.0.18",semver:{options:{loose:!1,includePrerelease:!1},loose:!1,raw:"v0.0.18",major:0,minor:0,patch:18,prerelease:[],build:[],version:"0.0.18"},suffix:"1853-gebd64a85-dirty",semverString:"0.0.18+1853.gebd64a85",version:"0.0.1322",buildTimestamp:"2022-02-07T22:03:08.656Z"},VersionCommons=function(){function t(){}return t.showVersion=function(){return VERSION.version},t.showBuildTimestamp=function(){return VERSION.buildTimestamp},t}();exports.ApplicationFillPercentageService=ApplicationFillPercentageService,exports.ApplicationService=ApplicationService,exports.ApplicationTagService=ApplicationTagService,exports.AuthenticationService=AuthenticationService,exports.BackofficeCommonsComponent=BackofficeCommonsComponent,exports.BudgetApplicationService=BudgetApplicationService,exports.BudgetService=BudgetService,exports.BudgetSimulationService=BudgetSimulationService,exports.CommitteMoneyServiceService=CommitteMoneyServiceService,exports.CommitteePdfService=CommitteePdfService,exports.CommitteeSnapshotService=CommitteeSnapshotService,exports.CommonInfoService=CommonInfoService,exports.CommonListsComponent=CommonListsComponent,exports.CommonService=CommonService,exports.ConfigurationCommonsComponent=ConfigurationCommonsComponent,exports.ConfigurationDocumentService=ConfigurationDocumentService,exports.ConfigurationMinisiteService=ConfigurationMinisiteService,exports.ConfigurationService=ConfigurationService,exports.ConfigurationTokenComponent=ConfigurationTokenComponent,exports.CreditScoreService=CreditScoreService,exports.CreditStudyService=CreditStudyService,exports.CubeService=CubeService,exports.CurrencyColfuturoFormatterDirective=CurrencyColfuturoFormatterDirective,exports.CurrencyColfuturoPipe=CurrencyColfuturoPipe,exports.CurrencyDecimalColfuturoFormatterDirective=CurrencyDecimalColfuturoFormatterDirective,exports.CurrencyDecimalColfuturoPipe=CurrencyDecimalColfuturoPipe,exports.CurrencyPrintColfuturoPipe=CurrencyPrintColfuturoPipe,exports.CustomValidator=CustomValidator,exports.DashboardCommonsComponent=DashboardCommonsComponent,exports.DataFormService=DataFormService,exports.DataLetterSegmentationService=DataLetterSegmentationService,exports.DocumentManagementService=DocumentManagementService,exports.DocumentService=DocumentService,exports.DocumentValidationAttemptService=DocumentValidationAttemptService,exports.DocumentaryTypeService=DocumentaryTypeService,exports.DynamicFilterComponent=DynamicFilterComponent,exports.EmailService=EmailService,exports.EvaluationService=EvaluationService,exports.ExcelToJsonComponent=ExcelToJsonComponent,exports.ExportExcelService=ExportExcelService,exports.FileService=FileService,exports.FormService=FormService,exports.FormUtil=FormUtil,exports.FormioUtil=FormioUtil,exports.FrontofficeCommonsComponent=FrontofficeCommonsComponent,exports.GlobalShowTaskService=GlobalShowTaskService,exports.GuaranteeDocumentService=GuaranteeDocumentService,exports.GuaranteeEnrollmentService=GuaranteeEnrollmentService,exports.GuaranteeService=GuaranteeService,exports.GuaranteeTokenComponent=GuaranteeTokenComponent,exports.HashService=HashService,exports.ImportDataService=ImportDataService,exports.InitialRecordService=InitialRecordService,exports.IntegrationADOService=IntegrationADOService,exports.InteractionApplicationUserService=InteractionApplicationUserService,exports.KeysAssignationService=KeysAssignationService,exports.LegalizationService=LegalizationService,exports.LetterCampaingService=LetterCampaingService,exports.LetterTaskMappingService=LetterTaskMappingService,exports.LogService=LogService,exports.MigrationPlisService=MigrationPlisService,exports.MigrationSurveyQueueService=MigrationSurveyQueueService,exports.NgPliCommonsModule=NgPliCommonsModule,exports.PageService=PageService,exports.PartnerService=PartnerService,exports.PartnerSystemService=PartnerSystemService,exports.PdfAnalyzerComponent=PdfAnalyzerComponent,exports.PdfAnalyzerService=PdfAnalyzerService,exports.PdfConfigComponent=PdfConfigComponent,exports.PdfGeneratorComponent=PdfGeneratorComponent,exports.PdfMergeVisualizerComponent=PdfMergeVisualizerComponent,exports.PdfVisualizerComponent=PdfVisualizerComponent,exports.PermissionService=PermissionService,exports.PliCnfAcuityFieldsService=PliCnfAcuityFieldsService,exports.PliCnfAppCardFilterService=PliCnfAppCardFilterService,exports.PliCnfAppointmentTypeService=PliCnfAppointmentTypeService,exports.PliCnfBudgetProgramTypeService=PliCnfBudgetProgramTypeService,exports.PliCnfBudgetService=PliCnfBudgetService,exports.PliCnfCloningService=PliCnfCloningService,exports.PliCnfCommitteePdfConfigTableConfigService=PliCnfCommitteePdfConfigTableConfigService,exports.PliCnfCommitteePdfGenStatusService=PliCnfCommitteePdfGenStatusService,exports.PliCnfCommitteeService=PliCnfCommitteeService,exports.PliCnfCommitteeVisualizationModeService=PliCnfCommitteeVisualizationModeService,exports.PliCnfConfigMinisiteService=PliCnfConfigMinisiteService,exports.PliCnfConfigurationCreditStudyService=PliCnfConfigurationCreditStudyService,exports.PliCnfDocumentManagementService=PliCnfDocumentManagementService,exports.PliCnfDynamicKeysAssignService=PliCnfDynamicKeysAssignService,exports.PliCnfEvaluationTaskService=PliCnfEvaluationTaskService,exports.PliCnfEvaluationTemplateService=PliCnfEvaluationTemplateService,exports.PliCnfFormEditService=PliCnfFormEditService,exports.PliCnfFormMultiaplicacionService=PliCnfFormMultiaplicacionService,exports.PliCnfGuaranteeDocumentsTemplateService=PliCnfGuaranteeDocumentsTemplateService,exports.PliCnfGuaranteeTokenService=PliCnfGuaranteeTokenService,exports.PliCnfHeaderService=PliCnfHeaderService,exports.PliCnfIndicatorService=PliCnfIndicatorService,exports.PliCnfInformationSystemService=PliCnfInformationSystemService,exports.PliCnfInteractionService=PliCnfInteractionService,exports.PliCnfLetterTemplateService=PliCnfLetterTemplateService,exports.PliCnfLetterTemplateTypeService=PliCnfLetterTemplateTypeService,exports.PliCnfLookAndFeelService=PliCnfLookAndFeelService,exports.PliCnfMenuFormService=PliCnfMenuFormService,exports.PliCnfMigrationPlisFieldBudgetService=PliCnfMigrationPlisFieldBudgetService,exports.PliCnfMigrationPlisFieldService=PliCnfMigrationPlisFieldService,exports.PliCnfMigrationStatusPlisService=PliCnfMigrationStatusPlisService,exports.PliCnfPageSectionFormService=PliCnfPageSectionFormService,exports.PliCnfPageSubProcessService=PliCnfPageSubProcessService,exports.PliCnfPdfsService=PliCnfPdfsService,exports.PliCnfProfileFormService=PliCnfProfileFormService,exports.PliCnfProfileUserService=PliCnfProfileUserService,exports.PliCnfProjectSummaryService=PliCnfProjectSummaryService,exports.PliCnfScenarioService=PliCnfScenarioService,exports.PliCnfSegmentationService=PliCnfSegmentationService,exports.PliCnfSnapshotTokenServices=PliCnfSnapshotTokenServices,exports.PliCnfStatusFlowInteractionService=PliCnfStatusFlowInteractionService,exports.PliCnfStatusFlowService=PliCnfStatusFlowService,exports.PliCnfSupportDocumentService=PliCnfSupportDocumentService,exports.PliCnfSurveyDocumentService=PliCnfSurveyDocumentService,exports.PliCnfSurveyPdfService=PliCnfSurveyPdfService,exports.PliCnfSurveyService=PliCnfSurveyService,exports.PliCnfTaskGroupService=PliCnfTaskGroupService,exports.PliCnfTextCategoryService=PliCnfTextCategoryService,exports.PliCnfTextOptionService=PliCnfTextOptionService,exports.PliCnfTextService=PliCnfTextService,exports.PliCnfTypeTextService=PliCnfTypeTextService,exports.PliCnfUniversityArticleService=PliCnfUniversityArticleService,exports.PliCnfUserCalendarService=PliCnfUserCalendarService,exports.PliCnfUserWorkspaceService=PliCnfUserWorkspaceService,exports.PliCnfValproKeysService=PliCnfValproKeysService,exports.PliCnfWorkspaceSegmentationService=PliCnfWorkspaceSegmentationService,exports.PliMultipleValueFilterService=PliMultipleValueFilterService,exports.PliPromocionUsernameService=PliPromocionUsernameService,exports.PliSegActionUserService=PliSegActionUserService,exports.PliSegmentationService=PliSegmentationService,exports.PliTagAssignmentService=PliTagAssignmentService,exports.PliTagService=PliTagService,exports.PliUserService=PliUserService,exports.PppService=PppService,exports.ProfileService=ProfileService,exports.ProgressBarComponent=ProgressBarComponent,exports.ProgressBarService=ProgressBarService,exports.PromotionScoreService=PromotionScoreService,exports.SegmentationService=SegmentationService,exports.SegmentationTokensComponent=SegmentationTokensComponent,exports.SegmentationTokensService=SegmentationTokensService,exports.SegmentationUserService=SegmentationUserService,exports.SelectPppComponent=SelectPppComponent,exports.SendApplicationService=SendApplicationService,exports.SesionFormService=SesionFormService,exports.SesionService=SesionService,exports.ShowHideColumnsTableComponent=ShowHideColumnsTableComponent,exports.SpinnerService=SpinnerService,exports.SponsorshipLetterService=SponsorshipLetterService,exports.StatusService=StatusService,exports.SummaryBudgetService=SummaryBudgetService,exports.SurveyMetadataService=SurveyMetadataService,exports.SurveyQueueService=SurveyQueueService,exports.SurveyService=SurveyService,exports.TasaCambioService=TasaCambioService,exports.ThousandsPipe=ThousandsPipe,exports.TokenComponent=TokenComponent,exports.TokenService=TokenService,exports.TokenTransformationService=TokenTransformationService,exports.TokensCalculatorComponent=TokensCalculatorComponent,exports.UniversityService=UniversityService,exports.UploadDocumentsService=UploadDocumentsService,exports.UserService=UserService,exports.VersionCommons=VersionCommons,exports.VisualizationCommitteeService=VisualizationCommitteeService,exports.ɵa=SnapshotTokenComponent,exports.ɵb=VERSION,Object.defineProperty(exports,"__esModule",{value:!0})}));
17
17
  //# sourceMappingURL=ng-pli-commons.umd.min.js.map