mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
6.2 KiB
JavaScript
1 line
6.2 KiB
JavaScript
!function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function n(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[4594],{94594:function(e,i,a){"use strict";a.d(i,{j:function(){return m}});var o=a(64762),c=a(37716),s=a(20985),r=a(53760),h=a(35957),u=a(38583);function l(t,e){if(1&t){var n=c.EpF();c.TgZ(0,"ion-item",4),c.NdJ("click",function(){var t=c.CHM(n).$implicit;return c.oxw(2).viewDocument(t.Link)}),c._UZ(1,"ion-icon",5),c.TgZ(2,"ion-label",6),c.TgZ(3,"h3",7),c._uU(4),c.qZA(),c.TgZ(5,"p"),c._uU(6),c.qZA(),c.TgZ(7,"p"),c._uU(8),c.qZA(),c.TgZ(9,"p",8),c._uU(10),c.qZA(),c.qZA(),c.qZA()}if(2&t){var i=e.$implicit;c.xp6(4),c.Oqu(i.SourceName),c.xp6(2),c.Oqu(i.Description),c.xp6(2),c.Oqu(i.CreateDate),c.xp6(2),c.Oqu(i.Stakeholders)}}function d(t,e){if(1&t&&(c.TgZ(0,"div"),c.TgZ(1,"ion-list"),c.TgZ(2,"ion-item-sliding"),c.YNc(3,l,11,4,"ion-item",3),c.qZA(),c.qZA(),c.qZA()),2&t){var n=c.oxw();c.xp6(3),c.Q6J("ngForOf",n.loadedEventAttachments)}}function g(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"ion-list"),c.TgZ(2,"ion-item"),c.TgZ(3,"ion-avatar",0),c._UZ(4,"ion-skeleton-text",9),c.qZA(),c.TgZ(5,"ion-label"),c.TgZ(6,"h3"),c._UZ(7,"ion-skeleton-text",10),c.qZA(),c.TgZ(8,"p"),c._UZ(9,"ion-skeleton-text",11),c.qZA(),c.TgZ(10,"p"),c._UZ(11,"ion-skeleton-text",12),c.qZA(),c.qZA(),c.qZA(),c.TgZ(12,"ion-item"),c.TgZ(13,"ion-avatar",0),c._UZ(14,"ion-skeleton-text",9),c.qZA(),c.TgZ(15,"ion-label"),c.TgZ(16,"h3"),c._UZ(17,"ion-skeleton-text",10),c.qZA(),c.TgZ(18,"p"),c._UZ(19,"ion-skeleton-text",11),c.qZA(),c.TgZ(20,"p"),c._UZ(21,"ion-skeleton-text",12),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA())}var m=function(){var e=function(){function e(n,i,a,o){t(this,e),this.attachamentsService=n,this.iab=i,this.modalCtrl=a,this.navParams=o}return n(e,[{key:"ngOnInit",value:function(){this.loadAttachments(this.navParams.get("eventId"))}},{key:"loadAttachments",value:function(t){var e=this;this.attachamentsService.getAttachmentsById(t).subscribe(function(n){e.loadedEventAttachments=n,e.pageId=t})}},{key:"viewDocument",value:function(t){return(0,o.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1"),this.iab.create(n,"_blank").show();case 2:case"end":return e.stop()}},e,this)}))}},{key:"close",value:function(){this.modalCtrl.dismiss(null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(c.Y36(s.o),c.Y36(r.i),c.Y36(h.IN),c.Y36(h.X1))},e.\u0275cmp=c.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(t,e){1&t&&(c.TgZ(0,"ion-header"),c.TgZ(1,"ion-toolbar"),c.TgZ(2,"ion-buttons",0),c.TgZ(3,"ion-back-button",1),c.NdJ("click",function(){return e.close()}),c.qZA(),c.qZA(),c.TgZ(4,"ion-title"),c._uU(5,"Anexos do evento"),c.qZA(),c.qZA(),c.qZA(),c.TgZ(6,"ion-content"),c.YNc(7,d,4,1,"div",2),c.YNc(8,g,22,0,"div",2),c.qZA()),2&t&&(c.xp6(7),c.Q6J("ngIf",e.loadedEventAttachments),c.xp6(1),c.Q6J("ngIf",!e.loadedEventAttachments))},directives:[h.Gu,h.sr,h.Sm,h.oU,h.cs,h.wd,h.W2,u.O5,h.q_,h.td,u.sg,h.Ie,h.gu,h.Q$,h.BJ,h.CK],styles:["ion-back-button[_ngcontent-%COMP%]{display:block}ion-content[_ngcontent-%COMP%]{--background:#f2f2f2}.div-attach-results[_ngcontent-%COMP%], ion-item-sliding[_ngcontent-%COMP%], ion-list[_ngcontent-%COMP%]{background:none}.item-list-small[_ngcontent-%COMP%]{font-size:14px;overflow:auto}.ion-item-class[_ngcontent-%COMP%]{padding:0}.label-text[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}.main-item[_ngcontent-%COMP%]{margin:15px;border-radius:5px;box-shadow:0 4px 8px 0 #ccc,0 6px 20px 0 #f2f2f2}.div-content-attachment[_ngcontent-%COMP%]{margin:0;padding:10px}.div-content-attachment[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:18px;font-weight:700;padding-bottom:5px}ion-item[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{--border-color:red}.custom-skeleton[_ngcontent-%COMP%] ion-skeleton-text[_ngcontent-%COMP%]{line-height:13px}.custom-skeleton[_ngcontent-%COMP%] ion-skeleton-text[_ngcontent-%COMP%]:last-child{margin-bottom:5px}"]}),e}()},20985:function(e,i,a){"use strict";a.d(i,{o:function(){return h}});var o=a(91841),c=a(92340),s=a(37716),r=a(37556),h=function(){var e=function(){function e(n,i){t(this,e),this.http=n,this.loggeduser=i.ValidatedUser,this.headers=new o.WM,this.headers=this.headers.set("Authorization",this.loggeduser.BasicAuthKey)}return n(e,[{key:"getAttachmentsBySerial",value:function(t){var e=c.N.apiURL+"attachments/GetAttachments",n=new o.LE;return n=n.set("SerialNumber",t),this.http.get("".concat(e),{headers:this.headers,params:n})}},{key:"getAttachments",value:function(t,e){var n=c.N.apiURL+"attachments/GetSourceName",i=new o.LE;return i=i.set("Source",t.toString()),this.http.get("".concat(n),{headers:this.headers,params:i})}},{key:"getAttachmentsById",value:function(t){var e=c.N.apiURL+"attachments/GetAttachmentsByEventId",n=new o.LE;return n=n.set("ParentId",t),this.http.get("".concat(e),{headers:this.headers,params:n})}},{key:"setEventAttachmentById",value:function(t){return this.http.post(c.N.apiURL+"Attachments/Create",t,{headers:this.headers})}},{key:"deleteEventAttachmentById",value:function(t){var e=c.N.apiURL+"Attachments/Delete?attachmentId=".concat(t),n=new o.LE;return n=n.set("attachmentId",t),this.http.delete("".concat(e),{headers:this.headers,params:n})}},{key:"AddAttachment",value:function(t){return this.http.post(c.N.apiURL+"Attachments/CreateAttachmentProcess",t,{headers:this.headers})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(s.LFG(o.eN),s.LFG(r.e))},e.\u0275prov=s.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()}}])}(); |