mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
14 KiB
JavaScript
1 line
14 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([[6065],{56109:function(e,o,i){"use strict";i.r(o),i.d(o,{DespachosPageModule:function(){return D}});var a,r=i(38583),s=i(3679),c=i(35957),l=i(39895),d=i(64762),g=i(37716),p=i(87732),f=i(66096),u=i(2527),h=new((a=function(){function e(){var n=this;t(this,e),this._list=[],this._count=0,this.keyName=(0,u.SHA1)(this.constructor.name).toString(),setTimeout(function(){var t=f.I.get(n.keyName,{});n._list=t.list||[],n._count=parseInt(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(){f.I.set(t.keyName,{list:t._list,count:t._count})},10)}}]),e}()).\u0275fac=function(t){return new(t||a)},a.\u0275prov=g.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a),m=i(28621),x=i(25970),v=i(37556),Z=i(962),_=i(23890);function w(t,e){1&t&&g._UZ(0,"ion-progress-bar",16)}function C(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 O(t,e){if(1&t){var n=g.EpF();g.TgZ(0,"div",17),g.NdJ("click",function(){var t=g.CHM(n).$implicit;return g.oxw().GoToDespacho(t.SerialNumber)}),g.TgZ(1,"div",18),g.TgZ(2,"div",19),g.TgZ(3,"div",20),g.TgZ(4,"ion-label"),g._uU(5),g.qZA(),g.qZA(),g.TgZ(6,"div",21),g._UZ(7,"ion-icon",22),g.YNc(8,C,2,1,"label",15),g.qZA(),g.qZA(),g.TgZ(9,"div",23),g.TgZ(10,"div",24),g.TgZ(11,"ion-label"),g._uU(12),g.qZA(),g.qZA(),g.qZA(),g.TgZ(13,"div",25),g.TgZ(14,"div",26),g.TgZ(15,"span",27),g._uU(16),g.qZA(),g.qZA(),g.TgZ(17,"div",28),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 M(t,e){1&t&&(g.TgZ(0,"div",29),g.TgZ(1,"span"),g._uU(2,"Lista vazia"),g.qZA(),g.qZA())}function b(t,e){1&t&&(g.TgZ(0,"div"),g.TgZ(1,"ion-list"),g.TgZ(2,"ion-item"),g.TgZ(3,"ion-thumbnail",30),g._UZ(4,"ion-skeleton-text",31),g.qZA(),g.TgZ(5,"ion-label"),g.TgZ(6,"h3"),g._UZ(7,"ion-skeleton-text",32),g.qZA(),g.TgZ(8,"p"),g._UZ(9,"ion-skeleton-text",33),g.qZA(),g.TgZ(10,"p"),g._UZ(11,"ion-skeleton-text",34),g.qZA(),g.qZA(),g.qZA(),g.TgZ(12,"ion-item"),g.TgZ(13,"ion-thumbnail",30),g._UZ(14,"ion-skeleton-text",31),g.qZA(),g.TgZ(15,"ion-label"),g.TgZ(16,"h3"),g._UZ(17,"ion-skeleton-text",32),g.qZA(),g.TgZ(18,"p"),g._UZ(19,"ion-skeleton-text",33),g.qZA(),g.TgZ(20,"p"),g._UZ(21,"ion-skeleton-text",34),g.qZA(),g.qZA(),g.qZA(),g.qZA(),g.qZA())}var k,P,y=[{path:"",component:(k=function(){function e(n,o,i,a,r){t(this,e),this.processes=n,this.modalController=o,this.alertService=i,this.authService=a,this.router=r,this.taskslist=[],this.despachoList=[],this.deferimentoList=[],this.taskList=[],this.openExpedientDetail=new g.vpe,this.dicIndex=0,this.inicial=!1,this.skeletonLoader=!0,this.despachospagestore=h,this.profile="mdgpr"}return n(e,[{key:"ngOnInit",value:function(){var t=this;this.segment="despachos";var e=window.location,n=e.pathname+e.search;this.LoadList(),this.router.events.forEach(function(e){e instanceof l.OD&&e.url.startsWith(n)&&(window.location.pathname.split("/").length>=4&&window.location.pathname.startsWith("/home/gabinete-digital")?t.refreshing():t.LoadList())})}},{key:"refreshing",value:function(){return(0,d.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:"segmentChanged",value:function(t){this.LoadList()}},{key:"openExpedientDetailPage",value:function(t){this.openExpedientDetail.emit(t)}},{key:"LoadList",value:function(){return(0,d.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.next=3,this.processes.GetTasksList("Despacho",!1).toPromise();case 3:return e=t.sent,this.despachoList=[],this.skeletonLoader=!1,t.next=8,e.filter(function(t){return"Active"==t.workflowInstanceDataFields.Status}).forEach(function(t,e){var o=new Date(t.taskStartDate);o.setMonth(o.getMonth()+1);var i=o.getFullYear()+"-"+o.getMonth()+"-"+o.getDate()+" "+o.getHours()+":"+o.getMinutes()+":"+o.getSeconds();n.despachoList.push({SerialNumber:t.serialNumber,Folio:t.workflowInstanceDataFields.Subject,Senders:t.workflowInstanceDataFields.Sender,CreateDate:i,DocumentURL:t.workflowInstanceDataFields.ViewerRequest,Remetente:t.workflowInstanceDataFields.Remetente,DocumentsQty:t.totalDocuments,DocId:t.workflowInstanceDataFields.DispatchDocId,WorkflowName:t.workflowDisplayName,activityInstanceName:t.activityInstanceName})});case 8:this.despachoList=this.sortArrayISODate(this.despachoList).reverse(),this.despachospagestore.reset(this.despachoList);case 10:case"end":return t.stop()}},t,this)}))}},{key:"sortArrayISODate",value:function(t){return t.sort(function(t,e){return t.CreateDate<e.CreateDate?-1:t.CreateDate>e.CreateDate?1:0})}},{key:"doRefresh",value:function(t){this.LoadList(),setTimeout(function(){t.target.complete()},2e3)}},{key:"GoToDespacho",value:function(t){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:console.log("Despachos serial",t),this.router.navigate(["/home/gabinete-digital/despachos",t,"gabinete-digital"]);case 1:case"end":return e.stop()}},e,this)}))}},{key:"docIndex",value:function(t){this.dicIndex=t}},{key:"goBack",value:function(){this.router.navigate(["/home/gabinete-digital"])}},{key:"goToList",value:function(){this.router.navigate(["/home/gabinete-digital/despachos"])}}]),e}(),k.\u0275fac=function(t){return new(t||k)(g.Y36(m.$),g.Y36(c.IN),g.Y36(x.c),g.Y36(v.e),g.Y36(l.F0))},k.\u0275cmp=g.Xpm({type:k,selectors:[["app-despachos"]],viewQuery:function(t,e){var n;1&t&&g.Gf(p.eV,5),2&t&&g.iGM(n=g.CRH())&&(e.myCal=n.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&&(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,"app-btn-modal-dismiss",3),g.NdJ("click",function(){return e.goBack()}),g.qZA(),g.TgZ(5,"div",4),g.TgZ(6,"ion-label"),g._uU(7,"Despachos"),g.qZA(),g.qZA(),g.TgZ(8,"div",5),g.TgZ(9,"button",6),g.NdJ("click",function(t){return e.doRefresh(t)}),g._UZ(10,"ion-icon",7),g.qZA(),g.qZA(),g.qZA(),g.qZA(),g.TgZ(11,"ion-content"),g.TgZ(12,"div",8),g.TgZ(13,"ion-refresher",9),g.NdJ("ionRefresh",function(t){return e.doRefresh(t)}),g._UZ(14,"ion-refresher-content",10),g.qZA(),g.TgZ(15,"div"),g.YNc(16,w,1,0,"ion-progress-bar",11),g.TgZ(17,"div",12),g.TgZ(18,"ion-list"),g.YNc(19,O,21,8,"div",13),g.qZA(),g.qZA(),g.qZA(),g.YNc(20,M,3,0,"div",14),g.YNc(21,b,22,0,"div",15),g.qZA(),g.qZA()),2&t&&(g.xp6(16),g.Q6J("ngIf",e.skeletonLoader),g.xp6(3),g.Q6J("ngForOf",e.despachospagestore.list),g.xp6(1),g.Q6J("ngIf",!e.skeletonLoader&&0==e.despachospagestore.list.length&&0==e.despachospagestore.list.length),g.xp6(1),g.Q6J("ngIf",e.skeletonLoader&&0==e.despachospagestore.list.length))},directives:[c.Gu,Z.E,_.E,c.Q$,c.gu,c.W2,c.nJ,c.Wo,r.O5,c.q_,r.sg,c.X7,c.Ie,c.Bs,c.CK],pipes:[r.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}"]}),k)},{path:"despacho",loadChildren:function(){return Promise.all([i.e(562),i.e(5276),i.e(4917),i.e(944)]).then(i.bind(i,29864)).then(function(t){return t.DespachoPageModule})}}],T=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:[[l.Bz.forChild(y)],l.Bz]}),e}(),A=i(6527),q=i(4502),D=((P=function e(){t(this,e)}).\u0275fac=function(t){return new(t||P)},P.\u0275mod=g.oAB({type:P}),P.\u0275inj=g.cJS({imports:[[r.ez,s.u5,c.Pc,T,A.a,q.F]]}),P)}}])}(); |