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
!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;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[8142],{18142:function(n,o,i){"use strict";i.r(o),i.d(o,{ExpedientesPrPageModule:function(){return y}});var a=i(38583),r=i(3679),l=i(35957),c=i(39895),s=i(64762),d=i(37716),g=i(87732),p=i(11055),f=i(42764),u=i(28621),h=i(25970),m=i(37556),x=i(962),Z=i(23890);function _(t,e){1&t&&d._UZ(0,"ion-progress-bar",15)}function w(t,e){1&t&&d._UZ(0,"ion-progress-bar",15)}function v(t,e){if(1&t&&(d.TgZ(0,"label"),d._uU(1),d.qZA()),2&t){var n=d.oxw().$implicit;d.xp6(1),d.Oqu(n.DocumentsQty)}}function C(t,e){if(1&t){var n=d.EpF();d.TgZ(0,"div",16),d.NdJ("click",function(){var t=d.CHM(n).$implicit;return d.oxw().goToExpediente(t.SerialNumber)}),d.TgZ(1,"div",17),d.TgZ(2,"div",18),d.TgZ(3,"div",19),d.TgZ(4,"ion-label"),d._uU(5),d.qZA(),d.qZA(),d.TgZ(6,"div",20),d._UZ(7,"ion-icon",21),d.YNc(8,v,2,1,"label",14),d.qZA(),d.qZA(),d.TgZ(9,"div",22),d.TgZ(10,"div",23),d.TgZ(11,"ion-label"),d._uU(12),d.qZA(),d.qZA(),d.qZA(),d.TgZ(13,"div",24),d.TgZ(14,"div",25),d.TgZ(15,"span",26),d._uU(16),d.qZA(),d.qZA(),d.TgZ(17,"div",27),d.TgZ(18,"ion-label"),d._uU(19),d.ALo(20,"date"),d.qZA(),d.qZA(),d.qZA(),d.qZA(),d.qZA()}if(2&t){var o=e.$implicit;d.xp6(5),d.Oqu(o.Folio),d.xp6(3),d.Q6J("ngIf",0!=o.DocumentsQty),d.xp6(4),d.Oqu(o.Senders),d.xp6(4),d.Oqu(o.activityInstanceName),d.xp6(3),d.Oqu(d.xi3(20,5,o.CreateDate,"dd-MM-yyyy HH:mm"))}}function b(t,e){1&t&&(d.TgZ(0,"div",28),d.TgZ(1,"span"),d._uU(2,"Lista vazia"),d.qZA(),d.qZA())}function O(t,e){1&t&&(d.TgZ(0,"div"),d.TgZ(1,"ion-list"),d.TgZ(2,"ion-item"),d.TgZ(3,"ion-thumbnail",29),d._UZ(4,"ion-skeleton-text",30),d.qZA(),d.TgZ(5,"ion-label"),d.TgZ(6,"h3"),d._UZ(7,"ion-skeleton-text",31),d.qZA(),d.TgZ(8,"p"),d._UZ(9,"ion-skeleton-text",32),d.qZA(),d.TgZ(10,"p"),d._UZ(11,"ion-skeleton-text",33),d.qZA(),d.qZA(),d.qZA(),d.TgZ(12,"ion-item"),d.TgZ(13,"ion-thumbnail",29),d._UZ(14,"ion-skeleton-text",30),d.qZA(),d.TgZ(15,"ion-label"),d.TgZ(16,"h3"),d._UZ(17,"ion-skeleton-text",31),d.qZA(),d.TgZ(18,"p"),d._UZ(19,"ion-skeleton-text",32),d.qZA(),d.TgZ(20,"p"),d._UZ(21,"ion-skeleton-text",33),d.qZA(),d.qZA(),d.qZA(),d.qZA(),d.qZA())}var M,P,k=[{path:"",component:(M=function(){function n(e,o,i,a,r,l){t(this,n),this.processes=e,this.modalController=o,this.alertService=i,this.authService=a,this.router=r,this.location=l,this.taskslist=[],this.openExpedientDetail=new d.vpe,this.skeletonLoader=!0,this.expedienteprstore=f.s,this.loggeduser=a.ValidatedUser}var o,i,a;return o=n,(i=[{key:"ngOnInit",value:function(){var t=this,e=window.location,n=e.pathname+e.search;this.LoadList(),this.router.events.forEach(function(e){e instanceof c.OD&&e.url.startsWith(n)&&(window.location.pathname.split("/").length>=4&&window.location.pathname.startsWith("/home/gabinete-digital")?t.refreshing():t.LoadList())})}},{key:"LoadList",value:function(){var t=this;this.skeletonLoader=!0,this.processes.GetTasksList("Expediente",!1).subscribe(function(e){console.log(e),t.skeletonLoader=!1,t.showLoader=!1,t.taskslist=new Array,e.reverse().filter(function(t){return"Active"==t.workflowInstanceDataFields.Status}).forEach(function(e){var n=new Date(e.taskStartDate);n.setMonth(n.getMonth()+1);var o=n.getFullYear()+"-"+n.getMonth()+"-"+n.getDate()+" "+n.getHours()+":"+n.getMinutes()+":"+n.getSeconds();t.taskslist.push({SerialNumber:e.serialNumber,Folio:e.workflowInstanceDataFields.Subject,Senders:e.workflowInstanceDataFields.Sender,CreateDate:o,DocumentURL:e.workflowInstanceDataFields.ViewerRequest,Remetente:e.workflowInstanceDataFields.Remetente,DocumentsQty:e.totalDocuments,WorkflowName:e.workflowDisplayName,activityInstanceName:e.activityInstanceName,Status:e.workflowInstanceDataFields.Status})}),console.log(t.taskslist),t.expedienteprstore.reset(t.taskslist),t.skeletonLoader=!1})}},{key:"refreshing",value:function(){var t=this;setTimeout(function(){t.LoadList()},1e3)}},{key:"doRefresh",value:function(t){this.LoadList(),setTimeout(function(){t.target.complete()},2e3)}},{key:"goToExpediente",value:function(t){this.router.navigate(["/home/gabinete-digital/expedientes-pr",t,"gabinete-digital"])}},{key:"viewExpedientDetail",value:function(t){return(0,s.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 e.next=2,this.modalController.create({component:p.C,componentProps:{enterAnimation:"",serialNumber:t,profile:this.loggeduser.Profile},cssClass:"modal modal-desktop"});case 2:return n=e.sent,e.next=5,n.present();case 5:n.onDidDismiss().then(function(t){console.log("refresh list"),o.LoadList()});case 6:case"end":return e.stop()}},e,this)}))}},{key:"goBack",value:function(){this.location.back()}}])&&e(o.prototype,i),a&&e(o,a),n}(),M.\u0275fac=function(t){return new(t||M)(d.Y36(u.$),d.Y36(l.IN),d.Y36(h.c),d.Y36(m.e),d.Y36(c.F0),d.Y36(a.Ye))},M.\u0275cmp=d.Xpm({type:M,selectors:[["app-expedientes-pr"]],viewQuery:function(t,e){var n;1&t&&d.Gf(g.eV,5),2&t&&d.iGM(n=d.CRH())&&(e.myCal=n.first)},outputs:{openExpedientDetail:"openExpedientDetail"},decls:22,vars:5,consts:[[1,"ion-no-border"],[1,"ion-no-border","header-2"],[3,"click"],[1,"title"],[1,"thetitle"],[1,"theicon","btn-refresh"],[1,"btn-no-color",3,"click"],["slot","end","name","reload-circle",1,"title-icon"],[1,"main-content","width-100","overflow-y-auto","height-100"],["name","refresher","slot","fixed",3,"ionRefresh"],["type","indeterminate",4,"ngIf"],[1,"width-100"],["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&&(d.TgZ(0,"ion-header",0),d._UZ(1,"app-header"),d.qZA(),d.TgZ(2,"ion-header",1),d.TgZ(3,"app-btn-modal-dismiss",2),d.NdJ("click",function(){return e.goBack()}),d.qZA(),d.TgZ(4,"div",3),d.TgZ(5,"div",4),d.TgZ(6,"ion-label"),d._uU(7,"Expediente"),d.qZA(),d.qZA(),d.TgZ(8,"div",5),d.TgZ(9,"button",6),d.NdJ("click",function(){return e.refreshing()}),d._UZ(10,"ion-icon",7),d.qZA(),d.qZA(),d.qZA(),d.qZA(),d.TgZ(11,"ion-content"),d.TgZ(12,"div",8),d.TgZ(13,"ion-refresher",9),d.NdJ("ionRefresh",function(t){return e.doRefresh(t)}),d.YNc(14,_,1,0,"ion-progress-bar",10),d._UZ(15,"ion-refresher-content"),d.qZA(),d.TgZ(16,"div",11),d.YNc(17,w,1,0,"ion-progress-bar",10),d.TgZ(18,"ion-list"),d.YNc(19,C,21,8,"div",12),d.qZA(),d.qZA(),d.YNc(20,b,3,0,"div",13),d.YNc(21,O,22,0,"div",14),d.qZA(),d.qZA()),2&t&&(d.xp6(14),d.Q6J("ngIf",e.showLoader),d.xp6(3),d.Q6J("ngIf",e.skeletonLoader),d.xp6(2),d.Q6J("ngForOf",e.expedienteprstore.list),d.xp6(1),d.Q6J("ngIf",!e.skeletonLoader&&0==e.expedienteprstore.list.length&&0==e.expedienteprstore.list.length),d.xp6(1),d.Q6J("ngIf",e.skeletonLoader&&0==e.expedienteprstore.list.length))},directives:[l.Gu,x.E,Z.E,l.Q$,l.gu,l.W2,l.nJ,a.O5,l.Wo,l.q_,a.sg,l.X7,l.Ie,l.Bs,l.CK],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;background-color:#fff}.main-content[_ngcontent-%COMP%]{padding-top:0!important}.title[_ngcontent-%COMP%]{font-family:Roboto;font-size:25px;color:#000;overflow:auto}.title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{float:left}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%], .title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%]{float:right}.item-list-small[_ngcontent-%COMP%]{font-size:11px;overflow:auto}.ion-item-class[_ngcontent-%COMP%]{padding:0}.label-text[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}ion-item[_ngcontent-%COMP%]{--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}"]}),M)},{path:"expediente-pr",loadChildren:function(){return i.e(2344).then(i.bind(i,42344)).then(function(t){return t.ExpedientePrPageModule})}}],q=function(){var e=function e(){t(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=d.oAB({type:e}),e.\u0275inj=d.cJS({imports:[[c.Bz.forChild(k)],c.Bz]}),e}(),A=i(6527),T=i(4502),y=((P=function e(){t(this,e)}).\u0275fac=function(t){return new(t||P)},P.\u0275mod=d.oAB({type:P}),P.\u0275inj=d.cJS({imports:[[a.ez,r.u5,l.Pc,q,A.a,T.F]]}),P)}}])}(); |