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

1 line
26 KiB
JavaScript

!function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function n(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[8088],{17690:function(t,i,o){"use strict";o.d(i,{g:function(){return a}});var r=o(37716),a=function(){var t=function(){function t(){e(this,t)}return n(t,[{key:"transform",value:function(e){var t=new Date(e.taskStartDate);t.setMonth(t.getMonth()+1);var 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}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"customTask",type:t,pure:!0}),t}()},84780:function(t,n,i){"use strict";i.r(n),i.d(n,{PedidosPageModule:function(){return p}});var o,r=i(38583),a=i(3679),c=i(35957),s=i(39895),d=i(95451),l=i(37716),g=[{path:"",component:d.U}],u=function(){var t=function t(){e(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[s.Bz.forChild(g)],s.Bz]}),t}(),p=((o=function t(){e(this,t)}).\u0275fac=function(e){return new(e||o)},o.\u0275mod=l.oAB({type:o}),o.\u0275inj=l.cJS({imports:[[r.ez,a.u5,c.Pc,u]]}),o)},95451:function(t,i,o){"use strict";o.d(i,{U:function(){return y}});var r=o(64762),a=o(37716),c=o(39895),s=o(87732),d=o(46176),l=o(8500),g=o(17690),u=o(28621),p=o(35957),f=o(25970),h=o(3679),m=o(38583);function v(e,t){1&e&&a._UZ(0,"ion-progress-bar",15)}function Z(e,t){if(1&e&&(a.TgZ(0,"label"),a._uU(1),a.qZA()),2&e){var n=a.oxw().$implicit;a.xp6(1),a.Oqu(n.DocumentsQty)}}function x(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",18),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw(3).goToPedido(e.SerialNumber)}),a.TgZ(1,"div",19),a.TgZ(2,"div",20),a.TgZ(3,"div",21),a.TgZ(4,"ion-label"),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"div",22),a._UZ(7,"ion-icon",23),a.YNc(8,Z,2,1,"label",13),a.qZA(),a.qZA(),a.TgZ(9,"div",24),a.TgZ(10,"div",25),a.TgZ(11,"ion-label"),a._uU(12),a.qZA(),a.qZA(),a.qZA(),a.TgZ(13,"div",26),a.TgZ(14,"div",27),a.TgZ(15,"span",28),a._uU(16),a.qZA(),a.qZA(),a.TgZ(17,"div",29),a.TgZ(18,"ion-label"),a._uU(19),a.ALo(20,"date"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit;a.xp6(5),a.Oqu(i.Folio),a.xp6(3),a.Q6J("ngIf",0!=i.DocumentsQty),a.xp6(4),a.Oqu(i.Senders),a.xp6(4),a.Oqu(i.activityInstanceName),a.xp6(3),a.Oqu(a.xi3(20,5,i.CreateDate,"dd-MM-yyyy HH:mm"))}}function w(e,t){if(1&e&&(a.TgZ(0,"ion-list"),a.YNc(1,x,21,8,"div",17),a.qZA()),2&e){var n=a.oxw(2);a.xp6(1),a.Q6J("ngForOf",n.pedidosstore.listparecer)}}function b(e,t){1&e&&(a.TgZ(0,"div"),a.YNc(1,w,2,1,"ion-list",16),a.qZA()),2&e&&(a.xp6(1),a.Q6J("ngSwitchCase","parecer"))}function k(e,t){if(1&e&&(a.TgZ(0,"label"),a._uU(1),a.qZA()),2&e){var n=a.oxw().$implicit;a.xp6(1),a.Oqu(n.DocumentsQty)}}function _(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",18),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw(3).goToPedido(e.SerialNumber)}),a.TgZ(1,"div",19),a.TgZ(2,"div",20),a.TgZ(3,"div",21),a.TgZ(4,"ion-label"),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"div",22),a._UZ(7,"ion-icon",23),a.YNc(8,k,2,1,"label",13),a.qZA(),a.qZA(),a.TgZ(9,"div",24),a.TgZ(10,"div",25),a.TgZ(11,"ion-label"),a._uU(12),a.qZA(),a.qZA(),a.qZA(),a.TgZ(13,"div",26),a.TgZ(14,"div",27),a.TgZ(15,"span",28),a._uU(16),a.qZA(),a.qZA(),a.TgZ(17,"div",29),a.TgZ(18,"ion-label"),a._uU(19),a.ALo(20,"date"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit;a.xp6(5),a.AsE("",i.Folio," ",i.Status,""),a.xp6(3),a.Q6J("ngIf",0!=i.DocumentsQty),a.xp6(4),a.Oqu(i.Senders),a.xp6(4),a.Oqu(i.activityInstanceName),a.xp6(3),a.Oqu(a.xi3(20,6,i.CreateDate,"dd-MM-yyyy HH:mm"))}}function C(e,t){if(1&e&&(a.TgZ(0,"ion-list"),a.YNc(1,_,21,9,"div",17),a.qZA()),2&e){var n=a.oxw(2);a.xp6(1),a.Q6J("ngForOf",n.pedidosstore.listdeferimento)}}function P(e,t){1&e&&(a.TgZ(0,"div"),a.YNc(1,C,2,1,"ion-list",16),a.qZA()),2&e&&(a.xp6(1),a.Q6J("ngSwitchCase","deferimento"))}function A(e,t){1&e&&(a.TgZ(0,"div",32),a.TgZ(1,"span"),a._uU(2,"Lista vazia"),a.qZA(),a.qZA())}function T(e,t){if(1&e&&(a.TgZ(0,"div",30),a.YNc(1,A,3,0,"div",31),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Q6J("ngIf",!n.skeletonLoader&&0==n.pedidosstore.listparecer.length)}}function q(e,t){1&e&&(a.TgZ(0,"div",32),a.TgZ(1,"span"),a._uU(2,"Lista vazia"),a.qZA(),a.qZA())}function M(e,t){if(1&e&&(a.TgZ(0,"div",30),a.YNc(1,q,3,0,"div",31),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Q6J("ngIf",!n.skeletonLoader&&0==n.pedidosstore.listdeferimento.length)}}function O(e,t){1&e&&(a.TgZ(0,"div"),a.TgZ(1,"ion-list"),a.TgZ(2,"ion-item"),a.TgZ(3,"ion-thumbnail",33),a._UZ(4,"ion-skeleton-text",34),a.qZA(),a.TgZ(5,"ion-label"),a.TgZ(6,"h3"),a._UZ(7,"ion-skeleton-text",35),a.qZA(),a.TgZ(8,"p"),a._UZ(9,"ion-skeleton-text",36),a.qZA(),a.TgZ(10,"p"),a._UZ(11,"ion-skeleton-text",37),a.qZA(),a.qZA(),a.qZA(),a.TgZ(12,"ion-item"),a.TgZ(13,"ion-thumbnail",33),a._UZ(14,"ion-skeleton-text",34),a.qZA(),a.TgZ(15,"ion-label"),a.TgZ(16,"h3"),a._UZ(17,"ion-skeleton-text",35),a.qZA(),a.TgZ(18,"p"),a._UZ(19,"ion-skeleton-text",36),a.qZA(),a.TgZ(20,"p"),a._UZ(21,"ion-skeleton-text",37),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA())}var y=function(){var t=function(){function t(n,i,o,r){e(this,t),this.router=n,this.processes=i,this.modalController=o,this.alertService=r,this.taskslist=[],this.parecerList=[],this.parecerListResult=[],this.deferimentoListResult=[],this.deferimentoList=[],this.openPedido=new a.vpe,this.skeletonLoader=!0,this.pedidosstore=l.d,this.customTaskPipe=new g.g,this.profile="mdgpr"}return n(t,[{key:"ngOnInit",value:function(){var e=this;this.router.events.forEach(function(t){(t instanceof c.OD&&"/home/gabinete-digital?parecer=true".startsWith(t.url)||t instanceof c.OD&&"/home/gabinete-digital?deferimento=true".startsWith(t.url)||t instanceof c.OD&&"/home/gabinete-digital?pedidos=true".startsWith(t.url))&&(window.location.pathname.split("/").length>=4&&window.location.pathname.startsWith("/home/gabinete-digital")?e.doRefresh():e.LoadList())})}},{key:"segmentChanged",value:function(e){this.LoadList()}},{key:"LoadList",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n,i,o=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.skeletonLoader=!0,"parecer"!=this.segment){e.next=13;break}return this.taskType="Pedido de Parecer",e.next=4,this.processes.GetTasksList("Pedido de Parecer",!1).toPromise();case 4:return t=e.sent,e.next=7,this.processes.GetTasksList("Pedido de Parecer do Presidente",!1).toPromise();case 7:n=e.sent,this.skeletonLoader=!1,i=t.concat(n).reverse(),this.parecerList=new Array,i.filter(function(e){return"Active"==e.workflowInstanceDataFields.Status}).forEach(function(e){var t=o.customTaskPipe.transform(e);o.parecerList.push(t)}),this.pedidosstore.resetparecer(this.parecerList),e.next=14;break;case 13:"deferimento"==this.segment&&(this.taskType="Pedido de Deferimento",this.processes.GetTasksList("Pedido de Deferimento",!1).subscribe(function(e){o.taskslist=e.filter(function(e){return"Active"==e.workflowInstanceDataFields.Status}),o.skeletonLoader=!1,o.deferimentoList=new Array,e.reverse().filter(function(e){return"Active"==e.workflowInstanceDataFields.Status}).forEach(function(e){var t=o.customTaskPipe.transform(e);o.deferimentoList.push(t)}),o.pedidosstore.resetdeferimento(o.deferimentoList)}));case 14:case"end":return e.stop()}},e,this)}))}},{key:"doRefresh",value:function(){var e=this;setTimeout(function(){e.LoadList()},1e3)}},{key:"goToPedido",value:function(e){this.router.navigate(["/home/gabinete-digital/pedidos",e,"gabinete-digital"])}},{key:"viewPedidoDetail",value:function(e){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.modalController.create({component:d.k,componentProps:{enterAnimation:"",serialNumber:e,profile:this.profile},cssClass:"modal modal-desktop"});case 2:return n=t.sent,t.next=5,n.present();case 5:n.onDidDismiss().then(function(e){console.log("refresh list"),i.LoadList()});case 6:case"end":return t.stop()}},t,this)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(c.F0),a.Y36(u.$),a.Y36(p.IN),a.Y36(f.c))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-pedidos"]],viewQuery:function(e,t){var n;(1&e&&a.Gf(s.eV,5),2&e)&&(a.iGM(n=a.CRH())&&(t.myCal=n.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&&(a.TgZ(0,"ion-header",0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a.TgZ(3,"ion-label"),a._uU(4,"Pedidos"),a.qZA(),a.qZA(),a.TgZ(5,"div",3),a.TgZ(6,"button",4),a.NdJ("click",function(){return t.doRefresh()}),a._UZ(7,"ion-icon",5),a.qZA(),a.qZA(),a.qZA(),a.TgZ(8,"ion-toolbar"),a.TgZ(9,"ion-segment",6),a.NdJ("ngModelChange",function(e){return t.segment=e})("ionChange",function(e){return t.segmentChanged(e)}),a.TgZ(10,"ion-segment-button",7),a._uU(11," Pedidos de Parecer "),a.qZA(),a.TgZ(12,"ion-segment-button",8),a._uU(13," Pedidos de Deferimento "),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(14,"ion-content"),a.TgZ(15,"ion-refresher",9),a.NdJ("ionRefresh",function(){return t.doRefresh()}),a._UZ(16,"ion-refresher-content",10),a.qZA(),a.TgZ(17,"div",11),a.YNc(18,v,1,0,"ion-progress-bar",12),a.YNc(19,b,2,1,"div",13),a.YNc(20,P,2,1,"div",13),a.YNc(21,T,2,1,"div",14),a.YNc(22,M,2,1,"div",14),a.YNc(23,O,22,0,"div",13),a.qZA(),a.qZA()),2&e&&(a.xp6(9),a.Q6J("ngModel",t.segment),a.xp6(8),a.Q6J("ngSwitch",t.segment),a.xp6(1),a.Q6J("ngIf",t.skeletonLoader),a.xp6(1),a.Q6J("ngIf",t.pedidosstore.listparecer.length>=1),a.xp6(1),a.Q6J("ngIf",t.pedidosstore.listdeferimento.length>=1),a.xp6(1),a.Q6J("ngSwitchCase","parecer"),a.xp6(1),a.Q6J("ngSwitchCase","deferimento"),a.xp6(1),a.Q6J("ngIf",t.skeletonLoader&&0==t.pedidosstore.listparecer.length&&t.skeletonLoader&&0==t.pedidosstore.listdeferimento.length))},directives:[p.Gu,p.Q$,p.gu,p.sr,p.cJ,p.QI,h.JJ,h.On,p.GO,p.W2,p.nJ,p.Wo,m.RF,m.O5,m.n9,p.X7,p.q_,m.sg,p.Ie,p.Bs,p.CK],pipes:[m.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}"]}),t}()},962:function(t,i,o){"use strict";o.d(i,{E:function(){return w}});var r=o(64762),a=o(4528),c=o(33559),s=o(37716),d=o(39895),l=o(35957),g=o(37556),u=o(38583),p=o(3679);function f(e,t){if(1&e){var n=s.EpF();s.TgZ(0,"div",21),s.TgZ(1,"div",22),s.NdJ("click",function(){return s.CHM(n),s.oxw().openSearch()}),s._UZ(2,"ion-icon",23),s.qZA(),s.qZA()}}function h(e,t){if(1&e){var n=s.EpF();s.TgZ(0,"div",28),s.NdJ("click",function(){s.CHM(n);var e=s.oxw(2);return e.openSearch(),e.showSearch=!0}),s._UZ(1,"ion-icon",23),s.qZA()}}function m(e,t){if(1&e){var n=s.EpF();s.TgZ(0,"button",29),s.NdJ("click",function(){s.CHM(n);var e=s.oxw(2);return e.closeSearch(),e.showSearch=!1,e.searchSubject=""}),s._UZ(1,"ion-icon",30),s.qZA()}}function v(e,t){if(1&e){var n=s.EpF();s.TgZ(0,"div",32),s.TgZ(1,"div",33),s.NdJ("click",function(){return s.CHM(n),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(n),s.oxw(3).basicSearch()})("ngModelChange",function(e){return s.CHM(n),s.oxw(3).searchSubject=e})("ngModelChange",function(){return s.CHM(n),s.oxw(3).dynamicSearch()}),s.qZA(),s.qZA(),s.TgZ(5,"div",33),s.NdJ("click",function(){return s.CHM(n),s.oxw(3).clearSearchInput()}),s._UZ(6,"ion-icon",37),s.qZA(),s.qZA()}if(2&e){var i=s.oxw(3);s.xp6(4),s.Q6J("ngModel",i.searchSubject)}}function Z(e,t){if(1&e&&(s.TgZ(0,"div"),s.YNc(1,v,7,1,"div",31),s.qZA()),2&e){var n=s.oxw(2);s.xp6(1),s.Q6J("ngIf",n.showSearch)}}function x(e,t){if(1&e&&(s.TgZ(0,"div",24),s.YNc(1,h,2,0,"div",25),s.YNc(2,m,2,0,"button",26),s.YNc(3,Z,2,1,"div",27),s.qZA()),2&e){var n=s.oxw();s.xp6(1),s.Q6J("ngIf",!n.showSearch),s.xp6(1),s.Q6J("ngIf",n.showSearch),s.xp6(1),s.Q6J("ngIf",n.showSearch)}}var w=function(){var t=function(){function t(n,i,o,r){var a=this;e(this,t),this.router=n,this.modalController=i,this.animationController=o,this.searchSubject="",this.showSearch=!1,this.hideSearchBtn=!1,this.loggeduser=r.ValidatedUser,n.events.subscribe(function(e){a.showSearch=!1})}return n(t,[{key:"ngOnInit",value:function(){this.hideSearch()}},{key:"hideSearch",value:function(){"/home/events"!=this.router.url&&"/home/chat"!=this.router.url||(this.hideSearchBtn=!0)}},{key:"locationPathname",value:function(){return window.location.pathname}},{key:"openSearch",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n,i,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return window.innerWidth<1366?(t="modal modal-width-100",n=!0):(t="modal modal-desktop desktop-search",n=!1),window.location.pathname.startsWith("/home/agenda")?i="Agenda":window.location.pathname.startsWith("/home/gabinete-digital")?i="AccoesPresidenciais & ArquivoDespachoElect":window.location.pathname.startsWith("/home/publications")&&(i="AccoesPresidenciais"),e.next=3,this.modalController.create({component:a.Z,cssClass:t,componentProps:{type:i,showSearchInput:n,select:!1}});case 3:return o=e.sent,e.next=6,o.present();case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e,this)}))}},{key:"changeRoute",value:function(e){this.router.navigateByUrl(e)}},{key:"openProfile",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n,i=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=function(e){var t=i.animationController.create().addElement(e.querySelector("ion-backdrop")).fromTo("opacity","0.01","var(--backdrop-opacity)"),n=i.animationController.create().addElement(e.querySelector(".modal-wrapper")).keyframes([{offset:0,opacity:"1",right:"-100%"},{offset:1,opacity:"1",right:"0px"}]);return i.animationController.create().addElement(e).easing("ease-out").duration(500).addAnimation([t,n])},e.next=3,this.modalController.create({enterAnimation:t,leaveAnimation:function(e){return t(e).direction("reverse")},component:c.G,cssClass:"model profile-modal search-submodal",componentProps:{}});case 3:return n=e.sent,e.next=6,n.present();case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e,this)}))}},{key:"dynamicSearch",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:window.dynamicSearch(this.searchSubject);case 1:case"end":return e.stop()}},e,this)}))}},{key:"closeSearch",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.modalController.dismiss();case 1:case"end":return e.stop()}},e,this)}))}},{key:"clearSearchInput",value:function(){this.searchSubject="",window.dynamicSearch(this.searchSubject)}},{key:"basicSearch",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:window.searchTriger();case 1:case"end":return e.stop()}},e)}))}},{key:"profileLabel",value:function(e){return"MDGPR"==e?"MD":"PR"==e?e:"UN"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(d.F0),s.Y36(l.IN),s.Y36(l.vB),s.Y36(g.e))},t.\u0275cmp=s.Xpm({type:t,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,f,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,x,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:[u.O5,l.gu,l.Q$,l.pK,l.j9,p.JJ,p.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}"]}),t}()}}])}();