Files
doneit-web/_platforms/browser/www/2598-es5.21f72849d242df238992.js
T
tiago.kayaya 24e2a8f518 save
2021-08-18 18:58:02 +01:00

1 line
15 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([[2598],{92598:function(n,o,i){"use strict";i.r(o),i.d(o,{DiplomasPageModule:function(){return T}});var a=i(38583),r=i(3679),s=i(35957),c=i(39895),d=i(64762),l=i(37716),g=i(28621),p=i(962),u=i(23890);function f(t,e){1&t&&l._UZ(0,"ion-progress-bar",17)}function m(t,e){if(1&t){var n=l.EpF();l.TgZ(0,"ion-item",20),l.NdJ("click",function(){var t=l.CHM(n).$implicit;return l.oxw(3).goToDiploma(t.SerialNumber)}),l.TgZ(1,"div",21),l.TgZ(2,"div",22),l.TgZ(3,"div",23),l.TgZ(4,"ion-label"),l._uU(5),l.ALo(6,"date"),l.qZA(),l.qZA(),l.TgZ(7,"div",24),l.TgZ(8,"ion-label"),l._uU(9),l.qZA(),l.qZA(),l.TgZ(10,"div",25),l.TgZ(11,"span",26),l._uU(12),l.qZA(),l.qZA(),l.TgZ(13,"div",27),l._UZ(14,"ion-icon",28),l.TgZ(15,"label"),l._uU(16),l.qZA(),l.qZA(),l.qZA(),l.TgZ(17,"div",29),l.TgZ(18,"ion-label"),l._uU(19),l.qZA(),l.qZA(),l.qZA(),l.qZA()}if(2&t){var o=e.$implicit;l.xp6(5),l.Oqu(l.xi3(6,5,o.CreateDate,"dd-MM-yyyy HH:mm")),l.xp6(4),l.Oqu(o.Remetente),l.xp6(3),l.Oqu(o.activityInstanceName),l.xp6(4),l.Oqu(o.DocumentsQty),l.xp6(3),l.Oqu(o.Folio)}}function h(t,e){if(1&t&&(l.TgZ(0,"ion-list"),l.YNc(1,m,20,8,"ion-item",19),l.qZA()),2&t){var n=l.oxw(2);l.xp6(1),l.Q6J("ngForOf",n.diplomasList)}}function Z(t,e){1&t&&(l.TgZ(0,"div"),l.YNc(1,h,2,1,"ion-list",18),l.qZA()),2&t&&(l.xp6(1),l.Q6J("ngSwitchCase","validar"))}function v(t,e){if(1&t){var n=l.EpF();l.TgZ(0,"ion-item",20),l.NdJ("click",function(){var t=l.CHM(n).$implicit;return l.oxw(3).goToDiploma(t.SerialNumber)}),l.TgZ(1,"div",21),l.TgZ(2,"div",22),l.TgZ(3,"div",23),l.TgZ(4,"ion-label"),l._uU(5),l.ALo(6,"date"),l.qZA(),l.qZA(),l.TgZ(7,"div",24),l.TgZ(8,"ion-label"),l._uU(9),l.qZA(),l.qZA(),l.TgZ(10,"div",25),l.TgZ(11,"span",26),l._uU(12),l.qZA(),l.qZA(),l.TgZ(13,"div",27),l._UZ(14,"ion-icon",28),l._UZ(15,"label"),l.qZA(),l.qZA(),l.TgZ(16,"div",29),l.TgZ(17,"ion-label"),l._uU(18),l.qZA(),l.qZA(),l.qZA(),l.qZA()}if(2&t){var o=e.$implicit;l.xp6(5),l.Oqu(l.xi3(6,4,o.CreateDate,"dd-MM-yyyy HH:mm")),l.xp6(4),l.Oqu(o.Remetente),l.xp6(3),l.Oqu(o.activityInstanceName),l.xp6(6),l.Oqu(o.Folio)}}function x(t,e){if(1&t&&(l.TgZ(0,"ion-list"),l.YNc(1,v,19,7,"ion-item",19),l.qZA()),2&t){var n=l.oxw(2);l.xp6(1),l.Q6J("ngForOf",n.diplomasAssinadoList)}}function w(t,e){1&t&&(l.TgZ(0,"div"),l.YNc(1,x,2,1,"ion-list",18),l.qZA()),2&t&&(l.xp6(1),l.Q6J("ngSwitchCase","assinados"))}function _(t,e){1&t&&(l.TgZ(0,"div",30),l.TgZ(1,"span"),l._uU(2,"Lista vazia"),l.qZA(),l.qZA())}function C(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"ion-list"),l.TgZ(2,"ion-item"),l.TgZ(3,"ion-thumbnail",31),l._UZ(4,"ion-skeleton-text",32),l.qZA(),l.TgZ(5,"ion-label"),l.TgZ(6,"h3"),l._UZ(7,"ion-skeleton-text",33),l.qZA(),l.TgZ(8,"p"),l._UZ(9,"ion-skeleton-text",34),l.qZA(),l.TgZ(10,"p"),l._UZ(11,"ion-skeleton-text",35),l.qZA(),l.qZA(),l.qZA(),l.TgZ(12,"ion-item"),l.TgZ(13,"ion-thumbnail",31),l._UZ(14,"ion-skeleton-text",32),l.qZA(),l.TgZ(15,"ion-label"),l.TgZ(16,"h3"),l._UZ(17,"ion-skeleton-text",33),l.qZA(),l.TgZ(18,"p"),l._UZ(19,"ion-skeleton-text",34),l.qZA(),l.TgZ(20,"p"),l._UZ(21,"ion-skeleton-text",35),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA())}var O,b,M=[{path:"",component:(O=function(){function n(e,o,i){t(this,n),this.processes=e,this.router=o,this.activatedRoute=i,this.list=[],this.diplomasList=[],this.diplomasAssinadoList=[],this.skeletonLoader=!0,this.diplomasList=[]}var o,i,a;return o=n,(i=[{key:"ngOnInit",value:function(){var t=this;this.segment="validar",this.activatedRoute.queryParams.subscribe(function(e){"validar"==e.segment?t.segment="validar":"assinados"==e.segment&&(t.segment="assinados")});var 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:"getTotalDocs",value:function(t){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.processes.GetDocumentDetails(t,"361").toPromise();case 2:return n=e.sent,e.abrupt("return",(console.log(n.DocumentsTotal),n.DocumentsTotal));case 4:case"end":return e.stop()}},e,this)}))}},{key:"ngOnDestroy",value:function(){console.log("8. on destroy called")}},{key:"segmentChanged",value:function(t){this.LoadList()}},{key:"goToDiploma",value:function(t){this.router.navigate(["/home/gabinete-digital/diplomas",t,"gabinete-digital"])}},{key:"LoadList",value:function(){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var e,n,o,i,a,r=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 do Presidente da Rep\xfablica",!1).toPromise();case 3:e=t.sent,this.skeletonLoader=!1,this.showLoader=!1,n=e.filter(function(t){return"Revisar Diploma"==t.activityInstanceName}),o=[],n.forEach(function(t){return(0,d.mG)(r,void 0,void 0,regeneratorRuntime.mark(function e(){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=this.pipeTask(t),o.push(n);case 2:case"end":return e.stop()}},e,this)}))}),this.diplomasList=this.sortArrayISODate(o.reverse()),i=e.reverse().filter(function(t){return"Diploma Assinado"==t.activityInstanceName}),a=[],i.forEach(function(t){return(0,d.mG)(r,void 0,void 0,regeneratorRuntime.mark(function e(){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=this.pipeTask(t),a.push(n);case 2:case"end":return e.stop()}},e,this)}))}),console.log("diplomasAssinados",i),this.diplomasAssinadoList=this.sortArrayISODate(a).reverse();case 9:case"end":return t.stop()}},t,this)}))}},{key:"pipeTask",value:function(t){var e=new Date(t.taskStartDate);e.setMonth(e.getMonth()+1);var n=e.getFullYear()+"-"+e.getMonth()+"-"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds();return{SerialNumber:t.serialNumber,Folio:t.workflowInstanceDataFields.Subject,Senders:t.workflowInstanceDataFields.Sender,CreateDate:n,DocumentURL:t.workflowInstanceDataFields.ViewerRequest,Remetente:t.workflowInstanceDataFields.Remetente,DocumentsQty:t.totalDocuments,DocId:t.workflowInstanceDataFields.DocIdDiferimento,WorkflowName:t.workflowDisplayName,activityInstanceName:t.activityInstanceName,Status:t.workflowInstanceDataFields.Status}}},{key:"sortArrayISODate",value:function(t){return t.sort(function(t,e){return t.CreateDate<e.CreateDate?-1:t.CreateDate>e.CreateDate?1:0})}},{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:"doRefresh",value:function(t){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:"goBack",value:function(){this.router.navigate(["/home/gabinete-digital"])}}])&&e(o.prototype,i),a&&e(o,a),n}(),O.\u0275fac=function(t){return new(t||O)(l.Y36(g.$),l.Y36(c.F0),l.Y36(c.gz))},O.\u0275cmp=l.Xpm({type:O,selectors:[["app-diplomas"]],decls:27,vars:7,consts:[[1,"ion-no-border"],[1,"ion-no-border","header-2"],[1,"title"],[3,"click"],[1,"thetitle"],[1,"theicon","btn-refresh"],[1,"btn-no-color",3,"click"],["slot","end","name","reload-circle",1,"title-icon"],[3,"ngModel","ngModelChange","ionChange"],["value","validar"],["value","assinados"],[1,"main-content","width-100","overflow-y-auto","height-100"],["name","refresher","slot","fixed",3,"ionRefresh"],[1,"width-100",3,"ngSwitch"],["type","indeterminate",4,"ngIf"],[4,"ngIf"],["class","empty-list d-flex height-100 align-center justify-content-center",4,"ngIf"],["type","indeterminate"],[4,"ngSwitchCase"],["class","expediente ion-no-padding cursor-pointer","lines","none",3,"click",4,"ngFor","ngForOf"],["lines","none",1,"expediente","ion-no-padding","cursor-pointer",3,"click"],[1,"item","width-100"],[1,"exp-top-detail"],[1,"exp-date"],[1,"exp-remetente"],[1,"exp-workflow"],[1,"label"],[1,"exp-icon"],["src","assets/images/icons-expediente-attachment.svg"],[1,"exp-bottom-detail"],[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&&(l.TgZ(0,"ion-header",0),l._UZ(1,"app-header"),l.qZA(),l.TgZ(2,"ion-header",1),l.TgZ(3,"div",2),l.TgZ(4,"app-btn-modal-dismiss",3),l.NdJ("click",function(){return e.goBack()}),l.qZA(),l.TgZ(5,"div",4),l.TgZ(6,"ion-label"),l._uU(7,"Diplomas"),l.qZA(),l.qZA(),l.TgZ(8,"div",5),l.TgZ(9,"button",6),l.NdJ("click",function(t){return e.doRefresh(t)}),l._UZ(10,"ion-icon",7),l.qZA(),l.qZA(),l.qZA(),l.TgZ(11,"ion-toolbar"),l.TgZ(12,"ion-segment",8),l.NdJ("ngModelChange",function(t){return e.segment=t})("ionChange",function(t){return e.segmentChanged(t)}),l.TgZ(13,"ion-segment-button",9),l._uU(14," Por validar "),l.qZA(),l.TgZ(15,"ion-segment-button",10),l._uU(16," Assinados PR "),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.TgZ(17,"ion-content"),l.TgZ(18,"div",11),l.TgZ(19,"ion-refresher",12),l.NdJ("ionRefresh",function(t){return e.doRefresh(t)}),l._UZ(20,"ion-refresher-content"),l.qZA(),l.TgZ(21,"div",13),l.YNc(22,f,1,0,"ion-progress-bar",14),l.YNc(23,Z,2,1,"div",15),l.YNc(24,w,2,1,"div",15),l.qZA(),l.YNc(25,_,3,0,"div",16),l.YNc(26,C,22,0,"div",15),l.qZA(),l.qZA()),2&t&&(l.xp6(12),l.Q6J("ngModel",e.segment),l.xp6(9),l.Q6J("ngSwitch",e.segment),l.xp6(1),l.Q6J("ngIf",e.skeletonLoader),l.xp6(1),l.Q6J("ngIf",e.diplomasList),l.xp6(1),l.Q6J("ngIf",e.diplomasAssinadoList),l.xp6(1),l.Q6J("ngIf",!e.skeletonLoader&&0==e.diplomasList.length&&0==e.diplomasAssinadoList.length),l.xp6(1),l.Q6J("ngIf",e.skeletonLoader&&0==e.diplomasAssinadoList.length&&e.skeletonLoader&&0==e.diplomasList.length))},directives:[s.Gu,p.E,u.E,s.Q$,s.gu,s.sr,s.cJ,s.QI,r.JJ,r.On,s.GO,s.W2,s.nJ,s.Wo,a.RF,a.O5,s.X7,a.n9,s.q_,a.sg,s.Ie,s.Bs,s.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: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}"]}),O)},{path:"diploma",loadChildren:function(){return i.e(7932).then(i.bind(i,67932)).then(function(t){return t.DiplomaPageModule})}}],A=function(){var e=function e(){t(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.oAB({type:e}),e.\u0275inj=l.cJS({imports:[[c.Bz.forChild(M)],c.Bz]}),e}(),P=i(6527),k=i(4502),T=((b=function e(){t(this,e)}).\u0275fac=function(t){return new(t||b)},b.\u0275mod=l.oAB({type:b}),b.\u0275inj=l.cJS({imports:[[a.ez,r.u5,s.Pc,A,P.a,k.F]]}),b)}}])}();