info-library 2.10.48 → 2.10.49
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,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("text-mask-core/dist/textMaskCore"),require("@angular/router"),require("@angular/common/http"),require("rxjs"),require("rxjs/operators"),require("@angular/material/dialog"),require("@angular/cdk/overlay"),require("@angular/forms"),require("@angular/material/core"),require("@angular/material-moment-adapter"),require("text-mask-addons/dist/createAutoCorrectedDatePipe"),require("@angular/platform-browser"),require("@angular/cdk/keycodes"),require("@angular/common"),require("ng2-currency-mask"),require("@angular/material/card"),require("@angular/material/icon"),require("@angular/material/form-field"),require("@angular/material/input"),require("@angular/material/list"),require("@angular/material/select"),require("@angular/material/checkbox"),require("@angular/material/radio"),require("@angular/material/button"),require("@angular/material/datepicker"),require("@angular/material/progress-bar"),require("@angular/material/tooltip"),require("@angular/material/autocomplete"),require("@kolkov/angular-editor"),require("@angular/material/chips"),require("text-mask-addons/dist/emailMask")):"function"==typeof define&&define.amd?define("info-library",["exports","@angular/core","text-mask-core/dist/textMaskCore","@angular/router","@angular/common/http","rxjs","rxjs/operators","@angular/material/dialog","@angular/cdk/overlay","@angular/forms","@angular/material/core","@angular/material-moment-adapter","text-mask-addons/dist/createAutoCorrectedDatePipe","@angular/platform-browser","@angular/cdk/keycodes","@angular/common","ng2-currency-mask","@angular/material/card","@angular/material/icon","@angular/material/form-field","@angular/material/input","@angular/material/list","@angular/material/select","@angular/material/checkbox","@angular/material/radio","@angular/material/button","@angular/material/datepicker","@angular/material/progress-bar","@angular/material/tooltip","@angular/material/autocomplete","@kolkov/angular-editor","@angular/material/chips","text-mask-addons/dist/emailMask"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["info-library"]={},t.ng.core,t.textMaskCore,t.ng.router,t.ng.common.http,t.rxjs,t.rxjs.operators,t.ng.material.dialog,t.ng.cdk.overlay,t.ng.forms,t.ng.material.core,t.ng.materialMomentAdapter,t.createAutoCorrectedDatePipe,t.ng.platformBrowser,t.ng.cdk.keycodes,t.ng.common,t.ng2CurrencyMask,t.ng.material.card,t.ng.material.icon,t.ng.material.formField,t.ng.material.input,t.ng.material.list,t.ng.material.select,t.ng.material.checkbox,t.ng.material.radio,t.ng.material.button,t.ng.material.datepicker,t.ng.material.progressBar,t.ng.material.tooltip,t.ng.material.autocomplete,t.angularEditor,t.ng.material.chips,t.emailMask)}(this,(function(t,e,n,i,o,a,s,r,l,c,u,d,p,h,m,g,f,b,v,x,y,I,w,_,k,C,S,M,T,A,D,E,P){"use strict";function O(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var V=O(p),L=O(P),N=new e.InjectionToken("DICTIONARIES_CONFIG"),z=new e.InjectionToken("APICONTROLLER_CONFIG"),R=function(){this.production=!1,this.webapiUrl="",this.processingUrl="",this.theme="",this.dictionary="",this.ux=2,this.style="",this.topMenu=!1,this.enabledPrime=!1};var U=function(t,e,n){this.messages=[],this.name=null,this.description=null,this.total=0,this.parentId=null,this.referenceGuid=null,this.external=!1,null!=t&&(null!=t.Name&&""!=t.Name&&(this.name=t.Name),null!=t.Description&&""!=t.Description&&(this.description=t.Description),null!=t.Total&&(this.total=t.Total),null!=t.Success&&(e=t.Success),t.Messages&&(n=t.Messages),null!=t.ParentId&&(this.parentId=t.ParentId),null!=t.ReferenceGuid&&(this.referenceGuid=t.ReferenceGuid),null!=t.External&&(this.external=t.External),this.data=t.Data),this.success=null==e||e,this.messages=n,null!=this.messages&&this.messages!=[]||(this.messages=new Array)};var j=function(t,e){this.data=null,this.button=t,this.data=e};var F=function(){this.yesOrNo=!1,this.message="",this.width=450,this.labelOk="Ok",this.labelCancel="Cancelar",this.labelAux=null,this.colorOk="",this.colorCancel="",this.colorAux="",this.processingMode=!1,this.disableButtonCancel=!1};var H={None:-1,View:0,New:1,Edit:2,Delete:3,Search:4};H[H.None]="None",H[H.View]="View",H[H.New]="New",H[H.Edit]="Edit",H[H.Delete]="Delete",H[H.Search]="Search";var q={None:0,Ok:1,Yes:2,No:3,Cancel:4,Save:5,Special:6,Aux:7};q[q.None]="None",q[q.Ok]="Ok",q[q.Yes]="Yes",q[q.No]="No",q[q.Cancel]="Cancel",q[q.Save]="Save",q[q.Special]="Special",q[q.Aux]="Aux";var B=function(){function t(){this.modalAction=q.None,this.modalComponent=null,this.api=null}return t.prototype.set=function(t,e){switch(this.data=e,this.readonly=t==H.View,this.pageAction=t,t){case H.New:this.title="Novo";break;case H.Search:this.title="Pesquisar";break;case H.View:this.title="Visualizar";break;case H.Edit:this.title="Editar";break;case H.Delete:this.title="Remover";break;default:this.title=""}},t}();var G=function(t,e,n,i,o,a,s,r,l,c){void 0===o&&(o=null),void 0===a&&(a=null),void 0===s&&(s=null),void 0===r&&(r=null),void 0===l&&(l=null),void 0===c&&(c=!0),this.modalComponent=null,this.widthModalComponent=500,this.api=null,this.method=null,this.showOnlyClass=null,this.disabledField=null,this.label=t,this.passId=e,this.icon=n,this.navigateTo=i,this.modalComponent=o,this.widthModalComponent=a,this.api=s,this.method=r,this.disabledField=l,this.confirm=c};var Y=function(t,e,n){this.method=null,this.label=t,this.icon=e,this.method=n};var $=function(){this.url="",this.model=null,this.index=0,this.enabledSearch=!1};var K=function(t,e,n){this.success=!1,this.success=t,this.messages=e,this.data=n};var W=function(t,e,n,i,o){void 0===n&&(n="chevron_right"),void 0===i&&(i=null),void 0===o&&(o=700),this.label="",this.url="",this.icon="",this.modal=null,this.modalwidth=700,this.label=t,this.url=e,this.icon=n,this.modal=i,this.modalwidth=o};var X=function(){};var J=function(){function t(){this.TokenKey="token",this.SessionKey="sessao",this.ConfigIsNull=!0,this.Themes=[],this.Config=new R,this.UnificarTopbar=!0,this.MenuMin=!1,this.ModoPrime=!1,this.Menu=[],this.ShortcutApi=null}return t.prototype.setConfig=function(t){this.Config=t,this.ConfigIsNull=!1},t}();var Q=function(){this.Permissoes=[],this.Empresas=[],this.Parametros=null};var Z=function(){this.Count=0,this.Itens=[]};var tt=function(){};var et={Ok:0,Cancel:1,Yes:2,No:3,Aux:4};et[et.Ok]="Ok",et[et.Cancel]="Cancel",et[et.Yes]="Yes",et[et.No]="No",et[et.Aux]="Aux";var nt=function(){function t(t,e){this._translations=t,this._plataforma=e,this._key="currentLang";var n=localStorage.getItem(this._key);this._currentLang=null==n?"pt-br":n}return Object.defineProperty(t.prototype,"currentLang",{get:function(){return this._currentLang},enumerable:!1,configurable:!0}),t.prototype.set=function(t){this._currentLang=t,localStorage.setItem(this._key,t)},t.prototype.translate=function(t){var e=t;return this._translations[this.currentLang]&&this._translations[this.currentLang].Values&&this._translations[this.currentLang].Values[t]?(this._translations[this.currentLang].Values[this._plataforma.Config.dictionary]||{})[t]||this._translations[this.currentLang].Values[t]:e},t.prototype.getCalendar=function(){if(this._translations[this.currentLang]&&this._translations[this.currentLang].Calendar)return this._translations[this.currentLang].Calendar},t.prototype.instant=function(t){return this.translate(t)},t}();nt.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],nt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[N]}]},{type:J}]},nt.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new nt(e.ɵɵinject(N),e.ɵɵinject(J))},token:nt,providedIn:"root"});var it=function(){function t(t){this._translate=t}return t.prototype.transform=function(t,e){if(t)return this._translate.instant(t)},t}();it.decorators=[{type:e.Pipe,args:[{name:"translate",pure:!1}]}],it.ctorParameters=function(){return[{type:nt}]};var ot=function(){function t(){}return t.prototype.transform=function(t,e){if(t){var i=[];return i="phone"==e?["(",/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/]:"cel"==e?["(",/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/]:"cep"==e?[/\d/,/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/]:"cpf"==e?[/\d/,/\d/,/\d/,".",/\d/,/\d/,/\d/,".",/\d/,/\d/,/\d/,"-",/\d/,/\d/]:"cnpj"==e?[/\d/,/\d/,".",/\d/,/\d/,/\d/,".",/\d/,/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/]:Array.from(e).map((function(t){return"0"==t?/\d/:t})),n.conformToMask(t,i,{guide:!1}).conformedValue}},t}();ot.decorators=[{type:e.Pipe,args:[{name:"mask",pure:!1}]}],ot.ctorParameters=function(){return[]};function at(t,e,n,i){return new(n||(n=Promise))((function(o,a){function s(t){try{l(i.next(t))}catch(t){a(t)}}function r(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,r)}l((i=i.apply(t,e||[])).next())}))}function st(t,e){var n,i,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function r(a){return function(r){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,i=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],i=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,r])}}}Object.create;Object.create;var rt=function(){function t(t,e,n,i){this._apiController=t,this._http=e,this._router=n,this._plataforma=i,this._key="token"}return t.prototype.getToken=function(){return this.token=localStorage.getItem(this._key),null==this.token?(this._router.navigateByUrl(""),""):"Bearer "+this.token},t.prototype.getHeaderToken=function(){return(new o.HttpHeaders).set("Authorization",this.getToken())},t.prototype.getAPIUrl=function(t){var e="";return e="number"==typeof t?this._apiController[t].toString():null==t?"":t.toString(),this._plataforma.Config.webapiUrl+(e.replace("_","/")+"/").toLowerCase()},t.prototype.getNoToken=function(t,e,n){var i=this;return this._http.get(this.getAPIUrl(t)+(null==e?"":e.toLowerCase())+(null==n?"":"?"+n.replace(/null/g,"").replace(/undefined/g,""))).pipe(s.map((function(t){return new U(t)})),s.catchError((function(t){return i.errorHandling(t)})))},t.prototype.get=function(t,e,n){var i=this;return this._http.get(this.getAPIUrl(t)+(null==e?"":e.toLowerCase())+(null==n?"":"?"+n.replace(/null/g,"").replace(/undefined/g,"")),{headers:this.getHeaderToken()}).pipe(s.map((function(t){return new U(t)})),s.catchError((function(t){return i.errorHandling(t)})))},t.prototype.getById=function(t,e){var n=this;return this._http.get(this.getAPIUrl(t)+e.toString(),{headers:this.getHeaderToken()}).pipe(s.map((function(t){return new U(t)})),s.catchError((function(t){return n.errorHandling(t)})))},t.prototype.postNoToken=function(t,e,n){var i=this;return this._http.post(this.getAPIUrl(t)+n.toLowerCase(),e).pipe(s.map((function(t){return new U(t)})),s.catchError((function(t){return i.errorHandling(t)})))},t.prototype.post=function(t,e,n){var i=this;return this._http.post(this.getAPIUrl(t)+(null==n?"":n),e,{headers:this.getHeaderToken()}).pipe(s.map((function(t){return new U(t)})),s.catchError((function(t){return i.errorHandling(t,!1)})))},t.prototype.delete=function(t,e,n){var i=this;return null!=e&&null!=e||alert("Id não informado"),this._http.delete(this.getAPIUrl(t)+(null==n?"":n.toLowerCase())+"?id="+e.toString(),{headers:this.getHeaderToken()}).pipe(s.map((function(t){return new U(t)})),s.catchError((function(t){return i.errorHandling(t)})))},t.prototype.deleteByModel=function(t,e,n){var i=this,o={headers:this.getHeaderToken(),body:e};return this._http.delete(this.getAPIUrl(t)+(null==n?"":n.toLowerCase()),o).pipe(s.map((function(t){return new U(t)})),s.catchError((function(t){return i.errorHandling(t)})))},t.prototype.request=function(t,e,n,i){for(var o=this,a=new FormData,r=0;r<e.length;r++)a.append(e[r].name,e[r]);return this._http.request("POST",this.getAPIUrl(t)+(null==n?"":n)+(null==i?"":"?"+i),{headers:this.getHeaderToken(),body:a}).pipe(s.map((function(t){return new U(t)})),s.catchError((function(t){return o.errorHandling(t)})))},t.prototype.errorHandling=function(t,e){void 0===e&&(e=!0),401==t.status?document.location.href="/#/login":e&&(document.location.href="/#/500");var n=new Array(t.message);return a.of(new U(null,!1,n))},t}();rt.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],rt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[z]}]},{type:o.HttpClient},{type:i.Router},{type:J}]},rt.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new rt(e.ɵɵinject(z),e.ɵɵinject(o.HttpClient),e.ɵɵinject(i.Router),e.ɵɵinject(J))},token:rt,providedIn:"root"});var lt=function(){function t(t,e,n,i,o,a){this._router=t,this._http=e,this._sessao=n,this._plataforma=i,this._dataService=o,this._modal=a,this._key="token",this._keySessao="sessao",this._sessionTime=null}return t.prototype.getSessao=function(){return this._sessao},t.prototype.getPlatform=function(){return this._plataforma},t.prototype.canActivate=function(t,e){var n=this;if(!this.isLogged())return this.logout(),!0;var i=t.data.URL||e.url;return this.refreshSessionTime(),this.definePaginaAtiva(i),this.getPermission(i,!0).pipe(s.map((function(){return"/"==i||(n.hasPermission(i)||n._router.navigateByUrl("permission"),i.indexOf("novo")>-1&&!n.hasPermission(i,"new")&&n._router.navigateByUrl("permission"),i.indexOf("visualizar")<-1&&null!=t.paramMap.get("id")&&!n.hasPermission(i,"edit")&&n._router.navigateByUrl("permission")),!0}),s.catchError((function(t){return 401==t.status&&n.logout(),a.of(!0)})))).pipe(s.switchMap((function(e){return at(n,void 0,void 0,(function(){var e,n,i;return st(this,(function(o){switch(o.label){case 0:return(e=t.data.Permissao)?(n=(e[2]||"").replace(RegExp(/\{(.*?)\}/,"g"),(function(e,n){return t.params[n]})),[4,this._dataService.get(e[0],e[1],n).toPromise()]):[2,!0];case 1:return(i=o.sent()).success&&1==i.data||this._router.navigateByUrl("permission"),[2,!0]}}))}))})))},t.prototype.isLogged=function(){return null!=localStorage.getItem(this._key)},t.prototype.refreshSessionTime=function(){var t=this;if(clearInterval(this._sessionTimeInterval),this._sessao.TempoInatividade<=0)this._sessionTime=null;else{if(this._sessionTime=this._sessao.TempoInatividade,this._sessao.TempoInatividade<=0)return void(this._sessionTime=null);this._sessionTimeInterval=setInterval((function(){null==t._sessionTime&&(t._sessionTime=t._sessao.TempoInatividade,null==t._sessionTime||t._sessionTime<=0)?t.refreshSessionTime():t._sessionTime>0?t._sessionTime--:(clearInterval(t._sessionTimeInterval),t._modal.open(ct,{data:null,disableClose:!0,width:"400px"}).afterClosed().subscribe((function(e){clearInterval(t._sessionTimeInterval),null==e?t.logout():e.modalAction==q.Yes?t.refreshSessionTime():t.logout()})))}),1e3)}},t.prototype.login=function(t,e,n,i){var o=this;return void 0===n&&(n=null),void 0===i&&(i=null),this.removeSessao(),this._http.post(this._plataforma.Config.webapiUrl+"centrocontrole/usuario/autenticar",{Usuario:t,Senha:e,ReCaptchaToken:n,Codigo2FA:i}).pipe(s.map((function(t){return t.Success&&null!=t.Data&&localStorage.setItem(o._key,t.Data.Token),new K(t.Success,t.Messages,t.Data)})),s.catchError((function(t){return o.errorHandling(t)})))},t.prototype.trocarEmpresa=function(t,e){var n=this;return this._http.post(this._plataforma.Config.webapiUrl+"centrocontrole/usuario/trocarempresa",{EmpresaId:e},{headers:this._dataService.getHeaderToken()}).pipe(s.map((function(t){return t.Success&&null!=t.Data&&localStorage.setItem(n._key,t.Data),new K(t.Success,t.Messages,t.Data)})),s.catchError((function(t){return n.errorHandling(t)})))},t.prototype.clonar=function(t){var e=this;return this._http.post(this._plataforma.Config.webapiUrl+"centrocontrole/usuario/clonar",{Usuario:t},{headers:this._dataService.getHeaderToken()}).pipe(s.map((function(t){return t.Success&&null!=t.Data&&localStorage.setItem(e._key,t.Data),new K(t.Success,t.Messages,t.Data)})),s.catchError((function(t){return e.errorHandling(t)})))},t.prototype.logout=function(){this.removeSessao(),this._router.navigateByUrl("login").then((function(t){location.reload()}))},t.prototype.getPermissions=function(t,e){var n=this;return void 0===e&&(e=!1),this._http.get(this._plataforma.Config.webapiUrl+"centrocontrole/usuario/getpermissao?url="+t+"&logatividade="+e.toString(),{headers:this._dataService.getHeaderToken()}).pipe(s.map((function(t){return new K(t.Success,t.Messages,t.Data)})),s.catchError((function(t){return n.errorHandling(t)})))},t.prototype.setTrocaSenha=function(t){var e=this;return this._http.post(this._plataforma.Config.webapiUrl+"centrocontrole/usuario/TrocarSenha",t,{headers:this._dataService.getHeaderToken()}).pipe(s.map((function(t){return new K(t.Success,t.Messages,t.Data)})),s.catchError((function(t){return e.errorHandling(t)})))},t.prototype.setRecuperarSenha=function(t){var e=this;return this._http.post(this._plataforma.Config.webapiUrl+"centrocontrole/usuario/RecuperarSenha",t,{headers:this._dataService.getHeaderToken()}).pipe(s.map((function(t){return new K(t.Success,t.Messages,t.Data)})),s.catchError((function(t){return e.errorHandling(t)})))},t.prototype.setResetarSenha=function(t){var e=this;return this._http.post(this._plataforma.Config.webapiUrl+"centrocontrole/usuario/ResetarSenha",t).pipe(s.map((function(t){return new K(t.Success,t.Messages,t.Data)})),s.catchError((function(t){return e.errorHandling(t)})))},t.prototype.getLoginResources=function(){var t=this;return this._http.get(this._plataforma.Config.webapiUrl+"centrocontrole/app/GetLoginResources").pipe(s.map((function(t){return new K(t.Success,t.Messages,t.Data)})),s.catchError((function(e){return t.errorHandling(e)})))},t.prototype.hasPermission=function(t,e){if(void 0===e&&(e="view"),"/"==t&&"view"==e)return!0;var n=this.getUrlGenerica(t);return this._sessao.Permissoes.some((function(t){return t.URL==n&&t.ChaveFuncionalidade==e&&t.Acesso}))},t.prototype.getPermission=function(t,e){var n=this;void 0===e&&(e=!1);var i=this.getUrlGenerica(t);return this._sessao.Permissoes.some((function(t){return t.URL==i}))?e?this.validaSessao(t).pipe(s.map((function(t){return t.success||n.logout(),!0})),s.catchError((function(t){return 401==t.status&&n.logout(),a.of(!0)}))):new a.Observable((function(t){t.next(!0),t.complete()})):this.getPermissions(i,e).pipe(s.map((function(t){if(t.success){if(null==t.data)return n.logout(),!0;t.data.forEach((function(t){0==n._sessao.Permissoes.filter((function(e){return e.URL==t.URL&&e.ChaveFuncionalidade==t.ChaveFuncionalidade})).length&&n._sessao.Permissoes.push(t)})),t.data.some((function(t){return t.URL==i})),localStorage.setItem(n._keySessao,JSON.stringify(n._sessao))}return!0})),s.catchError((function(t){return 401==t.status&&n.logout(),a.of(!0)})))},t.prototype.validaSessao=function(t){var e=this;return this._http.get(this._plataforma.Config.webapiUrl+"centrocontrole/usuario/validasessao?url="+t,{headers:this._dataService.getHeaderToken()}).pipe(s.map((function(t){return new K(!0===t,"",t)})),s.catchError((function(t){return e.errorHandling(t)})))},t.prototype.removeSessao=function(){Object.keys(localStorage).forEach((function(t){t.includes("Dashboard")||delete localStorage[t]}))},t.prototype.definePaginaAtiva=function(t){if(null!=this._plataforma.Menu&&null!=t){var e=t.substring(1).replace(/-/g,"").toLowerCase().split("/"),n=e.length>0?e[0].toString():t;if(n.indexOf("ashboard")>-1)this._plataforma.PaginaAtiva={Icone:"widgets",Titulo:"Dashboard"};else{var i=this._plataforma.Menu.filter((function(t){return t.Title.toLowerCase().indexOf(n)>-1}));null!=i&&i.length>0?this._plataforma.PaginaAtiva={Icone:i[0].Icon,Titulo:i[0].Title}:this._plataforma.PaginaAtiva={Icone:"security",Titulo:"Plataforma"}}}else this._plataforma.PaginaAtiva=null},t.prototype.getUrlGenerica=function(t){for(var e="",n=t.split("/"),i=0;i<n.length&&(isNaN(parseFloat(n[i]))&&!this.isGuid(n[i])&&"novo"!=n[i].toLowerCase());i++)e+="/"+n[i];return e.substring(1)},t.prototype.errorHandling=function(t){if(401==t.status)this.logout();else{if(500!=t.status)return null!=t.error&&null!=t.error.error_description?a.of(new K(!1,t.error.error_description)):a.of(new K(!1,"Houve um problema e não foi possível conectar"));this._router.navigateByUrl("500")}},t.prototype.isGuid=function(t){return null!==(t||"").match("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")},t}();lt.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],lt.ctorParameters=function(){return[{type:i.Router},{type:o.HttpClient},{type:Q},{type:J},{type:rt},{type:r.MatDialog}]},lt.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new lt(e.ɵɵinject(i.Router),e.ɵɵinject(o.HttpClient),e.ɵɵinject(Q),e.ɵɵinject(J),e.ɵɵinject(rt),e.ɵɵinject(r.MatDialog))},token:lt,providedIn:"root"});var ct=function(){function t(t){this._ref=t,this.time=15}return t.prototype.ngOnInit=function(){var t=this;clearInterval(this.interval),this.interval=setInterval((function(){t.time>0?t.time--:(t.ativo(!1),clearInterval(t.interval))}),1e3)},t.prototype.ativo=function(t){this._ref.close({modalAction:t?q.Yes:q.No})},t}();ct.decorators=[{type:e.Component,args:[{template:'\n\t\t<info-modal modaltitle="Inatividade" (onsave)="ativo(true)" labelsubmit="Sim" labelcancel="({{ time }}) {{ \'Nao\' | translate }}">\n <label style="font-size:130%">{{ \'VoceAindaEstaUtilizandoPlataforma\' | translate }}</label>\n\t\t</info-modal>\n\t'}]}],ct.ctorParameters=function(){return[{type:r.MatDialogRef}]};var ut=function(){function t(t,e,n){this._overlay=t,this._plataform=e,this._session=n}return t.prototype.setTheme=function(t){if(null!=this._plataform.Themes){var e=this._plataform.Themes.find((function(e){return e.name==t}));this._plataform.UnificarTopbar=null!=e&&e.unificarTopbar}var n=this._overlay.getContainerElement().classList,i=Array.from(n).filter((function(t){return t.includes("-theme")}));i&&i.length>0&&n.remove(i),n.remove("alternative-layout"),n.add(t),document.body.removeAttribute("class"),document.body.classList.add(t),this._plataform.UnificarTopbar&&document.body.classList.add("alternative-layout"),this._plataform.MenuMin&&document.body.classList.add("menu-min"),this._plataform.ModoPrime&&document.body.classList.add("modo-prime"),document.body.classList.add("ux"+(this._plataform.Config.ux?this._plataform.Config.ux:2)),sessionStorage.setItem("at",t),localStorage.setItem("at",t)},t.prototype.setThemeByLoggedCompany=function(){this.setTheme(this._session.TemaId>0?"_"+this._session.TemaId+"-theme":"default-theme")},t.prototype.setMenuMin=function(t){void 0===t&&(t=null),this._plataform.MenuMin=null==t?!this._plataform.MenuMin:t,document.body.classList.remove("menu-min"),this._plataform.MenuMin&&document.body.classList.add("menu-min"),sessionStorage.setItem("mm",this._plataform.MenuMin.toString()),localStorage.setItem("mm",this._plataform.MenuMin.toString())},t.prototype.setModePrime=function(t){void 0===t&&(t=null),this._plataform.ModoPrime=null==t?!this._plataform.ModoPrime:t,document.body.classList.remove("modo-prime"),this._plataform.ModoPrime&&document.body.classList.add("modo-prime"),sessionStorage.setItem("mp",this._plataform.ModoPrime.toString()),localStorage.setItem("mp",this._plataform.ModoPrime.toString())},t}();ut.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],ut.ctorParameters=function(){return[{type:l.OverlayContainer},{type:J},{type:Q}]},ut.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new ut(e.ɵɵinject(l.OverlayContainer),e.ɵɵinject(J),e.ɵɵinject(Q))},token:ut,providedIn:"root"});var dt=function(){function t(t,e,n){this._http=t,this._plataforma=e,this._themeService=n}return t.prototype.initialize=function(){var t=this;return new Promise((function(e,n){t._http.get("config.json").subscribe((function(n){var i=sessionStorage.getItem("at")||localStorage.getItem("at"),o=sessionStorage.getItem("mm")||localStorage.getItem("mm"),a=sessionStorage.getItem("mp")||localStorage.getItem("mp");t._plataforma.Config=n,t._plataforma.ConfigIsNull=!1,null!=t._plataforma.Config.ux&&null!=t._plataforma.Config.ux||(t._plataforma.Config.ux=2),2==t._plataforma.Config.ux&&(o="false");var s=document.createElement("link");if(s.href=t._plataforma.Config.webapiUrl.replace(/\/api\/$/gi,"")+"/layout/temas.css",s.type="text/css",s.rel="stylesheet",document.head.appendChild(s),null!=t._plataforma.Config.style){var r=document.createElement("link");r.href="/assets/"+t._plataforma.Config.style+"/style.css",r.type="text/css",r.rel="stylesheet",document.head.appendChild(r)}null!=i&&null!=i||(i="_"+t._plataforma.Config.theme+"-theme"),t._themeService.setTheme(i||"default-theme"),t._themeService.setMenuMin("true"==o),t._themeService.setModePrime("true"==a),e(n)}))}))},t}();dt.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],dt.ctorParameters=function(){return[{type:o.HttpClient},{type:J},{type:ut}]},dt.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new dt(e.ɵɵinject(o.HttpClient),e.ɵɵinject(J),e.ɵɵinject(ut))},token:dt,providedIn:"root"});var pt=function(){function t(){this.messages=[]}return t.prototype.onClose=function(){this.messages=[]},t}();pt.decorators=[{type:e.Component,args:[{selector:"info-alert",template:'\n <div *ngIf="messages != [] && messages.length > 0">\n <div class="alert" #alert >\n <h5>{{ \'Atencao\' | translate }}</h5>\n <ng-content></ng-content>\n <ul>\n <li *ngFor="let m of messages"><mat-icon>error_outline</mat-icon><label [innerHTML]="m | translate"></label></li>\n </ul>\n <a class="close" (click)="onClose()"><i class="material-icons">clear</i></a>\n </div>\n </div>\n ',styles:[":host{bottom:70px;display:block;margin-left:280px;min-width:350px;position:fixed;right:30px;z-index:100}:host:last-child{margin-bottom:0}:host .alert{box-shadow:0 5px 5px 2px rgba(0,0,0,.25);padding:1.04762rem 1.57143rem;position:relative}:host .alert h5{border-bottom:1px solid hsla(0,0%,100%,.1);margin:0 -20px 5px;padding-bottom:10px;text-align:center}:host .alert ul{list-style:none;margin:0;padding:0}:host .alert ul li{border-bottom:1px solid hsla(0,0%,100%,.1);padding:7px 5px}:host .alert ul li:last-child{border-bottom:none}:host .alert .close{color:#fff;font-size:20px;line-height:1;position:absolute;right:10px;top:15px;transition:background .2s ease-in-out,color .2s ease-in-out}:host .alert .close:hover{color:#ddd;cursor:pointer}:host .alert .close .material-icons{color:inherit;font-size:inherit;margin:0;vertical-align:top}:host .alert /deep/ .material-icons{color:main-color(A100);margin:0 1.57143rem 0 0;vertical-align:top}"]}]}],pt.propDecorators={messages:[{type:e.Input}]};var ht=function(){function t(t){this._dataAcess=t,this.control=new c.FormControl,this.placeholder="",this.name="",this.required=!1,this.selectfirst=!1,this.disablednoregisters=!1,this.getdataonchange=!1,this.getdataonchangetime=300,this.api=null,this.method="getchavevalor",this.maxlist=10,this.startwith=!1,this.minchar=1,this.onselecteditem=new e.EventEmitter,this.selectedValue=null,this.initialized=!1,this._loading=!1,this._params=null,this._disabled=null,this._data=[]}return Object.defineProperty(t.prototype,"loading",{get:function(){return this._loading},set:function(t){this._loading=t,null==this._disabled?this._disabled=!1:""==this._disabled.toString()&&(this._disabled=!0),0==this._disabled&&this.setDisabledState(this.loading)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"params",{get:function(){return this._params},set:function(t){var e=this;this._params=t,this.initialized&&this.getData().subscribe((function(t){e.data=t.data,e.loading=!1}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{set:function(t){null==this._disabled&&(this._disabled=t),t?this.control.disable():this.control.enable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(t){var e=this;this._data=t,this.getdataonchange||setTimeout((function(){null!=e.selectedValue?null==e._data||null!=e._data&&0==e._data.length?(e.writeValue(null),e.selectedValue=null):e.writeValue(null==e.selectedValue.Id?e.selectedValue:e.selectedValue.Id):e.selectfirst&&null!=e.data&&e.data.length>0&&e.writeValue(e.data[0].Id),e.disablednoregisters&&e.setDisabledState(null==e.data||0==e.data.length)}),1e3)},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;(null==this.minchar||this.minchar<0)&&(this.minchar=1),this.name=this.placeholder.replace(/ /g,"")+Math.floor(1e3*Math.random()).toString(),this.getdataonchange?this.control.valueChanges.pipe(s.debounceTime(this.getdataonchangetime),s.distinctUntilChanged(),s.switchMap((function(e){return t.getData(e)}))).subscribe((function(e){return t.data=t.options=e.data})):(this.getData().subscribe((function(e){t.data=e.data,t.loading=!1})),this.control.valueChanges.subscribe((function(e){t.options=t.filter(e)})))},t.prototype.filter=function(t){if(null==t||t.length<this.minchar)return[];var e=null==t.Nome?t.toString().toLowerCase():t.Nome;return this.startwith?this.data.filter((function(t){return 0===t.Nome.toLowerCase().indexOf(e)||(null==t.Aux?"":t.Aux.toLowerCase()==e)})).slice(0,this.maxlist):this.data.filter((function(t){return t.Nome.toLowerCase().indexOf(e)>-1||(null==t.Aux?"":t.Aux.toLowerCase().indexOf(e)>-1)})).slice(0,this.maxlist)},t.prototype.getData=function(t){if(void 0===t&&(t=null),this.initialized=!0,null==this.api||""==this.api)return new a.Observable;this.loading=!this.getdataonchange,this.data=[];var e=this.params||"";if(this.getdataonchange){if(null==t||""==t)return new a.Observable;null!=e&&""!=e&&(e+="&");var n=(e+="nome="+(null==t.Nome?t.toString().toLowerCase():t.Nome)+"&take="+this.maxlist).split("&").map((function(t){var e;return(e={})[t.split("=")[0].charAt(0).toUpperCase()+t.split("=")[0].substring(1)]=t.split("=")[1],e})).reduce((function(t,e){return Object.assign(Object.assign({},t),e)}));return this._dataAcess.post(this.api,n,this.method)}return this._dataAcess.get(this.api,this.method,e)},t.prototype.onBlur=function(t){var e=this;setTimeout((function(){if(null==e.selectedValue||null==e.selectedValue.Id)if(t||null==e.selectedValue||""!=e.selectedValue.trim()){var n=e.filter(t);null!=n&&n.length>0?e.writeValue(n[0].Id):e.writeValue(null)}else e.writeValue(null)}),300)},t.prototype.onFocus=function(t){var e=this;null==this.minchar||0!=this.minchar||null!=t&&""!=t||setTimeout((function(){e.control.setValue("")}),200)},t.prototype.displayFn=function(t){if(null==t||null==t.Nome)return"";var e=t.Nome.indexOf("<small");return e>-1?t.Nome.substring(0,e).trim():t.Nome},t.prototype.writeValue=function(t){var e=this.data.find((function(e){return e.Id==t}));this.control.setValue(e),null!=t&&null==e&&(this.selectedValue=t),null!=this.onChange&&this.onChange(t),null!=this.onselecteditem&&this.onselecteditem.emit(null==this.data?null:this.data.find((function(e){return e.Id==t})))},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=!(!this.disablednoregisters||null!=this.data&&0!=this.data.length)||t},t}();ht.decorators=[{type:e.Component,args:[{selector:"info-autocomplete",template:'<mat-form-field>\r\n <input matInput type="text" [(ngModel)]="selectedValue" [placeholder]="placeholder | translate" [formControl]="control" [matAutocomplete]="auto" \r\n [required]="required" (blur)="onBlur($event.target.value)" (focus)="onFocus($event.target.value)" #inputAuto>\r\n\r\n <mat-autocomplete #auto="matAutocomplete" [displayWith]="displayFn">\r\n <mat-option *ngFor="let option of options" [value]="option" (onSelectionChange)="writeValue(option.Id)" [innerHTML]="option.Nome" >\r\n </mat-option>\r\n </mat-autocomplete>\r\n \r\n <mat-icon matSuffix style="color: #aaa">spellcheck</mat-icon>\r\n</mat-form-field>\r\n\r\n<section class="select-loading">\r\n <mat-progress-bar color="primary" mode="indeterminate" *ngIf="loading"></mat-progress-bar>\r\n</section>',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return ht})),multi:!0}],styles:[":host .select-loading{bottom:21px;height:1px;opacity:.3;position:relative}:host .select-loading .mat-progress-bar{height:1px;margin:0}:host mat-option small{font-style:italic;margin-left:10px}"]}]}],ht.ctorParameters=function(){return[{type:rt}]},ht.propDecorators={placeholder:[{type:e.Input}],name:[{type:e.Input}],required:[{type:e.Input}],selectfirst:[{type:e.Input}],disablednoregisters:[{type:e.Input}],getdataonchange:[{type:e.Input}],getdataonchangetime:[{type:e.Input}],api:[{type:e.Input}],method:[{type:e.Input}],maxlist:[{type:e.Input}],startwith:[{type:e.Input}],minchar:[{type:e.Input}],onselecteditem:[{type:e.Output}],loading:[{type:e.Input}],params:[{type:e.Input}],disabled:[{type:e.Input}],data:[{type:e.Input}]};var mt=function(){function t(t){this._dataService=t,this.readonly=!1,this.preload=!0,this.enabledcheckall=!0,this.labelselectall="Todos",this.labelsearch="Buscar",this.minchar=0,this.max=20,this.submessage="",this.value="",this.api=null,this.method=null,this.model=[],this.data=[],this.aux=null,this._params=null,this._paramsmodel=null,this.loading=!1,this.name=""}return Object.defineProperty(t.prototype,"params",{get:function(){return this._params},set:function(t){this._params=t,this.getData()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paramsmodel",{get:function(){return this._paramsmodel},set:function(t){this._paramsmodel=t,this.getData()},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.submessage="Serão exibidos somente os "+this.max+" primeiros itens encontrados",this.name="input-search-"+Math.floor(1e3*Math.random()).toString(),this.getData()},t.prototype.getData=function(){this.preload&&(null==this.params&&null!=this.paramsmodel?this.loadByParamModel(this.paramsmodel):this.load(this.params))},t.prototype.load=function(t){var e=this;void 0===t&&(t=null),null!=this.api&&(this.loading=!0,this.data=[],null==this.model&&(this.model=[]),this._dataService.get(this.api,this.method,t).subscribe((function(t){t.success&&(e.data=t.data),e.loading=!1})))},t.prototype.loadByParamModel=function(t){var e=this;void 0===t&&(t=null),null!=this.api&&(this.loading=!0,this.data=[],null==this.model&&(this.model=[]),this._dataService.post(this.api,t,this.method).subscribe((function(t){t.success&&(e.data=t.data),e.loading=!1})))},t.prototype.getModel=function(){var t=this;return null==this.model||0==this.model.length?[]:this.model.filter((function(e){return null==t.aux||e.Aux==t.aux}))},t.prototype.getFilteredData=function(){var t=this;return 0==this.data.length||this.value.length<this.minchar?[]:this.data.filter((function(e){return(null==t.aux||t.aux==e.Aux)&&0==t.model.filter((function(t){return t.Id==e.Id})).length&&e.Nome.toLowerCase().indexOf(t.value.toLowerCase())>-1})).slice(0,this.max)},t.prototype.existData=function(){var t=this;return null!=this.data&&this.data.length>0&&this.data.filter((function(e){return null==t.aux||t.aux==e.Aux})).length>0},t.prototype.add=function(t){null==this.model&&(this.model=[]),this.model.push({Id:t.Id,Nome:t.Nome,Aux:null==this.aux?t.Aux:this.aux,Descricao:null==t.Descricao?t.Nome:t.Descricao,Selecionado:!0})},t.prototype.selectAll=function(){var t=this,e=new Array;if(null!=this.aux)for(var n=0;n<this.model.length;n++)this.model[n].Aux==this.aux&&e.push(n);e.forEach((function(e){t.model.splice(e,1)}))},t}();mt.decorators=[{type:e.Component,args:[{selector:"info-big-checkbox",template:'<mat-selection-list class="col-md-12 mb-3">\r\n <mat-list-option class="silver" (click)="selectAll()" [selected]="getModel().length == 0" [disabled]="readonly" *ngIf="enabledcheckall">\r\n <label>{{ labelselectall | translate }}</label>\r\n </mat-list-option>\r\n\r\n <mat-list-option *ngFor="let item of getModel(); let i = index" [ngClass]="{ \'silver\': i % 2 == 1 }" [selected]="item.Selecionado" (click)="item.Selecionado = !item.Selecionado" [disabled]="readonly">\r\n <div *ngIf="item.Descricao == null" [innerHTML]="item.Nome"></div>\r\n <div *ngIf="item.Descricao != null" [innerHTML]="item.Descricao"></div>\r\n </mat-list-option>\r\n</mat-selection-list>\r\n \r\n<ng-container *ngIf="existData()" >\r\n <mat-form-field class="col-md-12 mb-4 input-search">\r\n <input matInput placeholder="{{ message | translate}}" [name]="name" autocomplete="false" [(ngModel)]="value" autocomplete="off" >\r\n <mat-icon matSuffix >search</mat-icon>\r\n <mat-hint class="mt-2">{{ submessage | translate}}</mat-hint>\r\n </mat-form-field>\r\n \r\n <mat-list class="col-md-12" >\r\n <mat-list-item *ngFor="let item of getFilteredData(); let i = index" [ngClass]="{ \'silver\': i % 2 == 0 }" (click)="add(item)">\r\n <div *ngIf="item.Descricao == null" [innerHTML]="item.Nome"></div>\r\n <div *ngIf="item.Descricao != null" [innerHTML]="item.Descricao"></div>\r\n <mat-icon>add_circle_outline</mat-icon>\r\n </mat-list-item>\r\n </mat-list>\r\n</ng-container>\r\n\r\n<div class="col-md-12 none-data" *ngIf="!existData()" >\r\n <mat-icon>info_outline</mat-icon> {{ \'NenhumItemEncontrado\' | translate }}\r\n</div>',styles:[":host mat-list-option{cursor:pointer;font-family:Open Sans,sans-serif;font-size:14px;padding:0!important}:host mat-list-option label{padding-left:5px}:host mat-list-item{cursor:pointer;font-size:14px;height:38px;padding:0 10px 0 20px}:host mat-list-item:hover{background:rgba(0,0,0,.04)}:host mat-list-item mat-icon{position:absolute;right:3px;top:8px}:host mat-list-item.silver,:host mat-list-option.silver{background:#f5f5f5}:host mat-list-item:hover,:host mat-list-option:hover{background:#eee}:host mat-list-item-content{padding-left:0!important}:host .none-data{background:#f5f5f5;color:#666;font-size:14px;padding:5px 0;text-align:center}:host .none-data mat-icon{font-size:18px;left:5px;margin-right:5px;top:4px}"]}]}],mt.ctorParameters=function(){return[{type:rt}]},mt.propDecorators={readonly:[{type:e.Input}],preload:[{type:e.Input}],enabledcheckall:[{type:e.Input}],labelselectall:[{type:e.Input}],labelsearch:[{type:e.Input}],minchar:[{type:e.Input}],max:[{type:e.Input}],message:[{type:e.Input}],submessage:[{type:e.Input}],value:[{type:e.Input}],api:[{type:e.Input}],method:[{type:e.Input}],model:[{type:e.Input}],data:[{type:e.Input}],aux:[{type:e.Input}],params:[{type:e.Input}],paramsmodel:[{type:e.Input}]};var gt=function(){function t(t){this._router=t,this.onclick=new e.EventEmitter}return t.prototype.onCardClick=function(){null==this.url||""==this.url?this.onclick.emit():this._router.navigateByUrl(this.url)},t}();gt.decorators=[{type:e.Component,args:[{selector:"info-card",template:'<mat-card (click)="onCardClick()">\r\n <mat-card-content>\r\n <h4>{{ label | translate }}</h4>\r\n <p [innerHTML]="description | translate"></p>\r\n <mark *ngIf="mark"><small>{{ mark }}</small></mark>\r\n </mat-card-content>\r\n <mat-card-footer>\r\n <mat-icon>{{icon}}</mat-icon>\r\n </mat-card-footer>\r\n</mat-card>',styles:[":host mat-card-footer{height:70px;overflow:hidden;position:relative}:host mat-card-footer mat-icon{bottom:36px;color:#aaa;font-size:5.71rem;opacity:.4;position:absolute;right:42px}"]}]}],gt.ctorParameters=function(){return[{type:i.Router}]},gt.propDecorators={label:[{type:e.Input}],description:[{type:e.Input}],mark:[{type:e.Input}],url:[{type:e.Input}],icon:[{type:e.Input}],onclick:[{type:e.Output}]};var ft=function(){function t(){this.label=null,this.description=null,this.icon=null,this.menu=[],this.cols=0,this.loadinit=!0,this.menuRows=[],this.col=12,this.colClass="col-md-"}return t.prototype.ngOnInit=function(){this.loadinit&&this.load()},t.prototype.load=function(){if(this.menuRows=new Array,this.menu=null==this.menu?null:this.menu.filter((function(t){return 1==t.permission})),null==this.menu||0==this.menu.length||null==this.cols||0==this.cols)return this.menuRows.push(this.menu),void(this.colClass+=this.col.toString());for(var t=Math.ceil(this.menu.length/this.cols),e=0;e<this.cols;e++)this.menuRows.push(this.menu.slice(e*t,e*t+t));this.col=12/this.cols,this.colClass+=this.col.toString()},t}();ft.decorators=[{type:e.Component,args:[{selector:"info-card-menu",template:'<mat-card>\r\n <mat-card-content>\r\n <h6 *ngIf="label != null" [innerHTML]="label | translate" ></h6>\r\n <p *ngIf="description != null">{{ description | translate }}</p>\r\n\r\n <div class="row">\r\n <ng-container *ngFor="let row of menuRows">\r\n <mat-nav-list [ngClass]="colClass">\r\n <ng-container *ngFor="let item of row">\r\n <mat-list-item *ngIf="item.permission" href="#" [routerLink]="item.url" >\r\n <a title="no" title="{{ item.title | translate }}" md-line>{{ item.title | translate }}</a>\r\n </mat-list-item>\r\n </ng-container>\r\n </mat-nav-list>\r\n </ng-container>\r\n </div>\r\n </mat-card-content>\r\n <mat-card-footer *ngIf="icon == null">\r\n <mat-icon>{{icon}}</mat-icon>\r\n </mat-card-footer>\r\n</mat-card>',styles:[":host h6{font-size:11px;padding-bottom:10px;width:100%}:host .mat-nav-list .mat-list-item{height:40px!important}:host mat-card-footer{height:40px;overflow:hidden;position:relative}:host mat-card-footer mat-icon{bottom:36px;color:#aaa;font-size:5.71rem;opacity:.4;position:absolute;right:0;text-align:right;width:100%}"]}]}],ft.propDecorators={label:[{type:e.Input}],description:[{type:e.Input}],icon:[{type:e.Input}],menu:[{type:e.Input}],cols:[{type:e.Input}],loadinit:[{type:e.Input}]};var bt=function(){function t(){this.placeholder="",this.type=null,this.min=!1,this.value=!1,this.disabled=!1,this.checkboxValue={true:!0,false:!1},this.initialized=!1}return Object.defineProperty(t.prototype,"checked",{get:function(){return this.value},set:function(t){this.initialized&&(this.value=t,this.onChangeValue())},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){if(null!=this.type){var t=this.type.split(",");this.checkboxValue.true=isNaN(Number(t[0]))?t[0]:Number(t[0]),this.checkboxValue.false=isNaN(Number(t[1]))?t[1]:Number(t[1])}this.value=!0},t.prototype.writeValue=function(t){this.value=void 0!==t&&null!=t&&t===this.checkboxValue.true,this.onChangeValue()},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.initialized=!0,this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.onChangeValue=function(){var t=this.value?this.checkboxValue.true:this.checkboxValue.false;null!=this.onChange&&this.onChange(t)},t}();bt.decorators=[{type:e.Component,args:[{selector:"info-checkbox",template:'<section class="info-checkbox-content mat-form-field-margin " [ngClass]="{ \'info-checkbox-min\': min }">\r\n <mat-checkbox [(ngModel)]="value" (change)="onChangeValue()" [disabled]="disabled"><div [innerHtml]="placeholder | translate"></div></mat-checkbox>\r\n</section>',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return bt})),multi:!0}],styles:[".info-checkbox-content { padding-top: 20px; } .info-checkbox-min { padding-top: 0 !important; margin: 0 0 13px !important; } "]}]}],bt.propDecorators={placeholder:[{type:e.Input}],type:[{type:e.Input}],min:[{type:e.Input}],checked:[{type:e.Input}]};var vt={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM Y",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM Y"}},xt=function(){function t(){this.disabled=!1,this.required=!1,this.minDate=null,this.maxDate=null,this.datefilter=null,this.dateclass=null}return t.prototype.ngAfterViewInit=function(){var t={mask:[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/],guide:!0,placeholderChar:"_",pipe:V.default(vt.parse.dateInput.toLowerCase()),modelClean:!0,keepCharPositions:!1};this.dateMask=n.createTextMaskInputElement(Object.assign({inputElement:this.input.nativeElement},t))},t.prototype.onInputDate=function(t){this.dateMask.update(t)},t.prototype.onChangeValue=function(){null!=this.onChange&&this.onChange(this.dateValue)},t.prototype.writeValue=function(t){null!=t&&((t=new Date(t)).setMinutes(t.getMinutes()+t.getTimezoneOffset()),t=new Date(t.getFullYear(),t.getMonth(),t.getDate())),this.dateValue=t,this.onChangeValue()},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.onKeyPress=function(t){13==t.keyCode&&this.onChangeValue()},t}();xt.decorators=[{type:e.Component,args:[{selector:"info-date",template:'<mat-form-field>\r\n <input matInput [placeholder]="placeholder | translate" [(ngModel)]="dateValue" [disabled]="disabled" [required]="required" [min]="minDate" [max]="maxDate"\r\n (dateChange)="onChangeValue()" (input)="onInputDate($event.target.value)" (keypress)="onKeyPress($event)" (blur)="onChangeValue()" [matDatepicker]="datepicker"\r\n [matDatepickerFilter]="datefilter" #inputDate >\r\n\r\n <mat-datepicker-toggle matSuffix [for]="datepicker"></mat-datepicker-toggle>\r\n <mat-datepicker [dateClass]="dateclass" #datepicker></mat-datepicker>\r\n</mat-form-field>',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return xt})),multi:!0},{provide:u.MAT_DATE_LOCALE,useValue:"pt-BR"},{provide:u.DateAdapter,useClass:d.MomentDateAdapter,deps:[u.MAT_DATE_LOCALE]},{provide:u.MAT_DATE_FORMATS,useValue:vt},{provide:d.MAT_MOMENT_DATE_ADAPTER_OPTIONS,useValue:{useUtc:!0}}]}]}],xt.propDecorators={placeholder:[{type:e.Input}],disabled:[{type:e.Input}],required:[{type:e.Input}],minDate:[{type:e.Input}],maxDate:[{type:e.Input}],datefilter:[{type:e.Input}],dateclass:[{type:e.Input}],input:[{type:e.ViewChild,args:["inputDate",{static:!1}]}]};var yt={parse:{dateInput:"MM/YYYY"},display:{dateInput:"MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},It=function(){function t(){this.disabled=!1,this.required=!1}return t.prototype.ngAfterViewInit=function(){var t={mask:[/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/],guide:!0,placeholderChar:"_",pipe:V.default(yt.parse.dateInput.toLowerCase()),modelClean:!0,keepCharPositions:!1};this.dateMask=n.createTextMaskInputElement(Object.assign({inputElement:this.input.nativeElement},t))},t.prototype.onInputDate=function(t){this.dateMask.update(t)},t.prototype.onChangeValue=function(){null!=this.onChange&&this.onChange(this.dateValue)},t.prototype.writeValue=function(t){null==t||null==t?this.dateValue=null:((t=new Date(t)).setMinutes(t.getMinutes()+t.getTimezoneOffset()),t=new Date(t.getFullYear(),t.getMonth(),1),this.dateValue=t),this.onChangeValue()},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.chosenYearHandler=function(t){var e=new Date(t.year(),new Date(this.dateValue).getMonth(),1);this.dateValue=e,this.onChangeValue()},t.prototype.chosenMonthHandler=function(t,e){var n=new Date(t.year(),t.month(),1);this.dateValue=n,this.onChangeValue(),e.close()},t.prototype.onKeyPress=function(t){13==t.keyCode&&this.onChangeValue()},t}();It.decorators=[{type:e.Component,args:[{selector:"info-date-month",template:'<mat-form-field>\r\n <input matInput [placeholder]="placeholder | translate" [(ngModel)]="dateValue" [disabled]="disabled" [required]="required" \r\n (dateChange)="onChangeValue()" (input)="onInputDate($event.target.value)" (keypress)="onKeyPress($event)" (blur)="onChangeValue()" [matDatepicker]="datepicker" #inputDate >\r\n\r\n <mat-datepicker-toggle matSuffix [for]="datepicker"></mat-datepicker-toggle>\r\n <mat-datepicker #datepicker startView="multi-year" (yearSelected)="chosenYearHandler($event)" (monthSelected)="chosenMonthHandler($event, datepicker)"></mat-datepicker>\r\n</mat-form-field> ',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return It})),multi:!0},{provide:u.MAT_DATE_LOCALE,useValue:"pt-BR"},{provide:u.DateAdapter,useClass:d.MomentDateAdapter,deps:[u.MAT_DATE_LOCALE]},{provide:u.MAT_DATE_FORMATS,useValue:yt},{provide:d.MAT_MOMENT_DATE_ADAPTER_OPTIONS,useValue:{useUtc:!0}}]}]}],It.propDecorators={placeholder:[{type:e.Input}],disabled:[{type:e.Input}],required:[{type:e.Input}],input:[{type:e.ViewChild,args:["inputDate",{static:!1}]}]};var wt=function(){function t(t){this.dialog=t}return t.prototype.alert=function(t){var e=new F;return e.message=t,e.labelCancel=null,e.processingMode=!1,this.dialog.open(_t,{data:e,disableClose:!0,width:e.width+"px"}).afterClosed()},t.prototype.YesOrNo=function(t){var e=new F;return e.message=t,e.yesOrNo=!0,e.colorOk="warn",e.processingMode=!1,this.dialog.open(_t,{data:e,disableClose:!0,width:e.width+"px"}).afterClosed()},t.prototype.Confirm=function(t){var e=new F;return e.message=t,e.processingMode=!1,this.dialog.open(_t,{data:e,disableClose:!0,width:e.width+"px"}).afterClosed()},t.prototype.Custom=function(t){return t.processingMode=!1,this.dialog.open(_t,{data:t,disableClose:!0,width:t.width+"px"}).afterClosed()},t.prototype.Processing=function(){var t=new F;return t.message="",t.yesOrNo=!1,t.labelCancel=null,t.colorOk="warn",t.processingMode=!0,this.dialog.open(_t,{data:t,disableClose:!0,width:"500px"}).afterClosed()},t}();wt.decorators=[{type:e.Injectable}],wt.ctorParameters=function(){return[{type:r.MatDialog}]};var _t=function(){function t(t,e){this.ref=t,this.model=e}return t.prototype.ngOnInit=function(){this.model.yesOrNo&&(this.model.labelOk="Sim",this.model.labelCancel="Nao")},t.prototype.onclickCancel=function(){this.ref.close(new j(this.model.yesOrNo?et.No:et.Cancel))},t.prototype.onclickOk=function(){this.ref.close(new j(this.model.yesOrNo?et.Yes:et.Ok))},t.prototype.onclickAux=function(){this.ref.close(new j(et.Aux))},t}();_t.decorators=[{type:e.Component,args:[{selector:"info-dialog",template:'<h1 mat-dialog-title *ngIf="model.title" [innerHTML]="model.title | translate" ></h1>\r\n\r\n<div mat-dialog-content class="mb-3">\r\n <p *ngIf="!model.processingMode" [innerHTML]="model.message | translate"></p>\r\n <info-message *ngIf="model.processingMode" color="danger">{{ \'A plataforma está efetuando o processamento em segundo plano.<br /> Isto pode levar alguns minutos e assim que concluído, uma notificação será enviada.\' | translate}}</info-message>\r\n</div>\r\n\r\n<div mat-dialog-actions class="buttons">\r\n <button mat-button (click)="onclickAux()" [color]="model.colorAux" *ngIf="model.labelAux" >{{ model.labelAux | translate }}</button>\r\n <button mat-button (click)="onclickOk()" [color]="model.colorOk" cdkFocusInitial>{{ model.labelOk | translate }}</button>\r\n <button mat-button (click)="onclickCancel()" [color]="model.colorCancel" *ngIf="model.labelCancel" >{{ model.labelCancel | translate }}</button>\r\n</div> '}]}],_t.ctorParameters=function(){return[{type:r.MatDialogRef},{type:F,decorators:[{type:e.Inject,args:[r.MAT_DIALOG_DATA]}]}]};var kt=function(){function t(t,n,i,o,a,s,r,l,c,u,d,p,h){this._dialog=t,this._platform=n,this.modal=i,this._prop=o,this._dataAccessService=a,this._router=s,this._activatedRoute=r,this._authenticationService=l,this._changeDetectorRef=c,this._translate=u,this._lastSearch=d,this._renderer=p,this._element=h,this.pagetitle="",this.prefixtitle="",this.description="",this.pagebarbuttons=[],this.fullarea=!1,this.api=null,this.method=null,this.form=null,this.width=800,this.parent=null,this.apidownload=null,this.methoddownload=null,this.backurl="",this.newurl="",this.newlabel="Novo",this.editurl="",this.viewurl="",this.templateurl="",this.paged=!1,this.size=15,this.autorefresh=0,this.enablednew=!0,this.enablededit=!0,this.enableddelete=!0,this.enabledview=!0,this.enabledcancelsearch=!0,this.enableddetail=!1,this.enabledclassicons=!0,this.enabledclickaccess=!1,this.enabledclickevent=!1,this.searchopened=!1,this.searchonlyonebutton=!1,this.disablesearchlast=!1,this.statictitle=!1,this.disabledcol="",this.accessicon="arrow_forward",this.loadoninit=!0,this.searchmodel=null,this.onbeforesearch=new e.EventEmitter,this.onloadcomplete=new e.EventEmitter,this.onclosemodal=new e.EventEmitter,this.onnew=new e.EventEmitter,this.onedit=new e.EventEmitter,this.onview=new e.EventEmitter,this.ondelete=new e.EventEmitter,this.customdelete=new e.EventEmitter,this.dynamiccols=null,this.buttons=[],this.searchbuttons=[],this.showmessageerror=!1,this.defaultnewobject=null,this.messages=[],this.resultTitle="",this.enabledSearch=!1,this.searchModelReset=null,this.showPagebar=!1,this.hasPermissionNew=!1,this.hasPermissionEdit=!1,this.hasPermissionDelete=!1,this.tableHeight=0,this.loading=!1,this.pagebarTitle="",this.icons=[],this.colunasItens=[],this.colunasHeaders=[],this.colunasType=[],this.colunasWidth=[],this.currentUrl=null,this.url=null,this.parentIdUrlChange=new e.EventEmitter,this.parentIdUrlValue=null,this._cols=""}return Object.defineProperty(t.prototype,"parentIdUrl",{get:function(){return this.parentIdUrlValue},set:function(t){this.parentIdUrlValue=t,this.parentIdUrlChange.emit(this.parentIdUrlValue)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._cols},set:function(t){this._cols=t,this.setColumns()},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.url=(this._activatedRoute.snapshot.data.URL||this._router.url).toLowerCase(),this._renderer.addClass(this._element.nativeElement,"uxc"+this._platform.Config.ux),this.setPagebarTitle(),null!=this.searchmodel?(null==this.method&&(this.method="Search"),this.searchModelReset=Object.assign({},this.searchmodel)):null==this.parent||null!=this.method&&""!=this.method||(this.method="GetByParentId"),this.disablesearchlast||this._authenticationService.getUrlGenerica(this._lastSearch.url)!=this._authenticationService.getUrlGenerica(this.url)||(this.enabledSearch=this._lastSearch.enabledSearch,null!=this.searchmodel&&null!=this._lastSearch.model&&Object.assign(this.searchmodel,this._lastSearch.model)),this.searchopened&&(this.enabledSearch=!0),this.autorefresh>0&&(this.currentUrl=location.href),this._prop.api=this.api,this._prop.modalComponent=this.form},t.prototype.ngAfterViewInit=function(){var t=this;this.showPagebar=""!=this.pagetitle||""!=this.prefixtitle,!this.fullarea&&this._platform.Config.ux<=2&&(this.fullarea=this.showPagebar),this.searchmodel&&this.formModel.length>0&&this.formSearch&&this.formModel.toArray().forEach((function(e){return t.formSearch.addControl(e)})),!this.disablesearchlast&&this.paged&&this._authenticationService.getUrlGenerica(this._lastSearch.url)==this._authenticationService.getUrlGenerica(this.url)&&(this.paginator.index=this._lastSearch.index),null==this.dynamiccols?(this.setColumns(),this.getPermission(),this.loadoninit?this.getData():this.hideLoad()):this._dataAccessService.get(this.api,this.dynamiccols).subscribe((function(e){t.cols=e.data,t.setColumns(),t.getPermission(),t.loadoninit?t.getData():t.hideLoad()})),this.enabledclickevent&&(this.enabledclickaccess=!0)},t.prototype.setColumns=function(){var t=this;""==this.cols&&alert("Nenhuma coluna informada"),""!=this.cols&&(this.colunasItens=[],this.colunasHeaders=[],this.colunasType=[],this.colunasWidth=[],this.cols.split(",").forEach((function(e){var n=e,i=e,o="",a="";if(i.indexOf(":")>-1){var s=e.split(":");n=s[0],i=s[1]}if(i.indexOf("=")>-1){var r=i.split("=");n==i&&(n=r[0]),i=r[0],o=r[1]}var l=""==o?i:o;if(l.indexOf("*")>-1){var c=l.split("*");""==o?(n==i&&(n=c[0]),i=c[0]):o=c[0],(a=c[1]).indexOf("%")<0&&a.indexOf("px")<0&&(a+="px")}t.colunasItens.push(n),t.colunasHeaders.push(i),t.colunasType.push(""==o?"label":o),t.colunasWidth.push(a)})))},t.prototype.setPagebarTitle=function(){var t="";""!=this.prefixtitle&&(t=this._translate.translate(this.prefixtitle)),""!=this.resultTitle&&(t+=(""!=this.prefixtitle?" / ":"")+this._translate.translate(this.resultTitle)),""!=this.pagetitle&&(t+=(""!=this.resultTitle||""!=this.prefixtitle?" / ":"")+this._translate.translate(this.pagetitle)),this.pagebarTitle=t},t.prototype.navigateTo=function(t,e,n){e?t.indexOf(":id")>-1?this._router.navigateByUrl(t.replace(":id",n)):this._router.navigate([t,n]):this._router.navigateByUrl(t)},t.prototype.openCustomModal=function(t,e,n){void 0===n&&(n=null),this._prop.set(H.None,n),this.openModal(t,e)},t.prototype.getData=function(){this.messages=[],null!=this.api&&""!=this.api?null!=this.searchmodel?this.getSearch():this.paged?this.getPaged():null==this.parent?this.getAll():this.getByParentId():this.hideLoad()},t.prototype.getAll=function(){var t=this;null==this.searchmodel?this._dataAccessService.get(this.api,this.method).subscribe((function(e){return t.getDataReturn(e)})):this._dataAccessService.post(this.api,this.searchmodel,this.method).subscribe((function(e){return t.getDataReturn(e)}))},t.prototype.getPaged=function(){var t=this,e=null==this.parent?"":"id="+this.parent+"&";e+="index="+this.paginator.index+"&size="+this.size,this._dataAccessService.get(this.api,this.method,e).subscribe((function(e){return t.getDataReturn(e,!0)}))},t.prototype.getSearch=function(){var t=this;this.onbeforesearch.emit(),this.paged&&(this.searchmodel.Index=this.paginator.index,this.searchmodel.Size=this.size),this._dataAccessService.post(this.api,this.searchmodel,this.method).subscribe((function(e){return t.getDataReturn(e,t.paged)}))},t.prototype.getByParentId=function(){var t=this;this._dataAccessService.get(this.api,this.method,"id="+this.parent).subscribe((function(e){return t.getDataReturn(e,!1)}))},t.prototype.getDataReturn=function(t,e){var n=this;void 0===e&&(e=!1),this.disablesearchlast||(this._lastSearch.url=this._authenticationService.getUrlGenerica(this.url),this._lastSearch.enabledSearch=this.enabledSearch,this._lastSearch.model=Object.assign({},this.searchmodel),this.paged&&(this._lastSearch.index=this.paginator.index)),t.success?(this.data=t.data,this.statictitle||null==t.name||(this.resultTitle=this._translate.translate(t.name)),null!=t.description&&(this.description=t.description),null!=t.parentId&&(this.parentIdUrl=t.parentId),e&&this.paginator.refresh(t.total),this.autorefresh>0&&this.currentUrl==location.href&&setTimeout((function(){n.getData()}),1e3*this.autorefresh),this.fillIcons()):(this.data=[],this.showmessageerror&&(this.messages=t.messages)),this.hideLoad(),this.onloadcomplete.emit()},t.prototype.changePage=function(t){this.loading=!0,this.paginator.index=t,null!=this.searchmodel?this.getSearch():this.getPaged()},t.prototype.cancelSearch=function(){Object.assign(this.searchmodel,this.searchModelReset),this.searchopened||(this.enabledSearch=!1),this.search()},t.prototype.search=function(){this.loading=!0,this.paged&&(this.paginator.index=0),this.getData()},t.prototype.add=function(){null!=this.form?(this._prop.set(H.New,this.defaultnewobject),this.openModal()):(null!=this.newurl&&""!=this.newurl||(this.newurl=this.url),this.newurl+="/novo",this.newurl=this.newurl.replace("//","/"),this._router.navigateByUrl(this.newurl)),this.onnew.emit()},t.prototype.detail=function(t){this._prop.set(H.Search,t),this.openModal()},t.prototype.access=function(t){this.enabledclickaccess&&(this.enabledclickevent?this.onview.emit(t):this.edit(t))},t.prototype.view=function(t){null!=this.form?(this._prop.set(H.View,t),this.openModal()):(null!=this.viewurl&&""!=this.viewurl||(this.viewurl=this.url),this.viewurl+="/"+t.Id+(this.enabledclickaccess?"":"/visualizar"),this.viewurl=this.viewurl.replace("//","/"),this._router.navigateByUrl(this.viewurl)),this.onview.emit(t)},t.prototype.edit=function(t){this.hasPermissionEdit?(null!=this.form?(this._prop.set(H.Edit,t),this.openModal()):(null!=this.editurl&&""!=this.editurl||(this.editurl=this.url),this.editurl=this.editurl.replace("//","/"),this._router.navigate([this.editurl,t.Id])),this.onedit.emit(t)):(null!=this.form?(this._prop.set(H.View,t),this.openModal()):(null!=this.viewurl&&""!=this.viewurl||(this.viewurl=this.url),this.viewurl+="/"+t.Id+(this.enabledclickaccess?"":"/visualizar"),this.viewurl=this.viewurl.replace("//","/"),this._router.navigateByUrl(this.viewurl)),this.onview.emit(t))},t.prototype.delete=function(t){var e=this;this.customdelete.observers.length>0?this.customdelete.emit(t):this._dialog.YesOrNo("MensagemExcluir").subscribe((function(n){n.button==et.Yes&&(e.loading=!0,e._dataAccessService.delete(e.api,t.Id).subscribe((function(t){e.ondelete.emit(t),t.success?e.getData():(e.hideLoad(),e.showmessageerror&&(e.messages=t.messages))})))}))},t.prototype.fillIcons=function(){var t=this;this.icons=[],null!=this.data&&this.data.forEach((function(e){var n=e.Icon;if(null!=n)if(n.indexOf("|")>-1){var i=n.split("|").map((function(t){if(t.indexOf(":")>-1){var e=t.split(":");return{Name:n,Icon:e[0],Tooltip:e[1],Principal:!0}}return{Name:n,Icon:t,Tooltip:"",Principal:!0}})).filter((function(t){return null!=t.Icon&&""!=t.Icon})),o=0;i.forEach((function(e){null==t.icons.find((function(t){return t.Name==e.Name&&t.Icon==e.Icon}))&&(e.Principal=0==o,t.icons.push(e)),o++}))}else{var a=[];if(n.indexOf(":")>-1){var s=n.split(":");a={Name:n,Icon:s[0],Tooltip:s[1],Principal:!0}}else a={Name:n,Icon:n,Tooltip:"",Principal:!0};null==t.icons.find((function(t){return t.Name==a.Name}))&&t.icons.push(a)}}))},t.prototype.info=function(t){this._dialog.alert(t)},t.prototype.back=function(){this.navigateTo(this.backurl+(null==this.parentIdUrl?"":"/"+this.parentIdUrl),!1)},t.prototype.openModal=function(t,e){var n=this;void 0===t&&(t=this.form),void 0===e&&(e=this.width);var i=this.modal.open(t,{data:this._prop,disableClose:!0,width:e+"px"});i.afterClosed().subscribe((function(t){null!=t&&(t.modalAction==q.Save&&n.getData(),n.onclosemodal.emit(t))})),i.keydownEvents().subscribe((function(t){n.loading||"Escape"!=t.key&&"Esc"!=t.key&&"27"!=t.key||i.close()}))},t.prototype.hideLoad=function(){this.setPagebarTitle(),this.loading=!1},t.prototype.getPermission=function(){this.hasPermissionNew=this._authenticationService.hasPermission(this.url,"new"),this.hasPermissionEdit=this._authenticationService.hasPermission(this.url,"edit"),this.hasPermissionDelete=this._authenticationService.hasPermission(this.url,"remove"),this._changeDetectorRef.detectChanges()},t.prototype.download=function(t){var e=this;null==this.apidownload&&alert("API Download está null"),this.loading=!0,this._dataAccessService.get(this.apidownload,null!=this.methoddownload?this.methoddownload:"Get","id="+t).subscribe((function(t){if(e.messages=t.messages,t.success&&null!=t.data){for(var n=window.atob(t.data.Conteudo),i=n.length,o=new Uint8Array(i),a=0;a<i;a++){var s=n.charCodeAt(a);o[a]=s}var r=new Blob([o]);if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(r,t.data.Nome);else{var l=URL.createObjectURL(r),c=document.createElement("a");c.href=l,c.download=t.data.Nome,document.body.appendChild(c),c.click(),document.body.removeChild(c)}}e.loading=!1}))},t.prototype.eventButton=function(t,e,n,i){var o=this;void 0===i&&(i=!0),i?this._dialog.YesOrNo("MensagemConfirmar").subscribe((function(i){i.button==et.Yes&&(o.loading=!0,o._dataAccessService.post(e,t,n).subscribe((function(t){t.success?o.getData():o.showmessageerror&&(o.messages=t.messages),o.loading=!1})))})):(this.loading=!0,this._dataAccessService.post(e,t,n).subscribe((function(t){t.success?o.getData():o.showmessageerror&&(o.messages=t.messages),o.loading=!1})))},t}();kt.decorators=[{type:e.Component,args:[{selector:"info-grid",template:'<info-pagebar *ngIf="showPagebar" icon="work" [pagetitle]="pagebarTitle" [description]="description">\r\n <button mat-button type="button" *ngIf="backurl != null && backurl != \'\'" color="primary" (click)="back()">\r\n <mat-icon class="fs-20">chevron_left</mat-icon>{{"Voltar" | translate}}\r\n </button>\r\n\r\n <ng-container *ngFor="let b of pagebarbuttons">\r\n <button type="button" mat-button color="primary" (click)="b.modal == null ? navigateTo(b.url, false, null) : openCustomModal(b.modal, b.modalwidth, null)">\r\n <mat-icon *ngIf="b.icon != \'chevron_right\'" class="fs-20">{{ b.icon }}</mat-icon>\r\n {{ b.label | translate }}\r\n </button>\r\n </ng-container>\r\n\r\n <button mat-button type="button" *ngIf="searchmodel != null && !enabledSearch" color="primary" (click)="enabledSearch = !enabledSearch">\r\n <mat-icon class="fs-20">search</mat-icon> {{ "Pesquisar" | translate}}\r\n </button>\r\n <button mat-button type="button" *ngIf="enablednew && hasPermissionNew" color="primary" (click)="add()">\r\n <mat-icon class="fs-20">add</mat-icon> {{ newlabel | translate}}\r\n </button>\r\n</info-pagebar>\r\n\r\n<div [ngClass]="{ \'table-full\': fullarea }">\r\n <div class="table-responsive white">\r\n <div class="table-title" [ngStyle]="{ \'padding\': (enabledSearch ? 10 : 0) + \'px 20px\' }">\r\n <form autocomplete="off" #formSearch="ngForm" (ngSubmit)="search()">\r\n <div *ngIf="enabledSearch" class="search-container row">\r\n <div class="col-md-{{(searchbuttons || []).length == 0 ? \'10\' : \'9\' }}">\r\n <div class="row">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n <div class="col-md-{{(searchbuttons || []).length == 0 ? \'2\' : \'3\' }} align-right" *ngIf="searchmodel != null">\r\n <div class="search-buttons ">\r\n <ng-container *ngIf="searchonlyonebutton">\r\n <button mat-button type="submit" color="primary" [disabled]="formSearch.invalid || loading">\r\n {{ \'Buscar\' | translate }}\r\n </button>\r\n </ng-container>\r\n\r\n <ng-container *ngIf="!searchonlyonebutton">\r\n <button mat-button type="button" color="warn" (click)="cancelSearch()" *ngIf="enabledcancelsearch">\r\n <mat-icon class="fs-20">close</mat-icon>\r\n </button>\r\n <button mat-button type="submit" color="primary" [disabled]="formSearch.invalid || loading">\r\n <mat-icon class="fs-20">search</mat-icon>\r\n </button>\r\n \r\n <ng-container *ngFor="let b of searchbuttons">\r\n <button mat-button type="button" color="primary" [disabled]="formSearch.invalid || loading" (click)="b.method()">\r\n <mat-icon *ngIf="b.icon" class="fs-20">{{b.icon | translate}}</mat-icon> {{b.label | translate}}\r\n </button>\r\n </ng-container>\r\n \r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n\r\n <fieldset *ngIf="!showPagebar"><legend [innerHTML]="pagebarTitle | translate"></legend></fieldset>\r\n <section class="loading-bar"><mat-progress-bar color="primary" mode="indeterminate" *ngIf="loading"></mat-progress-bar></section>\r\n\r\n <div id="auto-refresh" *ngIf="autorefresh > 0">\r\n <i class="material-icons" matTooltip="{{ \'AutoRefresh\' | translate }} {{ autorefresh }} seg" matTooltipPosition="left">access_time</i>\r\n </div>\r\n\r\n <table class="table table-hover" [ngStyle]="{ \'min-height.px\': tableHeight }" [ngClass]="{ \'loading\': loading, \'clickaccess\': enabledclickaccess }" *ngIf="data != null">\r\n <thead>\r\n <tr>\r\n <th style="width: 5%;" *ngIf="enabledclassicons && data?.length > 0 && data[0]?.Icon != null"></th>\r\n\r\n <ng-container *ngFor="let col of colunasHeaders; let i = index">\r\n <th *ngIf="colunasWidth[i] == \'\'" [class]="\'col_\' + col.toLowerCase()" [ngClass]="{ \'text-center\': colunasType[i] == \'check\', \'align-right\': colunasType[i].startsWith(\'n\') }">{{ col | translate }}</th>\r\n <th *ngIf="colunasWidth[i] != \'\'" [ngStyle]="{ \'width\': colunasWidth[i] }" [ngClass]="{ \'text-center\': colunasType[i] == \'check\', \'align-right\': colunasType[i].startsWith(\'n\') }">{{ col | translate }}</th>\r\n </ng-container>\r\n\r\n <th class="actions align-right buttons" *ngIf="(templateurl != \'\') || (buttons != null && buttons.length > 0) || enableddetail || enabledview || ((disabledcol == \'\') && enablededit && hasPermissionEdit) || ((disabledcol == \'\') && enableddelete && hasPermissionDelete)">\r\n <button mat-icon-button type="button"[matTooltip]="newlabel | translate" matTooltipPosition="left" (click)="add()" *ngIf="!showPagebar && enablednew && hasPermissionNew">\r\n <mat-icon>add_circle_outline</mat-icon>\r\n </button>\r\n </th>\r\n </tr>\r\n </thead>\r\n <tbody class="grid-content">\r\n <tr *ngFor="let mod of data" [ngClass]="{ \'default-color\': !enabledclassicons }" [class]="mod.Class" (click)="access(mod)">\r\n <td *ngIf="enabledclassicons && mod?.Icon != null">\r\n <ng-container *ngFor="let icon of icons">\r\n <i class="material-icons" [matTooltip]="icon.Tooltip | translate" *ngIf="icon.Name == mod.Icon" [ngClass]="{ \'icone-secundario\': icon.Principal == false }">{{icon.Icon}}</i>\r\n </ng-container>\r\n </td>\r\n\r\n <ng-container *ngFor="let col of colunasItens; let i = index">\r\n <td *ngIf="mod[col] == null || mod[col] == undefined"></td>\r\n <ng-container [ngSwitch]="colunasType[i]" *ngIf="mod[col] != null && mod[col] != undefined">\r\n <ng-container *ngSwitchCase="\'label\'">\r\n <td *ngIf="mod[col] !== true && mod[col] !== false && mod[col] !== 0 && mod[col] !== \'0\'" [innerHTML]="(mod[col] | translate) || \'\'"></td>\r\n <td *ngIf="mod[col] === true"><mat-icon>check_box</mat-icon></td>\r\n <td *ngIf="mod[col] === false"><mat-icon>check_box_outline_blank</mat-icon></td>\r\n <td *ngIf="mod[col] === 0 || mod[col] === \'0\'">0</td>\r\n </ng-container>\r\n\r\n <td nowrap *ngSwitchCase="\'date\'" [innerHTML]="mod[col] | date:\'shortDate\'"></td>\r\n <td nowrap *ngSwitchCase="\'datetime\'">{{ mod[col] | date:\'shortDate\' }} {{ mod[col] | date:\'mediumTime\' }}</td>\r\n <td nowrap *ngSwitchCase="\'monthyear\'" [innerHTML]="mod[col] | date:\'MM/yyyy\'"></td>\r\n <td nowrap *ngSwitchCase="\'n0\'" [class]="\'align-right \' + (mod[col] < 0 ? \'text-red\' : \'\')">{{ mod[col] | number:\'1.0-0\' }}</td>\r\n <td nowrap *ngSwitchCase="\'n2\'" [class]="\'align-right \' + (mod[col] < 0 ? \'text-red\' : \'\')">{{ mod[col] | number:\'1.2-2\' }}</td>\r\n <td nowrap *ngSwitchCase="\'n4\'" [class]="\'align-right \' + (mod[col] < 0 ? \'text-red\' : \'\')">{{ mod[col] | number:\'1.4-4\' }}</td>\r\n <td nowrap *ngSwitchCase="\'n6\'" [class]="\'align-right \' + (mod[col] < 0 ? \'text-red\' : \'\')">{{ mod[col] | number:\'1.6-6\' }}</td>\r\n <td nowrap *ngSwitchCase="\'n9\'" [class]="\'align-right \' + (mod[col] < 0 ? \'text-red\' : \'\')">{{ mod[col] | number:\'1.9-9\' }}</td>\r\n <td nowrap *ngSwitchCase="\'n12\'" [class]="\'align-right \' + (mod[col] < 0 ? \'text-red\' : \'\')">{{ mod[col] | number:\'1.12-12\' }}</td>\r\n \r\n <td *ngSwitchCase="\'check\'" class="text-center">\r\n <ng-container *ngIf="mod[col] != null && (mod[col] === true || mod[col] == 1 || mod[col].toLowerCase() == \'s\'); then checked; else unchecked"></ng-container>\r\n <ng-template #checked><mat-icon>check_box</mat-icon></ng-template>\r\n <ng-template #unchecked><mat-icon>check_box_outline_blank</mat-icon></ng-template>\r\n </td>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf="enabledclickaccess">\r\n <td class="td-actions clickaccess">\r\n <button mat-icon-button type="button" (click)="access(mod)" *ngIf="enabledview">\r\n <mat-icon>{{accessicon || \'arrow_forward\'}}</mat-icon>\r\n </button>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container *ngIf="!enabledclickaccess">\r\n <td class="td-actions" *ngIf="(templateurl != \'\') || (buttons != null && buttons.length > 0) || (mod.Download != null) || enableddetail || (mod?.Info != null) || enabledview || ((disabledcol == \'\' || mod[disabledcol] === true) && enablededit && hasPermissionEdit) || ((disabledcol == \'\' || mod[disabledcol] === true) && enableddelete && hasPermissionDelete)">\r\n\r\n <a mat-icon-button href="{{ templateurl.replace(\'{id}\', mod.Id) }}" target="_blank" [matTooltip]="\'Abrir\' | translate" *ngIf="templateurl != \'\'">\r\n <mat-icon>visibility</mat-icon>\r\n </a>\r\n\r\n <ng-container *ngFor="let b of buttons">\r\n <button mat-icon-button type="button" [matTooltip]="b.label | translate" (click)="b.modalComponent != null ? openCustomModal(b.modalComponent, b.widthModalComponent, mod) : b.api != null ? eventButton(mod, b.api, b.method, b.confirm) : navigateTo(b.navigateTo, b.passId, mod.Id)" *ngIf="b.showOnlyClass == null || b.showOnlyClass == mod.Class" [disabled]="b.disabledField && mod[b.disabledField] === true">\r\n <mat-icon>{{b.icon}}</mat-icon>\r\n </button>\r\n </ng-container>\r\n\r\n <button mat-icon-button type="button" [matTooltip]="\'Download\' | translate" (click)="download(mod.Download)" *ngIf="mod.Download != null">\r\n <mat-icon>file_download</mat-icon>\r\n </button>\r\n \r\n <button mat-icon-button type="button" [matTooltip]="\'Detalhe\' | translate" (click)="detail(mod)" *ngIf="enableddetail">\r\n <mat-icon>list</mat-icon>\r\n </button>\r\n \r\n <button mat-icon-button type="button" [matTooltip]="\'Informacao\' | translate" (click)="info(mod?.Info)" *ngIf="mod?.Info != null" [disabled]="mod?.Info == \'\'">\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n \r\n \x3c!-- <button mat-icon-button type="button" [matTooltip]="\'Visualizar\' | translate" (click)="view(mod)" *ngIf="enabledview">\r\n <mat-icon>visibility</mat-icon>\r\n </button>\r\n \r\n <button mat-icon-button type="button" [matTooltip]="\'Editar\' | translate" (click)="edit(mod)" *ngIf="(disabledcol == \'\' || mod[disabledcol] === true) && enablededit && hasPermissionEdit">\r\n <mat-icon>edit</mat-icon>\r\n </button> --\x3e\r\n \r\n <button mat-icon-button type="button" [matTooltip]="\'Excluir\' | translate" (click)="delete(mod)" *ngIf="(disabledcol == \'\' || mod[disabledcol] === true) && enableddelete && hasPermissionDelete">\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n\r\n <button mat-icon-button type="button" [matTooltip]="\'Acessar\' | translate" (click)="edit(mod)" *ngIf="((disabledcol == \'\' || mod[disabledcol] === true) && enablededit && hasPermissionEdit) || enabledview">\r\n <mat-icon>arrow_forward</mat-icon>\r\n </button>\r\n </td>\r\n </ng-container>\r\n </tr>\r\n </tbody>\r\n </table>\r\n <span class="blank-table" *ngIf="data != null && data.length == 0">{{"NenhumItemEncontrado" | translate}}</span>\r\n\r\n <info-paginator #paginator [hidden]="!paged || (data != null && data.length == 0)" [size]="size" (change)="changePage($event)" ></info-paginator>\r\n </div>\r\n</div>\r\n\r\n<div class="block" *ngIf="loading"></div>\r\n<info-alert [messages]="messages"></info-alert>',providers:[B],styles:[":host{display:block;min-height:200px;position:relative}:host #auto-refresh{background:transparent;margin:0;padding:0;position:absolute;right:0;top:8px}:host #auto-refresh i{cursor:default;font-size:18px}:host .table-title{background:#fcfcfc}:host .table-title .mat-icon-button{height:25px;line-height:25px;text-align:center;width:25px}:host .table-title .mat-icon-button .mat-icon{font-size:18px}:host .table-title :hover{transition:color .2s}:host .search-container{margin-top:10px;position:relative}:host .title-grid{font-size:.8rem;font-weight:700;padding-top:8px;text-transform:uppercase}:host table thead .col_dia,:host table thead .col_id{width:80px}:host table thead .col_moeda{width:90px}:host table thead .col_data,:host table thead .col_datacotacao,:host table thead .col_dataposicao,:host table thead .col_referencia{width:125px}:host table thead .col_conta,:host table thead .col_identificador{width:250px}:host table thead .col_cliente,:host table thead .col_descricao,:host table thead .col_nome{width:400px}:host table tbody .icone-secundario{font-size:12px}:host.uxc3 div.table-responsive .table-title{padding:0!important}:host.uxc3 div.table-responsive .table thead{background:transparent}:host.uxc3 div.table-responsive .table thead th{border-top:none;font-size:10px;padding:10px 5px 5px;text-transform:capitalize}:host.uxc3 div.table-responsive .table thead th.actions{border-bottom-width:0}:host.uxc3 div.table-responsive .table thead th:after{display:none}:host.uxc3 div.table-responsive .table tbody tr{background:#f9f9f9;height:40px}:host.uxc3 div.table-responsive .table tbody tr td{cursor:default;font-size:13px;font-weight:600;transition:color .2s ease-in-out}:host.uxc3 div.table-responsive .table tbody tr td.td-actions{border-bottom:none;margin-top:1px;padding-bottom:6px;padding-top:7px}:host.uxc3 div.table-responsive .table tbody tr td mat-icon{height:17px;line-height:17px}:host.uxc3 div.table-responsive .table tbody tr:hover{background:#f9f9f9}:host.uxc3 div.table-responsive .table tbody tr:nth-child(2n):hover,:host.uxc3 div.table-responsive .table tbody tr:nth-child(2n):hover .td-actions{background:#fff}"]}]}],kt.ctorParameters=function(){return[{type:wt},{type:J},{type:r.MatDialog},{type:B},{type:rt},{type:i.Router},{type:i.ActivatedRoute},{type:lt},{type:e.ChangeDetectorRef},{type:nt},{type:$},{type:e.Renderer2},{type:e.ElementRef}]},kt.propDecorators={pagetitle:[{type:e.Input}],prefixtitle:[{type:e.Input}],description:[{type:e.Input}],pagebarbuttons:[{type:e.Input}],fullarea:[{type:e.Input}],api:[{type:e.Input}],method:[{type:e.Input}],form:[{type:e.Input}],width:[{type:e.Input}],parent:[{type:e.Input}],apidownload:[{type:e.Input}],methoddownload:[{type:e.Input}],backurl:[{type:e.Input}],newurl:[{type:e.Input}],newlabel:[{type:e.Input}],editurl:[{type:e.Input}],viewurl:[{type:e.Input}],templateurl:[{type:e.Input}],paged:[{type:e.Input}],size:[{type:e.Input}],autorefresh:[{type:e.Input}],enablednew:[{type:e.Input}],enablededit:[{type:e.Input}],enableddelete:[{type:e.Input}],enabledview:[{type:e.Input}],enabledcancelsearch:[{type:e.Input}],enableddetail:[{type:e.Input}],enabledclassicons:[{type:e.Input}],enabledclickaccess:[{type:e.Input}],enabledclickevent:[{type:e.Input}],searchopened:[{type:e.Input}],searchonlyonebutton:[{type:e.Input}],disablesearchlast:[{type:e.Input}],statictitle:[{type:e.Input}],disabledcol:[{type:e.Input}],accessicon:[{type:e.Input}],loadoninit:[{type:e.Input}],data:[{type:e.Input}],searchmodel:[{type:e.Input}],onbeforesearch:[{type:e.Output}],onloadcomplete:[{type:e.Output}],onclosemodal:[{type:e.Output}],onnew:[{type:e.Output}],onedit:[{type:e.Output}],onview:[{type:e.Output}],ondelete:[{type:e.Output}],customdelete:[{type:e.Output}],dynamiccols:[{type:e.Input}],buttons:[{type:e.Input}],searchbuttons:[{type:e.Input}],showmessageerror:[{type:e.Input}],defaultnewobject:[{type:e.Input}],formModel:[{type:e.ContentChildren,args:[c.NgModel]}],formSearch:[{type:e.ViewChild,args:[c.NgForm,{static:!1}]}],paginator:[{type:e.ViewChild,args:["paginator",{static:!1}]}],parentIdUrlChange:[{type:e.Output}],parentIdUrl:[{type:e.Input}],cols:[{type:e.Input}]};var Ct=function(){function t(){this.disabled=!1,this.readonly=!1,this.required=!1,this.type="text",this.rows=1,this.tabindex=0,this.iconPrefix="",this.iconSuffix="",this.min=null,this.max=null,this.step=null,this.onblur=new e.EventEmitter,this.maskOptions={align:"right",allowNegative:!0,decimal:",",precision:2,prefix:"",suffix:"",thousands:"."},this.value="",this.customMask=null,this.passwordMode=!1,this.methodIsmask=null}return t.prototype.ngOnInit=function(){this.passwordMode="password"==this.type.toLocaleLowerCase()},Object.defineProperty(t.prototype,"ismask",{get:function(){return this.methodIsmask},set:function(t){this.methodIsmask=t,null!=this.methodIsmask&&(this.methodIsmask=this.methodIsmask.toLowerCase(),"int"==this.methodIsmask?this.maskOptions.precision=0:"n"!=this.methodIsmask[0]||2!=this.methodIsmask.length&&3!=this.methodIsmask.length?this.customMask=this.methodIsmask:this.maskOptions.precision=parseInt(this.methodIsmask.replace("n","")))},enumerable:!1,configurable:!0}),t.prototype.onBlur=function(){null!=this.onblur&&("number"==this.type&&(null!=this.min&&(this.value=this.min>Number(this.value)?null:this.value),null!=this.max&&(this.value=this.max<Number(this.value)?null:this.value),this.onChangeValue()),this.onblur.emit(this.value))},t.prototype.onChangeValue=function(){null!=this.onChange&&this.onChange(this.value)},t.prototype.writeValue=function(t){this.value=t,this.onChangeValue()},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t}();Ct.decorators=[{type:e.Component,args:[{selector:"info-input",template:'<mat-form-field *ngIf="type != \'color\' && type != \'textarea\' && ismask == null" >\r\n <mat-icon *ngIf="iconPrefix" matPrefix style="color: #aaa">{{iconPrefix}}</mat-icon>\r\n \r\n <input matInput [type]="type" [step]="step" [min]="min" [max]="max" [tabindex]="tabindex" [placeholder]="placeholder | translate" [(ngModel)]="value" (input)="onChangeValue()" (blur)="onBlur()"\r\n [maxlength]="maxlength" [readonly]="readonly" [disabled]="disabled" [required]="required">\r\n\r\n <mat-icon *ngIf="iconSuffix" matSuffix style="color: #aaa">{{iconSuffix}}</mat-icon>\r\n <mat-icon class="show-password" *ngIf="passwordMode" (click)="type = (type == \'password\') ? \'text\' : \'password\'" matSuffix >visibility{{ type == \'password\' ? \'\' : \'_off\' }}</mat-icon>\r\n</mat-form-field>\r\n\r\n<mat-form-field *ngIf="type != \'color\' && type != \'textarea\' && ismask != null">\r\n <mat-icon *ngIf="iconPrefix" matPrefix style="color: #aaa">{{iconPrefix}}</mat-icon>\r\n\r\n <input matInput [tabindex]="tabindex" [placeholder]="placeholder | translate" [(ngModel)]="value" (ngModelChange)="onChangeValue()" (blur)="onBlur()" *ngIf="customMask == null"\r\n [readonly]="readonly" [disabled]="disabled" [required]="required" [options]="maskOptions" currencyMask>\r\n\r\n <input matInput [tabindex]="tabindex" [placeholder]="placeholder | translate" [(ngModel)]="value" (ngModelChange)="onChangeValue()" (blur)="onBlur()" *ngIf="customMask != null"\r\n [readonly]="readonly" [disabled]="disabled" [required]="required" [setmask]="customMask" unmask >\r\n\r\n <mat-icon *ngIf="iconSuffix" matSuffix style="color: #aaa">{{iconSuffix}}</mat-icon>\r\n</mat-form-field>\r\n\r\n<mat-form-field *ngIf="type == \'textarea\'">\r\n <mat-icon *ngIf="iconPrefix" matPrefix style="color: #aaa">{{iconPrefix}}</mat-icon>\r\n \r\n <textarea matInput [tabindex]="tabindex" [placeholder]="placeholder | translate" [(ngModel)]="value" (input)="onChangeValue()" (blur)="onBlur()" [rows]="rows"\r\n [maxlength]="maxlength" [readonly]="readonly" [disabled]="disabled" [required]="required"></textarea>\r\n</mat-form-field>\r\n\r\n<mat-form-field class="input-color" *ngIf="type == \'color\'">\r\n \r\n <div class="input-color-container">\r\n <input #colorInput style="width: 0px;visibility: hidden;" type="color" [(ngModel)]="value" (change)="writeValue(value)" [readonly]="readonly" [disabled]="disabled">\r\n <div class="color-picker" [style.background-color]="value" (click)="colorInput.click()"></div>\r\n \r\n <input matInput type="text" [tabindex]="tabindex" [placeholder]="placeholder | translate" [(ngModel)]="value" (input)="onChangeValue()" (blur)="onBlur()"\r\n [maxlength]="maxlength" [readonly]="readonly" [disabled]="disabled" [required]="required">\r\n \r\n <mat-icon *ngIf="iconSuffix" matSuffix style="color: #aaa">{{iconSuffix}}</mat-icon>\r\n </div>\r\n</mat-form-field>',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return Ct})),multi:!0}],styles:[":host .input-color ::ng-deep.mat-form-field-label{transition:transform .4s cubic-bezier(.25,.8,.25,1),color .4s cubic-bezier(.25,.8,.25,1),width .4s cubic-bezier(.25,.8,.25,1),margin .4s cubic-bezier(.25,.8,.25,1)}:host .input-color:not(.mat-form-field-should-float) ::ng-deep.mat-form-field-label{margin-left:40px}:host .input-color.mat-form-field-should-float ::ng-deep.mat-form-field-label{margin-left:0}:host .input-color .input-color-container{display:flex}:host .input-color .input-color-container input[type=color]{height:0;visibility:hidden;width:0}:host .input-color .input-color-container .color-picker{border:1px solid #000;border-radius:5px;margin-right:5px;width:30px}"]}]}],Ct.propDecorators={placeholder:[{type:e.Input}],disabled:[{type:e.Input}],readonly:[{type:e.Input}],required:[{type:e.Input}],maxlength:[{type:e.Input}],type:[{type:e.Input}],rows:[{type:e.Input}],tabindex:[{type:e.Input}],iconPrefix:[{type:e.Input}],iconSuffix:[{type:e.Input}],min:[{type:e.Input}],max:[{type:e.Input}],step:[{type:e.Input}],onblur:[{type:e.Output}],ismask:[{type:e.Input}]};var St=function(){function t(t){this._dialog=t,this.model=[],this.readonly=!1,this.percent=!1,this.hiddenDe=!1,this.disabled=!1,this.messages=[],this.novoValor={De:null,Ate:null,Valor:null,Excluir:!1}}return t.prototype.ngOnChanges=function(){null==this.model&&(this.model=[]);for(var t=0;t<this.model.length;t++)this.model[t].Excluir=!1},t.prototype.getModel=function(){return this.model&&null!=this.model?this.model.filter((function(t){return!t.Excluir})):[]},t.prototype.add=function(){this.messages=[],this.hiddenDe&&null==this.novoValor.Ate&&this.messages.push("InformeUmValorDe"),this.hiddenDe||null!=this.novoValor.De||null!=this.novoValor.Ate||this.messages.push("InformeUmValorDeOuAte"),!this.hiddenDe&&this.novoValor.Ate<this.novoValor.De&&this.messages.push("ValorAteMenorQueDe"),null==this.novoValor.Valor&&this.messages.push("InformeValor"),this.messages.length>0||(this.model.push({De:this.novoValor.De,Ate:this.novoValor.Ate,Valor:this.novoValor.Valor,Excluir:!1}),this.novoValor={De:null,Ate:null,Valor:null,Excluir:!1},this.ordernar())},t.prototype.remover=function(t){var e=this;this._dialog.YesOrNo("MensagemExcluir").subscribe((function(n){n.button!=et.No&&(t.Excluir=!0,e.model.splice(e.model.findIndex((function(e){return e==t})),1),e.ordernar())}))},t.prototype.ordernar=function(){var t=this;this.model=this.model.sort((function(e,n){return(t.hiddenDe?e.Ate<n.Ate:e.De<n.De)?-1:(t.hiddenDe?e.Ate>n.Ate:e.De>n.De)?1:0}))},t}();St.decorators=[{type:e.Component,args:[{selector:"info-input-list",template:'<div class="row" *ngIf="!disabled" >\r\n <mat-form-field class="col-md-3" *ngIf="!hiddenDe" >\r\n <input matInput placeholder="{{ \'De\' | translate}}" name="De" [(ngModel)]="novoValor.De" currencyMask >\r\n </mat-form-field>\r\n\r\n <mat-form-field class="col-md-3" >\r\n <input matInput placeholder="{{ \'Ate\' | translate}}" name="Ate" [(ngModel)]="novoValor.Ate" currencyMask >\r\n </mat-form-field>\r\n\r\n <mat-form-field class="col-md-3" >\r\n <input matInput placeholder="{{ \'Valor\' | translate}} {{ percent ? \'%\' : \'\' }}" name="Valor" [(ngModel)]="novoValor.Valor" currencyMask >\r\n </mat-form-field>\r\n\r\n <div class="col-md-3">\r\n <button mat-button type="button" color="primary" (click)="add()" class="mt-2" ><mat-icon class="fs-20">add_circle_outline</mat-icon> {{ \'AddValor\' | translate }}</button>\r\n </div>\r\n</div>\r\n\r\n<div class="col-md-12" *ngIf="model == null || getModel().length == 0" ><mat-icon style="top: 6px;" class="mr-2">info_outline</mat-icon> {{ \'UtilizeCamposAcimaAdicionarItens\' | translate }}</div>\r\n\r\n<ul *ngIf="model != null" id="list-values" >\r\n <li class="row header" *ngIf="disabled">\r\n <label class="col-md-3" *ngIf="!hiddenDe" >{{ \'De\' | translate }}</label>\r\n <label class="col-md-3" >{{ \'Ate\' | translate }}</label>\r\n <label class="col-md-3" >{{ \'Valor\' | translate }}</label>\r\n </li>\r\n\r\n <li *ngFor="let item of getModel(); let i = index" class="row" [ngClass]="{ \'silver\': i % 2 == 0 }" >\r\n <div class="col-md-3" *ngIf="!hiddenDe" >\r\n \r\n <mat-form-field>\r\n <input matInput name="ListaValorDe" [ngModel]="item.De" [disabled]="true" currencyMask >\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class="col-md-3">\r\n <mat-form-field>\r\n <input matInput name="ListaValorAte" [ngModel]="item.Ate" [disabled]="true" currencyMask >\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class="col-md-3">\r\n <mat-form-field>\r\n <input matInput name="ListaValorValor" [ngModel]="item.Valor" [disabled]="true" currencyMask >\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class="col-md-3">\r\n <ng-container *ngIf="!disabled">\r\n \x3c!-- <button type="button" matTooltip="{{ \'OrdernarAcima\' | translate }}" mat-icon-button [disabled]="item.Indice <= 0" (click)="alterarIndice(item, item.Indice - 1)">\r\n <mat-icon>arrow_upward</mat-icon>\r\n </button>\r\n <button type="button" matTooltip="{{ \'OrdernarAbaixo\' | translate }}" mat-icon-button [disabled]="item.Indice >= (model.length - 1)" (click)="alterarIndice(item, item.Indice + 1)">\r\n <mat-icon>arrow_downward</mat-icon>\r\n </button> --\x3e\r\n <button type="button" color="warn" matTooltip="{{ \'Excluir\' | translate }}" mat-icon-button (click)="remover(item)">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </ng-container>\r\n </div>\r\n </li>\r\n</ul>\r\n\r\n\r\n<info-alert [messages]="messages"></info-alert>',styles:[":host .header{background:#fafafa;border-bottom:2px solid #f0f0f0;border-top:1px solid #f0f0f0;color:#333;font-family:Open Sans;font-size:9px;font-weight:700;padding:10px 20px 0 0;text-align:right;text-transform:uppercase}:host #list-values{padding:0}:host #list-values li.silver{background:#f5f5f5}:host #list-values li.hover{background:#eee}:host #list-values mat-form-field{margin-bottom:5px}:host #list-values button mat-icon{font-size:18px}"]}]}],St.ctorParameters=function(){return[{type:wt}]},St.propDecorators={model:[{type:e.Input}],readonly:[{type:e.Input}],percent:[{type:e.Input}],hiddenDe:[{type:e.Input}],disabled:[{type:e.Input}]};var Mt=function(){function t(t){this._translate=t,this.filterlabel="Filtrar",this.selectedlabel="Filtrar",this.model=[],this.max=0,this.onelist=!1,this.filterList="",this.filterSelected="",this.message=""}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this.disabledValue},set:function(t){this.disabledValue=t},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){null!=this.max&&this.max>0&&(this.message=this._translate.translate("MensagemTopRegistro").replace("{0}",this.max.toString()))},t.prototype.getModel=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),n||null==this.max||0==this.max?this.model.filter((function(n){return(e?n.Selecionado:n.Selecionado==n.Selecionado)&&n.Descricao.toLowerCase().indexOf(t.toLowerCase())>-1})):this.model.filter((function(n){return(e?n.Selecionado:n.Selecionado==n.Selecionado)&&n.Descricao.toLowerCase().indexOf(t.toLowerCase())>-1})).slice(0,this.max)},t.prototype.marcarFiltrados=function(t,e,n){void 0===n&&(n=!1);var i=this.getModel(t,n,!0).map((function(t){return t.Id}));this.model.forEach((function(t,n){i.indexOf(t.Id)>-1&&(t.Selecionado=e)}))},t.prototype.marcarTodos=function(t){this.model.forEach((function(e){return e.Selecionado=t}))},t}();Mt.decorators=[{type:e.Component,args:[{selector:"info-list-checkbox",template:'<div class="row">\r\n <div [ngClass]="{\'col-md-6\': !onelist, \'col-md-12\': onelist}" class="pr-0">\r\n <mat-form-field class="col-md-12" >\r\n <input matInput placeholder="{{ filterlabel | translate}}" name="FilterList" [(ngModel)]="filterList" >\r\n </mat-form-field>\r\n\r\n <div class="col-md-12">\r\n <label class="description"> {{ filterdescription | translate }}</label>\r\n <ng-container *ngIf="!disabled">\r\n <button mat-icon-button type="button" matTooltip="{{\'MarcarFiltrados\' | translate}}" (click)="marcarFiltrados(filterList, true)"><mat-icon>done</mat-icon></button>\r\n <button mat-icon-button type="button" matTooltip="{{\'MarcarTodos\' | translate}}" (click)="marcarTodos(true)"><mat-icon>done_all</mat-icon></button>\r\n <button mat-icon-button type="button" matTooltip="{{\'DesmarcarFiltrados\' | translate}}" (click)="marcarFiltrados(filterList, false)"><mat-icon>remove</mat-icon></button>\r\n <button mat-icon-button type="button" matTooltip="{{\'DesmarcarTodos\' | translate}}" (click)="marcarTodos(false)"><mat-icon>close</mat-icon></button>\r\n </ng-container>\r\n\r\n <ul class="checkbox-list">\r\n <li *ngFor="let item of getModel(filterList)" [(value)]="item.Id">\r\n <mat-checkbox [(ngModel)]="item.Selecionado" [disabled]="disabled"><span [innerHTML]="item.Descricao"></span></mat-checkbox>\r\n </li>\r\n </ul>\r\n </div>\r\n <div class="col-md-12 align-right"><small>{{message}}</small></div>\r\n </div>\r\n\r\n <div class="col-md-6 pr-0" *ngIf="!onelist">\r\n <mat-form-field class="col-md-12">\r\n <input matInput placeholder="{{ selectedlabel | translate}}" name="FilterSelected" [(ngModel)]="filterSelected" >\r\n </mat-form-field>\r\n\r\n <div class="col-md-12">\r\n <label class="description"> {{ selecteddescription | translate }}</label>\r\n <ng-container *ngIf="!disabled">\r\n <button mat-icon-button type="button" matTooltip="{{\'DesmarcarFiltrados\' | translate}}" (click)="marcarFiltrados(filterSelected, false, true)"><mat-icon>remove</mat-icon></button>\r\n <button mat-icon-button type="button" matTooltip="{{\'DesmarcarTodos\' | translate}}" (click)="marcarTodos(false)"><mat-icon>close</mat-icon></button>\r\n </ng-container>\r\n\r\n <ul class="checkbox-list">\r\n <li *ngFor="let item of getModel(filterSelected, true)" [(value)]="item.Id" >\r\n <mat-checkbox [(ngModel)]="item.Selecionado" [indeterminate]="true" [disabled]="disabled"><span [innerHTML]="item.Descricao"></span></mat-checkbox>\r\n </li>\r\n </ul>\r\n </div>\r\n <div class="col-md-12 align-right"><small>{{message}}</small></div>\r\n </div>\r\n</div>',styles:["ul.checkbox-list { height: 270px; overflow-y: auto }"]}]}],Mt.ctorParameters=function(){return[{type:nt}]},Mt.propDecorators={filterlabel:[{type:e.Input}],filterdescription:[{type:e.Input}],selectedlabel:[{type:e.Input}],selecteddescription:[{type:e.Input}],model:[{type:e.Input}],max:[{type:e.Input}],onelist:[{type:e.Input}],disabled:[{type:e.Input}]};var Tt=function(){function t(){this.color="info",this.outline=!0,this.close=!1,this.min=!1}return t.prototype.delete=function(t,e){t.preventDefault(),e.remove()},t}();Tt.decorators=[{type:e.Component,args:[{selector:"info-message",template:"<div class=\"message\" [ngClass]=\"{\r\n 'success-message': color === 'success',\r\n 'info-message': color === 'info',\r\n 'warning-message': color === 'warning',\r\n 'danger-message': color === 'danger',\r\n 'with-close': close,\r\n 'min': min }\" #message>\r\n <ng-content></ng-content>\r\n <a href=\"#\" class=\"close\" *ngIf=\"close\" (click)=\"delete($event, message)\"><i class=\"material-icons\">clear</i></a>\r\n</div>",styles:[":host{display:block;margin-bottom:0;padding-right:0!important}:host .message{border-radius:3px;font-size:14px;padding:20px 20px 16px;position:relative}:host .message.min{padding:10px 15px}:host .message:not(.outline-message){color:#fff}:host .message:not(.outline-message) /deep/ a{color:hsla(0,0%,100%,.8)}:host .message:not(.outline-message) /deep/ a:hover{color:#fff}:host .message .close{background:rgba(0,0,0,.1);font-size:20px;line-height:1;position:absolute;right:0;top:0;transition:background .2s ease-in-out,color .2s ease-in-out}:host .message .close:hover{background:hsla(0,0%,100%,.3);color:red}:host .message .close .material-icons{color:inherit;font-size:inherit;margin:0;vertical-align:top}:host .message /deep/ .material-icons{font-size:21px;margin:0 10px 0 0;vertical-align:top}:host .message.success-message{background:#cbefc4;border:none;color:#005e00}:host .message.success-message /deep/ .material-icons{color:#005e00}:host .message.info-message{background:#f0f0f0;border:none;color:#666}:host .message.info-message /deep/ .material-icons{color:#666}:host .message.warning-message{background:#efefc0;border:none;color:#705b20}:host .message.warning-message /deep/ .material-icons{color:#b59334}:host .message.danger-message{background:#efb7ae;border:none;color:#771702}:host .message.danger-message /deep/ .material-icons{color:#771702}"]}]}],Tt.propDecorators={color:[{type:e.Input}],outline:[{type:e.Input}],close:[{type:e.Input}],min:[{type:e.Input}]};var At=function(){function t(){this.size=5,this.min=!1,this.index=0,this.change=new e.EventEmitter,this.show=!1,this.indexActive=0,this.total=0,this.numberPages=1,this.pages=[],this.totalDescription=""}return t.prototype.refresh=function(t){if(this.pages=[],this.total=t,this.indexActive=this.index,this.numberPages=Math.ceil(this.total/this.size),this.total>this.size){var e=this.index>2?this.index-2:0,n=this.numberPages;if(this.index+2<this.numberPages){var i=3;this.index<2&&(i=5-this.index),n=this.index+i}else this.index-2>0&&(e=this.index-(5-(this.numberPages-this.index)));for(e<0&&(e=0),n>this.numberPages&&(n=this.numberPages);e<n;e++)this.pages.push(e)}else this.pages.push(0);this.setDescription(),this.show=!0},t.prototype.goto=function(t){this.index!=t&&(this.index=t,this.change.emit(this.index))},t.prototype.next=function(){this.goto(this.index+1)},t.prototype.previous=function(){this.goto(this.index-1)},t.prototype.setDescription=function(){var t=this.size*this.index+1,e=this.size*(this.index+1);e>this.total&&(e=this.total),this.totalDescription=t+" - "+e+" de "+this.total},t}();At.decorators=[{type:e.Component,args:[{selector:"info-paginator",template:'<div class="info-paginator" *ngIf="show" >\r\n <div class="row">\r\n <div class="col-md-2" [ngClass]="{ \'descriptions-min\': min == true, \'descriptions\': min != true }">\r\n <label class="total">{{totalDescription}}</label>\r\n </div>\r\n <div class="col-md-10 align-right" [ngClass]="{ \'pages-min\': min == true, \'pages\': min != true }">\r\n <ul>\r\n <li class="icon">\r\n <button mat-button (click)="goto(0)" [disabled]="index == 0" [matTooltip]="\'Primeira\' | translate" >\r\n <mat-icon>first_page</mat-icon>\r\n </button>\r\n </li>\r\n\r\n <li class="icon">\r\n <button mat-button (click)="previous()" [disabled]="index == 0" [matTooltip]="\'Anterior\' | translate" >\r\n <mat-icon>chevron_left</mat-icon>\r\n </button>\r\n </li>\r\n\r\n <li *ngFor="let page of pages" >\r\n <button mat-button (click)="goto(page)" [ngClass]="{\r\n \'active\': page === indexActive\r\n }" >{{page + 1}}</button>\r\n </li>\r\n\r\n <li class="icon">\r\n <button mat-button (click)="next()" [disabled]="index >= (numberPages - 1)" [matTooltip]="\'Proxima\' | translate" >\r\n <mat-icon>chevron_right</mat-icon>\r\n </button>\r\n </li>\r\n\r\n <li class="icon">\r\n <button mat-button (click)="goto(numberPages - 1)" [disabled]="index >= (numberPages - 1)" [matTooltip]="\'Ultima\' | translate" >\r\n <mat-icon>last_page</mat-icon>\r\n </button>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n</div>',styles:[":host>.info-paginator{padding:10px 10px 10px 20px}:host>.info-paginator .descriptions,:host>.info-paginator .pages{padding-left:10px!important;padding-right:10px!important}:host>.info-paginator .descriptions-min,:host>.info-paginator .pages-min{padding-left:0!important;padding-right:0!important}:host>.info-paginator ul{list-style:none;margin:0;padding:0}:host>.info-paginator ul li{display:inline-block;font-size:14px}:host>.info-paginator ul li .mat-button{line-height:25px;margin:0 2px;min-width:34px;padding:0}:host>.info-paginator ul li .mat-button.active{font-weight:700}:host>.info-paginator ul li .mat-button .mat-icon{font-size:20px}:host>.info-paginator ul li.icon .mat-button{padding:0 2px}"]}]}],At.propDecorators={size:[{type:e.Input}],min:[{type:e.Input}],index:[{type:e.Output}],change:[{type:e.Output}]};var Dt=function(){function t(t){this._dataAcessService=t,this.placeholder="",this.name="",this.required=!1,this.selectfirst=!1,this.disablednoregisters=!1,this.api=null,this.method="getchavevalor",this.blank=!1,this.blankItem=null,this.loading=!1,this.disabled=!1,this.onselecteditem=new e.EventEmitter,this.selectedValue=null,this.initialized=!1,this._params=null,this._data=[]}return Object.defineProperty(t.prototype,"params",{get:function(){return this._params},set:function(t){this._params=t,this.initialized&&this.getData()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(t){var e=this;this._data=t,this.selectfirst&&null!=this.data&&this.data.length>0&&!this.data.some((function(t){return t.Id==e.selectedValue}))&&this.writeValue(this.data[0].Id),this.disablednoregisters&&this.setDisabledState(null==this.data||0==this.data.length)},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.name+=this.placeholder.replace(/ /g,""),this.blank=""!==this.required&&"true"!==this.required&&!0!==this.required,null==this.blankItem&&(this.blankItem={Id:null,Nome:""}),this.getData()},t.prototype.writeValue=function(t){this.selectedValue=t,this.onChangeValue()},t.prototype.getData=function(){var t=this;this.initialized=!0,null==this.api||null!=this.params&&this.params.toLowerCase().indexOf("undefined")>-1||(this.loading=!0,this.data=[],this._dataAcessService.get(this.api,this.method,this.params).subscribe((function(e){e.success&&(t.data=e.data,t.selectedValue&&t.onChangeValue()),t.loading=!1})))},t.prototype.onChangeValue=function(){var t=this;null!=this.onChange&&this.onChange(this.selectedValue),null!=this.onselecteditem&&this.onselecteditem.emit(null==this.data?null:this.data.find((function(e){return e.Id==t.selectedValue})))},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=!(!this.disablednoregisters||null!=this.data&&0!=this.data.length)||t},t}();Dt.decorators=[{type:e.Component,args:[{selector:"info-select",template:'<mat-form-field>\r\n <mat-select [placeholder]="placeholder | translate" [(ngModel)]="selectedValue" (selectionChange)="onChangeValue()" [disabled]="disabled || loading" [required]="required">\r\n <mat-option *ngIf="blank" [value]="blankItem.Id">{{ blankItem.Nome | translate }}</mat-option>\r\n <mat-option *ngFor="let i of data" [value]="i.Id" [innerHTML]="i.Nome | translate"></mat-option>\r\n </mat-select>\r\n</mat-form-field>\r\n\r\n<section class="select-loading">\r\n <mat-progress-bar color="primary" mode="indeterminate" *ngIf="loading" >\r\n </mat-progress-bar>\r\n</section>',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return Dt})),multi:!0}],styles:[":host .mat-select-trigger{height:19px}:host .mat-form-field-type-mat-select .mat-form-field-label{height:20px}:host .mat-option{height:unset;white-space:normal}:host .select-loading{bottom:21px;height:1px;opacity:.3;position:relative}:host .select-loading .mat-progress-bar{height:1px;margin:0}:host.min .mat-form-field{margin:0!important}"]}]}],Dt.ctorParameters=function(){return[{type:rt}]},Dt.propDecorators={placeholder:[{type:e.Input}],name:[{type:e.Input}],required:[{type:e.Input}],selectfirst:[{type:e.Input}],disablednoregisters:[{type:e.Input}],api:[{type:e.Input}],method:[{type:e.Input}],blank:[{type:e.Input}],blankItem:[{type:e.Input}],loading:[{type:e.Input}],disabled:[{type:e.Input}],onselecteditem:[{type:e.Output}],params:[{type:e.Input}],data:[{type:e.Input}]};var Et=function(){function t(){this.showdate=!0,this.align="between",this.style="",this.label="",this.data=[],this.alignLeft=!1,this.alignCenter=!1,this.alignRight=!1,this.alignBetween=!1}return t.prototype.ngOnInit=function(){this.alignLeft="left"===this.align,this.alignCenter="center"===this.align,this.alignRight="right"===this.align,this.alignBetween="between"===this.align},t}();Et.decorators=[{type:e.Component,args:[{selector:"info-timeline",template:'<span class="line"></span>\r\n\r\n<div class="timeline-box">\r\n <div class="box-label" *ngIf="label != \'\'">\r\n <div class="label-text">{{label}}</div>\r\n </div>\r\n\r\n <div class="box-items">\r\n <div class="item" *ngFor="let item of data">\r\n <div class="item-point" [ngStyle]="{ \'border-color\': item.PointColor }"></div>\r\n <div class="item-content">\r\n <h2 *ngIf="item.Title">{{item.Title}}</h2>\r\n <p [innerHTML]="item.Content | translate"></p>\r\n <h3 *ngIf="item.Date">{{ item.Date }} às {{ item.Hour }}</h3>\r\n </div>\r\n </div>\r\n </div>\r\n</div>',host:{"[class.timeline]":"true","[class.show-date]":"true"},styles:[':host{display:block;font-size:.9em;margin:20px 0 10px;position:relative}:host .line{border-left:2px solid #eee;height:100%;left:6px;margin-left:-1px;position:absolute;top:0}:host .timeline-box .box-label{display:flex;padding:.78571rem 0}:host .timeline-box .box-label .label-text{border-radius:0;color:#fff;display:inline-block;min-width:6.28571rem;padding:.39286rem .78571rem;position:relative;text-align:center}:host .timeline-box .box-items{display:flex;flex-direction:column}:host .timeline-box .box-items .item{margin:0;padding-left:50px;position:relative}@media (max-width:543px){:host .timeline-box .box-items .item{padding-left:32px}}:host .timeline-box .box-items .item .item-point{background:#fff;border-radius:50%;display:block;height:12px;left:0;position:absolute;top:calc(1.17857rem + 1px);width:12px}:host .timeline-box .box-items .item .item-date{font-size:.875rem;margin-bottom:.78571rem}:host .timeline-box .box-items .item .item-content{background:#eee;border-radius:0;box-shadow:0 0 5px #f5f5f5;display:inline-block;margin-bottom:5px;min-width:180px;padding:12px;position:relative;width:auto}:host .timeline-box .box-items .item .item-content:after,:host .timeline-box .box-items .item .item-content:before{border:10px solid transparent;content:"";display:block;height:0;position:absolute;top:14px;width:0}:host .timeline-box .box-items .item .item-content:before{border-right-color:#eee;right:100%}:host .timeline-box .box-items .item .item-content:after{border-left-color:#eee;display:none;left:100%}:host .timeline-box .box-items .item .item-content .item-title{margin-top:0}:host .timeline-box .box-items .item .item-content h2{display:block;font-size:.9em;font-weight:700;margin:0}:host .timeline-box .box-items .item .item-content p{margin:5px 0!important}:host .timeline-box .box-items .item .item-content h3{color:#666;display:block;font-size:.7em;margin:0;text-align:right}:host.show-date .timeline-box .box-items .item .item-point{top:calc(1.17857rem + 1px)}:host.align-right .line{left:auto;margin:0 -1px 0 auto;right:6px}:host.align-right .timeline-box .box-label{justify-content:flex-end}:host.align-right .timeline-box .box-items{align-items:flex-end}:host.align-right .timeline-box .box-items .item{padding:0 50px 0 0}@media (max-width:543px){:host.align-right .timeline-box .box-items .item{padding:0 32px 0 0}}:host.align-right .timeline-box .box-items .item .item-point{left:auto;right:0}:host.align-right .timeline-box .box-items .item .item-date{text-align:right}:host.align-right .timeline-box .box-items .item .item-content:before{display:none}:host.align-right .timeline-box .box-items .item .item-content:after{display:block}:host.align-center .line{left:50%}:host.align-center .timeline-box .box-label{justify-content:center}:host.align-center .timeline-box .box-items{align-items:center}:host.align-center .timeline-box .box-items .item{padding:0;text-align:center}@media (max-width:543px){:host.align-center .timeline-box .box-items .item{padding:0}}:host.align-center .timeline-box .box-items .item .item-point{left:50%;margin:-26px 0 0 -6px;top:0}:host.align-center .timeline-box .box-items .item .item-date{margin-bottom:33px;text-align:center}:host.align-center .timeline-box .box-items .item .item-date span{background:#eee;border:1px solid #eee;border-radius:0;display:inline-block;padding:.39286rem .78571rem}:host.align-center .timeline-box .box-items .item .item-content:before{border-color:transparent transparent #ddd;left:50%;margin:-20px 0 0 -10px;top:0}:host.align-center.show-date .timeline-box .box-items .item .item-point{margin-top:40px}@media (min-width:768px){:host.align-between .line{left:50%}:host.align-between .timeline-box .box-label{justify-content:center}:host.align-between .timeline-box .box-items .item{width:50%}:host.align-between .timeline-box .box-items .item:nth-child(2n){align-self:flex-end}:host.align-between .timeline-box .box-items .item:nth-child(2n) .item-point{left:0;margin-left:-6px}:host.align-between .timeline-box .box-items .item:nth-child(odd){padding:0 50px 0 0;text-align:right}}@media (min-width:768px) and (max-width:543px){:host.align-between .timeline-box .box-items .item:nth-child(odd){padding:0 32px 0 0}}@media (min-width:768px){:host.align-between .timeline-box .box-items .item:nth-child(odd) .item-point{left:100%;margin-left:-6px}:host.align-between .timeline-box .box-items .item:nth-child(odd) .item-content{text-align:left}:host.align-between .timeline-box .box-items .item:nth-child(odd) .item-content:before{display:none}:host.align-between .timeline-box .box-items .item:nth-child(odd) .item-content:after{display:block}}']}]}],Et.ctorParameters=function(){return[]},Et.propDecorators={showdate:[{type:e.Input}],align:[{type:e.Input}],style:[{type:e.Input}],label:[{type:e.Input}],data:[{type:e.Input}],alignLeft:[{type:e.HostBinding,args:["class.align-left"]}],alignCenter:[{type:e.HostBinding,args:["class.align-center"]}],alignRight:[{type:e.HostBinding,args:["class.align-right"]}],alignBetween:[{type:e.HostBinding,args:["class.align-between"]}]};var Pt=function(){function t(t){this._sanitizer=t,this.required=!1,this.enabledhtmlmode=!1,this.value="",this.focused=!1,this.id=null,this.editorConfig={editable:!0,spellcheck:!0,height:"auto",minHeight:"0",maxHeight:"auto",width:"auto",minWidth:"0",translate:"yes",enableToolbar:!0,showToolbar:!0,defaultParagraphSeparator:"",toolbarPosition:"top",fonts:[{class:"arial",name:"Arial"},{class:"times-new-roman",name:"Times New Roman"},{class:"calibri",name:"Calibri"},{class:"comic-sans-ms",name:"Comic Sans MS"}]}}return Object.defineProperty(t.prototype,"disabled",{get:function(){return!(this.editorConfig||{}).editable},set:function(t){this.editorConfig.editable=!t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return(this.editorConfig||{}).height},set:function(t){this.editorConfig.height=t||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minheight",{get:function(){return(this.editorConfig||{}).minHeight},set:function(t){this.editorConfig.minHeight=t||"0"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxheight",{get:function(){return(this.editorConfig||{}).maxHeight},set:function(t){this.editorConfig.maxHeight=t||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return(this.editorConfig||{}).width},set:function(t){this.editorConfig.width=t||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minwidth",{get:function(){return(this.editorConfig||{}).minWidth},set:function(t){this.editorConfig.minWidth=t||"0"},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.id="editor-"+this.getGuid()},t.prototype.ngAfterViewInit=function(){var t=this;document.querySelector("#"+this.id+" .angular-editor-textarea").addEventListener("focus",(function(){return t.focused=!0})),document.querySelector("#"+this.id+" .angular-editor-textarea").addEventListener("blur",(function(){return t.focused=!1})),document.querySelector("#"+this.id+" .angular-editor-textarea").addEventListener("mouseout",(function(){return t.editor.editorToolbar.editorService.saveSelection()}))},t.prototype.getGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))},t.prototype.onChangeValue=function(){this.value=this._sanitizer.sanitize(e.SecurityContext.HTML,this.value),null!=this.onChange&&this.onChange(this.value)},t.prototype.writeValue=function(t){this.value=this._sanitizer.sanitize(e.SecurityContext.HTML,t),this.onChangeValue()},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t}();Pt.decorators=[{type:e.Component,args:[{selector:"info-editor",template:'<angular-editor [attr.id]="id" [attr.focused]="focused" [attr.htmlmode]="enabledhtmlmode" [(ngModel)]="value" name="editor" [config]="editorConfig" (ngModelChange)="onChangeValue()" [required]="required" #editor></angular-editor>\r\n',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return Pt})),multi:!0}],styles:[':host ::ng-deep .angular-editor-toolbar-set #insertVideo-,:host ::ng-deep [htmlmode=false] .angular-editor-toolbar-set #toggleEditorMode-{display:none}:host ::ng-deep .angular-editor-textarea{border:none!important;border-bottom:1px solid!important;outline:none}:host ::ng-deep .angular-editor-textarea[contenteditable=false]{border-bottom:1.5px dotted #d3d3d3!important}:host ::ng-deep .angular-editor-wrapper:after{background-color:#000;bottom:0;content:"";height:2px;left:0;opacity:0;position:absolute;transform:scaleX(.5);transform-origin:50%;transition:background-color .3s cubic-bezier(.55,0,.55,.2);width:100%}:host ::ng-deep [focused=true] .angular-editor-wrapper:after{opacity:1;transform:scaleX(1);transition:transform .3s cubic-bezier(.25,.8,.25,1),opacity .1s cubic-bezier(.25,.8,.25,1),background-color .3s cubic-bezier(.25,.8,.25,1)}:host ::ng-deep .ng-touched.ng-invalid .angular-editor-wrapper:after{background-color:#f44336!important}:host ::ng-deep .ng-touched.ng-invalid .angular-editor-textarea[contenteditable=true]{border-bottom-color:#f44336!important}']}]}],Pt.ctorParameters=function(){return[{type:h.DomSanitizer}]},Pt.propDecorators={editor:[{type:e.ViewChild,args:["editor"]}],required:[{type:e.Input}],enabledhtmlmode:[{type:e.Input}],disabled:[{type:e.Input}],height:[{type:e.Input}],minheight:[{type:e.Input}],maxheight:[{type:e.Input}],width:[{type:e.Input}],minwidth:[{type:e.Input}]};var Ot=function(){function t(t){this._dataAcessService=t,this.placeholder="",this.name="",this.required=!1,this.selectfirst=!1,this.disablednoregisters=!1,this.api=null,this.method="getchavevalor",this.loading=!1,this.disabled=!1,this.onselecteditem=new e.EventEmitter,this.selectedValues=[],this.initialized=!1,this._params=null,this._data=[]}return Object.defineProperty(t.prototype,"params",{get:function(){return this._params},set:function(t){this._params=t,this.initialized&&this.getData()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(t){var e=this;this._data=t,this.selectfirst&&null!=this.data&&this.data.length>0&&!this.data.some((function(t){var n;return(null===(n=e.selectedValues)||void 0===n?void 0:n.indexOf(t.Id))>-1}))&&this.writeValue([this.data[0].Id]),this.disablednoregisters&&this.setDisabledState(null==this.data||0==this.data.length)},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.name+=this.placeholder.replace(/ /g,""),this.getData()},t.prototype.writeValue=function(t){this.selectedValues=t,this.onChangeValue()},t.prototype.getData=function(){var t=this;this.initialized=!0,null==this.api||null!=this.params&&this.params.toLowerCase().indexOf("undefined")>-1||(this.loading=!0,this.data=[],this._dataAcessService.get(this.api,this.method,this.params).subscribe((function(e){e.success&&(t.data=e.data,(t.selectedValues||[]).length>0&&t.onChangeValue()),t.loading=!1})))},t.prototype.onChangeValue=function(){var t=this;null!=this.onChange&&this.onChange(this.selectedValues),null!=this.onselecteditem&&this.onselecteditem.emit(null==this.data?null:this.data.filter((function(e){var n;return(null===(n=t.selectedValues)||void 0===n?void 0:n.indexOf(e.Id))>-1})))},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=!(!this.disablednoregisters||null!=this.data&&0!=this.data.length)||t},t}();Ot.decorators=[{type:e.Component,args:[{selector:"info-multi-select",template:'<mat-form-field>\r\n <mat-label>{{placeholder | translate}}</mat-label>\r\n\r\n <mat-select [(ngModel)]="selectedValues" (selectionChange)="onChangeValue()" [disabled]="disabled || loading" [required]="required" multiple>\r\n <mat-option *ngFor="let i of data" [value]="i.Id">\r\n <span [innerHtml]="i.Nome | translate"></span>\r\n </mat-option>\r\n </mat-select>\r\n</mat-form-field>\r\n\r\n<section class="select-loading">\r\n <mat-progress-bar color="primary" mode="indeterminate" *ngIf="loading" >\r\n </mat-progress-bar>\r\n</section>',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return Ot})),multi:!0}],styles:[":host .mat-select-trigger{height:19px}:host .mat-form-field-type-mat-select .mat-form-field-label{height:20px}:host .select-loading{bottom:21px;height:1px;opacity:.3;position:relative}:host .select-loading .mat-progress-bar{height:1px;margin:0}:host.min .mat-form-field{margin:0!important}"]}]}],Ot.ctorParameters=function(){return[{type:rt}]},Ot.propDecorators={placeholder:[{type:e.Input}],name:[{type:e.Input}],required:[{type:e.Input}],selectfirst:[{type:e.Input}],disablednoregisters:[{type:e.Input}],api:[{type:e.Input}],method:[{type:e.Input}],loading:[{type:e.Input}],disabled:[{type:e.Input}],onselecteditem:[{type:e.Output}],params:[{type:e.Input}],data:[{type:e.Input}]};var Vt=function(){function t(){this.disabled=!1,this.readonly=!1,this.separatorKeysCodes=[m.ENTER],this.onblur=new e.EventEmitter,this.values=[]}return t.prototype.add=function(t){var e=t.input,n=t.value;(n||"").trim()&&this.values.push(n.trim()),e&&(e.value=""),this.writeValue(this.values)},t.prototype.remove=function(t){t>=0&&this.values.splice(t,1),this.writeValue(this.values)},t.prototype.onBlur=function(){this.onblur.emit(this.values)},t.prototype.onChangeValue=function(){null!=this.onChange&&this.onChange(this.values)},t.prototype.writeValue=function(t){this.values=t,this.onChangeValue()},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t}();Vt.decorators=[{type:e.Component,args:[{selector:"info-chips",template:'<mat-form-field>\r\n <mat-chip-list #chipList>\r\n <mat-chip *ngFor="let item of values; let i = index" [removable]="!disabled" (removed)="remove(i)">\r\n {{item}}\r\n <mat-icon matChipRemove *ngIf="!disabled">cancel</mat-icon>\r\n </mat-chip>\r\n <input [placeholder]="placeholder | translate"\r\n [matChipInputFor]="chipList"\r\n [matChipInputSeparatorKeyCodes]="separatorKeysCodes"\r\n (matChipInputTokenEnd)="add($event)"\r\n [disabled]="disabled"\r\n (blur)="onBlur()">\r\n </mat-chip-list>\r\n </mat-form-field>',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return Vt})),multi:!0}]}]}],Vt.propDecorators={placeholder:[{type:e.Input}],disabled:[{type:e.Input}],readonly:[{type:e.Input}],onblur:[{type:e.Output}]};var Lt=function(){function t(t,n,i,o,a,s,r){this._platform=t,this._session=n,this._router=i,this._dataAccessService=o,this._themeService=a,this._renderer=s,this._element=r,this.opened=!1,this.version=null,this.messages=[],this._themes=[],this.languages=[],this.profileurl="",this.loginurl="login",this.menuapi=null,this.menumethod="GetMenu",this.activemenubyurl=!1,this.loggeduserapi=null,this.loggedusermethod="GetLoggedUser",this.notificationapi=null,this.notificationgetmethod="Get",this.notificationpostmethod="PostNotification",this.notificationverifymethod="Verify",this.notificationverifyenabled=!0,this.fastsearchform=null,this.fastsearchformwidth=1200,this.fastsearchtitle="PesquisaRapidaCarteira",this.setthemeonchangecompany=!1,this.shortcutapi=null,this.ongetnotification=new e.EventEmitter,this.onverifynotification=new e.EventEmitter}return Object.defineProperty(t.prototype,"themes",{get:function(){return this._themes},set:function(t){this._themes=t,this._platform.Themes=this.themes,this._session.TemaId>0&&this.setthemeonchangecompany&&this._themeService.setThemeByLoggedCompany()},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){if(this._renderer.addClass(this._element.nativeElement,"uxc"+this._platform.Config.ux),this._platform.Config.topMenu&&this._renderer.addClass(this._element.nativeElement,"topmenu"),this._platform.Themes=this.themes,this._platform.ShortcutApi=this.shortcutapi,null==localStorage.getItem(this._platform.TokenKey)?this._router.navigateByUrl(this.loginurl):this.getLoggedUser(),document.body.classList.length>0){var t=document.body.classList[0];document.body.classList[0].indexOf("-theme")<0&&null!=this._platform.Config.theme&&(t="_"+this._platform.Config.theme+"-theme"),this._themeService.setTheme(t)}},t.prototype.onChangeTopBarState=function(){this.opened=!this.opened},t.prototype.onChangeSideBarState=function(){this.topbar.openSidebar()},t.prototype.getLoggedUser=function(){var t=this;null!=localStorage.getItem(this._platform.SessionKey)&&Object.assign(this._session,JSON.parse(localStorage.getItem(this._platform.SessionKey))),null==this._session.UsuarioId&&null!=this.loggeduserapi&&this._dataAccessService.get(this.loggeduserapi,this.loggedusermethod).subscribe((function(e){e.success&&(t._session.UsuarioId=e.data.UsuarioId,t._session.Usuario=e.data.Usuario,t._session.Login=e.data.Login,t._session.Email=e.data.Email,t._session.Perfil=e.data.Perfil,t._session.EmpresaId=e.data.EmpresaId,t._session.TemaId=e.data.TemaId,t._session.Empresa=e.data.Empresa,t._session.UltimoAcesso=e.data.UltimoAcesso,t._session.Master=e.data.Master,t._session.Clone=e.data.Clone,t._session.OcultarNomeCliente=e.data.OcultarNomeCliente,t._session.Empresas=e.data.Empresas,t._session.Parametros=e.data.Parametros,t._session.MFA=e.data.MFA,t._session.TempoInatividade=e.data.TempoInatividade,t._session.Versao=e.data.Versao,t.version=e.data.Versao,t._session.Parametros.some((function(t){return"DisclaimerGeral"==t.Chave}))&&t.messages.push(t._session.Parametros.find((function(t){return"DisclaimerGeral"==t.Chave})).Valor),null!=t._session.TemaId&&t._themeService.setThemeByLoggedCompany())}))},t.prototype.onGetNotificationsTopBar=function(t){this.ongetnotification.emit(t)},t.prototype.onVerifyNotificationsTopBar=function(t){this.onverifynotification.emit(t)},t}();Lt.decorators=[{type:e.Component,args:[{selector:"info-main",template:'<div class="site-container" [ngClass]="{ \'open-sidebar\': opened }">\r\n \r\n <info-topbar #topbar\r\n [themes]="themes" \r\n [languages]="languages" \r\n [profileurl]="profileurl"\r\n [notificationapi]="notificationapi" \r\n [notificationgetmethod]="notificationgetmethod" \r\n [notificationpostmethod]="notificationpostmethod"\r\n [notificationverifymethod]="notificationverifymethod"\r\n [notificationverifyenabled]="notificationverifyenabled"\r\n [fastsearchform]="fastsearchform"\r\n [fastsearchformwidth]="fastsearchformwidth"\r\n [fastsearchtitle]="fastsearchtitle"\r\n [setthemeonchangecompany]="setthemeonchangecompany"\r\n (onchangestate)="onChangeTopBarState()"\r\n (ongetnotification)="onGetNotificationsTopBar($event)"\r\n (onverifynotification)="onVerifyNotificationsTopBar($event)">\r\n </info-topbar>\r\n \r\n <info-topmenu *ngIf="_platform.Config.topMenu"\r\n [api]="menuapi" \r\n [method]="menumethod" \r\n (onchangestate)="onChangeSideBarState()">\r\n </info-topmenu>\r\n\r\n <info-sidebar *ngIf="!_platform.Config.topMenu"\r\n [api]="menuapi" \r\n [method]="menumethod" \r\n [activemenubyurl]="activemenubyurl"\r\n (onchangestate)="onChangeSideBarState()">\r\n </info-sidebar>\r\n\r\n <main class="main-content">\r\n <div class="main-content-wrap">\r\n <ng-content></ng-content>\r\n </div>\r\n\r\n <div class="footer row">\r\n <div class="copyright col-md-9">{{ \'Copyright\' | translate}}</div>\r\n <div class="version col-md-3" *ngIf="version">{{ \'Versao\' | translate}} {{ version }}</div>\r\n </div>\r\n \r\n <info-alert [messages]="messages"></info-alert>\r\n </main>\r\n</div>',styles:[":host.topmenu .main-content{padding:180px 0 0!important}:host.uxc3 .main-content{padding:140px 0 0 240px;transition:padding .2s ease-in-out}:host.uxc3 .main-content .bg{background:#fff}@media screen and (max-width:991px){:host.uxc3 .main-content{padding-left:0}}@media screen and (max-width:543px){:host.uxc3 .main-content{padding-top:70px}}:host.uxc3 .main-content .footer{background:#fafafa}:host.uxc3 .main-content .footer .version{text-align:right}:host.uxc3 .open-sidebar info-sidebar,:host.uxc3 .open-sidebar info-topbar{left:0}@media screen and (max-width:991px){:host.uxc3 .open-sidebar info-sidebar .sidebar-overlay{opacity:.5;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out 0s;visibility:visible}}@media screen and (max-width:991px){:host.uxc3 .open-sidebar info-sidebar .site-sidebar:before,:host.uxc3 .open-sidebar info-sidebar .sub-menu{display:block!important}}:host.uxc2 .main-content{padding:131px 0 0 240px;transition:padding .2s ease-in-out}@media (max-width:991px){:host.uxc2 .main-content{padding-left:0}}@media (max-width:543px){:host.uxc2 .main-content{padding-top:123px}}:host.uxc2 info-topbar{transition:left .2s ease-in-out}@media (max-width:991px){:host.uxc2 info-topbar{width:100%}}:host.uxc2 .open-sidebar info-topbar{left:240px}:host.uxc2 .open-sidebar info-sidebar{left:0}@media (max-width:991px){:host.uxc2 .open-sidebar info-sidebar /deep/ .sidebar-overlay{opacity:1;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out 0s;visibility:visible}}:host.uxc2 .footer{align-items:center;background:rgba(0,0,0,.1);bottom:0;display:flex;font-size:.8rem;height:3.14286rem;justify-content:space-between;position:-webkit-sticky;position:sticky;width:100%;z-index:9997}@media (max-width:543px){:host.uxc2 .footer{font-size:.7rem}}:host.uxc2 .footer .copyright,:host.uxc2 .footer .version{padding:10px 22px}@media (max-width:543px){:host.uxc2 .footer .copyright{padding-right:0}}:host.uxc2 .footer .version{color:#000;text-align:right}"]}]}],Lt.ctorParameters=function(){return[{type:J},{type:Q},{type:i.Router},{type:rt},{type:ut},{type:e.Renderer2},{type:e.ElementRef}]},Lt.propDecorators={opened:[{type:e.Input}],version:[{type:e.Input}],messages:[{type:e.Input}],themes:[{type:e.Input}],languages:[{type:e.Input}],profileurl:[{type:e.Input}],loginurl:[{type:e.Input}],menuapi:[{type:e.Input}],menumethod:[{type:e.Input}],activemenubyurl:[{type:e.Input}],loggeduserapi:[{type:e.Input}],loggedusermethod:[{type:e.Input}],notificationapi:[{type:e.Input}],notificationgetmethod:[{type:e.Input}],notificationpostmethod:[{type:e.Input}],notificationverifymethod:[{type:e.Input}],notificationverifyenabled:[{type:e.Input}],fastsearchform:[{type:e.Input}],fastsearchformwidth:[{type:e.Input}],fastsearchtitle:[{type:e.Input}],setthemeonchangecompany:[{type:e.Input}],shortcutapi:[{type:e.Input}],ongetnotification:[{type:e.Output}],onverifynotification:[{type:e.Output}],topbar:[{type:e.ViewChild,args:["topbar"]}]};var Nt=function(){function t(t,n,i,o,a,s,r,l,c){this._dataAcessService=t,this._authentication=n,this._themeService=i,this._session=o,this._platform=a,this._lastSearch=s,this._router=r,this._renderer=l,this._element=c,this.api=null,this.method="GetMenu",this.activemenubyurl=!1,this.onchangestate=new e.EventEmitter,this.loading=!1,this.menu=[],this.openSubmenu="",this.menuAtivo="Dashboard"}return t.prototype.ngOnInit=function(){var t=this;this._authentication.isLogged()&&null!=this.api&&(this._renderer.addClass(this._element.nativeElement,"uxc"+this._platform.Config.ux),this.loading=!0,this._dataAcessService.get(this.api,this.method).subscribe((function(e){e.success&&(t.menu=e.data,t._platform.Menu=e.data,t._authentication.definePaginaAtiva(t._router.url),t.monitorarUrl()),t.loading=!1})))},t.prototype.toggle=function(t,e){if(t.preventDefault(),e.Enabled){if(!e.Active)for(var n=0;n<this.menu.length;n++)this.menu[n].Active=!1;e.Active=!e.Active}},t.prototype.access=function(t){this.menuAtivo=t,this.openSubmenu="",this.resetLastSearch()},t.prototype.monitorarUrl=function(){var t=this;this.activemenubyurl&&(this.ativarMenu(this._router.url),this._router.events.subscribe((function(e){e instanceof i.NavigationStart&&t.ativarMenu(e.url)})))},t.prototype.ativarMenu=function(t){var e=this.menu.find((function(e){return e.Routing==t}));null!=e&&(this.menuAtivo=e.Title)},t.prototype.toggleSubmenu=function(t){this.openSubmenu=this.openSubmenu==t?"":t},t.prototype.resetLastSearch=function(){this._lastSearch.model=null,this._lastSearch.url=""},t.prototype.changeSidebar=function(){this.onchangestate.emit()},t.prototype.toggleSidebar=function(){this._themeService.setMenuMin()},t}();Nt.decorators=[{type:e.Component,args:[{selector:"info-sidebar",template:'<ng-container *ngIf="_platform.Config.ux >= 3">\r\n <div class="site-sidebar" [ngClass]="{ \'opened\': openSubmenu }" >\r\n <nav>\r\n <div class="main-menu">\r\n <a id="menu-min-icon" (click)="toggleSidebar()">\r\n <mat-icon [ngClass]="{ \'min\': _platform.MenuMin }">chevron_right</mat-icon>\r\n </a>\r\n\r\n <ul *ngIf="menu">\r\n \r\n <li class="menu-item" *ngFor="let m of menu" [ngClass]="{ \'active\': menuAtivo == m.Title, \'disabled\': !m.Enabled, \'opened\': openSubmenu == m.Title }">\r\n \r\n <a *ngIf="m.Sub == null" [routerLink]="m.Routing" class="item-link" (click)="access(m.Title);tooltip.hide();" >\r\n <mat-icon #tooltip="matTooltip" [matTooltip]="m.Title | translate" [matTooltipDisabled]="!_platform.MenuMin" matTooltipPosition="right" [matTooltipShowDelay]="600" matTooltipClass="mat-tooltip">{{ m.Icon }}</mat-icon>\r\n <label class="title">{{ m.Title | translate }}</label>\r\n </a>\r\n \r\n <ng-container *ngIf="m.Sub != null">\r\n <a class="item-link" (click)="toggleSubmenu(m.Title);tooltip.hide();" >\r\n <mat-icon #tooltip="matTooltip" [matTooltip]="m.Title | translate" [matTooltipDisabled]="!_platform.MenuMin" matTooltipPosition="right" [matTooltipShowDelay]="600" matTooltipClass="mat-tooltip" >{{ m.Icon }}</mat-icon>\r\n <label class="title">{{ m.Title | translate }}</label>\r\n </a>\r\n \r\n <div class="sub-menu">\r\n <h4>{{ m.Title | translate }}</h4>\r\n \r\n <ul>\r\n <li *ngFor="let s of m.Sub">\r\n <a [routerLink]="s.Routing" class="item-link" (click)="changeSidebar();access(m.Title);" >{{ s.Title | translate }}</a>\r\n </li>\r\n </ul>\r\n </div>\r\n </ng-container>\r\n </li>\r\n </ul>\r\n </div>\r\n </nav>\r\n <div class="sub-menu-overlay" (click)="openSubmenu = \'\'"></div>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf="_platform.Config.ux <= 2">\r\n <div class="site-sidebar">\r\n\r\n <div class="logo">\r\n <a href="/" >\r\n <i class="logo-img"></i>\r\n </a>\r\n </div>\r\n\r\n <div class="info">\r\n <span>{{ _session.Usuario }}</span>\r\n <small>{{ _session.Perfil }}</small>\r\n </div>\r\n\r\n <nav>\r\n <div class="main-menu">\r\n <section class="loading-bar" *ngIf="loading">\r\n <mat-progress-bar color="primary" mode="indeterminate"></mat-progress-bar>\r\n </section>\r\n <ul *ngIf="menu">\r\n <li class="menu-item" *ngFor="let m of menu" [ngClass]="{ \'has-sub\': m.Sub != null, \'active\': m.Active, \'menu-item-group\': m.Group, \'disabled\': !m.Enabled }">\r\n \r\n \x3c!-- Grupos --\x3e\r\n <span class="group-title" *ngIf="m.Group">{{ m.Title }} </span>\r\n \r\n \x3c!-- Itens --\x3e\r\n <a href="#" [routerLink]="m.Routing" class="item-link" *ngIf="!m.Group && m.Sub == null && m.Enabled" (click)="toggle($event, m);resetLastSearch();">\r\n <mat-icon>{{ m.Icon }}</mat-icon>{{ m.Title | translate }}\r\n </a>\r\n \r\n <a class="item-link" *ngIf="!m.Group && m.Sub == null && !m.Enabled">\r\n <mat-icon>{{ m.Icon }}</mat-icon>{{ m.Title | translate }} \r\n </a>\r\n \r\n \x3c!-- Item com submenu --\x3e\r\n <a href="#" class="item-link" *ngIf="!m.Group && m.Sub != null" (click)="toggle($event, m)">\r\n <mat-icon class="icon">{{ m.Icon }}</mat-icon>{{ m.Title | translate }}\r\n <i class="caret fa fa-angle-right" *ngIf="m.Sub"></i>\r\n </a>\r\n \r\n \x3c!-- Sub Menu --\x3e\r\n <ul class="sub" *ngIf="!m.Group && m.Sub != null">\r\n <li class="menu-item" *ngFor="let s of m.Sub">\r\n <a [routerLink]="s.Routing" (click)="resetLastSearch()" class="item-link" >{{ s.Title | translate }}</a>\r\n </li>\r\n </ul>\r\n </li>\r\n </ul>\r\n </div>\r\n </nav>\r\n </div>\r\n</ng-container>\r\n\r\n<div class="sidebar-overlay"></div>',styles:[':host.uxc3{display:block;height:100%;left:0;position:fixed;top:80px;transition:left .2s ease-in-out,width .2s ease-in-out;width:240px;z-index:9997}@media screen and (max-width:991px){:host.uxc3{left:-240px;top:180px}}:host.uxc3 .site-sidebar{display:flex;flex-direction:column;height:100%;min-height:60px;width:100%}@media screen and (max-width:991px){:host.uxc3 .site-sidebar{position:relative}:host.uxc3 .site-sidebar:before{top:180px}}:host.uxc3 .site-sidebar:before{content:" ";height:100%;left:240px;position:fixed;top:0;transition:opacity .2s ease-in-out,visibility .2s ease-in-out;visibility:hidden;width:370px;z-index:-1}@media screen and (max-width:991px){:host.uxc3 .site-sidebar:before{display:none}}:host.uxc3 .site-sidebar.opened:before{opacity:1;visibility:visible}:host.uxc3 .site-sidebar.opened .sub-menu-overlay{opacity:.5;visibility:visible}@media screen and (max-width:991px){:host.uxc3 .site-sidebar.opened .sub-menu-overlay{opacity:0!important}}:host.uxc3 .site-sidebar .sub-menu-overlay{height:100%;left:0;opacity:0;position:fixed;top:0;transition:opacity .2s ease-in-out,visibility .2s ease-in-out;visibility:hidden;width:100%;z-index:-2}:host.uxc3 nav{-webkit-overflow-scrolling:touch;display:block;overflow-x:hidden;overflow-y:auto;padding-top:5px}:host.uxc3 nav #menu-min-icon{cursor:pointer;height:20px;position:absolute;right:20px;top:20px;transition:right .2s ease-in-out;width:20px}:host.uxc3 nav #menu-min-icon mat-icon{font-size:20px;height:inherit;transform:rotate(180deg);transition:transform .2s ease-in-out;width:inherit}:host.uxc3 nav #menu-min-icon mat-icon.min{transform:rotate(0deg)}:host.uxc3 nav .main-menu{overflow-y:auto;width:240px}:host.uxc3 nav .main-menu>ul{list-style-type:none;margin:30px 0 0;padding:10px 0 22px}:host.uxc3 nav .main-menu>ul .menu-item{margin-bottom:3px;position:relative}:host.uxc3 nav .main-menu>ul .menu-item:after{bottom:0;content:"";left:-5px;position:absolute;top:0;transition:transform .2s ease-in-out;width:5px}:host.uxc3 nav .main-menu>ul .menu-item>.item-link{-moz-user-select:none;-webkit-touch-callout:none;-webkit-user-select:none;cursor:pointer;display:block;font-size:14px;font-weight:500;padding:5px 5px 10px 20px;position:relative;text-decoration:none;transition:background .2s ease-in-out,color .2s ease-in-out;user-select:none}:host.uxc3 nav .main-menu>ul .menu-item>.item-link .mat-icon{height:auto;margin-right:15px;top:6px}:host.uxc3 nav .main-menu>ul .menu-item>.item-link .title{margin-bottom:0;transition:opacity .2s ease-in-out}:host.uxc3 nav .main-menu>ul .menu-item:hover>.item-link{font-weight:600}:host.uxc3 nav .main-menu>ul .menu-item:hover:after{transform:translateX(4px)}:host.uxc3 nav .main-menu>ul .menu-item.active>.item-link,:host.uxc3 nav .main-menu>ul .menu-item.opened>.item-link{background:transparent;font-weight:600}:host.uxc3 nav .main-menu>ul .menu-item.active:after,:host.uxc3 nav .main-menu>ul .menu-item.opened:after{transform:translateX(4px)}:host.uxc3 nav .main-menu>ul .menu-item.disabled>.item-link{cursor:default;opacity:.5}:host.uxc3 nav .main-menu>ul .menu-item .sub-menu{font-family:Open Sans,sans-serif;left:240px;opacity:0;padding:0 40px;position:fixed;top:100px;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out .2s;visibility:hidden;width:370px}@media screen and (max-width:991px){:host.uxc3 nav .main-menu>ul .menu-item .sub-menu{display:none}}:host.uxc3 nav .main-menu>ul .menu-item .sub-menu h4{font-size:24px;font-weight:500}:host.uxc3 nav .main-menu>ul .menu-item .sub-menu ul{list-style:none;margin:0;padding:0}:host.uxc3 nav .main-menu>ul .menu-item .sub-menu ul li{margin:10px 3px}:host.uxc3 nav .main-menu>ul .menu-item .sub-menu ul li a{cursor:pointer;font-size:14px;font-weight:500;margin:0;padding:5px 0;transition:color .2s ease-in-out}:host.uxc3 nav .main-menu>ul .menu-item .sub-menu ul li a:hover{font-weight:600!important;text-decoration:none!important}:host.uxc3 nav .main-menu>ul .menu-item.opened .sub-menu{opacity:1;visibility:visible}:host.uxc3 .sidebar-overlay{opacity:0;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out .2s;visibility:hidden;width:100%;z-index:-3}:host.uxc2,:host.uxc3 .sidebar-overlay{height:100%;left:0;position:fixed;top:0}:host.uxc2{display:block;transition:left .2s ease-in-out;width:240px;z-index:997}@media (max-width:991px){:host.uxc2{left:-240px}}:host.uxc2 .logo{background:main-color(600);display:block;height:70px}:host.uxc2 .logo a{align-items:flex-end;display:flex;font-family:Open Sans,sans-serif;height:inherit;padding:5px 15px;text-decoration:none}:host.uxc2 .logo a i.logo-img{height:50px;margin:auto;vertical-align:top;width:210px}:host.uxc2 .site-sidebar{display:flex;flex-direction:column;height:100%;min-height:60px;width:100%}@media (max-width:991px){:host.uxc2 .site-sidebar{position:relative;z-index:9999}}:host.uxc2 .site-sidebar .info{background-size:cover;padding:8px 20px}:host.uxc2 .site-sidebar .info span{font-size:1.2em;margin:0}:host.uxc2 .site-sidebar .info label,:host.uxc2 .site-sidebar .info small{display:block}:host.uxc2 .site-sidebar .info p{margin-top:5px}:host.uxc2 .site-sidebar .info p a{cursor:pointer;font-size:.9em}:host.uxc2 .site-sidebar .info p a:hover{text-decoration:underline}:host.uxc2 .sidebar-overlay{height:100%;left:0;opacity:0;position:fixed;top:0;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out .2s;visibility:hidden;width:100%;z-index:9998}:host.uxc2 nav{-webkit-overflow-scrolling:touch;display:block;overflow-x:hidden;overflow-y:auto}:host.uxc2 nav .main-menu{width:240px}:host.uxc2 nav .main-menu>ul{list-style-type:none;margin:0;padding:10px 0 22px}:host.uxc2 nav .main-menu>ul .menu-item{margin-bottom:3px;position:relative}:host.uxc2 nav .main-menu>ul .menu-item:after{bottom:0;content:"";position:absolute;right:100%;top:0;transition:transform .2s ease-in-out;width:4px}:host.uxc2 nav .main-menu>ul .menu-item .item-link{display:block;font-size:1rem;font-weight:400;padding:11px 22px;position:relative;text-decoration:none;transition:background .2s ease-in-out,color .2s ease-in-out}:host.uxc2 nav .main-menu>ul .menu-item .item-link .item-badge{border-radius:8px;float:right;font-size:10px;line-height:1;margin-top:2px;padding:2px 6px 4px}:host.uxc2 nav .main-menu>ul .menu-item .item-link .icon{transition:color .2s ease-in-out;width:22px}:host.uxc2 nav .main-menu>ul .menu-item .item-link .mat-icon{font-size:18px;height:auto;top:4px;width:25px}:host.uxc2 nav .main-menu>ul .menu-item.menu-item-group:after{display:none}:host.uxc2 nav .main-menu>ul .menu-item .group-title{color:rgba(0,0,0,.6);display:block;font-size:.8rem;font-weight:600;padding:6px 22px 5px;text-transform:uppercase}:host.uxc2 nav .main-menu>ul .menu-item .sub{list-style-type:none;margin:0;max-height:0;overflow:hidden;padding:0;transition:max-height .1s ease-in-out}:host.uxc2 nav .main-menu>ul .menu-item .sub .menu-item .item-link{font-size:.9em;padding:5px 22px 6px 48px}:host.uxc2 nav .main-menu>ul .menu-item .sub .menu-item:first-child>.item-link:before{border-top:1px solid transparent;content:"";left:0;position:absolute;right:0;top:0;transition:border .2s ease-in-out}:host.uxc2 nav .main-menu>ul .menu-item.active:after,:host.uxc2 nav .main-menu>ul .menu-item:hover:not(.disabled):after{transform:translateX(4px)}:host.uxc2 nav .main-menu>ul .menu-item.disabled>.item-link{cursor:default;opacity:.5}:host.uxc2 nav .main-menu>ul .menu-item.has-sub,:host.uxc2 nav .main-menu>ul .menu-item.has-sub>.item-link{position:relative}:host.uxc2 nav .main-menu>ul .menu-item.has-sub>.item-link .caret{margin-top:.55rem;position:absolute;right:13px;top:6px;transition:transform .1s ease-in-out}:host.uxc2 nav .main-menu>ul .menu-item.has-sub.active>.item-link .caret{transform:rotate(90deg)}:host.uxc2 nav .main-menu>ul .menu-item.has-sub.active>.sub{max-height:1000px}']}]}],Nt.ctorParameters=function(){return[{type:rt},{type:lt},{type:ut},{type:Q},{type:J},{type:$},{type:i.Router},{type:e.Renderer2},{type:e.ElementRef}]},Nt.propDecorators={api:[{type:e.Input}],method:[{type:e.Input}],activemenubyurl:[{type:e.Input}],onchangestate:[{type:e.Output}]};var zt=function(){function t(t,n,i,o,a,s,r,l,c,u,d){this._translateService=t,this._authenticationService=n,this._dataService=i,this._themeService=o,this._router=a,this._dialog=s,this._session=r,this._platform=l,this._modal=c,this._renderer=u,this._element=d,this.opened=!1,this.languages=[],this.themes=[],this.notificationapi=null,this.notificationgetmethod="Get",this.notificationpostmethod="PostNotification",this.notificationverifymethod="Verify",this.notificationverifyenabled=!0,this.fastsearchform=null,this.fastsearchformwidth=1200,this.fastsearchtitle="PesquisaRapidaCarteira",this.profileurl="",this.setthemeonchangecompany=!1,this.onchangestate=new e.EventEmitter,this.ongetnotification=new e.EventEmitter,this.onverifynotification=new e.EventEmitter,this.modalRef=null,this.loading=!1,this.prodution=!1,this.notifications=new Z,this.topMenu={empresa:!1,tema:!1,idioma:!1,notificacao:!1,calendario:!1}}return t.prototype.ngOnInit=function(){this._renderer.addClass(this._element.nativeElement,"uxc"+this._platform.Config.ux),this._platform.Config.topMenu&&this._renderer.addClass(this._element.nativeElement,"topmenu"),this.prodution=this._platform.Config.production,this.getNotifications()},t.prototype.setCompany=function(t){var e=this;this._authenticationService.trocarEmpresa(this._session.Login,t.Id).subscribe((function(n){n.success?(document.body.setAttribute("loading","true"),e._session.Permissoes=[],e._session.EmpresaId=t.Id,e._session.Empresa=t.Nome,e._session.TemaId=t.TemaId,e._themeService.setThemeByLoggedCompany(),localStorage.removeItem("Dashboard"),localStorage.setItem(e._platform.SessionKey,JSON.stringify(e._session)),e._router.navigateByUrl("").then((function(t){return location.reload()}))):e._authenticationService.logout()}),(function(t){return e._authenticationService.logout()}))},t.prototype.setLanguage=function(t){this._translateService.set(t)},t.prototype.setTheme=function(t){this._themeService.setTheme(t)},t.prototype.toggleMode=function(){this._themeService.setModePrime()},t.prototype.openFastSearch=function(){var t=this;this.close(),null==this.modalRef&&(this.modalRef=this._modal.open(this.fastsearchform,{disableClose:!0,width:this.fastsearchformwidth+"px"}),this.modalRef.keydownEvents().subscribe((function(e){t.loading||"Escape"!=e.key&&"Esc"!=e.key&&"27"!=e.key||t.modalRef.close()})),this.modalRef.afterClosed().subscribe((function(e){t.modalRef=null})))},t.prototype.open=function(t){this.topMenu.empresa="empresa"==t,this.topMenu.tema="tema"==t,this.topMenu.idioma="idioma"==t,this.topMenu.notificacao="notificacao"==t,this.topMenu.calendario="calendario"==t},t.prototype.close=function(){this.topMenu.empresa=!1,this.topMenu.tema=!1,this.topMenu.idioma=!1,this.topMenu.notificacao=!1,this.topMenu.calendario=!1},t.prototype.openSidebar=function(){this.opened=!this.opened,this.onchangestate.emit()},t.prototype.getNotifications=function(){var t=this;this._authenticationService.isLogged()&&null!=this.notificationapi&&this._dataService.get(this.notificationapi,this.notificationgetmethod,null).subscribe((function(e){e.success&&(t.notifications.Count=e.data.Count,t.notifications.Itens=e.data.Itens,t.notificationverifyenabled&&t.verifyNotifications(),t.ongetnotification.emit(t.notifications))}))},t.prototype.verifyNotifications=function(){var t=this;this._authenticationService.isLogged()&&null!=this.notificationapi&&this._dataService.get(this.notificationapi,this.notificationverifymethod).subscribe((function(e){-1==e.data?t.logout():t.notifications.Count==e.data?setTimeout((function(){t.verifyNotifications()}),15e3):t.getNotifications(),t.onverifynotification.emit(Object.assign(Object.assign({},t.notifications),{VerifyCount:e.data}))}))},t.prototype.setNotificationStatus=function(t,e,n){var i=this;0!=this.notifications.Count&&this._dataService.post(this.notificationapi,{Id:"00000000-0000-0000-0000-000000000000",Acesso:e,Leitura:t,Exclusao:n},this.notificationpostmethod).subscribe((function(t){return i.notifications.Count=0}))},t.prototype.navigate=function(t){this._router.navigate([t.replace("/#","")])},t.prototype.logout=function(){var t=this;this._dialog.YesOrNo("DesejaRealmenteSair").subscribe((function(e){e.button==et.Yes&&t._authenticationService.logout()}))},t}();zt.decorators=[{type:e.Component,args:[{selector:"info-topbar",template:'<ng-container *ngIf="_platform.Config.ux >= 3">\r\n <div class="site-navbar">\r\n <a class="logo" >\r\n <i class="logo-img"></i>\r\n <i class="logo-img-resp"></i>\r\n </a>\r\n \r\n <div class="nav-items">\r\n <div class="nav-item usuario-logado">\r\n <dl (click)="navigate(profileurl)">\r\n <dt>{{ _session.Perfil }}</dt>\r\n <dd>{{ _session.Usuario }}</dd>\r\n <mat-icon class="icon-out">verified</mat-icon>\r\n </dl>\r\n </div>\r\n \r\n <div class="nav-item selecao-empresa" [ngClass]="{ \'opened\' : topMenu.empresa }">\r\n <dl (click)="open(\'empresa\')">\r\n <dt>{{ \'Empresa\' | translate }}</dt>\r\n <dd>{{ _session.Empresa }}</dd>\r\n <mat-icon class="icon-out">shield</mat-icon>\r\n </dl>\r\n \r\n <div class="menu-lateral-direita">\r\n <mat-icon class="fechar" (click)="close()">close</mat-icon>\r\n <h4>{{ \'Empresas\' | translate }}</h4>\r\n \r\n <ul class="empresas">\r\n <li *ngFor="let company of _session.Empresas" >\r\n <a (click)="setCompany(company); divModal.click();">{{ company.Nome }}</a>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n \r\n <div class="nav-item" *ngIf="fastsearchform">\r\n <button mat-icon-button (click)="openFastSearch()" [matTooltip]="fastsearchtitle | translate">\r\n <mat-icon>search</mat-icon>\r\n </button>\r\n </div>\r\n \r\n <div class="nav-item" [ngClass]="{ \'opened\' : topMenu.notificacao }" *ngIf="notificationapi">\r\n <button mat-icon-button (click)="setNotificationStatus(true, false, false);open(\'notificacao\')" [matTooltip]="\'Notificacoes\' | translate"><mat-icon>notifications_none</mat-icon>\r\n <span class="badge" *ngIf="notifications.Count > 0">{{ notifications.Count }}</span>\r\n </button>\r\n \r\n <div class="menu-lateral-direita" >\r\n <mat-icon class="fechar" (click)="close()">close</mat-icon>\r\n <h4>{{ \'Notificacoes\' | translate }}</h4>\r\n \r\n <ul>\r\n <li *ngIf="notifications.Itens.length == 0">\r\n <a style="cursor: default;">\r\n <mat-icon>notifications</mat-icon>\r\n <div class="content">\r\n <span>{{ \'TNotificacoesNenhuma\' | translate }}</span>\r\n </div>\r\n </a>\r\n </li>\r\n \r\n <ng-container *ngIf="notifications.Itens.length > 0">\r\n <li *ngFor="let item of notifications.Itens">\r\n <a (click)="navigate(item.Url);close()">\r\n <dl>\r\n <dt>{{ \'Dia\' | translate }} {{ item.Date }}</dt>\r\n <dd [innerHtml]="item.Description | translate"></dd>\r\n </dl>\r\n </a>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </div>\r\n </div>\r\n \r\n \x3c!-- <div class="nav-item">\r\n <button mat-icon-button (click)="alternarModo()" [matTooltip]="\'AlternarModo\' | translate"><mat-icon>brightness_6</mat-icon></button>\r\n </div> --\x3e\r\n \r\n <div class="nav-item selecao-tema" [ngClass]="{ \'opened\': topMenu.tema }" *ngIf="!prodution && themes.length > 0">\r\n <button mat-icon-button (click)="open(\'tema\')" [matTooltip]="\'Tema\' | translate"><mat-icon>invert_colors</mat-icon></button>\r\n \r\n <div class="menu-lateral-direita">\r\n <mat-icon class="fechar" (click)="close()">close</mat-icon>\r\n <h4>{{ \'Temas\' | translate }}</h4>\r\n \r\n <ul class="temas">\r\n <li *ngFor="let theme of themes">\r\n <a (click)="setTheme(theme.name); divModal.click();"> {{ theme.description | translate }}</a>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n \r\n <div class="nav-item" *ngIf="_platform.Config.enabledPrime">\r\n <button mat-icon-button [matTooltip]="(_platform.ModoPrime ? \'ModoPadrao\' : \'Prime\') | translate" (click)="toggleMode()"><mat-icon>brightness_6</mat-icon></button>\r\n </div>\r\n \r\n <div class="nav-item selecao-idioma" [ngClass]="{ \'opened\': topMenu.idioma }" *ngIf="languages.length > 0">\r\n <button mat-icon-button (click)="open(\'idioma\')" [matTooltip]="\'Idioma\' | translate"><mat-icon>public</mat-icon></button>\r\n \r\n <div class="menu-lateral-direita">\r\n <mat-icon class="fechar" (click)="close()">close</mat-icon>\r\n <h4>{{ \'Idiomas\' | translate }}</h4>\r\n \r\n <ul class="idiomas">\r\n <li *ngFor="let lang of languages">\r\n <a (click)="setLanguage(lang.lang); divModal.click();">{{ lang.name | translate }}</a>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n \r\n <div class="nav-item">\r\n <button mat-icon-button [matTooltip]="\'Sair\' | translate" (click)="logout()"><mat-icon>power_settings_new</mat-icon></button>\r\n </div>\r\n \r\n <div class="items-overlay" (click)="close()" #divModal></div>\r\n </div>\r\n \r\n <div class="navbar-button" [ngClass]="{ \'open\' : opened }" (click)="openSidebar()">\r\n <span></span>\r\n <span></span>\r\n <span></span>\r\n <span></span>\r\n <span></span>\r\n <span></span>\r\n <sub>{{ \'Menu\' | translate }}</sub>\r\n </div>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf="_platform.Config.ux <= 2">\r\n <div class="site-navbar">\r\n <div class="sessao-clone text-lightgray" *ngIf="_session.Clone">\r\n <div><label>({{ \'ModoClone\' | translate }})</label></div>\r\n </div>\r\n\r\n <div class="navbar-button" [ngClass]="{ \'open\' : opened }" (click)="openSidebar()">\r\n <span></span>\r\n <span></span>\r\n <span></span>\r\n <span></span>\r\n <span></span>\r\n <span></span>\r\n </div>\r\n\r\n <h1 id="page-title" class="page-title" *ngIf="_platform.PaginaAtiva">\r\n <mat-icon>{{ _platform.PaginaAtiva.Icone }}</mat-icon> {{ _platform.PaginaAtiva.Titulo | translate }}\r\n </h1>\r\n\r\n <div class="nav-items">\r\n <div class="nav-item user-profile" [ngClass]="{ \'opened\' : topMenu.empresa }">\r\n <button mat-button (click)="open(\'empresa\')">\r\n <mat-icon>fingerprint</mat-icon>\r\n <div class="name">\r\n <label>{{ "Empresa" | translate }}</label>\r\n <span>{{ _session.Empresa }}</span>\r\n </div>\r\n </button>\r\n\r\n <div class="dropdown-menu">\r\n <h4 class="menu-title">{{ \'Empresa\' | translate }}</h4>\r\n\r\n <ul class="company">\r\n <li *ngFor="let company of _session.Empresas" >\r\n <a (click)="setCompany(company); divModal.click();">{{ company.Nome }}</a>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n\r\n <div class="nav-item" [ngClass]="{ \'opened\' : topMenu.notificacao }" *ngIf="notificationapi">\r\n <button mat-icon-button (click)="setNotificationStatus(true, false, false);open(\'notificacao\')" [matTooltip]="\'Notificacoes\' | translate"><mat-icon>notifications_none</mat-icon>\r\n <span class="badge" *ngIf="notifications.Count > 0">{{ notifications.Count }}</span>\r\n </button>\r\n\r\n <div class="dropdown-menu">\r\n <h4 class="menu-title">{{ \'Notificacoes\' | translate }}</h4>\r\n\r\n <ul>\r\n <li *ngIf="notifications.Itens.length == 0">\r\n <a style="cursor: default;">\r\n <mat-icon>notifications_off</mat-icon>\r\n <div class="content">\r\n <span>{{ \'TNotificacoesNenhuma\' | translate }}</span>\r\n </div>\r\n </a>\r\n </li>\r\n\r\n <ng-container *ngIf="notifications.Itens.length > 0">\r\n <li *ngFor="let item of notifications.Itens">\r\n <a (click)="navigate(item.Url);close()">\r\n <mat-icon>{{ item.Icon }}</mat-icon>\r\n <div class="content">\r\n <span class="desc" [innerHtml]="item.Description | translate"></span>\r\n <span class="date">{{ item.Date }}</span>\r\n </div>\r\n </a>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </div>\r\n </div>\r\n\r\n <div class="nav-item" [ngClass]="{ \'opened\': topMenu.idioma }" *ngIf="languages.length > 0">\r\n <button mat-icon-button (click)="open(\'idioma\')" [matTooltip]="\'Idioma\' | translate"><mat-icon>public</mat-icon></button>\r\n <div class="dropdown-menu">\r\n <h4 class="menu-title">{{ \'Idioma\' | translate }}</h4>\r\n <ul class="languages">\r\n <li *ngFor="let lang of languages">\r\n <a (click)="setLanguage(lang.lang); divModal.click();">{{ lang.name | translate }}</a>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n\r\n <div class="nav-item" [ngClass]="{ \'opened\': topMenu.tema }" *ngIf="!prodution && themes.length > 0">\r\n <button mat-icon-button (click)="open(\'tema\')" [matTooltip]="\'Tema\' | translate"><mat-icon>invert_colors</mat-icon></button>\r\n <div class="dropdown-menu">\r\n <h4 class="menu-title">{{ \'Temas\' | translate }}</h4>\r\n <ul class="themes">\r\n <li *ngFor="let theme of themes">\r\n <a (click)="setTheme(theme.name); divModal.click();"> {{ theme.description | translate }}</a>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n \r\n <div class="nav-item" *ngIf="fastsearchform">\r\n <button mat-icon-button (click)="openFastSearch()" [matTooltip]="fastsearchtitle | translate">\r\n <mat-icon>search</mat-icon>\r\n </button>\r\n </div>\r\n\r\n <div class="nav-item" *ngIf="profileurl != \'\'">\r\n <button mat-icon-button [matTooltip]="\'MeuPerfil\' | translate" [routerLink]="profileurl"><mat-icon>person</mat-icon></button>\r\n </div>\r\n\r\n <div class="nav-item">\r\n <button mat-icon-button [matTooltip]="\'Sair\' | translate" (click)="logout()"><mat-icon>power_settings_new</mat-icon></button>\r\n </div>\r\n\r\n <div class="items-overlay" (click)="close()" #divModal></div>\r\n </div>\r\n </div>\r\n</ng-container>\r\n\r\n<section class="loading-bar" *ngIf="loading"><mat-progress-bar color="primary" mode="indeterminate"></mat-progress-bar></section>\r\n<div class="block" *ngIf="loading"></div>',styles:[':host.topmenu{border-bottom-width:0!important;box-shadow:none!important}:host.uxc3{display:block;height:80px;left:0;position:fixed;right:0;top:0;transition:left .2s ease-in-out;z-index:9998}@media screen and (max-width:991px){:host.uxc3{left:0}:host.uxc3 .nav-items{width:100%}:host.uxc3 .logo{position:absolute;top:17px}:host.uxc3 .logo .logo-img{display:none!important}:host.uxc3 .logo .logo-img-resp{display:block!important;height:45px!important}:host.uxc3 .usuario-logado{border-right:none!important;left:-100%;margin:0!important;padding-left:25px!important;padding-top:15px!important;position:absolute;top:70px!important;transition:left .2s ease-in-out;width:calc(100% + 6px)}:host.uxc3 .usuario-logado.menu-aberto{left:0}:host.uxc3 .usuario-logado dl{text-align:left!important}:host.uxc3 .usuario-logado dl dt{display:inline-block;font-size:14px}:host.uxc3 .usuario-logado dl dd{display:inline-block;margin-right:5px;padding-right:20px;position:relative}:host.uxc3 .usuario-logado dl dd:after{content:"-";height:10px;position:absolute;right:0;top:2px;width:10px}:host.uxc3 .selecao-empresa{left:-100%;margin:0!important;padding:5px 15px 6px 25px;position:absolute;top:115px!important;transition:left .2s ease-in-out;width:calc(100% + 6px)}:host.uxc3 .selecao-empresa.menu-aberto{left:0}:host.uxc3 .selecao-empresa button,:host.uxc3 .selecao-empresa dl{width:100%!important}}:host.uxc3 .site-navbar{align-items:center;display:flex;flex-wrap:nowrap;height:100%;justify-content:space-between;padding:0 22px}@media screen and (max-width:991px){:host.uxc3 .site-navbar{flex-wrap:wrap}}:host.uxc3 .site-navbar .logo{display:block;height:60px;width:500px}:host.uxc3 .site-navbar .logo .logo-img{display:block;height:100%;width:100%}:host.uxc3 .site-navbar .logo .logo-img-resp{display:none;height:100%;width:100%}:host.uxc3 .site-navbar .navbar-button{cursor:pointer;display:none;height:24px;left:70px;margin:0;position:absolute;top:20px;transform:rotate(0deg);width:35px}@media screen and (max-width:991px){:host.uxc3 .site-navbar .navbar-button{display:block}}:host.uxc3 .site-navbar .navbar-button sub{bottom:-10px;position:absolute;text-transform:uppercase}:host.uxc3 .site-navbar .navbar-button span{display:block;height:3px;opacity:1;position:absolute;top:10px;transform:rotate(0deg);transition:.25s ease-in-out;width:50%}:host.uxc3 .site-navbar .navbar-button span:nth-child(2n){left:50%}:host.uxc3 .site-navbar .navbar-button span:nth-child(odd){left:0}:host.uxc3 .site-navbar .navbar-button span:first-child,:host.uxc3 .site-navbar .navbar-button span:nth-child(2){top:0}:host.uxc3 .site-navbar .navbar-button span:nth-child(3),:host.uxc3 .site-navbar .navbar-button span:nth-child(4){top:10px}:host.uxc3 .site-navbar .navbar-button span:nth-child(5),:host.uxc3 .site-navbar .navbar-button span:nth-child(6){top:20px}:host.uxc3 .site-navbar .navbar-button.open span:first-child,:host.uxc3 .site-navbar .navbar-button.open span:nth-child(6){transform:rotate(45deg)}:host.uxc3 .site-navbar .navbar-button.open span:nth-child(2),:host.uxc3 .site-navbar .navbar-button.open span:nth-child(5){transform:rotate(-45deg)}:host.uxc3 .site-navbar .navbar-button.open span:first-child{left:2px;top:6px}:host.uxc3 .site-navbar .navbar-button.open span:nth-child(2){left:calc(50% - 7px);top:6px}:host.uxc3 .site-navbar .navbar-button.open span:nth-child(3){left:-50%;opacity:0}:host.uxc3 .site-navbar .navbar-button.open span:nth-child(4){left:100%;opacity:0}:host.uxc3 .site-navbar .navbar-button.open span:nth-child(5){left:2px;top:15px}:host.uxc3 .site-navbar .navbar-button.open span:nth-child(6){left:calc(50% - 7px);top:15px}:host.uxc3 dl{line-height:20px;text-transform:none;transition:border .2s ease-in-out}:host.uxc3 dl dt{font-size:10px;font-weight:500;transition:color .2s ease-in-out}:host.uxc3 dl dd{font-size:14px;font-weight:600;margin-bottom:0;position:relative;top:0;transition:color .2s ease-in-out}:host.uxc3 .selecao-empresa,:host.uxc3 .usuario-logado{cursor:pointer;padding:5px 20px 5px 0;top:-1px}:host.uxc3 .selecao-empresa dl,:host.uxc3 .usuario-logado dl{margin:0;top:5px}:host.uxc3 .selecao-empresa dl mat-icon,:host.uxc3 .usuario-logado dl mat-icon{font-size:22px;position:absolute;right:0;text-align:center;top:17px}:host.uxc3 .usuario-logado{margin:0!important;padding-left:40px}:host.uxc3 .usuario-logado dl{text-align:right}:host.uxc3 .usuario-logado dl mat-icon{left:0}:host.uxc3 .selecao-empresa{margin-right:40px!important;padding-left:20px;padding-right:40px}:host.uxc3 .nav-items{display:block;height:100%;margin:0 -5px;text-align:right}@media screen and (min-width:544px){:host.uxc3 .nav-items{width:100%}}@media screen and (max-width:991px){:host.uxc3 .nav-items{display:block;position:absolute;right:10px;top:0}}:host.uxc3 .nav-items .nav-item{align-items:center;display:inline-block;margin:15px 3px 0 0;text-align:left}@media screen and (min-width:544px){:host.uxc3 .nav-items .nav-item{position:relative}}:host.uxc3 .nav-items .nav-item .mat-button,:host.uxc3 .nav-items .nav-item .mat-icon-button{cursor:pointer;min-width:40px;padding:0;position:relative;transition:color .2s ease-in-out}:host.uxc3 .nav-items .nav-item .mat-button .mat-button-wrapper,:host.uxc3 .nav-items .nav-item .mat-icon-button .mat-button-wrapper{display:flex;height:100%;padding:5px;width:100%}:host.uxc3 .nav-items .nav-item .mat-button .mat-button-wrapper .mat-icon,:host.uxc3 .nav-items .nav-item .mat-icon-button .mat-button-wrapper .mat-icon{font-size:24px;height:30px;line-height:30px;vertical-align:top;width:30px}:host.uxc3 .nav-items .nav-item .mat-button .mat-button-wrapper .mat-icon .marker,:host.uxc3 .nav-items .nav-item .mat-icon-button .mat-button-wrapper .mat-icon .marker{border-radius:50%;height:6px;position:absolute;right:0;top:0;width:6px}:host.uxc3 .nav-items .nav-item .mat-button .mat-button-wrapper .badge,:host.uxc3 .nav-items .nav-item .mat-icon-button .mat-button-wrapper .badge{background:#af1b11;border-radius:8px;color:#fff;font-size:10px;line-height:16px;padding:0 5px;position:absolute;right:0;top:0}:host.uxc3 .nav-items .nav-item .mat-button .mat-button-focus-overlay,:host.uxc3 .nav-items .nav-item .mat-button .mat-button-ripple,:host.uxc3 .nav-items .nav-item .mat-icon-button .mat-button-focus-overlay,:host.uxc3 .nav-items .nav-item .mat-icon-button .mat-button-ripple{display:none}:host.uxc3 .nav-items .nav-item .menu-lateral-direita{display:none;height:100%;padding:0;position:fixed;right:0;top:0;width:420px;z-index:9999}@media screen and (max-width:991px){:host.uxc3 .nav-items .nav-item .menu-lateral-direita{left:auto;margin-left:0;right:0}}@media screen and (max-width:543px){:host.uxc3 .nav-items .nav-item .menu-lateral-direita{left:0;margin-left:0;width:100%}}:host.uxc3 .nav-items .nav-item .menu-lateral-direita:before{border:10px solid transparent;bottom:100%;content:"";left:50%;margin:0 0 0 -10px;position:absolute}@media screen and (max-width:991px){:host.uxc3 .nav-items .nav-item .menu-lateral-direita:before{left:100%;margin-left:-34px}}@media screen and (max-width:543px){:host.uxc3 .nav-items .nav-item .menu-lateral-direita:before{display:none}}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>.fechar{cursor:pointer;font-size:28px;opacity:.8;position:absolute;right:30px;top:30px}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>.fechar:hover{opacity:1}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>h4{font-size:24px;font-weight:500;margin:30px 0 30px 38px}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>ul{border-radius:0 0 4px 4px;height:calc(100% - 170px);list-style-type:none;margin:0;overflow-y:auto;padding:0}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>ul>li:hover{background:rgba(0,0,0,.05)}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>ul>li.disabled>a{cursor:default!important;opacity:.4}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>ul>li:last-child{border-bottom:0}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>ul>li dl{line-height:20px;margin-bottom:0;padding:5px 0}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>ul>li dl dt{font-size:13px;font-weight:600;margin-bottom:5px}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>ul>li dl dd{font-size:14px;font-weight:500}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>ul>li>a{align-items:center;cursor:pointer;display:flex;font-size:14px;font-weight:500;padding:10px 40px!important;padding:11px;transition:background .2s ease-in-out}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>ul>li>a .mat-icon{background:hsla(0,0%,100%,.1);border-radius:50%;font-size:22px;height:auto;margin-right:11px;padding:7px;width:auto}:host.uxc3 .nav-items .nav-item.opened .lista-empresas,:host.uxc3 .nav-items .nav-item.opened .menu-lateral-direita{display:block}:host.uxc3 .nav-items .nav-item.opened~.items-overlay{opacity:.5;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out 0s;visibility:visible}:host.uxc3 .nav-items .items-overlay{height:100%;left:0;opacity:0;position:fixed;top:0;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out .2s;visibility:hidden;width:100%;z-index:9998}@media screen and (max-width:991px){:host.uxc3{width:100%}}:host.uxc2{background:#fff;border-bottom:1px solid #e4e9f0;display:block;height:70px;left:240px;position:fixed;right:0;top:0;z-index:9998}@media (max-width:991px){:host.uxc2{left:0}}:host.uxc2 .sessao-clone{background-color:#a80707;padding:8px;position:absolute;top:0;z-index:1}:host.uxc2 .sessao-clone .mat-icon-button{font-size:10px}:host.uxc2 .site-navbar{align-items:center;display:flex;flex-wrap:nowrap;height:100%;justify-content:space-between;padding:0 22px}@media (max-width:991px){:host.uxc2 .site-navbar{flex-wrap:wrap}}:host.uxc2 .site-navbar .navbar-button{cursor:pointer;display:none;height:24px;margin:0;position:relative;transform:rotate(0deg);width:30px}@media (max-width:991px){:host.uxc2 .site-navbar .navbar-button{display:block}}:host.uxc2 .site-navbar .navbar-button span{display:block;height:3px;opacity:1;position:absolute;transform:rotate(0deg);transition:.25s ease-in-out;width:50%}:host.uxc2 .site-navbar .navbar-button span:nth-child(2n){left:50%}:host.uxc2 .site-navbar .navbar-button span:nth-child(odd){left:0}:host.uxc2 .site-navbar .navbar-button span:first-child,:host.uxc2 .site-navbar .navbar-button span:nth-child(2){top:0}:host.uxc2 .site-navbar .navbar-button span:nth-child(3),:host.uxc2 .site-navbar .navbar-button span:nth-child(4){top:10px}:host.uxc2 .site-navbar .navbar-button span:nth-child(5),:host.uxc2 .site-navbar .navbar-button span:nth-child(6){top:20px}:host.uxc2 .site-navbar .navbar-button.open span:first-child,:host.uxc2 .site-navbar .navbar-button.open span:nth-child(6){transform:rotate(45deg)}:host.uxc2 .site-navbar .navbar-button.open span:nth-child(2),:host.uxc2 .site-navbar .navbar-button.open span:nth-child(5){transform:rotate(-45deg)}:host.uxc2 .site-navbar .navbar-button.open span:first-child{left:3px;top:6px}:host.uxc2 .site-navbar .navbar-button.open span:nth-child(2){left:calc(50% - 3px);top:6px}:host.uxc2 .site-navbar .navbar-button.open span:nth-child(3){left:-50%;opacity:0}:host.uxc2 .site-navbar .navbar-button.open span:nth-child(4){left:100%;opacity:0}:host.uxc2 .site-navbar .navbar-button.open span:nth-child(5){left:3px;top:15px}:host.uxc2 .site-navbar .navbar-button.open span:nth-child(6){left:calc(50% - 3px);top:15px}:host.uxc2 .page-title{font-size:1.4rem;font-weight:400;line-height:1;margin:0;width:100%}:host.uxc2 .page-title mat-icon{font-size:1.1em;left:0;top:4px}@media (max-width:991px){:host.uxc2 .page-title{display:none}}:host.uxc2 .nav-items{display:block;height:100%;margin:0 -5px;text-align:right}@media (min-width:544px){:host.uxc2 .nav-items{width:100%}}:host.uxc2 .nav-items .nav-item{align-items:center;display:inline-block;margin:15px 3px 0 0;text-align:left}@media (min-width:544px){:host.uxc2 .nav-items .nav-item{position:relative}}:host.uxc2 .nav-items .nav-item /deep/ .mat-button,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button{cursor:pointer;min-width:40px;padding:0;position:relative;transition:color .2s ease-in-out}:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-wrapper,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-wrapper{display:flex;height:100%;padding:5px;width:100%}:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-wrapper .mat-icon,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-wrapper .mat-icon{font-size:22px;height:30px;line-height:30px;vertical-align:top;width:30px}:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-wrapper .mat-icon .marker,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-wrapper .mat-icon .marker{border-radius:50%;height:6px;position:absolute;right:0;top:0;width:6px}:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-wrapper .badge,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-wrapper .badge{background:#af1b11;border-radius:8px;color:#fff;font-size:10px;line-height:16px;padding:0 5px;position:absolute;right:0;top:0}:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-wrapper .avatar,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-wrapper .avatar{border-radius:50%;height:40px;overflow:hidden;width:40px}:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-wrapper .name,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-wrapper .name{font-size:12px;line-height:19px;margin-top:-3px;padding-left:10px;text-align:left;top:10px;white-space:nowrap}:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-wrapper .name label,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-wrapper .name label{display:block;font-size:10px;line-height:12px;margin:0}:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-wrapper .name span,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-wrapper .name span{top:-3px}@media (max-width:991px){:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-wrapper .name,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-wrapper .name{display:none}}:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-focus-overlay,:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-ripple,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-focus-overlay,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-ripple{display:none}:host.uxc2 .nav-items .nav-item .dropdown-menu{box-shadow:0 5px 10px 2px rgba(0,0,0,.25);display:none;left:50%;margin:0 0 0 -150px;padding:0;position:absolute;top:100%;width:300px;z-index:9999}@media (max-width:991px){:host.uxc2 .nav-items .nav-item .dropdown-menu{left:auto;margin-left:0;right:0}}@media (max-width:543px){:host.uxc2 .nav-items .nav-item .dropdown-menu{left:0;margin-left:0;width:100%}}:host.uxc2 .nav-items .nav-item .dropdown-menu.calendar{left:-34%}:host.uxc2 .nav-items .nav-item .dropdown-menu.calendar:before{left:60%}:host.uxc2 .nav-items .nav-item .dropdown-menu:before{border:10px solid transparent;bottom:100%;content:"";left:50%;margin:0 0 0 -10px;position:absolute}@media (max-width:991px){:host.uxc2 .nav-items .nav-item .dropdown-menu:before{left:100%;margin-left:-34px}}@media (max-width:543px){:host.uxc2 .nav-items .nav-item .dropdown-menu:before{display:none}}:host.uxc2 .nav-items .nav-item .dropdown-menu .company a,:host.uxc2 .nav-items .nav-item .dropdown-menu .languages a,:host.uxc2 .nav-items .nav-item .dropdown-menu .themesa a{cursor:pointer!important}:host.uxc2 .nav-items .nav-item .dropdown-menu .themes{max-height:500px}:host.uxc2 .nav-items .nav-item .dropdown-menu .pesquisa-rapida input{color:#fff}:host.uxc2 .nav-items .nav-item .dropdown-menu .menu-footer,:host.uxc2 .nav-items .nav-item .dropdown-menu .menu-title{margin:0;padding:11px;text-align:center}:host.uxc2 .nav-items .nav-item .dropdown-menu .menu-title{border-bottom:1px solid hsla(0,0%,100%,.1);color:#fff;font-size:16px;line-height:1.3}:host.uxc2 .nav-items .nav-item .dropdown-menu .menu-footer a{color:#fff}:host.uxc2 .nav-items .nav-item .dropdown-menu .menu-footer a:hover{color:hsla(0,0%,100%,.8)}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul{list-style-type:none;margin:0;max-height:241px;overflow:auto;padding:0}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li{border-bottom:1px solid hsla(0,0%,100%,.05)}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li.disabled>a{cursor:default!important;opacity:.4}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li.disabled>a:hover{background:inherit!important}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li:last-child{border-bottom:0}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li>a{align-items:center;color:#fff;cursor:pointer;display:flex;padding:11px;transition:background .2s ease-in-out}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li>a .mat-icon{background:hsla(0,0%,100%,.1);border-radius:50%;font-size:22px;height:auto;margin-right:11px;padding:7px;width:auto}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li>a .avatar{border-radius:50%;height:40px;margin-right:11px;width:40px}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li>a .content{font-size:.85rem}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li>a .content .desc{display:block}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li>a .content .date{display:block;font-size:.75rem;font-style:italic;margin-top:4px;opacity:.6}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li>a .content .meta{align-items:flex-end;display:flex;justify-content:space-between;line-height:1.3;margin-bottom:4px}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li>a .content .meta .date{margin:0 0 0 11px}:host.uxc2 .nav-items .nav-item .dropdown-menu.mini-menu{left:auto;right:0;width:220px}@media (max-width:543px){:host.uxc2 .nav-items .nav-item .dropdown-menu.mini-menu{width:100%}}:host.uxc2 .nav-items .nav-item .dropdown-menu.mini-menu:before{display:none}:host.uxc2 .nav-items .nav-item .dropdown-menu.mini-menu>ul>li>a{cursor:pointer;padding-bottom:8px;padding-top:8px}:host.uxc2 .nav-items .nav-item .dropdown-menu.mini-menu>ul>li>a .fa{margin-right:11px;min-width:15px}:host.uxc2 .nav-items .nav-item.opened .dropdown-menu{display:block}:host.uxc2 .nav-items .nav-item.opened~.items-overlay{opacity:1;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out 0s;visibility:visible}:host.uxc2 .nav-items .items-overlay{height:100%;left:0;opacity:0;position:fixed;top:0;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out .2s;visibility:hidden;width:100%;z-index:9998}']}]}],zt.ctorParameters=function(){return[{type:nt},{type:lt},{type:rt},{type:ut},{type:i.Router},{type:wt},{type:Q},{type:J},{type:r.MatDialog},{type:e.Renderer2},{type:e.ElementRef}]},zt.propDecorators={opened:[{type:e.Input}],languages:[{type:e.Input}],themes:[{type:e.Input}],notificationapi:[{type:e.Input}],notificationgetmethod:[{type:e.Input}],notificationpostmethod:[{type:e.Input}],notificationverifymethod:[{type:e.Input}],notificationverifyenabled:[{type:e.Input}],fastsearchform:[{type:e.Input}],fastsearchformwidth:[{type:e.Input}],fastsearchtitle:[{type:e.Input}],profileurl:[{type:e.Input}],setthemeonchangecompany:[{type:e.Input}],onchangestate:[{type:e.Output}],ongetnotification:[{type:e.Output}],onverifynotification:[{type:e.Output}]};var Rt=function(){function t(t,n,i,o,a,s,r,l){this._dataAcessService=t,this._authentication=n,this._lastSearch=i,this._router=o,this._session=a,this._platform=s,this._renderer=r,this._element=l,this.api=null,this.method="GetMenu",this.onchangestate=new e.EventEmitter,this.loading=!1,this.menu=[],this.openSubmenu="",this.menuAtivo="Dashboard"}return t.prototype.ngOnInit=function(){var t=this;this._authentication.isLogged()&&null!=this.api&&(this._renderer.addClass(this._element.nativeElement,"uxc"+this._platform.Config.ux),this.loading=!0,this._dataAcessService.get(this.api,this.method).subscribe((function(e){e.success&&(t.menu=e.data,t._platform.Menu=e.data,t._authentication.definePaginaAtiva(t._router.url)),t.loading=!1})))},t.prototype.toggle=function(t,e){if(t.preventDefault(),e.Enabled){if(!e.Active)for(var n=0;n<this.menu.length;n++)this.menu[n].Active=!1;e.Active=!e.Active}},t.prototype.access=function(t){this.menuAtivo=t,this.openSubmenu="",this.resetLastSearch()},t.prototype.toggleSubmenu=function(t){this.openSubmenu=this.openSubmenu==t?"":t},t.prototype.resetLastSearch=function(){this._lastSearch.model=null,this._lastSearch.url=""},t.prototype.changeSidebar=function(){this.onchangestate.emit()},t}();Rt.decorators=[{type:e.Component,args:[{selector:"info-topmenu",template:'<nav>\r\n <ul *ngIf="menu">\r\n <li *ngFor="let m of menu" [ngClass]="{ \'active\': menuAtivo == m.Title, \'disabled\': !m.Enabled, \'opened\': openSubmenu == m.Title }">\r\n <a *ngIf="m.Sub == null" [routerLink]="m.Routing" (click)="access(m.Title)" >{{ m.Title | translate }} </a>\r\n\r\n <ng-container *ngIf="m.Sub != null">\r\n <a (click)="toggleSubmenu(m.Title)" >{{ m.Title | translate }} </a>\r\n\r\n <div class="sub-menu">\r\n <ul>\r\n <li *ngFor="let s of m.Sub">\r\n <a [routerLink]="s.Routing" (click)="changeSidebar();access(m.Title);" >{{ s.Title | translate }}</a>\r\n </li>\r\n </ul>\r\n </div>\r\n </ng-container>\r\n </li>\r\n </ul>\r\n</nav>',styles:[':host{position:fixed;top:80px;width:100%;z-index:999}:host nav{background:#fff;border-bottom:1px solid #ccc}:host nav>ul{list-style:none;margin:0;padding:0;white-space:nowrap}:host nav>ul>li{background:#fff;color:#111;display:inline-block;margin:0;padding:0 10px;position:relative;transition:background .2s ease-in-out}:host nav>ul>li:hover{background:#eee}:host nav>ul>li a{cursor:pointer;display:block;padding:7px 10px 10px;position:relative;text-align:center;transition:color .2s ease-in-out}:host nav>ul>li a:hover{text-decoration:none}:host nav>ul>li.active>a:after{background:#555;bottom:0;content:" ";display:block;height:3px;left:0;position:absolute;width:100%}:host nav>ul>li:hover{background:#555}:host nav>ul>li:hover>a{color:#fff}:host nav>ul>li:hover .sub-menu{display:block}:host nav>ul>li .sub-menu{background:#fff;box-shadow:0 5px 10px 1px #ccc;display:none;left:0;min-width:100%;padding:20px 10px;position:absolute;top:39px;z-index:1}:host nav>ul>li .sub-menu ul{list-style:none;padding:0}:host nav>ul>li .sub-menu ul li a{color:#111;text-align:left}:host nav>ul>li .sub-menu ul li a:hover{color:#111;text-decoration:underline}']}]}],Rt.ctorParameters=function(){return[{type:rt},{type:lt},{type:$},{type:i.Router},{type:Q},{type:J},{type:e.Renderer2},{type:e.ElementRef}]},Rt.propDecorators={api:[{type:e.Input}],method:[{type:e.Input}],onchangestate:[{type:e.Output}]};var Ut=function(){this.enabled=!1,this.mode="indeterminate",this.color="primary"};Ut.decorators=[{type:e.Component,args:[{selector:"info-loading",template:'\n <section class="loading-bar">\n <mat-progress-bar [color]="color" [mode]="mode" *ngIf="enabled" >\n </mat-progress-bar>\n </section>\n ',styles:["\n .loading-bar { height: 1px; }\n .loading-bar .mat-progress-bar { height: 1px; margin: 0; }\n "]}]}],Ut.propDecorators={enabled:[{type:e.Input}],mode:[{type:e.Input}],color:[{type:e.Input}]};var jt=function(){function t(t,n,i){this._dataAccessService=t,this.prop=n,this._ref=i,this.modaltitle="",this.showcloseicon=!1,this.api=null,this.method=null,this.readonly=null,this.loading=!1,this.loadingblock=!0,this.form=null,this.labelclose="Fechar",this.labelcancel="Cancelar",this.labelsubmit="Salvar",this.messages=[],this.width=null,this.onsave=new e.EventEmitter,this.onsuccess=new e.EventEmitter}return t.prototype.ngOnInit=function(){""==this.modaltitle&&null!=this.prop&&null!=this.prop.title&&(this.modaltitle=this.prop.title),null==this.api&&null!=this.prop&&null!=this.prop.api&&(this.api=this.prop.api),null!=this.width&&this._ref.updateSize(this.width.toString().replace("px","")+"px"),null==this.readonly&&null!=this.prop&&null!=this.prop.readonly&&(this.readonly=this.prop.readonly)},t.prototype.submit=function(){var t=this;this.onsave.observers.length>0?this.onsave.next():(this.messages=[],null!=this.api&&""!=this.api.toString()||this.messages.push("API não informado"),this.messages.length>0||(this.loading=!0,this._dataAccessService.post(this.api,this.model,this.method).subscribe((function(e){e.success?(t.prop.modalAction=q.Save,t.prop.data=t.model,t._ref.close(t.prop),t.onsuccess.observers.length>0&&t.onsuccess.next()):t.messages=e.messages,t.loading=!1}))))},t.prototype.close=function(){this.messages=[],this.loading=!1,this._ref.close(this.prop)},t.prototype.writeValue=function(t){this.model=t},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){},t}();jt.decorators=[{type:e.Component,args:[{selector:"info-modal",template:'<h2 mat-dialog-title >\r\n <label [innerHTML]="modaltitle | translate"></label>\r\n <mat-icon class="close-icon" (click)="close()" *ngIf="showcloseicon" >close</mat-icon>\r\n\r\n <section class="loading-bar" *ngIf="loading">\r\n <mat-progress-bar color="primary" mode="indeterminate"></mat-progress-bar>\r\n </section>\r\n</h2>\r\n\r\n<mat-dialog-content class="info-modal-content">\r\n <ng-content></ng-content>\r\n</mat-dialog-content>\r\n\r\n<mat-dialog-actions>\r\n <div class="mr-5">\r\n <ng-content select="[buttons]"></ng-content>\r\n </div>\r\n <button mat-button *ngIf="labelclose != \'\' && readonly" type="button" (click)="close()" [disabled]="loading">{{ labelclose | translate }}</button>\r\n <button mat-button *ngIf="labelcancel != \'\' && !readonly" type="button" (click)="close()" color="warn" [disabled]="loading">{{ labelcancel | translate }}</button>\r\n <button mat-button *ngIf="labelsubmit != \'\' && !readonly" type="button" [disabled]="loading || (form != null && !form.form.valid)" (click)="submit()" >{{ labelsubmit | translate }}</button>\r\n</mat-dialog-actions>\r\n\r\n<div class="block" *ngIf="loading && loadingblock"></div>\r\n<info-alert [messages]="messages"></info-alert>',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return jt})),multi:!0}]}]}],jt.ctorParameters=function(){return[{type:rt},{type:B,decorators:[{type:e.Inject,args:[r.MAT_DIALOG_DATA]}]},{type:r.MatDialogRef}]},jt.propDecorators={modaltitle:[{type:e.Input}],showcloseicon:[{type:e.Input}],api:[{type:e.Input}],method:[{type:e.Input}],readonly:[{type:e.Input}],loading:[{type:e.Input}],loadingblock:[{type:e.Input}],form:[{type:e.Input}],labelclose:[{type:e.Input}],labelcancel:[{type:e.Input}],labelsubmit:[{type:e.Input}],messages:[{type:e.Input}],width:[{type:e.Input}],onsave:[{type:e.Output}],onsuccess:[{type:e.Output}]};var Ft=function(){function t(t,e,n,o,a,s,r){var l=this;this._router=t,this._modal=e,this._dataService=n,this._translate=o,this._platform=a,this._renderer=s,this._element=r,this.margintop=0,this.backurl=null,this.access=[],this.transparent=!1,this.loading=!1,this.atalhoId=null,this.podeCriarAtalho=!1,this.exibirAcessos=!1,t.events.subscribe((function(t){t instanceof i.NavigationStart||t instanceof i.GuardsCheckStart?setTimeout((function(){return l.loading=!0}),0):setTimeout((function(){l.loading=!1,t instanceof i.NavigationEnd&&(l.podeCriarAtalho=!!l._platform.ShortcutApi&&"/"!=l._router.url,l.getAtalho())}),0)}))}return t.prototype.ngOnInit=function(){this._renderer.addClass(this._element.nativeElement,"uxc"+this._platform.Config.ux),this._platform.Config.topMenu&&this._renderer.addClass(this._element.nativeElement,"topmenu")},t.prototype.goBack=function(){this._router.navigateByUrl(this.backurl)},t.prototype.getAtalho=function(){var t=this;this.podeCriarAtalho&&(this.loading=!0,this._dataService.get(this._platform.ShortcutApi,"GetByUrl","url="+this._router.url).subscribe((function(e){t.loading=!1,e.success&&(t.atalhoId=(e.data||{}).Id)})))},t.prototype.toggleAtalho=function(){var t=this;this.atalhoId?(this.loading=!0,this._dataService.delete(this._platform.ShortcutApi,this.atalhoId).subscribe((function(e){t.loading=!1,e.success&&(t.atalhoId=null)}))):(this.loading=!0,this.openModalAtalho().subscribe((function(e){t.loading=!1,e&&e.modalAction==q.Save&&t.getAtalho()})))},t.prototype.openModalAtalho=function(){var t=this,e=new B;e.api=this._platform.ShortcutApi,e.set(H.New,{Id:this.atalhoId,Url:this._router.url,Titulo:this._translate.translate(this._platform.PaginaAtiva.Titulo)+" / "+this._translate.translate(this.pagetitle)});var n=this._modal.open(Ht,{data:e,disableClose:!0,width:"400px"});return n.keydownEvents().subscribe((function(e){t.loading||"Escape"!=e.key&&"Esc"!=e.key&&"27"!=e.key||n.close()})),n.afterClosed()},t}();Ft.decorators=[{type:e.Component,args:[{selector:"info-pagebar",template:'<div [ngStyle]="{ \'marginTop\': margintop + \'px\' }" [ngClass]="{ \'transparent\': transparent }" >\r\n \r\n <ng-container *ngIf="_platform.Config.ux >= 3" >\r\n <h2>{{ pagetitle | translate }}</h2>\r\n \r\n <div class="link-button">\r\n <button mat-button type="button" *ngIf="backurl" color="primary" (click)="goBack()">\r\n <mat-icon class="fs-20">chevron_left</mat-icon>{{ \'Voltar\' | translate}}</button>\r\n\r\n <ng-container *ngTemplateOutlet="content"></ng-container>\r\n\r\n <dl *ngIf="(access || []).length > 0" class="acesso-rapido" (mouseenter)="exibirAcessos = true" (mouseleave)="exibirAcessos = false">\r\n <dt>\r\n <mat-icon class="fs-20">share</mat-icon>\r\n </dt>\r\n <dd *ngIf="exibirAcessos">\r\n <ul>\r\n <li *ngFor="let a of access">\r\n <a target="_blank" [routerLink]="a.Url" ><mat-icon>chevron_right</mat-icon> {{ a.Label | translate }}</a>\r\n </li>\r\n </ul> \r\n </dd>\r\n </dl>\r\n </div>\r\n <hr>\r\n </ng-container>\r\n \r\n <div class="row" *ngIf="_platform.Config.ux <= 2" >\r\n <div class="col-md-6">\r\n <h2>\r\n <label id="page-title" *ngIf="_platform.PaginaAtiva">\r\n <mat-icon>{{ _platform.PaginaAtiva.Icone }}</mat-icon>\r\n {{ _platform.PaginaAtiva.Titulo | translate }}\r\n\r\n <ng-container *ngIf="pagetitle != null && pagetitle != \'\'"> / </ng-container>\r\n </label>\r\n {{ pagetitle | translate }}\r\n </h2>\r\n <button *ngIf="podeCriarAtalho" type="button" mat-icon-button class="shortcut-button" [ngClass]="{ \'tem-atalho\': !!atalhoId }" (click)="toggleAtalho()" [disabled]="loading">\r\n <mat-icon inline>{{ atalhoId ? \'star\' : \'star_border\' }}</mat-icon>\r\n </button>\r\n \r\n <p class="pagebar-description" [innerHTML]="description | translate"></p>\r\n </div>\r\n\r\n <div class="col-md-6 align-right buttons">\r\n <button mat-button type="button" *ngIf="backurl" color="primary" (click)="goBack()">\r\n <mat-icon class="fs-20">chevron_left</mat-icon>{{ \'Voltar\' | translate}}\r\n </button>\r\n \r\n <ng-container *ngTemplateOutlet="content"></ng-container>\r\n\r\n <dl *ngIf="(access || []).length > 0" class="acesso-rapido" (mouseenter)="exibirAcessos = true" (mouseleave)="exibirAcessos = false">\r\n <dt>\r\n <mat-icon class="fs-20">share</mat-icon>\r\n </dt>\r\n <dd *ngIf="exibirAcessos">\r\n <ul>\r\n <li *ngFor="let a of access">\r\n <a target="_blank" [routerLink]="a.Url" ><mat-icon>chevron_right</mat-icon> {{ a.Label | translate }}</a>\r\n </li>\r\n </ul> \r\n </dd>\r\n </dl>\r\n </div>\r\n </div>\r\n</div>\r\n<section class="loading-bar" *ngIf="loading">\r\n <mat-progress-bar color="primary" mode="indeterminate"></mat-progress-bar>\r\n</section>\r\n\r\n<ng-template #content><ng-content></ng-content></ng-template>',styles:[":host.topmenu>div{left:0!important;top:125px!important;width:100%!important}:host.uxc3>div{background:#fff;left:240px;min-height:60px;padding:15px 20px 10px;position:fixed;top:80px;transition:left .2s ease-in-out,width .2s ease-in-out;width:calc(100% - 240px);z-index:100}:host.uxc3>div h2{background:inherit;display:inline-block;font-family:Cinzel;font-size:2em;font-weight:500;margin:0;padding-right:20px;width:auto}:host.uxc3>div .link-button{background:inherit;display:block;padding-left:20px;position:absolute;right:20px;top:18px}:host.uxc3>div hr{margin:0;position:absolute;top:50%;width:calc(100% - 40px);z-index:-1}@media (max-width:543px){:host.uxc3>div{left:0}}:host.uxc2>div{background:#fff;border-bottom:1px solid #e4e9f0;box-shadow:0 0 5px #eee;left:240px;min-height:60px;padding:10px 20px;position:fixed;right:0;top:70px;z-index:100}@media (max-width:543px){:host.uxc2>div{left:0}}:host.uxc2>div h2{display:inline;font-size:1.2em;margin:0;padding:0}:host.uxc2>div p{font-size:.9em;margin:0;padding-top:3px;width:100%}@media (max-width:543px){:host.uxc2>div p{display:none}}:host.uxc2>div .buttons{padding-top:2px}:host.uxc2>div .buttons .mat-button{margin-left:8px}:host.uxc2>div:hover .shortcut-button{opacity:1}:host.uxc2>div .shortcut-button{height:22px;line-height:22px;opacity:0;text-align:center;transition:opacity .2s;width:22px}:host.uxc2>div .shortcut-button.tem-atalho{opacity:1!important}:host.uxc2>div .shortcut-button .mat-icon{color:#b99206;font-size:14px;top:-2px}"]}]}],Ft.ctorParameters=function(){return[{type:i.Router},{type:r.MatDialog},{type:rt},{type:nt},{type:J},{type:e.Renderer2},{type:e.ElementRef}]},Ft.propDecorators={margintop:[{type:e.Input}],icon:[{type:e.Input}],pagetitle:[{type:e.Input}],description:[{type:e.Input}],backurl:[{type:e.Input}],access:[{type:e.Input}],transparent:[{type:e.Input}]};var Ht=function(t){this.prop=t,this.model={},this.model=Object.assign({},t.data),this.model.Id=this.model.Id||"00000000-0000-0000-0000-000000000000"};Ht.decorators=[{type:e.Component,args:[{template:'\n\t\t<info-modal modaltitle="CriarAcessoRapido" [form]="formModal" [(ngModel)]="model">\n\t\t\t<form autocomplete="off" #formModal="ngForm">\n\t\t\t\t<div class="row"> \n\t\t\t\t\t<info-input class="col-md-12" [(ngModel)]="model.Titulo" placeholder="Titulo" name="Titulo" required></info-input>\n\t\t\t\t</div>\n\t\t\t</form>\n\t\t</info-modal>\n\t'}]}],Ht.ctorParameters=function(){return[{type:B,decorators:[{type:e.Inject,args:[r.MAT_DIALOG_DATA]}]}]};var qt=function(){function t(t,e){this.renderer=t,this.element=e,this._onTouched=function(){},this._onChange=function(t){}}return t.prototype.ngOnChanges=function(t){this.setupMask(!0),void 0!==this.maskInputElement&&this.maskInputElement.update(this.inputElement.value)},t.prototype.writeValue=function(t){this.setupMask();var e=null==t?"":t;this.renderer.setProperty(this.inputElement,"value",e),void 0!==this.maskInputElement&&this.maskInputElement.update(t)},t.prototype.registerOnChange=function(t){this._onChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.setDisabledState=function(t){this.renderer.setProperty(this.element.nativeElement,"disabled",t)},t.prototype.onInput=function(t){this.setupMask(),void 0!==this.maskInputElement&&(this.maskInputElement.update(t),t=this.inputElement.value,this.lastValue!==t&&(this.lastValue=t,this._onChange(t)))},t.prototype.setupMask=function(t){if(void 0===t&&(t=!1),this.inputElement||("INPUT"===this.element.nativeElement.tagName?this.inputElement=this.element.nativeElement:this.inputElement=this.element.nativeElement.getElementsByTagName("INPUT")[0]),this.inputElement&&t){var e=void 0;"email"==this.maskType?this.mask=L.default:"phone"==this.maskType?this.mask=["(",/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/]:"cel"==this.maskType?this.mask=["(",/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/]:"cep"==this.maskType?this.mask=[/\d/,/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/]:"date"==this.maskType?(e=V.default("dd/mm/yyyy"),this.mask=[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/]):"datemonth"==this.maskType?(e=V.default("mm/yyyy"),this.mask=[/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/]):"time"==this.maskType?(e=V.default("HH:MM"),this.mask=[/\d/,/\d/,":",/\d/,/\d/]):"cpf"==this.maskType?this.mask=[/\d/,/\d/,/\d/,".",/\d/,/\d/,/\d/,".",/\d/,/\d/,/\d/,"-",/\d/,/\d/]:"cnpj"==this.maskType?this.mask=[/\d/,/\d/,".",/\d/,/\d/,/\d/,".",/\d/,/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/]:this.mask=[];var i={mask:this.mask,guide:!0,placeholderChar:"_",pipe:e,modelClean:!0,keepCharPositions:!1};this.maskInputElement=n.createTextMaskInputElement(Object.assign({inputElement:this.inputElement},i))}},t}();qt.decorators=[{type:e.Directive,args:[{host:{"(input)":"onInput($event.target.value)","(blur)":"_onTouched()"},selector:"[setmask]",providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return qt})),multi:!0}]}]}],qt.ctorParameters=function(){return[{type:e.Renderer2,decorators:[{type:e.Inject,args:[e.Renderer2]}]},{type:e.ElementRef,decorators:[{type:e.Inject,args:[e.ElementRef]}]}]},qt.propDecorators={maskType:[{type:e.Input,args:["setmask"]}]};var Bt=function(){function t(t,e){this.elementRef=t,this.model=e}return t.prototype.inputChange=function(){var t=this.elementRef.nativeElement.value.replace(/\D/g,"");this.model.control.setValue(t)},t}();Bt.decorators=[{type:e.Directive,args:[{selector:"[unmask]"}]}],Bt.ctorParameters=function(){return[{type:e.ElementRef},{type:c.NgControl}]},Bt.propDecorators={inputChange:[{type:e.HostListener,args:["input"]}]};var Gt=function(){};Gt.decorators=[{type:e.NgModule,args:[{imports:[g.CommonModule,o.HttpClientModule,c.FormsModule,c.ReactiveFormsModule,b.MatCardModule,v.MatIconModule,y.MatInputModule,x.MatFormFieldModule,I.MatListModule,w.MatSelectModule,_.MatCheckboxModule,k.MatRadioModule,C.MatButtonModule,S.MatDatepickerModule,d.MatMomentDateModule,r.MatDialogModule,M.MatProgressBarModule,A.MatAutocompleteModule,T.MatTooltipModule,i.RouterModule,f.CurrencyMaskModule,D.AngularEditorModule,E.MatChipsModule],declarations:[it,ot,qt,Bt,pt,ht,mt,gt,ft,bt,xt,It,kt,Ct,St,Mt,Tt,At,Dt,Et,Pt,Ot,Vt,_t,Ut,Lt,jt,Ft,Nt,zt,Rt,Ht,ct],exports:[it,ot,pt,ht,mt,gt,ft,bt,xt,It,kt,Ct,St,Mt,Tt,At,Dt,Et,Pt,Ot,Vt,_t,Ut,Lt,jt,Ft,Nt,zt,Rt],schemas:[e.CUSTOM_ELEMENTS_SCHEMA],entryComponents:[_t,Ht,ct]}]}],t.APICONTROLLER_CONFIG=z,t.DICTIONARIES_CONFIG=N,t.InfoAlertComponent=pt,t.InfoAppConfigModel=R,t.InfoAuthenticationService=lt,t.InfoAutoCompleteComponent=ht,t.InfoBigCheckboxComponent=mt,t.InfoCardComponent=gt,t.InfoCheckboxComponent=bt,t.InfoChipsComponent=Vt,t.InfoConfigurationService=dt,t.InfoDataAccessModel=U,t.InfoDataService=rt,t.InfoDateComponent=xt,t.InfoDateMonthComponent=It,t.InfoDialogButtons=et,t.InfoDialogComponent=_t,t.InfoDialogModal=wt,t.InfoDialogModel=F,t.InfoDialogResult=j,t.InfoEditorComponent=Pt,t.InfoFormPropModel=B,t.InfoGridButtonModel=G,t.InfoGridComponent=kt,t.InfoInputComponent=Ct,t.InfoInputListComponent=St,t.InfoLastSearchModel=$,t.InfoLibraryModule=Gt,t.InfoListCheckboxComponent=Mt,t.InfoLoadingComponent=Ut,t.InfoLoginModel=K,t.InfoMainComponent=Lt,t.InfoMaskPipe=ot,t.InfoMenuCardComponent=ft,t.InfoMessageComponent=Tt,t.InfoMethodGridButtonModel=Y,t.InfoModalAction=q,t.InfoModalComponent=jt,t.InfoMultiSelectComponent=Ot,t.InfoNotificationItemModel=tt,t.InfoNotificationModel=Z,t.InfoPageAction=H,t.InfoPagebarButtonModel=W,t.InfoPagebarComponent=Ft,t.InfoPaginatorComponent=At,t.InfoPermissionModel=X,t.InfoPlatformModel=J,t.InfoSelectComponent=Dt,t.InfoSessionModel=Q,t.InfoSidebarComponent=Nt,t.InfoThemeService=ut,t.InfoTimelineComponent=Et,t.InfoTopMenuComponent=Rt,t.InfoTopbarComponent=zt,t.InfoTranslatePipe=it,t.InfoTranslateService=nt,t.ɵa=vt,t.ɵb=yt,t.ɵc=Ht,t.ɵd=rt,t.ɵe=J,t.ɵf=B,t.ɵg=lt,t.ɵh=ct,t.ɵi=Q,t.ɵj=nt,t.ɵk=$,t.ɵl=ut,t.ɵm=F,t.ɵn=it,t.ɵo=ot,t.ɵp=qt,t.ɵq=Bt,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("text-mask-core/dist/textMaskCore"),require("@angular/router"),require("@angular/common/http"),require("rxjs"),require("rxjs/operators"),require("@angular/material/dialog"),require("@angular/cdk/overlay"),require("@angular/forms"),require("@angular/material/core"),require("@angular/material-moment-adapter"),require("text-mask-addons/dist/createAutoCorrectedDatePipe"),require("@angular/platform-browser"),require("@angular/cdk/keycodes"),require("@angular/common"),require("ng2-currency-mask"),require("@angular/material/card"),require("@angular/material/icon"),require("@angular/material/form-field"),require("@angular/material/input"),require("@angular/material/list"),require("@angular/material/select"),require("@angular/material/checkbox"),require("@angular/material/radio"),require("@angular/material/button"),require("@angular/material/datepicker"),require("@angular/material/progress-bar"),require("@angular/material/tooltip"),require("@angular/material/autocomplete"),require("@kolkov/angular-editor"),require("@angular/material/chips"),require("text-mask-addons/dist/emailMask")):"function"==typeof define&&define.amd?define("info-library",["exports","@angular/core","text-mask-core/dist/textMaskCore","@angular/router","@angular/common/http","rxjs","rxjs/operators","@angular/material/dialog","@angular/cdk/overlay","@angular/forms","@angular/material/core","@angular/material-moment-adapter","text-mask-addons/dist/createAutoCorrectedDatePipe","@angular/platform-browser","@angular/cdk/keycodes","@angular/common","ng2-currency-mask","@angular/material/card","@angular/material/icon","@angular/material/form-field","@angular/material/input","@angular/material/list","@angular/material/select","@angular/material/checkbox","@angular/material/radio","@angular/material/button","@angular/material/datepicker","@angular/material/progress-bar","@angular/material/tooltip","@angular/material/autocomplete","@kolkov/angular-editor","@angular/material/chips","text-mask-addons/dist/emailMask"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["info-library"]={},t.ng.core,t.textMaskCore,t.ng.router,t.ng.common.http,t.rxjs,t.rxjs.operators,t.ng.material.dialog,t.ng.cdk.overlay,t.ng.forms,t.ng.material.core,t.ng.materialMomentAdapter,t.createAutoCorrectedDatePipe,t.ng.platformBrowser,t.ng.cdk.keycodes,t.ng.common,t.ng2CurrencyMask,t.ng.material.card,t.ng.material.icon,t.ng.material.formField,t.ng.material.input,t.ng.material.list,t.ng.material.select,t.ng.material.checkbox,t.ng.material.radio,t.ng.material.button,t.ng.material.datepicker,t.ng.material.progressBar,t.ng.material.tooltip,t.ng.material.autocomplete,t.angularEditor,t.ng.material.chips,t.emailMask)}(this,(function(t,e,n,i,o,a,s,r,l,c,u,d,p,h,m,g,f,b,v,x,y,I,w,_,k,C,S,M,T,A,D,E,P){"use strict";function O(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var V=O(p),L=O(P),N=new e.InjectionToken("DICTIONARIES_CONFIG"),z=new e.InjectionToken("APICONTROLLER_CONFIG"),R=function(){this.production=!1,this.webapiUrl="",this.processingUrl="",this.theme="",this.dictionary="",this.ux=2,this.style="",this.topMenu=!1,this.enabledPrime=!1};var U=function(t,e,n){this.messages=[],this.name=null,this.description=null,this.total=0,this.parentId=null,this.referenceGuid=null,this.external=!1,null!=t&&(null!=t.Name&&""!=t.Name&&(this.name=t.Name),null!=t.Description&&""!=t.Description&&(this.description=t.Description),null!=t.Total&&(this.total=t.Total),null!=t.Success&&(e=t.Success),t.Messages&&(n=t.Messages),null!=t.ParentId&&(this.parentId=t.ParentId),null!=t.ReferenceGuid&&(this.referenceGuid=t.ReferenceGuid),null!=t.External&&(this.external=t.External),this.data=t.Data),this.success=null==e||e,this.messages=n,null!=this.messages&&this.messages!=[]||(this.messages=new Array)};var j=function(t,e){this.data=null,this.button=t,this.data=e};var F=function(){this.yesOrNo=!1,this.message="",this.width=450,this.labelOk="Ok",this.labelCancel="Cancelar",this.labelAux=null,this.colorOk="",this.colorCancel="",this.colorAux="",this.processingMode=!1,this.disableButtonCancel=!1};var H={None:-1,View:0,New:1,Edit:2,Delete:3,Search:4};H[H.None]="None",H[H.View]="View",H[H.New]="New",H[H.Edit]="Edit",H[H.Delete]="Delete",H[H.Search]="Search";var q={None:0,Ok:1,Yes:2,No:3,Cancel:4,Save:5,Special:6,Aux:7};q[q.None]="None",q[q.Ok]="Ok",q[q.Yes]="Yes",q[q.No]="No",q[q.Cancel]="Cancel",q[q.Save]="Save",q[q.Special]="Special",q[q.Aux]="Aux";var B=function(){function t(){this.modalAction=q.None,this.modalComponent=null,this.api=null}return t.prototype.set=function(t,e){switch(this.data=e,this.readonly=t==H.View,this.pageAction=t,t){case H.New:this.title="Novo";break;case H.Search:this.title="Pesquisar";break;case H.View:this.title="Visualizar";break;case H.Edit:this.title="Editar";break;case H.Delete:this.title="Remover";break;default:this.title=""}},t}();var G=function(t,e,n,i,o,a,s,r,l,c){void 0===o&&(o=null),void 0===a&&(a=null),void 0===s&&(s=null),void 0===r&&(r=null),void 0===l&&(l=null),void 0===c&&(c=!0),this.modalComponent=null,this.widthModalComponent=500,this.api=null,this.method=null,this.showOnlyClass=null,this.disabledField=null,this.label=t,this.passId=e,this.icon=n,this.navigateTo=i,this.modalComponent=o,this.widthModalComponent=a,this.api=s,this.method=r,this.disabledField=l,this.confirm=c};var Y=function(t,e,n){this.method=null,this.label=t,this.icon=e,this.method=n};var $=function(){this.url="",this.model=null,this.index=0,this.enabledSearch=!1};var K=function(t,e,n){this.success=!1,this.success=t,this.messages=e,this.data=n};var W=function(t,e,n,i,o){void 0===n&&(n="chevron_right"),void 0===i&&(i=null),void 0===o&&(o=700),this.label="",this.url="",this.icon="",this.modal=null,this.modalwidth=700,this.label=t,this.url=e,this.icon=n,this.modal=i,this.modalwidth=o};var X=function(){};var J=function(){function t(){this.TokenKey="token",this.SessionKey="sessao",this.ConfigIsNull=!0,this.Themes=[],this.Config=new R,this.UnificarTopbar=!0,this.MenuMin=!1,this.ModoPrime=!1,this.Menu=[],this.ShortcutApi=null}return t.prototype.setConfig=function(t){this.Config=t,this.ConfigIsNull=!1},t}();var Q=function(){this.Permissoes=[],this.Empresas=[],this.Parametros=null};var Z=function(){this.Count=0,this.Itens=[]};var tt=function(){};var et={Ok:0,Cancel:1,Yes:2,No:3,Aux:4};et[et.Ok]="Ok",et[et.Cancel]="Cancel",et[et.Yes]="Yes",et[et.No]="No",et[et.Aux]="Aux";var nt=function(){function t(t,e){this._translations=t,this._plataforma=e,this._key="currentLang";var n=localStorage.getItem(this._key);this._currentLang=null==n?"pt-br":n}return Object.defineProperty(t.prototype,"currentLang",{get:function(){return this._currentLang},enumerable:!1,configurable:!0}),t.prototype.set=function(t){this._currentLang=t,localStorage.setItem(this._key,t)},t.prototype.translate=function(t){var e=t;return this._translations[this.currentLang]&&this._translations[this.currentLang].Values&&this._translations[this.currentLang].Values[t]?(this._translations[this.currentLang].Values[this._plataforma.Config.dictionary]||{})[t]||this._translations[this.currentLang].Values[t]:e},t.prototype.getCalendar=function(){if(this._translations[this.currentLang]&&this._translations[this.currentLang].Calendar)return this._translations[this.currentLang].Calendar},t.prototype.instant=function(t){return this.translate(t)},t}();nt.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],nt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[N]}]},{type:J}]},nt.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new nt(e.ɵɵinject(N),e.ɵɵinject(J))},token:nt,providedIn:"root"});var it=function(){function t(t){this._translate=t}return t.prototype.transform=function(t,e){if(t)return this._translate.instant(t)},t}();it.decorators=[{type:e.Pipe,args:[{name:"translate",pure:!1}]}],it.ctorParameters=function(){return[{type:nt}]};var ot=function(){function t(){}return t.prototype.transform=function(t,e){if(t){var i=[];return i="phone"==e?["(",/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/]:"cel"==e?["(",/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/]:"cep"==e?[/\d/,/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/]:"cpf"==e?[/\d/,/\d/,/\d/,".",/\d/,/\d/,/\d/,".",/\d/,/\d/,/\d/,"-",/\d/,/\d/]:"cnpj"==e?[/\d/,/\d/,".",/\d/,/\d/,/\d/,".",/\d/,/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/]:Array.from(e).map((function(t){return"0"==t?/\d/:t})),n.conformToMask(t,i,{guide:!1}).conformedValue}},t}();ot.decorators=[{type:e.Pipe,args:[{name:"mask",pure:!1}]}],ot.ctorParameters=function(){return[]};function at(t,e,n,i){return new(n||(n=Promise))((function(o,a){function s(t){try{l(i.next(t))}catch(t){a(t)}}function r(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,r)}l((i=i.apply(t,e||[])).next())}))}function st(t,e){var n,i,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function r(a){return function(r){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,i=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],i=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,r])}}}Object.create;Object.create;var rt=function(){function t(t,e,n,i){this._apiController=t,this._http=e,this._router=n,this._plataforma=i,this._key="token"}return t.prototype.getToken=function(){return this.token=localStorage.getItem(this._key),null==this.token?(this._router.navigateByUrl(""),""):"Bearer "+this.token},t.prototype.getHeaderToken=function(){return(new o.HttpHeaders).set("Authorization",this.getToken())},t.prototype.getAPIUrl=function(t){var e="";return e="number"==typeof t?this._apiController[t].toString():null==t?"":t.toString(),this._plataforma.Config.webapiUrl+(e.replace("_","/")+"/").toLowerCase()},t.prototype.getNoToken=function(t,e,n){var i=this;return this._http.get(this.getAPIUrl(t)+(null==e?"":e.toLowerCase())+(null==n?"":"?"+n.replace(/null/g,"").replace(/undefined/g,""))).pipe(s.map((function(t){return new U(t)})),s.catchError((function(t){return i.errorHandling(t)})))},t.prototype.get=function(t,e,n){var i=this;return this._http.get(this.getAPIUrl(t)+(null==e?"":e.toLowerCase())+(null==n?"":"?"+n.replace(/null/g,"").replace(/undefined/g,"")),{headers:this.getHeaderToken()}).pipe(s.map((function(t){return new U(t)})),s.catchError((function(t){return i.errorHandling(t)})))},t.prototype.getById=function(t,e){var n=this;return this._http.get(this.getAPIUrl(t)+e.toString(),{headers:this.getHeaderToken()}).pipe(s.map((function(t){return new U(t)})),s.catchError((function(t){return n.errorHandling(t)})))},t.prototype.postNoToken=function(t,e,n){var i=this;return this._http.post(this.getAPIUrl(t)+n.toLowerCase(),e).pipe(s.map((function(t){return new U(t)})),s.catchError((function(t){return i.errorHandling(t)})))},t.prototype.post=function(t,e,n){var i=this;return this._http.post(this.getAPIUrl(t)+(null==n?"":n),e,{headers:this.getHeaderToken()}).pipe(s.map((function(t){return new U(t)})),s.catchError((function(t){return i.errorHandling(t,!1)})))},t.prototype.delete=function(t,e,n){var i=this;return null!=e&&null!=e||alert("Id não informado"),this._http.delete(this.getAPIUrl(t)+(null==n?"":n.toLowerCase())+"?id="+e.toString(),{headers:this.getHeaderToken()}).pipe(s.map((function(t){return new U(t)})),s.catchError((function(t){return i.errorHandling(t)})))},t.prototype.deleteByModel=function(t,e,n){var i=this,o={headers:this.getHeaderToken(),body:e};return this._http.delete(this.getAPIUrl(t)+(null==n?"":n.toLowerCase()),o).pipe(s.map((function(t){return new U(t)})),s.catchError((function(t){return i.errorHandling(t)})))},t.prototype.request=function(t,e,n,i){for(var o=this,a=new FormData,r=0;r<e.length;r++)a.append(e[r].name,e[r]);return this._http.request("POST",this.getAPIUrl(t)+(null==n?"":n)+(null==i?"":"?"+i),{headers:this.getHeaderToken(),body:a}).pipe(s.map((function(t){return new U(t)})),s.catchError((function(t){return o.errorHandling(t)})))},t.prototype.errorHandling=function(t,e){void 0===e&&(e=!0),401==t.status?document.location.href="/#/login":e&&(document.location.href="/#/500");var n=new Array(t.message);return a.of(new U(null,!1,n))},t}();rt.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],rt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[z]}]},{type:o.HttpClient},{type:i.Router},{type:J}]},rt.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new rt(e.ɵɵinject(z),e.ɵɵinject(o.HttpClient),e.ɵɵinject(i.Router),e.ɵɵinject(J))},token:rt,providedIn:"root"});var lt=function(){function t(t,e,n,i,o,a){this._router=t,this._http=e,this._sessao=n,this._plataforma=i,this._dataService=o,this._modal=a,this._key="token",this._keySessao="sessao",this._sessionTime=null}return t.prototype.getSessao=function(){return this._sessao},t.prototype.getPlatform=function(){return this._plataforma},t.prototype.canActivate=function(t,e){var n=this;if(!this.isLogged())return this.logout(),!0;var i=t.data.URL||e.url;return this.refreshSessionTime(),this.definePaginaAtiva(i),this.getPermission(i,!0).pipe(s.map((function(){return"/"==i||(n.hasPermission(i)||n._router.navigateByUrl("permission"),i.indexOf("novo")>-1&&!n.hasPermission(i,"new")&&n._router.navigateByUrl("permission"),i.indexOf("visualizar")<-1&&null!=t.paramMap.get("id")&&!n.hasPermission(i,"edit")&&n._router.navigateByUrl("permission")),!0}),s.catchError((function(t){return 401==t.status&&n.logout(),a.of(!0)})))).pipe(s.switchMap((function(e){return at(n,void 0,void 0,(function(){var e,n,i;return st(this,(function(o){switch(o.label){case 0:return(e=t.data.Permissao)?(n=(e[2]||"").replace(RegExp(/\{(.*?)\}/,"g"),(function(e,n){return t.params[n]})),[4,this._dataService.get(e[0],e[1],n).toPromise()]):[2,!0];case 1:return(i=o.sent()).success&&1==i.data||this._router.navigateByUrl("permission"),[2,!0]}}))}))})))},t.prototype.isLogged=function(){return null!=localStorage.getItem(this._key)},t.prototype.refreshSessionTime=function(){var t=this;if(clearInterval(this._sessionTimeInterval),this._sessao.TempoInatividade<=0)this._sessionTime=null;else{if(this._sessionTime=this._sessao.TempoInatividade,this._sessao.TempoInatividade<=0)return void(this._sessionTime=null);this._sessionTimeInterval=setInterval((function(){null==t._sessionTime&&(t._sessionTime=t._sessao.TempoInatividade,null==t._sessionTime||t._sessionTime<=0)?t.refreshSessionTime():t._sessionTime>0?t._sessionTime--:(clearInterval(t._sessionTimeInterval),t._modal.open(ct,{data:null,disableClose:!0,width:"400px"}).afterClosed().subscribe((function(e){clearInterval(t._sessionTimeInterval),null==e?t.logout():e.modalAction==q.Yes?t.refreshSessionTime():t.logout()})))}),1e3)}},t.prototype.login=function(t,e,n,i){var o=this;return void 0===n&&(n=null),void 0===i&&(i=null),this.removeSessao(),this._http.post(this._plataforma.Config.webapiUrl+"centrocontrole/usuario/autenticar",{Usuario:t,Senha:e,ReCaptchaToken:n,Codigo2FA:i}).pipe(s.map((function(t){return t.Success&&null!=t.Data&&localStorage.setItem(o._key,t.Data.Token),new K(t.Success,t.Messages,t.Data)})),s.catchError((function(t){return o.errorHandling(t)})))},t.prototype.trocarEmpresa=function(t,e){var n=this;return this._http.post(this._plataforma.Config.webapiUrl+"centrocontrole/usuario/trocarempresa",{EmpresaId:e},{headers:this._dataService.getHeaderToken()}).pipe(s.map((function(t){return t.Success&&null!=t.Data&&localStorage.setItem(n._key,t.Data),new K(t.Success,t.Messages,t.Data)})),s.catchError((function(t){return n.errorHandling(t)})))},t.prototype.clonar=function(t){var e=this;return this._http.post(this._plataforma.Config.webapiUrl+"centrocontrole/usuario/clonar",{Usuario:t},{headers:this._dataService.getHeaderToken()}).pipe(s.map((function(t){return t.Success&&null!=t.Data&&localStorage.setItem(e._key,t.Data),new K(t.Success,t.Messages,t.Data)})),s.catchError((function(t){return e.errorHandling(t)})))},t.prototype.logout=function(){this.removeSessao(),this._router.navigateByUrl("login").then((function(t){location.reload()}))},t.prototype.getPermissions=function(t,e){var n=this;return void 0===e&&(e=!1),this._http.get(this._plataforma.Config.webapiUrl+"centrocontrole/usuario/getpermissao?url="+t+"&logatividade="+e.toString(),{headers:this._dataService.getHeaderToken()}).pipe(s.map((function(t){return new K(t.Success,t.Messages,t.Data)})),s.catchError((function(t){return n.errorHandling(t)})))},t.prototype.setTrocaSenha=function(t){var e=this;return this._http.post(this._plataforma.Config.webapiUrl+"centrocontrole/usuario/TrocarSenha",t,{headers:this._dataService.getHeaderToken()}).pipe(s.map((function(t){return new K(t.Success,t.Messages,t.Data)})),s.catchError((function(t){return e.errorHandling(t)})))},t.prototype.setRecuperarSenha=function(t){var e=this;return this._http.post(this._plataforma.Config.webapiUrl+"centrocontrole/usuario/RecuperarSenha",t,{headers:this._dataService.getHeaderToken()}).pipe(s.map((function(t){return new K(t.Success,t.Messages,t.Data)})),s.catchError((function(t){return e.errorHandling(t)})))},t.prototype.setResetarSenha=function(t){var e=this;return this._http.post(this._plataforma.Config.webapiUrl+"centrocontrole/usuario/ResetarSenha",t).pipe(s.map((function(t){return new K(t.Success,t.Messages,t.Data)})),s.catchError((function(t){return e.errorHandling(t)})))},t.prototype.getLoginResources=function(){var t=this;return this._http.get(this._plataforma.Config.webapiUrl+"centrocontrole/app/GetLoginResources").pipe(s.map((function(t){return new K(t.Success,t.Messages,t.Data)})),s.catchError((function(e){return t.errorHandling(e)})))},t.prototype.hasPermission=function(t,e){if(void 0===e&&(e="view"),"/"==t&&"view"==e)return!0;var n=this.getUrlGenerica(t);return this._sessao.Permissoes.some((function(t){return t.URL==n&&t.ChaveFuncionalidade==e&&t.Acesso}))},t.prototype.getPermission=function(t,e){var n=this;void 0===e&&(e=!1);var i=this.getUrlGenerica(t);return this._sessao.Permissoes.some((function(t){return t.URL==i}))?e?this.validaSessao(t).pipe(s.map((function(t){return t.success||n.logout(),!0})),s.catchError((function(t){return 401==t.status&&n.logout(),a.of(!0)}))):new a.Observable((function(t){t.next(!0),t.complete()})):this.getPermissions(i,e).pipe(s.map((function(t){if(t.success){if(null==t.data)return n.logout(),!0;t.data.forEach((function(t){0==n._sessao.Permissoes.filter((function(e){return e.URL==t.URL&&e.ChaveFuncionalidade==t.ChaveFuncionalidade})).length&&n._sessao.Permissoes.push(t)})),t.data.some((function(t){return t.URL==i})),localStorage.setItem(n._keySessao,JSON.stringify(n._sessao))}return!0})),s.catchError((function(t){return 401==t.status&&n.logout(),a.of(!0)})))},t.prototype.validaSessao=function(t){var e=this;return this._http.get(this._plataforma.Config.webapiUrl+"centrocontrole/usuario/validasessao?url="+t,{headers:this._dataService.getHeaderToken()}).pipe(s.map((function(t){return new K(!0===t,"",t)})),s.catchError((function(t){return e.errorHandling(t)})))},t.prototype.removeSessao=function(){Object.keys(localStorage).forEach((function(t){t.includes("Dashboard")||delete localStorage[t]}))},t.prototype.definePaginaAtiva=function(t){if(null!=this._plataforma.Menu&&null!=t){var e=t.substring(1).replace(/-/g,"").toLowerCase().split("/"),n=e.length>0?e[0].toString():t;if(n.indexOf("ashboard")>-1)this._plataforma.PaginaAtiva={Icone:"widgets",Titulo:"Dashboard"};else{var i=this._plataforma.Menu.filter((function(t){return t.Title.toLowerCase().indexOf(n)>-1}));null!=i&&i.length>0?this._plataforma.PaginaAtiva={Icone:i[0].Icon,Titulo:i[0].Title}:this._plataforma.PaginaAtiva={Icone:"security",Titulo:"Plataforma"}}}else this._plataforma.PaginaAtiva=null},t.prototype.getUrlGenerica=function(t){for(var e="",n=t.split("/"),i=0;i<n.length&&(isNaN(parseFloat(n[i]))&&!this.isGuid(n[i])&&"novo"!=n[i].toLowerCase());i++)e+="/"+n[i];return e.substring(1)},t.prototype.errorHandling=function(t){if(401==t.status)this.logout();else{if(500!=t.status)return null!=t.error&&null!=t.error.error_description?a.of(new K(!1,t.error.error_description)):a.of(new K(!1,"Houve um problema e não foi possível conectar"));this._router.navigateByUrl("500")}},t.prototype.isGuid=function(t){return null!==(t||"").match("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")},t}();lt.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],lt.ctorParameters=function(){return[{type:i.Router},{type:o.HttpClient},{type:Q},{type:J},{type:rt},{type:r.MatDialog}]},lt.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new lt(e.ɵɵinject(i.Router),e.ɵɵinject(o.HttpClient),e.ɵɵinject(Q),e.ɵɵinject(J),e.ɵɵinject(rt),e.ɵɵinject(r.MatDialog))},token:lt,providedIn:"root"});var ct=function(){function t(t){this._ref=t,this.time=15}return t.prototype.ngOnInit=function(){var t=this;clearInterval(this.interval),this.interval=setInterval((function(){t.time>0?t.time--:(t.ativo(!1),clearInterval(t.interval))}),1e3)},t.prototype.ativo=function(t){this._ref.close({modalAction:t?q.Yes:q.No})},t}();ct.decorators=[{type:e.Component,args:[{template:'\n\t\t<info-modal modaltitle="Inatividade" (onsave)="ativo(true)" labelsubmit="Sim" labelcancel="({{ time }}) {{ \'Nao\' | translate }}">\n <label style="font-size:130%">{{ \'VoceAindaEstaUtilizandoPlataforma\' | translate }}</label>\n\t\t</info-modal>\n\t'}]}],ct.ctorParameters=function(){return[{type:r.MatDialogRef}]};var ut=function(){function t(t,e,n){this._overlay=t,this._plataform=e,this._session=n}return t.prototype.setTheme=function(t){if(null!=this._plataform.Themes){var e=this._plataform.Themes.find((function(e){return e.name==t}));this._plataform.UnificarTopbar=null!=e&&e.unificarTopbar}var n=this._overlay.getContainerElement().classList,i=Array.from(n).filter((function(t){return t.includes("-theme")}));i&&i.length>0&&n.remove(i),n.remove("alternative-layout"),n.add(t),document.body.removeAttribute("class"),document.body.classList.add(t),this._plataform.UnificarTopbar&&document.body.classList.add("alternative-layout"),this._plataform.MenuMin&&document.body.classList.add("menu-min"),this._plataform.ModoPrime&&document.body.classList.add("modo-prime"),document.body.classList.add("ux"+(this._plataform.Config.ux?this._plataform.Config.ux:2)),sessionStorage.setItem("at",t),localStorage.setItem("at",t)},t.prototype.setThemeByLoggedCompany=function(){this.setTheme(this._session.TemaId>0?"_"+this._session.TemaId+"-theme":"default-theme")},t.prototype.setMenuMin=function(t){void 0===t&&(t=null),this._plataform.MenuMin=null==t?!this._plataform.MenuMin:t,document.body.classList.remove("menu-min"),this._plataform.MenuMin&&document.body.classList.add("menu-min"),sessionStorage.setItem("mm",this._plataform.MenuMin.toString()),localStorage.setItem("mm",this._plataform.MenuMin.toString())},t.prototype.setModePrime=function(t){void 0===t&&(t=null),this._plataform.ModoPrime=null==t?!this._plataform.ModoPrime:t,document.body.classList.remove("modo-prime"),this._plataform.ModoPrime&&document.body.classList.add("modo-prime"),sessionStorage.setItem("mp",this._plataform.ModoPrime.toString()),localStorage.setItem("mp",this._plataform.ModoPrime.toString())},t}();ut.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],ut.ctorParameters=function(){return[{type:l.OverlayContainer},{type:J},{type:Q}]},ut.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new ut(e.ɵɵinject(l.OverlayContainer),e.ɵɵinject(J),e.ɵɵinject(Q))},token:ut,providedIn:"root"});var dt=function(){function t(t,e,n){this._http=t,this._plataforma=e,this._themeService=n}return t.prototype.initialize=function(){var t=this;return new Promise((function(e,n){t._http.get("config.json").subscribe((function(n){var i=sessionStorage.getItem("at")||localStorage.getItem("at"),o=sessionStorage.getItem("mm")||localStorage.getItem("mm"),a=sessionStorage.getItem("mp")||localStorage.getItem("mp");t._plataforma.Config=n,t._plataforma.ConfigIsNull=!1,null!=t._plataforma.Config.ux&&null!=t._plataforma.Config.ux||(t._plataforma.Config.ux=2),2==t._plataforma.Config.ux&&(o="false");var s=document.createElement("link");if(s.href=t._plataforma.Config.webapiUrl.replace(/\/api\/$/gi,"")+"/layout/temas.css",s.type="text/css",s.rel="stylesheet",document.head.appendChild(s),null!=t._plataforma.Config.style){var r=document.createElement("link");r.href="/assets/"+t._plataforma.Config.style+"/style.css",r.type="text/css",r.rel="stylesheet",document.head.appendChild(r)}null!=i&&null!=i||(i="_"+t._plataforma.Config.theme+"-theme"),t._themeService.setTheme(i||"default-theme"),t._themeService.setMenuMin("true"==o),t._themeService.setModePrime("true"==a),e(n)}))}))},t}();dt.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],dt.ctorParameters=function(){return[{type:o.HttpClient},{type:J},{type:ut}]},dt.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new dt(e.ɵɵinject(o.HttpClient),e.ɵɵinject(J),e.ɵɵinject(ut))},token:dt,providedIn:"root"});var pt=function(){function t(){this.messages=[]}return t.prototype.onClose=function(){this.messages=[]},t}();pt.decorators=[{type:e.Component,args:[{selector:"info-alert",template:'\n <div *ngIf="messages != [] && messages.length > 0">\n <div class="alert" #alert >\n <h5>{{ \'Atencao\' | translate }}</h5>\n <ng-content></ng-content>\n <ul>\n <li *ngFor="let m of messages"><mat-icon>error_outline</mat-icon><label [innerHTML]="m | translate"></label></li>\n </ul>\n <a class="close" (click)="onClose()"><i class="material-icons">clear</i></a>\n </div>\n </div>\n ',styles:[":host{bottom:70px;display:block;margin-left:280px;min-width:350px;position:fixed;right:30px;z-index:100}:host:last-child{margin-bottom:0}:host .alert{box-shadow:0 5px 5px 2px rgba(0,0,0,.25);padding:1.04762rem 1.57143rem;position:relative}:host .alert h5{border-bottom:1px solid hsla(0,0%,100%,.1);margin:0 -20px 5px;padding-bottom:10px;text-align:center}:host .alert ul{list-style:none;margin:0;padding:0}:host .alert ul li{border-bottom:1px solid hsla(0,0%,100%,.1);padding:7px 5px}:host .alert ul li:last-child{border-bottom:none}:host .alert .close{color:#fff;font-size:20px;line-height:1;position:absolute;right:10px;top:15px;transition:background .2s ease-in-out,color .2s ease-in-out}:host .alert .close:hover{color:#ddd;cursor:pointer}:host .alert .close .material-icons{color:inherit;font-size:inherit;margin:0;vertical-align:top}:host .alert /deep/ .material-icons{color:main-color(A100);margin:0 1.57143rem 0 0;vertical-align:top}"]}]}],pt.propDecorators={messages:[{type:e.Input}]};var ht=function(){function t(t){this._dataAcess=t,this.control=new c.FormControl,this.placeholder="",this.name="",this.required=!1,this.selectfirst=!1,this.disablednoregisters=!1,this.getdataonchange=!1,this.getdataonchangetime=300,this.api=null,this.method="getchavevalor",this.maxlist=10,this.startwith=!1,this.minchar=1,this.onselecteditem=new e.EventEmitter,this.selectedValue=null,this.initialized=!1,this._loading=!1,this._params=null,this._disabled=null,this._data=[]}return Object.defineProperty(t.prototype,"loading",{get:function(){return this._loading},set:function(t){this._loading=t,null==this._disabled?this._disabled=!1:""==this._disabled.toString()&&(this._disabled=!0),0==this._disabled&&this.setDisabledState(this.loading)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"params",{get:function(){return this._params},set:function(t){var e=this;this._params=t,this.initialized&&this.getData().subscribe((function(t){e.data=t.data,e.loading=!1}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{set:function(t){null==this._disabled&&(this._disabled=t),t?this.control.disable():this.control.enable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(t){var e=this;this._data=t,this.getdataonchange||setTimeout((function(){null!=e.selectedValue?null==e._data||null!=e._data&&0==e._data.length?(e.writeValue(null),e.selectedValue=null):e.writeValue(null==e.selectedValue.Id?e.selectedValue:e.selectedValue.Id):e.selectfirst&&null!=e.data&&e.data.length>0&&e.writeValue(e.data[0].Id),e.disablednoregisters&&e.setDisabledState(null==e.data||0==e.data.length)}),1e3)},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;(null==this.minchar||this.minchar<0)&&(this.minchar=1),this.name=this.placeholder.replace(/ /g,"")+Math.floor(1e3*Math.random()).toString(),this.getdataonchange?this.control.valueChanges.pipe(s.debounceTime(this.getdataonchangetime),s.distinctUntilChanged(),s.switchMap((function(e){return t.getData(e)}))).subscribe((function(e){return t.data=t.options=e.data})):(this.getData().subscribe((function(e){t.data=e.data,t.loading=!1})),this.control.valueChanges.subscribe((function(e){t.options=t.filter(e)})))},t.prototype.filter=function(t){if(null==t||t.length<this.minchar)return[];var e=null==t.Nome?t.toString().toLowerCase():t.Nome;return this.startwith?this.data.filter((function(t){return 0===t.Nome.toLowerCase().indexOf(e)||(null==t.Aux?"":t.Aux.toLowerCase()==e)})).slice(0,this.maxlist):this.data.filter((function(t){return t.Nome.toLowerCase().indexOf(e)>-1||(null==t.Aux?"":t.Aux.toLowerCase().indexOf(e)>-1)})).slice(0,this.maxlist)},t.prototype.getData=function(t){if(void 0===t&&(t=null),this.initialized=!0,null==this.api||""==this.api)return new a.Observable;this.loading=!this.getdataonchange,this.data=[];var e=this.params||"";if(this.getdataonchange){if(null==t||""==t)return new a.Observable;null!=e&&""!=e&&(e+="&");var n=(e+="nome="+(null==t.Nome?t.toString().toLowerCase():t.Nome)+"&take="+this.maxlist).split("&").map((function(t){var e;return(e={})[t.split("=")[0].charAt(0).toUpperCase()+t.split("=")[0].substring(1)]=t.split("=")[1],e})).reduce((function(t,e){return Object.assign(Object.assign({},t),e)}));return this._dataAcess.post(this.api,n,this.method)}return this._dataAcess.get(this.api,this.method,e)},t.prototype.onBlur=function(t){var e=this;setTimeout((function(){if(null==e.selectedValue||null==e.selectedValue.Id)if(t||null==e.selectedValue||""!=e.selectedValue.trim()){var n=e.filter(t);null!=n&&n.length>0?e.writeValue(n[0].Id):e.writeValue(null)}else e.writeValue(null)}),300)},t.prototype.onFocus=function(t){var e=this;null==this.minchar||0!=this.minchar||null!=t&&""!=t||setTimeout((function(){e.control.setValue("")}),200)},t.prototype.displayFn=function(t){if(null==t||null==t.Nome)return"";var e=t.Nome.indexOf("<small");return e>-1?t.Nome.substring(0,e).trim():t.Nome},t.prototype.writeValue=function(t){var e=this.data.find((function(e){return e.Id==t}));this.control.setValue(e),null!=t&&null==e&&(this.selectedValue=t),null!=this.onChange&&this.onChange(t),null!=this.onselecteditem&&this.onselecteditem.emit(null==this.data?null:this.data.find((function(e){return e.Id==t})))},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=!(!this.disablednoregisters||null!=this.data&&0!=this.data.length)||t},t}();ht.decorators=[{type:e.Component,args:[{selector:"info-autocomplete",template:'<mat-form-field>\r\n <input matInput type="text" [(ngModel)]="selectedValue" [placeholder]="placeholder | translate" [formControl]="control" [matAutocomplete]="auto" \r\n [required]="required" (blur)="onBlur($event.target.value)" (focus)="onFocus($event.target.value)" #inputAuto>\r\n\r\n <mat-autocomplete #auto="matAutocomplete" [displayWith]="displayFn">\r\n <mat-option *ngFor="let option of options" [value]="option" (onSelectionChange)="writeValue(option.Id)" [innerHTML]="option.Nome" >\r\n </mat-option>\r\n </mat-autocomplete>\r\n \r\n <mat-icon matSuffix style="color: #aaa">spellcheck</mat-icon>\r\n</mat-form-field>\r\n\r\n<section class="select-loading">\r\n <mat-progress-bar color="primary" mode="indeterminate" *ngIf="loading"></mat-progress-bar>\r\n</section>',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return ht})),multi:!0}],styles:[":host .select-loading{bottom:21px;height:1px;opacity:.3;position:relative}:host .select-loading .mat-progress-bar{height:1px;margin:0}:host mat-option small{font-style:italic;margin-left:10px}"]}]}],ht.ctorParameters=function(){return[{type:rt}]},ht.propDecorators={placeholder:[{type:e.Input}],name:[{type:e.Input}],required:[{type:e.Input}],selectfirst:[{type:e.Input}],disablednoregisters:[{type:e.Input}],getdataonchange:[{type:e.Input}],getdataonchangetime:[{type:e.Input}],api:[{type:e.Input}],method:[{type:e.Input}],maxlist:[{type:e.Input}],startwith:[{type:e.Input}],minchar:[{type:e.Input}],onselecteditem:[{type:e.Output}],loading:[{type:e.Input}],params:[{type:e.Input}],disabled:[{type:e.Input}],data:[{type:e.Input}]};var mt=function(){function t(t){this._dataService=t,this.readonly=!1,this.preload=!0,this.enabledcheckall=!0,this.labelselectall="Todos",this.labelsearch="Buscar",this.minchar=0,this.max=20,this.submessage="",this.value="",this.api=null,this.method=null,this.model=[],this.data=[],this.aux=null,this._params=null,this._paramsmodel=null,this.loading=!1,this.name=""}return Object.defineProperty(t.prototype,"params",{get:function(){return this._params},set:function(t){this._params=t,this.getData()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paramsmodel",{get:function(){return this._paramsmodel},set:function(t){this._paramsmodel=t,this.getData()},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.submessage="Serão exibidos somente os "+this.max+" primeiros itens encontrados",this.name="input-search-"+Math.floor(1e3*Math.random()).toString(),this.getData()},t.prototype.getData=function(){this.preload&&(null==this.params&&null!=this.paramsmodel?this.loadByParamModel(this.paramsmodel):this.load(this.params))},t.prototype.load=function(t){var e=this;void 0===t&&(t=null),null!=this.api&&(this.loading=!0,this.data=[],null==this.model&&(this.model=[]),this._dataService.get(this.api,this.method,t).subscribe((function(t){t.success&&(e.data=t.data),e.loading=!1})))},t.prototype.loadByParamModel=function(t){var e=this;void 0===t&&(t=null),null!=this.api&&(this.loading=!0,this.data=[],null==this.model&&(this.model=[]),this._dataService.post(this.api,t,this.method).subscribe((function(t){t.success&&(e.data=t.data),e.loading=!1})))},t.prototype.getModel=function(){var t=this;return null==this.model||0==this.model.length?[]:this.model.filter((function(e){return null==t.aux||e.Aux==t.aux}))},t.prototype.getFilteredData=function(){var t=this;return 0==this.data.length||this.value.length<this.minchar?[]:this.data.filter((function(e){return(null==t.aux||t.aux==e.Aux)&&0==t.model.filter((function(t){return t.Id==e.Id})).length&&e.Nome.toLowerCase().indexOf(t.value.toLowerCase())>-1})).slice(0,this.max)},t.prototype.existData=function(){var t=this;return null!=this.data&&this.data.length>0&&this.data.filter((function(e){return null==t.aux||t.aux==e.Aux})).length>0},t.prototype.add=function(t){null==this.model&&(this.model=[]),this.model.push({Id:t.Id,Nome:t.Nome,Aux:null==this.aux?t.Aux:this.aux,Descricao:null==t.Descricao?t.Nome:t.Descricao,Selecionado:!0})},t.prototype.selectAll=function(){var t=this,e=new Array;if(null!=this.aux)for(var n=0;n<this.model.length;n++)this.model[n].Aux==this.aux&&e.push(n);e.forEach((function(e){t.model.splice(e,1)}))},t}();mt.decorators=[{type:e.Component,args:[{selector:"info-big-checkbox",template:'<mat-selection-list class="col-md-12 mb-3">\r\n <mat-list-option class="silver" (click)="selectAll()" [selected]="getModel().length == 0" [disabled]="readonly" *ngIf="enabledcheckall">\r\n <label>{{ labelselectall | translate }}</label>\r\n </mat-list-option>\r\n\r\n <mat-list-option *ngFor="let item of getModel(); let i = index" [ngClass]="{ \'silver\': i % 2 == 1 }" [selected]="item.Selecionado" (click)="item.Selecionado = !item.Selecionado" [disabled]="readonly">\r\n <div *ngIf="item.Descricao == null" [innerHTML]="item.Nome"></div>\r\n <div *ngIf="item.Descricao != null" [innerHTML]="item.Descricao"></div>\r\n </mat-list-option>\r\n</mat-selection-list>\r\n \r\n<ng-container *ngIf="existData()" >\r\n <mat-form-field class="col-md-12 mb-4 input-search">\r\n <input matInput placeholder="{{ message | translate}}" [name]="name" autocomplete="false" [(ngModel)]="value" autocomplete="off" >\r\n <mat-icon matSuffix >search</mat-icon>\r\n <mat-hint class="mt-2">{{ submessage | translate}}</mat-hint>\r\n </mat-form-field>\r\n \r\n <mat-list class="col-md-12" >\r\n <mat-list-item *ngFor="let item of getFilteredData(); let i = index" [ngClass]="{ \'silver\': i % 2 == 0 }" (click)="add(item)">\r\n <div *ngIf="item.Descricao == null" [innerHTML]="item.Nome"></div>\r\n <div *ngIf="item.Descricao != null" [innerHTML]="item.Descricao"></div>\r\n <mat-icon>add_circle_outline</mat-icon>\r\n </mat-list-item>\r\n </mat-list>\r\n</ng-container>\r\n\r\n<div class="col-md-12 none-data" *ngIf="!existData()" >\r\n <mat-icon>info_outline</mat-icon> {{ \'NenhumItemEncontrado\' | translate }}\r\n</div>',styles:[":host mat-list-option{cursor:pointer;font-family:Open Sans,sans-serif;font-size:14px;padding:0!important}:host mat-list-option label{padding-left:5px}:host mat-list-item{cursor:pointer;font-size:14px;height:38px;padding:0 10px 0 20px}:host mat-list-item:hover{background:rgba(0,0,0,.04)}:host mat-list-item mat-icon{position:absolute;right:3px;top:8px}:host mat-list-item.silver,:host mat-list-option.silver{background:#f5f5f5}:host mat-list-item:hover,:host mat-list-option:hover{background:#eee}:host mat-list-item-content{padding-left:0!important}:host .none-data{background:#f5f5f5;color:#666;font-size:14px;padding:5px 0;text-align:center}:host .none-data mat-icon{font-size:18px;left:5px;margin-right:5px;top:4px}"]}]}],mt.ctorParameters=function(){return[{type:rt}]},mt.propDecorators={readonly:[{type:e.Input}],preload:[{type:e.Input}],enabledcheckall:[{type:e.Input}],labelselectall:[{type:e.Input}],labelsearch:[{type:e.Input}],minchar:[{type:e.Input}],max:[{type:e.Input}],message:[{type:e.Input}],submessage:[{type:e.Input}],value:[{type:e.Input}],api:[{type:e.Input}],method:[{type:e.Input}],model:[{type:e.Input}],data:[{type:e.Input}],aux:[{type:e.Input}],params:[{type:e.Input}],paramsmodel:[{type:e.Input}]};var gt=function(){function t(t){this._router=t,this.onclick=new e.EventEmitter}return t.prototype.onCardClick=function(){null==this.url||""==this.url?this.onclick.emit():this._router.navigateByUrl(this.url)},t}();gt.decorators=[{type:e.Component,args:[{selector:"info-card",template:'<mat-card (click)="onCardClick()">\r\n <mat-card-content>\r\n <h4>{{ label | translate }}</h4>\r\n <p [innerHTML]="description | translate"></p>\r\n <mark *ngIf="mark"><small>{{ mark }}</small></mark>\r\n </mat-card-content>\r\n <mat-card-footer>\r\n <mat-icon>{{icon}}</mat-icon>\r\n </mat-card-footer>\r\n</mat-card>',styles:[":host mat-card-footer{height:70px;overflow:hidden;position:relative}:host mat-card-footer mat-icon{bottom:36px;color:#aaa;font-size:5.71rem;opacity:.4;position:absolute;right:42px}"]}]}],gt.ctorParameters=function(){return[{type:i.Router}]},gt.propDecorators={label:[{type:e.Input}],description:[{type:e.Input}],mark:[{type:e.Input}],url:[{type:e.Input}],icon:[{type:e.Input}],onclick:[{type:e.Output}]};var ft=function(){function t(){this.label=null,this.description=null,this.icon=null,this.menu=[],this.cols=0,this.loadinit=!0,this.menuRows=[],this.col=12,this.colClass="col-md-"}return t.prototype.ngOnInit=function(){this.loadinit&&this.load()},t.prototype.load=function(){if(this.menuRows=new Array,this.menu=null==this.menu?null:this.menu.filter((function(t){return 1==t.permission})),null==this.menu||0==this.menu.length||null==this.cols||0==this.cols)return this.menuRows.push(this.menu),void(this.colClass+=this.col.toString());for(var t=Math.ceil(this.menu.length/this.cols),e=0;e<this.cols;e++)this.menuRows.push(this.menu.slice(e*t,e*t+t));this.col=12/this.cols,this.colClass+=this.col.toString()},t}();ft.decorators=[{type:e.Component,args:[{selector:"info-card-menu",template:'<mat-card>\r\n <mat-card-content>\r\n <h6 *ngIf="label != null" [innerHTML]="label | translate" ></h6>\r\n <p *ngIf="description != null">{{ description | translate }}</p>\r\n\r\n <div class="row">\r\n <ng-container *ngFor="let row of menuRows">\r\n <mat-nav-list [ngClass]="colClass">\r\n <ng-container *ngFor="let item of row">\r\n <mat-list-item *ngIf="item.permission" href="#" [routerLink]="item.url" >\r\n <a title="no" title="{{ item.title | translate }}" md-line>{{ item.title | translate }}</a>\r\n </mat-list-item>\r\n </ng-container>\r\n </mat-nav-list>\r\n </ng-container>\r\n </div>\r\n </mat-card-content>\r\n <mat-card-footer *ngIf="icon == null">\r\n <mat-icon>{{icon}}</mat-icon>\r\n </mat-card-footer>\r\n</mat-card>',styles:[":host h6{font-size:11px;padding-bottom:10px;width:100%}:host .mat-nav-list .mat-list-item{height:40px!important}:host mat-card-footer{height:40px;overflow:hidden;position:relative}:host mat-card-footer mat-icon{bottom:36px;color:#aaa;font-size:5.71rem;opacity:.4;position:absolute;right:0;text-align:right;width:100%}"]}]}],ft.propDecorators={label:[{type:e.Input}],description:[{type:e.Input}],icon:[{type:e.Input}],menu:[{type:e.Input}],cols:[{type:e.Input}],loadinit:[{type:e.Input}]};var bt=function(){function t(){this.placeholder="",this.type=null,this.min=!1,this.value=!1,this.disabled=!1,this.checkboxValue={true:!0,false:!1},this.initialized=!1}return Object.defineProperty(t.prototype,"checked",{get:function(){return this.value},set:function(t){this.initialized&&(this.value=t,this.onChangeValue())},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){if(null!=this.type){var t=this.type.split(",");this.checkboxValue.true=isNaN(Number(t[0]))?t[0]:Number(t[0]),this.checkboxValue.false=isNaN(Number(t[1]))?t[1]:Number(t[1])}this.value=!0},t.prototype.writeValue=function(t){this.value=void 0!==t&&null!=t&&t===this.checkboxValue.true,this.onChangeValue()},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.initialized=!0,this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.onChangeValue=function(){var t=this.value?this.checkboxValue.true:this.checkboxValue.false;null!=this.onChange&&this.onChange(t)},t}();bt.decorators=[{type:e.Component,args:[{selector:"info-checkbox",template:'<section class="info-checkbox-content mat-form-field-margin " [ngClass]="{ \'info-checkbox-min\': min }">\r\n <mat-checkbox [(ngModel)]="value" (change)="onChangeValue()" [disabled]="disabled"><div [innerHtml]="placeholder | translate"></div></mat-checkbox>\r\n</section>',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return bt})),multi:!0}],styles:[".info-checkbox-content { padding-top: 20px; } .info-checkbox-min { padding-top: 0 !important; margin: 0 0 13px !important; } "]}]}],bt.propDecorators={placeholder:[{type:e.Input}],type:[{type:e.Input}],min:[{type:e.Input}],checked:[{type:e.Input}]};var vt={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM Y",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM Y"}},xt=function(){function t(){this.disabled=!1,this.required=!1,this.minDate=null,this.maxDate=null,this.datefilter=null,this.dateclass=null}return t.prototype.ngAfterViewInit=function(){var t={mask:[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/],guide:!0,placeholderChar:"_",pipe:V.default(vt.parse.dateInput.toLowerCase()),modelClean:!0,keepCharPositions:!1};this.dateMask=n.createTextMaskInputElement(Object.assign({inputElement:this.input.nativeElement},t))},t.prototype.onInputDate=function(t){this.dateMask.update(t)},t.prototype.onChangeValue=function(){null!=this.onChange&&this.onChange(this.dateValue)},t.prototype.writeValue=function(t){null!=t&&((t=new Date(t)).setMinutes(t.getMinutes()+t.getTimezoneOffset()),t=new Date(t.getFullYear(),t.getMonth(),t.getDate())),this.dateValue=t,this.onChangeValue()},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.onKeyPress=function(t){13==t.keyCode&&this.onChangeValue()},t}();xt.decorators=[{type:e.Component,args:[{selector:"info-date",template:'<mat-form-field>\r\n <input matInput [placeholder]="placeholder | translate" [(ngModel)]="dateValue" [disabled]="disabled" [required]="required" [min]="minDate" [max]="maxDate"\r\n (dateChange)="onChangeValue()" (input)="onInputDate($event.target.value)" (keypress)="onKeyPress($event)" (blur)="onChangeValue()" [matDatepicker]="datepicker"\r\n [matDatepickerFilter]="datefilter" #inputDate >\r\n\r\n <mat-datepicker-toggle matSuffix [for]="datepicker"></mat-datepicker-toggle>\r\n <mat-datepicker [dateClass]="dateclass" #datepicker></mat-datepicker>\r\n</mat-form-field>',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return xt})),multi:!0},{provide:u.MAT_DATE_LOCALE,useValue:"pt-BR"},{provide:u.DateAdapter,useClass:d.MomentDateAdapter,deps:[u.MAT_DATE_LOCALE]},{provide:u.MAT_DATE_FORMATS,useValue:vt},{provide:d.MAT_MOMENT_DATE_ADAPTER_OPTIONS,useValue:{useUtc:!0}}]}]}],xt.propDecorators={placeholder:[{type:e.Input}],disabled:[{type:e.Input}],required:[{type:e.Input}],minDate:[{type:e.Input}],maxDate:[{type:e.Input}],datefilter:[{type:e.Input}],dateclass:[{type:e.Input}],input:[{type:e.ViewChild,args:["inputDate",{static:!1}]}]};var yt={parse:{dateInput:"MM/YYYY"},display:{dateInput:"MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},It=function(){function t(){this.disabled=!1,this.required=!1}return t.prototype.ngAfterViewInit=function(){var t={mask:[/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/],guide:!0,placeholderChar:"_",pipe:V.default(yt.parse.dateInput.toLowerCase()),modelClean:!0,keepCharPositions:!1};this.dateMask=n.createTextMaskInputElement(Object.assign({inputElement:this.input.nativeElement},t))},t.prototype.onInputDate=function(t){this.dateMask.update(t)},t.prototype.onChangeValue=function(){null!=this.onChange&&this.onChange(this.dateValue)},t.prototype.writeValue=function(t){null==t||null==t?this.dateValue=null:((t=new Date(t)).setMinutes(t.getMinutes()+t.getTimezoneOffset()),t=new Date(t.getFullYear(),t.getMonth(),1),this.dateValue=t),this.onChangeValue()},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.chosenYearHandler=function(t){var e=new Date(t.year(),new Date(this.dateValue).getMonth(),1);this.dateValue=e,this.onChangeValue()},t.prototype.chosenMonthHandler=function(t,e){var n=new Date(t.year(),t.month(),1);this.dateValue=n,this.onChangeValue(),e.close()},t.prototype.onKeyPress=function(t){13==t.keyCode&&this.onChangeValue()},t}();It.decorators=[{type:e.Component,args:[{selector:"info-date-month",template:'<mat-form-field>\r\n <input matInput [placeholder]="placeholder | translate" [(ngModel)]="dateValue" [disabled]="disabled" [required]="required" \r\n (dateChange)="onChangeValue()" (input)="onInputDate($event.target.value)" (keypress)="onKeyPress($event)" (blur)="onChangeValue()" [matDatepicker]="datepicker" #inputDate >\r\n\r\n <mat-datepicker-toggle matSuffix [for]="datepicker"></mat-datepicker-toggle>\r\n <mat-datepicker #datepicker startView="multi-year" (yearSelected)="chosenYearHandler($event)" (monthSelected)="chosenMonthHandler($event, datepicker)"></mat-datepicker>\r\n</mat-form-field> ',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return It})),multi:!0},{provide:u.MAT_DATE_LOCALE,useValue:"pt-BR"},{provide:u.DateAdapter,useClass:d.MomentDateAdapter,deps:[u.MAT_DATE_LOCALE]},{provide:u.MAT_DATE_FORMATS,useValue:yt},{provide:d.MAT_MOMENT_DATE_ADAPTER_OPTIONS,useValue:{useUtc:!0}}]}]}],It.propDecorators={placeholder:[{type:e.Input}],disabled:[{type:e.Input}],required:[{type:e.Input}],input:[{type:e.ViewChild,args:["inputDate",{static:!1}]}]};var wt=function(){function t(t){this.dialog=t}return t.prototype.alert=function(t){var e=new F;return e.message=t,e.labelCancel=null,e.processingMode=!1,this.dialog.open(_t,{data:e,disableClose:!0,width:e.width+"px"}).afterClosed()},t.prototype.YesOrNo=function(t){var e=new F;return e.message=t,e.yesOrNo=!0,e.colorOk="warn",e.processingMode=!1,this.dialog.open(_t,{data:e,disableClose:!0,width:e.width+"px"}).afterClosed()},t.prototype.Confirm=function(t){var e=new F;return e.message=t,e.processingMode=!1,this.dialog.open(_t,{data:e,disableClose:!0,width:e.width+"px"}).afterClosed()},t.prototype.Custom=function(t){return t.processingMode=!1,this.dialog.open(_t,{data:t,disableClose:!0,width:t.width+"px"}).afterClosed()},t.prototype.Processing=function(){var t=new F;return t.message="",t.yesOrNo=!1,t.labelCancel=null,t.colorOk="warn",t.processingMode=!0,this.dialog.open(_t,{data:t,disableClose:!0,width:"500px"}).afterClosed()},t}();wt.decorators=[{type:e.Injectable}],wt.ctorParameters=function(){return[{type:r.MatDialog}]};var _t=function(){function t(t,e){this.ref=t,this.model=e}return t.prototype.ngOnInit=function(){this.model.yesOrNo&&(this.model.labelOk="Sim",this.model.labelCancel="Nao")},t.prototype.onclickCancel=function(){this.ref.close(new j(this.model.yesOrNo?et.No:et.Cancel))},t.prototype.onclickOk=function(){this.ref.close(new j(this.model.yesOrNo?et.Yes:et.Ok))},t.prototype.onclickAux=function(){this.ref.close(new j(et.Aux))},t}();_t.decorators=[{type:e.Component,args:[{selector:"info-dialog",template:'<h1 mat-dialog-title *ngIf="model.title" [innerHTML]="model.title | translate" ></h1>\r\n\r\n<div mat-dialog-content class="mb-3">\r\n <p *ngIf="!model.processingMode" [innerHTML]="model.message | translate"></p>\r\n <info-message *ngIf="model.processingMode" color="danger">{{ \'A plataforma está efetuando o processamento em segundo plano.<br /> Isto pode levar alguns minutos e assim que concluído, uma notificação será enviada.\' | translate}}</info-message>\r\n</div>\r\n\r\n<div mat-dialog-actions class="buttons">\r\n <button mat-button (click)="onclickAux()" [color]="model.colorAux" *ngIf="model.labelAux" >{{ model.labelAux | translate }}</button>\r\n <button mat-button (click)="onclickOk()" [color]="model.colorOk" cdkFocusInitial>{{ model.labelOk | translate }}</button>\r\n <button mat-button (click)="onclickCancel()" [color]="model.colorCancel" *ngIf="model.labelCancel" >{{ model.labelCancel | translate }}</button>\r\n</div> '}]}],_t.ctorParameters=function(){return[{type:r.MatDialogRef},{type:F,decorators:[{type:e.Inject,args:[r.MAT_DIALOG_DATA]}]}]};var kt=function(){function t(t,n,i,o,a,s,r,l,c,u,d,p,h){this._dialog=t,this._platform=n,this.modal=i,this._prop=o,this._dataAccessService=a,this._router=s,this._activatedRoute=r,this._authenticationService=l,this._changeDetectorRef=c,this._translate=u,this._lastSearch=d,this._renderer=p,this._element=h,this.pagetitle="",this.prefixtitle="",this.description="",this.pagebarbuttons=[],this.fullarea=!1,this.api=null,this.method=null,this.form=null,this.width=800,this.parent=null,this.apidownload=null,this.methoddownload=null,this.backurl="",this.newurl="",this.newlabel="Novo",this.editurl="",this.viewurl="",this.templateurl="",this.paged=!1,this.size=15,this.autorefresh=0,this.enablednew=!0,this.enablededit=!0,this.enableddelete=!0,this.enabledview=!0,this.enabledcancelsearch=!0,this.enableddetail=!1,this.enabledclassicons=!0,this.enabledclickaccess=!1,this.enabledclickevent=!1,this.searchopened=!1,this.searchonlyonebutton=!1,this.disablesearchlast=!1,this.statictitle=!1,this.disabledcol="",this.accessicon="arrow_forward",this.loadoninit=!0,this.searchmodel=null,this.onbeforesearch=new e.EventEmitter,this.onloadcomplete=new e.EventEmitter,this.onclosemodal=new e.EventEmitter,this.onnew=new e.EventEmitter,this.onedit=new e.EventEmitter,this.onview=new e.EventEmitter,this.ondelete=new e.EventEmitter,this.customdelete=new e.EventEmitter,this.dynamiccols=null,this.buttons=[],this.searchbuttons=[],this.showmessageerror=!1,this.defaultnewobject=null,this.messages=[],this.resultTitle="",this.enabledSearch=!1,this.searchModelReset=null,this.showPagebar=!1,this.hasPermissionNew=!1,this.hasPermissionEdit=!1,this.hasPermissionDelete=!1,this.tableHeight=0,this.loading=!1,this.pagebarTitle="",this.icons=[],this.colunasItens=[],this.colunasHeaders=[],this.colunasType=[],this.colunasWidth=[],this.currentUrl=null,this.url=null,this.parentIdUrlChange=new e.EventEmitter,this.parentIdUrlValue=null,this._cols=""}return Object.defineProperty(t.prototype,"parentIdUrl",{get:function(){return this.parentIdUrlValue},set:function(t){this.parentIdUrlValue=t,this.parentIdUrlChange.emit(this.parentIdUrlValue)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._cols},set:function(t){this._cols=t,this.setColumns()},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.url=(this._activatedRoute.snapshot.data.URL||this._router.url).toLowerCase(),this._renderer.addClass(this._element.nativeElement,"uxc"+this._platform.Config.ux),this.setPagebarTitle(),null!=this.searchmodel?(null==this.method&&(this.method="Search"),this.searchModelReset=Object.assign({},this.searchmodel)):null==this.parent||null!=this.method&&""!=this.method||(this.method="GetByParentId"),this.disablesearchlast||this._authenticationService.getUrlGenerica(this._lastSearch.url)!=this._authenticationService.getUrlGenerica(this.url)||(this.enabledSearch=this._lastSearch.enabledSearch,null!=this.searchmodel&&null!=this._lastSearch.model&&Object.assign(this.searchmodel,this._lastSearch.model)),this.searchopened&&(this.enabledSearch=!0),this.autorefresh>0&&(this.currentUrl=location.href),this._prop.api=this.api,this._prop.modalComponent=this.form},t.prototype.ngAfterViewInit=function(){var t=this;this.showPagebar=""!=this.pagetitle||""!=this.prefixtitle,!this.fullarea&&this._platform.Config.ux<=2&&(this.fullarea=this.showPagebar),this.searchmodel&&this.formModel.length>0&&this.formSearch&&this.formModel.toArray().forEach((function(e){return t.formSearch.addControl(e)})),!this.disablesearchlast&&this.paged&&this._authenticationService.getUrlGenerica(this._lastSearch.url)==this._authenticationService.getUrlGenerica(this.url)&&(this.paginator.index=this._lastSearch.index),null==this.dynamiccols?(this.setColumns(),this.getPermission(),this.loadoninit?this.getData():this.hideLoad()):this._dataAccessService.get(this.api,this.dynamiccols).subscribe((function(e){t.cols=e.data,t.setColumns(),t.getPermission(),t.loadoninit?t.getData():t.hideLoad()})),this.enabledclickevent&&(this.enabledclickaccess=!0)},t.prototype.setColumns=function(){var t=this;""==this.cols&&alert("Nenhuma coluna informada"),""!=this.cols&&(this.colunasItens=[],this.colunasHeaders=[],this.colunasType=[],this.colunasWidth=[],this.cols.split(",").forEach((function(e){var n=e,i=e,o="",a="";if(i.indexOf(":")>-1){var s=e.split(":");n=s[0],i=s[1]}if(i.indexOf("=")>-1){var r=i.split("=");n==i&&(n=r[0]),i=r[0],o=r[1]}var l=""==o?i:o;if(l.indexOf("*")>-1){var c=l.split("*");""==o?(n==i&&(n=c[0]),i=c[0]):o=c[0],(a=c[1]).indexOf("%")<0&&a.indexOf("px")<0&&(a+="px")}t.colunasItens.push(n),t.colunasHeaders.push(i),t.colunasType.push(""==o?"label":o),t.colunasWidth.push(a)})))},t.prototype.setPagebarTitle=function(){var t="";""!=this.prefixtitle&&(t=this._translate.translate(this.prefixtitle)),""!=this.resultTitle&&(t+=(""!=this.prefixtitle?" / ":"")+this._translate.translate(this.resultTitle)),""!=this.pagetitle&&(t+=(""!=this.resultTitle||""!=this.prefixtitle?" / ":"")+this._translate.translate(this.pagetitle)),this.pagebarTitle=t},t.prototype.navigateTo=function(t,e,n){e?t.indexOf(":id")>-1?this._router.navigateByUrl(t.replace(":id",n)):this._router.navigate([t,n]):this._router.navigateByUrl(t)},t.prototype.openCustomModal=function(t,e,n){void 0===n&&(n=null),this._prop.set(H.None,n),this.openModal(t,e)},t.prototype.getData=function(){this.messages=[],null!=this.api&&""!=this.api?null!=this.searchmodel?this.getSearch():this.paged?this.getPaged():null==this.parent?this.getAll():this.getByParentId():this.hideLoad()},t.prototype.getAll=function(){var t=this;null==this.searchmodel?this._dataAccessService.get(this.api,this.method).subscribe((function(e){return t.getDataReturn(e)})):this._dataAccessService.post(this.api,this.searchmodel,this.method).subscribe((function(e){return t.getDataReturn(e)}))},t.prototype.getPaged=function(){var t=this,e=null==this.parent?"":"id="+this.parent+"&";e+="index="+this.paginator.index+"&size="+this.size,this._dataAccessService.get(this.api,this.method,e).subscribe((function(e){return t.getDataReturn(e,!0)}))},t.prototype.getSearch=function(){var t=this;this.onbeforesearch.emit(),this.paged&&(this.searchmodel.Index=this.paginator.index,this.searchmodel.Size=this.size),this._dataAccessService.post(this.api,this.searchmodel,this.method).subscribe((function(e){return t.getDataReturn(e,t.paged)}))},t.prototype.getByParentId=function(){var t=this;this._dataAccessService.get(this.api,this.method,"id="+this.parent).subscribe((function(e){return t.getDataReturn(e,!1)}))},t.prototype.getDataReturn=function(t,e){var n=this;void 0===e&&(e=!1),this.disablesearchlast||(this._lastSearch.url=this._authenticationService.getUrlGenerica(this.url),this._lastSearch.enabledSearch=this.enabledSearch,this._lastSearch.model=Object.assign({},this.searchmodel),this.paged&&(this._lastSearch.index=this.paginator.index)),t.success?(this.data=t.data,this.statictitle||null==t.name||(this.resultTitle=this._translate.translate(t.name)),null!=t.description&&(this.description=t.description),null!=t.parentId&&(this.parentIdUrl=t.parentId),e&&this.paginator.refresh(t.total),this.autorefresh>0&&this.currentUrl==location.href&&setTimeout((function(){n.getData()}),1e3*this.autorefresh),this.fillIcons()):(this.data=[],this.showmessageerror&&(this.messages=t.messages)),this.hideLoad(),this.onloadcomplete.emit()},t.prototype.changePage=function(t){this.loading=!0,this.paginator.index=t,null!=this.searchmodel?this.getSearch():this.getPaged()},t.prototype.cancelSearch=function(){Object.assign(this.searchmodel,this.searchModelReset),this.searchopened||(this.enabledSearch=!1),this.search()},t.prototype.search=function(){this.loading=!0,this.paged&&(this.paginator.index=0),this.getData()},t.prototype.add=function(){null!=this.form?(this._prop.set(H.New,this.defaultnewobject),this.openModal()):(null!=this.newurl&&""!=this.newurl||(this.newurl=this.url),this.newurl+="/novo",this.newurl=this.newurl.replace("//","/"),this._router.navigateByUrl(this.newurl)),this.onnew.emit()},t.prototype.detail=function(t){this._prop.set(H.Search,t),this.openModal()},t.prototype.access=function(t){this.enabledclickaccess&&(this.enabledclickevent?this.onview.emit(t):this.edit(t))},t.prototype.view=function(t){null!=this.form?(this._prop.set(H.View,t),this.openModal()):(null!=this.viewurl&&""!=this.viewurl||(this.viewurl=this.url),this.viewurl+="/"+t.Id+(this.enabledclickaccess?"":"/visualizar"),this.viewurl=this.viewurl.replace("//","/"),this._router.navigateByUrl(this.viewurl)),this.onview.emit(t)},t.prototype.edit=function(t){this.hasPermissionEdit?(null!=this.form?(this._prop.set(H.Edit,t),this.openModal()):(null!=this.editurl&&""!=this.editurl||(this.editurl=this.url),this.editurl=this.editurl.replace("//","/"),this._router.navigate([this.editurl,t.Id])),this.onedit.emit(t)):(null!=this.form?(this._prop.set(H.View,t),this.openModal()):(null!=this.viewurl&&""!=this.viewurl||(this.viewurl=this.url),this.viewurl+="/"+t.Id+(this.enabledclickaccess?"":"/visualizar"),this.viewurl=this.viewurl.replace("//","/"),this._router.navigateByUrl(this.viewurl)),this.onview.emit(t))},t.prototype.delete=function(t){var e=this;this.customdelete.observers.length>0?this.customdelete.emit(t):this._dialog.YesOrNo("MensagemExcluir").subscribe((function(n){n.button==et.Yes&&(e.loading=!0,e._dataAccessService.delete(e.api,t.Id).subscribe((function(t){e.ondelete.emit(t),t.success?e.getData():(e.hideLoad(),e.showmessageerror&&(e.messages=t.messages))})))}))},t.prototype.fillIcons=function(){var t=this;this.icons=[],null!=this.data&&this.data.forEach((function(e){var n=e.Icon;if(null!=n)if(n.indexOf("|")>-1){var i=n.split("|").map((function(t){if(t.indexOf(":")>-1){var e=t.split(":");return{Name:n,Icon:e[0],Tooltip:e[1],Principal:!0}}return{Name:n,Icon:t,Tooltip:"",Principal:!0}})).filter((function(t){return null!=t.Icon&&""!=t.Icon})),o=0;i.forEach((function(e){null==t.icons.find((function(t){return t.Name==e.Name&&t.Icon==e.Icon}))&&(e.Principal=0==o,t.icons.push(e)),o++}))}else{var a=[];if(n.indexOf(":")>-1){var s=n.split(":");a={Name:n,Icon:s[0],Tooltip:s[1],Principal:!0}}else a={Name:n,Icon:n,Tooltip:"",Principal:!0};null==t.icons.find((function(t){return t.Name==a.Name}))&&t.icons.push(a)}}))},t.prototype.info=function(t){this._dialog.alert(t)},t.prototype.back=function(){this.navigateTo(this.backurl+(null==this.parentIdUrl?"":"/"+this.parentIdUrl),!1)},t.prototype.openModal=function(t,e){var n=this;void 0===t&&(t=this.form),void 0===e&&(e=this.width);var i=this.modal.open(t,{data:this._prop,disableClose:!0,width:e+"px"});i.afterClosed().subscribe((function(t){null!=t&&(t.modalAction==q.Save&&n.getData(),n.onclosemodal.emit(t))})),i.keydownEvents().subscribe((function(t){n.loading||"Escape"!=t.key&&"Esc"!=t.key&&"27"!=t.key||i.close()}))},t.prototype.hideLoad=function(){this.setPagebarTitle(),this.loading=!1},t.prototype.getPermission=function(){this.hasPermissionNew=this._authenticationService.hasPermission(this.url,"new"),this.hasPermissionEdit=this._authenticationService.hasPermission(this.url,"edit"),this.hasPermissionDelete=this._authenticationService.hasPermission(this.url,"remove"),this._changeDetectorRef.detectChanges()},t.prototype.download=function(t){var e=this;null==this.apidownload&&alert("API Download está null"),this.loading=!0,this._dataAccessService.get(this.apidownload,null!=this.methoddownload?this.methoddownload:"Get","id="+t).subscribe((function(t){if(e.messages=t.messages,t.success&&null!=t.data){for(var n=window.atob(t.data.Conteudo),i=n.length,o=new Uint8Array(i),a=0;a<i;a++){var s=n.charCodeAt(a);o[a]=s}var r=new Blob([o]);if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(r,t.data.Nome);else{var l=URL.createObjectURL(r),c=document.createElement("a");c.href=l,c.download=t.data.Nome,document.body.appendChild(c),c.click(),document.body.removeChild(c)}}e.loading=!1}))},t.prototype.eventButton=function(t,e,n,i){var o=this;void 0===i&&(i=!0),i?this._dialog.YesOrNo("MensagemConfirmar").subscribe((function(i){i.button==et.Yes&&(o.loading=!0,o._dataAccessService.post(e,t,n).subscribe((function(t){t.success?o.getData():o.showmessageerror&&(o.messages=t.messages),o.loading=!1})))})):(this.loading=!0,this._dataAccessService.post(e,t,n).subscribe((function(t){t.success?o.getData():o.showmessageerror&&(o.messages=t.messages),o.loading=!1})))},t}();kt.decorators=[{type:e.Component,args:[{selector:"info-grid",template:'<info-pagebar *ngIf="showPagebar" icon="work" [pagetitle]="pagebarTitle" [description]="description">\r\n <button mat-button type="button" *ngIf="backurl != null && backurl != \'\'" color="primary" (click)="back()">\r\n <mat-icon class="fs-20">chevron_left</mat-icon>{{"Voltar" | translate}}\r\n </button>\r\n\r\n <ng-container *ngFor="let b of pagebarbuttons">\r\n <button type="button" mat-button color="primary" (click)="b.modal == null ? navigateTo(b.url, false, null) : openCustomModal(b.modal, b.modalwidth, null)">\r\n <mat-icon *ngIf="b.icon != \'chevron_right\'" class="fs-20">{{ b.icon }}</mat-icon>\r\n {{ b.label | translate }}\r\n </button>\r\n </ng-container>\r\n\r\n <button mat-button type="button" *ngIf="searchmodel != null && !enabledSearch" color="primary" (click)="enabledSearch = !enabledSearch">\r\n <mat-icon class="fs-20">search</mat-icon> {{ "Pesquisar" | translate}}\r\n </button>\r\n <button mat-button type="button" *ngIf="enablednew && hasPermissionNew" color="primary" (click)="add()">\r\n <mat-icon class="fs-20">add</mat-icon> {{ newlabel | translate}}\r\n </button>\r\n</info-pagebar>\r\n\r\n<div [ngClass]="{ \'table-full\': fullarea }">\r\n <div class="table-responsive white">\r\n <div class="table-title" [ngStyle]="{ \'padding\': (enabledSearch ? 10 : 0) + \'px 20px\' }">\r\n <form autocomplete="off" #formSearch="ngForm" (ngSubmit)="search()">\r\n <div *ngIf="enabledSearch" class="search-container row">\r\n <div class="col-md-{{(searchbuttons || []).length == 0 ? \'10\' : \'9\' }}">\r\n <div class="row">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n <div class="col-md-{{(searchbuttons || []).length == 0 ? \'2\' : \'3\' }} align-right" *ngIf="searchmodel != null">\r\n <div class="search-buttons ">\r\n <ng-container *ngIf="searchonlyonebutton">\r\n <button mat-button type="submit" color="primary" [disabled]="formSearch.invalid || loading">\r\n {{ \'Buscar\' | translate }}\r\n </button>\r\n </ng-container>\r\n\r\n <ng-container *ngIf="!searchonlyonebutton">\r\n <button mat-button type="button" color="warn" (click)="cancelSearch()" *ngIf="enabledcancelsearch">\r\n <mat-icon class="fs-20">close</mat-icon>\r\n </button>\r\n <button mat-button type="submit" color="primary" [disabled]="formSearch.invalid || loading">\r\n <mat-icon class="fs-20">search</mat-icon>\r\n </button>\r\n \r\n <ng-container *ngFor="let b of searchbuttons">\r\n <button mat-button type="button" color="primary" [disabled]="formSearch.invalid || loading" (click)="b.method()">\r\n <mat-icon *ngIf="b.icon" class="fs-20">{{b.icon | translate}}</mat-icon> {{b.label | translate}}\r\n </button>\r\n </ng-container>\r\n \r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n\r\n <fieldset *ngIf="!showPagebar"><legend [innerHTML]="pagebarTitle | translate"></legend></fieldset>\r\n <section class="loading-bar"><mat-progress-bar color="primary" mode="indeterminate" *ngIf="loading"></mat-progress-bar></section>\r\n\r\n <div id="auto-refresh" *ngIf="autorefresh > 0">\r\n <i class="material-icons" matTooltip="{{ \'AutoRefresh\' | translate }} {{ autorefresh }} seg" matTooltipPosition="left">access_time</i>\r\n </div>\r\n\r\n <table class="table table-hover" [ngStyle]="{ \'min-height.px\': tableHeight }" [ngClass]="{ \'loading\': loading, \'clickaccess\': enabledclickaccess }" *ngIf="data != null">\r\n <thead>\r\n <tr>\r\n <th style="width: 5%;" *ngIf="enabledclassicons && data?.length > 0 && data[0]?.Icon != null"></th>\r\n\r\n <ng-container *ngFor="let col of colunasHeaders; let i = index">\r\n <th *ngIf="colunasWidth[i] == \'\'" [class]="\'col_\' + col.toLowerCase()" [ngClass]="{ \'text-center\': colunasType[i] == \'check\', \'align-right\': colunasType[i].startsWith(\'n\') }">{{ col | translate }}</th>\r\n <th *ngIf="colunasWidth[i] != \'\'" [ngStyle]="{ \'width\': colunasWidth[i] }" [ngClass]="{ \'text-center\': colunasType[i] == \'check\', \'align-right\': colunasType[i].startsWith(\'n\') }">{{ col | translate }}</th>\r\n </ng-container>\r\n\r\n <th class="actions align-right buttons" *ngIf="(templateurl != \'\') || (buttons != null && buttons.length > 0) || enableddetail || enabledview || ((disabledcol == \'\') && enablededit && hasPermissionEdit) || ((disabledcol == \'\') && enableddelete && hasPermissionDelete)">\r\n <button mat-icon-button type="button"[matTooltip]="newlabel | translate" matTooltipPosition="left" (click)="add()" *ngIf="!showPagebar && enablednew && hasPermissionNew">\r\n <mat-icon>add_circle_outline</mat-icon>\r\n </button>\r\n </th>\r\n </tr>\r\n </thead>\r\n <tbody class="grid-content">\r\n <tr *ngFor="let mod of data" [ngClass]="{ \'default-color\': !enabledclassicons }" [class]="mod.Class" (click)="access(mod)">\r\n <td *ngIf="enabledclassicons && mod?.Icon != null">\r\n <ng-container *ngFor="let icon of icons">\r\n <i class="material-icons" [matTooltip]="icon.Tooltip | translate" *ngIf="icon.Name == mod.Icon" [ngClass]="{ \'icone-secundario\': icon.Principal == false }">{{icon.Icon}}</i>\r\n </ng-container>\r\n </td>\r\n\r\n <ng-container *ngFor="let col of colunasItens; let i = index">\r\n <td *ngIf="mod[col] == null || mod[col] == undefined"></td>\r\n <ng-container [ngSwitch]="colunasType[i]" *ngIf="mod[col] != null && mod[col] != undefined">\r\n <ng-container *ngSwitchCase="\'label\'">\r\n <td *ngIf="mod[col] !== true && mod[col] !== false && mod[col] !== 0 && mod[col] !== \'0\'" [innerHTML]="(mod[col] | translate) || \'\'"></td>\r\n <td *ngIf="mod[col] === true"><mat-icon>check_box</mat-icon></td>\r\n <td *ngIf="mod[col] === false"><mat-icon>check_box_outline_blank</mat-icon></td>\r\n <td *ngIf="mod[col] === 0 || mod[col] === \'0\'">0</td>\r\n </ng-container>\r\n\r\n <td nowrap *ngSwitchCase="\'date\'" [innerHTML]="mod[col] | date:\'shortDate\'"></td>\r\n <td nowrap *ngSwitchCase="\'datetime\'">{{ mod[col] | date:\'shortDate\' }} {{ mod[col] | date:\'mediumTime\' }}</td>\r\n <td nowrap *ngSwitchCase="\'monthyear\'" [innerHTML]="mod[col] | date:\'MM/yyyy\'"></td>\r\n <td nowrap *ngSwitchCase="\'n0\'" [class]="\'align-right \' + (mod[col] < 0 ? \'text-red\' : \'\')">{{ mod[col] | number:\'1.0-0\' }}</td>\r\n <td nowrap *ngSwitchCase="\'n2\'" [class]="\'align-right \' + (mod[col] < 0 ? \'text-red\' : \'\')">{{ mod[col] | number:\'1.2-2\' }}</td>\r\n <td nowrap *ngSwitchCase="\'n4\'" [class]="\'align-right \' + (mod[col] < 0 ? \'text-red\' : \'\')">{{ mod[col] | number:\'1.4-4\' }}</td>\r\n <td nowrap *ngSwitchCase="\'n6\'" [class]="\'align-right \' + (mod[col] < 0 ? \'text-red\' : \'\')">{{ mod[col] | number:\'1.6-6\' }}</td>\r\n <td nowrap *ngSwitchCase="\'n9\'" [class]="\'align-right \' + (mod[col] < 0 ? \'text-red\' : \'\')">{{ mod[col] | number:\'1.9-9\' }}</td>\r\n <td nowrap *ngSwitchCase="\'n12\'" [class]="\'align-right \' + (mod[col] < 0 ? \'text-red\' : \'\')">{{ mod[col] | number:\'1.12-12\' }}</td>\r\n \r\n <td *ngSwitchCase="\'check\'" class="text-center">\r\n <ng-container *ngIf="mod[col] != null && (mod[col] === true || mod[col] == 1 || mod[col].toLowerCase() == \'s\'); then checked; else unchecked"></ng-container>\r\n <ng-template #checked><mat-icon>check_box</mat-icon></ng-template>\r\n <ng-template #unchecked><mat-icon>check_box_outline_blank</mat-icon></ng-template>\r\n </td>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf="enabledclickaccess">\r\n <td class="td-actions clickaccess">\r\n <button mat-icon-button type="button" (click)="access(mod)" *ngIf="enabledview">\r\n <mat-icon>{{accessicon || \'arrow_forward\'}}</mat-icon>\r\n </button>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container *ngIf="!enabledclickaccess">\r\n <td class="td-actions" *ngIf="(templateurl != \'\') || (buttons != null && buttons.length > 0) || (mod.Download != null) || enableddetail || (mod?.Info != null) || enabledview || ((disabledcol == \'\' || mod[disabledcol] === true) && enablededit && hasPermissionEdit) || ((disabledcol == \'\' || mod[disabledcol] === true) && enableddelete && hasPermissionDelete)">\r\n\r\n <a mat-icon-button href="{{ templateurl.replace(\'{id}\', mod.Id) }}" target="_blank" [matTooltip]="\'Abrir\' | translate" *ngIf="templateurl != \'\'">\r\n <mat-icon>visibility</mat-icon>\r\n </a>\r\n\r\n <ng-container *ngFor="let b of buttons">\r\n <button mat-icon-button type="button" [matTooltip]="b.label | translate" (click)="b.modalComponent != null ? openCustomModal(b.modalComponent, b.widthModalComponent, mod) : b.api != null ? eventButton(mod, b.api, b.method, b.confirm) : navigateTo(b.navigateTo, b.passId, mod.Id)" *ngIf="b.showOnlyClass == null || b.showOnlyClass == mod.Class" [disabled]="b.disabledField && mod[b.disabledField] === true">\r\n <mat-icon>{{b.icon}}</mat-icon>\r\n </button>\r\n </ng-container>\r\n\r\n <button mat-icon-button type="button" [matTooltip]="\'Download\' | translate" (click)="download(mod.Download)" *ngIf="mod.Download != null">\r\n <mat-icon>file_download</mat-icon>\r\n </button>\r\n \r\n <button mat-icon-button type="button" [matTooltip]="\'Detalhe\' | translate" (click)="detail(mod)" *ngIf="enableddetail">\r\n <mat-icon>list</mat-icon>\r\n </button>\r\n \r\n <button mat-icon-button type="button" [matTooltip]="\'Informacao\' | translate" (click)="info(mod?.Info)" *ngIf="mod?.Info != null" [disabled]="mod?.Info == \'\'">\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n \r\n \x3c!-- <button mat-icon-button type="button" [matTooltip]="\'Visualizar\' | translate" (click)="view(mod)" *ngIf="enabledview">\r\n <mat-icon>visibility</mat-icon>\r\n </button>\r\n \r\n <button mat-icon-button type="button" [matTooltip]="\'Editar\' | translate" (click)="edit(mod)" *ngIf="(disabledcol == \'\' || mod[disabledcol] === true) && enablededit && hasPermissionEdit">\r\n <mat-icon>edit</mat-icon>\r\n </button> --\x3e\r\n \r\n <button mat-icon-button type="button" [matTooltip]="\'Excluir\' | translate" (click)="delete(mod)" *ngIf="(disabledcol == \'\' || mod[disabledcol] === true) && enableddelete && hasPermissionDelete">\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n\r\n <button mat-icon-button type="button" [matTooltip]="\'Acessar\' | translate" (click)="edit(mod)" *ngIf="((disabledcol == \'\' || mod[disabledcol] === true) && enablededit && hasPermissionEdit) || enabledview">\r\n <mat-icon>arrow_forward</mat-icon>\r\n </button>\r\n </td>\r\n </ng-container>\r\n </tr>\r\n </tbody>\r\n </table>\r\n <span class="blank-table" *ngIf="data != null && data.length == 0">{{"NenhumItemEncontrado" | translate}}</span>\r\n\r\n <info-paginator #paginator [hidden]="!paged || (data != null && data.length == 0)" [size]="size" (change)="changePage($event)" ></info-paginator>\r\n </div>\r\n</div>\r\n\r\n<div class="block" *ngIf="loading"></div>\r\n<info-alert [messages]="messages"></info-alert>',providers:[B],styles:[":host{display:block;min-height:200px;position:relative}:host #auto-refresh{background:transparent;margin:0;padding:0;position:absolute;right:0;top:8px}:host #auto-refresh i{cursor:default;font-size:18px}:host .table-title{background:#fcfcfc}:host .table-title .mat-icon-button{height:25px;line-height:25px;text-align:center;width:25px}:host .table-title .mat-icon-button .mat-icon{font-size:18px}:host .table-title :hover{transition:color .2s}:host .search-container{margin-top:10px;position:relative}:host .title-grid{font-size:.8rem;font-weight:700;padding-top:8px;text-transform:uppercase}:host table thead .col_dia,:host table thead .col_id{width:80px}:host table thead .col_moeda{width:90px}:host table thead .col_data,:host table thead .col_datacotacao,:host table thead .col_dataposicao,:host table thead .col_referencia{width:125px}:host table thead .col_conta,:host table thead .col_identificador{width:250px}:host table thead .col_cliente,:host table thead .col_descricao,:host table thead .col_nome{width:400px}:host table tbody .icone-secundario{font-size:12px}:host.uxc3 div.table-responsive .table-title{padding:0!important}:host.uxc3 div.table-responsive .table thead{background:transparent}:host.uxc3 div.table-responsive .table thead th{border-top:none;font-size:10px;padding:10px 5px 5px;text-transform:capitalize}:host.uxc3 div.table-responsive .table thead th.actions{border-bottom-width:0}:host.uxc3 div.table-responsive .table thead th:after{display:none}:host.uxc3 div.table-responsive .table tbody tr{background:#f9f9f9;height:40px}:host.uxc3 div.table-responsive .table tbody tr td{cursor:default;font-size:13px;font-weight:600;transition:color .2s ease-in-out}:host.uxc3 div.table-responsive .table tbody tr td.td-actions{border-bottom:none;margin-top:1px;padding-bottom:6px;padding-top:7px}:host.uxc3 div.table-responsive .table tbody tr td mat-icon{height:17px;line-height:17px}:host.uxc3 div.table-responsive .table tbody tr:hover{background:#f9f9f9}:host.uxc3 div.table-responsive .table tbody tr:nth-child(2n):hover,:host.uxc3 div.table-responsive .table tbody tr:nth-child(2n):hover .td-actions{background:#fff}"]}]}],kt.ctorParameters=function(){return[{type:wt},{type:J},{type:r.MatDialog},{type:B},{type:rt},{type:i.Router},{type:i.ActivatedRoute},{type:lt},{type:e.ChangeDetectorRef},{type:nt},{type:$},{type:e.Renderer2},{type:e.ElementRef}]},kt.propDecorators={pagetitle:[{type:e.Input}],prefixtitle:[{type:e.Input}],description:[{type:e.Input}],pagebarbuttons:[{type:e.Input}],fullarea:[{type:e.Input}],api:[{type:e.Input}],method:[{type:e.Input}],form:[{type:e.Input}],width:[{type:e.Input}],parent:[{type:e.Input}],apidownload:[{type:e.Input}],methoddownload:[{type:e.Input}],backurl:[{type:e.Input}],newurl:[{type:e.Input}],newlabel:[{type:e.Input}],editurl:[{type:e.Input}],viewurl:[{type:e.Input}],templateurl:[{type:e.Input}],paged:[{type:e.Input}],size:[{type:e.Input}],autorefresh:[{type:e.Input}],enablednew:[{type:e.Input}],enablededit:[{type:e.Input}],enableddelete:[{type:e.Input}],enabledview:[{type:e.Input}],enabledcancelsearch:[{type:e.Input}],enableddetail:[{type:e.Input}],enabledclassicons:[{type:e.Input}],enabledclickaccess:[{type:e.Input}],enabledclickevent:[{type:e.Input}],searchopened:[{type:e.Input}],searchonlyonebutton:[{type:e.Input}],disablesearchlast:[{type:e.Input}],statictitle:[{type:e.Input}],disabledcol:[{type:e.Input}],accessicon:[{type:e.Input}],loadoninit:[{type:e.Input}],data:[{type:e.Input}],searchmodel:[{type:e.Input}],onbeforesearch:[{type:e.Output}],onloadcomplete:[{type:e.Output}],onclosemodal:[{type:e.Output}],onnew:[{type:e.Output}],onedit:[{type:e.Output}],onview:[{type:e.Output}],ondelete:[{type:e.Output}],customdelete:[{type:e.Output}],dynamiccols:[{type:e.Input}],buttons:[{type:e.Input}],searchbuttons:[{type:e.Input}],showmessageerror:[{type:e.Input}],defaultnewobject:[{type:e.Input}],formModel:[{type:e.ContentChildren,args:[c.NgModel]}],formSearch:[{type:e.ViewChild,args:[c.NgForm,{static:!1}]}],paginator:[{type:e.ViewChild,args:["paginator",{static:!1}]}],parentIdUrlChange:[{type:e.Output}],parentIdUrl:[{type:e.Input}],cols:[{type:e.Input}]};var Ct=function(){function t(){this.disabled=!1,this.readonly=!1,this.required=!1,this.type="text",this.rows=1,this.tabindex=0,this.iconPrefix="",this.iconSuffix="",this.min=null,this.max=null,this.step=null,this.onblur=new e.EventEmitter,this.maskOptions={align:"right",allowNegative:!0,decimal:",",precision:2,prefix:"",suffix:"",thousands:"."},this.value="",this.customMask=null,this.passwordMode=!1,this.methodIsmask=null}return t.prototype.ngOnInit=function(){this.passwordMode="password"==this.type.toLocaleLowerCase()},Object.defineProperty(t.prototype,"ismask",{get:function(){return this.methodIsmask},set:function(t){this.methodIsmask=t,null!=this.methodIsmask&&(this.methodIsmask=this.methodIsmask.toLowerCase(),"int"==this.methodIsmask?this.maskOptions.precision=0:"n"!=this.methodIsmask[0]||2!=this.methodIsmask.length&&3!=this.methodIsmask.length?this.customMask=this.methodIsmask:this.maskOptions.precision=parseInt(this.methodIsmask.replace("n","")))},enumerable:!1,configurable:!0}),t.prototype.onBlur=function(){null!=this.onblur&&("number"==this.type&&(null!=this.min&&(this.value=this.min>Number(this.value)?null:this.value),null!=this.max&&(this.value=this.max<Number(this.value)?null:this.value),this.onChangeValue()),this.onblur.emit(this.value))},t.prototype.onChangeValue=function(){null!=this.onChange&&this.onChange(this.value)},t.prototype.writeValue=function(t){this.value=t,this.onChangeValue()},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t}();Ct.decorators=[{type:e.Component,args:[{selector:"info-input",template:'<mat-form-field *ngIf="type != \'color\' && type != \'textarea\' && ismask == null" >\r\n <mat-icon *ngIf="iconPrefix" matPrefix style="color: #aaa">{{iconPrefix}}</mat-icon>\r\n \r\n <input matInput [type]="type" [step]="step" [min]="min" [max]="max" [tabindex]="tabindex" [placeholder]="placeholder | translate" [(ngModel)]="value" (input)="onChangeValue()" (blur)="onBlur()"\r\n [maxlength]="maxlength" [readonly]="readonly" [disabled]="disabled" [required]="required">\r\n\r\n <mat-icon *ngIf="iconSuffix" matSuffix style="color: #aaa">{{iconSuffix}}</mat-icon>\r\n <mat-icon class="show-password" *ngIf="passwordMode" (click)="type = (type == \'password\') ? \'text\' : \'password\'" matSuffix >visibility{{ type == \'password\' ? \'\' : \'_off\' }}</mat-icon>\r\n</mat-form-field>\r\n\r\n<mat-form-field *ngIf="type != \'color\' && type != \'textarea\' && ismask != null">\r\n <mat-icon *ngIf="iconPrefix" matPrefix style="color: #aaa">{{iconPrefix}}</mat-icon>\r\n\r\n <input matInput [tabindex]="tabindex" [placeholder]="placeholder | translate" [(ngModel)]="value" (ngModelChange)="onChangeValue()" (blur)="onBlur()" *ngIf="customMask == null"\r\n [readonly]="readonly" [disabled]="disabled" [required]="required" [options]="maskOptions" currencyMask>\r\n\r\n <input matInput [tabindex]="tabindex" [placeholder]="placeholder | translate" [(ngModel)]="value" (ngModelChange)="onChangeValue()" (blur)="onBlur()" *ngIf="customMask != null"\r\n [readonly]="readonly" [disabled]="disabled" [required]="required" [setmask]="customMask" unmask >\r\n\r\n <mat-icon *ngIf="iconSuffix" matSuffix style="color: #aaa">{{iconSuffix}}</mat-icon>\r\n</mat-form-field>\r\n\r\n<mat-form-field *ngIf="type == \'textarea\'">\r\n <mat-icon *ngIf="iconPrefix" matPrefix style="color: #aaa">{{iconPrefix}}</mat-icon>\r\n \r\n <textarea matInput [tabindex]="tabindex" [placeholder]="placeholder | translate" [(ngModel)]="value" (input)="onChangeValue()" (blur)="onBlur()" [rows]="rows"\r\n [maxlength]="maxlength" [readonly]="readonly" [disabled]="disabled" [required]="required"></textarea>\r\n</mat-form-field>\r\n\r\n<mat-form-field class="input-color" *ngIf="type == \'color\'">\r\n \r\n <div class="input-color-container">\r\n <input #colorInput style="width: 0px;visibility: hidden;" type="color" [(ngModel)]="value" (change)="writeValue(value)" [readonly]="readonly" [disabled]="disabled">\r\n <div class="color-picker" [style.background-color]="value" (click)="colorInput.click()"></div>\r\n \r\n <input matInput type="text" [tabindex]="tabindex" [placeholder]="placeholder | translate" [(ngModel)]="value" (input)="onChangeValue()" (blur)="onBlur()"\r\n [maxlength]="maxlength" [readonly]="readonly" [disabled]="disabled" [required]="required">\r\n \r\n <mat-icon *ngIf="iconSuffix" matSuffix style="color: #aaa">{{iconSuffix}}</mat-icon>\r\n </div>\r\n</mat-form-field>',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return Ct})),multi:!0}],styles:[":host .input-color ::ng-deep.mat-form-field-label{transition:transform .4s cubic-bezier(.25,.8,.25,1),color .4s cubic-bezier(.25,.8,.25,1),width .4s cubic-bezier(.25,.8,.25,1),margin .4s cubic-bezier(.25,.8,.25,1)}:host .input-color:not(.mat-form-field-should-float) ::ng-deep.mat-form-field-label{margin-left:40px}:host .input-color.mat-form-field-should-float ::ng-deep.mat-form-field-label{margin-left:0}:host .input-color .input-color-container{display:flex}:host .input-color .input-color-container input[type=color]{height:0;visibility:hidden;width:0}:host .input-color .input-color-container .color-picker{border:1px solid #000;border-radius:5px;margin-right:5px;width:30px}"]}]}],Ct.propDecorators={placeholder:[{type:e.Input}],disabled:[{type:e.Input}],readonly:[{type:e.Input}],required:[{type:e.Input}],maxlength:[{type:e.Input}],type:[{type:e.Input}],rows:[{type:e.Input}],tabindex:[{type:e.Input}],iconPrefix:[{type:e.Input}],iconSuffix:[{type:e.Input}],min:[{type:e.Input}],max:[{type:e.Input}],step:[{type:e.Input}],onblur:[{type:e.Output}],ismask:[{type:e.Input}]};var St=function(){function t(t){this._dialog=t,this.model=[],this.readonly=!1,this.percent=!1,this.hiddenDe=!1,this.disabled=!1,this.messages=[],this.novoValor={De:null,Ate:null,Valor:null,Excluir:!1}}return t.prototype.ngOnChanges=function(){null==this.model&&(this.model=[]);for(var t=0;t<this.model.length;t++)this.model[t].Excluir=!1},t.prototype.getModel=function(){return this.model&&null!=this.model?this.model.filter((function(t){return!t.Excluir})):[]},t.prototype.add=function(){this.messages=[],this.hiddenDe&&null==this.novoValor.Ate&&this.messages.push("InformeUmValorDe"),this.hiddenDe||null!=this.novoValor.De||null!=this.novoValor.Ate||this.messages.push("InformeUmValorDeOuAte"),!this.hiddenDe&&this.novoValor.Ate<this.novoValor.De&&this.messages.push("ValorAteMenorQueDe"),null==this.novoValor.Valor&&this.messages.push("InformeValor"),this.messages.length>0||(this.model.push({De:this.novoValor.De,Ate:this.novoValor.Ate,Valor:this.novoValor.Valor,Excluir:!1}),this.novoValor={De:null,Ate:null,Valor:null,Excluir:!1},this.ordernar())},t.prototype.remover=function(t){var e=this;this._dialog.YesOrNo("MensagemExcluir").subscribe((function(n){n.button!=et.No&&(t.Excluir=!0,e.model.splice(e.model.findIndex((function(e){return e==t})),1),e.ordernar())}))},t.prototype.ordernar=function(){var t=this;this.model=this.model.sort((function(e,n){return(t.hiddenDe?e.Ate<n.Ate:e.De<n.De)?-1:(t.hiddenDe?e.Ate>n.Ate:e.De>n.De)?1:0}))},t}();St.decorators=[{type:e.Component,args:[{selector:"info-input-list",template:'<div class="row" *ngIf="!disabled" >\r\n <mat-form-field class="col-md-3" *ngIf="!hiddenDe" >\r\n <input matInput placeholder="{{ \'De\' | translate}}" name="De" [(ngModel)]="novoValor.De" currencyMask >\r\n </mat-form-field>\r\n\r\n <mat-form-field class="col-md-3" >\r\n <input matInput placeholder="{{ \'Ate\' | translate}}" name="Ate" [(ngModel)]="novoValor.Ate" currencyMask >\r\n </mat-form-field>\r\n\r\n <mat-form-field class="col-md-3" >\r\n <input matInput placeholder="{{ \'Valor\' | translate}} {{ percent ? \'%\' : \'\' }}" name="Valor" [(ngModel)]="novoValor.Valor" currencyMask >\r\n </mat-form-field>\r\n\r\n <div class="col-md-3">\r\n <button mat-button type="button" color="primary" (click)="add()" class="mt-2" ><mat-icon class="fs-20">add_circle_outline</mat-icon> {{ \'AddValor\' | translate }}</button>\r\n </div>\r\n</div>\r\n\r\n<div class="col-md-12" *ngIf="model == null || getModel().length == 0" ><mat-icon style="top: 6px;" class="mr-2">info_outline</mat-icon> {{ \'UtilizeCamposAcimaAdicionarItens\' | translate }}</div>\r\n\r\n<ul *ngIf="model != null" id="list-values" >\r\n <li class="row header" *ngIf="disabled">\r\n <label class="col-md-3" *ngIf="!hiddenDe" >{{ \'De\' | translate }}</label>\r\n <label class="col-md-3" >{{ \'Ate\' | translate }}</label>\r\n <label class="col-md-3" >{{ \'Valor\' | translate }}</label>\r\n </li>\r\n\r\n <li *ngFor="let item of getModel(); let i = index" class="row" [ngClass]="{ \'silver\': i % 2 == 0 }" >\r\n <div class="col-md-3" *ngIf="!hiddenDe" >\r\n \r\n <mat-form-field>\r\n <input matInput name="ListaValorDe" [ngModel]="item.De" [disabled]="true" currencyMask >\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class="col-md-3">\r\n <mat-form-field>\r\n <input matInput name="ListaValorAte" [ngModel]="item.Ate" [disabled]="true" currencyMask >\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class="col-md-3">\r\n <mat-form-field>\r\n <input matInput name="ListaValorValor" [ngModel]="item.Valor" [disabled]="true" currencyMask >\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class="col-md-3">\r\n <ng-container *ngIf="!disabled">\r\n \x3c!-- <button type="button" matTooltip="{{ \'OrdernarAcima\' | translate }}" mat-icon-button [disabled]="item.Indice <= 0" (click)="alterarIndice(item, item.Indice - 1)">\r\n <mat-icon>arrow_upward</mat-icon>\r\n </button>\r\n <button type="button" matTooltip="{{ \'OrdernarAbaixo\' | translate }}" mat-icon-button [disabled]="item.Indice >= (model.length - 1)" (click)="alterarIndice(item, item.Indice + 1)">\r\n <mat-icon>arrow_downward</mat-icon>\r\n </button> --\x3e\r\n <button type="button" color="warn" matTooltip="{{ \'Excluir\' | translate }}" mat-icon-button (click)="remover(item)">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </ng-container>\r\n </div>\r\n </li>\r\n</ul>\r\n\r\n\r\n<info-alert [messages]="messages"></info-alert>',styles:[":host .header{background:#fafafa;border-bottom:2px solid #f0f0f0;border-top:1px solid #f0f0f0;color:#333;font-family:Open Sans;font-size:9px;font-weight:700;padding:10px 20px 0 0;text-align:right;text-transform:uppercase}:host #list-values{padding:0}:host #list-values li.silver{background:#f5f5f5}:host #list-values li.hover{background:#eee}:host #list-values mat-form-field{margin-bottom:5px}:host #list-values button mat-icon{font-size:18px}"]}]}],St.ctorParameters=function(){return[{type:wt}]},St.propDecorators={model:[{type:e.Input}],readonly:[{type:e.Input}],percent:[{type:e.Input}],hiddenDe:[{type:e.Input}],disabled:[{type:e.Input}]};var Mt=function(){function t(t){this._translate=t,this.filterlabel="Filtrar",this.selectedlabel="Filtrar",this.model=[],this.max=0,this.onelist=!1,this.filterList="",this.filterSelected="",this.message=""}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this.disabledValue},set:function(t){this.disabledValue=t},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){null!=this.max&&this.max>0&&(this.message=this._translate.translate("MensagemTopRegistro").replace("{0}",this.max.toString()))},t.prototype.getModel=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),n||null==this.max||0==this.max?this.model.filter((function(n){return(e?n.Selecionado:n.Selecionado==n.Selecionado)&&n.Descricao.toLowerCase().indexOf(t.toLowerCase())>-1})):this.model.filter((function(n){return(e?n.Selecionado:n.Selecionado==n.Selecionado)&&n.Descricao.toLowerCase().indexOf(t.toLowerCase())>-1})).slice(0,this.max)},t.prototype.marcarFiltrados=function(t,e,n){void 0===n&&(n=!1);var i=this.getModel(t,n,!0).map((function(t){return t.Id}));this.model.forEach((function(t,n){i.indexOf(t.Id)>-1&&(t.Selecionado=e)}))},t.prototype.marcarTodos=function(t){this.model.forEach((function(e){return e.Selecionado=t}))},t}();Mt.decorators=[{type:e.Component,args:[{selector:"info-list-checkbox",template:'<div class="row">\r\n <div [ngClass]="{\'col-md-6\': !onelist, \'col-md-12\': onelist}" class="pr-0">\r\n <mat-form-field class="col-md-12" >\r\n <input matInput placeholder="{{ filterlabel | translate}}" name="FilterList" [(ngModel)]="filterList" >\r\n </mat-form-field>\r\n\r\n <div class="col-md-12">\r\n <label class="description"> {{ filterdescription | translate }}</label>\r\n <ng-container *ngIf="!disabled">\r\n <button mat-icon-button type="button" matTooltip="{{\'MarcarFiltrados\' | translate}}" (click)="marcarFiltrados(filterList, true)"><mat-icon>done</mat-icon></button>\r\n <button mat-icon-button type="button" matTooltip="{{\'MarcarTodos\' | translate}}" (click)="marcarTodos(true)"><mat-icon>done_all</mat-icon></button>\r\n <button mat-icon-button type="button" matTooltip="{{\'DesmarcarFiltrados\' | translate}}" (click)="marcarFiltrados(filterList, false)"><mat-icon>remove</mat-icon></button>\r\n <button mat-icon-button type="button" matTooltip="{{\'DesmarcarTodos\' | translate}}" (click)="marcarTodos(false)"><mat-icon>close</mat-icon></button>\r\n </ng-container>\r\n\r\n <ul class="checkbox-list">\r\n <li *ngFor="let item of getModel(filterList)" [(value)]="item.Id">\r\n <mat-checkbox [(ngModel)]="item.Selecionado" [disabled]="disabled"><span [innerHTML]="item.Descricao"></span></mat-checkbox>\r\n </li>\r\n </ul>\r\n </div>\r\n <div class="col-md-12 align-right"><small>{{message}}</small></div>\r\n </div>\r\n\r\n <div class="col-md-6 pr-0" *ngIf="!onelist">\r\n <mat-form-field class="col-md-12">\r\n <input matInput placeholder="{{ selectedlabel | translate}}" name="FilterSelected" [(ngModel)]="filterSelected" >\r\n </mat-form-field>\r\n\r\n <div class="col-md-12">\r\n <label class="description"> {{ selecteddescription | translate }}</label>\r\n <ng-container *ngIf="!disabled">\r\n <button mat-icon-button type="button" matTooltip="{{\'DesmarcarFiltrados\' | translate}}" (click)="marcarFiltrados(filterSelected, false, true)"><mat-icon>remove</mat-icon></button>\r\n <button mat-icon-button type="button" matTooltip="{{\'DesmarcarTodos\' | translate}}" (click)="marcarTodos(false)"><mat-icon>close</mat-icon></button>\r\n </ng-container>\r\n\r\n <ul class="checkbox-list">\r\n <li *ngFor="let item of getModel(filterSelected, true)" [(value)]="item.Id" >\r\n <mat-checkbox [(ngModel)]="item.Selecionado" [indeterminate]="true" [disabled]="disabled"><span [innerHTML]="item.Descricao"></span></mat-checkbox>\r\n </li>\r\n </ul>\r\n </div>\r\n <div class="col-md-12 align-right"><small>{{message}}</small></div>\r\n </div>\r\n</div>',styles:["ul.checkbox-list { height: 270px; overflow-y: auto }"]}]}],Mt.ctorParameters=function(){return[{type:nt}]},Mt.propDecorators={filterlabel:[{type:e.Input}],filterdescription:[{type:e.Input}],selectedlabel:[{type:e.Input}],selecteddescription:[{type:e.Input}],model:[{type:e.Input}],max:[{type:e.Input}],onelist:[{type:e.Input}],disabled:[{type:e.Input}]};var Tt=function(){function t(){this.color="info",this.outline=!0,this.close=!1,this.min=!1}return t.prototype.delete=function(t,e){t.preventDefault(),e.remove()},t}();Tt.decorators=[{type:e.Component,args:[{selector:"info-message",template:"<div class=\"message\" [ngClass]=\"{\r\n 'success-message': color === 'success',\r\n 'info-message': color === 'info',\r\n 'warning-message': color === 'warning',\r\n 'danger-message': color === 'danger',\r\n 'with-close': close,\r\n 'min': min }\" #message>\r\n <ng-content></ng-content>\r\n <a href=\"#\" class=\"close\" *ngIf=\"close\" (click)=\"delete($event, message)\"><i class=\"material-icons\">clear</i></a>\r\n</div>",styles:[":host{display:block;margin-bottom:0;padding-right:0!important}:host .message{border-radius:3px;font-size:14px;padding:20px 20px 16px;position:relative}:host .message.min{padding:10px 15px}:host .message:not(.outline-message){color:#fff}:host .message:not(.outline-message) /deep/ a{color:hsla(0,0%,100%,.8)}:host .message:not(.outline-message) /deep/ a:hover{color:#fff}:host .message .close{background:rgba(0,0,0,.1);font-size:20px;line-height:1;position:absolute;right:0;top:0;transition:background .2s ease-in-out,color .2s ease-in-out}:host .message .close:hover{background:hsla(0,0%,100%,.3);color:red}:host .message .close .material-icons{color:inherit;font-size:inherit;margin:0;vertical-align:top}:host .message /deep/ .material-icons{font-size:21px;margin:0 10px 0 0;vertical-align:top}:host .message.success-message{background:#cbefc4;border:none;color:#005e00}:host .message.success-message /deep/ .material-icons{color:#005e00}:host .message.info-message{background:#f0f0f0;border:none;color:#666}:host .message.info-message /deep/ .material-icons{color:#666}:host .message.warning-message{background:#efefc0;border:none;color:#705b20}:host .message.warning-message /deep/ .material-icons{color:#b59334}:host .message.danger-message{background:#efb7ae;border:none;color:#771702}:host .message.danger-message /deep/ .material-icons{color:#771702}"]}]}],Tt.propDecorators={color:[{type:e.Input}],outline:[{type:e.Input}],close:[{type:e.Input}],min:[{type:e.Input}]};var At=function(){function t(){this.size=5,this.min=!1,this.index=0,this.change=new e.EventEmitter,this.show=!1,this.indexActive=0,this.total=0,this.numberPages=1,this.pages=[],this.totalDescription=""}return t.prototype.refresh=function(t){if(this.pages=[],this.total=t,this.indexActive=this.index,this.numberPages=Math.ceil(this.total/this.size),this.total>this.size){var e=this.index>2?this.index-2:0,n=this.numberPages;if(this.index+2<this.numberPages){var i=3;this.index<2&&(i=5-this.index),n=this.index+i}else this.index-2>0&&(e=this.index-(5-(this.numberPages-this.index)));for(e<0&&(e=0),n>this.numberPages&&(n=this.numberPages);e<n;e++)this.pages.push(e)}else this.pages.push(0);this.setDescription(),this.show=!0},t.prototype.goto=function(t){this.index!=t&&(this.index=t,this.change.emit(this.index))},t.prototype.next=function(){this.goto(this.index+1)},t.prototype.previous=function(){this.goto(this.index-1)},t.prototype.setDescription=function(){var t=this.size*this.index+1,e=this.size*(this.index+1);e>this.total&&(e=this.total),this.totalDescription=t+" - "+e+" de "+this.total},t}();At.decorators=[{type:e.Component,args:[{selector:"info-paginator",template:'<div class="info-paginator" *ngIf="show" >\r\n <div class="row">\r\n <div class="col-md-2" [ngClass]="{ \'descriptions-min\': min == true, \'descriptions\': min != true }">\r\n <label class="total">{{totalDescription}}</label>\r\n </div>\r\n <div class="col-md-10 align-right" [ngClass]="{ \'pages-min\': min == true, \'pages\': min != true }">\r\n <ul>\r\n <li class="icon">\r\n <button mat-button (click)="goto(0)" [disabled]="index == 0" [matTooltip]="\'Primeira\' | translate" >\r\n <mat-icon>first_page</mat-icon>\r\n </button>\r\n </li>\r\n\r\n <li class="icon">\r\n <button mat-button (click)="previous()" [disabled]="index == 0" [matTooltip]="\'Anterior\' | translate" >\r\n <mat-icon>chevron_left</mat-icon>\r\n </button>\r\n </li>\r\n\r\n <li *ngFor="let page of pages" >\r\n <button mat-button (click)="goto(page)" [ngClass]="{\r\n \'active\': page === indexActive\r\n }" >{{page + 1}}</button>\r\n </li>\r\n\r\n <li class="icon">\r\n <button mat-button (click)="next()" [disabled]="index >= (numberPages - 1)" [matTooltip]="\'Proxima\' | translate" >\r\n <mat-icon>chevron_right</mat-icon>\r\n </button>\r\n </li>\r\n\r\n <li class="icon">\r\n <button mat-button (click)="goto(numberPages - 1)" [disabled]="index >= (numberPages - 1)" [matTooltip]="\'Ultima\' | translate" >\r\n <mat-icon>last_page</mat-icon>\r\n </button>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n</div>',styles:[":host>.info-paginator{padding:10px 10px 10px 20px}:host>.info-paginator .descriptions,:host>.info-paginator .pages{padding-left:10px!important;padding-right:10px!important}:host>.info-paginator .descriptions-min,:host>.info-paginator .pages-min{padding-left:0!important;padding-right:0!important}:host>.info-paginator ul{list-style:none;margin:0;padding:0}:host>.info-paginator ul li{display:inline-block;font-size:14px}:host>.info-paginator ul li .mat-button{line-height:25px;margin:0 2px;min-width:34px;padding:0}:host>.info-paginator ul li .mat-button.active{font-weight:700}:host>.info-paginator ul li .mat-button .mat-icon{font-size:20px}:host>.info-paginator ul li.icon .mat-button{padding:0 2px}"]}]}],At.propDecorators={size:[{type:e.Input}],min:[{type:e.Input}],index:[{type:e.Output}],change:[{type:e.Output}]};var Dt=function(){function t(t){this._dataAcessService=t,this.placeholder="",this.name="",this.required=!1,this.selectfirst=!1,this.disablednoregisters=!1,this.api=null,this.method="getchavevalor",this.blank=!1,this.blankItem=null,this.loading=!1,this.disabled=!1,this.onselecteditem=new e.EventEmitter,this.selectedValue=null,this.initialized=!1,this._params=null,this._data=[]}return Object.defineProperty(t.prototype,"params",{get:function(){return this._params},set:function(t){this._params=t,this.initialized&&this.getData()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(t){var e=this;this._data=t,this.selectfirst&&null!=this.data&&this.data.length>0&&!this.data.some((function(t){return t.Id==e.selectedValue}))&&this.writeValue(this.data[0].Id),this.disablednoregisters&&this.setDisabledState(null==this.data||0==this.data.length)},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.name+=this.placeholder.replace(/ /g,""),this.blank=""!==this.required&&"true"!==this.required&&!0!==this.required,null==this.blankItem&&(this.blankItem={Id:null,Nome:""}),this.getData()},t.prototype.writeValue=function(t){this.selectedValue=t,this.onChangeValue()},t.prototype.getData=function(){var t=this;this.initialized=!0,null==this.api||null!=this.params&&this.params.toLowerCase().indexOf("undefined")>-1||(this.loading=!0,this.data=[],this._dataAcessService.get(this.api,this.method,this.params).subscribe((function(e){e.success&&(t.data=e.data,t.selectedValue&&t.onChangeValue()),t.loading=!1})))},t.prototype.onChangeValue=function(){var t=this;null!=this.onChange&&this.onChange(this.selectedValue),null!=this.onselecteditem&&this.onselecteditem.emit(null==this.data?null:this.data.find((function(e){return e.Id==t.selectedValue})))},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=!(!this.disablednoregisters||null!=this.data&&0!=this.data.length)||t},t}();Dt.decorators=[{type:e.Component,args:[{selector:"info-select",template:'<mat-form-field>\r\n <mat-select [placeholder]="placeholder | translate" [(ngModel)]="selectedValue" (selectionChange)="onChangeValue()" [disabled]="disabled || loading" [required]="required">\r\n <mat-option *ngIf="blank" [value]="blankItem.Id">{{ blankItem.Nome | translate }}</mat-option>\r\n <mat-option *ngFor="let i of data" [value]="i.Id" [innerHTML]="i.Nome | translate"></mat-option>\r\n </mat-select>\r\n</mat-form-field>\r\n\r\n<section class="select-loading">\r\n <mat-progress-bar color="primary" mode="indeterminate" *ngIf="loading" >\r\n </mat-progress-bar>\r\n</section>',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return Dt})),multi:!0}],styles:[":host .mat-select-trigger{height:19px}:host .mat-form-field-type-mat-select .mat-form-field-label{height:20px}:host .mat-option{height:unset;white-space:normal}:host .select-loading{bottom:21px;height:1px;opacity:.3;position:relative}:host .select-loading .mat-progress-bar{height:1px;margin:0}:host.min .mat-form-field{margin:0!important}"]}]}],Dt.ctorParameters=function(){return[{type:rt}]},Dt.propDecorators={placeholder:[{type:e.Input}],name:[{type:e.Input}],required:[{type:e.Input}],selectfirst:[{type:e.Input}],disablednoregisters:[{type:e.Input}],api:[{type:e.Input}],method:[{type:e.Input}],blank:[{type:e.Input}],blankItem:[{type:e.Input}],loading:[{type:e.Input}],disabled:[{type:e.Input}],onselecteditem:[{type:e.Output}],params:[{type:e.Input}],data:[{type:e.Input}]};var Et=function(){function t(){this.showdate=!0,this.align="between",this.style="",this.label="",this.data=[],this.alignLeft=!1,this.alignCenter=!1,this.alignRight=!1,this.alignBetween=!1}return t.prototype.ngOnInit=function(){this.alignLeft="left"===this.align,this.alignCenter="center"===this.align,this.alignRight="right"===this.align,this.alignBetween="between"===this.align},t}();Et.decorators=[{type:e.Component,args:[{selector:"info-timeline",template:'<span class="line"></span>\r\n\r\n<div class="timeline-box">\r\n <div class="box-label" *ngIf="label != \'\'">\r\n <div class="label-text">{{label}}</div>\r\n </div>\r\n\r\n <div class="box-items">\r\n <div class="item" *ngFor="let item of data">\r\n <div class="item-point" [ngStyle]="{ \'border-color\': item.PointColor }"></div>\r\n <div class="item-content">\r\n <h2 *ngIf="item.Title">{{item.Title}}</h2>\r\n <p [innerHTML]="item.Content | translate"></p>\r\n <h3 *ngIf="item.Date">{{ item.Date }} às {{ item.Hour }}</h3>\r\n </div>\r\n </div>\r\n </div>\r\n</div>',host:{"[class.timeline]":"true","[class.show-date]":"true"},styles:[':host{display:block;font-size:.9em;margin:20px 0 10px;position:relative}:host .line{border-left:2px solid #eee;height:100%;left:6px;margin-left:-1px;position:absolute;top:0}:host .timeline-box .box-label{display:flex;padding:.78571rem 0}:host .timeline-box .box-label .label-text{border-radius:0;color:#fff;display:inline-block;min-width:6.28571rem;padding:.39286rem .78571rem;position:relative;text-align:center}:host .timeline-box .box-items{display:flex;flex-direction:column}:host .timeline-box .box-items .item{margin:0;padding-left:50px;position:relative}@media (max-width:543px){:host .timeline-box .box-items .item{padding-left:32px}}:host .timeline-box .box-items .item .item-point{background:#fff;border-radius:50%;display:block;height:12px;left:0;position:absolute;top:calc(1.17857rem + 1px);width:12px}:host .timeline-box .box-items .item .item-date{font-size:.875rem;margin-bottom:.78571rem}:host .timeline-box .box-items .item .item-content{background:#eee;border-radius:0;box-shadow:0 0 5px #f5f5f5;display:inline-block;margin-bottom:5px;min-width:180px;padding:12px;position:relative;width:auto}:host .timeline-box .box-items .item .item-content:after,:host .timeline-box .box-items .item .item-content:before{border:10px solid transparent;content:"";display:block;height:0;position:absolute;top:14px;width:0}:host .timeline-box .box-items .item .item-content:before{border-right-color:#eee;right:100%}:host .timeline-box .box-items .item .item-content:after{border-left-color:#eee;display:none;left:100%}:host .timeline-box .box-items .item .item-content .item-title{margin-top:0}:host .timeline-box .box-items .item .item-content h2{display:block;font-size:.9em;font-weight:700;margin:0}:host .timeline-box .box-items .item .item-content p{margin:5px 0!important}:host .timeline-box .box-items .item .item-content h3{color:#666;display:block;font-size:.7em;margin:0;text-align:right}:host.show-date .timeline-box .box-items .item .item-point{top:calc(1.17857rem + 1px)}:host.align-right .line{left:auto;margin:0 -1px 0 auto;right:6px}:host.align-right .timeline-box .box-label{justify-content:flex-end}:host.align-right .timeline-box .box-items{align-items:flex-end}:host.align-right .timeline-box .box-items .item{padding:0 50px 0 0}@media (max-width:543px){:host.align-right .timeline-box .box-items .item{padding:0 32px 0 0}}:host.align-right .timeline-box .box-items .item .item-point{left:auto;right:0}:host.align-right .timeline-box .box-items .item .item-date{text-align:right}:host.align-right .timeline-box .box-items .item .item-content:before{display:none}:host.align-right .timeline-box .box-items .item .item-content:after{display:block}:host.align-center .line{left:50%}:host.align-center .timeline-box .box-label{justify-content:center}:host.align-center .timeline-box .box-items{align-items:center}:host.align-center .timeline-box .box-items .item{padding:0;text-align:center}@media (max-width:543px){:host.align-center .timeline-box .box-items .item{padding:0}}:host.align-center .timeline-box .box-items .item .item-point{left:50%;margin:-26px 0 0 -6px;top:0}:host.align-center .timeline-box .box-items .item .item-date{margin-bottom:33px;text-align:center}:host.align-center .timeline-box .box-items .item .item-date span{background:#eee;border:1px solid #eee;border-radius:0;display:inline-block;padding:.39286rem .78571rem}:host.align-center .timeline-box .box-items .item .item-content:before{border-color:transparent transparent #ddd;left:50%;margin:-20px 0 0 -10px;top:0}:host.align-center.show-date .timeline-box .box-items .item .item-point{margin-top:40px}@media (min-width:768px){:host.align-between .line{left:50%}:host.align-between .timeline-box .box-label{justify-content:center}:host.align-between .timeline-box .box-items .item{width:50%}:host.align-between .timeline-box .box-items .item:nth-child(2n){align-self:flex-end}:host.align-between .timeline-box .box-items .item:nth-child(2n) .item-point{left:0;margin-left:-6px}:host.align-between .timeline-box .box-items .item:nth-child(odd){padding:0 50px 0 0;text-align:right}}@media (min-width:768px) and (max-width:543px){:host.align-between .timeline-box .box-items .item:nth-child(odd){padding:0 32px 0 0}}@media (min-width:768px){:host.align-between .timeline-box .box-items .item:nth-child(odd) .item-point{left:100%;margin-left:-6px}:host.align-between .timeline-box .box-items .item:nth-child(odd) .item-content{text-align:left}:host.align-between .timeline-box .box-items .item:nth-child(odd) .item-content:before{display:none}:host.align-between .timeline-box .box-items .item:nth-child(odd) .item-content:after{display:block}}']}]}],Et.ctorParameters=function(){return[]},Et.propDecorators={showdate:[{type:e.Input}],align:[{type:e.Input}],style:[{type:e.Input}],label:[{type:e.Input}],data:[{type:e.Input}],alignLeft:[{type:e.HostBinding,args:["class.align-left"]}],alignCenter:[{type:e.HostBinding,args:["class.align-center"]}],alignRight:[{type:e.HostBinding,args:["class.align-right"]}],alignBetween:[{type:e.HostBinding,args:["class.align-between"]}]};var Pt=function(){function t(t){this._sanitizer=t,this.required=!1,this.enabledhtmlmode=!1,this.value="",this.focused=!1,this.id=null,this.editorConfig={editable:!0,spellcheck:!0,height:"auto",minHeight:"0",maxHeight:"auto",width:"auto",minWidth:"0",translate:"yes",enableToolbar:!0,showToolbar:!0,defaultParagraphSeparator:"",toolbarPosition:"top",fonts:[{class:"arial",name:"Arial"},{class:"times-new-roman",name:"Times New Roman"},{class:"calibri",name:"Calibri"},{class:"comic-sans-ms",name:"Comic Sans MS"}]}}return Object.defineProperty(t.prototype,"disabled",{get:function(){return!(this.editorConfig||{}).editable},set:function(t){this.editorConfig.editable=!t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return(this.editorConfig||{}).height},set:function(t){this.editorConfig.height=t||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minheight",{get:function(){return(this.editorConfig||{}).minHeight},set:function(t){this.editorConfig.minHeight=t||"0"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxheight",{get:function(){return(this.editorConfig||{}).maxHeight},set:function(t){this.editorConfig.maxHeight=t||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return(this.editorConfig||{}).width},set:function(t){this.editorConfig.width=t||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minwidth",{get:function(){return(this.editorConfig||{}).minWidth},set:function(t){this.editorConfig.minWidth=t||"0"},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.id="editor-"+this.getGuid()},t.prototype.ngAfterViewInit=function(){var t=this;document.querySelector("#"+this.id+" .angular-editor-textarea").addEventListener("focus",(function(){return t.focused=!0})),document.querySelector("#"+this.id+" .angular-editor-textarea").addEventListener("blur",(function(){return t.focused=!1})),document.querySelector("#"+this.id+" .angular-editor-textarea").addEventListener("mouseout",(function(){return t.editor.editorToolbar.editorService.saveSelection()}))},t.prototype.getGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))},t.prototype.onChangeValue=function(){this.value=this._sanitizer.sanitize(e.SecurityContext.HTML,this.value),null!=this.onChange&&this.onChange(this.value)},t.prototype.writeValue=function(t){this.value=this._sanitizer.sanitize(e.SecurityContext.HTML,t),this.onChangeValue()},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t}();Pt.decorators=[{type:e.Component,args:[{selector:"info-editor",template:'<angular-editor [attr.id]="id" [attr.focused]="focused" [attr.htmlmode]="enabledhtmlmode" [(ngModel)]="value" name="editor" [config]="editorConfig" (ngModelChange)="onChangeValue()" [required]="required" #editor></angular-editor>\r\n',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return Pt})),multi:!0}],styles:[':host ::ng-deep .angular-editor-toolbar-set #insertVideo-,:host ::ng-deep [htmlmode=false] .angular-editor-toolbar-set #toggleEditorMode-{display:none}:host ::ng-deep .angular-editor-textarea{border:none!important;border-bottom:1px solid!important;outline:none}:host ::ng-deep .angular-editor-textarea[contenteditable=false]{border-bottom:1.5px dotted #d3d3d3!important}:host ::ng-deep .angular-editor-wrapper:after{background-color:#000;bottom:0;content:"";height:2px;left:0;opacity:0;position:absolute;transform:scaleX(.5);transform-origin:50%;transition:background-color .3s cubic-bezier(.55,0,.55,.2);width:100%}:host ::ng-deep [focused=true] .angular-editor-wrapper:after{opacity:1;transform:scaleX(1);transition:transform .3s cubic-bezier(.25,.8,.25,1),opacity .1s cubic-bezier(.25,.8,.25,1),background-color .3s cubic-bezier(.25,.8,.25,1)}:host ::ng-deep .ng-touched.ng-invalid .angular-editor-wrapper:after{background-color:#f44336!important}:host ::ng-deep .ng-touched.ng-invalid .angular-editor-textarea[contenteditable=true]{border-bottom-color:#f44336!important}']}]}],Pt.ctorParameters=function(){return[{type:h.DomSanitizer}]},Pt.propDecorators={editor:[{type:e.ViewChild,args:["editor"]}],required:[{type:e.Input}],enabledhtmlmode:[{type:e.Input}],disabled:[{type:e.Input}],height:[{type:e.Input}],minheight:[{type:e.Input}],maxheight:[{type:e.Input}],width:[{type:e.Input}],minwidth:[{type:e.Input}]};var Ot=function(){function t(t){this._dataAcessService=t,this.placeholder="",this.name="",this.required=!1,this.selectfirst=!1,this.disablednoregisters=!1,this.api=null,this.method="getchavevalor",this.loading=!1,this.disabled=!1,this.onselecteditem=new e.EventEmitter,this.selectedValues=[],this.initialized=!1,this._params=null,this._data=[]}return Object.defineProperty(t.prototype,"params",{get:function(){return this._params},set:function(t){this._params=t,this.initialized&&this.getData()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(t){var e=this;this._data=t,this.selectfirst&&null!=this.data&&this.data.length>0&&!this.data.some((function(t){var n;return(null===(n=e.selectedValues)||void 0===n?void 0:n.indexOf(t.Id))>-1}))&&this.writeValue([this.data[0].Id]),this.disablednoregisters&&this.setDisabledState(null==this.data||0==this.data.length)},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.name+=this.placeholder.replace(/ /g,""),this.getData()},t.prototype.writeValue=function(t){this.selectedValues=t,this.onChangeValue()},t.prototype.getData=function(){var t=this;this.initialized=!0,null==this.api||null!=this.params&&this.params.toLowerCase().indexOf("undefined")>-1||(this.loading=!0,this.data=[],this._dataAcessService.get(this.api,this.method,this.params).subscribe((function(e){e.success&&(t.data=e.data,(t.selectedValues||[]).length>0&&t.onChangeValue()),t.loading=!1})))},t.prototype.onChangeValue=function(){var t=this;null!=this.onChange&&this.onChange(this.selectedValues),null!=this.onselecteditem&&this.onselecteditem.emit(null==this.data?null:this.data.filter((function(e){var n;return(null===(n=t.selectedValues)||void 0===n?void 0:n.indexOf(e.Id))>-1})))},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=!(!this.disablednoregisters||null!=this.data&&0!=this.data.length)||t},t}();Ot.decorators=[{type:e.Component,args:[{selector:"info-multi-select",template:'<mat-form-field>\r\n <mat-label>{{placeholder | translate}}</mat-label>\r\n\r\n <mat-select [(ngModel)]="selectedValues" (selectionChange)="onChangeValue()" [disabled]="disabled || loading" [required]="required" multiple>\r\n <mat-option *ngFor="let i of data" [value]="i.Id">\r\n <span [innerHtml]="i.Nome | translate"></span>\r\n </mat-option>\r\n </mat-select>\r\n</mat-form-field>\r\n\r\n<section class="select-loading">\r\n <mat-progress-bar color="primary" mode="indeterminate" *ngIf="loading" >\r\n </mat-progress-bar>\r\n</section>',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return Ot})),multi:!0}],styles:[":host .mat-select-trigger{height:19px}:host .mat-form-field-type-mat-select .mat-form-field-label{height:20px}:host .select-loading{bottom:21px;height:1px;opacity:.3;position:relative}:host .select-loading .mat-progress-bar{height:1px;margin:0}:host.min .mat-form-field{margin:0!important}"]}]}],Ot.ctorParameters=function(){return[{type:rt}]},Ot.propDecorators={placeholder:[{type:e.Input}],name:[{type:e.Input}],required:[{type:e.Input}],selectfirst:[{type:e.Input}],disablednoregisters:[{type:e.Input}],api:[{type:e.Input}],method:[{type:e.Input}],loading:[{type:e.Input}],disabled:[{type:e.Input}],onselecteditem:[{type:e.Output}],params:[{type:e.Input}],data:[{type:e.Input}]};var Vt=function(){function t(){this.disabled=!1,this.readonly=!1,this.separatorKeysCodes=[m.ENTER],this.onblur=new e.EventEmitter,this.values=[]}return t.prototype.add=function(t){var e=t.input,n=t.value;(n||"").trim()&&this.values.push(n.trim()),e&&(e.value=""),this.writeValue(this.values)},t.prototype.remove=function(t){t>=0&&this.values.splice(t,1),this.writeValue(this.values)},t.prototype.onBlur=function(){this.onblur.emit(this.values)},t.prototype.onChangeValue=function(){null!=this.onChange&&this.onChange(this.values)},t.prototype.writeValue=function(t){this.values=t,this.onChangeValue()},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t}();Vt.decorators=[{type:e.Component,args:[{selector:"info-chips",template:'<mat-form-field>\r\n <mat-chip-list #chipList>\r\n <mat-chip *ngFor="let item of values; let i = index" [removable]="!disabled" (removed)="remove(i)">\r\n {{item}}\r\n <mat-icon matChipRemove *ngIf="!disabled">cancel</mat-icon>\r\n </mat-chip>\r\n <input [placeholder]="placeholder | translate"\r\n [matChipInputFor]="chipList"\r\n [matChipInputSeparatorKeyCodes]="separatorKeysCodes"\r\n (matChipInputTokenEnd)="add($event)"\r\n [disabled]="disabled"\r\n (blur)="onBlur()">\r\n </mat-chip-list>\r\n </mat-form-field>',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return Vt})),multi:!0}]}]}],Vt.propDecorators={placeholder:[{type:e.Input}],disabled:[{type:e.Input}],readonly:[{type:e.Input}],onblur:[{type:e.Output}]};var Lt=function(){function t(t,n,i,o,a,s,r){this._platform=t,this._session=n,this._router=i,this._dataAccessService=o,this._themeService=a,this._renderer=s,this._element=r,this.opened=!1,this.version=null,this.messages=[],this._themes=[],this.languages=[],this.profileurl="",this.loginurl="login",this.menuapi=null,this.menumethod="GetMenu",this.activemenubyurl=!1,this.loggeduserapi=null,this.loggedusermethod="GetLoggedUser",this.notificationapi=null,this.notificationgetmethod="Get",this.notificationpostmethod="PostNotification",this.notificationverifymethod="Verify",this.notificationverifyenabled=!0,this.fastsearchform=null,this.fastsearchformwidth=1200,this.fastsearchtitle="PesquisaRapidaCarteira",this.setthemeonchangecompany=!1,this.shortcutapi=null,this.ongetnotification=new e.EventEmitter,this.onverifynotification=new e.EventEmitter}return Object.defineProperty(t.prototype,"themes",{get:function(){return this._themes},set:function(t){this._themes=t,this._platform.Themes=this.themes,this._session.TemaId>0&&this.setthemeonchangecompany&&this._themeService.setThemeByLoggedCompany()},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){if(this._renderer.addClass(this._element.nativeElement,"uxc"+this._platform.Config.ux),this._platform.Config.topMenu&&this._renderer.addClass(this._element.nativeElement,"topmenu"),this._platform.Themes=this.themes,this._platform.ShortcutApi=this.shortcutapi,null==localStorage.getItem(this._platform.TokenKey)?this._router.navigateByUrl(this.loginurl):this.getLoggedUser(),document.body.classList.length>0){var t=document.body.classList[0];document.body.classList[0].indexOf("-theme")<0&&null!=this._platform.Config.theme&&(t="_"+this._platform.Config.theme+"-theme"),this._themeService.setTheme(t)}},t.prototype.onChangeTopBarState=function(){this.opened=!this.opened},t.prototype.onChangeSideBarState=function(){this.topbar.openSidebar()},t.prototype.getLoggedUser=function(){var t=this;null!=localStorage.getItem(this._platform.SessionKey)&&Object.assign(this._session,JSON.parse(localStorage.getItem(this._platform.SessionKey))),null==this._session.UsuarioId&&null!=this.loggeduserapi&&this._dataAccessService.get(this.loggeduserapi,this.loggedusermethod).subscribe((function(e){e.success&&(t._session.UsuarioId=e.data.UsuarioId,t._session.Usuario=e.data.Usuario,t._session.Login=e.data.Login,t._session.Email=e.data.Email,t._session.Perfil=e.data.Perfil,t._session.EmpresaId=e.data.EmpresaId,t._session.TemaId=e.data.TemaId,t._session.Empresa=e.data.Empresa,t._session.UltimoAcesso=e.data.UltimoAcesso,t._session.Master=e.data.Master,t._session.Clone=e.data.Clone,t._session.OcultarNomeCliente=e.data.OcultarNomeCliente,t._session.Empresas=e.data.Empresas,t._session.Parametros=e.data.Parametros,t._session.MFA=e.data.MFA,t._session.TempoInatividade=e.data.TempoInatividade,t._session.Versao=e.data.Versao,t.version=e.data.Versao,t._session.Parametros.some((function(t){return"DisclaimerGeral"==t.Chave}))&&t.messages.push(t._session.Parametros.find((function(t){return"DisclaimerGeral"==t.Chave})).Valor),null!=t._session.TemaId&&t._themeService.setThemeByLoggedCompany())}))},t.prototype.onGetNotificationsTopBar=function(t){this.ongetnotification.emit(t)},t.prototype.onVerifyNotificationsTopBar=function(t){this.onverifynotification.emit(t)},t}();Lt.decorators=[{type:e.Component,args:[{selector:"info-main",template:'<div class="site-container" [ngClass]="{ \'open-sidebar\': opened }">\r\n \r\n <info-topbar #topbar\r\n [themes]="themes" \r\n [languages]="languages" \r\n [profileurl]="profileurl"\r\n [notificationapi]="notificationapi" \r\n [notificationgetmethod]="notificationgetmethod" \r\n [notificationpostmethod]="notificationpostmethod"\r\n [notificationverifymethod]="notificationverifymethod"\r\n [notificationverifyenabled]="notificationverifyenabled"\r\n [fastsearchform]="fastsearchform"\r\n [fastsearchformwidth]="fastsearchformwidth"\r\n [fastsearchtitle]="fastsearchtitle"\r\n [setthemeonchangecompany]="setthemeonchangecompany"\r\n (onchangestate)="onChangeTopBarState()"\r\n (ongetnotification)="onGetNotificationsTopBar($event)"\r\n (onverifynotification)="onVerifyNotificationsTopBar($event)">\r\n </info-topbar>\r\n \r\n <info-topmenu *ngIf="_platform.Config.topMenu"\r\n [api]="menuapi" \r\n [method]="menumethod" \r\n (onchangestate)="onChangeSideBarState()">\r\n </info-topmenu>\r\n\r\n <info-sidebar *ngIf="!_platform.Config.topMenu"\r\n [api]="menuapi" \r\n [method]="menumethod" \r\n [activemenubyurl]="activemenubyurl"\r\n (onchangestate)="onChangeSideBarState()">\r\n </info-sidebar>\r\n\r\n <main class="main-content">\r\n <div class="main-content-wrap">\r\n <ng-content></ng-content>\r\n </div>\r\n\r\n <div class="footer row">\r\n <div class="copyright col-md-9">{{ \'Copyright\' | translate}}</div>\r\n <div class="version col-md-3" *ngIf="version">{{ \'Versao\' | translate}} {{ version }}</div>\r\n </div>\r\n \r\n <info-alert [messages]="messages"></info-alert>\r\n </main>\r\n</div>',styles:[":host.topmenu .main-content{padding:180px 0 0!important}:host.uxc3 .main-content{padding:140px 0 0 240px;transition:padding .2s ease-in-out}:host.uxc3 .main-content .bg{background:#fff}@media screen and (max-width:991px){:host.uxc3 .main-content{padding-left:0}}@media screen and (max-width:543px){:host.uxc3 .main-content{padding-top:70px}}:host.uxc3 .main-content .footer{background:#fafafa}:host.uxc3 .main-content .footer .version{text-align:right}:host.uxc3 .open-sidebar info-sidebar,:host.uxc3 .open-sidebar info-topbar{left:0}@media screen and (max-width:991px){:host.uxc3 .open-sidebar info-sidebar .sidebar-overlay{opacity:.5;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out 0s;visibility:visible}}@media screen and (max-width:991px){:host.uxc3 .open-sidebar info-sidebar .site-sidebar:before,:host.uxc3 .open-sidebar info-sidebar .sub-menu{display:block!important}}:host.uxc2 .main-content{padding:131px 0 0 240px;transition:padding .2s ease-in-out}@media (max-width:991px){:host.uxc2 .main-content{padding-left:0}}@media (max-width:543px){:host.uxc2 .main-content{padding-top:123px}}:host.uxc2 info-topbar{transition:left .2s ease-in-out}@media (max-width:991px){:host.uxc2 info-topbar{width:100%}}:host.uxc2 .open-sidebar info-topbar{left:240px}:host.uxc2 .open-sidebar info-sidebar{left:0}@media (max-width:991px){:host.uxc2 .open-sidebar info-sidebar /deep/ .sidebar-overlay{opacity:1;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out 0s;visibility:visible}}:host.uxc2 .footer{align-items:center;background:rgba(0,0,0,.1);bottom:0;display:flex;font-size:.8rem;height:3.14286rem;justify-content:space-between;position:-webkit-sticky;position:sticky;width:100%;z-index:9997}@media (max-width:543px){:host.uxc2 .footer{font-size:.7rem}}:host.uxc2 .footer .copyright,:host.uxc2 .footer .version{padding:10px 22px}@media (max-width:543px){:host.uxc2 .footer .copyright{padding-right:0}}:host.uxc2 .footer .version{color:#000;text-align:right}"]}]}],Lt.ctorParameters=function(){return[{type:J},{type:Q},{type:i.Router},{type:rt},{type:ut},{type:e.Renderer2},{type:e.ElementRef}]},Lt.propDecorators={opened:[{type:e.Input}],version:[{type:e.Input}],messages:[{type:e.Input}],themes:[{type:e.Input}],languages:[{type:e.Input}],profileurl:[{type:e.Input}],loginurl:[{type:e.Input}],menuapi:[{type:e.Input}],menumethod:[{type:e.Input}],activemenubyurl:[{type:e.Input}],loggeduserapi:[{type:e.Input}],loggedusermethod:[{type:e.Input}],notificationapi:[{type:e.Input}],notificationgetmethod:[{type:e.Input}],notificationpostmethod:[{type:e.Input}],notificationverifymethod:[{type:e.Input}],notificationverifyenabled:[{type:e.Input}],fastsearchform:[{type:e.Input}],fastsearchformwidth:[{type:e.Input}],fastsearchtitle:[{type:e.Input}],setthemeonchangecompany:[{type:e.Input}],shortcutapi:[{type:e.Input}],ongetnotification:[{type:e.Output}],onverifynotification:[{type:e.Output}],topbar:[{type:e.ViewChild,args:["topbar"]}]};var Nt=function(){function t(t,n,i,o,a,s,r,l,c){this._dataAcessService=t,this._authentication=n,this._themeService=i,this._session=o,this._platform=a,this._lastSearch=s,this._router=r,this._renderer=l,this._element=c,this.api=null,this.method="GetMenu",this.activemenubyurl=!1,this.onchangestate=new e.EventEmitter,this.loading=!1,this.menu=[],this.openSubmenu="",this.menuAtivo="Dashboard"}return t.prototype.ngOnInit=function(){var t=this;this._authentication.isLogged()&&null!=this.api&&(this._renderer.addClass(this._element.nativeElement,"uxc"+this._platform.Config.ux),this.loading=!0,this._dataAcessService.get(this.api,this.method).subscribe((function(e){e.success&&(t.menu=e.data,t._platform.Menu=e.data,t._authentication.definePaginaAtiva(t._router.url),t.monitorarUrl()),t.loading=!1})))},t.prototype.toggle=function(t,e){if(t.preventDefault(),e.Enabled){if(!e.Active)for(var n=0;n<this.menu.length;n++)this.menu[n].Active=!1;e.Active=!e.Active}},t.prototype.access=function(t){this.menuAtivo=t,this.openSubmenu="",this.resetLastSearch()},t.prototype.monitorarUrl=function(){var t=this;this.activemenubyurl&&(this.ativarMenu(this._router.url),this._router.events.subscribe((function(e){e instanceof i.NavigationStart&&t.ativarMenu(e.url)})))},t.prototype.ativarMenu=function(t){var e=this.menu.find((function(e){return e.Routing==t}));null!=e&&(this.menuAtivo=e.Title)},t.prototype.toggleSubmenu=function(t){this.openSubmenu=this.openSubmenu==t?"":t},t.prototype.resetLastSearch=function(){this._lastSearch.model=null,this._lastSearch.url=""},t.prototype.changeSidebar=function(){this.onchangestate.emit()},t.prototype.toggleSidebar=function(){this._themeService.setMenuMin()},t}();Nt.decorators=[{type:e.Component,args:[{selector:"info-sidebar",template:'<ng-container *ngIf="_platform.Config.ux >= 3">\r\n <div class="site-sidebar" [ngClass]="{ \'opened\': openSubmenu }" >\r\n <nav>\r\n <div class="main-menu">\r\n <a id="menu-min-icon" (click)="toggleSidebar()">\r\n <mat-icon [ngClass]="{ \'min\': _platform.MenuMin }">chevron_right</mat-icon>\r\n </a>\r\n\r\n <ul *ngIf="menu">\r\n \r\n <li class="menu-item" *ngFor="let m of menu" [ngClass]="{ \'active\': menuAtivo == m.Title, \'disabled\': !m.Enabled, \'opened\': openSubmenu == m.Title }">\r\n \r\n <a *ngIf="m.Sub == null" [routerLink]="m.Routing" class="item-link" (click)="access(m.Title);tooltip.hide();" >\r\n <mat-icon #tooltip="matTooltip" [matTooltip]="m.Title | translate" [matTooltipDisabled]="!_platform.MenuMin" matTooltipPosition="right" [matTooltipShowDelay]="600" matTooltipClass="mat-tooltip">{{ m.Icon }}</mat-icon>\r\n <label class="title">{{ m.Title | translate }}</label>\r\n </a>\r\n \r\n <ng-container *ngIf="m.Sub != null">\r\n <a class="item-link" (click)="toggleSubmenu(m.Title);tooltip.hide();" >\r\n <mat-icon #tooltip="matTooltip" [matTooltip]="m.Title | translate" [matTooltipDisabled]="!_platform.MenuMin" matTooltipPosition="right" [matTooltipShowDelay]="600" matTooltipClass="mat-tooltip" >{{ m.Icon }}</mat-icon>\r\n <label class="title">{{ m.Title | translate }}</label>\r\n </a>\r\n \r\n <div class="sub-menu">\r\n <h4>{{ m.Title | translate }}</h4>\r\n \r\n <ul>\r\n <li *ngFor="let s of m.Sub">\r\n <a [routerLink]="s.Routing" class="item-link" (click)="changeSidebar();access(m.Title);" >{{ s.Title | translate }}</a>\r\n </li>\r\n </ul>\r\n </div>\r\n </ng-container>\r\n </li>\r\n </ul>\r\n </div>\r\n </nav>\r\n <div class="sub-menu-overlay" (click)="openSubmenu = \'\'"></div>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf="_platform.Config.ux <= 2">\r\n <div class="site-sidebar">\r\n\r\n <div class="logo">\r\n <a href="/" >\r\n <i class="logo-img"></i>\r\n </a>\r\n </div>\r\n\r\n <div class="info">\r\n <span>{{ _session.Usuario }}</span>\r\n <small>{{ _session.Perfil }}</small>\r\n </div>\r\n\r\n <nav>\r\n <div class="main-menu">\r\n <section class="loading-bar" *ngIf="loading">\r\n <mat-progress-bar color="primary" mode="indeterminate"></mat-progress-bar>\r\n </section>\r\n <ul *ngIf="menu">\r\n <li class="menu-item" *ngFor="let m of menu" [ngClass]="{ \'has-sub\': m.Sub != null, \'active\': m.Active, \'menu-item-group\': m.Group, \'disabled\': !m.Enabled }">\r\n \r\n \x3c!-- Grupos --\x3e\r\n <span class="group-title" *ngIf="m.Group">{{ m.Title }} </span>\r\n \r\n \x3c!-- Itens --\x3e\r\n <a href="#" [routerLink]="m.Routing" class="item-link" *ngIf="!m.Group && m.Sub == null && m.Enabled" (click)="toggle($event, m);resetLastSearch();">\r\n <mat-icon>{{ m.Icon }}</mat-icon>{{ m.Title | translate }}\r\n </a>\r\n \r\n <a class="item-link" *ngIf="!m.Group && m.Sub == null && !m.Enabled">\r\n <mat-icon>{{ m.Icon }}</mat-icon>{{ m.Title | translate }} \r\n </a>\r\n \r\n \x3c!-- Item com submenu --\x3e\r\n <a href="#" class="item-link" *ngIf="!m.Group && m.Sub != null" (click)="toggle($event, m)">\r\n <mat-icon class="icon">{{ m.Icon }}</mat-icon>{{ m.Title | translate }}\r\n <i class="caret fa fa-angle-right" *ngIf="m.Sub"></i>\r\n </a>\r\n \r\n \x3c!-- Sub Menu --\x3e\r\n <ul class="sub" *ngIf="!m.Group && m.Sub != null">\r\n <li class="menu-item" *ngFor="let s of m.Sub">\r\n <a [routerLink]="s.Routing" (click)="resetLastSearch()" class="item-link" >{{ s.Title | translate }}</a>\r\n </li>\r\n </ul>\r\n </li>\r\n </ul>\r\n </div>\r\n </nav>\r\n </div>\r\n</ng-container>\r\n\r\n<div class="sidebar-overlay"></div>',styles:[':host.uxc3{display:block;height:100%;left:0;position:fixed;top:80px;transition:left .2s ease-in-out,width .2s ease-in-out;width:240px;z-index:9997}@media screen and (max-width:991px){:host.uxc3{left:-240px;top:180px}}:host.uxc3 .site-sidebar{display:flex;flex-direction:column;height:100%;min-height:60px;width:100%}@media screen and (max-width:991px){:host.uxc3 .site-sidebar{position:relative}:host.uxc3 .site-sidebar:before{top:180px}}:host.uxc3 .site-sidebar:before{content:" ";height:100%;left:240px;position:fixed;top:0;transition:opacity .2s ease-in-out,visibility .2s ease-in-out;visibility:hidden;width:370px;z-index:-1}@media screen and (max-width:991px){:host.uxc3 .site-sidebar:before{display:none}}:host.uxc3 .site-sidebar.opened:before{opacity:1;visibility:visible}:host.uxc3 .site-sidebar.opened .sub-menu-overlay{opacity:.5;visibility:visible}@media screen and (max-width:991px){:host.uxc3 .site-sidebar.opened .sub-menu-overlay{opacity:0!important}}:host.uxc3 .site-sidebar .sub-menu-overlay{height:100%;left:0;opacity:0;position:fixed;top:0;transition:opacity .2s ease-in-out,visibility .2s ease-in-out;visibility:hidden;width:100%;z-index:-2}:host.uxc3 nav{-webkit-overflow-scrolling:touch;display:block;overflow-x:hidden;overflow-y:auto;padding-top:5px}:host.uxc3 nav #menu-min-icon{cursor:pointer;height:20px;position:absolute;right:20px;top:20px;transition:right .2s ease-in-out;width:20px}:host.uxc3 nav #menu-min-icon mat-icon{font-size:20px;height:inherit;transform:rotate(180deg);transition:transform .2s ease-in-out;width:inherit}:host.uxc3 nav #menu-min-icon mat-icon.min{transform:rotate(0deg)}:host.uxc3 nav .main-menu{overflow-y:auto;width:240px}:host.uxc3 nav .main-menu>ul{list-style-type:none;margin:30px 0 0;padding:10px 0 90px}:host.uxc3 nav .main-menu>ul .menu-item{margin-bottom:3px;position:relative}:host.uxc3 nav .main-menu>ul .menu-item:after{bottom:0;content:"";left:-5px;position:absolute;top:0;transition:transform .2s ease-in-out;width:5px}:host.uxc3 nav .main-menu>ul .menu-item>.item-link{-moz-user-select:none;-webkit-touch-callout:none;-webkit-user-select:none;cursor:pointer;display:block;font-size:14px;font-weight:500;padding:5px 5px 10px 20px;position:relative;text-decoration:none;transition:background .2s ease-in-out,color .2s ease-in-out;user-select:none}:host.uxc3 nav .main-menu>ul .menu-item>.item-link .mat-icon{height:auto;margin-right:15px;top:6px}:host.uxc3 nav .main-menu>ul .menu-item>.item-link .title{margin-bottom:0;transition:opacity .2s ease-in-out}:host.uxc3 nav .main-menu>ul .menu-item:hover>.item-link{font-weight:600}:host.uxc3 nav .main-menu>ul .menu-item:hover:after{transform:translateX(4px)}:host.uxc3 nav .main-menu>ul .menu-item.active>.item-link,:host.uxc3 nav .main-menu>ul .menu-item.opened>.item-link{background:transparent;font-weight:600}:host.uxc3 nav .main-menu>ul .menu-item.active:after,:host.uxc3 nav .main-menu>ul .menu-item.opened:after{transform:translateX(4px)}:host.uxc3 nav .main-menu>ul .menu-item.disabled>.item-link{cursor:default;opacity:.5}:host.uxc3 nav .main-menu>ul .menu-item .sub-menu{font-family:Open Sans,sans-serif;left:240px;opacity:0;padding:0 40px;position:fixed;top:100px;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out .2s;visibility:hidden;width:370px}@media screen and (max-width:991px){:host.uxc3 nav .main-menu>ul .menu-item .sub-menu{display:none}}:host.uxc3 nav .main-menu>ul .menu-item .sub-menu h4{font-size:24px;font-weight:500}:host.uxc3 nav .main-menu>ul .menu-item .sub-menu ul{list-style:none;margin:0;padding:0}:host.uxc3 nav .main-menu>ul .menu-item .sub-menu ul li{margin:10px 3px}:host.uxc3 nav .main-menu>ul .menu-item .sub-menu ul li a{cursor:pointer;font-size:14px;font-weight:500;margin:0;padding:5px 0;transition:color .2s ease-in-out}:host.uxc3 nav .main-menu>ul .menu-item .sub-menu ul li a:hover{font-weight:600!important;text-decoration:none!important}:host.uxc3 nav .main-menu>ul .menu-item.opened .sub-menu{opacity:1;visibility:visible}:host.uxc3 .sidebar-overlay{opacity:0;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out .2s;visibility:hidden;width:100%;z-index:-3}:host.uxc2,:host.uxc3 .sidebar-overlay{height:100%;left:0;position:fixed;top:0}:host.uxc2{display:block;transition:left .2s ease-in-out;width:240px;z-index:997}@media (max-width:991px){:host.uxc2{left:-240px}}:host.uxc2 .logo{background:main-color(600);display:block;height:70px}:host.uxc2 .logo a{align-items:flex-end;display:flex;font-family:Open Sans,sans-serif;height:inherit;padding:5px 15px;text-decoration:none}:host.uxc2 .logo a i.logo-img{height:50px;margin:auto;vertical-align:top;width:210px}:host.uxc2 .site-sidebar{display:flex;flex-direction:column;height:100%;min-height:60px;width:100%}@media (max-width:991px){:host.uxc2 .site-sidebar{position:relative;z-index:9999}}:host.uxc2 .site-sidebar .info{background-size:cover;padding:8px 20px}:host.uxc2 .site-sidebar .info span{font-size:1.2em;margin:0}:host.uxc2 .site-sidebar .info label,:host.uxc2 .site-sidebar .info small{display:block}:host.uxc2 .site-sidebar .info p{margin-top:5px}:host.uxc2 .site-sidebar .info p a{cursor:pointer;font-size:.9em}:host.uxc2 .site-sidebar .info p a:hover{text-decoration:underline}:host.uxc2 .sidebar-overlay{height:100%;left:0;opacity:0;position:fixed;top:0;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out .2s;visibility:hidden;width:100%;z-index:9998}:host.uxc2 nav{-webkit-overflow-scrolling:touch;display:block;overflow-x:hidden;overflow-y:auto}:host.uxc2 nav .main-menu{width:240px}:host.uxc2 nav .main-menu>ul{list-style-type:none;margin:0;padding:10px 0 22px}:host.uxc2 nav .main-menu>ul .menu-item{margin-bottom:3px;position:relative}:host.uxc2 nav .main-menu>ul .menu-item:after{bottom:0;content:"";position:absolute;right:100%;top:0;transition:transform .2s ease-in-out;width:4px}:host.uxc2 nav .main-menu>ul .menu-item .item-link{display:block;font-size:1rem;font-weight:400;padding:11px 22px;position:relative;text-decoration:none;transition:background .2s ease-in-out,color .2s ease-in-out}:host.uxc2 nav .main-menu>ul .menu-item .item-link .item-badge{border-radius:8px;float:right;font-size:10px;line-height:1;margin-top:2px;padding:2px 6px 4px}:host.uxc2 nav .main-menu>ul .menu-item .item-link .icon{transition:color .2s ease-in-out;width:22px}:host.uxc2 nav .main-menu>ul .menu-item .item-link .mat-icon{font-size:18px;height:auto;top:4px;width:25px}:host.uxc2 nav .main-menu>ul .menu-item.menu-item-group:after{display:none}:host.uxc2 nav .main-menu>ul .menu-item .group-title{color:rgba(0,0,0,.6);display:block;font-size:.8rem;font-weight:600;padding:6px 22px 5px;text-transform:uppercase}:host.uxc2 nav .main-menu>ul .menu-item .sub{list-style-type:none;margin:0;max-height:0;overflow:hidden;padding:0;transition:max-height .1s ease-in-out}:host.uxc2 nav .main-menu>ul .menu-item .sub .menu-item .item-link{font-size:.9em;padding:5px 22px 6px 48px}:host.uxc2 nav .main-menu>ul .menu-item .sub .menu-item:first-child>.item-link:before{border-top:1px solid transparent;content:"";left:0;position:absolute;right:0;top:0;transition:border .2s ease-in-out}:host.uxc2 nav .main-menu>ul .menu-item.active:after,:host.uxc2 nav .main-menu>ul .menu-item:hover:not(.disabled):after{transform:translateX(4px)}:host.uxc2 nav .main-menu>ul .menu-item.disabled>.item-link{cursor:default;opacity:.5}:host.uxc2 nav .main-menu>ul .menu-item.has-sub,:host.uxc2 nav .main-menu>ul .menu-item.has-sub>.item-link{position:relative}:host.uxc2 nav .main-menu>ul .menu-item.has-sub>.item-link .caret{margin-top:.55rem;position:absolute;right:13px;top:6px;transition:transform .1s ease-in-out}:host.uxc2 nav .main-menu>ul .menu-item.has-sub.active>.item-link .caret{transform:rotate(90deg)}:host.uxc2 nav .main-menu>ul .menu-item.has-sub.active>.sub{max-height:1000px}']}]}],Nt.ctorParameters=function(){return[{type:rt},{type:lt},{type:ut},{type:Q},{type:J},{type:$},{type:i.Router},{type:e.Renderer2},{type:e.ElementRef}]},Nt.propDecorators={api:[{type:e.Input}],method:[{type:e.Input}],activemenubyurl:[{type:e.Input}],onchangestate:[{type:e.Output}]};var zt=function(){function t(t,n,i,o,a,s,r,l,c,u,d){this._translateService=t,this._authenticationService=n,this._dataService=i,this._themeService=o,this._router=a,this._dialog=s,this._session=r,this._platform=l,this._modal=c,this._renderer=u,this._element=d,this.opened=!1,this.languages=[],this.themes=[],this.notificationapi=null,this.notificationgetmethod="Get",this.notificationpostmethod="PostNotification",this.notificationverifymethod="Verify",this.notificationverifyenabled=!0,this.fastsearchform=null,this.fastsearchformwidth=1200,this.fastsearchtitle="PesquisaRapidaCarteira",this.profileurl="",this.setthemeonchangecompany=!1,this.onchangestate=new e.EventEmitter,this.ongetnotification=new e.EventEmitter,this.onverifynotification=new e.EventEmitter,this.modalRef=null,this.loading=!1,this.prodution=!1,this.notifications=new Z,this.topMenu={empresa:!1,tema:!1,idioma:!1,notificacao:!1,calendario:!1}}return t.prototype.ngOnInit=function(){this._renderer.addClass(this._element.nativeElement,"uxc"+this._platform.Config.ux),this._platform.Config.topMenu&&this._renderer.addClass(this._element.nativeElement,"topmenu"),this.prodution=this._platform.Config.production,this.getNotifications()},t.prototype.setCompany=function(t){var e=this;this._authenticationService.trocarEmpresa(this._session.Login,t.Id).subscribe((function(n){n.success?(document.body.setAttribute("loading","true"),e._session.Permissoes=[],e._session.EmpresaId=t.Id,e._session.Empresa=t.Nome,e._session.TemaId=t.TemaId,e._themeService.setThemeByLoggedCompany(),localStorage.removeItem("Dashboard"),localStorage.setItem(e._platform.SessionKey,JSON.stringify(e._session)),e._router.navigateByUrl("").then((function(t){return location.reload()}))):e._authenticationService.logout()}),(function(t){return e._authenticationService.logout()}))},t.prototype.setLanguage=function(t){this._translateService.set(t)},t.prototype.setTheme=function(t){this._themeService.setTheme(t)},t.prototype.toggleMode=function(){this._themeService.setModePrime()},t.prototype.openFastSearch=function(){var t=this;this.close(),null==this.modalRef&&(this.modalRef=this._modal.open(this.fastsearchform,{disableClose:!0,width:this.fastsearchformwidth+"px"}),this.modalRef.keydownEvents().subscribe((function(e){t.loading||"Escape"!=e.key&&"Esc"!=e.key&&"27"!=e.key||t.modalRef.close()})),this.modalRef.afterClosed().subscribe((function(e){t.modalRef=null})))},t.prototype.open=function(t){this.topMenu.empresa="empresa"==t,this.topMenu.tema="tema"==t,this.topMenu.idioma="idioma"==t,this.topMenu.notificacao="notificacao"==t,this.topMenu.calendario="calendario"==t},t.prototype.close=function(){this.topMenu.empresa=!1,this.topMenu.tema=!1,this.topMenu.idioma=!1,this.topMenu.notificacao=!1,this.topMenu.calendario=!1},t.prototype.openSidebar=function(){this.opened=!this.opened,this.onchangestate.emit()},t.prototype.getNotifications=function(){var t=this;this._authenticationService.isLogged()&&null!=this.notificationapi&&this._dataService.get(this.notificationapi,this.notificationgetmethod,null).subscribe((function(e){e.success&&(t.notifications.Count=e.data.Count,t.notifications.Itens=e.data.Itens,t.notificationverifyenabled&&t.verifyNotifications(),t.ongetnotification.emit(t.notifications))}))},t.prototype.verifyNotifications=function(){var t=this;this._authenticationService.isLogged()&&null!=this.notificationapi&&this._dataService.get(this.notificationapi,this.notificationverifymethod).subscribe((function(e){-1==e.data?t.logout():t.notifications.Count==e.data?setTimeout((function(){t.verifyNotifications()}),15e3):t.getNotifications(),t.onverifynotification.emit(Object.assign(Object.assign({},t.notifications),{VerifyCount:e.data}))}))},t.prototype.setNotificationStatus=function(t,e,n){var i=this;0!=this.notifications.Count&&this._dataService.post(this.notificationapi,{Id:"00000000-0000-0000-0000-000000000000",Acesso:e,Leitura:t,Exclusao:n},this.notificationpostmethod).subscribe((function(t){return i.notifications.Count=0}))},t.prototype.navigate=function(t){this._router.navigate([t.replace("/#","")])},t.prototype.logout=function(){var t=this;this._dialog.YesOrNo("DesejaRealmenteSair").subscribe((function(e){e.button==et.Yes&&t._authenticationService.logout()}))},t}();zt.decorators=[{type:e.Component,args:[{selector:"info-topbar",template:'<ng-container *ngIf="_platform.Config.ux >= 3">\r\n <div class="site-navbar">\r\n <a class="logo" >\r\n <i class="logo-img"></i>\r\n <i class="logo-img-resp"></i>\r\n </a>\r\n \r\n <div class="nav-items">\r\n <div class="nav-item usuario-logado">\r\n <dl (click)="navigate(profileurl)">\r\n <dt>{{ _session.Perfil }}</dt>\r\n <dd>{{ _session.Usuario }}</dd>\r\n <mat-icon class="icon-out">verified</mat-icon>\r\n </dl>\r\n </div>\r\n \r\n <div class="nav-item selecao-empresa" [ngClass]="{ \'opened\' : topMenu.empresa }">\r\n <dl (click)="open(\'empresa\')">\r\n <dt>{{ \'Empresa\' | translate }}</dt>\r\n <dd>{{ _session.Empresa }}</dd>\r\n <mat-icon class="icon-out">shield</mat-icon>\r\n </dl>\r\n \r\n <div class="menu-lateral-direita">\r\n <mat-icon class="fechar" (click)="close()">close</mat-icon>\r\n <h4>{{ \'Empresas\' | translate }}</h4>\r\n \r\n <ul class="empresas">\r\n <li *ngFor="let company of _session.Empresas" >\r\n <a (click)="setCompany(company); divModal.click();">{{ company.Nome }}</a>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n \r\n <div class="nav-item" *ngIf="fastsearchform">\r\n <button mat-icon-button (click)="openFastSearch()" [matTooltip]="fastsearchtitle | translate">\r\n <mat-icon>search</mat-icon>\r\n </button>\r\n </div>\r\n \r\n <div class="nav-item" [ngClass]="{ \'opened\' : topMenu.notificacao }" *ngIf="notificationapi">\r\n <button mat-icon-button (click)="setNotificationStatus(true, false, false);open(\'notificacao\')" [matTooltip]="\'Notificacoes\' | translate"><mat-icon>notifications_none</mat-icon>\r\n <span class="badge" *ngIf="notifications.Count > 0">{{ notifications.Count }}</span>\r\n </button>\r\n \r\n <div class="menu-lateral-direita" >\r\n <mat-icon class="fechar" (click)="close()">close</mat-icon>\r\n <h4>{{ \'Notificacoes\' | translate }}</h4>\r\n \r\n <ul>\r\n <li *ngIf="notifications.Itens.length == 0">\r\n <a style="cursor: default;">\r\n <mat-icon>notifications</mat-icon>\r\n <div class="content">\r\n <span>{{ \'TNotificacoesNenhuma\' | translate }}</span>\r\n </div>\r\n </a>\r\n </li>\r\n \r\n <ng-container *ngIf="notifications.Itens.length > 0">\r\n <li *ngFor="let item of notifications.Itens">\r\n <a (click)="navigate(item.Url);close()">\r\n <dl>\r\n <dt>{{ \'Dia\' | translate }} {{ item.Date }}</dt>\r\n <dd [innerHtml]="item.Description | translate"></dd>\r\n </dl>\r\n </a>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </div>\r\n </div>\r\n \r\n \x3c!-- <div class="nav-item">\r\n <button mat-icon-button (click)="alternarModo()" [matTooltip]="\'AlternarModo\' | translate"><mat-icon>brightness_6</mat-icon></button>\r\n </div> --\x3e\r\n \r\n <div class="nav-item selecao-tema" [ngClass]="{ \'opened\': topMenu.tema }" *ngIf="!prodution && themes.length > 0">\r\n <button mat-icon-button (click)="open(\'tema\')" [matTooltip]="\'Tema\' | translate"><mat-icon>invert_colors</mat-icon></button>\r\n \r\n <div class="menu-lateral-direita">\r\n <mat-icon class="fechar" (click)="close()">close</mat-icon>\r\n <h4>{{ \'Temas\' | translate }}</h4>\r\n \r\n <ul class="temas">\r\n <li *ngFor="let theme of themes">\r\n <a (click)="setTheme(theme.name); divModal.click();"> {{ theme.description | translate }}</a>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n \r\n <div class="nav-item" *ngIf="_platform.Config.enabledPrime">\r\n <button mat-icon-button [matTooltip]="(_platform.ModoPrime ? \'ModoPadrao\' : \'Prime\') | translate" (click)="toggleMode()"><mat-icon>brightness_6</mat-icon></button>\r\n </div>\r\n \r\n <div class="nav-item selecao-idioma" [ngClass]="{ \'opened\': topMenu.idioma }" *ngIf="languages.length > 0">\r\n <button mat-icon-button (click)="open(\'idioma\')" [matTooltip]="\'Idioma\' | translate"><mat-icon>public</mat-icon></button>\r\n \r\n <div class="menu-lateral-direita">\r\n <mat-icon class="fechar" (click)="close()">close</mat-icon>\r\n <h4>{{ \'Idiomas\' | translate }}</h4>\r\n \r\n <ul class="idiomas">\r\n <li *ngFor="let lang of languages">\r\n <a (click)="setLanguage(lang.lang); divModal.click();">{{ lang.name | translate }}</a>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n \r\n <div class="nav-item">\r\n <button mat-icon-button [matTooltip]="\'Sair\' | translate" (click)="logout()"><mat-icon>power_settings_new</mat-icon></button>\r\n </div>\r\n \r\n <div class="items-overlay" (click)="close()" #divModal></div>\r\n </div>\r\n \r\n <div class="navbar-button" [ngClass]="{ \'open\' : opened }" (click)="openSidebar()">\r\n <span></span>\r\n <span></span>\r\n <span></span>\r\n <span></span>\r\n <span></span>\r\n <span></span>\r\n <sub>{{ \'Menu\' | translate }}</sub>\r\n </div>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf="_platform.Config.ux <= 2">\r\n <div class="site-navbar">\r\n <div class="sessao-clone text-lightgray" *ngIf="_session.Clone">\r\n <div><label>({{ \'ModoClone\' | translate }})</label></div>\r\n </div>\r\n\r\n <div class="navbar-button" [ngClass]="{ \'open\' : opened }" (click)="openSidebar()">\r\n <span></span>\r\n <span></span>\r\n <span></span>\r\n <span></span>\r\n <span></span>\r\n <span></span>\r\n </div>\r\n\r\n <h1 id="page-title" class="page-title" *ngIf="_platform.PaginaAtiva">\r\n <mat-icon>{{ _platform.PaginaAtiva.Icone }}</mat-icon> {{ _platform.PaginaAtiva.Titulo | translate }}\r\n </h1>\r\n\r\n <div class="nav-items">\r\n <div class="nav-item user-profile" [ngClass]="{ \'opened\' : topMenu.empresa }">\r\n <button mat-button (click)="open(\'empresa\')">\r\n <mat-icon>fingerprint</mat-icon>\r\n <div class="name">\r\n <label>{{ "Empresa" | translate }}</label>\r\n <span>{{ _session.Empresa }}</span>\r\n </div>\r\n </button>\r\n\r\n <div class="dropdown-menu">\r\n <h4 class="menu-title">{{ \'Empresa\' | translate }}</h4>\r\n\r\n <ul class="company">\r\n <li *ngFor="let company of _session.Empresas" >\r\n <a (click)="setCompany(company); divModal.click();">{{ company.Nome }}</a>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n\r\n <div class="nav-item" [ngClass]="{ \'opened\' : topMenu.notificacao }" *ngIf="notificationapi">\r\n <button mat-icon-button (click)="setNotificationStatus(true, false, false);open(\'notificacao\')" [matTooltip]="\'Notificacoes\' | translate"><mat-icon>notifications_none</mat-icon>\r\n <span class="badge" *ngIf="notifications.Count > 0">{{ notifications.Count }}</span>\r\n </button>\r\n\r\n <div class="dropdown-menu">\r\n <h4 class="menu-title">{{ \'Notificacoes\' | translate }}</h4>\r\n\r\n <ul>\r\n <li *ngIf="notifications.Itens.length == 0">\r\n <a style="cursor: default;">\r\n <mat-icon>notifications_off</mat-icon>\r\n <div class="content">\r\n <span>{{ \'TNotificacoesNenhuma\' | translate }}</span>\r\n </div>\r\n </a>\r\n </li>\r\n\r\n <ng-container *ngIf="notifications.Itens.length > 0">\r\n <li *ngFor="let item of notifications.Itens">\r\n <a (click)="navigate(item.Url);close()">\r\n <mat-icon>{{ item.Icon }}</mat-icon>\r\n <div class="content">\r\n <span class="desc" [innerHtml]="item.Description | translate"></span>\r\n <span class="date">{{ item.Date }}</span>\r\n </div>\r\n </a>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </div>\r\n </div>\r\n\r\n <div class="nav-item" [ngClass]="{ \'opened\': topMenu.idioma }" *ngIf="languages.length > 0">\r\n <button mat-icon-button (click)="open(\'idioma\')" [matTooltip]="\'Idioma\' | translate"><mat-icon>public</mat-icon></button>\r\n <div class="dropdown-menu">\r\n <h4 class="menu-title">{{ \'Idioma\' | translate }}</h4>\r\n <ul class="languages">\r\n <li *ngFor="let lang of languages">\r\n <a (click)="setLanguage(lang.lang); divModal.click();">{{ lang.name | translate }}</a>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n\r\n <div class="nav-item" [ngClass]="{ \'opened\': topMenu.tema }" *ngIf="!prodution && themes.length > 0">\r\n <button mat-icon-button (click)="open(\'tema\')" [matTooltip]="\'Tema\' | translate"><mat-icon>invert_colors</mat-icon></button>\r\n <div class="dropdown-menu">\r\n <h4 class="menu-title">{{ \'Temas\' | translate }}</h4>\r\n <ul class="themes">\r\n <li *ngFor="let theme of themes">\r\n <a (click)="setTheme(theme.name); divModal.click();"> {{ theme.description | translate }}</a>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n \r\n <div class="nav-item" *ngIf="fastsearchform">\r\n <button mat-icon-button (click)="openFastSearch()" [matTooltip]="fastsearchtitle | translate">\r\n <mat-icon>search</mat-icon>\r\n </button>\r\n </div>\r\n\r\n <div class="nav-item" *ngIf="profileurl != \'\'">\r\n <button mat-icon-button [matTooltip]="\'MeuPerfil\' | translate" [routerLink]="profileurl"><mat-icon>person</mat-icon></button>\r\n </div>\r\n\r\n <div class="nav-item">\r\n <button mat-icon-button [matTooltip]="\'Sair\' | translate" (click)="logout()"><mat-icon>power_settings_new</mat-icon></button>\r\n </div>\r\n\r\n <div class="items-overlay" (click)="close()" #divModal></div>\r\n </div>\r\n </div>\r\n</ng-container>\r\n\r\n<section class="loading-bar" *ngIf="loading"><mat-progress-bar color="primary" mode="indeterminate"></mat-progress-bar></section>\r\n<div class="block" *ngIf="loading"></div>',styles:[':host.topmenu{border-bottom-width:0!important;box-shadow:none!important}:host.uxc3{display:block;height:80px;left:0;position:fixed;right:0;top:0;transition:left .2s ease-in-out;z-index:9998}@media screen and (max-width:991px){:host.uxc3{left:0}:host.uxc3 .nav-items{width:100%}:host.uxc3 .logo{position:absolute;top:17px}:host.uxc3 .logo .logo-img{display:none!important}:host.uxc3 .logo .logo-img-resp{display:block!important;height:45px!important}:host.uxc3 .usuario-logado{border-right:none!important;left:-100%;margin:0!important;padding-left:25px!important;padding-top:15px!important;position:absolute;top:70px!important;transition:left .2s ease-in-out;width:calc(100% + 6px)}:host.uxc3 .usuario-logado.menu-aberto{left:0}:host.uxc3 .usuario-logado dl{text-align:left!important}:host.uxc3 .usuario-logado dl dt{display:inline-block;font-size:14px}:host.uxc3 .usuario-logado dl dd{display:inline-block;margin-right:5px;padding-right:20px;position:relative}:host.uxc3 .usuario-logado dl dd:after{content:"-";height:10px;position:absolute;right:0;top:2px;width:10px}:host.uxc3 .selecao-empresa{left:-100%;margin:0!important;padding:5px 15px 6px 25px;position:absolute;top:115px!important;transition:left .2s ease-in-out;width:calc(100% + 6px)}:host.uxc3 .selecao-empresa.menu-aberto{left:0}:host.uxc3 .selecao-empresa button,:host.uxc3 .selecao-empresa dl{width:100%!important}}:host.uxc3 .site-navbar{align-items:center;display:flex;flex-wrap:nowrap;height:100%;justify-content:space-between;padding:0 22px}@media screen and (max-width:991px){:host.uxc3 .site-navbar{flex-wrap:wrap}}:host.uxc3 .site-navbar .logo{display:block;height:60px;width:500px}:host.uxc3 .site-navbar .logo .logo-img{display:block;height:100%;width:100%}:host.uxc3 .site-navbar .logo .logo-img-resp{display:none;height:100%;width:100%}:host.uxc3 .site-navbar .navbar-button{cursor:pointer;display:none;height:24px;left:70px;margin:0;position:absolute;top:20px;transform:rotate(0deg);width:35px}@media screen and (max-width:991px){:host.uxc3 .site-navbar .navbar-button{display:block}}:host.uxc3 .site-navbar .navbar-button sub{bottom:-10px;position:absolute;text-transform:uppercase}:host.uxc3 .site-navbar .navbar-button span{display:block;height:3px;opacity:1;position:absolute;top:10px;transform:rotate(0deg);transition:.25s ease-in-out;width:50%}:host.uxc3 .site-navbar .navbar-button span:nth-child(2n){left:50%}:host.uxc3 .site-navbar .navbar-button span:nth-child(odd){left:0}:host.uxc3 .site-navbar .navbar-button span:first-child,:host.uxc3 .site-navbar .navbar-button span:nth-child(2){top:0}:host.uxc3 .site-navbar .navbar-button span:nth-child(3),:host.uxc3 .site-navbar .navbar-button span:nth-child(4){top:10px}:host.uxc3 .site-navbar .navbar-button span:nth-child(5),:host.uxc3 .site-navbar .navbar-button span:nth-child(6){top:20px}:host.uxc3 .site-navbar .navbar-button.open span:first-child,:host.uxc3 .site-navbar .navbar-button.open span:nth-child(6){transform:rotate(45deg)}:host.uxc3 .site-navbar .navbar-button.open span:nth-child(2),:host.uxc3 .site-navbar .navbar-button.open span:nth-child(5){transform:rotate(-45deg)}:host.uxc3 .site-navbar .navbar-button.open span:first-child{left:2px;top:6px}:host.uxc3 .site-navbar .navbar-button.open span:nth-child(2){left:calc(50% - 7px);top:6px}:host.uxc3 .site-navbar .navbar-button.open span:nth-child(3){left:-50%;opacity:0}:host.uxc3 .site-navbar .navbar-button.open span:nth-child(4){left:100%;opacity:0}:host.uxc3 .site-navbar .navbar-button.open span:nth-child(5){left:2px;top:15px}:host.uxc3 .site-navbar .navbar-button.open span:nth-child(6){left:calc(50% - 7px);top:15px}:host.uxc3 dl{line-height:20px;text-transform:none;transition:border .2s ease-in-out}:host.uxc3 dl dt{font-size:10px;font-weight:500;transition:color .2s ease-in-out}:host.uxc3 dl dd{font-size:14px;font-weight:600;margin-bottom:0;position:relative;top:0;transition:color .2s ease-in-out}:host.uxc3 .selecao-empresa,:host.uxc3 .usuario-logado{cursor:pointer;padding:5px 20px 5px 0;top:-1px}:host.uxc3 .selecao-empresa dl,:host.uxc3 .usuario-logado dl{margin:0;top:5px}:host.uxc3 .selecao-empresa dl mat-icon,:host.uxc3 .usuario-logado dl mat-icon{font-size:22px;position:absolute;right:0;text-align:center;top:17px}:host.uxc3 .usuario-logado{margin:0!important;padding-left:40px}:host.uxc3 .usuario-logado dl{text-align:right}:host.uxc3 .usuario-logado dl mat-icon{left:0}:host.uxc3 .selecao-empresa{margin-right:40px!important;padding-left:20px;padding-right:40px}:host.uxc3 .nav-items{display:block;height:100%;margin:0 -5px;text-align:right}@media screen and (min-width:544px){:host.uxc3 .nav-items{width:100%}}@media screen and (max-width:991px){:host.uxc3 .nav-items{display:block;position:absolute;right:10px;top:0}}:host.uxc3 .nav-items .nav-item{align-items:center;display:inline-block;margin:15px 3px 0 0;text-align:left}@media screen and (min-width:544px){:host.uxc3 .nav-items .nav-item{position:relative}}:host.uxc3 .nav-items .nav-item .mat-button,:host.uxc3 .nav-items .nav-item .mat-icon-button{cursor:pointer;min-width:40px;padding:0;position:relative;transition:color .2s ease-in-out}:host.uxc3 .nav-items .nav-item .mat-button .mat-button-wrapper,:host.uxc3 .nav-items .nav-item .mat-icon-button .mat-button-wrapper{display:flex;height:100%;padding:5px;width:100%}:host.uxc3 .nav-items .nav-item .mat-button .mat-button-wrapper .mat-icon,:host.uxc3 .nav-items .nav-item .mat-icon-button .mat-button-wrapper .mat-icon{font-size:24px;height:30px;line-height:30px;vertical-align:top;width:30px}:host.uxc3 .nav-items .nav-item .mat-button .mat-button-wrapper .mat-icon .marker,:host.uxc3 .nav-items .nav-item .mat-icon-button .mat-button-wrapper .mat-icon .marker{border-radius:50%;height:6px;position:absolute;right:0;top:0;width:6px}:host.uxc3 .nav-items .nav-item .mat-button .mat-button-wrapper .badge,:host.uxc3 .nav-items .nav-item .mat-icon-button .mat-button-wrapper .badge{background:#af1b11;border-radius:8px;color:#fff;font-size:10px;line-height:16px;padding:0 5px;position:absolute;right:0;top:0}:host.uxc3 .nav-items .nav-item .mat-button .mat-button-focus-overlay,:host.uxc3 .nav-items .nav-item .mat-button .mat-button-ripple,:host.uxc3 .nav-items .nav-item .mat-icon-button .mat-button-focus-overlay,:host.uxc3 .nav-items .nav-item .mat-icon-button .mat-button-ripple{display:none}:host.uxc3 .nav-items .nav-item .menu-lateral-direita{display:none;height:100%;padding:0;position:fixed;right:0;top:0;width:420px;z-index:9999}@media screen and (max-width:991px){:host.uxc3 .nav-items .nav-item .menu-lateral-direita{left:auto;margin-left:0;right:0}}@media screen and (max-width:543px){:host.uxc3 .nav-items .nav-item .menu-lateral-direita{left:0;margin-left:0;width:100%}}:host.uxc3 .nav-items .nav-item .menu-lateral-direita:before{border:10px solid transparent;bottom:100%;content:"";left:50%;margin:0 0 0 -10px;position:absolute}@media screen and (max-width:991px){:host.uxc3 .nav-items .nav-item .menu-lateral-direita:before{left:100%;margin-left:-34px}}@media screen and (max-width:543px){:host.uxc3 .nav-items .nav-item .menu-lateral-direita:before{display:none}}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>.fechar{cursor:pointer;font-size:28px;opacity:.8;position:absolute;right:30px;top:30px}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>.fechar:hover{opacity:1}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>h4{font-size:24px;font-weight:500;margin:30px 0 30px 38px}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>ul{border-radius:0 0 4px 4px;height:calc(100% - 170px);list-style-type:none;margin:0;overflow-y:auto;padding:0}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>ul>li:hover{background:rgba(0,0,0,.05)}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>ul>li.disabled>a{cursor:default!important;opacity:.4}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>ul>li:last-child{border-bottom:0}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>ul>li dl{line-height:20px;margin-bottom:0;padding:5px 0}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>ul>li dl dt{font-size:13px;font-weight:600;margin-bottom:5px}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>ul>li dl dd{font-size:14px;font-weight:500}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>ul>li>a{align-items:center;cursor:pointer;display:flex;font-size:14px;font-weight:500;padding:10px 40px!important;padding:11px;transition:background .2s ease-in-out}:host.uxc3 .nav-items .nav-item .menu-lateral-direita>ul>li>a .mat-icon{background:hsla(0,0%,100%,.1);border-radius:50%;font-size:22px;height:auto;margin-right:11px;padding:7px;width:auto}:host.uxc3 .nav-items .nav-item.opened .lista-empresas,:host.uxc3 .nav-items .nav-item.opened .menu-lateral-direita{display:block}:host.uxc3 .nav-items .nav-item.opened~.items-overlay{opacity:.5;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out 0s;visibility:visible}:host.uxc3 .nav-items .items-overlay{height:100%;left:0;opacity:0;position:fixed;top:0;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out .2s;visibility:hidden;width:100%;z-index:9998}@media screen and (max-width:991px){:host.uxc3{width:100%}}:host.uxc2{background:#fff;border-bottom:1px solid #e4e9f0;display:block;height:70px;left:240px;position:fixed;right:0;top:0;z-index:9998}@media (max-width:991px){:host.uxc2{left:0}}:host.uxc2 .sessao-clone{background-color:#a80707;padding:8px;position:absolute;top:0;z-index:1}:host.uxc2 .sessao-clone .mat-icon-button{font-size:10px}:host.uxc2 .site-navbar{align-items:center;display:flex;flex-wrap:nowrap;height:100%;justify-content:space-between;padding:0 22px}@media (max-width:991px){:host.uxc2 .site-navbar{flex-wrap:wrap}}:host.uxc2 .site-navbar .navbar-button{cursor:pointer;display:none;height:24px;margin:0;position:relative;transform:rotate(0deg);width:30px}@media (max-width:991px){:host.uxc2 .site-navbar .navbar-button{display:block}}:host.uxc2 .site-navbar .navbar-button span{display:block;height:3px;opacity:1;position:absolute;transform:rotate(0deg);transition:.25s ease-in-out;width:50%}:host.uxc2 .site-navbar .navbar-button span:nth-child(2n){left:50%}:host.uxc2 .site-navbar .navbar-button span:nth-child(odd){left:0}:host.uxc2 .site-navbar .navbar-button span:first-child,:host.uxc2 .site-navbar .navbar-button span:nth-child(2){top:0}:host.uxc2 .site-navbar .navbar-button span:nth-child(3),:host.uxc2 .site-navbar .navbar-button span:nth-child(4){top:10px}:host.uxc2 .site-navbar .navbar-button span:nth-child(5),:host.uxc2 .site-navbar .navbar-button span:nth-child(6){top:20px}:host.uxc2 .site-navbar .navbar-button.open span:first-child,:host.uxc2 .site-navbar .navbar-button.open span:nth-child(6){transform:rotate(45deg)}:host.uxc2 .site-navbar .navbar-button.open span:nth-child(2),:host.uxc2 .site-navbar .navbar-button.open span:nth-child(5){transform:rotate(-45deg)}:host.uxc2 .site-navbar .navbar-button.open span:first-child{left:3px;top:6px}:host.uxc2 .site-navbar .navbar-button.open span:nth-child(2){left:calc(50% - 3px);top:6px}:host.uxc2 .site-navbar .navbar-button.open span:nth-child(3){left:-50%;opacity:0}:host.uxc2 .site-navbar .navbar-button.open span:nth-child(4){left:100%;opacity:0}:host.uxc2 .site-navbar .navbar-button.open span:nth-child(5){left:3px;top:15px}:host.uxc2 .site-navbar .navbar-button.open span:nth-child(6){left:calc(50% - 3px);top:15px}:host.uxc2 .page-title{font-size:1.4rem;font-weight:400;line-height:1;margin:0;width:100%}:host.uxc2 .page-title mat-icon{font-size:1.1em;left:0;top:4px}@media (max-width:991px){:host.uxc2 .page-title{display:none}}:host.uxc2 .nav-items{display:block;height:100%;margin:0 -5px;text-align:right}@media (min-width:544px){:host.uxc2 .nav-items{width:100%}}:host.uxc2 .nav-items .nav-item{align-items:center;display:inline-block;margin:15px 3px 0 0;text-align:left}@media (min-width:544px){:host.uxc2 .nav-items .nav-item{position:relative}}:host.uxc2 .nav-items .nav-item /deep/ .mat-button,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button{cursor:pointer;min-width:40px;padding:0;position:relative;transition:color .2s ease-in-out}:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-wrapper,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-wrapper{display:flex;height:100%;padding:5px;width:100%}:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-wrapper .mat-icon,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-wrapper .mat-icon{font-size:22px;height:30px;line-height:30px;vertical-align:top;width:30px}:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-wrapper .mat-icon .marker,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-wrapper .mat-icon .marker{border-radius:50%;height:6px;position:absolute;right:0;top:0;width:6px}:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-wrapper .badge,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-wrapper .badge{background:#af1b11;border-radius:8px;color:#fff;font-size:10px;line-height:16px;padding:0 5px;position:absolute;right:0;top:0}:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-wrapper .avatar,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-wrapper .avatar{border-radius:50%;height:40px;overflow:hidden;width:40px}:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-wrapper .name,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-wrapper .name{font-size:12px;line-height:19px;margin-top:-3px;padding-left:10px;text-align:left;top:10px;white-space:nowrap}:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-wrapper .name label,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-wrapper .name label{display:block;font-size:10px;line-height:12px;margin:0}:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-wrapper .name span,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-wrapper .name span{top:-3px}@media (max-width:991px){:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-wrapper .name,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-wrapper .name{display:none}}:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-focus-overlay,:host.uxc2 .nav-items .nav-item /deep/ .mat-button .mat-button-ripple,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-focus-overlay,:host.uxc2 .nav-items .nav-item /deep/ .mat-icon-button .mat-button-ripple{display:none}:host.uxc2 .nav-items .nav-item .dropdown-menu{box-shadow:0 5px 10px 2px rgba(0,0,0,.25);display:none;left:50%;margin:0 0 0 -150px;padding:0;position:absolute;top:100%;width:300px;z-index:9999}@media (max-width:991px){:host.uxc2 .nav-items .nav-item .dropdown-menu{left:auto;margin-left:0;right:0}}@media (max-width:543px){:host.uxc2 .nav-items .nav-item .dropdown-menu{left:0;margin-left:0;width:100%}}:host.uxc2 .nav-items .nav-item .dropdown-menu.calendar{left:-34%}:host.uxc2 .nav-items .nav-item .dropdown-menu.calendar:before{left:60%}:host.uxc2 .nav-items .nav-item .dropdown-menu:before{border:10px solid transparent;bottom:100%;content:"";left:50%;margin:0 0 0 -10px;position:absolute}@media (max-width:991px){:host.uxc2 .nav-items .nav-item .dropdown-menu:before{left:100%;margin-left:-34px}}@media (max-width:543px){:host.uxc2 .nav-items .nav-item .dropdown-menu:before{display:none}}:host.uxc2 .nav-items .nav-item .dropdown-menu .company a,:host.uxc2 .nav-items .nav-item .dropdown-menu .languages a,:host.uxc2 .nav-items .nav-item .dropdown-menu .themesa a{cursor:pointer!important}:host.uxc2 .nav-items .nav-item .dropdown-menu .themes{max-height:500px}:host.uxc2 .nav-items .nav-item .dropdown-menu .pesquisa-rapida input{color:#fff}:host.uxc2 .nav-items .nav-item .dropdown-menu .menu-footer,:host.uxc2 .nav-items .nav-item .dropdown-menu .menu-title{margin:0;padding:11px;text-align:center}:host.uxc2 .nav-items .nav-item .dropdown-menu .menu-title{border-bottom:1px solid hsla(0,0%,100%,.1);color:#fff;font-size:16px;line-height:1.3}:host.uxc2 .nav-items .nav-item .dropdown-menu .menu-footer a{color:#fff}:host.uxc2 .nav-items .nav-item .dropdown-menu .menu-footer a:hover{color:hsla(0,0%,100%,.8)}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul{list-style-type:none;margin:0;max-height:241px;overflow:auto;padding:0}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li{border-bottom:1px solid hsla(0,0%,100%,.05)}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li.disabled>a{cursor:default!important;opacity:.4}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li.disabled>a:hover{background:inherit!important}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li:last-child{border-bottom:0}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li>a{align-items:center;color:#fff;cursor:pointer;display:flex;padding:11px;transition:background .2s ease-in-out}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li>a .mat-icon{background:hsla(0,0%,100%,.1);border-radius:50%;font-size:22px;height:auto;margin-right:11px;padding:7px;width:auto}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li>a .avatar{border-radius:50%;height:40px;margin-right:11px;width:40px}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li>a .content{font-size:.85rem}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li>a .content .desc{display:block}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li>a .content .date{display:block;font-size:.75rem;font-style:italic;margin-top:4px;opacity:.6}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li>a .content .meta{align-items:flex-end;display:flex;justify-content:space-between;line-height:1.3;margin-bottom:4px}:host.uxc2 .nav-items .nav-item .dropdown-menu>ul>li>a .content .meta .date{margin:0 0 0 11px}:host.uxc2 .nav-items .nav-item .dropdown-menu.mini-menu{left:auto;right:0;width:220px}@media (max-width:543px){:host.uxc2 .nav-items .nav-item .dropdown-menu.mini-menu{width:100%}}:host.uxc2 .nav-items .nav-item .dropdown-menu.mini-menu:before{display:none}:host.uxc2 .nav-items .nav-item .dropdown-menu.mini-menu>ul>li>a{cursor:pointer;padding-bottom:8px;padding-top:8px}:host.uxc2 .nav-items .nav-item .dropdown-menu.mini-menu>ul>li>a .fa{margin-right:11px;min-width:15px}:host.uxc2 .nav-items .nav-item.opened .dropdown-menu{display:block}:host.uxc2 .nav-items .nav-item.opened~.items-overlay{opacity:1;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out 0s;visibility:visible}:host.uxc2 .nav-items .items-overlay{height:100%;left:0;opacity:0;position:fixed;top:0;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out .2s;visibility:hidden;width:100%;z-index:9998}']}]}],zt.ctorParameters=function(){return[{type:nt},{type:lt},{type:rt},{type:ut},{type:i.Router},{type:wt},{type:Q},{type:J},{type:r.MatDialog},{type:e.Renderer2},{type:e.ElementRef}]},zt.propDecorators={opened:[{type:e.Input}],languages:[{type:e.Input}],themes:[{type:e.Input}],notificationapi:[{type:e.Input}],notificationgetmethod:[{type:e.Input}],notificationpostmethod:[{type:e.Input}],notificationverifymethod:[{type:e.Input}],notificationverifyenabled:[{type:e.Input}],fastsearchform:[{type:e.Input}],fastsearchformwidth:[{type:e.Input}],fastsearchtitle:[{type:e.Input}],profileurl:[{type:e.Input}],setthemeonchangecompany:[{type:e.Input}],onchangestate:[{type:e.Output}],ongetnotification:[{type:e.Output}],onverifynotification:[{type:e.Output}]};var Rt=function(){function t(t,n,i,o,a,s,r,l){this._dataAcessService=t,this._authentication=n,this._lastSearch=i,this._router=o,this._session=a,this._platform=s,this._renderer=r,this._element=l,this.api=null,this.method="GetMenu",this.onchangestate=new e.EventEmitter,this.loading=!1,this.menu=[],this.openSubmenu="",this.menuAtivo="Dashboard"}return t.prototype.ngOnInit=function(){var t=this;this._authentication.isLogged()&&null!=this.api&&(this._renderer.addClass(this._element.nativeElement,"uxc"+this._platform.Config.ux),this.loading=!0,this._dataAcessService.get(this.api,this.method).subscribe((function(e){e.success&&(t.menu=e.data,t._platform.Menu=e.data,t._authentication.definePaginaAtiva(t._router.url)),t.loading=!1})))},t.prototype.toggle=function(t,e){if(t.preventDefault(),e.Enabled){if(!e.Active)for(var n=0;n<this.menu.length;n++)this.menu[n].Active=!1;e.Active=!e.Active}},t.prototype.access=function(t){this.menuAtivo=t,this.openSubmenu="",this.resetLastSearch()},t.prototype.toggleSubmenu=function(t){this.openSubmenu=this.openSubmenu==t?"":t},t.prototype.resetLastSearch=function(){this._lastSearch.model=null,this._lastSearch.url=""},t.prototype.changeSidebar=function(){this.onchangestate.emit()},t}();Rt.decorators=[{type:e.Component,args:[{selector:"info-topmenu",template:'<nav>\r\n <ul *ngIf="menu">\r\n <li *ngFor="let m of menu" [ngClass]="{ \'active\': menuAtivo == m.Title, \'disabled\': !m.Enabled, \'opened\': openSubmenu == m.Title }">\r\n <a *ngIf="m.Sub == null" [routerLink]="m.Routing" (click)="access(m.Title)" >{{ m.Title | translate }} </a>\r\n\r\n <ng-container *ngIf="m.Sub != null">\r\n <a (click)="toggleSubmenu(m.Title)" >{{ m.Title | translate }} </a>\r\n\r\n <div class="sub-menu">\r\n <ul>\r\n <li *ngFor="let s of m.Sub">\r\n <a [routerLink]="s.Routing" (click)="changeSidebar();access(m.Title);" >{{ s.Title | translate }}</a>\r\n </li>\r\n </ul>\r\n </div>\r\n </ng-container>\r\n </li>\r\n </ul>\r\n</nav>',styles:[':host{position:fixed;top:80px;width:100%;z-index:999}:host nav{background:#fff;border-bottom:1px solid #ccc}:host nav>ul{list-style:none;margin:0;padding:0;white-space:nowrap}:host nav>ul>li{background:#fff;color:#111;display:inline-block;margin:0;padding:0 10px;position:relative;transition:background .2s ease-in-out}:host nav>ul>li:hover{background:#eee}:host nav>ul>li a{cursor:pointer;display:block;padding:7px 10px 10px;position:relative;text-align:center;transition:color .2s ease-in-out}:host nav>ul>li a:hover{text-decoration:none}:host nav>ul>li.active>a:after{background:#555;bottom:0;content:" ";display:block;height:3px;left:0;position:absolute;width:100%}:host nav>ul>li:hover{background:#555}:host nav>ul>li:hover>a{color:#fff}:host nav>ul>li:hover .sub-menu{display:block}:host nav>ul>li .sub-menu{background:#fff;box-shadow:0 5px 10px 1px #ccc;display:none;left:0;min-width:100%;padding:20px 10px;position:absolute;top:39px;z-index:1}:host nav>ul>li .sub-menu ul{list-style:none;padding:0}:host nav>ul>li .sub-menu ul li a{color:#111;text-align:left}:host nav>ul>li .sub-menu ul li a:hover{color:#111;text-decoration:underline}']}]}],Rt.ctorParameters=function(){return[{type:rt},{type:lt},{type:$},{type:i.Router},{type:Q},{type:J},{type:e.Renderer2},{type:e.ElementRef}]},Rt.propDecorators={api:[{type:e.Input}],method:[{type:e.Input}],onchangestate:[{type:e.Output}]};var Ut=function(){this.enabled=!1,this.mode="indeterminate",this.color="primary"};Ut.decorators=[{type:e.Component,args:[{selector:"info-loading",template:'\n <section class="loading-bar">\n <mat-progress-bar [color]="color" [mode]="mode" *ngIf="enabled" >\n </mat-progress-bar>\n </section>\n ',styles:["\n .loading-bar { height: 1px; }\n .loading-bar .mat-progress-bar { height: 1px; margin: 0; }\n "]}]}],Ut.propDecorators={enabled:[{type:e.Input}],mode:[{type:e.Input}],color:[{type:e.Input}]};var jt=function(){function t(t,n,i){this._dataAccessService=t,this.prop=n,this._ref=i,this.modaltitle="",this.showcloseicon=!1,this.api=null,this.method=null,this.readonly=null,this.loading=!1,this.loadingblock=!0,this.form=null,this.labelclose="Fechar",this.labelcancel="Cancelar",this.labelsubmit="Salvar",this.messages=[],this.width=null,this.onsave=new e.EventEmitter,this.onsuccess=new e.EventEmitter}return t.prototype.ngOnInit=function(){""==this.modaltitle&&null!=this.prop&&null!=this.prop.title&&(this.modaltitle=this.prop.title),null==this.api&&null!=this.prop&&null!=this.prop.api&&(this.api=this.prop.api),null!=this.width&&this._ref.updateSize(this.width.toString().replace("px","")+"px"),null==this.readonly&&null!=this.prop&&null!=this.prop.readonly&&(this.readonly=this.prop.readonly)},t.prototype.submit=function(){var t=this;this.onsave.observers.length>0?this.onsave.next():(this.messages=[],null!=this.api&&""!=this.api.toString()||this.messages.push("API não informado"),this.messages.length>0||(this.loading=!0,this._dataAccessService.post(this.api,this.model,this.method).subscribe((function(e){e.success?(t.prop.modalAction=q.Save,t.prop.data=t.model,t._ref.close(t.prop),t.onsuccess.observers.length>0&&t.onsuccess.next()):t.messages=e.messages,t.loading=!1}))))},t.prototype.close=function(){this.messages=[],this.loading=!1,this._ref.close(this.prop)},t.prototype.writeValue=function(t){this.model=t},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){},t}();jt.decorators=[{type:e.Component,args:[{selector:"info-modal",template:'<h2 mat-dialog-title >\r\n <label [innerHTML]="modaltitle | translate"></label>\r\n <mat-icon class="close-icon" (click)="close()" *ngIf="showcloseicon" >close</mat-icon>\r\n\r\n <section class="loading-bar" *ngIf="loading">\r\n <mat-progress-bar color="primary" mode="indeterminate"></mat-progress-bar>\r\n </section>\r\n</h2>\r\n\r\n<mat-dialog-content class="info-modal-content">\r\n <ng-content></ng-content>\r\n</mat-dialog-content>\r\n\r\n<mat-dialog-actions>\r\n <div class="mr-5">\r\n <ng-content select="[buttons]"></ng-content>\r\n </div>\r\n <button mat-button *ngIf="labelclose != \'\' && readonly" type="button" (click)="close()" [disabled]="loading">{{ labelclose | translate }}</button>\r\n <button mat-button *ngIf="labelcancel != \'\' && !readonly" type="button" (click)="close()" color="warn" [disabled]="loading">{{ labelcancel | translate }}</button>\r\n <button mat-button *ngIf="labelsubmit != \'\' && !readonly" type="button" [disabled]="loading || (form != null && !form.form.valid)" (click)="submit()" >{{ labelsubmit | translate }}</button>\r\n</mat-dialog-actions>\r\n\r\n<div class="block" *ngIf="loading && loadingblock"></div>\r\n<info-alert [messages]="messages"></info-alert>',providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return jt})),multi:!0}]}]}],jt.ctorParameters=function(){return[{type:rt},{type:B,decorators:[{type:e.Inject,args:[r.MAT_DIALOG_DATA]}]},{type:r.MatDialogRef}]},jt.propDecorators={modaltitle:[{type:e.Input}],showcloseicon:[{type:e.Input}],api:[{type:e.Input}],method:[{type:e.Input}],readonly:[{type:e.Input}],loading:[{type:e.Input}],loadingblock:[{type:e.Input}],form:[{type:e.Input}],labelclose:[{type:e.Input}],labelcancel:[{type:e.Input}],labelsubmit:[{type:e.Input}],messages:[{type:e.Input}],width:[{type:e.Input}],onsave:[{type:e.Output}],onsuccess:[{type:e.Output}]};var Ft=function(){function t(t,e,n,o,a,s,r){var l=this;this._router=t,this._modal=e,this._dataService=n,this._translate=o,this._platform=a,this._renderer=s,this._element=r,this.margintop=0,this.backurl=null,this.access=[],this.transparent=!1,this.loading=!1,this.atalhoId=null,this.podeCriarAtalho=!1,this.exibirAcessos=!1,t.events.subscribe((function(t){t instanceof i.NavigationStart||t instanceof i.GuardsCheckStart?setTimeout((function(){return l.loading=!0}),0):setTimeout((function(){l.loading=!1,t instanceof i.NavigationEnd&&(l.podeCriarAtalho=!!l._platform.ShortcutApi&&"/"!=l._router.url,l.getAtalho())}),0)}))}return t.prototype.ngOnInit=function(){this._renderer.addClass(this._element.nativeElement,"uxc"+this._platform.Config.ux),this._platform.Config.topMenu&&this._renderer.addClass(this._element.nativeElement,"topmenu")},t.prototype.goBack=function(){this._router.navigateByUrl(this.backurl)},t.prototype.getAtalho=function(){var t=this;this.podeCriarAtalho&&(this.loading=!0,this._dataService.get(this._platform.ShortcutApi,"GetByUrl","url="+this._router.url).subscribe((function(e){t.loading=!1,e.success&&(t.atalhoId=(e.data||{}).Id)})))},t.prototype.toggleAtalho=function(){var t=this;this.atalhoId?(this.loading=!0,this._dataService.delete(this._platform.ShortcutApi,this.atalhoId).subscribe((function(e){t.loading=!1,e.success&&(t.atalhoId=null)}))):(this.loading=!0,this.openModalAtalho().subscribe((function(e){t.loading=!1,e&&e.modalAction==q.Save&&t.getAtalho()})))},t.prototype.openModalAtalho=function(){var t=this,e=new B;e.api=this._platform.ShortcutApi,e.set(H.New,{Id:this.atalhoId,Url:this._router.url,Titulo:this._translate.translate(this._platform.PaginaAtiva.Titulo)+" / "+this._translate.translate(this.pagetitle)});var n=this._modal.open(Ht,{data:e,disableClose:!0,width:"400px"});return n.keydownEvents().subscribe((function(e){t.loading||"Escape"!=e.key&&"Esc"!=e.key&&"27"!=e.key||n.close()})),n.afterClosed()},t}();Ft.decorators=[{type:e.Component,args:[{selector:"info-pagebar",template:'<div [ngStyle]="{ \'marginTop\': margintop + \'px\' }" [ngClass]="{ \'transparent\': transparent }" >\r\n \r\n <ng-container *ngIf="_platform.Config.ux >= 3" >\r\n <h2>{{ pagetitle | translate }}</h2>\r\n \r\n <div class="link-button">\r\n <button mat-button type="button" *ngIf="backurl" color="primary" (click)="goBack()">\r\n <mat-icon class="fs-20">chevron_left</mat-icon>{{ \'Voltar\' | translate}}</button>\r\n\r\n <ng-container *ngTemplateOutlet="content"></ng-container>\r\n\r\n <dl *ngIf="(access || []).length > 0" class="acesso-rapido" (mouseenter)="exibirAcessos = true" (mouseleave)="exibirAcessos = false">\r\n <dt>\r\n <mat-icon class="fs-20">share</mat-icon>\r\n </dt>\r\n <dd *ngIf="exibirAcessos">\r\n <ul>\r\n <li *ngFor="let a of access">\r\n <a target="_blank" [routerLink]="a.Url" ><mat-icon>chevron_right</mat-icon> {{ a.Label | translate }}</a>\r\n </li>\r\n </ul> \r\n </dd>\r\n </dl>\r\n </div>\r\n <hr>\r\n </ng-container>\r\n \r\n <div class="row" *ngIf="_platform.Config.ux <= 2" >\r\n <div class="col-md-6">\r\n <h2>\r\n <label id="page-title" *ngIf="_platform.PaginaAtiva">\r\n <mat-icon>{{ _platform.PaginaAtiva.Icone }}</mat-icon>\r\n {{ _platform.PaginaAtiva.Titulo | translate }}\r\n\r\n <ng-container *ngIf="pagetitle != null && pagetitle != \'\'"> / </ng-container>\r\n </label>\r\n {{ pagetitle | translate }}\r\n </h2>\r\n <button *ngIf="podeCriarAtalho" type="button" mat-icon-button class="shortcut-button" [ngClass]="{ \'tem-atalho\': !!atalhoId }" (click)="toggleAtalho()" [disabled]="loading">\r\n <mat-icon inline>{{ atalhoId ? \'star\' : \'star_border\' }}</mat-icon>\r\n </button>\r\n \r\n <p class="pagebar-description" [innerHTML]="description | translate"></p>\r\n </div>\r\n\r\n <div class="col-md-6 align-right buttons">\r\n <button mat-button type="button" *ngIf="backurl" color="primary" (click)="goBack()">\r\n <mat-icon class="fs-20">chevron_left</mat-icon>{{ \'Voltar\' | translate}}\r\n </button>\r\n \r\n <ng-container *ngTemplateOutlet="content"></ng-container>\r\n\r\n <dl *ngIf="(access || []).length > 0" class="acesso-rapido" (mouseenter)="exibirAcessos = true" (mouseleave)="exibirAcessos = false">\r\n <dt>\r\n <mat-icon class="fs-20">share</mat-icon>\r\n </dt>\r\n <dd *ngIf="exibirAcessos">\r\n <ul>\r\n <li *ngFor="let a of access">\r\n <a target="_blank" [routerLink]="a.Url" ><mat-icon>chevron_right</mat-icon> {{ a.Label | translate }}</a>\r\n </li>\r\n </ul> \r\n </dd>\r\n </dl>\r\n </div>\r\n </div>\r\n</div>\r\n<section class="loading-bar" *ngIf="loading">\r\n <mat-progress-bar color="primary" mode="indeterminate"></mat-progress-bar>\r\n</section>\r\n\r\n<ng-template #content><ng-content></ng-content></ng-template>',styles:[":host.topmenu>div{left:0!important;top:125px!important;width:100%!important}:host.uxc3>div{background:#fff;left:240px;min-height:60px;padding:15px 20px 10px;position:fixed;top:80px;transition:left .2s ease-in-out,width .2s ease-in-out;width:calc(100% - 240px);z-index:100}:host.uxc3>div h2{background:inherit;display:inline-block;font-family:Cinzel;font-size:2em;font-weight:500;margin:0;padding-right:20px;width:auto}:host.uxc3>div .link-button{background:inherit;display:block;padding-left:20px;position:absolute;right:20px;top:18px}:host.uxc3>div hr{margin:0;position:absolute;top:50%;width:calc(100% - 40px);z-index:-1}@media (max-width:543px){:host.uxc3>div{left:0}}:host.uxc2>div{background:#fff;border-bottom:1px solid #e4e9f0;box-shadow:0 0 5px #eee;left:240px;min-height:60px;padding:10px 20px;position:fixed;right:0;top:70px;z-index:100}@media (max-width:543px){:host.uxc2>div{left:0}}:host.uxc2>div h2{display:inline;font-size:1.2em;margin:0;padding:0}:host.uxc2>div p{font-size:.9em;margin:0;padding-top:3px;width:100%}@media (max-width:543px){:host.uxc2>div p{display:none}}:host.uxc2>div .buttons{padding-top:2px}:host.uxc2>div .buttons .mat-button{margin-left:8px}:host.uxc2>div:hover .shortcut-button{opacity:1}:host.uxc2>div .shortcut-button{height:22px;line-height:22px;opacity:0;text-align:center;transition:opacity .2s;width:22px}:host.uxc2>div .shortcut-button.tem-atalho{opacity:1!important}:host.uxc2>div .shortcut-button .mat-icon{color:#b99206;font-size:14px;top:-2px}"]}]}],Ft.ctorParameters=function(){return[{type:i.Router},{type:r.MatDialog},{type:rt},{type:nt},{type:J},{type:e.Renderer2},{type:e.ElementRef}]},Ft.propDecorators={margintop:[{type:e.Input}],icon:[{type:e.Input}],pagetitle:[{type:e.Input}],description:[{type:e.Input}],backurl:[{type:e.Input}],access:[{type:e.Input}],transparent:[{type:e.Input}]};var Ht=function(t){this.prop=t,this.model={},this.model=Object.assign({},t.data),this.model.Id=this.model.Id||"00000000-0000-0000-0000-000000000000"};Ht.decorators=[{type:e.Component,args:[{template:'\n\t\t<info-modal modaltitle="CriarAcessoRapido" [form]="formModal" [(ngModel)]="model">\n\t\t\t<form autocomplete="off" #formModal="ngForm">\n\t\t\t\t<div class="row"> \n\t\t\t\t\t<info-input class="col-md-12" [(ngModel)]="model.Titulo" placeholder="Titulo" name="Titulo" required></info-input>\n\t\t\t\t</div>\n\t\t\t</form>\n\t\t</info-modal>\n\t'}]}],Ht.ctorParameters=function(){return[{type:B,decorators:[{type:e.Inject,args:[r.MAT_DIALOG_DATA]}]}]};var qt=function(){function t(t,e){this.renderer=t,this.element=e,this._onTouched=function(){},this._onChange=function(t){}}return t.prototype.ngOnChanges=function(t){this.setupMask(!0),void 0!==this.maskInputElement&&this.maskInputElement.update(this.inputElement.value)},t.prototype.writeValue=function(t){this.setupMask();var e=null==t?"":t;this.renderer.setProperty(this.inputElement,"value",e),void 0!==this.maskInputElement&&this.maskInputElement.update(t)},t.prototype.registerOnChange=function(t){this._onChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.setDisabledState=function(t){this.renderer.setProperty(this.element.nativeElement,"disabled",t)},t.prototype.onInput=function(t){this.setupMask(),void 0!==this.maskInputElement&&(this.maskInputElement.update(t),t=this.inputElement.value,this.lastValue!==t&&(this.lastValue=t,this._onChange(t)))},t.prototype.setupMask=function(t){if(void 0===t&&(t=!1),this.inputElement||("INPUT"===this.element.nativeElement.tagName?this.inputElement=this.element.nativeElement:this.inputElement=this.element.nativeElement.getElementsByTagName("INPUT")[0]),this.inputElement&&t){var e=void 0;"email"==this.maskType?this.mask=L.default:"phone"==this.maskType?this.mask=["(",/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/]:"cel"==this.maskType?this.mask=["(",/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/]:"cep"==this.maskType?this.mask=[/\d/,/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/]:"date"==this.maskType?(e=V.default("dd/mm/yyyy"),this.mask=[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/]):"datemonth"==this.maskType?(e=V.default("mm/yyyy"),this.mask=[/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/]):"time"==this.maskType?(e=V.default("HH:MM"),this.mask=[/\d/,/\d/,":",/\d/,/\d/]):"cpf"==this.maskType?this.mask=[/\d/,/\d/,/\d/,".",/\d/,/\d/,/\d/,".",/\d/,/\d/,/\d/,"-",/\d/,/\d/]:"cnpj"==this.maskType?this.mask=[/\d/,/\d/,".",/\d/,/\d/,/\d/,".",/\d/,/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/]:this.mask=[];var i={mask:this.mask,guide:!0,placeholderChar:"_",pipe:e,modelClean:!0,keepCharPositions:!1};this.maskInputElement=n.createTextMaskInputElement(Object.assign({inputElement:this.inputElement},i))}},t}();qt.decorators=[{type:e.Directive,args:[{host:{"(input)":"onInput($event.target.value)","(blur)":"_onTouched()"},selector:"[setmask]",providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return qt})),multi:!0}]}]}],qt.ctorParameters=function(){return[{type:e.Renderer2,decorators:[{type:e.Inject,args:[e.Renderer2]}]},{type:e.ElementRef,decorators:[{type:e.Inject,args:[e.ElementRef]}]}]},qt.propDecorators={maskType:[{type:e.Input,args:["setmask"]}]};var Bt=function(){function t(t,e){this.elementRef=t,this.model=e}return t.prototype.inputChange=function(){var t=this.elementRef.nativeElement.value.replace(/\D/g,"");this.model.control.setValue(t)},t}();Bt.decorators=[{type:e.Directive,args:[{selector:"[unmask]"}]}],Bt.ctorParameters=function(){return[{type:e.ElementRef},{type:c.NgControl}]},Bt.propDecorators={inputChange:[{type:e.HostListener,args:["input"]}]};var Gt=function(){};Gt.decorators=[{type:e.NgModule,args:[{imports:[g.CommonModule,o.HttpClientModule,c.FormsModule,c.ReactiveFormsModule,b.MatCardModule,v.MatIconModule,y.MatInputModule,x.MatFormFieldModule,I.MatListModule,w.MatSelectModule,_.MatCheckboxModule,k.MatRadioModule,C.MatButtonModule,S.MatDatepickerModule,d.MatMomentDateModule,r.MatDialogModule,M.MatProgressBarModule,A.MatAutocompleteModule,T.MatTooltipModule,i.RouterModule,f.CurrencyMaskModule,D.AngularEditorModule,E.MatChipsModule],declarations:[it,ot,qt,Bt,pt,ht,mt,gt,ft,bt,xt,It,kt,Ct,St,Mt,Tt,At,Dt,Et,Pt,Ot,Vt,_t,Ut,Lt,jt,Ft,Nt,zt,Rt,Ht,ct],exports:[it,ot,pt,ht,mt,gt,ft,bt,xt,It,kt,Ct,St,Mt,Tt,At,Dt,Et,Pt,Ot,Vt,_t,Ut,Lt,jt,Ft,Nt,zt,Rt],schemas:[e.CUSTOM_ELEMENTS_SCHEMA],entryComponents:[_t,Ht,ct]}]}],t.APICONTROLLER_CONFIG=z,t.DICTIONARIES_CONFIG=N,t.InfoAlertComponent=pt,t.InfoAppConfigModel=R,t.InfoAuthenticationService=lt,t.InfoAutoCompleteComponent=ht,t.InfoBigCheckboxComponent=mt,t.InfoCardComponent=gt,t.InfoCheckboxComponent=bt,t.InfoChipsComponent=Vt,t.InfoConfigurationService=dt,t.InfoDataAccessModel=U,t.InfoDataService=rt,t.InfoDateComponent=xt,t.InfoDateMonthComponent=It,t.InfoDialogButtons=et,t.InfoDialogComponent=_t,t.InfoDialogModal=wt,t.InfoDialogModel=F,t.InfoDialogResult=j,t.InfoEditorComponent=Pt,t.InfoFormPropModel=B,t.InfoGridButtonModel=G,t.InfoGridComponent=kt,t.InfoInputComponent=Ct,t.InfoInputListComponent=St,t.InfoLastSearchModel=$,t.InfoLibraryModule=Gt,t.InfoListCheckboxComponent=Mt,t.InfoLoadingComponent=Ut,t.InfoLoginModel=K,t.InfoMainComponent=Lt,t.InfoMaskPipe=ot,t.InfoMenuCardComponent=ft,t.InfoMessageComponent=Tt,t.InfoMethodGridButtonModel=Y,t.InfoModalAction=q,t.InfoModalComponent=jt,t.InfoMultiSelectComponent=Ot,t.InfoNotificationItemModel=tt,t.InfoNotificationModel=Z,t.InfoPageAction=H,t.InfoPagebarButtonModel=W,t.InfoPagebarComponent=Ft,t.InfoPaginatorComponent=At,t.InfoPermissionModel=X,t.InfoPlatformModel=J,t.InfoSelectComponent=Dt,t.InfoSessionModel=Q,t.InfoSidebarComponent=Nt,t.InfoThemeService=ut,t.InfoTimelineComponent=Et,t.InfoTopMenuComponent=Rt,t.InfoTopbarComponent=zt,t.InfoTranslatePipe=it,t.InfoTranslateService=nt,t.ɵa=vt,t.ɵb=yt,t.ɵc=Ht,t.ɵd=rt,t.ɵe=J,t.ɵf=B,t.ɵg=lt,t.ɵh=ct,t.ɵi=Q,t.ɵj=nt,t.ɵk=$,t.ɵl=ut,t.ɵm=F,t.ɵn=it,t.ɵo=ot,t.ɵp=qt,t.ɵq=Bt,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=info-library.umd.min.js.map
|