!function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n0),p.xp6(1),p.Q6J("ngIf",o.fulltask.workflowInstanceDataFields.TaskMessage),p.xp6(5),p.Q6J("ngForOf",o.attachments)}}function O(t,e){if(1&t){var n=p.EpF();p.TgZ(0,"div",34),p.TgZ(1,"div",35),p.TgZ(2,"button",36),p.NdJ("click",function(){return p.CHM(n),p.oxw().Assinar()}),p._uU(3,"Assinado"),p.qZA(),p._UZ(4,"div",37),p.qZA(),p.qZA()}}function A(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"ion-list"),p.TgZ(2,"ion-list-header"),p.TgZ(3,"ion-label"),p._UZ(4,"ion-skeleton-text",38),p.qZA(),p.qZA(),p.TgZ(5,"ion-item"),p.TgZ(6,"ion-label"),p.TgZ(7,"h3"),p._UZ(8,"ion-skeleton-text",38),p.qZA(),p.TgZ(9,"p"),p._UZ(10,"ion-skeleton-text",39),p.qZA(),p.qZA(),p.qZA(),p.TgZ(11,"ion-item"),p.TgZ(12,"ion-label"),p.TgZ(13,"h3"),p._UZ(14,"ion-skeleton-text",38),p.qZA(),p.TgZ(15,"p"),p._UZ(16,"ion-skeleton-text",39),p.qZA(),p.qZA(),p.qZA(),p.TgZ(17,"ion-item"),p.TgZ(18,"ion-label"),p.TgZ(19,"h3"),p._UZ(20,"ion-skeleton-text",38),p.qZA(),p.TgZ(21,"p"),p._UZ(22,"ion-skeleton-text",39),p.qZA(),p.qZA(),p.qZA(),p.TgZ(23,"ion-button",40),p._UZ(24,"ion-skeleton-text",38),p.qZA(),p.qZA(),p.qZA())}var P,T,q=[{path:"",component:(P=function(){function e(n,o,i,a,r,s,c,d,u){var l=this;t(this,e),this.processes=n,this.popoverController=o,this.modalController=i,this.iab=a,this.activatedRoute=r,this.router=s,this.animationController=c,this.toastService=d,this.location=u,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.cc=[],this.activatedRoute.paramMap.subscribe(function(t){t.params.SerialNumber&&(l.serialnumber=t.params.SerialNumber),t.params.caller&&(l.caller=t.params.caller)})}return n(e,[{key:"ngOnInit",value:function(){this.profile="mdgpr",this.LoadTaskDetail(this.serialnumber)}},{key:"goBack",value:function(){this.location.back()}},{key:"openOptions",value:function(t){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.popoverController.create({component:l.Q,cssClass:"exp-options",componentProps:{serialNumber:this.task.SerialNumber,task:this.task,showEnviarPendentes:!1},translucent:!0});case 2:return e=t.sent,t.next=5,e.present();case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}},t,this)}))}},{key:"LoadTaskDetail",value:function(t){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.processes.GetTask(t).subscribe(function(t){n.task={SerialNumber:t.serialNumber,Folio:t.workflowInstanceDataFields.Subject,Senders:t.originator.email,CreateDate:(0,u.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,WorkflowName:t.workflowDisplayName,DeadlineType:t.workflowInstanceDataFields.DeadlineType,activityInstanceName:t.activityInstanceName},n.fulltask=t,console.log(n.task),console.log("GetTask",t);var e=new Date(n.task.CreateDate);n.customDate=n.days[e.getDay()]+", "+e.getDate()+" de "+n.months[e.getMonth()],n.processes.GetTaskParticipants(n.task.FolderId).subscribe(function(t){n.intervenientes=t.filter(function(t){return"I"==t.Type}),n.cc=t.filter(function(t){return"CC"==t.Type}),console.log(t)}),n.getDocumentDetails(n.task.FolderId,"361")},function(t){try{n.toastService.badRequest("Processo n\xe3o encontrado"),n.goBack()}catch(e){window.history.back()}finally{n.toastService.badRequest(0==t.status?"N\xe3o \xe9 poss\xedvel visualizar este processo no modo offline":"Processo n\xe3o encontrado")}});case 1:case"end":return e.stop()}},e,this)}))}},{key:"viewDocument",value:function(t){var e=this;this.processes.GetDocumentUrl(t,"361").subscribe(function(t){console.log(t);var n=t.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");e.iab.create(n,"_blank").show()})}},{key:"getDocumentDetails",value:function(t,e){var n=this;this.processes.GetDocumentDetails(t,e).subscribe(function(t){n.attachments=t.Documents,console.log(t.Documents),console.log(n.attachments)})}},{key:"Assinar",value:function(){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var e,n,o=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e={serialNumber:this.serialnumber,action:"Assinado",ActionTypeId:99999842,dataFields:{ReviewUserComment:""},AttachmentList:[]},n=this.toastService.loading(),t.prev=2,t.next=5,this.processes.CompleteTask(e).toPromise();case 5:this.toastService.successMessage(!1,function(){o.goBack()}),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(2),this.toastService.badRequest();case 11:return t.prev=11,n.remove(),t.finish(11);case 14:case"end":return t.stop()}},t,this,[[2,8,11,14]])}))}},{key:"toDateString",value:function(t){return new Date(t).toDateString()}},{key:"close",value:function(){this.modalController.dismiss()}}]),e}(),P.\u0275fac=function(t){return new(t||P)(p.Y36(g.$),p.Y36(s.Dh),p.Y36(s.IN),p.Y36(m.i),p.Y36(c.gz),p.Y36(c.F0),p.Y36(s.vB),p.Y36(h.k),p.Y36(a.Ye))},P.\u0275cmp=p.Xpm({type:P,selectors:[["app-diploma-assinar"]],decls:7,vars:3,consts:[[1,"ion-no-border"],[1,"main-content","d-flex","height-100"],["class","content d-flex flex-column",4,"ngIf"],["class","aside-right flex-column height-100",4,"ngIf"],[4,"ngIf"],[1,"content","d-flex","flex-column"],[1,"main-header"],[1,"title-content","width-100","d-flex","justify-space-between"],["defaultHref","#",1,"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"],["name","ellipsis-vertical-outline",1,"font-25","cursor-pointer"],[1,"upper-content"],[1,"content-details"],[1,"date"],[1,"label"],[1,"color-red"],[1,"line"],[1,"middle-content"],[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"],[3,"click"],["class","attach-title-item",4,"ngIf"],[1,"span-left"],[1,"span-right"],[1,"attach-title-item"],[1,"span-right","color-red","btn-size"],["hidden","","name","close"],[1,"aside-right","flex-column","height-100"],[1,"buttons"],["shape","round",1,"btn-cancel",3,"click"],[1,"solid"],["animated","",2,"width","50%"],["animated","",2,"width","80%"],["color","medium","shape","round","expand","block"]],template:function(t,e){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.YNc(4,M,34,9,"div",2),p.YNc(5,O,5,0,"div",3),p.YNc(6,A,25,0,"div",4),p.qZA(),p.qZA()),2&t&&(p.xp6(4),p.Q6J("ngIf",e.task),p.xp6(1),p.Q6J("ngIf",e.task),p.xp6(1),p.Q6J("ngIf",!e.task))},directives:[s.Gu,f.E,s.W2,a.O5,s.gu,s.Q$,s.Ie,a.sg,s.q_,s.yh,s.CK,s.YG],pipes:[a.uU],styles:["[_nghost-%COMP%]{margin:0}.header-2[_ngcontent-%COMP%]{border-top-right-radius:24px;border-top-left-radius:24px}.header-2[_ngcontent-%COMP%], .main-content[_ngcontent-%COMP%], ion-content[_ngcontent-%COMP%]{padding:30px 20px 0!important}.main-content[_ngcontent-%COMP%]{padding-top:0!important;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%]{font-family:Roboto;border-top-left-radius:25px;border-top-right-radius:25px;background-color:#fff;overflow:auto;color:#000;transform:translate3d(0,1px,0)}.main-header[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%]{margin:0 auto;overflow:auto;padding:0!important;background:#fff}.main-header[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%] .middle[_ngcontent-%COMP%]{padding:0!important;float:left;width:280px;margin:2.5px 0 0 5px;display:flex;align-items:center}.main-header[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{padding:0!important;float:right;font-size:25px;color:#0782c9;margin:5px 0 0}.main-header[_ngcontent-%COMP%] .header-bottom[_ngcontent-%COMP%]{width:310px;overflow:auto;margin:0 auto}.main-header[_ngcontent-%COMP%] .header-bottom[_ngcontent-%COMP%] .header-bottom-icon[_ngcontent-%COMP%]{width:30px;font-size:25px;float:left;padding:2px}.main-header[_ngcontent-%COMP%] .header-bottom[_ngcontent-%COMP%] .header-bottom-contacts[_ngcontent-%COMP%]{width:275px;font-size:15px;color:#797979;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;float:left;padding:5px;margin:1px}.main-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:25px;overflow:auto;float:left;padding-top:4px;padding-left:5px}.main-header[_ngcontent-%COMP%] .div-icon[_ngcontent-%COMP%]{width:40px;float:right;font-size:35px;overflow:auto;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-left:41px;overflow:auto;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%}}"]}),P)}],y=function(){var e=function e(){t(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p.oAB({type:e}),e.\u0275inj=p.cJS({imports:[[c.Bz.forChild(q)],c.Bz]}),e}(),N=i(6527),D=i(4502),I=((T=function e(){t(this,e)}).\u0275fac=function(t){return new(t||T)},T.\u0275mod=p.oAB({type:T}),T.\u0275inj=p.cJS({imports:[[a.ez,r.u5,s.Pc,y,N.a,D.F]]}),T)},90027:function(e,o,i){"use strict";i.d(o,{Q:function(){return b}});var a=i(64762),r=i(320),s=i(83189),c=i(37716),d=i(35957),u=i(39895),l=i(28621),p=i(84465),g=function(){var e=function(){function e(n){t(this,e),this.processes=n,this.activityInstanceName={"Revisar Diploma":["Solicitar assinatura do Presidente","Solicitar altera\xe7\xe3o","Marcar Reuni\xe3o"],"Diploma Assinado":["Concluir"],"Assinar Diploma":["Assinado"]}}return n(e,[{key:"askSignature",value:function(t){var e=t.note,n=t.documents,o=t.serialNumber;return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.processes.CompleteTask({serialNumber:o,action:"Aprovar",ActionTypeId:99999840,dataFields:{ReviewUserComment:e},AttachmentList:n}));case 1:case"end":return t.stop()}},t,this)}))}},{key:"askToChange",value:function(t){var e=t.note,n=t.documents,o=t.serialNumber;return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.processes.CompleteTask({serialNumber:o,action:"Retificar",ActionTypeId:99999841,dataFields:{ReviewUserComment:e},AttachmentList:n}));case 1:case"end":return t.stop()}},t,this)}))}},{key:"finish",value:function(t){var e=t.note,n=t.documents,o=t.serialNumber;return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.processes.CompleteTask({serialNumber:o,action:"Concluir",ActionTypeId:95,dataFields:{ReviewUserComment:e},AttachmentList:n}));case 1:case"end":return t.stop()}},t,this)}))}},{key:"sign",value:function(t){var e=t.note,n=t.documents,o=t.serialNumber;return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.processes.CompleteTask({serialNumber:o,action:"Assinado",ActionTypeId:99999842,dataFields:{ReviewUserComment:e},AttachmentList:n}));case 1:case"end":return t.stop()}},t,this)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(c.LFG(l.$))},e.\u0275prov=c.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),m=i(38583);function h(t,e){if(1&t){var n=c.EpF();c.TgZ(0,"div",5),c.TgZ(1,"button",6),c.NdJ("click",function(){return c.CHM(n),c.oxw(2).openAddNoteModal("Solicitar assinatura")}),c._uU(2,"Solicitar assinatura do Presidente"),c.qZA(),c.TgZ(3,"button",6),c.NdJ("click",function(){return c.CHM(n),c.oxw(2).openAddNoteModal("Solicitar altera\xe7\xe3o")}),c._uU(4,"Solicitar altera\xe7\xe3o"),c.qZA(),c.TgZ(5,"button",6),c.NdJ("click",function(){c.CHM(n);var t=c.oxw(2);return t.openBookMeetingModal(t.task)}),c._uU(6,"Marcar Reuni\xe3o"),c.qZA(),c._UZ(7,"div",7),c.qZA()}}function f(t,e){if(1&t){var n=c.EpF();c.TgZ(0,"div",5),c.TgZ(1,"button",6),c.NdJ("click",function(){return c.CHM(n),c.oxw(2).openAddNoteModal("Concluir diploma")}),c._uU(2,"Concluir"),c.qZA(),c.qZA()}}function v(t,e){if(1&t){var n=c.EpF();c.TgZ(0,"div",5),c.TgZ(1,"button",6),c.NdJ("click",function(){return c.CHM(n),c.oxw(2).openAddNoteModal("Assinar Diploma")}),c._uU(2,"Assinado"),c.qZA(),c.qZA()}}function x(t,e){if(1&t&&(c.TgZ(0,"div",3),c.YNc(1,h,8,0,"div",4),c.YNc(2,f,3,0,"div",4),c.YNc(3,v,3,0,"div",4),c.qZA()),2&t){var n=c.oxw();c.xp6(1),c.Q6J("ngIf","Revisar Diploma"==n.task.activityInstanceName),c.xp6(1),c.Q6J("ngIf","Diploma Assinado"==n.task.activityInstanceName),c.xp6(1),c.Q6J("ngIf","Assinar Diploma"==n.task.activityInstanceName)}}var b=function(){var e=function(){function e(n,o,i,a,r,s,c,d){t(this,e),this.popoverController=n,this.modalController=o,this.activatedRoute=i,this.processes=a,this.navParams=r,this.toastService=s,this.router=c,this.deplomaService=d,this.serialNumber=this.navParams.get("serialNumber"),this.task=this.navParams.get("task"),this.fulltask=this.navParams.get("fulltask")}return n(e,[{key:"ngOnInit",value:function(){console.log(this.serialNumber)}},{key:"openAddNoteModal",value:function(t){return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var n,o=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.popoverController.dismiss(),window,"modal modal-desktop",e.next=3,this.modalController.create({component:r.C,componentProps:{},cssClass:"modal modal-desktop",backdropDismiss:!0});case 3:return n=e.sent,e.next=6,n.present();case 6:n.onDidDismiss().then(function(e){return(0,a.mG)(o,void 0,void 0,regeneratorRuntime.mark(function n(){var o;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.data){n.next=25;break}if(o={ProcessInstanceID:"",Attachments:e.data.documents.map(function(t){return{ApplicationId:t.ApplicationType,SourceId:t.Id}})},"Solicitar assinatura"!=t){n.next=8;break}return n.next=5,this.askSignature(e.data.note,o);case 5:this.goBack(),n.next=25;break;case 8:if("Solicitar altera\xe7\xe3o"!=t){n.next=14;break}return n.next=11,this.askToChange(e.data.note,o);case 11:this.goBack(),n.next=25;break;case 14:if("Assinar Diploma"!=t){n.next=20;break}return n.next=17,this.sign(e.data.note,o);case 17:this.goBack(),n.next=25;break;case 20:if(n.t0="Concluir diploma"==t,!n.t0){n.next=25;break}return n.next=24,this.finish(e.data.note,o);case 24:this.goBack();case 25:case"end":return n.stop()}},n,this)}))});case 7:case"end":return e.stop()}},e,this)}))}},{key:"askToChange",value:function(t,e){return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function n(){var o,i;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return o={serialNumber:this.serialNumber,action:"Retificar",ActionTypeId:99999841,dataFields:{ReviewUserComment:t},AttachmentList:e},i=this.toastService.loading(),n.prev=2,n.next=5,this.processes.CompleteTask(o).toPromise();case 5:this.close(),this.toastService.successMessage(),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),this.toastService.badRequest();case 12:return n.prev=12,i.remove(),n.finish(12);case 15:case"end":return n.stop()}},n,this,[[2,9,12,15]])}))}},{key:"openBookMeetingModal",value:function(t){return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var e,n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.popoverController.dismiss(),e=window.innerWidth<=800?"book-meeting-modal modal modal-desktop":"modal modal-desktop showAsideOptions",t.next=3,this.modalController.create({component:s.k,componentProps:{task:this.task},cssClass:e,backdropDismiss:!1});case 3:return n=t.sent,t.next=6,n.present();case 6:n.onDidDismiss();case 7:case"end":return t.stop()}},t,this)}))}},{key:"askSignature",value:function(t,e){return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function n(){var o,i;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return o={serialNumber:this.serialNumber,action:"Aprovar",ActionTypeId:99999840,dataFields:{ReviewUserComment:t},AttachmentList:e},i=this.toastService.loading(),n.prev=2,n.next=5,this.processes.CompleteTask(o).toPromise();case 5:this.close(),this.toastService.successMessage(),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),this.toastService.badRequest();case 12:return n.prev=12,i.remove(),n.finish(12);case 15:case"end":return n.stop()}},n,this,[[2,9,12,15]])}))}},{key:"sign",value:function(t,e){return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function n(){var o,i;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return o={serialNumber:this.serialNumber,action:"Assinado",ActionTypeId:99999842,dataFields:{ReviewUserComment:t},AttachmentList:e},i=this.toastService.loading(),n.prev=2,n.next=5,this.processes.CompleteTask(o).toPromise();case 5:this.close(),this.toastService.successMessage(),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),this.toastService.badRequest();case 12:return n.prev=12,i.remove(),n.finish(12);case 15:case"end":return n.stop()}},n,this,[[2,9,12,15]])}))}},{key:"finish",value:function(t,e){return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function n(){var o,i;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return o={serialNumber:this.serialNumber,action:"Concluir",ActionTypeId:95,dataFields:{ReviewUserComment:t},AttachmentList:e},i=this.toastService.loading(),n.prev=2,n.next=5,this.processes.CompleteTask(o).toPromise();case 5:this.toastService.successMessage("Processo conclu\xeddo"),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(2),this.toastService.badRequest();case 11:return n.prev=11,i.remove(),n.finish(11);case 14:case"end":return n.stop()}},n,this,[[2,8,11,14]])}))}},{key:"goBack",value:function(){this.router.navigate(["/home/gabinete-digital/diplomas-assinar"])}},{key:"close",value:function(){this.popoverController.dismiss()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(c.Y36(d.Dh),c.Y36(d.IN),c.Y36(u.gz),c.Y36(l.$),c.Y36(d.X1),c.Y36(p.k),c.Y36(u.F0),c.Y36(g))},e.\u0275cmp=c.Xpm({type:e,selectors:[["app-deploma-options"]],decls:3,vars:1,consts:[[1,"container"],[1,"buttons"],["class","aside-right flex-column height-100 width-100",4,"ngIf"],[1,"aside-right","flex-column","height-100","width-100"],["class","buttons width-100",4,"ngIf"],[1,"buttons","width-100"],["shape","round",1,"btn-cancel",3,"click"],[1,"solid"]],template:function(t,e){1&t&&(c.TgZ(0,"ion-content",0),c.TgZ(1,"div",1),c.YNc(2,x,4,3,"div",2),c.qZA(),c.qZA()),2&t&&(c.xp6(2),c.Q6J("ngIf",e.task))},directives:[d.W2,m.O5],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}.solid[_ngcontent-%COMP%]{display:none;width:90%;border-top:1px solid #bbb;margin:0 auto!important}.btn-cancel[_ngcontent-%COMP%], .btn-ok[_ngcontent-%COMP%]{margin-bottom:5px!important;margin-top:5px!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}}"]}),e}()}}])}();