Files
doneit-web/_platforms/browser/www/3437-es5.15a77f8bc7911daa9017.js
T

1 line
13 KiB
JavaScript
Raw Normal View History

2021-08-18 18:58:02 +01:00
!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)}}function n(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[3437],{73437:function(e,o,i){"use strict";i.r(o),i.d(o,{ExpedientePageModule:function(){return O}});var a=i(38583),r=i(3679),c=i(35957),d=i(39895),s=i(64762),l=i(887),g=i(37716),p=i(28621),f=i(25970),u=i(84465),h=i(962);function m(t,e){1&t&&g._UZ(0,"ion-progress-bar",17)}function x(t,e){if(1&t&&(g.TgZ(0,"label"),g._uU(1),g.qZA()),2&t){var n=g.oxw().$implicit;g.xp6(1),g.Oqu(n.DocumentsQty)}}function Z(t,e){if(1&t){var n=g.EpF();g.TgZ(0,"div",18),g.NdJ("click",function(){var t=g.CHM(n).$implicit;return g.oxw().goToExpediente(t.SerialNumber)}),g.TgZ(1,"div",19),g.TgZ(2,"div",20),g.TgZ(3,"div",21),g.TgZ(4,"ion-label"),g._uU(5),g.qZA(),g.qZA(),g.TgZ(6,"div",22),g._UZ(7,"ion-icon",23),g.YNc(8,x,2,1,"label",16),g.qZA(),g.qZA(),g.TgZ(9,"div",24),g.TgZ(10,"div",25),g.TgZ(11,"ion-label"),g._uU(12),g.qZA(),g.qZA(),g.qZA(),g.TgZ(13,"div",26),g.TgZ(14,"div",27),g.TgZ(15,"span",28),g._uU(16),g.qZA(),g.qZA(),g.TgZ(17,"div",29),g.TgZ(18,"ion-label"),g._uU(19),g.ALo(20,"date"),g.qZA(),g.qZA(),g.qZA(),g.qZA(),g.qZA()}if(2&t){var o=e.$implicit;g.xp6(5),g.Oqu(o.Folio),g.xp6(3),g.Q6J("ngIf",0!=o.DocumentsQty),g.xp6(4),g.Oqu(o.Senders),g.xp6(4),g.Oqu(o.activityInstanceName),g.xp6(3),g.Oqu(g.xi3(20,5,o.CreateDate,"dd-MM-yyyy HH:mm"))}}function v(t,e){1&t&&(g.TgZ(0,"div",30),g.TgZ(1,"span"),g._uU(2,"Lista vazia"),g.qZA(),g.qZA())}function _(t,e){1&t&&(g.TgZ(0,"div"),g.TgZ(1,"ion-list"),g.TgZ(2,"ion-item"),g.TgZ(3,"ion-thumbnail",31),g._UZ(4,"ion-skeleton-text",32),g.qZA(),g.TgZ(5,"ion-label"),g.TgZ(6,"h3"),g._UZ(7,"ion-skeleton-text",33),g.qZA(),g.TgZ(8,"p"),g._UZ(9,"ion-skeleton-text",34),g.qZA(),g.TgZ(10,"p"),g._UZ(11,"ion-skeleton-text",35),g.qZA(),g.qZA(),g.qZA(),g.TgZ(12,"ion-item"),g.TgZ(13,"ion-thumbnail",31),g._UZ(14,"ion-skeleton-text",32),g.qZA(),g.TgZ(15,"ion-label"),g.TgZ(16,"h3"),g._UZ(17,"ion-skeleton-text",33),g.qZA(),g.TgZ(18,"p"),g._UZ(19,"ion-skeleton-text",34),g.qZA(),g.TgZ(20,"p"),g._UZ(21,"ion-skeleton-text",35),g.qZA(),g.qZA(),g.qZA(),g.qZA(),g.qZA())}var w,b,k=[{path:"",component:(w=function(){function e(n,o,i,a,r){t(this,e),this.processes=n,this.modalController=o,this.alertService=i,this.router=a,this.toastService=r,this.skeletonLoader=!0,this.taskslist=[],this.expedienteStorage=l.t}return n(e,[{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 d.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(){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var e,n=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.skeletonLoader=!0,t.prev=1,t.next=4,this.processes.GetTasksList("Expediente",!1).toPromise();case 4:e=t.sent,this.taskslist=new Array,e.reverse().filter(function(t){return"Active"==t.workflowInstanceDataFields.Status}).forEach(function(t){var e=new Date(t.taskStartDate);e.setMonth(e.getMonth()+1);var o=e.getFullYear()+"-"+e.getMonth()+"-"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds();n.taskslist.push({SerialNumber:t.serialNumber,Folio:t.workflowInstanceDataFields.Subject,Senders:t.workflowInstanceDataFields.Sender,CreateDate:o,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,t.next=11;b