(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[562],{90562:function(t,e,i){"use strict";i.d(e,{A:function(){return N}});var s=i(64762),n=i(95336),o=i(45896),a=i(11055),r=i(4528),c=i(55199),l=i(3679),d=i(25653),p=i(37716),h=i(35957),u=i(28621),g=i(37556),m=i(84465),f=i(96529),v=i(40617);let P=(()=>{class t{constructor(t,e){this.processes=t,this.p=e}createParecer(t){return this.p.userRole(["PR"])?this.processes.postParecerPr(t):this.processes.postParecer(t)}createDeferimento(t){if(this.p.userRole(["PR"]))throw"PR cant create Deferimento";return this.processes.postDeferimento(t)}taskCompleteParecer({serialNumber:t}){return this.processes.CompleteTask({serialNumber:t,action:"Parecer",ActionTypeId:92,dataFields:{ReviewUserComment:""},AttachmentList:null})}taskCompleteDeferimento({serialNumber:t}){return this.processes.CompleteTask({serialNumber:t,action:"Deferimento",ActionTypeId:93,dataFields:{ReviewUserComment:""},AttachmentList:null})}}return t.\u0275fac=function(e){return new(e||t)(p.LFG(u.$),p.LFG(f.$))},t.\u0275prov=p.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var C=i(98295),Z=i(67441),y=i(72458),k=i(38583),D=i(1491),b=i(17352);function T(t,e){if(1&t&&(p.TgZ(0,"mat-option",46),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.s9C("value",t.Code),p.xp6(1),p.Oqu(t.Description)}}function x(t,e){1&t&&(p.TgZ(0,"ion-label",47),p._uU(1,"Adicionar intervenientes*"),p.qZA())}function A(t,e){if(1&t&&(p.TgZ(0,"ion-label"),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.Name)}}function M(t,e){1&t&&(p.TgZ(0,"ion-label",47),p._uU(1,"Com conhecimento"),p.qZA())}function q(t,e){if(1&t&&(p.TgZ(0,"ion-label"),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.Name)}}function w(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",48),p.TgZ(1,"ion-list"),p.TgZ(2,"ion-item"),p.TgZ(3,"ion-label"),p.TgZ(4,"p",49),p.TgZ(5,"span",50),p._uU(6),p.qZA(),p.TgZ(7,"span",51),p._uU(8),p.qZA(),p.TgZ(9,"span",52),p.NdJ("click",function(){const e=p.CHM(t).index;return p.oxw().removeAttachment(e)}),p._UZ(10,"ion-icon",53),p.qZA(),p.qZA(),p.TgZ(11,"p"),p.TgZ(12,"span",54),p._uU(13),p.qZA(),p.TgZ(14,"span",55),p._uU(15),p.ALo(16,"date"),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit;p.xp6(6),p.Oqu(t.Assunto),p.xp6(2),p.Oqu(t.appName),p.xp6(5),p.Oqu(t.EntidadeOrganicaNome),p.xp6(2),p.hij(" ",p.xi3(16,4,t.Data,"dd-MM-yyyy HH:mm")," ")}}function _(t,e){if(1&t&&p._UZ(0,"app-empty-container",59),2&t){const t=p.oxw(2);p.Q6J("texto",t.emptyTextDescription)}}function I(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-attendee-modal",60),p.NdJ("closeComponent",function(){return p.CHM(t),p.oxw(2).closeComponent()})("setIntervenient",function(e){return p.CHM(t),p.oxw(2).setIntervenient(e)})("setIntervenientCC",function(e){return p.CHM(t),p.oxw(2).setIntervenientCC(e)})("setContact",function(e){return p.CHM(t),p.oxw(2).setContact(e)})("dynamicSetIntervenient",function(e){return p.CHM(t),p.oxw(2).dynamicSetIntervenient(e)}),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("footer",!1)("adding",t.adding)("taskParticipants",t.taskParticipants)("taskParticipantsCc",t.taskParticipantsCc)}}function F(t,e){if(1&t&&(p.TgZ(0,"div",56),p.YNc(1,_,1,1,"app-empty-container",57),p.YNc(2,I,1,4,"app-attendee-modal",58),p.qZA()),2&t){const t=p.oxw();p.xp6(1),p.Q6J("ngIf",!t.showAttendees),p.xp6(1),p.Q6J("ngIf",t.showAttendees)}}const O={parse:{dateInput:"YYYY-MMMM-DD HH:mm"},display:{dateInput:"DD MMM YYYY H:mm",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let N=(()=>{class t{constructor(t,e,i,s,o,a,r,c,d,p){let h,u,g,m;this.modalController=t,this.processes=e,this.navParams=i,this.authService=s,this.userAuth=o,this.animationController=a,this.toastService=r,this.p=c,this.despachoService=d,this.pedidoService=p,this.modalTitle=["Efectuar Despacho","Solicitar Parecer","Solicitar Deferimento"],this.taskParticipants=[],this.taskParticipantsCc=[],this.selectedTypes=[],this.contacts=[],this.showAttendees=!1,this.adding="intervenient",this.validateFrom=!1,this.emptyTextDescription="Sem intervenientes selecionados",this.showEmptyContainer=!0,this.documents=[],this.toppings=new l.NI,this.toppingList=["Economia","Sa\xfade","Educa\xe7\xe3o","Finan\xe7as","Agricultura"],this.loggeduser=o.ValidatedUser,this.task=this.navParams.get("task"),this.taskType=this.navParams.get("taskAction"),this.postData=new n.Q,this.participants=this.participants=new Array,this.selectedTypes=["99999850"],this.fulltask&&this.fulltask.workflowInstanceDataFields&&(h=this.fulltask.workflowInstanceDataFields.DispatchNumber),this.task.workflowInstanceDataFields.FolderID||this.task.FolderId?(u=this.task.workflowInstanceDataFields.FolderID,g="FOLDER",m=361):(u=this.task.workflowInstanceDataFields.SourceID,g="DOC",m=8),this.dispatchFolder={Nad:30,Subject:"",Message:"",SourceSecFsId:m,SourceType:g,SourceId:u,DeadlineType:"",SubjectTypes:this.selectedTypes,NumberPDPP:this.task.workflowInstanceDataFields.DispatchNumber||h},this.postData.DispatchFolder=this.dispatchFolder,this.postData.UsersSelected=this.participants,this.postData.Priority="99999861",this.postData.DispatchFolder.Subject=this.task.workflowInstanceDataFields.Subject,this.profile=this.navParams.get("profile")}setAdding(t){return(0,s.mG)(this,void 0,void 0,function*(){this.adding=t})}ngOnInit(){this.getSubjectType(),setTimeout(()=>{this.selectedTypes=["99999850"]},500),this.taskDate=new Date(this.task.taskStartDate)}onSelectedTypesChanged(t){console.log(t),t.length>1&&(console.log(t.filter(t=>"99999850"!=t)),this.selectedTypes=t.filter(t=>"99999850"!=t)),0==t.length&&(this.selectedTypes=["99999850"])}close(){this.modalController.dismiss(null)}getSubjectType(){this.processes.GetSubjectType().subscribe(t=>{this.subjectTypes=t})}cancelTask(){this.modalController.dismiss(null)}runValidation(){this.validateFrom=!0}injectValidation(){this.Form=new l.cw({Subject:new l.NI(this.postData.DispatchFolder.Subject,[l.kI.required]),Message:new l.NI(this.postData.DispatchFolder.Message,[l.kI.required]),Priority:new l.NI(this.postData.Priority,[l.kI.required]),participantes:new l.NI(this.taskParticipants,[l.kI.required]),selectedTypes:new l.NI(this.selectedTypes,[l.kI.required])})}saveTask(){return(0,s.mG)(this,void 0,void 0,function*(){if(!this.p.userRole(["PR"])&&(this.injectValidation(),this.runValidation(),this.Form.invalid))return!1;"99999861"==this.postData.Priority?this.dispatchFolder.DeadlineType="Normal":"99999862"==this.postData.Priority?this.dispatchFolder.DeadlineType="Urgente":"99999863"==this.postData.Priority?this.dispatchFolder.DeadlineType="Muito Urgente":"99999864"==this.postData.Priority&&(this.dispatchFolder.DeadlineType="Urgent\xedssimo");let t=this.taskParticipants.concat(this.taskParticipantsCc);t=t.map(function(t){return{UserEmail:t.EmailAddress,UserType:t.IsRequired?"I":"CC"}}),this.documents.map(t=>({ApplicationId:t.ApplicationType,SourceId:t.Id})),this.dispatchFolder.SubjectTypes=this.selectedTypes;const e=this.toastService.loading();switch(this.loggeduser.Profile){case"MDGPR":switch(this.taskType){case"0":this.postData={DistributionType:"Paralelo",CountryCode:"AO",Priority:this.postData.Priority,UserEmail:this.loggeduser.Email,UsersSelected:t,DispatchFolder:this.dispatchFolder},console.log("this.postData",this.postData,this.taskType);try{yield this.processes.postDespatcho(this.postData).toPromise(),yield this.FinalizarDespacho(e,"Despacho criado"),this.modalController.dismiss()}catch(i){this.toastService.badRequest("Processo n\xe3o efectuado"),e.remove()}break;case"1":this.postData={DistributionType:"Paralelo",CountryCode:"AO",Priority:this.postData.Priority,UserEmail:this.loggeduser.Email,UsersSelected:t,DispatchFolder:this.dispatchFolder},console.log(this.postData);try{"Tarefa de Despacho"==this.task.activityInstanceName||"Reexecutar Despacho"==this.task.activityInstanceName?(yield this.despachoService.createParecer(this.postData).toPromise(),yield this.despachoService.solicitarParecer({serialnumber:this.task.serialNumber}).toPromise()):(yield this.pedidoService.createParecer(this.postData).toPromise(),yield this.pedidoService.taskCompleteParecer({serialNumber:this.task.serialNumber}).toPromise()),this.modalController.dismiss(),this.toastService.successMessage("Pedido de Parecer enviado")}catch(i){this.toastService.badRequest("Processo n\xe3o efectuado")}finally{e.remove()}break;case"2":this.postData={DistributionType:"Paralelo",CountryCode:"AO",Priority:this.postData.Priority,UserEmail:this.loggeduser.Email,UsersSelected:t,DispatchFolder:this.dispatchFolder},console.log(this.postData);try{yield this.pedidoService.createDeferimento(this.postData).toPromise(),yield this.pedidoService.taskCompleteDeferimento({serialNumber:this.task.serialNumber}).toPromise(),this.modalController.dismiss(),this.toastService.successMessage("Pedido de Deferimento criado")}catch(i){this.toastService.badRequest("Processo n\xe3o efectuado")}finally{e.remove()}}break;case"PR":switch(this.taskType){case"0":this.postData={DistributionType:"Paralelo",CountryCode:"AO",Priority:this.postData.Priority,UserEmail:this.loggeduser.Email,UsersSelected:t,DispatchFolder:this.dispatchFolder},console.log("this.postData",this.postData,this.taskType);try{yield this.despachoService.createDespacho(this.postData).toPromise(),yield this.despachoService.CompleteTask({serialNumber:this.task.serialNumber}).toPromise(),this.modalController.dismiss(),this.toastService.successMessage("Despacho criado")}catch(i){this.toastService.badRequest("Processo n\xe3o efectuado")}finally{e.remove()}break;case"1":this.postData={DistributionType:"Paralelo",CountryCode:"AO",Priority:this.postData.Priority,UserEmail:this.loggeduser.Email,UsersSelected:t,DispatchFolder:this.dispatchFolder},console.log(this.postData);try{"Tarefa de Despacho"==this.task.activityInstanceName||"Reexecutar Despacho"==this.task.activityInstanceName?(yield this.despachoService.createParecer(this.postData).toPromise(),yield this.despachoService.solicitarParecer({serialnumber:this.task.serialNumber}).toPromise()):(yield this.pedidoService.createParecer(this.postData).toPromise(),yield this.pedidoService.taskCompleteParecer({serialNumber:this.task.serialNumber}).toPromise()),this.modalController.dismiss(),this.toastService.successMessage("Pedido de Parecer criado")}catch(i){this.toastService.badRequest("Processo n\xe3o efectuado")}finally{e.remove()}break;case"2":this.postData={DistributionType:"Paralelo",CountryCode:"AO",Priority:this.postData.Priority,UserEmail:this.loggeduser.Email,UsersSelected:t,DispatchFolder:this.dispatchFolder},console.log(this.postData);try{yield this.pedidoService.createDeferimento(this.postData).toPromise(),yield this.pedidoService.taskCompleteDeferimento({serialNumber:this.task.serialNumber}).toPromise(),this.modalController.dismiss(),this.toastService.successMessage("Pedido de Deferimento criado")}catch(i){this.toastService.badRequest("Processo n\xe3o efectuado")}finally{e.remove()}}}})}FinalizarDespacho(t,e){return(0,s.mG)(this,void 0,void 0,function*(){let i;"Tarefa de Despacho"==this.task.activityInstanceName||"Reexecutar Despacho"==this.task.activityInstanceName?i={serialNumber:this.task.serialNumber,action:"Conhecimento",ActionTypeId:104,dataFields:{ReviewUserComment:""},AttachmentList:null}:"Concluir Despacho"==this.task.activityInstanceName||"Concluir Parecer"==this.task.activityInstanceName||"Concluir Deferimento"==this.task.activityInstanceName||"Reapreciar Deferimento"==this.task.activityInstanceName||"Tarefa de Deferimento"==this.task.activityInstanceName?i={serialNumber:this.task.serialNumber,action:"Despacho",ActionTypeId:94,dataFields:{ReviewUserComment:""},AttachmentList:null}:console.log("unexpected activityInstanceName",this.task),console.log(i);try{yield this.processes.CompleteTask(i).toPromise(),this.toastService.successMessage(e)}catch(s){this.toastService.badRequest("Processo n\xe3o efectuado")}finally{t.remove()}})}addParticipants(){return(0,s.mG)(this,void 0,void 0,function*(){if(this.adding="intervenient",this.contacts=this.taskParticipants,window.innerWidth<=800){this.showAttendees=!1;const t=yield this.modalController.create({component:c.V,componentProps:{adding:this.adding,taskParticipants:this.taskParticipants,taskParticipantsCc:this.taskParticipantsCc},cssClass:"modal attendee",backdropDismiss:!1});yield t.present(),t.onDidDismiss().then(t=>{if(t){const e=(t=t.data).taskParticipantsCc;this.setIntervenient(t.taskParticipants),this.setIntervenientCC(e)}})}else this.showAttendees=!0})}addParticipantsCc(){return(0,s.mG)(this,void 0,void 0,function*(){if(this.adding="CC",this.contacts=this.taskParticipantsCc,window.innerWidth<=800){this.showAttendees=!1;const t=yield this.modalController.create({component:c.V,componentProps:{adding:this.adding,taskParticipants:this.taskParticipants,taskParticipantsCc:this.taskParticipantsCc},cssClass:"attendee",backdropDismiss:!1});yield t.present(),t.onDidDismiss().then(t=>{if(t){const e=(t=t.data).taskParticipantsCc;this.setIntervenient(t.taskParticipants),this.setIntervenientCC(e)}})}else this.showAttendees=!0})}distartExpedientModal(){return(0,s.mG)(this,void 0,void 0,function*(){const t=yield this.modalController.create({component:o.Q,componentProps:{serialNumber:this.task.serialNumber,folderId:this.task.workflowInstanceDataFields.FolderID,action:"complete"},cssClass:"discart-expedient-modal",backdropDismiss:!1});yield t.present(),t.onDidDismiss().then(t=>{"close"==t.data&&(console.log("Expedient Discard closed"),this.modalController.dismiss(t.data))})})}setContact(t){return(0,s.mG)(this,void 0,void 0,function*(){"intervenient"==this.adding?this.taskParticipants=t:"CC"==this.adding&&(this.taskParticipantsCc=t)})}dynamicSetIntervenient({taskParticipants:t,taskParticipantsCc:e}){this.taskParticipants=t,this.taskParticipantsCc=e}setIntervenient(t){return(0,s.mG)(this,void 0,void 0,function*(){this.taskParticipants=t})}setIntervenientCC(t){return(0,s.mG)(this,void 0,void 0,function*(){this.taskParticipantsCc=t})}closeComponent(){return(0,s.mG)(this,void 0,void 0,function*(){this.showAttendees=!1})}viewExpedientDetail(){return(0,s.mG)(this,void 0,void 0,function*(){let t;console.log(this.profile),t=window.innerWidth<=800?"modal modal-desktop":"modal modal-desktop showAsideOptions";const e=yield this.modalController.create({component:a.C,componentProps:{serialNumber:this.task.serialNumber,profile:this.profile},cssClass:t,backdropDismiss:!1});yield e.present(),e.onDidDismiss().then(t=>{})})}removeAttachment(t){this.documents=this.documents.filter((e,i)=>t!=i)}getDoc(){return(0,s.mG)(this,void 0,void 0,function*(){const t=yield this.modalController.create({component:r.Z,cssClass:"modal-width-100-width-background modal",componentProps:{type:"AccoesPresidenciais & ArquivoDespachoElect",showSearchInput:!0,select:!0}});yield t.present(),t.onDidDismiss().then(t=>{t&&this.documents.push(t.data.selected)})})}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(h.IN),p.Y36(u.$),p.Y36(h.X1),p.Y36(g.e),p.Y36(g.e),p.Y36(h.vB),p.Y36(m.k),p.Y36(f.$),p.Y36(v.K),p.Y36(P))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-create-process"]],features:[p._Bn([{provide:d.ab,useValue:O}])],decls:101,vars:23,consts:[[1,"height-100"],[1,"main-content","d-flex","height-100"],[1,"content","d-flex","flex-column","width-100"],["lines","none",1,"title"],[1,"ion-item-container","width-100"],["placeholder","Assunto*",3,"ngModel","ngModelChange"],[1,"container-div","width-100"],[1,"ion-item-class-2"],[1,"ion-icon-class"],["slot","start","src","assets/images/icons-description.svg"],[1,"ion-input-class","flex-grow-1"],["placeholder","Descri\xe7\xe3o",1,"add-border",3,"ngModel","ngModelChange"],[1,"d-flex","flex-column","height-100","overflow-y-auto"],[1,"ion-item-class-2","width-100"],["slot","start","name","time-outline",1,"icon-time"],[1,"ion-input-class"],["placeholder","Prazo*","interface","action-sheet","Cancel-text","Cancelar","required","",1,"d-block","d-md-none",3,"ngModel","ngModelChange"],["value","99999861"],["value","99999862"],["value","99999863"],["value","99999864"],["appearance","fill","floatLabel","never","appearance","none",1,"width-100","d-none","d-md-block"],["placeholder","Prazo*",3,"ngModel","ngModelChange"],[1,"container-div"],["floatLabel","never","appearance","fill","appearance","none",1,"width-100","d-block"],["multiple","","placeholder","Selecione o tipo de evento*",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["slot","start","src","assets/images/icons-person.svg"],[1,"ion-input-class-no-height"],[1,"list-people"],["lines","none"],["class","list-people-title",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"add-people",3,"click"],["slot","start","src","assets/images/icons-arrow-forward.svg"],["slot","start","src","assets/images/icons-people-cc.svg"],[1,"ion-item-container-no-border",3,"click"],[1,"d-flex","align-center"],[1,"attach-icon","d-flex","align-center"],["src","assets/images/icons-attach-doc.svg"],[1,"attach-document","pl-10"],["class","list ",4,"ngFor","ngForOf"],["class","aside-right flex-column height-100",4,"ngIf"],[1,"buttons"],["shape","round",1,"btn-cancel",3,"click"],["shape","round",1,"btn-ok",3,"click"],[3,"value"],[1,"list-people-title"],[1,"list"],[1,"d-flex","ion-justify-content-between"],[1,"attach-title-item"],[1,"app-name"],[1,"close-button","text-black","cursor-pointer",3,"click"],["src","assets/images/icons-delete-25.svg",1,"font-20"],[1,"span-left"],[1,"span-right"],[1,"aside-right","flex-column","height-100"],["class","d-flex height-100 flex-column",3,"texto",4,"ngIf"],["class","d-flex flex-column height-100",3,"footer","adding","taskParticipants","taskParticipantsCc","closeComponent","setIntervenient","setIntervenientCC","setContact","dynamicSetIntervenient",4,"ngIf"],[1,"d-flex","height-100","flex-column",3,"texto"],[1,"d-flex","flex-column","height-100",3,"footer","adding","taskParticipants","taskParticipantsCc","closeComponent","setIntervenient","setIntervenientCC","setContact","dynamicSetIntervenient"]],template:function(t,e){if(1&t&&(p.TgZ(0,"ion-content",0),p.TgZ(1,"div",1),p.TgZ(2,"div",2),p.TgZ(3,"div",3),p._uU(4),p.qZA(),p.TgZ(5,"div",4),p.TgZ(6,"ion-input",5),p.NdJ("ngModelChange",function(t){return e.postData.DispatchFolder.Subject=t}),p.qZA(),p.qZA(),p.TgZ(7,"div",6),p.TgZ(8,"div",7),p.TgZ(9,"div",8),p._UZ(10,"ion-icon",9),p.qZA(),p.TgZ(11,"div",10),p.TgZ(12,"ion-textarea",11),p.NdJ("ngModelChange",function(t){return e.postData.DispatchFolder.Message=t}),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.TgZ(13,"div",12),p.TgZ(14,"div",6),p.TgZ(15,"div",13),p.TgZ(16,"div",8),p._UZ(17,"ion-icon",14),p.qZA(),p.TgZ(18,"div",15),p.TgZ(19,"ion-select",16),p.NdJ("ngModelChange",function(t){return e.postData.Priority=t}),p.TgZ(20,"ion-select-option",17),p.TgZ(21,"b"),p._uU(22,"Normal"),p.qZA(),p._uU(23," (4 dias para a execu\xe7\xe3o da tarefa)"),p.qZA(),p.TgZ(24,"ion-select-option",18),p.TgZ(25,"b"),p._uU(26,"Urgente"),p.qZA(),p._uU(27," (2 dias para a execu\xe7\xe3o da tarefa)"),p.qZA(),p.TgZ(28,"ion-select-option",19),p.TgZ(29,"b"),p._uU(30,"Muito Urgente"),p.qZA(),p._uU(31," (1 dia para a execu\xe7\xe3o da tarefa)"),p.qZA(),p.TgZ(32,"ion-select-option",20),p.TgZ(33,"b"),p._uU(34,"Urgent\xedssimo"),p.qZA(),p._uU(35," (8 horas para a execu\xe7\xe3o da tarefa)"),p.qZA(),p.qZA(),p.TgZ(36,"mat-form-field",21),p.TgZ(37,"mat-select",22),p.NdJ("ngModelChange",function(t){return e.postData.Priority=t}),p.TgZ(38,"mat-option",17),p.TgZ(39,"b"),p._uU(40,"Normal"),p.qZA(),p._uU(41," (4 dias para a execu\xe7\xe3o da tarefa)"),p.qZA(),p.TgZ(42,"mat-option",18),p.TgZ(43,"b"),p._uU(44,"Urgente"),p.qZA(),p._uU(45," (2 dias para a execu\xe7\xe3o da tarefa)"),p.qZA(),p.TgZ(46,"mat-option",19),p.TgZ(47,"b"),p._uU(48,"Muito Urgente"),p.qZA(),p._uU(49," (1 dia para a execu\xe7\xe3o da tarefa)"),p.qZA(),p.TgZ(50,"mat-option",20),p.TgZ(51,"b"),p._uU(52,"Urgent\xedssimo"),p.qZA(),p._uU(53," (8 horas para a execu\xe7\xe3o da tarefa)"),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.TgZ(54,"div",23),p.TgZ(55,"div",7),p.TgZ(56,"div",8),p._UZ(57,"ion-icon",9),p.qZA(),p.TgZ(58,"div",15),p.TgZ(59,"mat-form-field",24),p.TgZ(60,"mat-select",25),p.NdJ("ngModelChange",function(t){return e.selectedTypes=t}),p.YNc(61,T,2,2,"mat-option",26),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.TgZ(62,"div",23),p.TgZ(63,"div",7),p.TgZ(64,"div",8),p._UZ(65,"ion-icon",27),p.qZA(),p.TgZ(66,"div",28),p.TgZ(67,"div",29),p.TgZ(68,"ion-item",30),p.TgZ(69,"ion-list"),p.YNc(70,x,2,0,"ion-label",31),p.YNc(71,A,2,1,"ion-label",32),p.qZA(),p.qZA(),p.qZA(),p.TgZ(72,"div",33),p.NdJ("click",function(){return e.addParticipants()}),p._UZ(73,"ion-icon",34),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.TgZ(74,"div",23),p.TgZ(75,"div",7),p.TgZ(76,"div",8),p._UZ(77,"ion-icon",35),p.qZA(),p.TgZ(78,"div",28),p.TgZ(79,"div",29),p.TgZ(80,"ion-item",30),p.TgZ(81,"ion-list"),p.YNc(82,M,2,0,"ion-label",31),p.YNc(83,q,2,1,"ion-label",32),p.qZA(),p.qZA(),p.qZA(),p.TgZ(84,"div",33),p.NdJ("click",function(){return e.addParticipantsCc()}),p._UZ(85,"ion-icon",34),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.TgZ(86,"div",36),p.NdJ("click",function(){return e.getDoc()}),p.TgZ(87,"ion-label",37),p.TgZ(88,"div",38),p._UZ(89,"ion-icon",39),p.qZA(),p.TgZ(90,"div",40),p.TgZ(91,"ion-label"),p._uU(92,"Anexar Documentos"),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.YNc(93,w,17,7,"div",41),p.qZA(),p.qZA(),p.YNc(94,F,3,2,"div",42),p.qZA(),p.qZA(),p.TgZ(95,"ion-footer"),p.TgZ(96,"div",43),p.TgZ(97,"button",44),p.NdJ("click",function(){return e.cancelTask()}),p._uU(98,"Cancelar"),p.qZA(),p.TgZ(99,"button",45),p.NdJ("click",function(){return e.saveTask()}),p._uU(100,"Gravar"),p.qZA(),p.qZA(),p.qZA()),2&t){let t,i,s,n,o;p.xp6(4),p.hij(" ",e.modalTitle[e.taskType]," "),p.xp6(1),p.ekj("input-error",(null==e.Form||null==(t=e.Form.get("Subject"))?null:t.invalid)&&e.validateFrom),p.xp6(1),p.Q6J("ngModel",e.postData.DispatchFolder.Subject),p.xp6(5),p.ekj("input-error",(null==e.Form||null==(i=e.Form.get("Message"))?null:i.invalid)&&e.validateFrom),p.xp6(1),p.Q6J("ngModel",e.postData.DispatchFolder.Message),p.xp6(6),p.ekj("input-error",(null==e.Form||null==(s=e.Form.get("Priority"))?null:s.invalid)&&e.validateFrom),p.xp6(1),p.Q6J("ngModel",e.postData.Priority),p.xp6(18),p.Q6J("ngModel",e.postData.Priority),p.xp6(21),p.ekj("input-error",(null==e.Form||null==(n=e.Form.get("selectedTypes"))?null:n.invalid)&&e.validateFrom),p.xp6(2),p.Q6J("ngModel",e.selectedTypes),p.xp6(1),p.Q6J("ngForOf",e.subjectTypes),p.xp6(5),p.ekj("input-error",(null==e.Form||null==(o=e.Form.get("participantes"))?null:o.invalid)&&e.validateFrom),p.xp6(4),p.Q6J("ngIf",(null==e.taskParticipants?null:e.taskParticipants.length)<1),p.xp6(1),p.Q6J("ngForOf",e.taskParticipants),p.xp6(11),p.Q6J("ngIf",(null==e.taskParticipantsCc?null:e.taskParticipantsCc.length)<1),p.xp6(1),p.Q6J("ngForOf",e.taskParticipantsCc),p.xp6(10),p.Q6J("ngForOf",e.documents),p.xp6(1),p.Q6J("ngIf",e.postData)}},directives:[h.W2,h.pK,h.j9,l.JJ,l.On,h.gu,h.g2,h.t9,h.QI,l.Q7,h.n0,C.KE,Z.gD,y.ey,k.sg,h.Ie,h.q_,k.O5,h.Q$,h.fr,D.M,b.Y],pipes:[k.uU],styles:[".content[_ngcontent-%COMP%]{padding:30px 20px 0!important;margin:0;float:left}.content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-family:Roboto;font-size:25px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#000}.content[_ngcontent-%COMP%] .container-div[_ngcontent-%COMP%]{margin-bottom:15px}.content[_ngcontent-%COMP%] .ion-item-container[_ngcontent-%COMP%]{margin:15px auto;border:1px solid #ebebeb;border-radius:5px;padding-left:5px}.content[_ngcontent-%COMP%] .ion-item-class-2[_ngcontent-%COMP%]{margin:0 auto;overflow:auto}.content[_ngcontent-%COMP%] .ion-icon-class[_ngcontent-%COMP%]{width:45px;height:45px;float:left;padding:10px;font-size:25px}.content[_ngcontent-%COMP%] ion-select[_ngcontent-%COMP%]{padding-left:5px;margin-left:0}.content[_ngcontent-%COMP%] .ion-input-class[_ngcontent-%COMP%]{width:calc(100% - 45px);border:1px solid #ebebeb;border-radius:5px;padding-left:5px;padding-right:10px;float:left;flex:1}.content[_ngcontent-%COMP%] .ion-input-class-no-height[_ngcontent-%COMP%]{border:1px solid #ebebeb;border-radius:5px;overflow:auto}.content[_ngcontent-%COMP%] .list-people[_ngcontent-%COMP%]{width:256px;float:left}.content[_ngcontent-%COMP%] .add-people[_ngcontent-%COMP%]{width:45px;float:right;overflow:auto;font-size:25px;padding:10px}.content[_ngcontent-%COMP%] .list-people-title[_ngcontent-%COMP%]{color:#a3a3a3}.content[_ngcontent-%COMP%] .attach-document[_ngcontent-%COMP%], .content[_ngcontent-%COMP%] .attach-title-item[_ngcontent-%COMP%]{font-size:15px;color:#0d89d1}.content[_ngcontent-%COMP%] .attach-title-item[_ngcontent-%COMP%]{width:100%}.content[_ngcontent-%COMP%] .span-left[_ngcontent-%COMP%]{float:left;font-size:15x}.content[_ngcontent-%COMP%] .span-right[_ngcontent-%COMP%]{text-align:right;float:right;font-size:13px}.container-footer[_ngcontent-%COMP%]{margin:0 auto;overflow:auto}.container-footer[_ngcontent-%COMP%] .button-cancel[_ngcontent-%COMP%]{width:170px;height:44px;border-radius:22.5px;--background:#e0e9ee;--color:#061b52;margin:10px}.container-footer[_ngcontent-%COMP%] .button-save[_ngcontent-%COMP%]{width:170px;height:44px;border-radius:22.5px;--background:#42b9fe;--color:#fff;margin:10px}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:20px;overflow:auto}@media only screen and (min-width: 1024px){.aside-content[_ngcontent-%COMP%]{display:block}}.close-button[_ngcontent-%COMP%]{display:none}.list[_ngcontent-%COMP%]:hover .app-name[_ngcontent-%COMP%]{display:none}.list[_ngcontent-%COMP%]:hover .close-button[_ngcontent-%COMP%]{display:block!important}.app-name[_ngcontent-%COMP%]{background:#42b9f2;border-radius:18px;text-align:center;display:flex;align-items:center;padding:0 5px;color:#fff;font-size:9pt;font-weight:500;height:19px;-webkit-border-radius:18px;-moz-border-radius:18px;-ms-border-radius:18px;-o-border-radius:18px}.attach-icon[_ngcontent-%COMP%]{width:37px;font-size:35px;float:left}.attach-title-item[_ngcontent-%COMP%]{width:100%;font-size:15px;color:#0d89d1}.span-left[_ngcontent-%COMP%]{float:left;font-size:15x}.span-right[_ngcontent-%COMP%]{text-align:right;float:right;font-size:13px}.icon-time[_ngcontent-%COMP%]{color:#797979b0}"]}),t})()}}]);