1"use strict";(self.webpackChunkabem=self.webpackChunkabem||[]).push([[422],{30422(w,u,a){var m=this&&this.__createBinding||(Object.create?function(o,r,t,n){void 0===n&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(o,n,i)}:function(o,r,t,n){void 0===n&&(n=t),o[n]=r[t]}),v=this&&this.__setModuleDefault||(Object.create?function(o,r){Object.defineProperty(o,"default",{enumerable:!0,value:r})}:function(o,r){o.default=r}),l=this&&this.__importStar||function(){var o=function(r){return(o=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n})(r)};return function(r){if(r&&r.__esModule)return r;var t={};if(null!=r)for(var n=o(r),i=0;i<n.length;i++)"default"!==n[i]&&m(t,r,n[i]);return v(t,r),t}}();Object.defineProperty(u,"__esModule",{value:!0}),u.CertificateComponent=void 0;const g=a(89377),f=a(60177),h=a(45398),e=l(a(49849)),p=l(a(7901)),C=l(a(65335)),x=l(a(37554)),b=l(a(39078)),y=l(a(60177)),O=["qrcode"];function M(o,r){if(1&o&&(e.\u0275\u0275elementStart(0,"div",2),e.\u0275\u0275element(1,"img",3),e.\u0275\u0275elementStart(2,"div",4)(3,"div",5),e.\u0275\u0275element(4,"qrcode",6,0),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div",7),e.\u0275\u0275element(7,"div",8),e.\u0275\u0275elementStart(8,"div",9)(9,"div",10),e.\u0275\u0275element(10,"p",11),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(11,"div",12),e.\u0275\u0275elementEnd()()()),2&o){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(),e.\u0275\u0275property("src",e.\u0275\u0275interpolate(t.image),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(3),e.\u0275\u0275property("qrdata",t.link)("width",128)("errorCorrectionLevel","L")("margin",0),e.\u0275\u0275advance(6),e.\u0275\u0275property("innerHTML",t.text,e.\u0275\u0275sanitizeHtml)}}u.CertificateComponent=(()=>{class o{route;event;api;router;document;modal;text;image;link;qrRef;constructor(t,n,i,c,d,s){this.route=t,this.event=n,this.api=i,this.router=c,this.document=d,this.modal=s,this.image=null}ngOnInit(){this.route.params.subscribe(t=>{let n="me";t.user&&(n=t.user),this.link="evento/"+t.event+"/valida-certificado/",this.event.id(t.event).then(i=>{let c={id:i,user:n},d=this.api.recover("event/:id/certificate/print/:user",c);t.role&&(c.role=t.role,d=this.api.recover("event/:id/certificate/print/:user/:role",c)),d.subscribe(s=>{this.text=s.text,this.image=s.image,this.link+=s.user_id,c.role&&(this.link+="/"+c.role),this.link="https://"+this.document.location.hostname+"/"+this.link},s=>{this.modal.open(g.AlertModalComponent).componentInstance.error("Certificado indisponivel no momento!"),this.router.navigate(["/evento",t.event,"inscricoes"])})},i=>{console.error(i)})})}static \u0275fac=function(n){return new(n||o)(e.\u0275\u0275directiveInject(p.ActivatedRoute),e.\u0275\u0275directiveInject(C.EventsService),e.\u0275\u0275directiveInject(x.ApiService),e.\u0275\u0275directiveInject(p.Router),e.\u0275\u0275directiveInject(f.DOCUMENT),e.\u0275\u0275directiveInject(b.NgbModal))};static \u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["events-Certificate"]],viewQuery:function(n,i){if(1&n&&e.\u0275\u0275viewQuery(O,5),2&n){let c;e.\u0275\u0275queryRefresh(c=e.\u0275\u0275loadQuery())&&(i.qrRef=c.first)}},decls:1,vars:1,consts:[["qrcode",""],["class","certificate",4,"ngIf"],[1,"certificate"],["width","1170px","height","800px",1,"image",3,"src"],[1,"row","top"],[1,"col-md-2","offset-10","text-left"],[3,"qrdata","width","errorCorrectionLevel","margin"],[1,"row","bottom"],[1,"col-md-6"],[1,"col-md-6","margin"],[1,"row","padding"],[3,"innerHTML"],[1,"row"]],template:function(n,i){1&n&&e.\u0275\u0275template(0,M,12,7,"div",1),2&n&&e.\u0275\u0275property("ngIf",i.image)},dependencies:[f.CommonModule,y.NgIf,h.QRCodeComponent],styles:[".certificate[_ngcontent-%COMP%]{background-image:url(/assets/images/top-badge.png);background-repeat:no-repeat;width:1170px;height:800px;padding:15px;font-size:26px;line-height:1.5;text-align:center}.top[_ngcontent-%COMP%]{height:60px;margin-right:-46px;margin-top:1px}.padding[_ngcontent-%COMP%]{padding:30px}.margin[_ngcontent-%COMP%]{margin-top:50px}.content[_ngcontent-%COMP%]{overflow-x:hidden}.image[_ngcontent-%COMP%]{position:absolute;top:0;left:0}"]})}return o}
1)()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.