mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[3437],{73437:function(t,e,n){"use strict";n.r(e),n.d(e,{ExpedientePageModule:function(){return M}});var o=n(38583),i=n(3679),a=n(35957),r=n(39895),d=n(64762),s=n(887),l=n(37716),c=n(28621),g=n(25970),p=n(84465),f=n(962);function h(t,e){1&t&&l._UZ(0,"ion-progress-bar",17)}function u(t,e){if(1&t&&(l.TgZ(0,"label"),l._uU(1),l.qZA()),2&t){const t=l.oxw().$implicit;l.xp6(1),l.Oqu(t.DocumentsQty)}}function m(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",18),l.NdJ("click",function(){const e=l.CHM(t).$implicit;return l.oxw().goToExpediente(e.SerialNumber)}),l.TgZ(1,"div",19),l.TgZ(2,"div",20),l.TgZ(3,"div",21),l.TgZ(4,"ion-label"),l._uU(5),l.qZA(),l.qZA(),l.TgZ(6,"div",22),l._UZ(7,"ion-icon",23),l.YNc(8,u,2,1,"label",16),l.qZA(),l.qZA(),l.TgZ(9,"div",24),l.TgZ(10,"div",25),l.TgZ(11,"ion-label"),l._uU(12),l.qZA(),l.qZA(),l.qZA(),l.TgZ(13,"div",26),l.TgZ(14,"div",27),l.TgZ(15,"span",28),l._uU(16),l.qZA(),l.qZA(),l.TgZ(17,"div",29),l.TgZ(18,"ion-label"),l._uU(19),l.ALo(20,"date"),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit;l.xp6(5),l.Oqu(t.Folio),l.xp6(3),l.Q6J("ngIf",0!=t.DocumentsQty),l.xp6(4),l.Oqu(t.Senders),l.xp6(4),l.Oqu(t.activityInstanceName),l.xp6(3),l.Oqu(l.xi3(20,5,t.CreateDate,"dd-MM-yyyy HH:mm"))}}function x(t,e){1&t&&(l.TgZ(0,"div",30),l.TgZ(1,"span"),l._uU(2,"Lista vazia"),l.qZA(),l.qZA())}function Z(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"ion-list"),l.TgZ(2,"ion-item"),l.TgZ(3,"ion-thumbnail",31),l._UZ(4,"ion-skeleton-text",32),l.qZA(),l.TgZ(5,"ion-label"),l.TgZ(6,"h3"),l._UZ(7,"ion-skeleton-text",33),l.qZA(),l.TgZ(8,"p"),l._UZ(9,"ion-skeleton-text",34),l.qZA(),l.TgZ(10,"p"),l._UZ(11,"ion-skeleton-text",35),l.qZA(),l.qZA(),l.qZA(),l.TgZ(12,"ion-item"),l.TgZ(13,"ion-thumbnail",31),l._UZ(14,"ion-skeleton-text",32),l.qZA(),l.TgZ(15,"ion-label"),l.TgZ(16,"h3"),l._UZ(17,"ion-skeleton-text",33),l.qZA(),l.TgZ(18,"p"),l._UZ(19,"ion-skeleton-text",34),l.qZA(),l.TgZ(20,"p"),l._UZ(21,"ion-skeleton-text",35),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA())}const _=[{path:"",component:(()=>{class t{constructor(t,e,n,o,i){this.processes=t,this.modalController=e,this.alertService=n,this.router=o,this.toastService=i,this.skeletonLoader=!0,this.taskslist=[],this.expedienteStorage=s.t}ngOnInit(){const t=window.location,e=t.pathname+t.search;this.LoadList(),this.router.events.forEach(t=>{t instanceof r.OD&&t.url.startsWith(e)&&(window.location.pathname.split("/").length>=4&&window.location.pathname.startsWith("/home/gabinete-digital")?this.refreshing():this.LoadList())})}LoadList(){return(0,d.mG)(this,void 0,void 0,function*(){this.skeletonLoader=!0;try{const t=yield this.processes.GetTasksList("Expediente",!1).toPromise();this.taskslist=new Array,t.reverse().filter(t=>"Active"==t.workflowInstanceDataFields.Status).forEach(t=>{let e=new Date(t.taskStartDate);e.setMonth(e.getMonth()+1);let n=e.getFullYear()+"-"+e.getMonth()+"-"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds();this.taskslist.push({SerialNumber:t.serialNumber,Folio:t.workflowInstanceDataFields.Subject,Senders:t.workflowInstanceDataFields.Sender,CreateDate:n,DocumentURL:t.workflowInstanceDataFields.ViewerRequest,Remetente:t.workflowInstanceDataFields.Remetente,DocumentsQty:t.totalDocuments,WorkflowName:t.workflowDisplayName,activityInstanceName:t.activityInstanceName,Status:t.workflowInstanceDataFields.Status})}),console.log(this.taskslist),this.expedienteStorage.reset(this.taskslist),this.skeletonLoader=!1}catch(t){this.toastService.badRequest("Processo n\xe3o encontrado"),this.goBack()}})}refreshing(){return(0,d.mG)(this,void 0,void 0,function*(){setTimeout(()=>{this.LoadList()},1e3)})}doRefresh(t){this.LoadList(),setTimeout(()=>{t.target.complete()},1e3)}goBack(){this.router.navigate(["/home/gabinete-digital"])}goToExpediente(t){this.router.navigate(["/home/gabinete-digital/expediente",t,"gabinete-digital"])}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(c.$),l.Y36(a.IN),l.Y36(g.c),l.Y36(r.F0),l.Y36(p.k))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-expediente"]],decls:23,vars:4,consts:[[1,"ion-no-border"],[1,"ion-no-border","header-2"],[1,"header-content"],[1,"header-icon-left"],[1,"btn-no-color","cursor-pointer",3,"click"],["src","assets/images/icons-arrow-arrow-left.svg"],[1,"header-title"],[1,"btn-refresh"],[1,"btn-no-color",3,"click"],["slot","end","name","reload-circle",1,"title-icon"],["name","refresher","slot","fixed",3,"ionRefresh"],["type","indeterminate",4,"ngIf"],[1,"main-content","d-flex","height-100"],[1,"content","d-flex","flex-column","width-100","overflow-y-auto","px-20"],["class","expediente ion-no-padding ion-no-margin cursor-pointer",3,"click",4,"ngFor","ngForOf"],["class","empty-list d-flex height-100 align-center justify-content-center",4,"ngIf"],[4,"ngIf"],["type","indeterminate"],[1,"expediente","ion-no-padding","ion-no-margin","cursor-pointer",3,"click"],[1,"item","width-100"],[1,"exp-top-detail"],[1,"subject"],[1,"exp-icon"],["src","assets/images/icons-expediente-attachment.svg"],[1,"exp-bottom-detail"],[1,"exp-remetente"],[1,"exp-middle-detail"],[1,"exp-workflow"],[1,"label"],[1,"exp-date"],[1,"empty-list","d-flex","height-100","align-center","justify-content-center"],["slot","end"],["animated",""],["animated","",2,"width","50%"],["animated","",2,"width","80%"],["animated","",2,"width","60%"]],template:function(t,e){1&t&&(l.TgZ(0,"ion-header",0),l._UZ(1,"app-header"),l.qZA(),l.TgZ(2,"ion-header",1),l.TgZ(3,"div",2),l.TgZ(4,"div",3),l.TgZ(5,"button",4),l.NdJ("click",function(){return e.goBack()}),l._UZ(6,"ion-icon",5),l.qZA(),l.qZA(),l.TgZ(7,"div",6),l.TgZ(8,"label"),l._uU(9,"Expediente"),l.qZA(),l.qZA(),l.TgZ(10,"div",7),l.TgZ(11,"button",8),l.NdJ("click",function(t){return e.doRefresh(t)}),l._UZ(12,"ion-icon",9),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.TgZ(13,"ion-content"),l.TgZ(14,"ion-refresher",10),l.NdJ("ionRefresh",function(t){return e.doRefresh(t)}),l.YNc(15,h,1,0,"ion-progress-bar",11),l._UZ(16,"ion-refresher-content"),l.qZA(),l.TgZ(17,"div",12),l.TgZ(18,"div",13),l.TgZ(19,"ion-list"),l.YNc(20,m,21,8,"div",14),l.qZA(),l.YNc(21,x,3,0,"div",15),l.YNc(22,Z,22,0,"div",16),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.xp6(15),l.Q6J("ngIf",e.skeletonLoader),l.xp6(5),l.Q6J("ngForOf",e.expedienteStorage.list),l.xp6(1),l.Q6J("ngIf",!e.skeletonLoader&&0==e.expedienteStorage.list.length&&0==e.expedienteStorage.list.length),l.xp6(1),l.Q6J("ngIf",e.skeletonLoader&&0==e.expedienteStorage.list.length))},directives:[a.Gu,f.E,a.gu,a.W2,a.nJ,o.O5,a.Wo,a.q_,o.sg,a.X7,a.Q$,a.Ie,a.Bs,a.CK],pipes:[o.uU],styles:[".main-content[_ngcontent-%COMP%]{background-color:#fff!important;border-top-left-radius:25px;border-top-right-radius:25px;padding-top:5px!important}.header-2[_ngcontent-%COMP%]{border-top-right-radius:24px;border-top-left-radius:24px}.header-2[_ngcontent-%COMP%], ion-content[_ngcontent-%COMP%]{padding:30px 20px 0!important;background-color:#fff}.header-content[_ngcontent-%COMP%]{margin:0!important;overflow:auto}.header-content[_ngcontent-%COMP%] .header-icon-left[_ngcontent-%COMP%]{width:36px;font-size:33px;color:#42b9fe;float:left}.header-content[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{padding-top:2.5px;font-family:Roboto;font-size:25px;color:#000;float:left}.header-content[_ngcontent-%COMP%] .btn-refresh[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;float:right}ion-item[_ngcontent-%COMP%]{margin:0!important;padding:0!important;--background:none}.item[_ngcontent-%COMP%]{background-color:var(--white);margin:0 auto;overflow:auto}.div-content-expediente[_ngcontent-%COMP%]{width:100%;float:left;border-left:3px solid #dae3f3;padding:5px 5px 15px;margin:10px 0;background:#dae3f3;border-radius:20px}.div-content-pendentes[_ngcontent-%COMP%]{width:100%;float:left;border-left:3px solid #d9d9d9;padding:5px}.div-content-expediente[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .div-content-pendentes[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;font-size:14pt;width:100%}.div-icon[_ngcontent-%COMP%]{width:10%;font-size:20px;float:left;color:grey}.div-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{display:block;margin:0 auto}.div-content-expediente[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .div-content-pendentes[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14pt;color:#5e5c5c;padding:0;margin:0}.span-left[_ngcontent-%COMP%]{float:left;font-size:12px;padding-left:18px}.span-right[_ngcontent-%COMP%]{text-align:right;float:right;font-size:12px;padding-right:18px}.expediente[_ngcontent-%COMP%]{border-radius:15px;box-shadow:0 0 10px 0 rgba(0,0,0,.07);border:1px solid #e9e9e9!important;background-color:var(--white);margin-bottom:10px!important;padding:15px}.exp-list-item[_ngcontent-%COMP%]{overflow:auto;margin:10px auto}.exp-top-detail[_ngcontent-%COMP%]{width:100%;float:left;font-family:Roboto;font-size:12pt;font-weight:700;color:#0d89d1;padding-left:3px}.exp-top-detail[_ngcontent-%COMP%] .subject[_ngcontent-%COMP%]{width:84%;float:left}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;float:right;margin:0!important;padding:0!important}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:12pt;color:#42b9fe;float:left}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:10pt}.exp-bottom-detail[_ngcontent-%COMP%], .exp-middle-detail[_ngcontent-%COMP%]{margin-bottom:5px}.exp-middle-detail[_ngcontent-%COMP%]{font-size:12pt;width:100%;overflow:auto}.exp-middle-detail[_ngcontent-%COMP%] .exp-workflow[_ngcontent-%COMP%]{float:left;margin:0!important}.exp-middle-detail[_ngcontent-%COMP%] .exp-workflow[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:15px;background:#ffb703;float:right;padding:2.5px 13.5px;color:#fff}.exp-middle-detail[_ngcontent-%COMP%] .exp-date[_ngcontent-%COMP%]{width:auto;font-family:Roboto;font-size:10pt;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#797979;float:right}.exp-bottom-detail[_ngcontent-%COMP%]{font-size:8pt;width:100%;overflow:auto;padding-left:3px}.exp-bottom-detail[_ngcontent-%COMP%] .exp-remetente[_ngcontent-%COMP%]{font-family:Roboto;font-weight:400;color:#000;float:left}.div-top-header[_ngcontent-%COMP%]{width:400px;margin:6px auto;background-color:#0782c9;overflow:auto}.div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-logo[_ngcontent-%COMP%]{background:transparent;width:150px;margin:2.5px 0 2.5px 71px;float:left}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}"]}),t})()},{path:"expediente-detail",loadChildren:()=>n.e(8592).then(n.bind(n,3961)).then(t=>t.ExpedienteDetailPageModule)},{path:"expedient-task-modal",loadChildren:()=>n.e(8592).then(n.bind(n,16)).then(t=>t.ExpedientTaskModalPageModule)},{path:"book-meeting-modal",loadChildren:()=>Promise.all([n.e(8592),n.e(9799)]).then(n.bind(n,59799)).then(t=>t.BookMeetingModalPageModule)}];let w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[r.Bz.forChild(_)],r.Bz]}),t})();var b=n(6527);let M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[o.ez,i.u5,a.Pc,w,b.a]]}),t})()},887:function(t,e,n){"use strict";n.d(e,{t:function(){return r}});var o=n(66096),i=n(2527),a=n(37716);const r=new((()=>{class t{constructor(){this._list=[],this._count=0,this.keyName=(0,i.SHA1)(this.constructor.name+"ExpedienteStorage/forAll").toString(),setTimeout(()=>{let t=o.I.get(this.keyName,[]);this._list=t.list||[],this._count=t.count||0},10)}get list(){return this._list}get count(){return this._count}set count(t){this._count=t,this.save()}reset(t){this._list=t,this.count=this._list.length,this.save()}save(){setTimeout(()=>{o.I.set(this.keyName,{list:this._list,count:this._count})},10)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})())}}]); |