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

1 line
25 KiB
JavaScript

(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[8345],{72231:function(t,n,e){"use strict";e.d(n,{q:function(){return a}});var o=e(37716),i=e(35957),s=e(3679);let a=(()=>{class t{constructor(t){this.modalController=t,this.emendMessage="",this.emendMessage=""}ngOnInit(){}close(){this.modalController.dismiss("")}save(){this.modalController.dismiss(this.emendMessage)}}return t.\u0275fac=function(n){return new(n||t)(o.Y36(i.IN))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-emend-message-modal"]],decls:17,vars:1,consts:[[1,"ion-no-border"],[1,"header-content"],["hidden","",1,"header-icon-left"],[1,"btn-no-color","cursor-pointer",3,"click"],["src","assets/images/icons-arrow-arrow-left.svg"],[1,"header-title"],[1,"ion-input-class-no-height"],["rows","6","cols","20","placeholder","Indique o que necessita ser revisto!",3,"ngModel","ngModelChange"],[1,"buttons","width-100"],["shape","round",1,"btn-cancel","cursor-pointer",3,"click"],["shape","round",1,"btn-ok","cursor-pointer",3,"click"]],template:function(t,n){1&t&&(o.TgZ(0,"ion-header",0),o.TgZ(1,"div",1),o.TgZ(2,"div",2),o.TgZ(3,"button",3),o.NdJ("click",function(){return n.close()}),o._UZ(4,"ion-icon",4),o.qZA(),o.qZA(),o.TgZ(5,"div",5),o.TgZ(6,"label"),o._uU(7,"Enviar para revis\xe3o"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(8,"ion-content"),o.TgZ(9,"div",6),o.TgZ(10,"ion-textarea",7),o.NdJ("ngModelChange",function(t){return n.emendMessage=t}),o.qZA(),o.qZA(),o.qZA(),o.TgZ(11,"ion-footer",0),o.TgZ(12,"div",8),o.TgZ(13,"button",9),o.NdJ("click",function(){return n.close()}),o._uU(14,"Cancelar"),o.qZA(),o.TgZ(15,"button",10),o.NdJ("click",function(){return n.save()}),o._uU(16,"Enviar"),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.xp6(10),o.Q6J("ngModel",n.emendMessage))},directives:[i.Gu,i.gu,i.W2,i.g2,i.j9,s.JJ,s.On,i.fr],styles:[".header-content[_ngcontent-%COMP%]{overflow:auto;margin-top:25px}.header-icon-left[_ngcontent-%COMP%]{width:36px;font-size:33px;color:#42b9fe;float:left}.header-title[_ngcontent-%COMP%]{width:264px;font-family:Roboto;font-size:25px;margin:0 5px 10px 20px;padding:0;color:#000;float:left}.buttons[_ngcontent-%COMP%]{width:320px;margin:0 auto;padding:5px 0}.button-reject[_ngcontent-%COMP%]{--color:#d30a0a;--background:#ffe0e0;margin:0 12px 0 0}.button-approve[_ngcontent-%COMP%], .button-reject[_ngcontent-%COMP%]{width:130px;height:44px;border-radius:22.5px}.button-approve[_ngcontent-%COMP%]{--background:#42b9fe;margin:0 0 0 12px}.buttons[_ngcontent-%COMP%]{display:flex;width:100%!important;justify-content:space-between;padding:15px 0;overflow:auto}.ion-input-class-no-height[_ngcontent-%COMP%]{border:1px solid #ebebeb;border-radius:5px;overflow:auto;margin:0 20px!important}"]}),t})()},23879:function(t,n,e){"use strict";e.d(n,{g:function(){return p}});var o=e(64762),i=e(82265),s=e(72231),a=e(37716),r=e(35957),c=e(28621),d=e(39895),l=e(84465);let p=(()=>{class t{constructor(t,n,e,o,i,s,a){this.navParams=t,this.processes=n,this.router=e,this.modalController=o,this.popoverController=i,this.animationController=s,this.toastService=a,this.serialNumber=this.navParams.get("serialNumber"),this.instanceId=this.navParams.get("InstanceId")}ngOnInit(){window.onresize=t=>{window.innerWidth>=800&&this.popoverController.dismiss()}}goBack(){this.closePopover(),window.innerWidth<=801?this.router.navigate(["/home/gabinete-digital/event-list"]):this.router.navigate(["/home/gabinete-digital"],{queryParams:{eventos:!0}})}closePopover(){this.popoverController.dismiss()}approveTask(){return(0,o.mG)(this,void 0,void 0,function*(){let t={serialNumber:this.serialNumber,action:"Aprovar"};console.log(t);const n=this.toastService.loading();try{yield this.processes.PostTaskAction(t).toPromise(),this.toastService.successMessage(),this.goBack()}catch(e){this.toastService.badRequest()}finally{n.remove()}})}emendarTask(){return(0,o.mG)(this,void 0,void 0,function*(){this.closePopover();const t=yield this.modalController.create({component:s.q,componentProps:{},cssClass:"emend-message-modal",backdropDismiss:!1});yield t.present(),t.onDidDismiss().then(t=>(0,o.mG)(this,void 0,void 0,function*(){if(console.log(t.data),""!==t.data){let e={serialNumber:this.serialNumber,action:"Emendar",dataFields:{ReviewUserComment:t.data}};console.log(e);const o=this.toastService.loading();try{yield this.processes.PostTaskAction(e).toPromise(),this.toastService.successMessage("Pedido enviado"),this.goBack()}catch(n){this.toastService.badRequest()}finally{o.remove()}}}))})}rejeitar(){return(0,o.mG)(this,void 0,void 0,function*(){let t={serialNumber:this.serialNumber,action:"Rejeitar"};console.log(t);const n=this.toastService.loading();try{yield this.processes.PostTaskAction(t).toPromise(),yield this.toastService.successMessage("Processo rejeitado"),this.goBack()}catch(e){this.toastService.badRequest()}finally{n.remove()}})}editTask(){return(0,o.mG)(this,void 0,void 0,function*(){this.closePopover();const t=yield this.modalController.create({component:i.j,componentProps:{serialNumber:this.serialNumber,InstanceId:this.instanceId},cssClass:"modal modal-desktop"});yield t.present(),t.onDidDismiss().then(t=>{})})}}return t.\u0275fac=function(n){return new(n||t)(a.Y36(r.X1),a.Y36(c.$),a.Y36(d.F0),a.Y36(r.IN),a.Y36(r.Dh),a.Y36(r.vB),a.Y36(l.k))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-event-actions-popover"]],decls:14,vars:0,consts:[[1,"container"],[1,"arrow-right",3,"click"],[1,"btn-no-color"],["slot","end","src","assets/images/icons-arrow-arrow-right.svg",1,"arrow-right-icon"],[1,"buttons"],["shape","round",1,"btn-cancel",3,"click"],["shape","round",1,"btn-ok",3,"click"],[1,"solid"],["shape","round",1,"btn-delete",3,"click"]],template:function(t,n){1&t&&(a.TgZ(0,"ion-content",0),a.TgZ(1,"div",1),a.NdJ("click",function(){return n.closePopover()}),a.TgZ(2,"button",2),a._UZ(3,"ion-icon",3),a.qZA(),a.qZA(),a.TgZ(4,"div",4),a.TgZ(5,"button",5),a.NdJ("click",function(){return n.emendarTask()}),a._uU(6,"Adicionar Nota"),a.qZA(),a.TgZ(7,"button",6),a.NdJ("click",function(){return n.approveTask()}),a._uU(8,"Aprovar"),a.qZA(),a._UZ(9,"div",7),a.TgZ(10,"button",5),a.NdJ("click",function(){return n.editTask()}),a._uU(11,"Editar"),a.qZA(),a.TgZ(12,"button",8),a.NdJ("click",function(){return n.rejeitar()}),a._uU(13,"Rejeitar"),a.qZA(),a.qZA(),a.qZA())},directives:[r.W2,r.gu],styles:[".container[_ngcontent-%COMP%]{--padding-top:20px!important;--padding-bottom:20px!important;--padding-start:20px!important;--padding-end:20px!important}.arrow-right[_ngcontent-%COMP%]{display:none;margin-bottom:20px}.arrow-right[_ngcontent-%COMP%] .arrow-right-icon[_ngcontent-%COMP%]{width:37px;float:right;font-size:35px;overflow:hidden}.buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-around;align-items:center}.solid[_ngcontent-%COMP%]{display:none;width:90%;border-top:5px solid #bbb;margin:0 auto!important}.btn-cancel[_ngcontent-%COMP%], .btn-ok[_ngcontent-%COMP%]{justify-content:center;margin-bottom:10px!important;margin-top:10px!important}@media only screen and (max-width: 800px){.btn-cancel[_ngcontent-%COMP%], .btn-delete[_ngcontent-%COMP%], .btn-ok[_ngcontent-%COMP%]{width:47%!important}}@media only screen and (min-width: 1024px){.arrow-right[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.btn-cancel[_ngcontent-%COMP%]{display:none}.btn-cancel[_ngcontent-%COMP%], .btn-delete[_ngcontent-%COMP%], .btn-ok[_ngcontent-%COMP%]{width:100%!important;margin-bottom:10px!important}.btn-delete[_ngcontent-%COMP%], .btn-ok[_ngcontent-%COMP%]{margin-top:10px!important}}"]}),t})()},668:function(t,n,e){"use strict";e.r(n),e.d(n,{ApproveEventPageModule:function(){return p}});var o=e(38583),i=e(3679),s=e(35957),a=e(39895),r=e(3541),c=e(37716);const d=[{path:"",component:r.c}];let l=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[a.Bz.forChild(d)],a.Bz]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,s.Pc,l]]}),t})()},3541:function(t,n,e){"use strict";e.d(n,{c:function(){return y}});var o=e(64762),i=e(37716),s=e(72231),a=e(23879),r=e(39895),c=e(35957),d=e(28621),l=e(20985),p=e(25970),g=e(53760),u=e(84465),h=e(38583);function m(t,n){if(1&t&&(i.TgZ(0,"span",29),i._uU(1),i.qZA()),2&t){const t=i.oxw(2);i.Gre("event-type-",t.loadedEvent.workflowInstanceDataFields.Agenda,""),i.xp6(1),i.hij(" ",t.loadedEvent.workflowInstanceDataFields.Agenda," ")}}function f(t,n){if(1&t&&(i.TgZ(0,"span",30),i._uU(1),i.qZA()),2&t){const t=i.oxw(2);i.Gre("event-type-",t.loadedEvent.workflowInstanceDataFields.Agenda,""),i.xp6(1),i.hij(" ",t.loadedEvent.workflowInstanceDataFields.Agenda," ")}}function v(t,n){if(1&t&&(i.TgZ(0,"span",31),i._uU(1),i.qZA()),2&t){const t=i.oxw(2);i.Gre("event-type-",t.loadedEvent.workflowInstanceDataFields.Agenda,""),i.xp6(1),i.hij(" ",t.loadedEvent.workflowInstanceDataFields.Agenda," ")}}function b(t,n){if(1&t&&(i.TgZ(0,"span",32),i._uU(1),i.qZA()),2&t){const t=i.oxw(2);i.Gre("event-type-",t.loadedEvent.workflowInstanceDataFields.Agenda,""),i.xp6(1),i.hij(" ",t.loadedEvent.workflowInstanceDataFields.Agenda," ")}}function w(t,n){if(1&t&&(i.TgZ(0,"p"),i._uU(1),i.ALo(2,"date"),i.ALo(3,"date"),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.AsE("das ",i.xi3(2,2,t.loadedEvent.workflowInstanceDataFields.StartDate,"HH:mm")," \xe0s ",i.xi3(3,5,t.loadedEvent.workflowInstanceDataFields.EndDate,"HH:mm"),"")}}function x(t,n){if(1&t&&(i.TgZ(0,"p"),i._uU(1),i.ALo(2,"date"),i.ALo(3,"date"),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.AsE("",i.xi3(2,2,t.loadedEvent.workflowInstanceDataFields.StartDate,"d/M/yy")," - ",i.xi3(3,5,t.loadedEvent.workflowInstanceDataFields.StartDate,"dd/M/yy")," ")}}function Z(t,n){1&t&&(i.TgZ(0,"p"),i._uU(1,"(N\xe3o se repete)"),i.qZA())}function _(t,n){1&t&&(i.TgZ(0,"p"),i._uU(1,"Repete"),i.qZA())}function P(t,n){if(1&t&&(i.TgZ(0,"div"),i.TgZ(1,"ion-label"),i._uU(2),i.qZA(),i.qZA()),2&t){const t=n.$implicit;i.xp6(2),i.Oqu(t.Name)}}function C(t,n){if(1&t&&(i.TgZ(0,"div"),i.TgZ(1,"h5"),i._uU(2,"Intervenientes"),i.qZA(),i.YNc(3,P,3,1,"div",33),i._UZ(4,"div",24),i.qZA()),2&t){const t=i.oxw(2);i.xp6(3),i.Q6J("ngForOf",t.loadedEvent.workflowInstanceDataFields.ParticipantsList)}}function M(t,n){if(1&t&&(i.TgZ(0,"div"),i.TgZ(1,"h5"),i._uU(2,"Detalhes"),i.qZA(),i.TgZ(3,"ion-item",34),i._UZ(4,"p",35),i.qZA(),i._UZ(5,"div",24),i.qZA()),2&t){const t=i.oxw(2);i.xp6(4),i.Q6J("innerHTML",t.loadedEvent.workflowInstanceDataFields.Body,i.oJD)}}function A(t,n){if(1&t){const t=i.EpF();i.TgZ(0,"ion-item",38),i.NdJ("click",function(){const n=i.CHM(t).$implicit;return i.oxw(3).viewDocument(n.SourceId)}),i.TgZ(1,"ion-label"),i.TgZ(2,"p",39),i._uU(3),i.qZA(),i.TgZ(4,"p"),i.TgZ(5,"span",40),i._uU(6),i.qZA(),i.TgZ(7,"span",41),i._uU(8),i.ALo(9,"date"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=n.$implicit;i.xp6(3),i.Oqu(t.SourceName),i.xp6(3),i.Oqu(t.Stakeholders),i.xp6(2),i.Oqu(i.xi3(9,3,t.CreateDate,"dd-MM-yyyy HH:mm"))}}function O(t,n){if(1&t&&(i.TgZ(0,"div",36),i.TgZ(1,"ion-list"),i.TgZ(2,"h5"),i._uU(3,"Documentos Anexados"),i.qZA(),i.YNc(4,A,10,6,"ion-item",37),i.qZA(),i.qZA()),2&t){const t=i.oxw(2);i.xp6(4),i.Q6J("ngForOf",t.loadedAttachments)}}function k(t,n){if(1&t){const t=i.EpF();i.TgZ(0,"div",42),i.TgZ(1,"div",43),i.TgZ(2,"button",44),i._uU(3,"Editar evento"),i.qZA(),i.TgZ(4,"button",45),i.NdJ("click",function(){i.CHM(t);const n=i.oxw(2);return n.approveTask(n.loadedEvent.serialNumber)}),i._uU(5,"Aprovar"),i.qZA(),i.TgZ(6,"button",3),i.NdJ("click",function(){i.CHM(t);const n=i.oxw(2);return n.emendTask(n.loadedEvent.serialNumber)}),i._uU(7,"Adicionar Nota"),i.qZA(),i._UZ(8,"div",46),i.TgZ(9,"button",47),i.NdJ("click",function(){i.CHM(t);const n=i.oxw(2);return n.editar(n.loadedEvent.serialNumber)}),i._uU(10,"Editar"),i.qZA(),i.TgZ(11,"button",48),i.NdJ("click",function(){i.CHM(t);const n=i.oxw(2);return n.rejectTask(n.loadedEvent.serialNumber)}),i._uU(12,"Rejeitar"),i.qZA(),i.qZA(),i.qZA()}}function T(t,n){if(1&t){const t=i.EpF();i.TgZ(0,"div",5),i.TgZ(1,"div",6),i.TgZ(2,"div",7),i.TgZ(3,"div",8),i.NdJ("click",function(){return i.CHM(t),i.oxw().close()}),i._UZ(4,"ion-icon",9),i.qZA(),i.TgZ(5,"div",10),i.TgZ(6,"label"),i._uU(7),i.qZA(),i.qZA(),i.TgZ(8,"div",11),i.NdJ("click",function(){i.CHM(t);const n=i.oxw();return n.editar(n.loadedEvent.serialNumber)}),i.TgZ(9,"button",12),i._UZ(10,"ion-icon",13),i.qZA(),i.qZA(),i.TgZ(11,"div",11),i.NdJ("click",function(){i.CHM(t);const n=i.oxw();return n.rejectTask(n.loadedEvent.serialNumber)}),i.TgZ(12,"button",12),i._UZ(13,"ion-icon",14),i.qZA(),i.qZA(),i.qZA(),i.TgZ(14,"div",15),i.TgZ(15,"div",16),i.TgZ(16,"p"),i.TgZ(17,"span",17),i._uU(18),i.qZA(),i.YNc(19,m,2,4,"span",18),i.YNc(20,f,2,4,"span",19),i.YNc(21,v,2,4,"span",20),i.YNc(22,b,2,4,"span",21),i.qZA(),i.qZA(),i.TgZ(23,"div",22),i.TgZ(24,"ion-label"),i.TgZ(25,"p"),i._uU(26),i.qZA(),i.YNc(27,w,4,8,"p",23),i.YNc(28,x,4,8,"p",23),i.YNc(29,Z,2,0,"p",23),i.YNc(30,_,2,0,"p",23),i.qZA(),i.qZA(),i.qZA(),i._UZ(31,"div",24),i.TgZ(32,"div",25),i.TgZ(33,"div",26),i.YNc(34,C,5,1,"div",23),i.YNc(35,M,6,1,"div",23),i.qZA(),i.YNc(36,O,5,1,"div",27),i.qZA(),i.qZA(),i.YNc(37,k,13,0,"div",28),i.qZA()}if(2&t){const t=i.oxw();i.xp6(7),i.hij("",t.loadedEvent.workflowInstanceDataFields.Subject," "),i.xp6(1),i.Gre("header-icon-right display-none-",t.showAside,""),i.xp6(3),i.Gre("header-icon-right display-none-",t.showAside,""),i.xp6(7),i.Oqu(t.loadedEvent.workflowInstanceDataFields.Location),i.xp6(1),i.Q6J("ngIf","Agenda Oficial MDGPR"==t.loadedEvent.workflowDisplayName),i.xp6(1),i.Q6J("ngIf","Agenda Pessoal MDGPR"==t.loadedEvent.workflowDisplayName),i.xp6(1),i.Q6J("ngIf","Agenda Oficial PR"==t.loadedEvent.workflowDisplayName),i.xp6(1),i.Q6J("ngIf","Agenda Pessoal PR"==t.loadedEvent.workflowDisplayName),i.xp6(4),i.Oqu(t.customDate),i.xp6(1),i.Q6J("ngIf",t.toDateString(t.loadedEvent.workflowInstanceDataFields.StartDate)==t.toDateString(t.loadedEvent.workflowInstanceDataFields.EndDate)),i.xp6(1),i.Q6J("ngIf",t.toDateString(t.loadedEvent.workflowInstanceDataFields.StartDate)!=t.toDateString(t.loadedEvent.workflowInstanceDataFields.EndDate)),i.xp6(1),i.Q6J("ngIf",!t.loadedEvent.workflowInstanceDataFields.IsRecurring),i.xp6(1),i.Q6J("ngIf",t.loadedEvent.workflowInstanceDataFields.IsRecurring),i.xp6(4),i.Q6J("ngIf",t.loadedEvent.workflowInstanceDataFields.ParticipantsList),i.xp6(1),i.Q6J("ngIf",t.loadedEvent.workflowInstanceDataFields.Body),i.xp6(1),i.Q6J("ngIf",t.loadedAttachments),i.xp6(1),i.Q6J("ngIf",t.showAside)}}let y=(()=>{class t{constructor(t,n,e,o,s,a,r,c){this.router=t,this.modalController=n,this.processes=e,this.attachmentsService=o,this.popoverController=s,this.alertService=a,this.iab=r,this.toastService=c,this.show=!1,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.approveEventDismiss=new i.vpe,this.closeEventToApprove=new i.vpe,this.AproveEventEditEvent=new i.vpe,this.EditApproveEventDismiss=new i.vpe}toDateString(t){return new Date(t).toDateString()}ngOnInit(){this.getTask(),this.getAttachments()}ngOnChanges(){this.getTask(),this.getAttachments(),setTimeout(()=>{this.getTask(),this.getAttachments()},6e3),setTimeout(()=>{this.getTask(),this.getAttachments()},1e4)}notImplemented(){this.alertService.presentAlert("Funcionalidade em desenvolvimento")}close(){this.closeEventToApprove.emit(),this.modalController.dismiss()}getTask(){this.processes.GetTask(this.serialNumber).subscribe(t=>{this.loadedEvent=t,this.today=new Date(t.workflowInstanceDataFields.StartDate),this.customDate=this.days[this.today.getDay()]+", "+this.today.getDate()+" de "+this.months[this.today.getMonth()]})}approveTask(t){return(0,o.mG)(this,void 0,void 0,function*(){let n={serialNumber:t,action:"Aprovar"};const e=this.toastService.loading();try{yield this.processes.PostTaskAction(n).toPromise(),this.modalController.dismiss(t),this.toastService.successMessage()}catch(o){this.toastService.badRequest()}finally{this.close(),e.remove()}})}rejectTask(t){return(0,o.mG)(this,void 0,void 0,function*(){let n={serialNumber:t,action:"Rejeitar"};console.log(n);const e=this.toastService.loading();try{yield this.processes.PostTaskAction(n).toPromise(),this.toastService.successMessage("Evento rejeitado")}catch(o){this.toastService.badRequest("Processo n\xe3o efectuado")}finally{e.remove(),this.close()}})}getAttachments(){return(0,o.mG)(this,void 0,void 0,function*(){this.loadedAttachments=yield this.attachmentsService.getAttachmentsById(this.InstanceId).toPromise()})}viewDocument(t){this.processes.GetDocumentUrl(t,"8").subscribe(t=>{const n=t.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");this.iab.create(n,"_blank").show()})}openOptions(t){return(0,o.mG)(this,void 0,void 0,function*(){const n=yield this.popoverController.create({component:a.g,cssClass:"event-actions-popover",event:t,translucent:!0});return yield n.present()})}emendTask(t){return(0,o.mG)(this,void 0,void 0,function*(){console.log("Desktop");const n=yield this.modalController.create({component:s.q,componentProps:{},cssClass:"emend-message-modal",backdropDismiss:!1});yield n.present(),n.onDidDismiss().then(n=>(0,o.mG)(this,void 0,void 0,function*(){if(console.log(n.data),""!==n.data){let o={serialNumber:t,action:"Emendar",dataFields:{ReviewUserComment:n.data}};console.log(o);const i=this.toastService.loading();try{yield this.processes.PostTaskAction(o).toPromise(),this.toastService.successMessage("Pedido enviado"),this.close()}catch(e){this.toastService.badRequest()}finally{i.remove()}}}))})}goToEventsToApprove(){window.location.pathname.startsWith("/home/agenda")?this.close():this.router.navigate(["/home/gabinete-digital"],{queryParams:{eventos:!0}})}editar(t){return(0,o.mG)(this,void 0,void 0,function*(){this.EditApproveEventDismiss.emit()})}}return t.\u0275fac=function(n){return new(n||t)(i.Y36(r.F0),i.Y36(c.IN),i.Y36(d.$),i.Y36(l.o),i.Y36(c.Dh),i.Y36(p.c),i.Y36(g.i),i.Y36(u.k))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-approve-event"]],inputs:{loadedEvent:"loadedEvent",serialNumber:"serialNumber",showComponent:"showComponent",componentTransparent:"componentTransparent",InstanceId:"InstanceId",showAside:"showAside"},outputs:{approveEventDismiss:"approveEventDismiss",closeEventToApprove:"closeEventToApprove",AproveEventEditEvent:"AproveEventEditEvent",EditApproveEventDismiss:"EditApproveEventDismiss"},features:[i.TTD],decls:8,vars:4,consts:[["id","main-content"],["class","main-content d-flex height-100",4,"ngIf"],[1,"buttons"],["shape","round",1,"btn-cancel",3,"click"],["shape","round",1,"btn-ok",3,"click"],[1,"main-content","d-flex","height-100"],[1,"content","d-flex","flex-column"],[1,"header-content","width-100","d-flex","justify-space-between"],[1,"header-icon-left","cursor-pointer",3,"click"],["src","assets/images/icons-arrow-arrow-left.svg"],[1,"header-title","flex-grow-1","cursor-pointer"],[3,"click"],[1,"btn-no-color"],["src","assets/images/icons-edit.svg"],["name","trash-sharp",1,"delete"],[1,"upper-content","d-flex","flex-column"],[1,"content-location"],[1,"location"],["style","background-color: #ffb703;",3,"class",4,"ngIf"],["style","background-color: #f05d5e;",3,"class",4,"ngIf"],["style","background-color: #99e47b;",3,"class",4,"ngIf"],["style","background-color: #958bfc;",3,"class",4,"ngIf"],[1,"content-details"],[4,"ngIf"],[1,"line"],[1,"overflow-y-auto"],[1,"middle-content"],["class","bottom-content width-100",4,"ngIf"],["class","aside-right flex-column height-100 cursor-pointer",4,"ngIf"],[2,"background-color","#ffb703"],[2,"background-color","#f05d5e"],[2,"background-color","#99e47b"],[2,"background-color","#958bfc"],[4,"ngFor","ngForOf"],["lines","none",1,"ion-no-margin","ion-no-padding"],[3,"innerHTML"],[1,"bottom-content","width-100"],["class","ion-no-margin ion-no-padding",3,"click",4,"ngFor","ngForOf"],[1,"ion-no-margin","ion-no-padding",3,"click"],[1,"attach-title-item","d-block"],[1,"span-left"],[1,"span-right"],[1,"aside-right","flex-column","height-100","cursor-pointer"],[1,"aside-buttons"],["hidden","","full","","shape","round",1,"btn-ok"],["full","","shape","round",1,"btn-ok",3,"click"],[1,"solid"],["full","","shape","round",1,"btn-cancel",3,"click"],["full","","shape","round",1,"btn-delete",3,"click"]],template:function(t,n){1&t&&(i.TgZ(0,"ion-content",0),i.YNc(1,T,38,21,"div",1),i.qZA(),i.TgZ(2,"ion-footer"),i.TgZ(3,"div",2),i.TgZ(4,"button",3),i.NdJ("click",function(){return n.emendTask(n.loadedEvent.serialNumber)}),i._uU(5,"Adicionar Nota"),i.qZA(),i.TgZ(6,"button",4),i.NdJ("click",function(){return n.approveTask(n.loadedEvent.serialNumber)}),i._uU(7,"Aprovar"),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.xp6(1),i.Q6J("ngIf",n.loadedEvent),i.xp6(1),i.Gre("display-none-",n.showAside," ion-no-border"))},directives:[c.W2,h.O5,c.fr,c.gu,c.Q$,h.sg,c.Ie,c.q_],pipes:[h.uU],styles:["ion-menu[_ngcontent-%COMP%]{--height:225px}.display-none-true[_ngcontent-%COMP%]{display:none;border:1px solid red}.header-icon-left[_ngcontent-%COMP%]{width:36px;font-size:33px;color:#42b9fe;float:left}.header-title[_ngcontent-%COMP%]{font-family:Roboto;font-size:25px;margin:0 5px;padding:0;color:#000;float:left}.header-icon-right[_ngcontent-%COMP%]{width:45px;font-size:45px;float:left}.content[_ngcontent-%COMP%]{padding:30px 20px 0!important;overflow:auto;width:100%;border-right:1px solid #d8d8d8}.content[_ngcontent-%COMP%] .upper-content[_ngcontent-%COMP%]{margin-left:40px;font-size:18px}.content[_ngcontent-%COMP%] .upper-content[_ngcontent-%COMP%] .content-location[_ngcontent-%COMP%]{margin-top:0!important;width:100%;padding:0}.content[_ngcontent-%COMP%] .upper-content[_ngcontent-%COMP%] .location[_ngcontent-%COMP%]{float:left}.content[_ngcontent-%COMP%] .upper-content[_ngcontent-%COMP%] .event-type-Oficial[_ngcontent-%COMP%]{background:#ffb703}.content[_ngcontent-%COMP%] .upper-content[_ngcontent-%COMP%] .event-type-Oficial[_ngcontent-%COMP%], .content[_ngcontent-%COMP%] .upper-content[_ngcontent-%COMP%] .event-type-Pessoal[_ngcontent-%COMP%]{font-family:Roboto;border-radius:20px;float:right!important;padding:5px 13.5px;color:#fff}.content[_ngcontent-%COMP%] .upper-content[_ngcontent-%COMP%] .event-type-Pessoal[_ngcontent-%COMP%]{background:#f05d5e}.content[_ngcontent-%COMP%] .upper-content[_ngcontent-%COMP%] .button-edit-event[_ngcontent-%COMP%]{width:140px;height:44px;border-radius:22.5px;--background:#e0e9ee;--color:#061b52}.content[_ngcontent-%COMP%] .middle-conten[_ngcontent-%COMP%] .middle-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .content[_ngcontent-%COMP%] .middle-conten[_ngcontent-%COMP%] .middle-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .content[_ngcontent-%COMP%] .upper-content[_ngcontent-%COMP%] .content-details[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px}.content[_ngcontent-%COMP%] .bottom-content[_ngcontent-%COMP%]{margin:0 auto}.content[_ngcontent-%COMP%] .bottom-content[_ngcontent-%COMP%] .bottom-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;margin:0 0 0 10px}.content[_ngcontent-%COMP%] .bottom-content[_ngcontent-%COMP%] .attach-document[_ngcontent-%COMP%]{font-size:15px;color:#0d89d1;margin:5px 5px 5px 10px;padding:5px;float:left}.content[_ngcontent-%COMP%] .bottom-content[_ngcontent-%COMP%] .attach-icon[_ngcontent-%COMP%]{width:37px;font-size:35px;float:left}.content[_ngcontent-%COMP%] .bottom-content[_ngcontent-%COMP%] .attach-title-item[_ngcontent-%COMP%]{width:100%;font-size:15px;color:#0d89d1}.content[_ngcontent-%COMP%] .bottom-content[_ngcontent-%COMP%] .span-left[_ngcontent-%COMP%]{float:left;font-size:15x}.content[_ngcontent-%COMP%] .bottom-content[_ngcontent-%COMP%] .span-right[_ngcontent-%COMP%]{text-align:right;float:right;font-size:13px}.aside-right[_ngcontent-%COMP%]{overflow:auto;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%] .aside-buttons[_ngcontent-%COMP%]{width:100%!important;display:flex;flex-wrap:wrap;justify-content:space-between}.aside-right[_ngcontent-%COMP%] .aside-buttons[_ngcontent-%COMP%] .btn-cancel[_ngcontent-%COMP%], .aside-right[_ngcontent-%COMP%] .aside-buttons[_ngcontent-%COMP%] .btn-delete[_ngcontent-%COMP%], .aside-right[_ngcontent-%COMP%] .aside-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}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;overflow:auto;padding:5px}.buttons[_ngcontent-%COMP%] .button-options[_ngcontent-%COMP%]{height:44px;--color:#42b9fe}.buttons[_ngcontent-%COMP%] .button-approve[_ngcontent-%COMP%]{width:140px;height:44px;border-radius:22.5px;--background:#42b9fe}.buttons[_ngcontent-%COMP%] .button-reject[_ngcontent-%COMP%]{width:140px;height:44px;--color:#d30a0a;border-radius:22.5px;--background:#ffe0e0}.delete[_ngcontent-%COMP%]{padding:7px;font-size:21px;color:#fff;background:#d30606;border-radius:20px}"]}),t})()}}]);