(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[3101],{8272:function(t,e,n){"use strict";n.d(e,{Q:function(){return f}});var o=n(64762),i=n(37716),a=n(3679),s=n(16738),r=n(28232),c=n(86704),d=n(84465),l=n(35957),p=n(98295),g=n(49983),u=n(25653),h=n(43220);let f=(()=>{class t{constructor(t,e,n,o){this.publicationsService=t,this.toastService=e,this.navParams=n,this.modalController=o,this.validateFrom=!1,this.disabled=!1,this.showSpinners=!0,this.showSeconds=!1,this.touchUi=!1,this.enableMeridian=!1,this.minDate=(new Date).toISOString().slice(0,10),this.stepHour=1,this.stepMinute=5,this.stepSecond=5,this.dateControlStart=new a.NI(s("DD MM YYYY hh")),this.dateControlEnd=new a.NI(s("DD MM YYYY hh")),this.closeDesktopComponent=new i.vpe,this.updateDesktopComponent=new i.vpe,this.folder=new r.Z,this.folderId=this.navParams.get("folderId")}ngOnInit(){this.getPublicationDetail()}close(){this.modalController.dismiss()}getPublicationDetail(){this.publicationsService.GetPresidentialAction(this.folderId).subscribe(t=>{this.folder=t,this.dateControlStart=new a.NI(s(new Date(this.folder.DateBegin))),this.dateControlEnd=new a.NI(s(new Date(this.folder.DateEnd)))})}get dateValid(){return window.innerWidth<=800?this.folder.DateBegin{class t{constructor(t,e,n){this.modalController=t,this.publication=e,this.toastService=n,this.validateFrom=!1,this.disabled=!1,this.showSpinners=!0,this.showSeconds=!1,this.touchUi=!1,this.enableMeridian=!1,this.minDate=(new Date).toISOString().slice(0,10),this.endMinDate=new Date((new Date).getTime()+9e5),this.stepHour=1,this.stepMinute=5,this.stepSecond=5,this.dateControlStart=new i.NI(a("DD MM YYYY hh")),this.dateControlEnd=new i.NI(a("DD MM YYYY hh")),this.showLoader=!1,this.folder=new s.Z,this.dateControlStart=new i.NI(a(new Date)),this.dateControlEnd=new i.NI(a(new Date((new Date).getTime()+9e5))),this.folder.DateBegin=(new Date).toISOString(),this.folder.DateEnd=new Date((new Date).getTime()+9e5).toISOString()}get dateStart(){return this.dateControlStart.value}get dateEnd(){return this.dateControlEnd.value}ngOnInit(){this.segment="Viagem",this.setDefaultTime()}setDefaultTime(){this.folder.DateBegin=(new Date).toISOString(),this.folder.DateEnd=new Date((new Date).getTime()+9e5).toISOString()}segmentChanged(t){console.log(t.detail.value)}get dateValid(){return window.innerWidth<=800?this.folder.DateBegin30),h.xp6(1),h.Q6J("ngIf",t.publication.FileBase64.length<30),h.xp6(3),h.Oqu(t.publication.Message)}}function A(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"div",7),h.TgZ(2,"div",8),h.TgZ(3,"ion-icon",22),h.NdJ("click",function(){return h.CHM(t),h.oxw().close()}),h.qZA(),h.qZA(),h.TgZ(4,"div",10),h.TgZ(5,"ion-label",11),h._UZ(6,"ion-skeleton-text",23),h.qZA(),h.TgZ(7,"p",12),h._UZ(8,"ion-skeleton-text",24),h.qZA(),h.qZA(),h.qZA(),h.TgZ(9,"div",15),h.TgZ(10,"div",19),h._UZ(11,"img",21),h.qZA(),h.TgZ(12,"div",17),h.TgZ(13,"p"),h._UZ(14,"ion-skeleton-text",25),h.qZA(),h.TgZ(15,"p"),h._UZ(16,"ion-skeleton-text",25),h.qZA(),h.qZA(),h.qZA(),h.qZA()}}let T=(()=>{class t{constructor(t,e,n,o,i){this.modalController=t,this.navParams=e,this.publications=n,this.animationController=o,this.toastService=i,this.publicationId=this.navParams.get("publicationId"),this.publication={DateIndex:null,DocumentId:"",ProcessId:"",Title:"",Message:"",DatePublication:null,FileBase64:"",OriginalFileName:"",FileExtension:""}}ngOnInit(){this.getPublicationDetail()}doRefresh(t){this.getPublicationDetail(),setTimeout(()=>{t.target.complete()},2e3)}getPublicationDetail(){this.showLoader=!0,console.log(this.publicationId),this.publications.GetPublicationById(this.publicationId).subscribe(t=>{console.log(t),this.publication={DateIndex:t.DateIndex,DocumentId:t.DocumentId,ProcessId:t.ProcessId,Title:t.Title,Message:t.Message,DatePublication:t.DatePublication,FileBase64:"data:image/jpg;base64,"+t.FileBase64,OriginalFileName:t.OriginalFileName,FileExtension:"jpeg"},this.showLoader=!1})}close(){this.modalController.dismiss()}deletePost(){return(0,r.mG)(this,void 0,void 0,function*(){const t=this.toastService.loading();try{yield this.publications.DeletePublication(this.folderId,this.publicationId).toPromise(),this.toastService.successMessage("Publica\xe7\xe3o eliminado"),this.close()}catch(e){this.toastService.badRequest("Publica\xe7\xe3o n\xe3o eliminado")}finally{t.remove()}})}editPost(t){return(0,r.mG)(this,void 0,void 0,function*(){console.log(this.publication);const e=yield this.modalController.create({component:x.i,componentProps:{publicationType:t,publication:this.publication},cssClass:"new-publication modal modal-desktop",backdropDismiss:!1});yield e.present(),e.onDidDismiss().then(()=>{setTimeout(()=>{this.getPublicationDetail()},5e3)})})}openPreview(t){this.modalController.create({component:w.e,componentProps:{imageUrl:t}}).then(t=>t.present())}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.IN),h.Y36(a.X1),h.Y36(f.H),h.Y36(a.vB),h.Y36(m.k))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-publication-detail"]],decls:14,vars:2,consts:[[1,"content-container"],[4,"ngIf"],[1,"footer-toolbar"],["slot","start"],["fill","clear","color","#ffe0e0",1,"btn-delete",3,"click"],["slot","end"],["fill","clear","color","#fff",1,"btn-ok",3,"click"],[1,"title-content"],[1,"back-icon"],["tappable","","slot","end","src","assets/images/icons-arrow-arrow-left.svg",3,"click"],[1,"div-title"],[1,"title"],[1,"post-data"],["name","refresher","slot","fixed",3,"ionRefresh"],["type","indeterminate",4,"ngIf"],[1,"post-item"],["class","post-img",4,"ngIf"],[1,"post-description"],["type","indeterminate"],[1,"post-img"],["alt","image","tappable","",3,"src","click"],["src","/assets/icon/icon-no-image.svg","alt","image"],["slot","end","src","assets/images/icons-arrow-arrow-left.svg",3,"click"],["animated","",2,"width","60%"],["animated","",2,"width","20%"],["animated",""]],template:function(t,e){1&t&&(h.TgZ(0,"ion-content"),h.TgZ(1,"div",0),h.YNc(2,P,19,9,"div",1),h.YNc(3,A,17,0,"div",1),h.qZA(),h.qZA(),h.TgZ(4,"ion-footer"),h.TgZ(5,"ion-toolbar",2),h.TgZ(6,"ion-buttons",3),h.TgZ(7,"ion-button",4),h.NdJ("click",function(){return e.deletePost()}),h.TgZ(8,"ion-label"),h._uU(9,"Eliminar"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(10,"ion-buttons",5),h.TgZ(11,"ion-button",6),h.NdJ("click",function(){return e.editPost("3")}),h.TgZ(12,"ion-label"),h._uU(13,"Editar"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.xp6(2),h.Q6J("ngIf",""!=e.publication.Title),h.xp6(1),h.Q6J("ngIf",""==e.publication.Title))},directives:[a.W2,o.O5,a.fr,a.sr,a.Sm,a.YG,a.Q$,a.gu,a.nJ,a.Wo,a.X7,a.CK],pipes:[o.uU],styles:["ion-content[_ngcontent-%COMP%]{--background:transparent;--border-radius:30px}ion-footer[_ngcontent-%COMP%]{background:#fff}ion-toolbar[_ngcontent-%COMP%]{border-width:0!important}.div-top-header[_ngcontent-%COMP%]{margin:0 auto;background-color:#0782c9;overflow:auto;padding-top:15px;border:0!important}.div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-logo[_ngcontent-%COMP%]{background:transparent;width:140px;margin:5px 0 0 71px;float:left}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}.content-top[_ngcontent-%COMP%]{background:#f3f2f2;height:20px}.content-container[_ngcontent-%COMP%], .content-top[_ngcontent-%COMP%]{margin:0 auto;border-top-left-radius:25px;border-top-right-radius:25px}.content-container[_ngcontent-%COMP%]{width:100%;background:#fff;height:100%;padding:25px 0 0;overflow:auto}.title-content[_ngcontent-%COMP%]{margin:0 auto;overflow:auto;padding:0!important}.back-icon[_ngcontent-%COMP%]{width:auto;float:left;font-size:35px;overflow:auto}.div-title[_ngcontent-%COMP%]{float:left;margin:2.5px 0 0 5px}.title[_ngcontent-%COMP%]{font-size:25px}.post-img[_ngcontent-%COMP%]{width:100%;height:400px;margin:0 auto;border-radius:0!important;overflow:hidden}.post-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.post-description[_ngcontent-%COMP%]{margin:0 auto 35px}"]}),t})();var D=n(54601);let k=(()=>{class t{constructor(t){this.loadingController=t}simpleLoading(){return(0,r.mG)(this,void 0,void 0,function*(){this.loading=yield this.loadingController.create({cssClass:"my-custom-class",message:"A carregar!...",duration:2e3}),yield this.loading.present()})}customizedLoading(){return(0,r.mG)(this,void 0,void 0,function*(){const t=yield this.loadingController.create({cssClass:"my-custom-class",spinner:null,duration:5e3,message:"Click the backdrop to dismiss early...",translucent:!0,backdropDismiss:!0});yield t.present(),yield t.onDidDismiss()})}}return t.\u0275fac=function(e){return new(e||t)(h.LFG(a.HT))},t.\u0275prov=h.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function _(t,e){1&t&&h._UZ(0,"ion-progress-bar",16)}function O(t,e){if(1&t&&(h.TgZ(0,"div",25),h._UZ(1,"img",26),h.qZA()),2&t){const t=h.oxw().$implicit;h.xp6(1),h.s9C("src",t.FileBase64,h.LSH)}}function q(t,e){1&t&&(h.TgZ(0,"div",27),h._UZ(1,"img",28),h.qZA())}function I(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",17),h.NdJ("click",function(){const e=h.CHM(t).$implicit;return h.oxw().viewPublicationDetail(e.DocumentId)}),h.YNc(1,O,2,1,"div",18),h.YNc(2,q,2,0,"div",19),h.TgZ(3,"div",20),h.TgZ(4,"div",21),h.TgZ(5,"div",22),h.TgZ(6,"ion-label"),h._uU(7),h.qZA(),h.qZA(),h.TgZ(8,"div",23),h._uU(9),h.ALo(10,"date"),h.qZA(),h.qZA(),h.TgZ(11,"div",24),h.TgZ(12,"p"),h._uU(13),h.qZA(),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=e.$implicit;h.xp6(1),h.Q6J("ngIf",t.FileBase64.length>30),h.xp6(1),h.Q6J("ngIf",t.FileBase64.length<30),h.xp6(5),h.Oqu(t.Title),h.xp6(2),h.Oqu(h.xi3(10,5,t.DatePublication,"dd-MM-yy | HH:mm")),h.xp6(4),h.Oqu(t.Message)}}function S(t,e){if(1&t&&(h.TgZ(0,"div",29),h.TgZ(1,"p"),h._uU(2),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.Oqu(t.error)}}let y=(()=>{class t{constructor(t,e,n){this.loadingController=t,this.modalController=e,this.publications=n,this.addNewPublication=new h.vpe,this.openPublicationDetails=new h.vpe,this.goBackToViewPublications=new h.vpe,this.closeDesktopComponent=new h.vpe,this.goBacktoPublicationDetails=new h.vpe,this.publicationListStorage=D.B,this.publicationEventFolderStorage=g.t,this.publicationTravelFolderService=u.e,this.item=new Z.Z}ngOnInit(){"object"==typeof this.folderId&&(this.folderId=this.folderId.ProcessId),this.getPublications(),this.getPublicationDetail()}ngOnChanges(t){"object"==typeof this.folderId&&(this.folderId=this.folderId.ProcessId),console.log("change view to ",this.folderId),setTimeout(()=>{this.getPublications(),this.getPublicationDetail()},100)}doRefresh(t){this.getPublications(),setTimeout(()=>{this.getPublicationDetail()},3e3)}close(){this.closeDesktopComponent.emit()}getPublicationDetail(){let t=this.publicationEventFolderStorage.list.concat(this.publicationTravelFolderService.list);this.item=t.find(t=>t.ProcessId==this.folderId)}getPublications(){this.showLoader=!0;const t=this.folderId;this.publications.GetPublications(t).subscribe(e=>{this.publicationList=new Array,e.forEach(t=>{this.publicationList.push({DateIndex:t.DateIndex,DocumentId:t.DocumentId,ProcessId:t.ProcessId,Title:t.Title,Message:t.Message,DatePublication:t.DatePublication,FileBase64:"data:image/jpg;base64,"+t.FileBase64,OriginalFileName:"",FileExtension:""})}),this.publicationListStorage.add(t,this.publicationList),this.showLoader=!1},t=>{"404"==t.status&&(this.error="Sem publica\xe7\xf5es dispon\xedveis!"),this.showLoader=!1})}AddPublication(t,e){return(0,r.mG)(this,void 0,void 0,function*(){if(window.innerWidth<=1024){const n=yield this.modalController.create({component:x.i,componentProps:{publicationType:t,folderId:e},cssClass:"new-publication modal modal-desktop",backdropDismiss:!1});yield n.present(),n.onDidDismiss().then(()=>{this.doRefresh(event)})}else this.addNewPublication.emit({publicationType:t,folderId:e})})}viewPublicationDetail(t){return(0,r.mG)(this,void 0,void 0,function*(){if(console.log(t),window.innerWidth<=1024){const e=yield this.modalController.create({component:T,componentProps:{publicationId:t},cssClass:"publication-detail modal modal-desktop"});yield e.present(),e.onDidDismiss().then(()=>{this.doRefresh(event)})}else this.openPublicationDetails.emit(t)})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(k),h.Y36(a.IN),h.Y36(f.H))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-view-publications"]],inputs:{folderId:"folderId"},outputs:{addNewPublication:"addNewPublication",openPublicationDetails:"openPublicationDetails",goBackToViewPublications:"goBackToViewPublications",closeDesktopComponent:"closeDesktopComponent",goBacktoPublicationDetails:"goBacktoPublicationDetails"},features:[h.TTD],decls:24,vars:9,consts:[[1,"ion-no-border"],[1,"main-header"],[1,"title-content","d-flex","flex-end"],[1,"div-title","flex-grow-1"],[1,"title"],[1,"item-content-detail"],[1,"item-content-date"],[1,"actions-icon"],[1,"btn-no-color",3,"click"],["src","assets/images/icons-add.svg"],["name","reload-circle",1,"title-icon"],["name","refresher","slot","fixed",3,"ionRefresh"],["type","indeterminate",4,"ngIf"],[1,"main-container","px-20"],["class","post-item d-md-block mb-10",3,"click",4,"ngFor","ngForOf"],["class","center height-100",4,"ngIf"],["type","indeterminate"],[1,"post-item","d-md-block","mb-10",3,"click"],["class","mb-10 post-img width-md-100",4,"ngIf"],["class","mb-10 post-img",4,"ngIf"],[1,"post-content","px-20","width-md-100"],[1,"post-title-time"],[1,"post-title"],[1,"post-data"],[1,"post-description"],[1,"mb-10","post-img","width-md-100"],["alt","image",3,"src"],[1,"mb-10","post-img"],["src","/assets/icon/icon-no-image.svg","alt","image"],[1,"center","height-100"]],template:function(t,e){1&t&&(h.TgZ(0,"ion-header",0),h.TgZ(1,"div",1),h.TgZ(2,"div",2),h.TgZ(3,"div",3),h.TgZ(4,"ion-label",4),h._uU(5),h.qZA(),h.TgZ(6,"p",5),h._uU(7),h.qZA(),h.TgZ(8,"p",6),h._uU(9),h.ALo(10,"date"),h.qZA(),h.qZA(),h.TgZ(11,"div",7),h.TgZ(12,"button",8),h.NdJ("click",function(){return e.AddPublication("2",e.item.ProcessId)}),h._UZ(13,"ion-icon",9),h.qZA(),h.TgZ(14,"button",8),h.NdJ("click",function(t){return e.doRefresh(t)}),h._UZ(15,"ion-icon",10),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(16,"ion-content"),h.TgZ(17,"ion-refresher",11),h.NdJ("ionRefresh",function(t){return e.doRefresh(t)}),h.YNc(18,_,1,0,"ion-progress-bar",12),h._UZ(19,"ion-refresher-content"),h.qZA(),h.TgZ(20,"div",13),h.TgZ(21,"ion-list"),h.YNc(22,I,14,8,"div",14),h.YNc(23,S,3,1,"div",15),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.xp6(5),h.Oqu(e.item.Description),h.xp6(2),h.Oqu(e.item.Detail),h.xp6(2),h.Oqu(h.xi3(10,6,e.item.DateBegin,"dd-MM-yy | HH:mm")),h.xp6(9),h.Q6J("ngIf",e.showLoader),h.xp6(4),h.Q6J("ngForOf",e.publicationListStorage.documents[e.folderId]),h.xp6(1),h.Q6J("ngIf",!e.publicationList))},directives:[a.Gu,a.Q$,a.gu,a.W2,a.nJ,o.O5,a.Wo,a.q_,o.sg,a.X7],pipes:[o.uU],styles:["[_nghost-%COMP%]{background:transparent;padding:0!important}[_nghost-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar{width:7px;height:7px}ion-content[_ngcontent-%COMP%]{--background:transparent;transform:translate3d(0,5px,0);--border-radius:30px}ion-toolbar[_ngcontent-%COMP%]{--border-width:0!important;--border-style:none;--padding-top:0px!important;--padding-start:0px!important;--padding-right:0px!important;--padding-end:0px!important}.div-top-header[_ngcontent-%COMP%]{width:400px;margin:0 auto;background-color:#0782c9;overflow:auto;padding-top:15px;border:0!important}.div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-logo[_ngcontent-%COMP%]{background:transparent;width:140px;margin:5px 0 0 71px;float:left}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}.main-header[_ngcontent-%COMP%]{width:100%;height:100%;font-family:Roboto;border-top-left-radius:25px;border-top-right-radius:25px;background-color:#fff;overflow:hidden;padding:25px 20px 0;color:#000}.main-container[_ngcontent-%COMP%]{width:100%;height:100%!important;overflow-y:auto}.content-top[_ngcontent-%COMP%]{background:#f3f2f2;height:20px;margin:0 auto;border-top-left-radius:25px;border-top-right-radius:25px;transform:translate3d(0,1px,0)}.title-content[_ngcontent-%COMP%]{margin:0 auto;overflow:auto;padding:0!important}.back-icon[_ngcontent-%COMP%]{float:left;font-size:35px}.div-title[_ngcontent-%COMP%]{float:left;margin:2.5px 0 0 5px}.title[_ngcontent-%COMP%]{font-size:25px}.actions-icon[_ngcontent-%COMP%]{display:flex;align-items:top;justify-content:flex-end;padding:0!important}.actions-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{margin-left:5px;font-size:35px;padding:0!important}.item-content-date[_ngcontent-%COMP%]{color:#797979;font-size:13px}.item-content-detail[_ngcontent-%COMP%]{color:#000;font-size:13px}.post-item[_ngcontent-%COMP%]{width:100%;border-radius:0;padding:0!important}.post-img[_ngcontent-%COMP%]{width:100%;height:56.25vh!important;border-radius:0!important;overflow:hidden}.post-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.post-content[_ngcontent-%COMP%]{margin:0 auto 35px}.post-title-time[_ngcontent-%COMP%]{width:100%;overflow:auto}.post-title[_ngcontent-%COMP%]{width:60%;float:left;font-size:15px;color:#0d89d1}.post-data[_ngcontent-%COMP%]{width:40%;float:left;font-size:13px;color:#797979;text-align:right}.post-description[_ngcontent-%COMP%]{font-size:13px;color:#000}"]}),t})();var J=n(56144);function N(t,e){1&t&&h._UZ(0,"ion-progress-bar",18)}function Y(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",19),h.TgZ(1,"img",20),h.NdJ("click",function(){h.CHM(t);const e=h.oxw(2);return e.openPreview(e.publication.FileBase64)}),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(1),h.s9C("src",t.publication.FileBase64,h.LSH)}}function F(t,e){1&t&&(h.TgZ(0,"div",19),h._UZ(1,"img",21),h.qZA())}function U(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"div",7),h.TgZ(2,"div",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().goBack()}),h._UZ(3,"ion-icon",9),h.qZA(),h.TgZ(4,"div",10),h.TgZ(5,"ion-label",11),h._uU(6),h.qZA(),h.TgZ(7,"p",12),h._uU(8),h.ALo(9,"date"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(10,"ion-refresher",13),h.NdJ("ionRefresh",function(e){return h.CHM(t),h.oxw().doRefresh(e)}),h.YNc(11,N,1,0,"ion-progress-bar",14),h._UZ(12,"ion-refresher-content"),h.qZA(),h.TgZ(13,"div",15),h.YNc(14,Y,2,1,"div",16),h.YNc(15,F,2,0,"div",16),h.TgZ(16,"div",17),h.TgZ(17,"p"),h._uU(18),h.qZA(),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(6),h.hij(" ",t.publication.Title,""),h.xp6(2),h.Oqu(h.xi3(9,6,t.publication.DatePublication,"dd-MM-yy | h:mm")),h.xp6(3),h.Q6J("ngIf",t.showLoader),h.xp6(3),h.Q6J("ngIf",t.publication.FileBase64.length>30),h.xp6(1),h.Q6J("ngIf",t.publication.FileBase64.length<30),h.xp6(3),h.Oqu(t.publication.Message)}}function B(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"div",22),h.TgZ(2,"div",23),h.TgZ(3,"ion-icon",24),h.NdJ("click",function(){return h.CHM(t),h.oxw().close()}),h.qZA(),h.qZA(),h.TgZ(4,"div",10),h.TgZ(5,"ion-label",11),h._UZ(6,"ion-skeleton-text",25),h.qZA(),h.TgZ(7,"p",12),h._UZ(8,"ion-skeleton-text",26),h.qZA(),h.qZA(),h.qZA(),h.TgZ(9,"div",27),h.TgZ(10,"div",19),h._UZ(11,"img",21),h.qZA(),h.TgZ(12,"div",17),h.TgZ(13,"p"),h._UZ(14,"ion-skeleton-text",28),h.qZA(),h.TgZ(15,"p"),h._UZ(16,"ion-skeleton-text",28),h.qZA(),h.qZA(),h.qZA(),h.qZA()}}let E=(()=>{class t{constructor(t,e,n,o){this.modalController=t,this.publications=e,this.animationController=n,this.toastService=o,this.addNewPublication=new h.vpe,this.closeDesktopComponent=new h.vpe,this.goBackToViewPublications=new h.vpe,this.publication={DateIndex:null,DocumentId:"",ProcessId:"",Title:"",Message:"",DatePublication:null,FileBase64:"",OriginalFileName:"",FileExtension:""}}ngOnInit(){console.log(this.folderId),this.getPublicationDetail()}doRefresh(t){this.getPublicationDetail(),setTimeout(()=>{t.target.complete()},2e3)}getPublicationDetail(){this.showLoader=!0,console.log(this.publicationId),this.publications.GetPublicationById(this.publicationId).subscribe(t=>{console.log(t),this.publication={DateIndex:t.DateIndex,DocumentId:t.DocumentId,ProcessId:t.ProcessId,Title:t.Title,Message:t.Message,DatePublication:t.DatePublication,FileBase64:"data:image/jpg;base64,"+t.FileBase64,OriginalFileName:t.OriginalFileName,FileExtension:"jpeg"},this.showLoader=!1})}close(){this.modalController.dismiss()}deletePost(){return(0,r.mG)(this,void 0,void 0,function*(){try{yield this.publications.DeletePublication(this.folderId,this.publicationId).toPromise(),this.toastService.successMessage("Publica\xe7\xe3o eliminado"),this.goBackToViewPublications.emit()}catch(t){this.toastService.badRequest("Publica\xe7\xe3o n\xe3o eliminado")}})}editPost(t){return(0,r.mG)(this,void 0,void 0,function*(){if(console.log(this.publication),window.innerWidth<=1024){const e=yield this.modalController.create({component:x.i,componentProps:{publicationType:t,publication:this.publication},cssClass:"new-publication",backdropDismiss:!1});yield e.present(),e.onDidDismiss().then(()=>{setTimeout(()=>{this.getPublicationDetail()},5e3)})}else this.addNewPublication.emit({publicationType:t,folderId:this.folderId,publication:this.publication})})}openPreview(t){this.modalController.create({component:w.e,componentProps:{imageUrl:t}}).then(t=>t.present())}goBack(){return(0,r.mG)(this,void 0,void 0,function*(){this.goBackToViewPublications.emit()})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.IN),h.Y36(f.H),h.Y36(a.vB),h.Y36(m.k))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-publication-detail-shared"]],inputs:{publicationId:"publicationId",folderId:"folderId"},outputs:{addNewPublication:"addNewPublication",closeDesktopComponent:"closeDesktopComponent",goBackToViewPublications:"goBackToViewPublications"},decls:14,vars:2,consts:[[1,"content-container"],[4,"ngIf"],[1,"footer-toolbar","width-md-100","px-md-20"],["slot","start"],["fill","clear","color","#ffe0e0",1,"btn-delete",3,"click"],["slot","end"],["fill","clear","color","#fff",1,"btn-ok",3,"click"],[1,"title-content","d-flex","pl-20"],[1,"back-icon",3,"click"],["slot","end","src","assets/images/icons-arrow-arrow-left.svg",1,"font-30"],[1,"div-title"],[1,"title"],[1,"post-data"],["name","refresher","slot","fixed",3,"ionRefresh"],["type","indeterminate",4,"ngIf"],[1,"post-item","px-20"],["class","post-img",4,"ngIf"],[1,"post-description"],["type","indeterminate"],[1,"post-img"],["alt","image","tappable","",3,"src","click"],["src","/assets/icon/icon-no-image.svg","alt","image"],[1,"title-content"],[1,"back-icon"],["slot","end","src","assets/images/icons-arrow-arrow-left.svg",3,"click"],["animated","",2,"width","60%"],["animated","",2,"width","20%"],[1,"post-item"],["animated",""]],template:function(t,e){1&t&&(h.TgZ(0,"ion-content"),h.TgZ(1,"div",0),h.YNc(2,U,19,9,"div",1),h.YNc(3,B,17,0,"div",1),h.qZA(),h.qZA(),h.TgZ(4,"ion-footer"),h.TgZ(5,"ion-toolbar",2),h.TgZ(6,"ion-buttons",3),h.TgZ(7,"ion-button",4),h.NdJ("click",function(){return e.deletePost()}),h.TgZ(8,"ion-label"),h._uU(9,"Eliminar"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(10,"ion-buttons",5),h.TgZ(11,"ion-button",6),h.NdJ("click",function(){return e.editPost("3")}),h.TgZ(12,"ion-label"),h._uU(13,"Editar"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.xp6(2),h.Q6J("ngIf",""!=e.publication.Title),h.xp6(1),h.Q6J("ngIf",""==e.publication.Title))},directives:[a.W2,o.O5,a.fr,a.sr,a.Sm,a.YG,a.Q$,a.gu,a.nJ,a.Wo,a.X7,a.CK],pipes:[o.uU],styles:["ion-content[_ngcontent-%COMP%]{--background:transparent;--border-radius:30px}ion-footer[_ngcontent-%COMP%]{background:#fff}ion-toolbar[_ngcontent-%COMP%]{border-width:0!important}.div-top-header[_ngcontent-%COMP%]{width:400px;margin:0 auto;background-color:#0782c9;overflow:auto;padding-top:15px;border:0!important}.div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-logo[_ngcontent-%COMP%]{background:transparent;width:140px;margin:5px 0 0 71px;float:left}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}.content-top[_ngcontent-%COMP%]{width:344px;background:#f3f2f2;height:20px}.content-container[_ngcontent-%COMP%], .content-top[_ngcontent-%COMP%]{margin:0 auto;border-top-left-radius:25px;border-top-right-radius:25px}.content-container[_ngcontent-%COMP%]{width:100%;background:#fff;height:100%;padding:25px 0 0;overflow:auto}.back-icon[_ngcontent-%COMP%], .title-content[_ngcontent-%COMP%]{overflow:auto}.back-icon[_ngcontent-%COMP%]{width:auto;float:left;font-size:35px}.div-title[_ngcontent-%COMP%]{width:270px;float:left;margin:2.5px 0 0 5px}.title[_ngcontent-%COMP%]{font-size:25px}.post-img[_ngcontent-%COMP%]{width:100%;margin:0 auto;border-radius:0!important;overflow:hidden}.post-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.post-description[_ngcontent-%COMP%]{margin:0 auto 35px}"]}),t})();var H=n(16738),Q=n(98295),z=n(49983),V=n(25653),j=n(43220);let L=(()=>{class t{constructor(t,e){this.publication=t,this.toastService=e,this.disabled=!1,this.showSpinners=!0,this.showSeconds=!1,this.touchUi=!1,this.enableMeridian=!1,this.minDate=(new Date).toISOString().slice(0,10),this.stepHour=1,this.stepMinute=5,this.stepSecond=5,this.endMinDate=new Date((new Date).getTime()+9e5),this.validateFrom=!1,this.dateControlStart=new i.NI(H("DD MM YYYY hh")),this.dateControlEnd=new i.NI(H("DD MM YYYY hh")),this.closeDesktopComponent=new h.vpe,this.getActions=new h.vpe,this.folder=new Z.Z,this.folder=Object.assign(this.folder,{DateBegin:H(new Date),DateEnd:H(new Date((new Date).getTime()+9e5))})}get dateStart(){return this.dateControlStart.value}get dateEnd(){return this.dateControlEnd.value}ngOnInit(){this.segment="Viagem"}segmentChanged(t){console.log(t.detail.value)}get dateValid(){return window.innerWidth>=800?new Date(this.folder.DateBegin).toLocaleString("pt"){class t{constructor(t,e,n,o,i){this.router=t,this.modalController=e,this.animationController=n,this.publications=o,this.toastService=i,this.actionsListStorage=new Array,this.publicationEventFolderStorage=g.t,this.publicationTravelFolderService=u.e,this.desktopComponent={showViewPublication:!1,showAddNewPublication:!1,showPublicationDetail:!1,showAddActions:!1,showEditActions:!1},this.hideRefreshBtn=!0,this.showSlidingOptions=!0,this.months=["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],this.days=["Domingo","Segunda-feira","Ter\xe7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\xe1bado"]}ngOnInit(){const t=window.location.pathname;this.router.events.forEach(e=>{e instanceof s.m2&&e.url==t&&this.getActions()}),this.hideRefreshButton()}hideRefreshButton(){window.onresize=t=>{window.innerWidth<801?(this.hideRefreshBtn=!1,this.showSlidingOptions=!1):(this.hideRefreshBtn=!0,this.showSlidingOptions=!0)},window.innerWidth<801?(this.hideRefreshBtn=!1,this.showSlidingOptions=!1):(this.hideRefreshBtn=!0,this.showSlidingOptions=!0)}refreshing(){setTimeout(()=>{this.getActions()},1500)}doRefresh(t){this.getActions(),setTimeout(()=>{t.target.complete()},250)}get windowInnerWidth(){return window.innerWidth}getDate(t){return this.theDate=new Date(t),this.theDate.getDate()+" de "+this.months[this.theDate.getMonth()]+" de "+this.theDate.getFullYear()}getActions(){this.showLoader=!0,this.publications.GetPublicationFolderList().subscribe(t=>{this.publicationsEventFolderList=new Array,this.publicationsTravelFolderList=new Array,t.forEach(t=>{let e={ProcessId:t.ProcessId,Description:t.Description,Detail:t.Detail,DateBegin:t.DateBegin,DateEnd:t.DateEnd,ActionType:t.ActionType};"Evento"==t.ActionType?this.publicationsEventFolderList.push(e):this.publicationsTravelFolderList.push(e),this.showLoader=!1,this.publicationEventFolderStorage.reset(this.publicationsEventFolderList),this.publicationTravelFolderService.reset(this.publicationsTravelFolderList)})})}editAction(t){return(0,r.mG)(this,void 0,void 0,function*(){const e=yield this.modalController.create({component:p.Q,componentProps:{folderId:t},cssClass:"new-action modal modal-desktop",backdropDismiss:!0});yield e.present(),e.onDidDismiss().then(()=>{this.getActions()})})}deleteAction(t){return(0,r.mG)(this,void 0,void 0,function*(){const e=this.toastService.loading();try{yield this.publications.DeletePresidentialAction(t).toPromise(),this.toastService.successMessage()}catch(n){this.toastService.badRequest()}finally{e.remove()}this.refreshing()})}AddPublicationFolder(t){return(0,r.mG)(this,void 0,void 0,function*(){if(this.closeDesktopComponent(),window.innerWidth<=1024){const e=yield this.modalController.create({component:c.Q,componentProps:{item:t},cssClass:"new-action modal modal-desktop",backdropDismiss:!1});yield e.present(),e.onDidDismiss().then(()=>{this.getActions()})}else this.desktopComponent.showAddActions=!0})}goToPublicationsList(t){this.folderId=t,window.innerWidth<=800?this.router.navigate(["/home/publications",t]):(this.closeDesktopComponent(),this.folderId=t,this.desktopComponent.showViewPublication=!0)}viewPublications(t){return(0,r.mG)(this,void 0,void 0,function*(){if(this.folderId=t,this.closeDesktopComponent(),window.innerWidth<=800){const e=yield this.modalController.create({component:d.F,componentProps:{folderId:t},cssClass:"new-action modal modal-desktop",backdropDismiss:!1});yield e.present(),e.onDidDismiss()}else this.folderId=t,this.desktopComponent.showViewPublication=!0})}goBackToViewPublications(){this.closeDesktopComponent(),this.desktopComponent.showViewPublication=!0}goBackToPubications(){this.closeDesktopComponent(),this.desktopComponent.showViewPublication=!0}goBacktoPublicationDetails(){return(0,r.mG)(this,void 0,void 0,function*(){this.closeDesktopComponent(),this.desktopComponent.showPublicationDetail=!0})}addNewPublication({publicationType:t,folderId:e,publication:n}){return(0,r.mG)(this,void 0,void 0,function*(){this.closeDesktopComponent(),this.publicationType=t,null!=e&&(this.folderId=e),this.publication=n,this.desktopComponent.showAddNewPublication=!0})}openPublicationDetails(t){return(0,r.mG)(this,void 0,void 0,function*(){this.publicationId=t,this.closeDesktopComponent(),this.desktopComponent.showPublicationDetail=!0})}updateDesktopComponent(t){return(0,r.mG)(this,void 0,void 0,function*(){this.getActions()})}closeDesktopComponent(t){return(0,r.mG)(this,void 0,void 0,function*(){this.desktopComponent={showViewPublication:!1,showAddNewPublication:!1,showPublicationDetail:!1,showAddActions:!1,showEditActions:!1}})}openOptions(t){return(0,r.mG)(this,void 0,void 0,function*(){this.folderId=t;const e=t=>{const e=this.animationController.create().addElement(t.querySelector("ion-backdrop")).fromTo("opacity","0.01","var(--backdrop-opacity)"),n=this.animationController.create().addElement(t.querySelector(".modal-wrapper")).keyframes([{offset:0,opacity:"1",right:"-100%"},{offset:1,opacity:"1",right:"0px"}]);return this.animationController.create().addElement(t).easing("ease-out").duration(500).addAnimation([e,n])},n=yield this.modalController.create({enterAnimation:e,leaveAnimation:t=>e(t).direction("reverse"),component:l.$,cssClass:"model profile-modal search-submodal",componentProps:{id:t}});yield n.present(),n.onDidDismiss().then(t=>{"edit"==t.data?(this.closeDesktopComponent(),this.desktopComponent.showEditActions=!0):"delete"==t.data&&(setTimeout(()=>{this.getActions()},1e3),this.closeDesktopComponent())})})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(s.F0),h.Y36(a.IN),h.Y36(a.vB),h.Y36(f.H),h.Y36(m.k))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-publications"]],decls:27,vars:11,consts:[[1,"ion-no-border"],["class","d-md-none",4,"ngIf"],[1,"main-content","d-flex","height-100","background-white","overflow-hidden","border-t-radius"],[1,"aside-left","app-default-padding","d-flex","flex-grow-1","flex-column","width-30"],["type","indeterminate",4,"ngIf"],[1,"main-header"],[1,"title-content","width-100","d-flex","justify-space-between"],[1,"div-title","flex-grow-1"],[1,"title"],[1,"div-icon"],[1,"btn-no-color",3,"click"],["slot","icon-only","src","assets/images/icons-add.svg"],["class","btn-no-color",3,"click",4,"ngIf"],[1,"aside","overflow-y-auto","d-flex","flex-wrap","width-100"],["class","item width-100 cursor-pointer",3,"disabled",4,"ngFor","ngForOf"],["class","item width-100",3,"disabled",4,"ngFor","ngForOf"],[1,"content","content-right","d-none","flex-grow-1","flex-column"],["class","width-100 height-100 d-flex align-center justify-center",4,"ngIf"],["class","height-100 d-flex flex-column overflow-hidden flex-grow-1",3,"folderId","addNewPublication","openPublicationDetails","goBacktoPublicationDetails","goBackToViewPublications","closeDesktopComponent","getActions",4,"ngIf"],["class","height-100 d-flex flex-column overflow-hidden background-white flex-grow-1",3,"folderId","publicationType","publicationId","closeDesktopComponent","goBacktoPublicationDetails","goBackToViewPublications","getActions",4,"ngIf"],["class","height-100 d-flex flex-column overflow-hidden background-white flex-grow-1",3,"publicationId","folderId","addNewPublication","closeDesktopComponent","goBacktoPublicationDetails","goBackToViewPublications","getActions",4,"ngIf"],["class","height-100 d-flex flex-column overflow-hidden background-white flex-grow-1",3,"closeDesktopComponent","getActions",4,"ngIf"],["class","height-100 d-flex flex-column overflow-hidden background-white flex-grow-1",3,"folderId","closeDesktopComponent","updateDesktopComponent","getActions",4,"ngIf"],[1,"d-md-none"],["name","refresher","slot","fixed",3,"ionRefresh"],["type","indeterminate"],["slot","icon-only","name","reload-circle","title","Actualizar",1,"title-icon"],[1,"item","width-100","cursor-pointer",3,"disabled"],["lines","none",1,"width-100","d-flex","ion-no-border","ion-no-margin","ion-no-padding"],[1,"item-icon","cursor-pointer",3,"click"],["slot","end","src","assets/images/icons-plane-active.svg"],[1,"item-content","flex-grow-1","cursor-pointer",3,"click"],[1,"item-content-date","my-5"],[1,"item-content-title","my-10"],[1,"item-content-detail","my-5"],["autoHide","false",1,"item-options","d-none","cursor-pointer",3,"click"],["src","assets/images/icons-menu.svg"],["side","end",1,"members-options"],[1,"edit-option",3,"click"],[1,"btn-no-color"],["slot","end","src","assets/images/icons-edit.svg",1,"edit"],[1,"delete-option",3,"click"],["name","trash-sharp",1,"delete"],[1,"item","width-100",3,"disabled"],["lines","none",1,"width-100","d-flex","ion-no-border","ion-no-margin","ion-no-padding",3,"click"],[1,"item-icon2"],["slot","end","src","assets/images/icons-nav-actions.svg"],[1,"item-content","flex-grow-1"],[1,"item-content-date"],[1,"item-content-title"],[1,"width-100","height-100","d-flex","align-center","justify-center"],[1,"height-100","d-flex","flex-column","overflow-hidden","flex-grow-1",3,"folderId","addNewPublication","openPublicationDetails","goBacktoPublicationDetails","goBackToViewPublications","closeDesktopComponent","getActions"],[1,"height-100","d-flex","flex-column","overflow-hidden","background-white","flex-grow-1",3,"folderId","publicationType","publicationId","closeDesktopComponent","goBacktoPublicationDetails","goBackToViewPublications","getActions"],[1,"height-100","d-flex","flex-column","overflow-hidden","background-white","flex-grow-1",3,"publicationId","folderId","addNewPublication","closeDesktopComponent","goBacktoPublicationDetails","goBackToViewPublications","getActions"],[1,"height-100","d-flex","flex-column","overflow-hidden","background-white","flex-grow-1",3,"closeDesktopComponent","getActions"],[1,"height-100","d-flex","flex-column","overflow-hidden","background-white","flex-grow-1",3,"folderId","closeDesktopComponent","updateDesktopComponent","getActions"]],template:function(t,e){1&t&&(h.TgZ(0,"ion-header",0),h._UZ(1,"app-header"),h.qZA(),h.TgZ(2,"ion-content"),h.YNc(3,R,3,0,"div",1),h.TgZ(4,"div",2),h.TgZ(5,"div",3),h.YNc(6,W,1,0,"ion-progress-bar",4),h.TgZ(7,"ion-toolbar"),h.TgZ(8,"div",5),h.TgZ(9,"div",6),h.TgZ(10,"div",7),h.TgZ(11,"ion-label",8),h._uU(12,"Ac\xe7\xf5es Presidenciais"),h.qZA(),h.qZA(),h.TgZ(13,"div",9),h.TgZ(14,"button",10),h.NdJ("click",function(){return e.AddPublicationFolder()}),h._UZ(15,"ion-icon",11),h.qZA(),h.YNc(16,$,2,0,"button",12),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(17,"div",13),h.YNc(18,X,20,5,"ion-item-sliding",14),h.YNc(19,K,19,3,"ion-item-sliding",15),h.qZA(),h.qZA(),h.TgZ(20,"div",16),h.YNc(21,tt,3,0,"div",17),h.YNc(22,et,1,1,"app-view-publications",18),h.YNc(23,nt,1,3,"app-new-publication",19),h.YNc(24,ot,1,2,"app-publication-detail-shared",20),h.YNc(25,it,1,0,"app-new-action",21),h.YNc(26,at,1,1,"app-edit-action",22),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.xp6(3),h.Q6J("ngIf",e.hideRefreshBtn),h.xp6(3),h.Q6J("ngIf",e.showLoader),h.xp6(10),h.Q6J("ngIf",e.hideRefreshBtn),h.xp6(2),h.Q6J("ngForOf",e.publicationTravelFolderService.list),h.xp6(1),h.Q6J("ngForOf",e.publicationEventFolderStorage.list),h.xp6(2),h.Q6J("ngIf",0==e.desktopComponent.showViewPublication&&0==e.desktopComponent.showAddNewPublication&&0==e.desktopComponent.showPublicationDetail&&0==e.desktopComponent.showAddActions&&0==e.desktopComponent.showEditActions),h.xp6(1),h.Q6J("ngIf",e.desktopComponent.showViewPublication),h.xp6(1),h.Q6J("ngIf",e.desktopComponent.showAddNewPublication),h.xp6(1),h.Q6J("ngIf",e.desktopComponent.showPublicationDetail),h.xp6(1),h.Q6J("ngIf",e.desktopComponent.showAddActions),h.xp6(1),h.Q6J("ngIf",e.desktopComponent.showEditActions))},directives:[a.Gu,b.E,a.W2,o.O5,a.sr,a.Q$,a.gu,o.sg,a.nJ,a.Wo,a.X7,a.td,a.Ie,a.IK,a.u8,y,J.i,E,L,G.Q],styles:["ion-content[_ngcontent-%COMP%]{--background:transparent}ion-toolbar[_ngcontent-%COMP%]{border-width:0!important;--padding-top:0px!important;--padding-start:0px!important;--padding-right:0px!important;--padding-end:0px!important}.div-top-header[_ngcontent-%COMP%]{margin:0 auto;background-color:#0782c9;overflow:auto;padding-top:15px;border:0!important}.div-top-header[_ngcontent-%COMP%] .div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-top-header[_ngcontent-%COMP%] .div-logo[_ngcontent-%COMP%]{background:transparent;width:140px;margin:5px 0 0 71px;float:left}.div-top-header[_ngcontent-%COMP%] .div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-top-header[_ngcontent-%COMP%] .div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}ion-content[_ngcontent-%COMP%]{--border:none}.main-header[_ngcontent-%COMP%]{width:100%;height:100%;font-family:Roboto;background-color:#fff;overflow:hidden;color:#000;transform:translate3d(0,1px,0)}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%]{margin:0 auto;padding:0!important;background:#fff}.main-header[_ngcontent-%COMP%] .div-title[_ngcontent-%COMP%]{padding:0!important}.main-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:25px}.main-header[_ngcontent-%COMP%] .div-icon[_ngcontent-%COMP%]{display:flex;font-size:35px;padding:0!important;align-items:center;justify-content:flex-end}.main-header[_ngcontent-%COMP%] .div-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{float:right;padding-left:10px}.main-content[_ngcontent-%COMP%]{font-family:Roboto;background-color:#fff;overflow:auto}.main-content[_ngcontent-%COMP%] .aside-left[_ngcontent-%COMP%]{border-right:1px solid #d8d8d8;margin:0!important;padding:0!important}.main-content[_ngcontent-%COMP%] .aside-left[_ngcontent-%COMP%] .main-header[_ngcontent-%COMP%]{padding:30px 20px 15px!important}.main-content[_ngcontent-%COMP%] .aside-left[_ngcontent-%COMP%] .aside[_ngcontent-%COMP%]{padding:0 20px!important}.item[_ngcontent-%COMP%]{width:100%!important;padding:0!important;border-bottom:1px solid #ebebeb;align-items:center;justify-content:space-between;flex-direction:row}.item[_ngcontent-%COMP%] .item-icon[_ngcontent-%COMP%]{width:45px;float:left;font-size:40px}.item[_ngcontent-%COMP%] .item-icon[_ngcontent-%COMP%] .item-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{color:#061b52}.item[_ngcontent-%COMP%] .item-icon2[_ngcontent-%COMP%]{width:45px;float:left;font-size:40px}.item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%]{width:100%;padding:15px 0 15px 10px;overflow:auto}.item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis!important}.item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%] .item-content-date[_ngcontent-%COMP%]{color:#797979;font-size:13px;margin:0!important;padding:0!important}.item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%] .item-content-title[_ngcontent-%COMP%]{color:#0d89d1;font-size:15px;margin:0!important;padding:0!important}.item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%] .item-content-detail[_ngcontent-%COMP%]{color:#000;font-size:13px;margin:0!important;padding:0!important}.item[_ngcontent-%COMP%] .item-options[_ngcontent-%COMP%]{width:25px;font-size:20px}ion-item-options[_ngcontent-%COMP%]{border:1px solid #fff;overflow:auto}.delete-option[_ngcontent-%COMP%], ion-item-option[_ngcontent-%COMP%]{display:flex;background:#ffe0e0;align-items:center;align-content:center}.delete-option[_ngcontent-%COMP%]{border:1px solid #d30a0a67}.edit-option[_ngcontent-%COMP%]{display:flex;background:#fff;align-items:center;align-content:center;margin-right:5px!important;border:1px solid #42b9feb9}.edit[_ngcontent-%COMP%]{padding:6px;font-size:35px;color:#061b52;margin:7px}.delete[_ngcontent-%COMP%], .edit[_ngcontent-%COMP%]{border-radius:20px}.delete[_ngcontent-%COMP%]{padding:7px;font-size:21px;color:#d30a0a;margin:12px;border:1px solid #d30a0a}@media only screen and (min-width: 801px){.content-right[_ngcontent-%COMP%]{display:flex!important;width:65%}.aside-left[_ngcontent-%COMP%]{width:35%}.item-options[_ngcontent-%COMP%]{display:block!important}}"]}),t})()},{path:"new-publication",loadChildren:()=>n.e(7248).then(n.bind(n,77248)).then(t=>t.NewPublicationPageModule)},{path:"gallery",loadChildren:()=>n.e(5437).then(n.bind(n,95437)).then(t=>t.GalleryPageModule)},{path:"new-action",loadChildren:()=>n.e(5030).then(n.bind(n,35030)).then(t=>t.NewActionPageModule)},{path:"view-publications",children:[{path:"",loadChildren:()=>n.e(8592).then(n.bind(n,4175)).then(t=>t.ViewPublicationsPageModule)},{path:"publication-detail",loadChildren:()=>n.e(8592).then(n.bind(n,5305)).then(t=>t.PublicationDetailPageModule)}]},{path:"edit-action",loadChildren:()=>n.e(7515).then(n.bind(n,87515)).then(t=>t.EditActionPageModule)}];let rt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[s.Bz.forChild(st)],s.Bz]}),t})();const ct=[];let dt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[s.Bz.forChild(ct)],s.Bz]}),t})(),lt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[o.ez,i.u5,a.Pc,dt]]}),t})();var pt=n(72774);const gt=[{path:"",component:L}];let ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[s.Bz.forChild(gt)],s.Bz]}),t})();var ht=n(72458),ft=n(51095),mt=n(67441),bt=n(94881),Zt=n(22238);let wt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[o.ez,i.u5,a.Pc,ut,j.FA,z.c,ht.XK,V.EC,V.Yy,V.K,bt._W,mt.LD,ft.ot,i.UX,Zt.Is]]}),t})();const xt=[{path:"",component:E}];let vt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[s.Bz.forChild(xt)],s.Bz]}),t})(),Ct=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[o.ez,i.u5,a.Pc,vt]]}),t})();var Mt=n(6527),Pt=n(39510);let At=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[o.ez,i.u5,a.Pc,rt,Mt.a,lt,pt.NewPublicationPageModule,Ct,wt,Pt.EditActionPageModule]]}),t})()}}]);