mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
1 line
21 KiB
JavaScript
1 line
21 KiB
JavaScript
|
|
!function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function t(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[989],{52724:function(e,t,o){"use strict";o.d(t,{n:function(){return i}});var i=function e(){n(this,e)}},94594:function(e,o,i){"use strict";i.d(o,{j:function(){return v}});var a=i(64762),r=i(37716),c=i(20985),s=i(53760),l=i(35957),d=i(38583);function u(e,t){if(1&e){var n=r.EpF();r.TgZ(0,"ion-item",4),r.NdJ("click",function(){var e=r.CHM(n).$implicit;return r.oxw(2).viewDocument(e.Link)}),r._UZ(1,"ion-icon",5),r.TgZ(2,"ion-label",6),r.TgZ(3,"h3",7),r._uU(4),r.qZA(),r.TgZ(5,"p"),r._uU(6),r.qZA(),r.TgZ(7,"p"),r._uU(8),r.qZA(),r.TgZ(9,"p",8),r._uU(10),r.qZA(),r.qZA(),r.qZA()}if(2&e){var o=t.$implicit;r.xp6(4),r.Oqu(o.SourceName),r.xp6(2),r.Oqu(o.Description),r.xp6(2),r.Oqu(o.CreateDate),r.xp6(2),r.Oqu(o.Stakeholders)}}function g(e,t){if(1&e&&(r.TgZ(0,"div"),r.TgZ(1,"ion-list"),r.TgZ(2,"ion-item-sliding"),r.YNc(3,u,11,4,"ion-item",3),r.qZA(),r.qZA(),r.qZA()),2&e){var n=r.oxw();r.xp6(3),r.Q6J("ngForOf",n.loadedEventAttachments)}}function Z(e,t){1&e&&(r.TgZ(0,"div"),r.TgZ(1,"ion-list"),r.TgZ(2,"ion-item"),r.TgZ(3,"ion-avatar",0),r._UZ(4,"ion-skeleton-text",9),r.qZA(),r.TgZ(5,"ion-label"),r.TgZ(6,"h3"),r._UZ(7,"ion-skeleton-text",10),r.qZA(),r.TgZ(8,"p"),r._UZ(9,"ion-skeleton-text",11),r.qZA(),r.TgZ(10,"p"),r._UZ(11,"ion-skeleton-text",12),r.qZA(),r.qZA(),r.qZA(),r.TgZ(12,"ion-item"),r.TgZ(13,"ion-avatar",0),r._UZ(14,"ion-skeleton-text",9),r.qZA(),r.TgZ(15,"ion-label"),r.TgZ(16,"h3"),r._UZ(17,"ion-skeleton-text",10),r.qZA(),r.TgZ(18,"p"),r._UZ(19,"ion-skeleton-text",11),r.qZA(),r.TgZ(20,"p"),r._UZ(21,"ion-skeleton-text",12),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA())}var v=function(){var e=function(){function e(t,o,i,a){n(this,e),this.attachamentsService=t,this.iab=o,this.modalCtrl=i,this.navParams=a}return t(e,[{key:"ngOnInit",value:function(){this.loadAttachments(this.navParams.get("eventId"))}},{key:"loadAttachments",value:function(e){var t=this;this.attachamentsService.getAttachmentsById(e).subscribe(function(n){t.loadedEventAttachments=n,t.pageId=e})}},{key:"viewDocument",value:function(e){return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=e.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1"),this.iab.create(n,"_blank").show();case 2:case"end":return t.stop()}},t,this)}))}},{key:"close",value:function(){this.modalCtrl.dismiss(null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(c.o),r.Y36(s.i),r.Y36(l.IN),r.Y36(l.X1))},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-attachments"]],decls:9,vars:2,consts:[["slot","start"],["defaultHref","","icon","chevron-back",3,"click"],[4,"ngIf"],["class","main-item","lines","none",3,"click",4,"ngFor","ngForOf"],["lines","none",1,"main-item",3,"click"],["name","attach",1,"ion-icon-attach",2,"zoom","1.5"],[1,"div-content-attachment"],[1,"h3"],[1,"item-list-small"],["animated",""],["animated","",2,"width","50%"],["animated","",2,"width","80%"],["animated","",2,"width","60%"]],template:function(e,t){1&e&&(r.TgZ(0,"ion-header"),r.TgZ(1,"ion-toolbar"),r.TgZ(2,"ion-buttons",0),r.TgZ(3,"ion-back-button",1),r.NdJ("click",function(){return t.close()}),r.qZA(),r.qZA(),r.TgZ(4,"ion-title"),r._uU(5,"Anexos do evento"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(6,"ion-content"),r.YNc(7,g,4,1,"div",2),r.YNc(8,Z,22,0,"div",2),r.qZA()),2&e&&(r.xp6(7),r.Q6J("ngIf",t.loadedEventAttachments),r.xp6(1),r.Q6J("ngIf",!t.loadedEventAttachments))},directives:[l.Gu,l.sr,l.Sm,l.oU,l.cs,l.wd,l.W2,d.O5,l.q_,l.td,d.sg,l.Ie,l.gu,l.Q$,l.BJ,l.CK],styles:["ion-back-button[_ngcontent-%COMP%]{display:block}ion-content[_ngcontent-%COMP%]{--background:#f2f2f2}.div-attach-results[_ngcontent-%COMP%], ion-item-sliding[_ngcontent
|