Files
doneit-web/_platforms/browser/www/4917-es2015.198189e3a4594e970c37.js
T
tiago.kayaya 24e2a8f518 save
2021-08-18 18:58:02 +01:00

1 line
24 KiB
JavaScript

(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[4917],{84917:function(t,n,e){"use strict";e.d(n,{a:function(){return T}});var o=e(64762),i=e(86807),a=e(45896),s=e(83189),c=e(90562),r=e(56343),d=e(320),l=e(25276),p=e(37716),g=e(39895),u=e(28621),m=e(53760),h=e(20985),f=e(80106),x=e(35957),M=e(84465),C=e(40617),_=e(38583),b=e(962),w=e(97998);function P(t,n){if(1&t){const t=p.EpF();p.TgZ(0,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw(3).sendExpedienteToPending()}),p._uU(1,"Enviar para Pendentes"),p.qZA()}}function k(t,n){if(1&t){const t=p.EpF();p.TgZ(0,"div",6),p.TgZ(1,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).openAddNoteModal("Executado")}),p._uU(2,"Executado"),p.qZA(),p.TgZ(3,"button",7),p.NdJ("click",function(){p.CHM(t);const n=p.oxw(2);return n.openDelegarModal(n.task)}),p._uU(4,"Delegar"),p.qZA(),p._UZ(5,"div",8),p.TgZ(6,"button",9),p.NdJ("click",function(){p.CHM(t);const n=p.oxw(2);return n.openExpedientActionsModal("0",n.fulltask)}),p._uU(7,"Efetuar Despacho"),p.qZA(),p.TgZ(8,"button",7),p.NdJ("click",function(){p.CHM(t);const n=p.oxw(2);return n.openExpedientActionsModal("1",n.fulltask)}),p._uU(9,"Solicitar Parecer"),p.qZA(),p.TgZ(10,"button",7),p.NdJ("click",function(){p.CHM(t);const n=p.oxw(2);return n.openBookMeetingModal(n.task)}),p._uU(11,"Marcar Reuni\xe3o"),p.qZA(),p._UZ(12,"div",8),p.YNc(13,P,2,0,"button",10),p.qZA()}if(2&t){const t=p.oxw(2);p.xp6(13),p.Q6J("ngIf","Pending"!=t.task.Status)}}function O(t,n){if(1&t){const t=p.EpF();p.TgZ(0,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw(3).sendExpedienteToPending()}),p._uU(1,"Enviar para Pendentes"),p.qZA()}}function v(t,n){if(1&t){const t=p.EpF();p.TgZ(0,"div",6),p.TgZ(1,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).openAddNoteModal("Executado")}),p._uU(2,"Executado"),p.qZA(),p.TgZ(3,"button",7),p.NdJ("click",function(){p.CHM(t);const n=p.oxw(2);return n.openDelegarModal(n.task)}),p._uU(4,"Delegar"),p.qZA(),p._UZ(5,"div",8),p.TgZ(6,"button",9),p.NdJ("click",function(){p.CHM(t);const n=p.oxw(2);return n.openExpedientActionsModal("0",n.fulltask)}),p._uU(7,"Efetuar Despacho"),p.qZA(),p.TgZ(8,"button",7),p.NdJ("click",function(){p.CHM(t);const n=p.oxw(2);return n.openExpedientActionsModal("1",n.fulltask)}),p._uU(9,"Solicitar Parecer"),p.qZA(),p.TgZ(10,"button",7),p.NdJ("click",function(){p.CHM(t);const n=p.oxw(2);return n.openBookMeetingModal(n.task)}),p._uU(11,"Marcar Reuni\xe3o"),p.qZA(),p._UZ(12,"div",8),p.YNc(13,O,2,0,"button",10),p.qZA()}if(2&t){const t=p.oxw(2);p.xp6(13),p.Q6J("ngIf","Pending"!=t.task.Status)}}function Z(t,n){if(1&t){const t=p.EpF();p.TgZ(0,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw(3).sendExpedienteToPending()}),p._uU(1,"Enviar para Pendentes"),p.qZA()}}function A(t,n){if(1&t){const t=p.EpF();p.TgZ(0,"div",6),p.TgZ(1,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).openAddNoteModal("Arquivar")}),p._uU(2,"Arquivar"),p.qZA(),p._UZ(3,"div",8),p.TgZ(4,"button",9),p.NdJ("click",function(){p.CHM(t);const n=p.oxw(2);return n.openExpedientActionsModal("0",n.fulltask)}),p._uU(5,"Efetuar Despacho"),p.qZA(),p.TgZ(6,"button",7),p.NdJ("click",function(){p.CHM(t);const n=p.oxw(2);return n.openExpedientActionsModal("1",n.fulltask)}),p._uU(7,"Solicitar Parecer"),p.qZA(),p.TgZ(8,"button",7),p.NdJ("click",function(){p.CHM(t);const n=p.oxw(2);return n.openBookMeetingModal(n.task)}),p._uU(9,"Marcar Reuni\xe3o"),p.qZA(),p._UZ(10,"div",8),p.YNc(11,Z,2,0,"button",10),p.TgZ(12,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).openAddNoteModal("Reexecu\xe7\xe3o")}),p._uU(13,"Enviar para Reexecu\xe7\xe3o"),p.qZA(),p.qZA()}if(2&t){const t=p.oxw(2);p.xp6(11),p.Q6J("ngIf","Pending"!=t.task.Status)}}function y(t,n){if(1&t&&(p.TgZ(0,"div",4),p.YNc(1,k,14,1,"div",5),p.YNc(2,v,14,1,"div",5),p.YNc(3,A,14,1,"div",5),p.qZA()),2&t){const t=p.oxw();p.xp6(1),p.Q6J("ngIf","Tarefa de Despacho"==t.task.activityInstanceName),p.xp6(1),p.Q6J("ngIf","Reexecutar Despacho"==t.task.activityInstanceName),p.xp6(1),p.Q6J("ngIf","Concluir Despacho"==t.task.activityInstanceName)}}let T=(()=>{class t{constructor(t,n,e,o,i,a,s,c,r,d,l,p){this.activateRoute=t,this.processes=n,this.iab=e,this.attachmentsService=o,this.events=i,this.menu=a,this.modalController=s,this.popoverController=c,this.activatedRoute=r,this.toastService=d,this.despachoService=l,this.location=p,this.months=["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],this.days=["Domingo","Segunda-feira","Ter\xe7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\xe1bado"],this.eventsList=[],this.cc=[],this.activatedRoute.paramMap.subscribe(t=>{t.params.SerialNumber&&(this.serialnumber=t.params.SerialNumber),t.params.caller&&(this.caller=t.params.caller)})}ngOnInit(){this.profile="mdgpr",this.activateRoute.paramMap.subscribe(t=>{t.has("SerialNumber")}),this.LoadTaskDetail(this.serialnumber)}close(){this.modalController.dismiss()}goBack(){this.location.back()}LoadTaskDetail(t){return(0,o.mG)(this,void 0,void 0,function*(){this.processes.GetTask(t).subscribe(t=>{this.task={SerialNumber:t.serialNumber,Folio:t.workflowInstanceDataFields.Subject,Senders:t.originator.email,CreateDate:(0,i.momentG)(new Date(t.taskStartDate),"yyyy-MM-dd HH:mm:ss"),DocumentURL:t.workflowInstanceDataFields.ViewerRequest,Remetente:t.workflowInstanceDataFields.Sender,Note:t.workflowInstanceDataFields.TaskMessage||t.workflowInstanceDataFields.Note,FolderID:t.workflowInstanceDataFields.FolderID,FsId:"361",DocId:t.workflowInstanceDataFields.DispatchDocId,DocumentsQty:"",WorkflowName:t.workflowDisplayName,DeadlineType:t.workflowInstanceDataFields.DeadlineType,activityInstanceName:t.activityInstanceName,Status:t.workflowInstanceDataFields.Status},this.fulltask=t;let n=new Date(this.task.CreateDate);this.customDate=this.days[n.getDay()]+", "+n.getDate()+" de "+this.months[n.getMonth()],this.processes.GetTaskParticipants(this.task.FolderID).subscribe(t=>{this.intervenientes=t.filter(t=>"I"==t.Type),this.cc=t.filter(t=>"CC"==t.Type)})},t=>{try{this.goBack()}catch(n){this.location.back()}finally{this.toastService.badRequest(0==t.status?"N\xe3o \xe9 poss\xedvel visualizar este processo no modo offline":"Processo n\xe3o encontrado")}})})}viewDocument(t){this.processes.GetDocumentUrl(t,"361").subscribe(t=>{const n=t.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");this.iab.create(n,"_blank").show()})}openMenu(){this.menu.open(),this.modalController.dismiss()}executado(t,n){return(0,o.mG)(this,void 0,void 0,function*(){const e=this.toastService.loading();try{yield this.despachoService.executado(t,n,this.serialnumber).toPromise(),this.toastService.successMessage("Processo criado"),this.close()}catch(o){this.toastService.badRequest("Processo n\xe3o criado")}finally{e.remove()}})}arquivar(t,n){return(0,o.mG)(this,void 0,void 0,function*(){let e={serialNumber:this.serialnumber,action:"Arquivo",ActionTypeId:95,dataFields:{ReviewUserComment:t},AttachmentList:n};const o=this.toastService.loading();try{yield this.processes.CompleteTask(e).toPromise(),this.toastService.successMessage("Processo descartado"),this.close()}catch(i){this.toastService.badRequest("Processo n\xe3o descartado")}finally{o.remove()}})}reexecute(t,n){return(0,o.mG)(this,void 0,void 0,function*(){let e={serialNumber:this.serialnumber,action:"Reexecu\xe7\xe3o",ActionTypeId:100000010,dataFields:{ReviewUserComment:t},AttachmentList:n};const o=this.toastService.loading();try{yield this.processes.CompleteTask(e).toPromise(),this.toastService.successMessage(),this.close()}catch(i){this.toastService.badRequest()}finally{o.remove()}})}toDateString(t){return new Date(t).toDateString()}sendExpedienteToPending(){return(0,o.mG)(this,void 0,void 0,function*(){this.despachoService.sendExpedienteToPending(this.serialnumber).subscribe(t=>{this.goBack(),this.toastService.successMessage("Processo enviado para despacho")},t=>{this.toastService.badRequest("Processo n\xe3o enviado para despacho")})})}openAddNoteModal(t){return(0,o.mG)(this,void 0,void 0,function*(){let n;n=window.innerWidth<=800?"modal modal-desktop":"add-note-modal-no-height";const e=yield this.modalController.create({component:d.C,componentProps:{showAttachmentBtn:!0},cssClass:n,backdropDismiss:!0});yield e.present(),e.onDidDismiss().then(n=>(0,o.mG)(this,void 0,void 0,function*(){if(n.data){let e={ProcessInstanceID:"",Attachments:n.data.documents.map(t=>({ApplicationId:t.ApplicationType,SourceId:t.Id}))};"Executado"==t?yield this.executado(n.data.note,e):"Arquivar"==t?(yield this.arquivar(n.data.note,e),this.goBack()):"Reexecu\xe7\xe3o"==t&&(yield this.reexecute(n.data.note,e),this.goBack())}}))})}openExpedientActionsModal(t,n){return(0,o.mG)(this,void 0,void 0,function*(){let e;e=window.innerWidth<=800?"modal modal-desktop":"modal modal-desktop showAsideOptions";const i=yield this.modalController.create({component:c.A,componentProps:{taskAction:t,task:n,profile:this.profile,fulltask:this.fulltask},cssClass:e});yield i.present(),i.onDidDismiss().then(t=>(0,o.mG)(this,void 0,void 0,function*(){console.log(t.data),"openDiscart"==t.data&&(yield this.distartExpedientModal()),this.goBack()}))})}openBookMeetingModal(t){return(0,o.mG)(this,void 0,void 0,function*(){let t;t=window.innerWidth<=800?"book-meeting-modal modal modal-desktop":"modal modal-desktop showAsideOptions";const n=yield this.modalController.create({component:s.k,componentProps:{task:this.task},cssClass:t,backdropDismiss:!1});yield n.present(),n.onDidDismiss()})}openDelegarModal(t){return(0,o.mG)(this,void 0,void 0,function*(){let t;t=window.innerWidth<=800?"book-meeting-modal modal modal-desktop":"modal modal-desktop showAsideOptions";const n=yield this.modalController.create({component:r.i,componentProps:{task:this.task},cssClass:t,backdropDismiss:!1});yield n.present(),n.onDidDismiss().then(t=>{this.goBack()})})}distartExpedientModal(){return(0,o.mG)(this,void 0,void 0,function*(){console.log(this.fulltask);const t=yield this.modalController.create({component:a.Q,componentProps:{serialNumber:this.fulltask.serialNumber,folderId:this.fulltask.workflowInstanceDataFields.FolderID,action:"complete"},cssClass:"discart-expedient-modal",backdropDismiss:!1});yield t.present(),t.onDidDismiss().then(t=>{"close"==t.data&&this.close()})})}openOptions(t){return(0,o.mG)(this,void 0,void 0,function*(){const n=yield this.popoverController.create({component:l.Q,cssClass:"exp-options",componentProps:{task:this.task,fulltask:this.fulltask,taskAction:t,showEnviarPendentes:!1},translucent:!0});return yield n.present()})}}return t.\u0275fac=function(n){return new(n||t)(p.Y36(g.gz),p.Y36(u.$),p.Y36(m.i),p.Y36(h.o),p.Y36(f.n),p.Y36(x._q),p.Y36(x.IN),p.Y36(x.Dh),p.Y36(g.gz),p.Y36(M.k),p.Y36(C.K),p.Y36(_.Ye))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-despacho"]],decls:6,vars:6,consts:[[1,"ion-no-border"],[1,"main-content","d-flex","height-100"],[1,"content",3,"task","intervenientes","cc","customDate","fulltask","openOptions","goBack","viewDocument"],["class","aside-right flex-column height-100",4,"ngIf"],[1,"aside-right","flex-column","height-100"],["class","buttons",4,"ngIf"],[1,"buttons"],["shape","round",1,"btn-cancel",3,"click"],[1,"solid"],["shape","round",1,"btn-ok",3,"click"],["class","btn-cancel","shape","round",3,"click",4,"ngIf"]],template:function(t,n){1&t&&(p.TgZ(0,"ion-header",0),p._UZ(1,"app-header"),p.qZA(),p.TgZ(2,"ion-content"),p.TgZ(3,"div",1),p.TgZ(4,"app-task-details",2),p.NdJ("openOptions",function(t){return n.openOptions(t)})("goBack",function(){return n.goBack()})("viewDocument",function(t){return n.viewDocument(t)}),p.qZA(),p.YNc(5,y,4,3,"div",3),p.qZA(),p.qZA()),2&t&&(p.xp6(4),p.Q6J("task",n.task)("intervenientes",n.intervenientes)("cc",n.cc)("customDate",n.customDate)("fulltask",n.fulltask),p.xp6(1),p.Q6J("ngIf",n.task))},directives:[x.Gu,b.E,x.W2,w.I,_.O5],styles:[".main-content[_ngcontent-%COMP%]{background-color:#fff!important;border-top-left-radius:25px;border-top-right-radius:25px}.content[_ngcontent-%COMP%]{padding:30px 20px 0!important;margin:0;float:left}.color-red[_ngcontent-%COMP%]{font-weight:500;color:#d30a0a!important}.btn-size[_ngcontent-%COMP%]{font-size:18px!important}.main-header[_ngcontent-%COMP%]{display:flex;font-family:Roboto;background-color:#fff;color:#000;transform:translate3d(0,1px,0)}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%]{display:flex;justify-content:start!important;align-items:flex-start!important;border-radius:0!important}.main-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:auto;font-size:25px;overflow:auto;float:left;padding-left:5px}.main-header[_ngcontent-%COMP%] .div-icon[_ngcontent-%COMP%]{width:40px!important;font-size:35px!important;text-align:start!important;padding:1px}ion-item-group[_ngcontent-%COMP%]{margin:15px}ion-button[_ngcontent-%COMP%]{display:block;width:80%;margin:20px auto}.upper-content[_ngcontent-%COMP%]{font-family:Roboto;margin-top:15px;margin-left:41px;font-size:18px}.upper-content[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:20px;background:#ffb703;float:right;padding:5px 13.5px;color:#fff}.upper-content[_ngcontent-%COMP%] .button-calendar-type[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{height:25px}.upper-content[_ngcontent-%COMP%] .content-details[_ngcontent-%COMP%]{font-size:17px}.upper-content[_ngcontent-%COMP%] .content-details[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{color:#797979}.middle-conten[_ngcontent-%COMP%] .middle-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px}.bottom-content[_ngcontent-%COMP%]{margin:0 auto}.bottom-content[_ngcontent-%COMP%] .bottom-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;margin:0 0 0 10px}.bottom-content[_ngcontent-%COMP%] .attach-document[_ngcontent-%COMP%]{font-size:15px;color:#0d89d1;margin:5px 5px 5px 10px;padding:5px;float:left}.bottom-content[_ngcontent-%COMP%] .attach-icon[_ngcontent-%COMP%]{width:37px;font-size:35px;float:left}.bottom-content[_ngcontent-%COMP%] .attach-title-item[_ngcontent-%COMP%]{font-size:18px;width:100%;color:#0d89d1;padding-bottom:5px}.bottom-content[_ngcontent-%COMP%] .span-left[_ngcontent-%COMP%]{float:left;font-size:15x}.bottom-content[_ngcontent-%COMP%] .span-right[_ngcontent-%COMP%]{text-align:right;float:right;font-size:13px}.aside-right[_ngcontent-%COMP%]{padding:30px 20px 0!important}.aside-right[_ngcontent-%COMP%] .arrow-right[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:20px}.aside-right[_ngcontent-%COMP%] .arrow-right[_ngcontent-%COMP%] .arrow-right-icon[_ngcontent-%COMP%]{width:37px;float:right;font-size:35px;overflow:hidden}.aside-right[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between}.aside-right[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .btn-cancel[_ngcontent-%COMP%], .aside-right[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .btn-delete[_ngcontent-%COMP%], .aside-right[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .btn-ok[_ngcontent-%COMP%]{height:auto!important;font-size:16px!important;font-weight:600!important;width:100%!important;margin-bottom:10px!important;padding:15px!important}.aside-right[_ngcontent-%COMP%] .solid[_ngcontent-%COMP%]{display:block;width:90%;border-top:1px solid #ebebeb;margin:0 auto 10px!important}@media only screen and (max-width: 800px){.content[_ngcontent-%COMP%]{width:100%!important}.aside-right[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width: 801px){.div-icon[_ngcontent-%COMP%]{display:none}.content[_ngcontent-%COMP%]{width:65%;border-right:1px solid #d8d8d8}.aside-right[_ngcontent-%COMP%]{width:35%}}@media only screen and (min-width: 1024px){.content[_ngcontent-%COMP%]{width:70%}.aside-right[_ngcontent-%COMP%]{width:30%}}@media only screen and (min-width: 1140px){.content[_ngcontent-%COMP%]{width:75%}.aside-right[_ngcontent-%COMP%]{width:25%}}"]}),t})()},97998:function(t,n,e){"use strict";e.d(n,{I:function(){return f}});var o=e(37716);class i{}class a extends class{}{}var s=e(38583),c=e(35957);function r(t,n){if(1&t){const t=o.EpF();o.TgZ(0,"ion-header",2),o.TgZ(1,"div",3),o.TgZ(2,"div",4),o.TgZ(3,"div",5),o.NdJ("click",function(){return o.CHM(t),o.oxw().goBack.emit()}),o._UZ(4,"ion-icon",6),o.qZA(),o.TgZ(5,"div",7),o.TgZ(6,"ion-label",8),o._uU(7),o.qZA(),o.qZA(),o.TgZ(8,"div",9),o.NdJ("click",function(){return o.CHM(t),o.oxw().openOptions.emit()}),o._UZ(9,"ion-icon",10),o.qZA(),o.qZA(),o.qZA(),o.TgZ(10,"div",11),o.TgZ(11,"div",12),o.TgZ(12,"ion-label"),o.TgZ(13,"p"),o.TgZ(14,"span",13),o._uU(15),o.qZA(),o.TgZ(16,"span",14),o._uU(17),o.qZA(),o.qZA(),o.TgZ(18,"p"),o.TgZ(19,"span",15),o._uU(20),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o._UZ(21,"div",16),o.qZA()}if(2&t){const t=o.oxw();o.xp6(7),o.Oqu(t.task.Folio),o.xp6(8),o.Oqu(t.customDate),o.xp6(2),o.Oqu(t.task.activityInstanceName),o.xp6(3),o.Oqu(t.fulltask.workflowInstanceDataFields.DeadlineType)}}function d(t,n){1&t&&(o.TgZ(0,"h5"),o._uU(1,"Intervenientes"),o.qZA())}function l(t,n){if(1&t&&(o.TgZ(0,"div"),o.TgZ(1,"p"),o._uU(2),o.qZA(),o.qZA()),2&t){const t=n.$implicit;o.xp6(2),o.Oqu(t.Name)}}function p(t,n){if(1&t&&(o.TgZ(0,"div"),o.TgZ(1,"p"),o._uU(2),o.qZA(),o.qZA()),2&t){const t=n.$implicit;o.xp6(2),o.Oqu(t.Name)}}function g(t,n){if(1&t&&(o.TgZ(0,"div"),o.TgZ(1,"h5"),o._uU(2,"Com conhecimento"),o.qZA(),o.TgZ(3,"ion-item",20),o.TgZ(4,"ion-label"),o.YNc(5,p,3,1,"div",21),o.qZA(),o.qZA(),o.qZA()),2&t){const t=o.oxw(2);o.xp6(5),o.Q6J("ngForOf",t.cc)}}function u(t,n){if(1&t&&(o.TgZ(0,"div"),o.TgZ(1,"h5"),o._uU(2,"Detalhes"),o.qZA(),o.TgZ(3,"ion-item",20),o._UZ(4,"p",24),o.qZA(),o.qZA()),2&t){const t=o.oxw(2);o.xp6(4),o.Q6J("innerHTML",t.fulltask.workflowInstanceDataFields.TaskMessage,o.oJD)}}function m(t,n){if(1&t){const t=o.EpF();o.TgZ(0,"ion-item",25),o.TgZ(1,"ion-label",26),o.NdJ("click",function(){const n=o.CHM(t).$implicit;return o.oxw(2).viewDocument.emit(n.DocId)}),o.TgZ(2,"p",27),o._uU(3),o.TgZ(4,"span",28),o._UZ(5,"ion-icon",29),o.qZA(),o.qZA(),o.TgZ(6,"p"),o.TgZ(7,"span",30),o._uU(8),o.qZA(),o.TgZ(9,"span",31),o._uU(10),o.ALo(11,"date"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&t){const t=n.$implicit;o.xp6(3),o.Oqu(t.Assunto),o.xp6(5),o.Oqu(t.Sender),o.xp6(2),o.Oqu(o.xi3(11,3,t.DocDate,"dd/MM/yyyy HH:mm"))}}function h(t,n){if(1&t&&(o.TgZ(0,"div",17),o.TgZ(1,"div",18),o.YNc(2,d,2,0,"h5",19),o.TgZ(3,"ion-item",20),o.TgZ(4,"ion-label"),o.YNc(5,l,3,1,"div",21),o.qZA(),o.qZA(),o.YNc(6,g,6,1,"div",19),o.YNc(7,u,5,1,"div",19),o.qZA(),o.TgZ(8,"div",22),o.TgZ(9,"ion-list"),o.TgZ(10,"h5"),o._uU(11,"Documentos Anexados"),o.qZA(),o.YNc(12,m,12,6,"ion-item",23),o.qZA(),o.qZA(),o.qZA()),2&t){const t=o.oxw();o.xp6(2),o.Q6J("ngIf",t.intervenientes),o.xp6(3),o.Q6J("ngForOf",t.intervenientes),o.xp6(1),o.Q6J("ngIf",t.cc.length>0),o.xp6(1),o.Q6J("ngIf",t.fulltask.workflowInstanceDataFields.TaskMessage),o.xp6(5),o.Q6J("ngForOf",t.fulltask.Documents)}}let f=(()=>{class t{constructor(){this.task=new a,this.intervenientes=[],this.cc=[],this.customDate="",this.fulltask=new i,this.openOptions=new o.vpe,this.goBack=new o.vpe,this.viewDocument=new o.vpe}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-task-details"]],inputs:{task:"task",intervenientes:"intervenientes",cc:"cc",customDate:"customDate",fulltask:"fulltask"},outputs:{openOptions:"openOptions",goBack:"goBack",viewDocument:"viewDocument"},decls:3,vars:2,consts:[["class","ion-no-border",4,"ngIf"],["class","overflow-y-auto","style","margin-right: -20px; margin-right: -20px;",4,"ngIf"],[1,"ion-no-border"],[1,"main-header"],[1,"title-content","width-100","d-flex","justify-space-between","align-center"],["defaultHref","#",1,"btn-dismiss","font-30","cursor-pointer",3,"click"],["slot","end","src","assets/images/icons-arrow-arrow-left.svg"],[1,"middle","d-flex","align-center","flex-grow-1"],[1,"title"],[1,"div-icon",3,"click"],["src","assets/images/icons-menu.svg"],[1,"upper-content"],[1,"content-details"],[1,"date"],[1,"label"],[1,"color-red"],[1,"line"],[1,"overflow-y-auto",2,"margin-right","-20px","margin-right","-20px"],[1,"middle-content"],[4,"ngIf"],[1,"ion-no-margin","ion-no-padding"],[4,"ngFor","ngForOf"],[1,"bottom-content","width-100"],["class","ion-no-margin ion-no-padding cursor-pointer",4,"ngFor","ngForOf"],[3,"innerHTML"],[1,"ion-no-margin","ion-no-padding","cursor-pointer"],[1,"d-block",3,"click"],[1,"attach-title-item"],[1,"span-right","color-red","btn-size"],["hidden","","name","close"],[1,"span-left"],[1,"span-right"]],template:function(t,n){1&t&&(o.YNc(0,r,22,4,"ion-header",0),o.TgZ(1,"ion-content"),o.YNc(2,h,13,5,"div",1),o.qZA()),2&t&&(o.Q6J("ngIf",n.task),o.xp6(2),o.Q6J("ngIf",n.task))},directives:[s.O5,c.W2,c.Gu,c.gu,c.Q$,c.Ie,s.sg,c.q_],pipes:[s.uU],styles:[".main-content[_ngcontent-%COMP%]{background-color:#fff!important;border-top-left-radius:25px;border-top-right-radius:25px}.content[_ngcontent-%COMP%]{padding:30px 20px 0!important;margin:0;float:left}.color-red[_ngcontent-%COMP%]{font-weight:500;color:#d30a0a!important}.btn-size[_ngcontent-%COMP%]{font-size:18px!important}.main-header[_ngcontent-%COMP%]{display:flex;font-family:Roboto;background-color:#fff;color:#000;transform:translate3d(0,1px,0)}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%]{display:flex;justify-content:start!important;align-items:flex-start!important;border-radius:0!important}.main-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:auto;font-size:25px;overflow:auto;float:left;padding-left:5px}.main-header[_ngcontent-%COMP%] .div-icon[_ngcontent-%COMP%]{width:40px!important;font-size:35px!important;text-align:start!important;padding:1px}ion-item-group[_ngcontent-%COMP%]{margin:15px}ion-button[_ngcontent-%COMP%]{display:block;width:80%;margin:20px auto}.upper-content[_ngcontent-%COMP%]{font-family:Roboto;margin-top:15px;margin-left:41px;font-size:18px}.upper-content[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:20px;background:#ffb703;float:right;padding:5px 13.5px;color:#fff}.upper-content[_ngcontent-%COMP%] .button-calendar-type[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{height:25px}.upper-content[_ngcontent-%COMP%] .content-details[_ngcontent-%COMP%]{font-size:17px}.upper-content[_ngcontent-%COMP%] .content-details[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{color:#797979}.middle-conten[_ngcontent-%COMP%] .middle-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px}.bottom-content[_ngcontent-%COMP%]{margin:0 auto}.bottom-content[_ngcontent-%COMP%] .bottom-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;margin:0 0 0 10px}.bottom-content[_ngcontent-%COMP%] .attach-document[_ngcontent-%COMP%]{font-size:15px;color:#0d89d1;margin:5px 5px 5px 10px;padding:5px;float:left}.bottom-content[_ngcontent-%COMP%] .attach-icon[_ngcontent-%COMP%]{width:37px;font-size:35px;float:left}.bottom-content[_ngcontent-%COMP%] .attach-title-item[_ngcontent-%COMP%]{font-size:18px;width:100%;color:#0d89d1;padding-bottom:5px}.bottom-content[_ngcontent-%COMP%] .span-left[_ngcontent-%COMP%]{float:left;font-size:15x}.bottom-content[_ngcontent-%COMP%] .span-right[_ngcontent-%COMP%]{text-align:right;float:right;font-size:13px}.aside-right[_ngcontent-%COMP%]{padding:30px 20px 0!important}.aside-right[_ngcontent-%COMP%] .arrow-right[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:20px}.aside-right[_ngcontent-%COMP%] .arrow-right[_ngcontent-%COMP%] .arrow-right-icon[_ngcontent-%COMP%]{width:37px;float:right;font-size:35px;overflow:hidden}.aside-right[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between}.aside-right[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .btn-cancel[_ngcontent-%COMP%], .aside-right[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .btn-delete[_ngcontent-%COMP%], .aside-right[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .btn-ok[_ngcontent-%COMP%]{height:auto!important;font-size:16px!important;font-weight:600!important;width:100%!important;margin-bottom:10px!important;padding:15px!important}.aside-right[_ngcontent-%COMP%] .solid[_ngcontent-%COMP%]{display:block;width:90%;border-top:1px solid #ebebeb;margin:0 auto 10px!important}@media only screen and (max-width: 800px){.content[_ngcontent-%COMP%]{width:100%!important}.aside-right[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width: 801px){.div-icon[_ngcontent-%COMP%]{display:none}.content[_ngcontent-%COMP%]{width:65%;border-right:1px solid #d8d8d8}.aside-right[_ngcontent-%COMP%]{width:35%}}@media only screen and (min-width: 1024px){.content[_ngcontent-%COMP%]{width:70%}.aside-right[_ngcontent-%COMP%]{width:30%}}@media only screen and (min-width: 1140px){.content[_ngcontent-%COMP%]{width:75%}.aside-right[_ngcontent-%COMP%]{width:25%}}"]}),t})()}}]);