!function(){function t(t,e){for(var n=0;ne.CreateDate?1:0})}},{key:"setFormatDate",value:function(t,e,n){var i,o=Math.floor((e-t)/1e3),a=Math.floor(o/60),r=Math.floor(a/60);return 0==Math.floor(r/24)?n?(i=this.getCustomDate(t)+", "+this.getCustomHours(t)+" (todo dia)",console.log(i),i):i=this.getCustomDate(t)+", "+this.getCustomHours(t)+" | "+this.getCustomHours(e):i=this.getCustomDate(t)+","+this.getCustomHours(t)+" (termina:"+this.getCustomDate(e)+","+this.getCustomHours(e)+")"}},{key:"getCustomDate",value:function(t){return t.getDay()+1+"/"+(t.getMonth()+1)+"/"+t.getFullYear()}},{key:"getCustomHours",value:function(t){return t.getHours()+":"+t.getMinutes()}},{key:"goToProcess",value:function(t,e,n){"Despacho"==e?"Tarefa de Despacho"==n&&this.router.navigate(["/home/gabinete-digital/despachos",t,"gabinete-digital"]):"Despacho do Presidente da Rep\xfablica"==e?"Tarefa de Despacho"==n||"Concluir Despacho"==n?this.router.navigate(["/home/gabinete-digital/despachos-pr",t,"gabinete-digital"]):"Revisar Diploma"==n||"Assinar Diploma"==n?this.router.navigate(["/home/gabinete-digital/diplomas",t,"gabinete-digital"]):"Diploma Assinado"==n&&this.router.navigate(["/home/gabinete-digital/diplomas-assinar",t,"gabinete-digital"]):"Pedido de Parecer"==e||"Pedido de Deferimento"==e?this.router.navigate(["/home/gabinete-digital/pedidos",t,"gabinete-digital"]):"Expediente"==e?this.router.navigate(["/home/gabinete-digital/expediente",t,"gabinete-digital"]):"Expediente"==e&&"PR"==this.loggeduser.Profile?this.router.navigate(["/home/gabinete-digital/expedientes-pr",t,"gabinete-digital"]):"Pedido de Parecer do Presidente"==e?this.router.navigate(["/home/gabinete-digital/pedidos",t,"gabinete-digital"]):"Agenda Pessoal PR"==e||"Agenda Oficial PR"==e||"Agenda Oficial MDGPR"==e||"Agenda Pessoal MDGPR"==e?this.router.navigate(["/home/gabinete-digital/event-list/approve-event",t,"gabinete-digital"]):console.log("cant find page for this task")}}])&&t(i.prototype,o),l&&t(i,l),n}();return n.\u0275fac=function(t){return new(t||n)(l.Y36(s.$),l.Y36(c.F0),l.Y36(g.e))},n.\u0275cmp=l.Xpm({type:n,selectors:[["app-all-processes"]],decls:16,vars:4,consts:[[1,"ion-no-border"],[1,"title"],[1,"thetitle"],[1,"theicon"],[1,"btn-no-color",3,"click"],["slot","end","name","reload-circle",1,"title-icon"],["name","refresher","slot","fixed",3,"ionRefresh"],["pullingIcon","chevron-down-circle-outline","pullingText","deslize para actualizar","refreshingSpinner","circles","refreshingText","A actualizar..."],[1,"overflow-y-auto","height-100","width-100"],["type","indeterminate",4,"ngIf"],[4,"ngIf"],["class","empty-list d-flex height-100 align-center justify-content-center",4,"ngIf"],["type","indeterminate"],[1,"overflow-y-auto","height-100"],[1,"listview"],["class","item-wrapper ion-no-padding cursor-pointer",3,"click",4,"ngFor","ngForOf"],[1,"item-wrapper","ion-no-padding","cursor-pointer",3,"click"],[1,"item","width-100"],[1,"item-top-detail"],[1,"item-subject"],["class","item-icon",4,"ngIf"],[1,"item-middle-detail"],[1,"item-remetente"],["class","item-middle-detail",4,"ngIf"],["class","item-middle-detail-extra",4,"ngIf"],[1,"item-bottom-detail","d-flex","align-items-center"],[1,"item-workflow"],[1,"label"],[1,"item-date"],[1,"item-icon"],["src","assets/images/icons-expediente-attachment.svg"],[1,"item-middle-detail-extra"],[1,"item-middle-detail-extra-text"],[1,"empty-list","d-flex","height-100","align-center","justify-content-center"],["slot","end"],["animated",""],["animated","",2,"width","50%"],["animated","",2,"width","80%"],["animated","",2,"width","60%"]],template:function(t,e){1&t&&(l.TgZ(0,"ion-header",0),l.TgZ(1,"div",1),l.TgZ(2,"div",2),l.TgZ(3,"ion-label"),l._uU(4,"Todas as tarefas"),l.qZA(),l.qZA(),l.TgZ(5,"div",3),l.TgZ(6,"button",4),l.NdJ("click",function(){return e.doRefresh()}),l._UZ(7,"ion-icon",5),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.TgZ(8,"ion-content"),l.TgZ(9,"ion-refresher",6),l.NdJ("ionRefresh",function(){return e.doRefresh()}),l._UZ(10,"ion-refresher-content",7),l.qZA(),l.TgZ(11,"div",8),l.YNc(12,p,1,0,"ion-progress-bar",9),l.YNc(13,C,4,1,"div",10),l.YNc(14,M,3,0,"div",11),l.YNc(15,O,22,0,"div",10),l.qZA(),l.qZA()),2&t&&(l.xp6(12),l.Q6J("ngIf",e.skeletonLoader),l.xp6(1),l.Q6J("ngIf",e.allProcessesList.length>=0),l.xp6(1),l.Q6J("ngIf",!e.skeletonLoader&&0==e.allProcessesList.length),l.xp6(1),l.Q6J("ngIf",e.skeletonLoader&&0==e.allProcessesList.length))},directives:[d.Gu,d.Q$,d.gu,d.W2,d.nJ,d.Wo,m.O5,d.X7,d.td,d.q_,m.sg,d.Ie,d.Bs,d.CK],pipes:[m.uU],styles:["[_nghost-%COMP%]{margin:0}.title[_ngcontent-%COMP%]{padding:30px 20px 0!important;font-family:Roboto;font-size:25px;color:#000;overflow:auto}.title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{float:left}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%], .title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%]{float:right}.listview[_ngcontent-%COMP%]{width:100% t;padding:0 20px 15px!important;overflow:auto}ion-list[_ngcontent-%COMP%]{background:transparent}.item-wrapper[_ngcontent-%COMP%]{border-radius:15px;box-shadow:0 0 10px 0 rgba(0,0,0,.07);border:1px solid #e9e9e9!important;background-color:#fff!important;margin-bottom:10px!important;padding:15px}.item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{background-color:var(--white);margin:0 auto;overflow:hidden}.item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-top-detail[_ngcontent-%COMP%]{width:100%;float:left;font-family:Roboto;font-size:12pt;font-weight:700;color:#0d89d1;padding-left:3px}.item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-top-detail[_ngcontent-%COMP%] .item-subject[_ngcontent-%COMP%]{width:84%;float:left}.item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-top-detail[_ngcontent-%COMP%] .item-subject[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{margin:0!important;padding:2.5px 10.5px}.item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-top-detail[_ngcontent-%COMP%] .item-icon[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;float:right;margin:0!important;padding:0!important}.item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-top-detail[_ngcontent-%COMP%] .item-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:12pt;color:#42b9fe;float:left}.item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-top-detail[_ngcontent-%COMP%] .item-icon[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:10pt}.item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-middle-detail[_ngcontent-%COMP%]{font-size:10pt;width:100%;overflow:auto;padding-left:3px;margin:0!important}.item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-middle-detail[_ngcontent-%COMP%] .item-remetente[_ngcontent-%COMP%]{font-family:Roboto;font-weight:400;color:#000;float:left}.item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-middle-detail[_ngcontent-%COMP%] .item-remetente[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{padding:2.5px 10.5px;margin:0!important}.item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-middle-detail-extra[_ngcontent-%COMP%]{font-size:10pt;padding-left:3px}.item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-middle-detail-extra[_ngcontent-%COMP%] .item-middle-detail-extra-text[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{padding:2.5px 10.5px;margin:0!important}.item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-bottom-detail[_ngcontent-%COMP%]{font-size:12pt;width:100%;overflow:auto;margin-top:10px;padding-bottom:0!important}.item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-bottom-detail[_ngcontent-%COMP%] .item-workflow[_ngcontent-%COMP%]{float:left;margin:0!important;align-self:flex-start}.item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-bottom-detail[_ngcontent-%COMP%] .item-workflow[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:15px;background:#ffb703;float:right;padding:2.5px 13.5px;color:#fff}.item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-bottom-detail[_ngcontent-%COMP%] .item-date[_ngcontent-%COMP%]{width:auto;font-family:Roboto;font-size:10pt;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#797979;text-align:right;flex-grow:1}.item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-bottom-detail[_ngcontent-%COMP%] .item-date[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{margin:0!important;padding:0!important}.item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-bottom-detail[_ngcontent-%COMP%], .item-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-middle-detail[_ngcontent-%COMP%]{margin-bottom:5px}"]}),n}()}}])}();