mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
13 KiB
JavaScript
1 line
13 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)}}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;break;case 8:t.prev=8,t.t0=t.catch(1),this.toastService.badRequest("Processo n\xe3o encontrado"),this.goBack();case 11:case"end":return t.stop()}},t,this,[[1,8]])}))}},{key:"refreshing",value:function(){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var e=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:setTimeout(function(){e.LoadList()},1e3);case 1:case"end":return t.stop()}},t)}))}},{key:"doRefresh",value:function(t){this.LoadList(),setTimeout(function(){t.target.complete()},1e3)}},{key:"goBack",value:function(){this.router.navigate(["/home/gabinete-digital"])}},{key:"goToExpediente",value:function(t){this.router.navigate(["/home/gabinete-digital/expediente",t,"gabinete-digital"])}}]),e}(),w.\u0275fac=function(t){return new(t||w)(g.Y36(p.$),g.Y36(c.IN),g.Y36(f.c),g.Y36(d.F0),g.Y36(u.k))},w.\u0275cmp=g.Xpm({type:w,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&&(g.TgZ(0,"ion-header",0),g._UZ(1,"app-header"),g.qZA(),g.TgZ(2,"ion-header",1),g.TgZ(3,"div",2),g.TgZ(4,"div",3),g.TgZ(5,"button",4),g.NdJ("click",function(){return e.goBack()}),g._UZ(6,"ion-icon",5),g.qZA(),g.qZA(),g.TgZ(7,"div",6),g.TgZ(8,"label"),g._uU(9,"Expediente"),g.qZA(),g.qZA(),g.TgZ(10,"div",7),g.TgZ(11,"button",8),g.NdJ("click",function(t){return e.doRefresh(t)}),g._UZ(12,"ion-icon",9),g.qZA(),g.qZA(),g.qZA(),g.qZA(),g.TgZ(13,"ion-content"),g.TgZ(14,"ion-refresher",10),g.NdJ("ionRefresh",function(t){return e.doRefresh(t)}),g.YNc(15,m,1,0,"ion-progress-bar",11),g._UZ(16,"ion-refresher-content"),g.qZA(),g.TgZ(17,"div",12),g.TgZ(18,"div",13),g.TgZ(19,"ion-list"),g.YNc(20,Z,21,8,"div",14),g.qZA(),g.YNc(21,v,3,0,"div",15),g.YNc(22,_,22,0,"div",16),g.qZA(),g.qZA(),g.qZA()),2&t&&(g.xp6(15),g.Q6J("ngIf",e.skeletonLoader),g.xp6(5),g.Q6J("ngForOf",e.expedienteStorage.list),g.xp6(1),g.Q6J("ngIf",!e.skeletonLoader&&0==e.expedienteStorage.list.length&&0==e.expedienteStorage.list.length),g.xp6(1),g.Q6J("ngIf",e.skeletonLoader&&0==e.expedienteStorage.list.length))},directives:[c.Gu,h.E,c.gu,c.W2,c.nJ,a.O5,c.Wo,c.q_,a.sg,c.X7,c.Q$,c.Ie,c.Bs,c.CK],pipes:[a.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}"]}),w)},{path:"expediente-detail",loadChildren:function(){return i.e(8592).then(i.bind(i,3961)).then(function(t){return t.ExpedienteDetailPageModule})}},{path:"expedient-task-modal",loadChildren:function(){return i.e(8592).then(i.bind(i,16)).then(function(t){return t.ExpedientTaskModalPageModule})}},{path:"book-meeting-modal",loadChildren:function(){return Promise.all([i.e(8592),i.e(9799)]).then(i.bind(i,59799)).then(function(t){return t.BookMeetingModalPageModule})}}],M=function(){var e=function e(){t(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=g.oAB({type:e}),e.\u0275inj=g.cJS({imports:[[d.Bz.forChild(k)],d.Bz]}),e}(),C=i(6527),O=((b=function e(){t(this,e)}).\u0275fac=function(t){return new(t||b)},b.\u0275mod=g.oAB({type:b}),b.\u0275inj=g.cJS({imports:[[a.ez,r.u5,c.Pc,M,C.a]]}),b)},887:function(e,o,i){"use strict";i.d(o,{t:function(){return s}});var a,r=i(66096),c=i(2527),d=i(37716),s=new((a=function(){function e(){var n=this;t(this,e),this._list=[],this._count=0,this.keyName=(0,c.SHA1)(this.constructor.name+"ExpedienteStorage/forAll").toString(),setTimeout(function(){var t=r.I.get(n.keyName,[]);n._list=t.list||[],n._count=t.count||0},10)}return n(e,[{key:"list",get:function(){return this._list}},{key:"count",get:function(){return this._count},set:function(t){this._count=t,this.save()}},{key:"reset",value:function(t){this._list=t,this.count=this._list.length,this.save()}},{key:"save",value:function(){var t=this;setTimeout(function(){r.I.set(t.keyName,{list:t._list,count:t._count})},10)}}]),e}()).\u0275fac=function(t){return new(t||a)},a.\u0275prov=d.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a)}}])}(); |