Files
doneit-web/_platforms/browser/www/562-es5.97634364430e56a3e6ae.js
T
tiago.kayaya 24e2a8f518 save
2021-08-18 18:58:02 +01:00

1 line
30 KiB
JavaScript

!function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function n(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[562],{90562:function(t,i,a){"use strict";a.d(i,{A:function(){return U}});var s=a(64762),o=a(95336),r=a(45896),c=a(11055),l=a(4528),d=a(55199),p=a(3679),u=a(25653),h=a(37716),m=a(35957),g=a(28621),f=a(37556),v=a(84465),k=a(96529),x=a(40617),P=function(){var t=function(){function t(n,i){e(this,t),this.processes=n,this.p=i}return n(t,[{key:"createParecer",value:function(e){return this.p.userRole(["PR"])?this.processes.postParecerPr(e):this.processes.postParecer(e)}},{key:"createDeferimento",value:function(e){if(this.p.userRole(["PR"]))throw"PR cant create Deferimento";return this.processes.postDeferimento(e)}},{key:"taskCompleteParecer",value:function(e){var t=e.serialNumber;return this.processes.CompleteTask({serialNumber:t,action:"Parecer",ActionTypeId:92,dataFields:{ReviewUserComment:""},AttachmentList:null})}},{key:"taskCompleteDeferimento",value:function(e){var t=e.serialNumber;return this.processes.CompleteTask({serialNumber:t,action:"Deferimento",ActionTypeId:93,dataFields:{ReviewUserComment:""},AttachmentList:null})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.LFG(g.$),h.LFG(k.$))},t.\u0275prov=h.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),C=a(98295),b=a(67441),Z=a(72458),D=a(38583),y=a(1491),T=a(17352);function A(e,t){if(1&e&&(h.TgZ(0,"mat-option",46),h._uU(1),h.qZA()),2&e){var n=t.$implicit;h.s9C("value",n.Code),h.xp6(1),h.Oqu(n.Description)}}function w(e,t){1&e&&(h.TgZ(0,"ion-label",47),h._uU(1,"Adicionar intervenientes*"),h.qZA())}function M(e,t){if(1&e&&(h.TgZ(0,"ion-label"),h._uU(1),h.qZA()),2&e){var n=t.$implicit;h.xp6(1),h.Oqu(n.Name)}}function q(e,t){1&e&&(h.TgZ(0,"ion-label",47),h._uU(1,"Com conhecimento"),h.qZA())}function _(e,t){if(1&e&&(h.TgZ(0,"ion-label"),h._uU(1),h.qZA()),2&e){var n=t.$implicit;h.xp6(1),h.Oqu(n.Name)}}function I(e,t){if(1&e){var n=h.EpF();h.TgZ(0,"div",48),h.TgZ(1,"ion-list"),h.TgZ(2,"ion-item"),h.TgZ(3,"ion-label"),h.TgZ(4,"p",49),h.TgZ(5,"span",50),h._uU(6),h.qZA(),h.TgZ(7,"span",51),h._uU(8),h.qZA(),h.TgZ(9,"span",52),h.NdJ("click",function(){var e=h.CHM(n).index;return h.oxw().removeAttachment(e)}),h._UZ(10,"ion-icon",53),h.qZA(),h.qZA(),h.TgZ(11,"p"),h.TgZ(12,"span",54),h._uU(13),h.qZA(),h.TgZ(14,"span",55),h._uU(15),h.ALo(16,"date"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA()}if(2&e){var i=t.$implicit;h.xp6(6),h.Oqu(i.Assunto),h.xp6(2),h.Oqu(i.appName),h.xp6(5),h.Oqu(i.EntidadeOrganicaNome),h.xp6(2),h.hij(" ",h.xi3(16,4,i.Data,"dd-MM-yyyy HH:mm")," ")}}function F(e,t){if(1&e&&h._UZ(0,"app-empty-container",59),2&e){var n=h.oxw(2);h.Q6J("texto",n.emptyTextDescription)}}function O(e,t){if(1&e){var n=h.EpF();h.TgZ(0,"app-attendee-modal",60),h.NdJ("closeComponent",function(){return h.CHM(n),h.oxw(2).closeComponent()})("setIntervenient",function(e){return h.CHM(n),h.oxw(2).setIntervenient(e)})("setIntervenientCC",function(e){return h.CHM(n),h.oxw(2).setIntervenientCC(e)})("setContact",function(e){return h.CHM(n),h.oxw(2).setContact(e)})("dynamicSetIntervenient",function(e){return h.CHM(n),h.oxw(2).dynamicSetIntervenient(e)}),h.qZA()}if(2&e){var i=h.oxw(2);h.Q6J("footer",!1)("adding",i.adding)("taskParticipants",i.taskParticipants)("taskParticipantsCc",i.taskParticipantsCc)}}function N(e,t){if(1&e&&(h.TgZ(0,"div",56),h.YNc(1,F,1,1,"app-empty-container",57),h.YNc(2,O,1,4,"app-attendee-modal",58),h.qZA()),2&e){var n=h.oxw();h.xp6(1),h.Q6J("ngIf",!n.showAttendees),h.xp6(1),h.Q6J("ngIf",n.showAttendees)}}var S={parse:{dateInput:"YYYY-MMMM-DD HH:mm"},display:{dateInput:"DD MMM YYYY H:mm",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},U=function(){var t=function(){function t(n,i,a,s,r,c,l,d,u,h){var m,g,f,v;e(this,t),this.modalController=n,this.processes=i,this.navParams=a,this.authService=s,this.userAuth=r,this.animationController=c,this.toastService=l,this.p=d,this.despachoService=u,this.pedidoService=h,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 p.NI,this.toppingList=["Economia","Sa\xfade","Educa\xe7\xe3o","Finan\xe7as","Agricultura"],this.loggeduser=r.ValidatedUser,this.task=this.navParams.get("task"),this.taskType=this.navParams.get("taskAction"),this.postData=new o.Q,this.participants=this.participants=new Array,this.selectedTypes=["99999850"],this.fulltask&&this.fulltask.workflowInstanceDataFields&&(m=this.fulltask.workflowInstanceDataFields.DispatchNumber),this.task.workflowInstanceDataFields.FolderID||this.task.FolderId?(g=this.task.workflowInstanceDataFields.FolderID,f="FOLDER",v=361):(g=this.task.workflowInstanceDataFields.SourceID,f="DOC",v=8),this.dispatchFolder={Nad:30,Subject:"",Message:"",SourceSecFsId:v,SourceType:f,SourceId:g,DeadlineType:"",SubjectTypes:this.selectedTypes,NumberPDPP:this.task.workflowInstanceDataFields.DispatchNumber||m},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")}return n(t,[{key:"setAdding",value:function(e){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.adding=e;case 1:case"end":return t.stop()}},t,this)}))}},{key:"ngOnInit",value:function(){var e=this;this.getSubjectType(),setTimeout(function(){e.selectedTypes=["99999850"]},500),this.taskDate=new Date(this.task.taskStartDate)}},{key:"onSelectedTypesChanged",value:function(e){console.log(e),e.length>1&&(console.log(e.filter(function(e){return"99999850"!=e})),this.selectedTypes=e.filter(function(e){return"99999850"!=e})),0==e.length&&(this.selectedTypes=["99999850"])}},{key:"close",value:function(){this.modalController.dismiss(null)}},{key:"getSubjectType",value:function(){var e=this;this.processes.GetSubjectType().subscribe(function(t){e.subjectTypes=t})}},{key:"cancelTask",value:function(){this.modalController.dismiss(null)}},{key:"runValidation",value:function(){this.validateFrom=!0}},{key:"injectValidation",value:function(){this.Form=new p.cw({Subject:new p.NI(this.postData.DispatchFolder.Subject,[p.kI.required]),Message:new p.NI(this.postData.DispatchFolder.Message,[p.kI.required]),Priority:new p.NI(this.postData.Priority,[p.kI.required]),participantes:new p.NI(this.taskParticipants,[p.kI.required]),selectedTypes:new p.NI(this.selectedTypes,[p.kI.required])})}},{key:"saveTask",value:function(){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.p.userRole(["PR"])||(this.injectValidation(),this.runValidation(),!this.Form.invalid)){e.next=2;break}return e.abrupt("return",!1);case 2:"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"),t=(t=this.taskParticipants.concat(this.taskParticipantsCc)).map(function(e){return{UserEmail:e.EmailAddress,UserType:e.IsRequired?"I":"CC"}}),this.documents.map(function(e){return{ApplicationId:e.ApplicationType,SourceId:e.Id}}),this.dispatchFolder.SubjectTypes=this.selectedTypes,n=this.toastService.loading(),e.t0=this.loggeduser.Profile,e.next="MDGPR"===e.t0?9:"PR"===e.t0?66:126;break;case 9:e.t1=this.taskType,e.next="0"===e.t1?12:"1"===e.t1?25:"2"===e.t1?49:65;break;case 12:return 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),e.prev=13,e.next=16,this.processes.postDespatcho(this.postData).toPromise();case 16:return e.next=18,this.FinalizarDespacho(n,"Despacho criado");case 18:this.modalController.dismiss(),e.next=24;break;case 21:e.prev=21,e.t2=e.catch(13),this.toastService.badRequest("Processo n\xe3o efectuado"),n.remove();case 24:return e.abrupt("break",65);case 25:if(this.postData={DistributionType:"Paralelo",CountryCode:"AO",Priority:this.postData.Priority,UserEmail:this.loggeduser.Email,UsersSelected:t,DispatchFolder:this.dispatchFolder},console.log(this.postData),e.prev=26,"Tarefa de Despacho"!=this.task.activityInstanceName&&"Reexecutar Despacho"!=this.task.activityInstanceName){e.next=34;break}return e.next=30,this.despachoService.createParecer(this.postData).toPromise();case 30:return e.next=32,this.despachoService.solicitarParecer({serialnumber:this.task.serialNumber}).toPromise();case 32:e.next=38;break;case 34:return e.next=36,this.pedidoService.createParecer(this.postData).toPromise();case 36:return e.next=38,this.pedidoService.taskCompleteParecer({serialNumber:this.task.serialNumber}).toPromise();case 38:this.modalController.dismiss(),this.toastService.successMessage("Pedido de Parecer enviado"),e.next=45;break;case 42:e.prev=42,e.t3=e.catch(26),this.toastService.badRequest("Processo n\xe3o efectuado");case 45:return e.prev=45,n.remove(),e.finish(45);case 48:return e.abrupt("break",65);case 49:return this.postData={DistributionType:"Paralelo",CountryCode:"AO",Priority:this.postData.Priority,UserEmail:this.loggeduser.Email,UsersSelected:t,DispatchFolder:this.dispatchFolder},console.log(this.postData),e.prev=50,e.next=53,this.pedidoService.createDeferimento(this.postData).toPromise();case 53:return e.next=55,this.pedidoService.taskCompleteDeferimento({serialNumber:this.task.serialNumber}).toPromise();case 55:this.modalController.dismiss(),this.toastService.successMessage("Pedido de Deferimento criado"),e.next=62;break;case 59:e.prev=59,e.t4=e.catch(50),this.toastService.badRequest("Processo n\xe3o efectuado");case 62:return e.prev=62,n.remove(),e.finish(62);case 65:return e.abrupt("break",126);case 66:e.t5=this.taskType,e.next="0"===e.t5?69:"1"===e.t5?86:"2"===e.t5?110:126;break;case 69:return 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),e.prev=70,e.next=73,this.despachoService.createDespacho(this.postData).toPromise();case 73:return e.next=75,this.despachoService.CompleteTask({serialNumber:this.task.serialNumber}).toPromise();case 75:this.modalController.dismiss(),this.toastService.successMessage("Despacho criado"),e.next=82;break;case 79:e.prev=79,e.t6=e.catch(70),this.toastService.badRequest("Processo n\xe3o efectuado");case 82:return e.prev=82,n.remove(),e.finish(82);case 85:return e.abrupt("break",126);case 86:if(this.postData={DistributionType:"Paralelo",CountryCode:"AO",Priority:this.postData.Priority,UserEmail:this.loggeduser.Email,UsersSelected:t,DispatchFolder:this.dispatchFolder},console.log(this.postData),e.prev=87,"Tarefa de Despacho"!=this.task.activityInstanceName&&"Reexecutar Despacho"!=this.task.activityInstanceName){e.next=95;break}return e.next=91,this.despachoService.createParecer(this.postData).toPromise();case 91:return e.next=93,this.despachoService.solicitarParecer({serialnumber:this.task.serialNumber}).toPromise();case 93:e.next=99;break;case 95:return e.next=97,this.pedidoService.createParecer(this.postData).toPromise();case 97:return e.next=99,this.pedidoService.taskCompleteParecer({serialNumber:this.task.serialNumber}).toPromise();case 99:this.modalController.dismiss(),this.toastService.successMessage("Pedido de Parecer criado"),e.next=106;break;case 103:e.prev=103,e.t7=e.catch(87),this.toastService.badRequest("Processo n\xe3o efectuado");case 106:return e.prev=106,n.remove(),e.finish(106);case 109:return e.abrupt("break",126);case 110:return this.postData={DistributionType:"Paralelo",CountryCode:"AO",Priority:this.postData.Priority,UserEmail:this.loggeduser.Email,UsersSelected:t,DispatchFolder:this.dispatchFolder},console.log(this.postData),e.prev=111,e.next=114,this.pedidoService.createDeferimento(this.postData).toPromise();case 114:return e.next=116,this.pedidoService.taskCompleteDeferimento({serialNumber:this.task.serialNumber}).toPromise();case 116:this.modalController.dismiss(),this.toastService.successMessage("Pedido de Deferimento criado"),e.next=123;break;case 120:e.prev=120,e.t8=e.catch(111),this.toastService.badRequest("Processo n\xe3o efectuado");case 123:return e.prev=123,n.remove(),e.finish(123);case 126:case"end":return e.stop()}},e,this,[[13,21],[26,42,45,48],[50,59,62,65],[70,79,82,85],[87,103,106,109],[111,120,123,126]])}))}},{key:"FinalizarDespacho",value:function(e,t){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function n(){var i;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return"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),n.prev=1,n.next=4,this.processes.CompleteTask(i).toPromise();case 4:this.toastService.successMessage(t),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(1),this.toastService.badRequest("Processo n\xe3o efectuado");case 10:return n.prev=10,e.remove(),n.finish(10);case 13:case"end":return n.stop()}},n,this,[[1,7,10,13]])}))}},{key:"addParticipants",value:function(){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.adding="intervenient",this.contacts=this.taskParticipants,!(window.innerWidth<=800)){e.next=10;break}return this.showAttendees=!1,e.next=4,this.modalController.create({component:d.V,componentProps:{adding:this.adding,taskParticipants:this.taskParticipants,taskParticipantsCc:this.taskParticipantsCc},cssClass:"modal attendee",backdropDismiss:!1});case 4:return t=e.sent,e.next=7,t.present();case 7:t.onDidDismiss().then(function(e){if(e){var t=(e=e.data).taskParticipantsCc;n.setIntervenient(e.taskParticipants),n.setIntervenientCC(t)}}),e.next=11;break;case 10:this.showAttendees=!0;case 11:case"end":return e.stop()}},e,this)}))}},{key:"addParticipantsCc",value:function(){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.adding="CC",this.contacts=this.taskParticipantsCc,!(window.innerWidth<=800)){e.next=10;break}return this.showAttendees=!1,e.next=4,this.modalController.create({component:d.V,componentProps:{adding:this.adding,taskParticipants:this.taskParticipants,taskParticipantsCc:this.taskParticipantsCc},cssClass:"attendee",backdropDismiss:!1});case 4:return t=e.sent,e.next=7,t.present();case 7:t.onDidDismiss().then(function(e){if(e){var t=(e=e.data).taskParticipantsCc;n.setIntervenient(e.taskParticipants),n.setIntervenientCC(t)}}),e.next=11;break;case 10:this.showAttendees=!0;case 11:case"end":return e.stop()}},e,this)}))}},{key:"distartExpedientModal",value:function(){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:r.Q,componentProps:{serialNumber:this.task.serialNumber,folderId:this.task.workflowInstanceDataFields.FolderID,action:"complete"},cssClass:"discart-expedient-modal",backdropDismiss:!1});case 2:return t=e.sent,e.next=5,t.present();case 5:t.onDidDismiss().then(function(e){"close"==e.data&&(console.log("Expedient Discard closed"),n.modalController.dismiss(e.data))});case 6:case"end":return e.stop()}},e,this)}))}},{key:"setContact",value:function(e){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:"intervenient"==this.adding?this.taskParticipants=e:"CC"==this.adding&&(this.taskParticipantsCc=e);case 1:case"end":return t.stop()}},t,this)}))}},{key:"dynamicSetIntervenient",value:function(e){var t=e.taskParticipants,n=e.taskParticipantsCc;this.taskParticipants=t,this.taskParticipantsCc=n}},{key:"setIntervenient",value:function(e){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.taskParticipants=e;case 1:case"end":return t.stop()}},t,this)}))}},{key:"setIntervenientCC",value:function(e){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.taskParticipantsCc=e;case 1:case"end":return t.stop()}},t,this)}))}},{key:"closeComponent",value:function(){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.showAttendees=!1;case 1:case"end":return e.stop()}},e,this)}))}},{key:"viewExpedientDetail",value:function(){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(this.profile),t=window.innerWidth<=800?"modal modal-desktop":"modal modal-desktop showAsideOptions",e.next=3,this.modalController.create({component:c.C,componentProps:{serialNumber:this.task.serialNumber,profile:this.profile},cssClass:t,backdropDismiss:!1});case 3:return n=e.sent,e.next=6,n.present();case 6:n.onDidDismiss().then(function(e){});case 7:case"end":return e.stop()}},e,this)}))}},{key:"removeAttachment",value:function(e){this.documents=this.documents.filter(function(t,n){return e!=n})}},{key:"getDoc",value:function(){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:l.Z,cssClass:"modal-width-100-width-background modal",componentProps:{type:"AccoesPresidenciais & ArquivoDespachoElect",showSearchInput:!0,select:!0}});case 2:return t=e.sent,e.next=5,t.present();case 5:t.onDidDismiss().then(function(e){e&&n.documents.push(e.data.selected)});case 6:case"end":return e.stop()}},e,this)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.IN),h.Y36(g.$),h.Y36(m.X1),h.Y36(f.e),h.Y36(f.e),h.Y36(m.vB),h.Y36(v.k),h.Y36(k.$),h.Y36(x.K),h.Y36(P))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-create-process"]],features:[h._Bn([{provide:u.ab,useValue:S}])],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(e,t){var n,i,a,s,o;(1&e&&(h.TgZ(0,"ion-content",0),h.TgZ(1,"div",1),h.TgZ(2,"div",2),h.TgZ(3,"div",3),h._uU(4),h.qZA(),h.TgZ(5,"div",4),h.TgZ(6,"ion-input",5),h.NdJ("ngModelChange",function(e){return t.postData.DispatchFolder.Subject=e}),h.qZA(),h.qZA(),h.TgZ(7,"div",6),h.TgZ(8,"div",7),h.TgZ(9,"div",8),h._UZ(10,"ion-icon",9),h.qZA(),h.TgZ(11,"div",10),h.TgZ(12,"ion-textarea",11),h.NdJ("ngModelChange",function(e){return t.postData.DispatchFolder.Message=e}),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(13,"div",12),h.TgZ(14,"div",6),h.TgZ(15,"div",13),h.TgZ(16,"div",8),h._UZ(17,"ion-icon",14),h.qZA(),h.TgZ(18,"div",15),h.TgZ(19,"ion-select",16),h.NdJ("ngModelChange",function(e){return t.postData.Priority=e}),h.TgZ(20,"ion-select-option",17),h.TgZ(21,"b"),h._uU(22,"Normal"),h.qZA(),h._uU(23," (4 dias para a execu\xe7\xe3o da tarefa)"),h.qZA(),h.TgZ(24,"ion-select-option",18),h.TgZ(25,"b"),h._uU(26,"Urgente"),h.qZA(),h._uU(27," (2 dias para a execu\xe7\xe3o da tarefa)"),h.qZA(),h.TgZ(28,"ion-select-option",19),h.TgZ(29,"b"),h._uU(30,"Muito Urgente"),h.qZA(),h._uU(31," (1 dia para a execu\xe7\xe3o da tarefa)"),h.qZA(),h.TgZ(32,"ion-select-option",20),h.TgZ(33,"b"),h._uU(34,"Urgent\xedssimo"),h.qZA(),h._uU(35," (8 horas para a execu\xe7\xe3o da tarefa)"),h.qZA(),h.qZA(),h.TgZ(36,"mat-form-field",21),h.TgZ(37,"mat-select",22),h.NdJ("ngModelChange",function(e){return t.postData.Priority=e}),h.TgZ(38,"mat-option",17),h.TgZ(39,"b"),h._uU(40,"Normal"),h.qZA(),h._uU(41," (4 dias para a execu\xe7\xe3o da tarefa)"),h.qZA(),h.TgZ(42,"mat-option",18),h.TgZ(43,"b"),h._uU(44,"Urgente"),h.qZA(),h._uU(45," (2 dias para a execu\xe7\xe3o da tarefa)"),h.qZA(),h.TgZ(46,"mat-option",19),h.TgZ(47,"b"),h._uU(48,"Muito Urgente"),h.qZA(),h._uU(49," (1 dia para a execu\xe7\xe3o da tarefa)"),h.qZA(),h.TgZ(50,"mat-option",20),h.TgZ(51,"b"),h._uU(52,"Urgent\xedssimo"),h.qZA(),h._uU(53," (8 horas para a execu\xe7\xe3o da tarefa)"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(54,"div",23),h.TgZ(55,"div",7),h.TgZ(56,"div",8),h._UZ(57,"ion-icon",9),h.qZA(),h.TgZ(58,"div",15),h.TgZ(59,"mat-form-field",24),h.TgZ(60,"mat-select",25),h.NdJ("ngModelChange",function(e){return t.selectedTypes=e}),h.YNc(61,A,2,2,"mat-option",26),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(62,"div",23),h.TgZ(63,"div",7),h.TgZ(64,"div",8),h._UZ(65,"ion-icon",27),h.qZA(),h.TgZ(66,"div",28),h.TgZ(67,"div",29),h.TgZ(68,"ion-item",30),h.TgZ(69,"ion-list"),h.YNc(70,w,2,0,"ion-label",31),h.YNc(71,M,2,1,"ion-label",32),h.qZA(),h.qZA(),h.qZA(),h.TgZ(72,"div",33),h.NdJ("click",function(){return t.addParticipants()}),h._UZ(73,"ion-icon",34),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(74,"div",23),h.TgZ(75,"div",7),h.TgZ(76,"div",8),h._UZ(77,"ion-icon",35),h.qZA(),h.TgZ(78,"div",28),h.TgZ(79,"div",29),h.TgZ(80,"ion-item",30),h.TgZ(81,"ion-list"),h.YNc(82,q,2,0,"ion-label",31),h.YNc(83,_,2,1,"ion-label",32),h.qZA(),h.qZA(),h.qZA(),h.TgZ(84,"div",33),h.NdJ("click",function(){return t.addParticipantsCc()}),h._UZ(85,"ion-icon",34),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(86,"div",36),h.NdJ("click",function(){return t.getDoc()}),h.TgZ(87,"ion-label",37),h.TgZ(88,"div",38),h._UZ(89,"ion-icon",39),h.qZA(),h.TgZ(90,"div",40),h.TgZ(91,"ion-label"),h._uU(92,"Anexar Documentos"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.YNc(93,I,17,7,"div",41),h.qZA(),h.qZA(),h.YNc(94,N,3,2,"div",42),h.qZA(),h.qZA(),h.TgZ(95,"ion-footer"),h.TgZ(96,"div",43),h.TgZ(97,"button",44),h.NdJ("click",function(){return t.cancelTask()}),h._uU(98,"Cancelar"),h.qZA(),h.TgZ(99,"button",45),h.NdJ("click",function(){return t.saveTask()}),h._uU(100,"Gravar"),h.qZA(),h.qZA(),h.qZA()),2&e)&&(h.xp6(4),h.hij(" ",t.modalTitle[t.taskType]," "),h.xp6(1),h.ekj("input-error",(null==t.Form||null==(n=t.Form.get("Subject"))?null:n.invalid)&&t.validateFrom),h.xp6(1),h.Q6J("ngModel",t.postData.DispatchFolder.Subject),h.xp6(5),h.ekj("input-error",(null==t.Form||null==(i=t.Form.get("Message"))?null:i.invalid)&&t.validateFrom),h.xp6(1),h.Q6J("ngModel",t.postData.DispatchFolder.Message),h.xp6(6),h.ekj("input-error",(null==t.Form||null==(a=t.Form.get("Priority"))?null:a.invalid)&&t.validateFrom),h.xp6(1),h.Q6J("ngModel",t.postData.Priority),h.xp6(18),h.Q6J("ngModel",t.postData.Priority),h.xp6(21),h.ekj("input-error",(null==t.Form||null==(s=t.Form.get("selectedTypes"))?null:s.invalid)&&t.validateFrom),h.xp6(2),h.Q6J("ngModel",t.selectedTypes),h.xp6(1),h.Q6J("ngForOf",t.subjectTypes),h.xp6(5),h.ekj("input-error",(null==t.Form||null==(o=t.Form.get("participantes"))?null:o.invalid)&&t.validateFrom),h.xp6(4),h.Q6J("ngIf",(null==t.taskParticipants?null:t.taskParticipants.length)<1),h.xp6(1),h.Q6J("ngForOf",t.taskParticipants),h.xp6(11),h.Q6J("ngIf",(null==t.taskParticipantsCc?null:t.taskParticipantsCc.length)<1),h.xp6(1),h.Q6J("ngForOf",t.taskParticipantsCc),h.xp6(10),h.Q6J("ngForOf",t.documents),h.xp6(1),h.Q6J("ngIf",t.postData))},directives:[m.W2,m.pK,m.j9,p.JJ,p.On,m.gu,m.g2,m.t9,m.QI,p.Q7,m.n0,C.KE,b.gD,Z.ey,D.sg,m.Ie,m.q_,D.O5,m.Q$,m.fr,y.M,T.Y],pipes:[D.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}()}}])}();