mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
24 KiB
JavaScript
1 line
24 KiB
JavaScript
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[8088],{17690:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var i=n(37716);let o=(()=>{class e{transform(e){let t=new Date(e.taskStartDate);t.setMonth(t.getMonth()+1);let n=t.getFullYear()+"-"+t.getMonth()+"-"+t.getDate()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds();return{SerialNumber:e.serialNumber,Folio:e.workflowInstanceDataFields.Subject,Senders:e.workflowInstanceDataFields.Sender,CreateDate:n,DocumentURL:e.workflowInstanceDataFields.ViewerRequest,Remetente:e.workflowInstanceDataFields.Remetente,DocumentsQty:e.totalDocuments,DocId:e.workflowInstanceDataFields.DispatchDocId,FolderID:e.workflowInstanceDataFields.FolderID,WorkflowName:e.workflowDisplayName,activityInstanceName:e.activityInstanceName,Status:e.workflowInstanceDataFields.Status}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Yjl({name:"customTask",type:e,pure:!0}),e})()},84780:function(e,t,n){"use strict";n.r(t),n.d(t,{PedidosPageModule:function(){return g}});var i=n(38583),o=n(3679),r=n(35957),s=n(39895),c=n(95451),a=n(37716);const d=[{path:"",component:c.U}];let l=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[s.Bz.forChild(d)],s.Bz]}),e})(),g=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[i.ez,o.u5,r.Pc,l]]}),e})()},95451:function(e,t,n){"use strict";n.d(t,{U:function(){return k}});var i=n(64762),o=n(37716),r=n(39895),s=n(87732),c=n(46176),a=n(8500),d=n(17690),l=n(28621),g=n(35957),p=n(25970),h=n(3679),f=n(38583);function u(e,t){1&e&&o._UZ(0,"ion-progress-bar",15)}function m(e,t){if(1&e&&(o.TgZ(0,"label"),o._uU(1),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Oqu(e.DocumentsQty)}}function Z(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",18),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw(3).goToPedido(t.SerialNumber)}),o.TgZ(1,"div",19),o.TgZ(2,"div",20),o.TgZ(3,"div",21),o.TgZ(4,"ion-label"),o._uU(5),o.qZA(),o.qZA(),o.TgZ(6,"div",22),o._UZ(7,"ion-icon",23),o.YNc(8,m,2,1,"label",13),o.qZA(),o.qZA(),o.TgZ(9,"div",24),o.TgZ(10,"div",25),o.TgZ(11,"ion-label"),o._uU(12),o.qZA(),o.qZA(),o.qZA(),o.TgZ(13,"div",26),o.TgZ(14,"div",27),o.TgZ(15,"span",28),o._uU(16),o.qZA(),o.qZA(),o.TgZ(17,"div",29),o.TgZ(18,"ion-label"),o._uU(19),o.ALo(20,"date"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=t.$implicit;o.xp6(5),o.Oqu(e.Folio),o.xp6(3),o.Q6J("ngIf",0!=e.DocumentsQty),o.xp6(4),o.Oqu(e.Senders),o.xp6(4),o.Oqu(e.activityInstanceName),o.xp6(3),o.Oqu(o.xi3(20,5,e.CreateDate,"dd-MM-yyyy HH:mm"))}}function x(e,t){if(1&e&&(o.TgZ(0,"ion-list"),o.YNc(1,Z,21,8,"div",17),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngForOf",e.pedidosstore.listparecer)}}function v(e,t){1&e&&(o.TgZ(0,"div"),o.YNc(1,x,2,1,"ion-list",16),o.qZA()),2&e&&(o.xp6(1),o.Q6J("ngSwitchCase","parecer"))}function w(e,t){if(1&e&&(o.TgZ(0,"label"),o._uU(1),o.qZA()),2&e){const e=o.oxw().$implicit;o.xp6(1),o.Oqu(e.DocumentsQty)}}function b(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",18),o.NdJ("click",function(){const t=o.CHM(e).$implicit;return o.oxw(3).goToPedido(t.SerialNumber)}),o.TgZ(1,"div",19),o.TgZ(2,"div",20),o.TgZ(3,"div",21),o.TgZ(4,"ion-label"),o._uU(5),o.qZA(),o.qZA(),o.TgZ(6,"div",22),o._UZ(7,"ion-icon",23),o.YNc(8,w,2,1,"label",13),o.qZA(),o.qZA(),o.TgZ(9,"div",24),o.TgZ(10,"div",25),o.TgZ(11,"ion-label"),o._uU(12),o.qZA(),o.qZA(),o.qZA(),o.TgZ(13,"div",26),o.TgZ(14,"div",27),o.TgZ(15,"span",28),o._uU(16),o.qZA(),o.qZA(),o.TgZ(17,"div",29),o.TgZ(18,"ion-label"),o._uU(19),o.ALo(20,"date"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=t.$implicit;o.xp6(5),o.AsE("",e.Folio," ",e.Status,""),o.xp6(3),o.Q6J("ngIf",0!=e.DocumentsQty),o.xp6(4),o.Oqu(e.Senders),o.xp6(4),o.Oqu(e.activityInstanceName),o.xp6(3),o.Oqu(o.xi3(20,6,e.CreateDate,"dd-MM-yyyy HH:mm"))}}function _(e,t){if(1&e&&(o.TgZ(0,"ion-list"),o.YNc(1,b,21,9,"div",17),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngForOf",e.pedidosstore.listdeferimento)}}function C(e,t){1&e&&(o.TgZ(0,"div"),o.YNc(1,_,2,1,"ion-list",16),o.qZA()),2&e&&(o.xp6(1),o.Q6J("ngSwitchCase","deferimento"))}function P(e,t){1&e&&(o.TgZ(0,"div",32),o.TgZ(1,"span"),o._uU(2,"Lista vazia"),o.qZA(),o.qZA())}function A(e,t){if(1&e&&(o.TgZ(0,"div",30),o.YNc(1,P,3,0,"div",31),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",!e.skeletonLoader&&0==e.pedidosstore.listparecer.length)}}function q(e,t){1&e&&(o.TgZ(0,"div",32),o.TgZ(1,"span"),o._uU(2,"Lista vazia"),o.qZA(),o.qZA())}function T(e,t){if(1&e&&(o.TgZ(0,"div",30),o.YNc(1,q,3,0,"div",31),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",!e.skeletonLoader&&0==e.pedidosstore.listdeferimento.length)}}function M(e,t){1&e&&(o.TgZ(0,"div"),o.TgZ(1,"ion-list"),o.TgZ(2,"ion-item"),o.TgZ(3,"ion-thumbnail",33),o._UZ(4,"ion-skeleton-text",34),o.qZA(),o.TgZ(5,"ion-label"),o.TgZ(6,"h3"),o._UZ(7,"ion-skeleton-text",35),o.qZA(),o.TgZ(8,"p"),o._UZ(9,"ion-skeleton-text",36),o.qZA(),o.TgZ(10,"p"),o._UZ(11,"ion-skeleton-text",37),o.qZA(),o.qZA(),o.qZA(),o.TgZ(12,"ion-item"),o.TgZ(13,"ion-thumbnail",33),o._UZ(14,"ion-skeleton-text",34),o.qZA(),o.TgZ(15,"ion-label"),o.TgZ(16,"h3"),o._UZ(17,"ion-skeleton-text",35),o.qZA(),o.TgZ(18,"p"),o._UZ(19,"ion-skeleton-text",36),o.qZA(),o.TgZ(20,"p"),o._UZ(21,"ion-skeleton-text",37),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA())}let k=(()=>{class e{constructor(e,t,n,i){this.router=e,this.processes=t,this.modalController=n,this.alertService=i,this.taskslist=[],this.parecerList=[],this.parecerListResult=[],this.deferimentoListResult=[],this.deferimentoList=[],this.openPedido=new o.vpe,this.skeletonLoader=!0,this.pedidosstore=a.d,this.customTaskPipe=new d.g,this.profile="mdgpr"}ngOnInit(){this.router.events.forEach(e=>{(e instanceof r.OD&&"/home/gabinete-digital?parecer=true".startsWith(e.url)||e instanceof r.OD&&"/home/gabinete-digital?deferimento=true".startsWith(e.url)||e instanceof r.OD&&"/home/gabinete-digital?pedidos=true".startsWith(e.url))&&(window.location.pathname.split("/").length>=4&&window.location.pathname.startsWith("/home/gabinete-digital")?this.doRefresh():this.LoadList())})}segmentChanged(e){this.LoadList()}LoadList(){return(0,i.mG)(this,void 0,void 0,function*(){if(this.skeletonLoader=!0,"parecer"==this.segment){this.taskType="Pedido de Parecer";let e=yield this.processes.GetTasksList("Pedido de Parecer",!1).toPromise(),t=yield this.processes.GetTasksList("Pedido de Parecer do Presidente",!1).toPromise();this.skeletonLoader=!1;let n=e.concat(t).reverse();this.parecerList=new Array,n.filter(e=>"Active"==e.workflowInstanceDataFields.Status).forEach(e=>{let t=this.customTaskPipe.transform(e);this.parecerList.push(t)}),this.pedidosstore.resetparecer(this.parecerList)}else"deferimento"==this.segment&&(this.taskType="Pedido de Deferimento",this.processes.GetTasksList("Pedido de Deferimento",!1).subscribe(e=>{this.taskslist=e.filter(e=>"Active"==e.workflowInstanceDataFields.Status),this.skeletonLoader=!1,this.deferimentoList=new Array,e.reverse().filter(e=>"Active"==e.workflowInstanceDataFields.Status).forEach(e=>{let t=this.customTaskPipe.transform(e);this.deferimentoList.push(t)}),this.pedidosstore.resetdeferimento(this.deferimentoList)}))})}doRefresh(){setTimeout(()=>{this.LoadList()},1e3)}goToPedido(e){this.router.navigate(["/home/gabinete-digital/pedidos",e,"gabinete-digital"])}viewPedidoDetail(e){return(0,i.mG)(this,void 0,void 0,function*(){const t=yield this.modalController.create({component:c.k,componentProps:{enterAnimation:"",serialNumber:e,profile:this.profile},cssClass:"modal modal-desktop"});yield t.present(),t.onDidDismiss().then(e=>{console.log("refresh list"),this.LoadList()})})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(r.F0),o.Y36(l.$),o.Y36(g.IN),o.Y36(p.c))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-pedidos"]],viewQuery:function(e,t){if(1&e&&o.Gf(s.eV,5),2&e){let e;o.iGM(e=o.CRH())&&(t.myCal=e.first)}},inputs:{serialNumber:"serialNumber",profile:"profile",segment:"segment"},outputs:{openPedido:"openPedido"},decls:24,vars:8,consts:[[1,"ion-no-border","px-20"],[1,"title"],[1,"thetitle"],[1,"theicon"],[1,"btn-no-color",3,"click"],["slot","end","name","reload-circle",1,"title-icon"],[3,"ngModel","ngModelChange","ionChange"],["value","parecer"],["value","deferimento"],["name","refresher","slot","fixed",3,"ionRefresh"],["pullingIcon","chevron-down-circle-outline","pullingText","deslize para actualizar","refreshingSpinner","circles","refreshingText","A actualizar..."],[1,"width-100","overflow-y-auto","height-100","px-20",3,"ngSwitch"],["type","indeterminate",4,"ngIf"],[4,"ngIf"],["class","centered-div",4,"ngSwitchCase"],["type","indeterminate"],[4,"ngSwitchCase"],["class","expediente ion-no-padding ion-no-margin cursor-pointer",3,"click",4,"ngFor","ngForOf"],[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,"centered-div"],["class","empty-list d-flex height-100 align-center justify-content-center",4,"ngIf"],[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(e,t){1&e&&(o.TgZ(0,"ion-header",0),o.TgZ(1,"div",1),o.TgZ(2,"div",2),o.TgZ(3,"ion-label"),o._uU(4,"Pedidos"),o.qZA(),o.qZA(),o.TgZ(5,"div",3),o.TgZ(6,"button",4),o.NdJ("click",function(){return t.doRefresh()}),o._UZ(7,"ion-icon",5),o.qZA(),o.qZA(),o.qZA(),o.TgZ(8,"ion-toolbar"),o.TgZ(9,"ion-segment",6),o.NdJ("ngModelChange",function(e){return t.segment=e})("ionChange",function(e){return t.segmentChanged(e)}),o.TgZ(10,"ion-segment-button",7),o._uU(11," Pedidos de Parecer "),o.qZA(),o.TgZ(12,"ion-segment-button",8),o._uU(13," Pedidos de Deferimento "),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(14,"ion-content"),o.TgZ(15,"ion-refresher",9),o.NdJ("ionRefresh",function(){return t.doRefresh()}),o._UZ(16,"ion-refresher-content",10),o.qZA(),o.TgZ(17,"div",11),o.YNc(18,u,1,0,"ion-progress-bar",12),o.YNc(19,v,2,1,"div",13),o.YNc(20,C,2,1,"div",13),o.YNc(21,A,2,1,"div",14),o.YNc(22,T,2,1,"div",14),o.YNc(23,M,22,0,"div",13),o.qZA(),o.qZA()),2&e&&(o.xp6(9),o.Q6J("ngModel",t.segment),o.xp6(8),o.Q6J("ngSwitch",t.segment),o.xp6(1),o.Q6J("ngIf",t.skeletonLoader),o.xp6(1),o.Q6J("ngIf",t.pedidosstore.listparecer.length>=1),o.xp6(1),o.Q6J("ngIf",t.pedidosstore.listdeferimento.length>=1),o.xp6(1),o.Q6J("ngSwitchCase","parecer"),o.xp6(1),o.Q6J("ngSwitchCase","deferimento"),o.xp6(1),o.Q6J("ngIf",t.skeletonLoader&&0==t.pedidosstore.listparecer.length&&t.skeletonLoader&&0==t.pedidosstore.listdeferimento.length))},directives:[g.Gu,g.Q$,g.gu,g.sr,g.cJ,g.QI,h.JJ,h.On,g.GO,g.W2,g.nJ,g.Wo,f.RF,f.O5,f.n9,g.X7,g.q_,f.sg,g.Ie,g.Bs,g.CK],pipes:[f.uU],styles:["[_nghost-%COMP%]{padding:30px 0 0!important;margin:0}.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}.centered-div[_ngcontent-%COMP%]{width:100px;height:100px;position:absolute;top:50%;left:50%;margin:-35px 0 0 -35px}"]}),e})()},962:function(e,t,n){"use strict";n.d(t,{E:function(){return x}});var i=n(64762),o=n(4528),r=n(33559),s=n(37716),c=n(39895),a=n(35957),d=n(37556),l=n(38583),g=n(3679);function p(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div",21),s.TgZ(1,"div",22),s.NdJ("click",function(){return s.CHM(e),s.oxw().openSearch()}),s._UZ(2,"ion-icon",23),s.qZA(),s.qZA()}}function h(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div",28),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(2);return t.openSearch(),t.showSearch=!0}),s._UZ(1,"ion-icon",23),s.qZA()}}function f(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"button",29),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(2);return t.closeSearch(),t.showSearch=!1,t.searchSubject=""}),s._UZ(1,"ion-icon",30),s.qZA()}}function u(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div",32),s.TgZ(1,"div",33),s.NdJ("click",function(){return s.CHM(e),s.oxw(3).basicSearch()}),s._UZ(2,"ion-icon",34),s.qZA(),s.TgZ(3,"div",35),s.TgZ(4,"ion-input",36),s.NdJ("keyup.enter",function(){return s.CHM(e),s.oxw(3).basicSearch()})("ngModelChange",function(t){return s.CHM(e),s.oxw(3).searchSubject=t})("ngModelChange",function(){return s.CHM(e),s.oxw(3).dynamicSearch()}),s.qZA(),s.qZA(),s.TgZ(5,"div",33),s.NdJ("click",function(){return s.CHM(e),s.oxw(3).clearSearchInput()}),s._UZ(6,"ion-icon",37),s.qZA(),s.qZA()}if(2&e){const e=s.oxw(3);s.xp6(4),s.Q6J("ngModel",e.searchSubject)}}function m(e,t){if(1&e&&(s.TgZ(0,"div"),s.YNc(1,u,7,1,"div",31),s.qZA()),2&e){const e=s.oxw(2);s.xp6(1),s.Q6J("ngIf",e.showSearch)}}function Z(e,t){if(1&e&&(s.TgZ(0,"div",24),s.YNc(1,h,2,0,"div",25),s.YNc(2,f,2,0,"button",26),s.YNc(3,m,2,1,"div",27),s.qZA()),2&e){const e=s.oxw();s.xp6(1),s.Q6J("ngIf",!e.showSearch),s.xp6(1),s.Q6J("ngIf",e.showSearch),s.xp6(1),s.Q6J("ngIf",e.showSearch)}}let x=(()=>{class e{constructor(e,t,n,i){this.router=e,this.modalController=t,this.animationController=n,this.searchSubject="",this.showSearch=!1,this.hideSearchBtn=!1,this.loggeduser=i.ValidatedUser,e.events.subscribe(e=>{this.showSearch=!1})}ngOnInit(){this.hideSearch()}hideSearch(){"/home/events"!=this.router.url&&"/home/chat"!=this.router.url||(this.hideSearchBtn=!0)}locationPathname(){return window.location.pathname}openSearch(){return(0,i.mG)(this,void 0,void 0,function*(){let e,t,n;window.innerWidth<1366?(e="modal modal-width-100",t=!0):(e="modal modal-desktop desktop-search",t=!1),window.location.pathname.startsWith("/home/agenda")?n="Agenda":window.location.pathname.startsWith("/home/gabinete-digital")?n="AccoesPresidenciais & ArquivoDespachoElect":window.location.pathname.startsWith("/home/publications")&&(n="AccoesPresidenciais");const i=yield this.modalController.create({component:o.Z,cssClass:e,componentProps:{type:n,showSearchInput:t,select:!1}});return yield i.present()})}changeRoute(e){this.router.navigateByUrl(e)}openProfile(){return(0,i.mG)(this,void 0,void 0,function*(){const e=e=>{const t=this.animationController.create().addElement(e.querySelector("ion-backdrop")).fromTo("opacity","0.01","var(--backdrop-opacity)"),n=this.animationController.create().addElement(e.querySelector(".modal-wrapper")).keyframes([{offset:0,opacity:"1",right:"-100%"},{offset:1,opacity:"1",right:"0px"}]);return this.animationController.create().addElement(e).easing("ease-out").duration(500).addAnimation([t,n])},t=yield this.modalController.create({enterAnimation:e,leaveAnimation:t=>e(t).direction("reverse"),component:r.G,cssClass:"model profile-modal search-submodal",componentProps:{}});return yield t.present()})}dynamicSearch(){return(0,i.mG)(this,void 0,void 0,function*(){window.dynamicSearch(this.searchSubject)})}closeSearch(){return(0,i.mG)(this,void 0,void 0,function*(){this.modalController.dismiss()})}clearSearchInput(){this.searchSubject="",window.dynamicSearch(this.searchSubject)}basicSearch(){return(0,i.mG)(this,void 0,void 0,function*(){window.searchTriger()})}profileLabel(e){return"MDGPR"==e?"MD":"PR"==e?e:"UN"}}return e.\u0275fac=function(t){return new(t||e)(s.Y36(c.F0),s.Y36(a.IN),s.Y36(a.vB),s.Y36(d.e))},e.\u0275cmp=s.Xpm({type:e,selectors:[["app-header"]],decls:40,vars:14,consts:[[1,"pb-10","ion-toolbar","text-white"],[1,"mobile","d-flex","div-top-header","justify-space-between"],["class","div-search",4,"ngIf"],[1,"div-logo","height-fit-content"],["src","assets/images/logo-no-bg.png","alt","logo"],[1,"div-profile","cursor-pointer",3,"click"],["src","assets/images/icons-profile.svg",1,"icon"],[1,"profile-text"],[1,"desktop","mx-20"],[1,"d-flex","justify-space-between","align-center"],["tab","events",1,"div-logo","height-fit-content"],[1,"d-flex","flex-1","pr-20","pl-50"],[1,"tab","mr-20","d-flex","align-center","cursor-pointer",3,"click"],["src","assets/images/icons-nav-home-active.svg",1,"font-40"],["src","assets/images/icons-nav-agenda-inactive.svg",1,"font-40"],["src","assets/images/icons-nav-home-dk.svg",1,"font-40"],["src","assets/images/icons-nav-a-es-inactive.svg",1,"font-40"],["src","assets/images/icons-nav-grupos-inactive-dk-white.svg",1,"font-40"],[1,"header-btns","d-flex"],["class","mr-10 d-flex align-center cursor-pointer",4,"ngIf"],[1,"div-profile","d-flex","cursor-pointer",3,"click"],[1,"div-search"],[3,"click"],["src","assets/images/icons-search.svg",1,"font-45"],[1,"mr-10","d-flex","align-center","cursor-pointer"],["style","padding-top: 5px;",3,"click",4,"ngIf"],["class","btn-no-color",3,"click",4,"ngIf"],[4,"ngIf"],[2,"padding-top","5px",3,"click"],[1,"btn-no-color",3,"click"],["name","restaurant-outline","src","assets/images/icons-search-close.svg",1,"font-40"],["class","d-flex search-input-container ml-10 justify-between",4,"ngIf"],[1,"d-flex","search-input-container","ml-10","justify-between"],[1,"icon",3,"click"],["slot","end","name","search",1,"icon-z"],[1,"input-text","d-flex","ion-align-items-center"],["type","search","placeholder","Pesquisar",1,"search-input","text-black",3,"ngModel","keyup.enter","ngModelChange"],["name","restaurant-outline","src","assets/images/icons-search-close.svg"]],template:function(e,t){1&e&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.YNc(2,p,3,0,"div",2),s.TgZ(3,"div",3),s._UZ(4,"img",4),s.qZA(),s.TgZ(5,"div",5),s.NdJ("click",function(){return t.openProfile()}),s._UZ(6,"ion-icon",6),s.TgZ(7,"ion-label",7),s._uU(8),s.qZA(),s.qZA(),s.qZA(),s.TgZ(9,"div",8),s.TgZ(10,"div",9),s.TgZ(11,"div",10),s._UZ(12,"img",4),s.qZA(),s.TgZ(13,"div",11),s.TgZ(14,"div",12),s.NdJ("click",function(){return t.changeRoute("/home/events")}),s._UZ(15,"ion-icon",13),s.TgZ(16,"span"),s._uU(17,"In\xedcio"),s.qZA(),s.qZA(),s.TgZ(18,"div",12),s.NdJ("click",function(){return t.changeRoute("/home/agenda")}),s._UZ(19,"ion-icon",14),s.TgZ(20,"span"),s._uU(21,"Agenda"),s.qZA(),s.qZA(),s.TgZ(22,"div",12),s.NdJ("click",function(){return t.changeRoute("/home/gabinete-digital")}),s._UZ(23,"ion-icon",15),s.TgZ(24,"span"),s._uU(25,"Gabinete"),s.qZA(),s.qZA(),s.TgZ(26,"div",12),s.NdJ("click",function(){return t.changeRoute("/home/publications")}),s._UZ(27,"ion-icon",16),s.TgZ(28,"span"),s._uU(29,"Ac\xe7\xf5es"),s.qZA(),s.qZA(),s.TgZ(30,"div",12),s.NdJ("click",function(){return t.changeRoute("/home/chat")}),s._UZ(31,"ion-icon",17),s.TgZ(32,"span"),s._uU(33,"Chat"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(34,"div",18),s.YNc(35,Z,4,3,"div",19),s.TgZ(36,"div",20),s.NdJ("click",function(){return t.openProfile()}),s._UZ(37,"ion-icon",6),s.TgZ(38,"ion-label",7),s._uU(39),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&e&&(s.xp6(2),s.Q6J("ngIf",!t.hideSearchBtn),s.xp6(6),s.Oqu(t.loggeduser.Profile),s.xp6(6),s.ekj("active","/home/events"==t.locationPathname()),s.xp6(4),s.ekj("active","/home/agenda"==t.locationPathname()),s.xp6(4),s.ekj("active","/home/gabinete-digital"==t.locationPathname()),s.xp6(4),s.ekj("active","/home/publications"==t.locationPathname()),s.xp6(4),s.ekj("active","/home/chat"==t.locationPathname()),s.xp6(5),s.Q6J("ngIf",!t.hideSearchBtn),s.xp6(4),s.Oqu(t.profileLabel(t.loggeduser.Profile)))},directives:[l.O5,a.gu,a.Q$,a.pK,a.j9,g.JJ,g.On],styles:[".div-top-header[_ngcontent-%COMP%]{margin:0 1.25em;padding-top:.9375em;border:0!important}.div-logo[_ngcontent-%COMP%]{background:transparent;width:8.75em;justify-content:center;display:flex}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;margin:0 auto}.header-btns[_ngcontent-%COMP%]{justify-content:center;align-items:center}.div-profile[_ngcontent-%COMP%]{width:90px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;font-size:45px;justify-content:flex-end;display:flex;background-color:transparent;justify-content:center;align-items:center;overflow:auto}.div-profile[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{position:relative;border:none!important}.div-profile[_ngcontent-%COMP%] .profile-text[_ngcontent-%COMP%]{font-size:20px;font-weight:300;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:absolute}.desktop[_ngcontent-%COMP%]{display:none}@media only screen and (min-width: 1366px){.mobile[_ngcontent-%COMP%]{display:none!important}.desktop[_ngcontent-%COMP%]{display:block}}.tab[_ngcontent-%COMP%]{height:65px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.active[_ngcontent-%COMP%]{border-top:7px solid #fff}.search-input-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:27.5px;border:1px solid #ebebeb}.search-input-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{color:#797979;width:45px;height:45px;display:flex;justify-content:center;font-size:25px;align-items:center}.search-input-container[_ngcontent-%COMP%] .input-text[_ngcontent-%COMP%]{width:100%}.search-input-container[_ngcontent-%COMP%] .icon-z[_ngcontent-%COMP%]{width:20px}"]}),e})()}}]); |