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

1 line
17 KiB
JavaScript

(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[5597,6527,5763,2417,3756,6055,1895,5457,1087,4413,5183,5802,9391,1485,9074,4176,9406],{72231:function(e,t,n){"use strict";n.d(t,{q:function(){return c}});var o=n(37716),i=n(35957),r=n(3679);let c=(()=>{class e{constructor(e){this.modalController=e,this.emendMessage="",this.emendMessage=""}ngOnInit(){}close(){this.modalController.dismiss("")}save(){this.modalController.dismiss(this.emendMessage)}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.IN))},e.\u0275cmp=o.Xpm({type:e,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(e,t){1&e&&(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 t.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(e){return t.emendMessage=e}),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 t.close()}),o._uU(14,"Cancelar"),o.qZA(),o.TgZ(15,"button",10),o.NdJ("click",function(){return t.save()}),o._uU(16,"Enviar"),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(10),o.Q6J("ngModel",t.emendMessage))},directives:[i.Gu,i.gu,i.W2,i.g2,i.j9,r.JJ,r.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}"]}),e})()},23879:function(e,t,n){"use strict";n.d(t,{g:function(){return g}});var o=n(64762),i=n(82265),r=n(72231),c=n(37716),s=n(35957),a=n(28621),d=n(39895),l=n(84465);let g=(()=>{class e{constructor(e,t,n,o,i,r,c){this.navParams=e,this.processes=t,this.router=n,this.modalController=o,this.popoverController=i,this.animationController=r,this.toastService=c,this.serialNumber=this.navParams.get("serialNumber"),this.instanceId=this.navParams.get("InstanceId")}ngOnInit(){window.onresize=e=>{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 e={serialNumber:this.serialNumber,action:"Aprovar"};console.log(e);const t=this.toastService.loading();try{yield this.processes.PostTaskAction(e).toPromise(),this.toastService.successMessage(),this.goBack()}catch(n){this.toastService.badRequest()}finally{t.remove()}})}emendarTask(){return(0,o.mG)(this,void 0,void 0,function*(){this.closePopover();const e=yield this.modalController.create({component:r.q,componentProps:{},cssClass:"emend-message-modal",backdropDismiss:!1});yield e.present(),e.onDidDismiss().then(e=>(0,o.mG)(this,void 0,void 0,function*(){if(console.log(e.data),""!==e.data){let n={serialNumber:this.serialNumber,action:"Emendar",dataFields:{ReviewUserComment:e.data}};console.log(n);const o=this.toastService.loading();try{yield this.processes.PostTaskAction(n).toPromise(),this.toastService.successMessage("Pedido enviado"),this.goBack()}catch(t){this.toastService.badRequest()}finally{o.remove()}}}))})}rejeitar(){return(0,o.mG)(this,void 0,void 0,function*(){let e={serialNumber:this.serialNumber,action:"Rejeitar"};console.log(e);const t=this.toastService.loading();try{yield this.processes.PostTaskAction(e).toPromise(),yield this.toastService.successMessage("Processo rejeitado"),this.goBack()}catch(n){this.toastService.badRequest()}finally{t.remove()}})}editTask(){return(0,o.mG)(this,void 0,void 0,function*(){this.closePopover();const e=yield this.modalController.create({component:i.j,componentProps:{serialNumber:this.serialNumber,InstanceId:this.instanceId},cssClass:"modal modal-desktop"});yield e.present(),e.onDidDismiss().then(e=>{})})}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(s.X1),c.Y36(a.$),c.Y36(d.F0),c.Y36(s.IN),c.Y36(s.Dh),c.Y36(s.vB),c.Y36(l.k))},e.\u0275cmp=c.Xpm({type:e,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(e,t){1&e&&(c.TgZ(0,"ion-content",0),c.TgZ(1,"div",1),c.NdJ("click",function(){return t.closePopover()}),c.TgZ(2,"button",2),c._UZ(3,"ion-icon",3),c.qZA(),c.qZA(),c.TgZ(4,"div",4),c.TgZ(5,"button",5),c.NdJ("click",function(){return t.emendarTask()}),c._uU(6,"Adicionar Nota"),c.qZA(),c.TgZ(7,"button",6),c.NdJ("click",function(){return t.approveTask()}),c._uU(8,"Aprovar"),c.qZA(),c._UZ(9,"div",7),c.TgZ(10,"button",5),c.NdJ("click",function(){return t.editTask()}),c._uU(11,"Editar"),c.qZA(),c.TgZ(12,"button",8),c.NdJ("click",function(){return t.rejeitar()}),c._uU(13,"Rejeitar"),c.qZA(),c.qZA(),c.qZA())},directives:[s.W2,s.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}}"]}),e})()},6527:function(e,t,n){"use strict";n.d(t,{a:function(){return g}});var o=n(38583),i=n(3679),r=n(35957),c=n(39895),s=n(962),a=n(37716);const d=[{path:"",component:s.E}];let l=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[c.Bz.forChild(d)],c.Bz]}),e})(),g=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[o.ez,i.u5,r.Pc,l]]}),e})()},962:function(e,t,n){"use strict";n.d(t,{E:function(){return b}});var o=n(64762),i=n(4528),r=n(33559),c=n(37716),s=n(39895),a=n(35957),d=n(37556),l=n(38583),g=n(3679);function h(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div",21),c.TgZ(1,"div",22),c.NdJ("click",function(){return c.CHM(e),c.oxw().openSearch()}),c._UZ(2,"ion-icon",23),c.qZA(),c.qZA()}}function p(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div",28),c.NdJ("click",function(){c.CHM(e);const t=c.oxw(2);return t.openSearch(),t.showSearch=!0}),c._UZ(1,"ion-icon",23),c.qZA()}}function u(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"button",29),c.NdJ("click",function(){c.CHM(e);const t=c.oxw(2);return t.closeSearch(),t.showSearch=!1,t.searchSubject=""}),c._UZ(1,"ion-icon",30),c.qZA()}}function m(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div",32),c.TgZ(1,"div",33),c.NdJ("click",function(){return c.CHM(e),c.oxw(3).basicSearch()}),c._UZ(2,"ion-icon",34),c.qZA(),c.TgZ(3,"div",35),c.TgZ(4,"ion-input",36),c.NdJ("keyup.enter",function(){return c.CHM(e),c.oxw(3).basicSearch()})("ngModelChange",function(t){return c.CHM(e),c.oxw(3).searchSubject=t})("ngModelChange",function(){return c.CHM(e),c.oxw(3).dynamicSearch()}),c.qZA(),c.qZA(),c.TgZ(5,"div",33),c.NdJ("click",function(){return c.CHM(e),c.oxw(3).clearSearchInput()}),c._UZ(6,"ion-icon",37),c.qZA(),c.qZA()}if(2&e){const e=c.oxw(3);c.xp6(4),c.Q6J("ngModel",e.searchSubject)}}function f(e,t){if(1&e&&(c.TgZ(0,"div"),c.YNc(1,m,7,1,"div",31),c.qZA()),2&e){const e=c.oxw(2);c.xp6(1),c.Q6J("ngIf",e.showSearch)}}function v(e,t){if(1&e&&(c.TgZ(0,"div",24),c.YNc(1,p,2,0,"div",25),c.YNc(2,u,2,0,"button",26),c.YNc(3,f,2,1,"div",27),c.qZA()),2&e){const e=c.oxw();c.xp6(1),c.Q6J("ngIf",!e.showSearch),c.xp6(1),c.Q6J("ngIf",e.showSearch),c.xp6(1),c.Q6J("ngIf",e.showSearch)}}let b=(()=>{class e{constructor(e,t,n,o){this.router=e,this.modalController=t,this.animationController=n,this.searchSubject="",this.showSearch=!1,this.hideSearchBtn=!1,this.loggeduser=o.ValidatedUser,e.events.subscribe(e=>{this.showSearch=!1})}ngOnInit(){this.hideSearch()}hideSearch(){"/home/events"!=this.router.url&&"/home/chat"!=this.router.url||(this.hideSearchBtn=!0)}locationPathname(){return window.location.pathname}openSearch(){return(0,o.mG)(this,void 0,void 0,function*(){let e,t,n;window.innerWidth<1366?(e="modal modal-width-100",t=!0):(e="modal modal-desktop desktop-search",t=!1),window.location.pathname.startsWith("/home/agenda")?n="Agenda":window.location.pathname.startsWith("/home/gabinete-digital")?n="AccoesPresidenciais & ArquivoDespachoElect":window.location.pathname.startsWith("/home/publications")&&(n="AccoesPresidenciais");const o=yield this.modalController.create({component:i.Z,cssClass:e,componentProps:{type:n,showSearchInput:t,select:!1}});return yield o.present()})}changeRoute(e){this.router.navigateByUrl(e)}openProfile(){return(0,o.mG)(this,void 0,void 0,function*(){const e=e=>{const t=this.animationController.create().addElement(e.querySelector("ion-backdrop")).fromTo("opacity","0.01","var(--backdrop-opacity)"),n=this.animationController.create().addElement(e.querySelector(".modal-wrapper")).keyframes([{offset:0,opacity:"1",right:"-100%"},{offset:1,opacity:"1",right:"0px"}]);return this.animationController.create().addElement(e).easing("ease-out").duration(500).addAnimation([t,n])},t=yield this.modalController.create({enterAnimation:e,leaveAnimation:t=>e(t).direction("reverse"),component:r.G,cssClass:"model profile-modal search-submodal",componentProps:{}});return yield t.present()})}dynamicSearch(){return(0,o.mG)(this,void 0,void 0,function*(){window.dynamicSearch(this.searchSubject)})}closeSearch(){return(0,o.mG)(this,void 0,void 0,function*(){this.modalController.dismiss()})}clearSearchInput(){this.searchSubject="",window.dynamicSearch(this.searchSubject)}basicSearch(){return(0,o.mG)(this,void 0,void 0,function*(){window.searchTriger()})}profileLabel(e){return"MDGPR"==e?"MD":"PR"==e?e:"UN"}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(s.F0),c.Y36(a.IN),c.Y36(a.vB),c.Y36(d.e))},e.\u0275cmp=c.Xpm({type:e,selectors:[["app-header"]],decls:40,vars:14,consts:[[1,"pb-10","ion-toolbar","text-white"],[1,"mobile","d-flex","div-top-header","justify-space-between"],["class","div-search",4,"ngIf"],[1,"div-logo","height-fit-content"],["src","assets/images/logo-no-bg.png","alt","logo"],[1,"div-profile","cursor-pointer",3,"click"],["src","assets/images/icons-profile.svg",1,"icon"],[1,"profile-text"],[1,"desktop","mx-20"],[1,"d-flex","justify-space-between","align-center"],["tab","events",1,"div-logo","height-fit-content"],[1,"d-flex","flex-1","pr-20","pl-50"],[1,"tab","mr-20","d-flex","align-center","cursor-pointer",3,"click"],["src","assets/images/icons-nav-home-active.svg",1,"font-40"],["src","assets/images/icons-nav-agenda-inactive.svg",1,"font-40"],["src","assets/images/icons-nav-home-dk.svg",1,"font-40"],["src","assets/images/icons-nav-a-es-inactive.svg",1,"font-40"],["src","assets/images/icons-nav-grupos-inactive-dk-white.svg",1,"font-40"],[1,"header-btns","d-flex"],["class","mr-10 d-flex align-center cursor-pointer",4,"ngIf"],[1,"div-profile","d-flex","cursor-pointer",3,"click"],[1,"div-search"],[3,"click"],["src","assets/images/icons-search.svg",1,"font-45"],[1,"mr-10","d-flex","align-center","cursor-pointer"],["style","padding-top: 5px;",3,"click",4,"ngIf"],["class","btn-no-color",3,"click",4,"ngIf"],[4,"ngIf"],[2,"padding-top","5px",3,"click"],[1,"btn-no-color",3,"click"],["name","restaurant-outline","src","assets/images/icons-search-close.svg",1,"font-40"],["class","d-flex search-input-container ml-10 justify-between",4,"ngIf"],[1,"d-flex","search-input-container","ml-10","justify-between"],[1,"icon",3,"click"],["slot","end","name","search",1,"icon-z"],[1,"input-text","d-flex","ion-align-items-center"],["type","search","placeholder","Pesquisar",1,"search-input","text-black",3,"ngModel","keyup.enter","ngModelChange"],["name","restaurant-outline","src","assets/images/icons-search-close.svg"]],template:function(e,t){1&e&&(c.TgZ(0,"div",0),c.TgZ(1,"div",1),c.YNc(2,h,3,0,"div",2),c.TgZ(3,"div",3),c._UZ(4,"img",4),c.qZA(),c.TgZ(5,"div",5),c.NdJ("click",function(){return t.openProfile()}),c._UZ(6,"ion-icon",6),c.TgZ(7,"ion-label",7),c._uU(8),c.qZA(),c.qZA(),c.qZA(),c.TgZ(9,"div",8),c.TgZ(10,"div",9),c.TgZ(11,"div",10),c._UZ(12,"img",4),c.qZA(),c.TgZ(13,"div",11),c.TgZ(14,"div",12),c.NdJ("click",function(){return t.changeRoute("/home/events")}),c._UZ(15,"ion-icon",13),c.TgZ(16,"span"),c._uU(17,"In\xedcio"),c.qZA(),c.qZA(),c.TgZ(18,"div",12),c.NdJ("click",function(){return t.changeRoute("/home/agenda")}),c._UZ(19,"ion-icon",14),c.TgZ(20,"span"),c._uU(21,"Agenda"),c.qZA(),c.qZA(),c.TgZ(22,"div",12),c.NdJ("click",function(){return t.changeRoute("/home/gabinete-digital")}),c._UZ(23,"ion-icon",15),c.TgZ(24,"span"),c._uU(25,"Gabinete"),c.qZA(),c.qZA(),c.TgZ(26,"div",12),c.NdJ("click",function(){return t.changeRoute("/home/publications")}),c._UZ(27,"ion-icon",16),c.TgZ(28,"span"),c._uU(29,"Ac\xe7\xf5es"),c.qZA(),c.qZA(),c.TgZ(30,"div",12),c.NdJ("click",function(){return t.changeRoute("/home/chat")}),c._UZ(31,"ion-icon",17),c.TgZ(32,"span"),c._uU(33,"Chat"),c.qZA(),c.qZA(),c.qZA(),c.TgZ(34,"div",18),c.YNc(35,v,4,3,"div",19),c.TgZ(36,"div",20),c.NdJ("click",function(){return t.openProfile()}),c._UZ(37,"ion-icon",6),c.TgZ(38,"ion-label",7),c._uU(39),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA()),2&e&&(c.xp6(2),c.Q6J("ngIf",!t.hideSearchBtn),c.xp6(6),c.Oqu(t.loggeduser.Profile),c.xp6(6),c.ekj("active","/home/events"==t.locationPathname()),c.xp6(4),c.ekj("active","/home/agenda"==t.locationPathname()),c.xp6(4),c.ekj("active","/home/gabinete-digital"==t.locationPathname()),c.xp6(4),c.ekj("active","/home/publications"==t.locationPathname()),c.xp6(4),c.ekj("active","/home/chat"==t.locationPathname()),c.xp6(5),c.Q6J("ngIf",!t.hideSearchBtn),c.xp6(4),c.Oqu(t.profileLabel(t.loggeduser.Profile)))},directives:[l.O5,a.gu,a.Q$,a.pK,a.j9,g.JJ,g.On],styles:[".div-top-header[_ngcontent-%COMP%]{margin:0 1.25em;padding-top:.9375em;border:0!important}.div-logo[_ngcontent-%COMP%]{background:transparent;width:8.75em;justify-content:center;display:flex}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;margin:0 auto}.header-btns[_ngcontent-%COMP%]{justify-content:center;align-items:center}.div-profile[_ngcontent-%COMP%]{width:90px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;font-size:45px;justify-content:flex-end;display:flex;background-color:transparent;justify-content:center;align-items:center;overflow:auto}.div-profile[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{position:relative;border:none!important}.div-profile[_ngcontent-%COMP%] .profile-text[_ngcontent-%COMP%]{font-size:20px;font-weight:300;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:absolute}.desktop[_ngcontent-%COMP%]{display:none}@media only screen and (min-width: 1366px){.mobile[_ngcontent-%COMP%]{display:none!important}.desktop[_ngcontent-%COMP%]{display:block}}.tab[_ngcontent-%COMP%]{height:65px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.active[_ngcontent-%COMP%]{border-top:7px solid #fff}.search-input-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:27.5px;border:1px solid #ebebeb}.search-input-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{color:#797979;width:45px;height:45px;display:flex;justify-content:center;font-size:25px;align-items:center}.search-input-container[_ngcontent-%COMP%] .input-text[_ngcontent-%COMP%]{width:100%}.search-input-container[_ngcontent-%COMP%] .icon-z[_ngcontent-%COMP%]{width:20px}"]}),e})()}}]);