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

1 line
14 KiB
JavaScript

(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[3416,8621,5361,9492],{45896:function(t,e,s){"use strict";s.d(e,{Q:function(){return o}});var i=s(37716),n=s(35957),a=s(28621),r=s(39895);let o=(()=>{class t{constructor(t,e,s){this.modalController=t,this.processes=e,this.router=s}ngOnInit(){}close(){this.modalController.dismiss("No")}save(){this.modalController.dismiss("Yes")}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(n.IN),i.Y36(a.$),i.Y36(r.F0))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-discart-expedient-modal"]],decls:15,vars:0,consts:[[1,"ion-no-border"],[1,"header-content","width-100"],[1,"header-title","d-flex","width-100"],[1,"header-body","width-100"],[1,"buttons","width-100"],["shape","round",1,"btn-ok-medium",3,"click"],["shape","round",1,"btn-delete-medium",3,"click"]],template:function(t,e){1&t&&(i._UZ(0,"ion-header",0),i.TgZ(1,"ion-content"),i.TgZ(2,"div",1),i.TgZ(3,"div",2),i.TgZ(4,"h3"),i._uU(5,"Deseja retirar este expediente da sua caixa de correspond\xeancia?"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(6,"div",3),i.TgZ(7,"p"),i._uU(8,"Nota: Ao Efetuar esta opera\xe7\xe3o, o tratamento deste expediente n\xe3o poder\xe1 ser realizado a partir da caixa de correspond\xeancia"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(9,"ion-footer"),i.TgZ(10,"div",4),i.TgZ(11,"button",5),i.NdJ("click",function(){return e.close()}),i._uU(12,"N\xe3o"),i.qZA(),i.TgZ(13,"button",6),i.NdJ("click",function(){return e.save()}),i._uU(14,"Sim"),i.qZA(),i.qZA(),i.qZA())},directives:[n.Gu,n.W2,n.fr],styles:["ion-content[_ngcontent-%COMP%]{--padding-top:15px;--padding-start:15px;--padding-end:15px}.header-content[_ngcontent-%COMP%]{overflow:hidden;margin:0 auto;align-items:center;justify-content:center}.header-title[_ngcontent-%COMP%]{font-family:Roboto;font-size:20px;color:#000;margin:0 5px}.header-body[_ngcontent-%COMP%]{margin:0 5px}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:15px 0}"]}),t})()},28621:function(t,e,s){"use strict";s.d(e,{$:function(){return o}});var i=s(91841),n=s(92340),a=s(37716),r=s(37556);let o=(()=>{class t{constructor(t,e){this.http=t,this.authheader={},this.loggeduser=e.ValidatedUser,this.headers=new i.WM,this.headers=this.headers.set("Authorization",this.loggeduser.BasicAuthKey)}GetTasksList(t,e){const s=n.N.apiURL+"tasks/List";let a=new i.LE;return a=a.set("ProcessName",t),a=a.set("OnlyCount",e.toString()),this.http.get(`${s}`,{headers:this.headers,params:a})}GetTask(t){const e=n.N.apiURL+"Tasks/FindTask";let s=new i.LE;return s=s.set("serialNumber",t),this.http.get(`${e}`,{headers:this.headers,params:s})}SetTaskToPending(t){const e=n.N.apiURL+"Tasks/SetTaskPending";let s=new i.LE;return s=s.set("serialNumber",t),this.http.post(`${e}`,"",{headers:this.headers,params:s})}GetPendingTasks(t){const e=n.N.apiURL+"Tasks/ListPending";let s=new i.LE;return s=s.set("onlyCount",t.toString()),this.http.get(`${e}`,{headers:this.headers,params:s})}DelegateTask(t){return this.http.post(n.N.apiURL+"Tasks/DelegateTask",t,{headers:this.headers})}GetTaskParticipants(t){const e=n.N.apiURL+"Processes/GetUsersInDispash";let s=new i.LE;return s=s.set("folderId",t),this.http.get(`${e}`,{headers:this.headers,params:s})}FindTaskDocId(t){const e=n.N.apiURL+"Tasks/FindExpedienteDocId";let s=new i.LE;return s=s.set("serialNumber",t),this.http.get(`${e}`,{headers:this.headers,params:s})}GetMDOficialTasks(){return this.http.get(n.N.apiURL+"tasks/GetMDOficialTasks",{headers:this.headers})}GetMDPersonalTasks(){return this.http.get(n.N.apiURL+"tasks/GetMDPersonalTasks",{headers:this.headers})}GetToApprovedEvents(t,e){const s=n.N.apiURL+"Tasks/ListByCategory";let a=new i.LE;return a=a.set("categoryname",t),a=a.set("onlyCount",e),this.http.get(`${s}`,{headers:this.headers,params:a})}PostTaskAction(t){return this.http.post(n.N.apiURL+"Tasks/Complete",t,{headers:this.headers})}CompleteTask(t){return this.http.post(n.N.apiURL+"Tasks/CompleteTask",t,{headers:this.headers})}CompleteParecerPrTask(t){return this.http.post(n.N.apiURL+"Tasks/CompleteTaskParecerPr",t,{headers:this.headers})}UpdateTaskStatus(t){const e=n.N.apiURL+"Tasks/UpdateTaskStatus";let s=new i.LE;return s=s.set("FolderId",t),this.http.post(`${e}`,"",{headers:this.headers,params:s})}GetDocumentUrl(t,e){const s=n.N.apiURL+"ecm/document/viewrequestshort";let a=new i.LE;return a=a.set("DocId",t),a=a.set("applicationid",e),this.http.get(`${s}`,{headers:this.headers,params:a})}postDespatcho(t){return this.http.post(n.N.apiURL+"Processes/CreateDispatch",t,{headers:this.headers})}postDespatchoPr(t){return this.http.post(n.N.apiURL+"Processes/CreateDispatchPR",t,{headers:this.headers})}postParecer(t){return this.http.post(n.N.apiURL+"Processes/CreateParecer",t,{headers:this.headers})}postParecerPr(t){return this.http.post(n.N.apiURL+"Processes/CreateParecerPR",t,{headers:this.headers})}postDeferimento(t){return this.http.post(n.N.apiURL+"Processes/CreateDeferimento",t,{headers:this.headers})}GetActionsList(){const t=n.N.apiURL+"presidentialActions";let e={headers:this.headers};return console.log(e),this.http.get(`${t}`,e)}GetSubjectType(){return this.http.get(n.N.apiURL+"ecm/SubjectType",{headers:this.headers})}GetDocumentDetails(t,e){const s=n.N.apiURL+"search/documents";let a=new i.LE;return a=a.set("docId",t),a=a.set("applicationId",e),this.http.get(`${s}`,{headers:this.headers,params:a})}documentSetUpMeeting(t){let e=n.N.apiURL+"Processes/CallMeeting";return e=e.replace("/V4/","/V5/"),this.http.post(`${e}`,t,{headers:this.headers})}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(i.eN),a.LFG(r.e))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},17352:function(t,e,s){"use strict";s.d(e,{Y:function(){return L}});var i=s(64762),n=s(37716),a=s(44940),r=s(35957),o=s(30407),c=s(38583);function h(t,e){1&t&&n._UZ(0,"ion-progress-bar",12)}function p(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"ion-item",14),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw().selectContact(e)}),n.TgZ(1,"div",15),n._UZ(2,"ion-icon",16),n.qZA(),n.TgZ(3,"ion-label"),n.TgZ(4,"h3"),n._uU(5),n.qZA(),n.TgZ(6,"p"),n._uU(7),n.qZA(),n.qZA(),n.TgZ(8,"div"),n._UZ(9,"ion-icon",17),n.qZA(),n.qZA()}if(2&t){const t=n.oxw().$implicit;n.xp6(5),n.Oqu(t.Name),n.xp6(2),n.Oqu(t.EmailAddress)}}function d(t,e){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,p,10,2,"ion-item",13),n.qZA()),2&t){const t=e.$implicit,s=n.oxw();n.xp6(1),n.Q6J("ngIf",s.filterSearchList(t))}}function l(t,e){1&t&&(n.TgZ(0,"div",21),n._uU(1," Destinat\xe1rio"),n.qZA())}function u(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"ion-item",22),n.TgZ(1,"div",15),n._UZ(2,"ion-icon",16),n.qZA(),n.TgZ(3,"ion-label"),n.TgZ(4,"h3"),n._uU(5),n.qZA(),n.TgZ(6,"p"),n._uU(7),n.qZA(),n.qZA(),n.TgZ(8,"div",14),n.NdJ("click",function(){const e=n.CHM(t).$implicit;return n.oxw(2).remove(e)}),n._UZ(9,"ion-icon",23),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit;n.xp6(5),n.Oqu(t.Name),n.xp6(2),n.Oqu(t.EmailAddress)}}function g(t,e){if(1&t&&(n.TgZ(0,"ion-list",18),n.YNc(1,l,2,0,"div",19),n.TgZ(2,"ion-item-sliding",8),n.YNc(3,u,10,2,"ion-item",20),n.qZA(),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",t.LtaskParticipants.length>=1||t.LtaskParticipantsCc.length>=1),n.xp6(2),n.Q6J("ngForOf",t.LtaskParticipants)}}function m(t,e){1&t&&(n.TgZ(0,"div",21),n._uU(1," Destinat\xe1rio"),n.qZA())}function f(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"ion-item",22),n.TgZ(1,"div",15),n._UZ(2,"ion-icon",16),n.qZA(),n.TgZ(3,"ion-label"),n.TgZ(4,"h3"),n._uU(5),n.qZA(),n.TgZ(6,"p"),n._uU(7),n.qZA(),n.qZA(),n.TgZ(8,"div",14),n.NdJ("click",function(){const e=n.CHM(t).$implicit;return n.oxw(2).remove(e)}),n._UZ(9,"ion-icon",23),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit;n.xp6(5),n.Oqu(t.Name),n.xp6(2),n.Oqu(t.EmailAddress)}}function C(t,e){if(1&t&&(n.TgZ(0,"ion-list",18),n.YNc(1,m,2,0,"div",19),n.TgZ(2,"ion-item-sliding",8),n.YNc(3,f,10,2,"ion-item",20),n.qZA(),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",t.LtaskParticipants.length>=1||t.LtaskParticipantsCc.length>=1),n.xp6(2),n.Q6J("ngForOf",t.LtaskParticipantsCc)}}function Z(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"ion-footer",24),n.TgZ(1,"ion-toolbar",25),n.TgZ(2,"ion-buttons",26),n.TgZ(3,"ion-button",27),n.NdJ("click",function(){return n.CHM(t),n.oxw().close()}),n.TgZ(4,"ion-label"),n._uU(5,"Cancelar"),n.qZA(),n._UZ(6,"ion-icon",28),n.qZA(),n.qZA(),n.TgZ(7,"ion-buttons",29),n.TgZ(8,"ion-button",30),n.NdJ("click",function(){return n.CHM(t),n.oxw().save()}),n.TgZ(9,"ion-label"),n._uU(10,"Gravar"),n.qZA(),n._UZ(11,"ion-icon",31),n.qZA(),n.qZA(),n.qZA(),n.qZA()}}let L=(()=>{class t{constructor(t,e){this.modalCtrl=t,this.contactsService=e,this.showLoader=!1,this.closeComponent=new n.vpe,this.setIntervenient=new n.vpe,this.setIntervenientCC=new n.vpe,this.dynamicSetIntervenient=new n.vpe,this.taskParticipants=[],this.taskParticipantsCc=[],this.LtaskParticipants=[],this.LtaskParticipantsCc=[],this.currentPath=window.location.pathname,this.LtaskParticipants=(0,a.removeDuplicate)(this.taskParticipants),this.LtaskParticipantsCc=(0,a.removeDuplicate)(this.taskParticipantsCc)}ngOnChanges(){this.LtaskParticipants=(0,a.removeDuplicate)(this.taskParticipants),this.LtaskParticipantsCc=(0,a.removeDuplicate)(this.taskParticipantsCc)}ngOnInit(){this.fetchContacts(""),null!=this.LtaskParticipants&&null!=this.LtaskParticipants||(this.LtaskParticipants=[]),null!=this.LtaskParticipantsCc&&null!=this.LtaskParticipantsCc||(this.LtaskParticipantsCc=[])}save(){this.setIntervenient.emit(this.LtaskParticipants),this.setIntervenientCC.emit(this.LtaskParticipantsCc),this.closeComponent.emit()}setContactWithClose(){"/home/gabinete-digital"==this.currentPath&&(console.log("set!!!!! "),this.setIntervenient.emit(this.LtaskParticipants),this.setIntervenientCC.emit(this.LtaskParticipantsCc)),this.dynamicSetIntervenient.emit({taskParticipants:this.LtaskParticipants,taskParticipantsCc:this.LtaskParticipantsCc})}selectContact(t){return(0,i.mG)(this,void 0,void 0,function*(){"intervenient"==this.adding?(t.IsRequired=!0,this.LtaskParticipants.push(t)):"CC"==this.adding&&(t.IsRequired=!1,this.LtaskParticipantsCc.push(t)),this.setContactWithClose()})}close(){this.closeComponent.emit()}onChange(t){this.fetchContacts(t.detail.value)}filterSearchList(t){return null==this.LtaskParticipants.concat(this.LtaskParticipantsCc).find((e,s)=>{if(e.Name.toLowerCase()==t.Name.toLowerCase()&&e.EmailAddress.toLowerCase()==t.EmailAddress.toLowerCase())return s=s,e})&&null==this.LtaskParticipantsCc.find((e,s)=>{if(e.Name.toLowerCase()==t.Name&&e.EmailAddress.toLowerCase()==t.EmailAddress.toLowerCase())return s=s,e})}remove(t){"intervenient"==this.adding?this.LtaskParticipants=this.LtaskParticipants.filter((e,s)=>e.Name.toLocaleLowerCase()!=t.Name.toLocaleLowerCase()&&e.EmailAddress.toLocaleLowerCase()!=t.EmailAddress.toLocaleLowerCase()&&e):"CC"==this.adding&&(this.LtaskParticipantsCc=this.LtaskParticipantsCc.filter((e,s)=>e.Name.toLocaleLowerCase()!=t.Name.toLocaleLowerCase()&&e.EmailAddress.toLocaleLowerCase()!=t.EmailAddress.toLocaleLowerCase()&&e)),this.setContactWithClose()}fetchContacts(t){return(0,i.mG)(this,void 0,void 0,function*(){this.showLoader=!0,this.contactsService.getContacts(t).subscribe(t=>{null!=this.eventPersons&&this.eventPersons.forEach(e=>{const s=t.findIndex(t=>t.EmailAddress.toLowerCase()==e.EmailAddress.toLowerCase());t.splice(s,1)}),this.contacts=t,this.showLoader=!1})})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.IN),n.Y36(o.P))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-attendee-modal"]],inputs:{taskParticipants:"taskParticipants",taskParticipantsCc:"taskParticipantsCc",footer:"footer",adding:"adding"},outputs:{closeComponent:"closeComponent",setIntervenient:"setIntervenient",setIntervenientCC:"setIntervenientCC",dynamicSetIntervenient:"dynamicSetIntervenient"},features:[n.TTD],decls:15,vars:5,consts:[[1,"ion-no-border","px-20"],[1,"px-10"],[1,"pa-0"],["placeholder","Insira email para adicionar destinat\xe1rio",1,"attendee-search-bar",3,"ionChange"],["type","indeterminate",4,"ngIf"],[1,"height-100","overflow-y-auto"],[1,"d-flex","flex-column","height-100"],["lines","none",1,"flex-grow-1","overflow-y-auto","height-100"],[1,"px-20"],[4,"ngFor","ngForOf"],["lines","none","class","flex-grow-1 overflow-y-auto height-100 pb-0",4,"ngIf"],["class","ion-no-border",4,"ngIf"],["type","indeterminate"],["class","cursor-pointer",3,"click",4,"ngIf"],[1,"cursor-pointer",3,"click"],[1,"pr-10"],["src","assets/images/icons-userprofile.svg",1,"font-35"],["src","assets/images/icons-add-25.svg",1,"font-35"],["lines","none",1,"flex-grow-1","overflow-y-auto","height-100","pb-0"],["class","px-20 font-15 pt-20","style","border-top:1px solid #ebebeb;font-weight: 500;",4,"ngIf"],["class","d-flex",4,"ngFor","ngForOf"],[1,"px-20","font-15","pt-20",2,"border-top","1px solid #ebebeb","font-weight","500"],[1,"d-flex"],["src","assets/images/icons-delete-25.svg",1,"font-35"],[1,"ion-no-border"],[1,"width-100","d-flex","justify-space-between","px-20"],["slot","start"],["fill","clear","color","#061b52",1,"btn-cancel",3,"click"],["name","close","slot","start"],["slot","end"],["fill","clear","color","#fff",1,"btn-ok",3,"click"],["name","checkmark","slot","start"]],template:function(t,e){1&t&&(n.TgZ(0,"ion-header",0),n.TgZ(1,"ion-toolbar",1),n.TgZ(2,"ion-title",2),n._uU(3,"Adicionar intervenientes"),n.qZA(),n.qZA(),n.TgZ(4,"ion-searchbar",3),n.NdJ("ionChange",function(t){return e.onChange(t)}),n.qZA(),n.YNc(5,h,1,0,"ion-progress-bar",4),n.qZA(),n.TgZ(6,"ion-content",5),n.TgZ(7,"ion-item-group",6),n.TgZ(8,"ion-list",7),n.TgZ(9,"ion-item-sliding",8),n.YNc(10,d,2,1,"div",9),n.qZA(),n.qZA(),n._UZ(11,"hr"),n.YNc(12,g,4,2,"ion-list",10),n.YNc(13,C,4,2,"ion-list",10),n.qZA(),n.qZA(),n.YNc(14,Z,12,0,"ion-footer",11)),2&t&&(n.xp6(5),n.Q6J("ngIf",e.showLoader),n.xp6(5),n.Q6J("ngForOf",e.contacts),n.xp6(2),n.Q6J("ngIf",e.LtaskParticipants.length>=1&&"intervenient"==e.adding),n.xp6(1),n.Q6J("ngIf",e.LtaskParticipantsCc.length>=1&&"CC"==e.adding),n.xp6(1),n.Q6J("ngIf",e.footer))},directives:[r.Gu,r.sr,r.wd,r.VI,r.j9,c.O5,r.W2,r.Ub,r.q_,r.td,c.sg,r.X7,r.Ie,r.gu,r.Q$,r.fr,r.Sm,r.YG],styles:["ion-searchbar[_ngcontent-%COMP%]{--border-radius:20px}.item-inner[_ngcontent-%COMP%]{border-style:unset!important}"]}),t})()},44940:function(t){t.exports={removeDuplicate:function(t){return[...new Set(t.map(JSON.stringify))].map(JSON.parse)}}}}]);