PageSourceSearch

https://monterrey-casanare.gov.co/chunk-3QAEEWMF.js

js monterrey-casanare.gov.co collected 2026-09-25 11:10:13 UTC 2,407 bytes, 1 lines download raw bytes

1import{a as g}from"./chunk-3KOQRKYT.js";import{c as d}from"./chunk-SHTGYNA2.js";import{k as l,u as v}from"./chunk-4YERUHPX.js";import{Ya as n,ac as h,da as s,ib as c,mb as p,ya as o,zb as m}from"./chunk-DQGQ5ICO.js";function S(i,t){i&1&&m(0,"div",1)}var f=class i{constructor(t,e,a){this.settingService=t;this.elementRef=e;this.eventEmitterService=a}visibleCaptcha=!1;widgetID;ngOnInit(){this.activate()}activate(){this.eventEmitterService.reloadCaptchaEvent.subscribe(()=>this.reloadCaptcha()),this.eventEmitterService.renderCaptchaEvent.subscribe(()=>this.renderCaptcha()),this.visibleCaptcha=this.validateVisibleCaptcha(),sessionStorage.setItem("visibleCaptcha",this.visibleCaptcha.toString()),this.visibleCaptcha&&this.renderCaptcha()}renderCaptcha(){setTimeout(()=>{this.widgetID=hcaptcha.render("hcaptcha",{sitekey:this.settingService.settings.general.reCaptchaSite}),sessionStorage.setItem("captchaWidgetID",this.widgetID)},250)}validateVisibleCaptcha(){let t=!1,e=Math.floor(Math.random()*100),a=parseInt(this.settingService.settings.general.valueRecaptchaRequest??10);var C=this.elementRef.nativeElement.parentNode.id!=""?this.elementRef.nativeElement.parentNode.id:this.elementRef.nativeElement.parentNode.parentNode.name;switch(e>a&&(t=!0),C){case"comment.form":sessionStorage.setItem("visibleCaptchaFeedback",(!t).toString()),sessionStorage.setItem("visibleCaptchaComment",t.toString()),e=parseInt(window.btoa(e.toString())),sessionStorage.setItem("keyValueCaptchaComment",e.toString());break;case"feedback.form":let r=sessionStorage.getItem("visibleCaptchaFeedback");r!=null&&r==="false"&&(t=!1,e=Math.floor(Math.random()*(100-(a+1)))),e=parseInt(btoa(e.toString())),sessionStorage.setItem("keyValueCaptchaFeed",e.toString());break;case"registerForm":return e=parseInt(btoa("0")),sessionStorage.setItem("keyValueCaptcha",e.toString()),t}return e=parseInt(btoa(e.toString())),sessionStorage.setItem("keyValueCaptcha",e.toString()),t}reloadCaptcha(){console.log("reload"),hcaptcha.reset(sessionStorage.getItem("captchaWidgetID"))}static \u0275fac=function(e){return new(e||i)(n(d),n(o),n(g))};static \u0275cmp=s({type:i,selectors:[["app-captcha"]],standalone:!0,features:[h],decls:1,vars:1,consts:[["id","hcaptcha","class","h-captcha",4,"ngIf"],["id","hcaptcha",1,"h-captcha"]],template:function(e,a){e&1&&c(0,S,1,0,"div",0),e&2&&p("ngIf",a.visibleCaptcha)},dependencies:[v,l]})};export{f as a};

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.