Files
doneit-web/_platforms/browser/www/8345-es2015.7cc8c8ff81168c557ccd.js
T

1 line
25 KiB
JavaScript
Raw Normal View History

2021-08-18 18:58:02 +01:00
(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