mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[9763,6527,5763,2417,3756,6055,5457,1087,4413,5183,5802,9391,1485,9074,4176,9406],{17690:function(e,t,n){"use strict";n.d(t,{g:function(){return i}});var o=n(37716);let i=(()=>{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=o.Yjl({name:"customTask",type:e,pure:!0}),e})()},6527:function(e,t,n){"use strict";n.d(t,{a:function(){return u}});var o=n(38583),i=n(3679),c=n(35957),a=n(39895),r=n(962),s=n(37716);const l=[{path:"",component:r.E}];let d=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=s.oAB({type:e}),e.\u0275inj=s.cJS({imports:[[a.Bz.forChild(l)],a.Bz]}),e})(),u=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=s.oAB({type:e}),e.\u0275inj=s.cJS({imports:[[o.ez,i.u5,c.Pc,d]]}),e})()},962:function(e,t,n){"use strict";n.d(t,{E:function(){return w}});var o=n(64762),i=n(4528),c=n(33559),a=n(37716),r=n(39895),s=n(35957),l=n(37556),d=n(38583),u=n(3679);function h(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"div",21),a.TgZ(1,"div",22),a.NdJ("click",function(){return a.CHM(e),a.oxw().openSearch()}),a._UZ(2,"ion-icon",23),a.qZA(),a.qZA()}}function g(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"div",28),a.NdJ("click",function(){a.CHM(e);const t=a.oxw(2);return t.openSearch(),t.showSearch=!0}),a._UZ(1,"ion-icon",23),a.qZA()}}function p(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"button",29),a.NdJ("click",function(){a.CHM(e);const t=a.oxw(2);return t.closeSearch(),t.showSearch=!1,t.searchSubject=""}),a._UZ(1,"ion-icon",30),a.qZA()}}function f(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"div",32),a.TgZ(1,"div",33),a.NdJ("click",function(){return a.CHM(e),a.oxw(3).basicSearch()}),a._UZ(2,"ion-icon",34),a.qZA(),a.TgZ(3,"div",35),a.TgZ(4,"ion-input",36),a.NdJ("keyup.enter",function(){return a.CHM(e),a.oxw(3).basicSearch()})("ngModelChange",function(t){return a.CHM(e),a.oxw(3).searchSubject=t})("ngModelChange",function(){return a.CHM(e),a.oxw(3).dynamicSearch()}),a.qZA(),a.qZA(),a.TgZ(5,"div",33),a.NdJ("click",function(){return a.CHM(e),a.oxw(3).clearSearchInput()}),a._UZ(6,"ion-icon",37),a.qZA(),a.qZA()}if(2&e){const e=a.oxw(3);a.xp6(4),a.Q6J("ngModel",e.searchSubject)}}function m(e,t){if(1&e&&(a.TgZ(0,"div"),a.YNc(1,f,7,1,"div",31),a.qZA()),2&e){const e=a.oxw(2);a.xp6(1),a.Q6J("ngIf",e.showSearch)}}function v(e,t){if(1&e&&(a.TgZ(0,"div",24),a.YNc(1,g,2,0,"div",25),a.YNc(2,p,2,0,"button",26),a.YNc(3,m,2,1,"div",27),a.qZA()),2&e){const e=a.oxw();a.xp6(1),a.Q6J("ngIf",!e.showSearch),a.xp6(1),a.Q6J("ngIf",e.showSearch),a.xp6(1),a.Q6J("ngIf",e.showSearch)}}let w=(()=>{class e{constructor(e,t,n,o){this.router=e,this.modalController=t,this.animationController=n,this.searchSubject="",this.showSearch=!1,this.hideSearchBtn=!1,this.loggeduser=o.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,o.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 o=yield this.modalController.create({component:i.Z,cssClass:e,componentProps:{type:n,showSearchInput:t,select:!1}});return yield o.present()})}changeRoute(e){this.router.navigateByUrl(e)}openProfile(){return(0,o.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:c.G,cssClass:"model profile-modal search-submodal",componentProps:{}});return yield t.present()})}dynamicSearch(){return(0,o.mG)(this,void 0,void 0,function*(){window.dynamicSearch(this.searchSubject)})}closeSearch(){return(0,o.mG)(this,void 0,void 0,function*(){this.modalController.dismiss()})}clearSearchInput(){this.searchSubject="",window.dynamicSearch(this.searchSubject)}basicSearch(){return(0,o.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)(a.Y36(r.F0),a.Y36(s.IN),a.Y36(s.vB),a.Y36(l.e))},e.\u0275cmp=a.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&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.YNc(2,h,3,0,"div",2),a.TgZ(3,"div",3),a._UZ(4,"img",4),a.qZA(),a.TgZ(5,"div",5),a.NdJ("click",function(){return t.openProfile()}),a._UZ(6,"ion-icon",6),a.TgZ(7,"ion-label",7),a._uU(8),a.qZA(),a.qZA(),a.qZA(),a.TgZ(9,"div",8),a.TgZ(10,"div",9),a.TgZ(11,"div",10),a._UZ(12,"img",4),a.qZA(),a.TgZ(13,"div",11),a.TgZ(14,"div",12),a.NdJ("click",function(){return t.changeRoute("/home/events")}),a._UZ(15,"ion-icon",13),a.TgZ(16,"span"),a._uU(17,"In\xedcio"),a.qZA(),a.qZA(),a.TgZ(18,"div",12),a.NdJ("click",function(){return t.changeRoute("/home/agenda")}),a._UZ(19,"ion-icon",14),a.TgZ(20,"span"),a._uU(21,"Agenda"),a.qZA(),a.qZA(),a.TgZ(22,"div",12),a.NdJ("click",function(){return t.changeRoute("/home/gabinete-digital")}),a._UZ(23,"ion-icon",15),a.TgZ(24,"span"),a._uU(25,"Gabinete"),a.qZA(),a.qZA(),a.TgZ(26,"div",12),a.NdJ("click",function(){return t.changeRoute("/home/publications")}),a._UZ(27,"ion-icon",16),a.TgZ(28,"span"),a._uU(29,"Ac\xe7\xf5es"),a.qZA(),a.qZA(),a.TgZ(30,"div",12),a.NdJ("click",function(){return t.changeRoute("/home/chat")}),a._UZ(31,"ion-icon",17),a.TgZ(32,"span"),a._uU(33,"Chat"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(34,"div",18),a.YNc(35,v,4,3,"div",19),a.TgZ(36,"div",20),a.NdJ("click",function(){return t.openProfile()}),a._UZ(37,"ion-icon",6),a.TgZ(38,"ion-label",7),a._uU(39),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(2),a.Q6J("ngIf",!t.hideSearchBtn),a.xp6(6),a.Oqu(t.loggeduser.Profile),a.xp6(6),a.ekj("active","/home/events"==t.locationPathname()),a.xp6(4),a.ekj("active","/home/agenda"==t.locationPathname()),a.xp6(4),a.ekj("active","/home/gabinete-digital"==t.locationPathname()),a.xp6(4),a.ekj("active","/home/publications"==t.locationPathname()),a.xp6(4),a.ekj("active","/home/chat"==t.locationPathname()),a.xp6(5),a.Q6J("ngIf",!t.hideSearchBtn),a.xp6(4),a.Oqu(t.profileLabel(t.loggeduser.Profile)))},directives:[d.O5,s.gu,s.Q$,s.pK,s.j9,u.JJ,u.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})()}}]); |