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

1 line
12 KiB
JavaScript

(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[6065],{56109:function(t,e,n){"use strict";n.r(e),n.d(e,{DespachosPageModule:function(){return k}});var o=n(38583),i=n(3679),a=n(35957),s=n(39895),r=n(64762),c=n(37716),l=n(87732),d=n(66096),g=n(2527);const p=new((()=>{class t{constructor(){this._list=[],this._count=0,this.keyName=(0,g.SHA1)(this.constructor.name).toString(),setTimeout(()=>{let t=d.I.get(this.keyName,{});this._list=t.list||[],this._count=parseInt(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(()=>{d.I.set(this.keyName,{list:this._list,count:this._count})},10)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})());var h=n(28621),f=n(25970),u=n(37556),m=n(962),x=n(23890);function Z(t,e){1&t&&c._UZ(0,"ion-progress-bar",16)}function _(t,e){if(1&t&&(c.TgZ(0,"label"),c._uU(1),c.qZA()),2&t){const t=c.oxw().$implicit;c.xp6(1),c.Oqu(t.DocumentsQty)}}function C(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",17),c.NdJ("click",function(){const e=c.CHM(t).$implicit;return c.oxw().GoToDespacho(e.SerialNumber)}),c.TgZ(1,"div",18),c.TgZ(2,"div",19),c.TgZ(3,"div",20),c.TgZ(4,"ion-label"),c._uU(5),c.qZA(),c.qZA(),c.TgZ(6,"div",21),c._UZ(7,"ion-icon",22),c.YNc(8,_,2,1,"label",15),c.qZA(),c.qZA(),c.TgZ(9,"div",23),c.TgZ(10,"div",24),c.TgZ(11,"ion-label"),c._uU(12),c.qZA(),c.qZA(),c.qZA(),c.TgZ(13,"div",25),c.TgZ(14,"div",26),c.TgZ(15,"span",27),c._uU(16),c.qZA(),c.qZA(),c.TgZ(17,"div",28),c.TgZ(18,"ion-label"),c._uU(19),c.ALo(20,"date"),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=e.$implicit;c.xp6(5),c.Oqu(t.Folio),c.xp6(3),c.Q6J("ngIf",0!=t.DocumentsQty),c.xp6(4),c.Oqu(t.Senders),c.xp6(4),c.Oqu(t.activityInstanceName),c.xp6(3),c.Oqu(c.xi3(20,5,t.CreateDate,"dd-MM-yyyy HH:mm"))}}function w(t,e){1&t&&(c.TgZ(0,"div",29),c.TgZ(1,"span"),c._uU(2,"Lista vazia"),c.qZA(),c.qZA())}function O(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"ion-list"),c.TgZ(2,"ion-item"),c.TgZ(3,"ion-thumbnail",30),c._UZ(4,"ion-skeleton-text",31),c.qZA(),c.TgZ(5,"ion-label"),c.TgZ(6,"h3"),c._UZ(7,"ion-skeleton-text",32),c.qZA(),c.TgZ(8,"p"),c._UZ(9,"ion-skeleton-text",33),c.qZA(),c.TgZ(10,"p"),c._UZ(11,"ion-skeleton-text",34),c.qZA(),c.qZA(),c.qZA(),c.TgZ(12,"ion-item"),c.TgZ(13,"ion-thumbnail",30),c._UZ(14,"ion-skeleton-text",31),c.qZA(),c.TgZ(15,"ion-label"),c.TgZ(16,"h3"),c._UZ(17,"ion-skeleton-text",32),c.qZA(),c.TgZ(18,"p"),c._UZ(19,"ion-skeleton-text",33),c.qZA(),c.TgZ(20,"p"),c._UZ(21,"ion-skeleton-text",34),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA())}const M=[{path:"",component:(()=>{class t{constructor(t,e,n,o,i){this.processes=t,this.modalController=e,this.alertService=n,this.authService=o,this.router=i,this.taskslist=[],this.despachoList=[],this.deferimentoList=[],this.taskList=[],this.openExpedientDetail=new c.vpe,this.dicIndex=0,this.inicial=!1,this.skeletonLoader=!0,this.despachospagestore=p,this.profile="mdgpr"}ngOnInit(){this.segment="despachos";const t=window.location,e=t.pathname+t.search;this.LoadList(),this.router.events.forEach(t=>{t instanceof s.OD&&t.url.startsWith(e)&&(window.location.pathname.split("/").length>=4&&window.location.pathname.startsWith("/home/gabinete-digital")?this.refreshing():this.LoadList())})}refreshing(){return(0,r.mG)(this,void 0,void 0,function*(){setTimeout(()=>{this.LoadList()},1e3)})}segmentChanged(t){this.LoadList()}openExpedientDetailPage(t){this.openExpedientDetail.emit(t)}LoadList(){return(0,r.mG)(this,void 0,void 0,function*(){this.skeletonLoader=!0;let t=yield this.processes.GetTasksList("Despacho",!1).toPromise();this.despachoList=[],this.skeletonLoader=!1,yield t.filter(t=>"Active"==t.workflowInstanceDataFields.Status).forEach((t,e)=>{let n=new Date(t.taskStartDate);n.setMonth(n.getMonth()+1);let o=n.getFullYear()+"-"+n.getMonth()+"-"+n.getDate()+" "+n.getHours()+":"+n.getMinutes()+":"+n.getSeconds();this.despachoList.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,DocId:t.workflowInstanceDataFields.DispatchDocId,WorkflowName:t.workflowDisplayName,activityInstanceName:t.activityInstanceName})}),this.despachoList=this.sortArrayISODate(this.despachoList).reverse(),this.despachospagestore.reset(this.despachoList)})}sortArrayISODate(t){return t.sort(function(t,e){return t.CreateDate<e.CreateDate?-1:t.CreateDate>e.CreateDate?1:0})}doRefresh(t){this.LoadList(),setTimeout(()=>{t.target.complete()},2e3)}GoToDespacho(t){return(0,r.mG)(this,void 0,void 0,function*(){console.log("Despachos serial",t),this.router.navigate(["/home/gabinete-digital/despachos",t,"gabinete-digital"])})}docIndex(t){this.dicIndex=t}goBack(){this.router.navigate(["/home/gabinete-digital"])}goToList(){this.router.navigate(["/home/gabinete-digital/despachos"])}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(h.$),c.Y36(a.IN),c.Y36(f.c),c.Y36(u.e),c.Y36(s.F0))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-despachos"]],viewQuery:function(t,e){if(1&t&&c.Gf(l.eV,5),2&t){let t;c.iGM(t=c.CRH())&&(e.myCal=t.first)}},inputs:{profile:"profile"},outputs:{openExpedientDetail:"openExpedientDetail"},decls:22,vars:4,consts:[[1,"ion-no-border"],[1,"ion-no-border","header-2"],[1,"title","d-flex","align-center"],[3,"click"],[1,"title"],[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"],["pullingIcon","chevron-down-circle-outline","pullingText","deslize para actualizar","refreshingSpinner","circles","refreshingText","A actualizar..."],["type","indeterminate",4,"ngIf"],[1,"height-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&&(c.TgZ(0,"ion-header",0),c._UZ(1,"app-header"),c.qZA(),c.TgZ(2,"ion-header",1),c.TgZ(3,"div",2),c.TgZ(4,"app-btn-modal-dismiss",3),c.NdJ("click",function(){return e.goBack()}),c.qZA(),c.TgZ(5,"div",4),c.TgZ(6,"ion-label"),c._uU(7,"Despachos"),c.qZA(),c.qZA(),c.TgZ(8,"div",5),c.TgZ(9,"button",6),c.NdJ("click",function(t){return e.doRefresh(t)}),c._UZ(10,"ion-icon",7),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.TgZ(11,"ion-content"),c.TgZ(12,"div",8),c.TgZ(13,"ion-refresher",9),c.NdJ("ionRefresh",function(t){return e.doRefresh(t)}),c._UZ(14,"ion-refresher-content",10),c.qZA(),c.TgZ(15,"div"),c.YNc(16,Z,1,0,"ion-progress-bar",11),c.TgZ(17,"div",12),c.TgZ(18,"ion-list"),c.YNc(19,C,21,8,"div",13),c.qZA(),c.qZA(),c.qZA(),c.YNc(20,w,3,0,"div",14),c.YNc(21,O,22,0,"div",15),c.qZA(),c.qZA()),2&t&&(c.xp6(16),c.Q6J("ngIf",e.skeletonLoader),c.xp6(3),c.Q6J("ngForOf",e.despachospagestore.list),c.xp6(1),c.Q6J("ngIf",!e.skeletonLoader&&0==e.despachospagestore.list.length&&0==e.despachospagestore.list.length),c.xp6(1),c.Q6J("ngIf",e.skeletonLoader&&0==e.despachospagestore.list.length))},directives:[a.Gu,m.E,x.E,a.Q$,a.gu,a.W2,a.nJ,a.Wo,o.O5,a.q_,o.sg,a.X7,a.Ie,a.Bs,a.CK],pipes:[o.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:hidden}.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:hidden}.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:"despacho",loadChildren:()=>Promise.all([n.e(562),n.e(5276),n.e(4917),n.e(944)]).then(n.bind(n,29864)).then(t=>t.DespachoPageModule)}];let v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(M)],s.Bz]}),t})();var P=n(6527),b=n(4502);let k=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,a.Pc,v,P.a,b.F]]}),t})()}}]);