PageSourceSearch

https://buenosaires.gob.ar/inicio/629.86f48307710b0a1c.js

js buenosaires.gob.ar collected 2026-09-24 08:28:21 UTC 13,549 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkportal_ciudad=self.webpackChunkportal_ciudad||[]).push([[629],{9629(Q,E,s){s.d(E,{PortalAutenticidadModule:()=>W});var f=s(2200),b=s(8132),l=s(2615),i=s(9417),g=s(5558),C=s(9437),T=s(980),k=s(8810),S=s(4653),$=s(9330),R=s(5420);let D=(()=>{class t{constructor(){this.http=(0,l.WQX)($.Qq),this.configService=(0,l.WQX)(R.s),this.configJson=this.configService.getConfig()}getReparticiones(){return this.http.get(`${this.configJson.backoffice_url}reparticiones`)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=l.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var h=s(8781),e=s(3664),j=s(4575),I=s(886);const F=t=>({"is-invalid":t});function A(t,c){if(1&t&&(e.j41(0,"div",35)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}function M(t,c){if(1&t&&(e.j41(0,"div",36)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessageService)}}function y(t,c){1&t&&(e.j41(0,"div",37),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"home.form.tipo_doc")," "))}function G(t,c){1&t&&(e.j41(0,"div",37)(1,"p"),e.EFF(2),e.nI1(3,"transloco"),e.nI1(4,"transloco"),e.k0s()()),2&t&&(e.R7$(2),e.Lme("",e.bMT(3,2,"home.form.a\xf1o")," ",e.bMT(4,4,"home.form.error_requerido")))}function w(t,c){if(1&t&&(e.j41(0,"div",37)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.SpI("A\xf1o debe ser un n\xfamero entre 1900 y ",n.anioActual,".")}}function L(t,c){1&t&&(e.j41(0,"div",37)(1,"p"),e.EFF(2),e.nI1(3,"transloco"),e.nI1(4,"transloco"),e.k0s()()),2&t&&(e.R7$(2),e.Lme("",e.bMT(3,2,"home.form.numero")," ",e.bMT(4,4,"home.form.error_requerido")))}function H(t,c){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&t){const n=c.$implicit;e.Y8G("value",n.siglas),e.R7$(),e.SpI(" ",n.descripcion," ")}}function Y(t,c){1&t&&(e.j41(0,"div",39)(1,"div",40)(2,"span",41),e.EFF(3,"Cargando..."),e.k0s()(),e.j41(4,"p",42),e.EFF(5,"Cargando..."),e.k0s()())}function N(t,c){if(1&t&&(e.j41(0,"div",43)(1,"div",44)(2,"p",45)(3,"strong",46),e.EFF(4,"Documento descargado"),e.k0s(),e.EFF(5),e.k0s()()()),2&t){const n=e.XpG();e.R7$(5),e.SpI(" ",n.form.value.tipoDocumento+"-"+n.form.value.anio+"-"+n.form.value.numero+"-"+n.form.value.reparticion," ")}}const P=[{path:"",component:(()=>{class t{constructor(){this.fb=(0,l.WQX)(i.ok),this.reparticionesService=(0,l.WQX)(D),this.gedoDocsService=(0,l.WQX)(S.S),this.recaptchaV3=(0,l.WQX)(h.Ld),this.formSubmitted=!1,this.reparticiones=[],this.GedoData=null,this.responseData=null,this.errorMessage=null,this.errorMessageService=null,this.downloadLink=null,this.descargado=!1,this.spinnerForm=!1,this.descargaCooldownHasta=0,this.fecha=new Date,this.anioActual=this.fecha.getFullYear(),this.form=this.fb.group({tipoDocumento:["",i.k0.required],numero:["",[i.k0.required]],anio:["",[i.k0.required,i.k0.min(1900),i.k0.max(this.anioActual)]],reparticion:["",i.k0.required]})}ngOnInit(){this.errorMessage=null,this.errorMessageService=null,this.spinnerForm=!0,this.reparticionesService.getReparticiones().subscribe(n=>{this.reparticiones=n.content,this.spinnerForm=!1,this.precargarRecaptcha()},()=>{this.errorMessageService="El servicio de consulta de documentos no est\xe1 disponible en este instante. Por favor int\xe9ntelo de nuevo m\xe1s tarde.",window.scrollTo({top:0,behavior:"smooth"}),this.spinnerForm=!1})}ngOnDestroy(){this.recaptchaV3.stopSessionRefresh()}onSubmit(){if(!this.form.valid||this.spinnerForm)return;const n=Date.now();if(this.descargaCooldownHasta>n){const o=Math.ceil((this.descargaCooldownHasta-n)/1e3);return this.formSubmitted=!0,void(this.errorMessage=`Detectamos muchas descargas seguidas. Esper\xe1 ${o} segundo${1===o?"":"s"} e intent\xe1 de nuevo.`)}this.errorMessage=null,this.errorMessageService=null,this.spinnerForm=!0,this.responseData=null,this.descargado=!1,this.formSubmitted=!0;const r=this.buildFormData();this.obtenerTokenDescarga().pipe((0,g.n)(o=>this.gedoDocsService.getDocumentData(r,o)),(0,C.W)(o=>this.reintentarConsultaSiTokenViejo(o,r)),(0,T.j)(()=>{this.spinnerForm=!1})).subscribe({next:o=>
1this.procesarRespuesta(o.content,r),error:o=>this.manejarErrorConsulta(o)})}buildFormData(){return{tipoDocumento:this.form.value.tipoDocumento,anio:this.form.value.anio.toString(),numero:this.form.value.numero,reparticion:this.form.value.reparticion}}precargarRecaptcha(){this.recaptchaV3.stopSessionRefresh(),this.recaptchaV3.preload().subscribe({error:()=>{}})}obtenerTokenDescarga(){return this.recaptchaV3.preload().pipe((0,g.n)(()=>this.recaptchaV3.executeForDownload(h.PO)))}reintentarConsultaSiTokenViejo(n,r){return h.Ld.isTokenTooOldError(n)?this.recaptchaV3.reloadAndExecuteForDownload(h.PO).pipe((0,g.n)(o=>this.gedoDocsService.getDocumentData(r,o))):(0,k.$)(()=>n)}procesarRespuesta(n,r){if(this.responseData=n??null,!this.responseData)return void this.mostrarErrorServicio();if(!1===this.responseData.recaptchaRes)return this.errorMessage="Por favor int\xe9ntelo de nuevo m\xe1s tarde.",this.responseData=null,this.downloadLink=null,void this.scrollToTop();if(!this.responseData.encontrado)return this.errorMessage=`No se ha generado en GEDO un documento con n\xfamero ${r.tipoDocumento}-${r.anio}-${r.numero}-${r.reparticion}. Compruebe haber ingresado correctamente los campos.`,this.responseData=null,this.downloadLink=null,void this.scrollToTop();if(this.responseData.restringido)return this.errorMessage=`No cuenta con privilegios para consultar el documento ${r.tipoDocumento}-${r.anio}-${r.numero}-${r.reparticion}.`,this.responseData=null,this.downloadLink=null,void this.scrollToTop();const o=this.responseData.documento||this.responseData.documentoBase64;if(o){this.errorMessage=null;const a=`Documento-${r.tipoDocumento}-${r.anio}-${r.numero}-${r.reparticion}`.trim();this.descargarPdfBase64(String(o),a),this.descargado=!0,this.downloadLink=null}}manejarErrorConsulta(n){const o=(n instanceof Error?n.message:String(n??"")).toLowerCase();return h.Ld.isTokenTooOldError(n)?(this.errorMessage="La sesi\xf3n de reCAPTCHA expir\xf3. Intent\xe1 descargar de nuevo.",void this.scrollToTop()):o.includes("recaptcha")||o.includes("invalid token")||o.includes("token invalido")||o.includes("token inv\xe1lido")||o.includes("timeout-or-duplicate")?(this.descargaCooldownHasta=Date.now()+3e4,this.errorMessage="No pudimos validar reCAPTCHA (posible exceso de descargas). Esper\xe1 45 segundos e intent\xe1 de nuevo.",void this.scrollToTop()):void this.mostrarErrorServicio()}mostrarErrorServicio(){this.errorMessageService="El servicio de consulta de documentos no est\xe1 disponible en este instante. Por favor int\xe9ntelo de nuevo m\xe1s tarde.",this.responseData=null,this.downloadLink=null,this.scrollToTop()}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}descargarPdfBase64(n,r){const o=atob(n),a=new Uint8Array(o.length);for(let u=0;u<o.length;u++)a[u]=o.charCodeAt(u);const m=new Blob([a],{type:"application/pdf"}),d=window.URL.createObjectURL(m),p=document.createElement("a");p.href=d,p.download=r.endsWith(".pdf")?r:`${r}.pdf`,p.click(),URL.revokeObjectURL(d)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-home-autenticidad"]],standalone:!1,decls:76,vars:38,consts:[["id","portal-autenticidad",1,"ficha-tramite"],[1,"bg-light"],[1,"container","py-4"],[1,"mb-3"],[1,"row"],[1,"col-lg-8"],[1,"lead"],[1,"bg-white"],[1,"container","py-4","py-md-5"],["id","formulario"],[3,"ngSubmit","formGroup"],["class","alert alert-danger mb-4","role","alert",4,"ngIf"],["class","alert alert-warning mb-4","role","alert",4,"ngIf"],[1,"mb-4"],["for","tipoDocumento",1,"form-label"],["aria-label","Tipo documento","defaultValue","2","formControlName","tipoDocumento",1,"form-control","form-select"],["value","","disabled","","selected",""],["value","ACTA"],["value","CE"],["value","IF"],["value","INGLEG"],["class","invalid-feedback",4,"ngIf"],["for","anio",1,"form-label"],["type","number","id","anio","name","anio","formControlName","anio",1,"form-control",3,"ngClass"],["for","numero",1,"form-label"],["type","text","id","numero","name","numero","inputmode","numeric","oninput","this.value = this.value.replace(/[^0-9]/g, '')","pattern","[0-9]*","maxlength","15","formControlName","numero",1,"form-control",3,"ngClass"],["for","reparticion",1,"form-label"],["formControlName","reparticion","id","reparticion",1,"form-control","form-select"],[3,"value",4,"ngFor","ngForOf"],["type","submit",1,"btn","btn-primary",3,"disabled"],["class","text-center mt-4",4,"ngIf"],["class","alert alert-success mt-4","role","alert",4,"ngIf"],[1,"my-5"],["id","bases"],["href","https://boletinoficial.buenosaires.gob.ar/normativaba/norma/81179","target","_blank"],["role","alert",1,"alert","alert-danger","mb-4"],["role","alert",1,"alert","alert-warning","mb-4"],[1,"invalid-feedback"],[3,"value"],[1,"text-center","mt-4"],["role","status",1,"spinner-border","text-primary","spinner-border-lg"],[1,"sr-only"],[1,"spinner-description"],["role","alert",1,"alert","alert-success","mt-4"],[1,"d-md-flex","justify-content-between","align-items-center"],[1,"mb-2","mb-md-0"],[1,"d-block","mb-md-1"]],template:function(r,o){if(1&r&&(e.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3),e.nrm(4,"app-breadcrumb"),e.k0s(),e.j41(5,"h1"),e.EFF(6),e.nI1(7,"transloco"),e.k0s(),e.j41(8,"div",4)(9,"div",5)(10,"p",6),e.EFF(11),e.nI1(12,"transloco"),e.k0s()()()()(),e.j41(13,"section",7)(14,"div",8)(15,"div",4)(16,"div",5)(17,"section",9)(18,"form",10),e.bIt("ngSubmit",function(){return o.onSubmit()}),e.DNE(19,A,3,1,"div",11)(20,M,3,1,"div",12),e.j41(21,"div",13)(22,"label",14),e.EFF(23),e.nI1(24,"transloco"),e.k0s(),e.j41(25,"select",15)(26,"option",16),e.EFF(27,"Seleccionar\u2026"),e.k0s(),e.j41(28,"option",17),e.EFF(29,"ACTA"),e.k0s(),e.j41(30,"option",18),e.EFF(31,"CE"),e.k0s(),e.j41(32,"option",19),e.EFF(33,"IF"),e.k0s(),e.j41(34,"o
1ption",20),e.EFF(35,"INLEG"),e.k0s(),e.DNE(36,y,3,3,"div",21),e.k0s()(),e.j41(37,"div",13)(38,"label",22),e.EFF(39),e.nI1(40,"transloco"),e.k0s(),e.nrm(41,"input",23),e.DNE(42,G,5,6,"div",21)(43,w,3,1,"div",21),e.k0s(),e.j41(44,"div",13)(45,"label",24),e.EFF(46),e.nI1(47,"transloco"),e.k0s(),e.nrm(48,"input",25),e.DNE(49,L,5,6,"div",21),e.k0s(),e.j41(50,"div",13)(51,"label",26),e.EFF(52),e.nI1(53,"transloco"),e.k0s(),e.j41(54,"select",27)(55,"option",16),e.EFF(56,"Seleccionar\u2026"),e.k0s(),e.DNE(57,H,2,2,"option",28),e.k0s()(),e.j41(58,"button",29),e.EFF(59),e.nI1(60,"transloco"),e.k0s(),e.DNE(61,Y,6,0,"div",30)(62,N,6,1,"div",31),e.k0s()(),e.nrm(63,"hr",32),e.j41(64,"section",33)(65,"h3",3),e.EFF(66,"Bases y condiciones"),e.k0s(),e.j41(67,"p"),e.EFF(68,"El titular sabe en forma concreta e informada que podr\xe1 recibir por WhatsApp, correo electr\xf3nico, SMS, y dem\xe1s canales digitales, informaci\xf3n sobre actos, actividades y servicios del GCABA y podr\xe1 darse de baja cuando reciba la informaci\xf3n."),e.k0s(),e.j41(69,"p"),e.EFF(70,"El GCABA tratar\xe1 los datos personales de acuerdo a la "),e.j41(71,"a",34),e.EFF(72,"Ley CABA 1845"),e.k0s(),e.EFF(73,". El titular podr\xe1 solicitar la supresi\xf3n o actualizaci\xf3n de sus datos. El GCABA no ceder\xe1 a terceros los datos recopilados."),e.k0s(),e.j41(74,"p"),e.EFF(75,"La Defensor\xeda del Pueblo es el \xf3rgano de control de la Ley 1845. Ante cualquier duda ponerse en contacto al 147."),e.k0s()()()()()()()),2&r){let a,m,d,p,u,v;e.R7$(6),e.JRh(e.bMT(7,20,"home.portal_autenticidad_titulo")),e.R7$(5),e.JRh(e.bMT(12,22,"home.portal_autenticidad_subtitulo")),e.R7$(7),e.Y8G("formGroup",o.form),e.R7$(),e.Y8G("ngIf",o.formSubmitted&&o.errorMessage),e.R7$(),e.Y8G("ngIf",o.errorMessageService),e.R7$(3),e.SpI("",e.bMT(24,24,"home.form.tipo_doc"),"*"),e.R7$(13),e.Y8G("ngIf",(null==o.form||null==(a=o.form.get("numero"))?null:a.invalid)&&(null==o.form||null==(a=o.form.get("numero"))?null:a.touched)),e.R7$(3),e.SpI("",e.bMT(40,26,"home.form.a\xf1o"),"*"),e.R7$(2),e.Y8G("ngClass",e.eq3(34,F,(null==o.form||null==(m=o.form.get("anio"))?null:m.invalid)&&(null==o.form||null==(m=o.form.get("anio"))?null:m.touched))),e.R7$(),e.Y8G("ngIf",(null==o.form||null==(d=o.form.get("anio"))?null:d.hasError("required"))&&(null==o.form||null==(d=o.form.get("anio"))?null:d.touched)),e.R7$(),e.Y8G("ngIf",null==o.form||null==(p=o.form.get("anio"))?null:p.invalid),e.R7$(3),e.SpI("",e.bMT(47,28,"home.form.numero"),"*"),e.R7$(2),e.Y8G("ngClass",e.eq3(36,F,(null==o.form||null==(u=o.form.get("numero"))?null:u.invalid)&&(null==o.form||null==(u=o.form.get("numero"))?null:u.touched))),e.R7$(),e.Y8G("ngIf",(null==o.form||null==(v=o.form.get("numero"))?null:v.invalid)&&(null==o.form||null==(v=o.form.get("numero"))?null:v.touched)),e.R7$(3),e.SpI("",e.bMT(53,30,"home.form.reparticion"),"*"),e.R7$(5),e.Y8G("ngForOf",o.reparticiones),e.R7$(),e.Y8G("disabled",!o.form.valid||o.spinnerForm),e.R7$(),e.SpI(" ",e.bMT(60,32,"home.form.boton")," "),e.R7$(2),e.Y8G("ngIf",o.spinnerForm),e.R7$(),e.Y8G("ngIf",o.descargado&&!o.errorMessage)}},dependencies:[f.YU,f.Sq,f.bT,j.D,i.qT,i.xH,i.y7,i.me,i.Q0,i.wz,i.BC,i.cb,i.tU,i.R_,i.j4,i.JD,I.Kj],encapsulation:2})}}return t})()}];let B=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=l.G2t({imports:[b.iI.forChild(P),b.iI]})}}return t})();var O=s(917),V=s(6012),X=s(2464);let W=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=l.G2t({imports:[f.MD,B,V._,O.z,X.Y,i.YN,i.X1]})}}return t})()}}]);

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.