PageSourceSearch

https://tutaza-boyaca.gov.co/chunk-KCPIJL6W.js

js tutaza-boyaca.gov.co collected 2026-09-25 11:58:12 UTC 47,279 bytes, 1 lines download raw bytes

1import{a as Oe}from"./chunk-64ZEVU2M.js";import{a as De}from"./chunk-TRSIHZNG.js";import{a as Ue}from"./chunk-UNSAKLS7.js";import{a as Pe}from"./chunk-JS6I5FQ5.js";import{a as Ve}from"./chunk-UTO46H5S.js";import{a as Ae}from"./chunk-2ZZOJFT2.js";import{a as ye}from"./chunk-JWSAKKVQ.js";import{a as fe}from"./chunk-LT72JKOL.js";import{b as Re,c as We}from"./chunk-VBIRK3HD.js";import{a as Se}from"./chunk-XBBEU2YL.js";import{a as je}from"./chunk-I7CB4NGY.js";import{a as Fe}from"./chunk-JZMNR7QN.js";import{a as He}from"./chunk-LH7AKJBU.js";import{a as be}from"./chunk-M7VQHQXJ.js";import{a as ue,d as ge}from"./chunk-BAGWPQZV.js";import{A as Le,D as Ne,c as we,g as ke,h as xe,j as Ce,l as Ie,m as Me,s as Te,t as _e,u as Be,x as Ee}from"./chunk-TZ2MW36L.js";import{a as K}from"./chunk-WZBVDNS6.js";import{a as z}from"./chunk-3KOQRKYT.js";import{o as D,p as U,t as ve}from"./chunk-MTKRVMUJ.js";import{a as N,c as W}from"./chunk-SHTGYNA2.js";import{b as me,i as pe,k as V,u as H}from"./chunk-4YERUHPX.js";import{Cc as he,Db as B,Ib as v,Jb as S,Qa as se,Sb as R,Tb as h,Ub as I,V as f,Vb as E,Xa as d,Ya as u,Yb as te,Zb as ie,_ as c,_b as ne,ac as L,cc as de,da as _,ib as b,mb as m,na as x,oa as C,tb as ae,v as j,vb as le,w as re,wb as ce,xb as a,yb as l,zb as g}from"./chunk-DQGQ5ICO.js";function $e(o,e){if(o&1){let t=B();a(0,"button",14),v("click",function(){x(t);let n=S(2);return C(n.back())}),g(1,"i",15),l()}}function Je(o,e){if(o&1&&(a(0,"div",12),b(1,$e,2,0,"button",13),l()),o&2){let t=S();d(),m("ngIf",t.model.length>1)}}function Ye(o,e){if(o&1){let t=B();a(0,"button",18),v("click",function(){x(t);let n=S(2);return C(n.next())}),g(1,"i",19),l()}}function Xe(o,e){if(o&1&&(a(0,"div",16),b(1,Ye,2,0,"button",17),l()),o&2){let t=S();d(),m("ngIf",t.model.length>1)}}function Qe(o,e){if(o&1&&(a(0,"div"),h(1),l()),o&2){let t=S(2);d(),I(t.datos==null?null:t.datos.nameButtonUrl)}}function Ze(o,e){o&1&&(a(0,"div"),h(1,"Ver m\xE1s"),l())}function et(o,e){if(o&1){let t=B();a(0,"button",10),v("click",function(){x(t);let n=S();return C(n.ejecutarUrlExterna())}),b(1,Qe,2,1,"div",20)(2,Ze,2,0,"div",20),l()}if(o&2){let t=S();d(),m("ngIf",t.datos==null?null:t.datos.nameButtonUrl),d(),m("ngIf",!(t.datos!=null&&t.datos.nameButtonUrl))}}var G=class o{constructor(e,t){this.dialogRef=e;this.data=t}visibleBtnPrev;model;indice;datos={};visibleBtnNext;ngOnInit(){this.activate()}activate(){this.visibleBtnPrev=!1,this.model=this.data.model,this.addDatos(this.model[0]),this.indice=0}close(){window.document.body.scrollTop=window.positionScroll,this.dialogRef.close()}ejecutarUrlExterna(){window.open(this.datos.externalLink,"_blank")}back(){this.visibleBtnNext=!0,this.visibleBtnPrev=!0,this.indice=this.indice-1,this.indice<0&&(this.indice=0),this.indice<=0&&(this.visibleBtnPrev=!1),this.addDatos(this.model[this.indice])}next(){this.visibleBtnNext=!0,this.visibleBtnPrev=!0,this.indice=this.indice+1,this.indice>this.model.length-1&&(this.indice=this.model.length-1,this.visibleBtnNext=!1),this.addDatos(this.model[this.indice]),this.indice+1>=this.model.length&&(this.visibleBtnNext=!1)}addDatos(e){this.datos.nombre=e.name,this.datos.embedUrl=e.embedUrl,this.datos.body=e.body,this.datos.externalLink=e.externalLink,this.datos.nameButtonUrl=e.nameButtonUrl}static \u0275fac=function(t){return new(t||o)(u(D),u(U))};static \u0275cmp=_({type:o,selectors:[["app-popup-content-modal"]],standalone:!0,features:[L],decls:16,vars:6,consts:[[1,"modal-wrap",2,"z-index","3"],[1,"modal-inner"],["class","modal-buttons-carrusel-prev",4,"ngIf"],["class","modal-buttons-carrusel-next",4,"ngIf"],[1,"modal-wrapTxt"],[1,"modal__tit"],[1,"modal-wrapImg"],["alt","",2,"max-width","100%",3,"src"],[1,"modal__subTit"],[1,"wrap-btnCenter"],["tabindex","1","type","submit",1,"modal__btn","modal__btn--inLine",3,"click"],["tabindex","1","type","submit","class","modal__btn modal__btn--inLine",3,"click",4,"ngIf"],[1,"modal-buttons-carrusel-prev"],["id","btn-prev","aria-label","Banner anterior","tabindex","1","class","custom-banner-btn-prev-popup",3,"click",4,"ngIf"],["id","btn-prev","aria-label","Banner anterior","tabindex","1",1,"custom-banner-btn-prev-popup",3,"click"],[1,"icon-prev"],[1,"modal-buttons-carrusel-next"],["id","btn-next","aria-label","Banner siguiente","tabindex","1","class","custom-banner-btn-next-popup",3,"click",4,"ngIf"],["id","btn-next","aria-label","Banner siguiente","tabindex","1",1,"custom-banner-btn-next-popup",3,"click"],[1,"icon-next"],[4,"ngIf"]],template:function(t,i){t&1&&(a(0,"div",0)(1,"div",1),b(2,Je,2,1,"div",2)(3,Xe,2,1,"div",3),a(4,"div",4)(5,"div",5),h(6),l(),a(7,"div",6),g(8,"img",7),l(),a(9,"div",8),h(10),l(),a(11,"div",9)(12,"button",10),v("click",function(){return i.close()}),h(13," Cerrar "),l(),h(14," \xA0\xA0 "),b(15,et,3,2,"button",11),l()()()()),t&2&&(d(2),m("ngIf",i.visibleBtnPrev),d(),m("ngIf",i.visibleBtnNext),d(3),I(i.datos==null?null:i.datos.nombre),d(2),m("src",i.datos==null?null:i.datos.embedUrl,se),d(2),I(i.datos==null?null:i.datos.body),d(5),m("ngIf",i.datos==null?null:i.datos.externalLink))},dependencies:[H,V]})};var nt=o=>({"btn-enter":!0,"disabled-button":o});function ot(o,e){if(o&1&&(a(0,"option",10),h(1),l()),o&2){let t=e.$implicit;m("value",t.reasonID),d(),I(t.name)}}function rt(o,e){if(o&1&&(a(0,"span"),h(1),l()),o&2){let t=S(2);d(),E("Debes ingresar el por que reportas el ",t.reportTypeName,"")}}function st(o,e){if(o&1&&(a(0,"div",14),b(1,rt,2,1,"span",15),l()),o&2){let t;S();let i=R(7);d(),m("ngIf",(t=i.form.get("motive"))==null||t.errors==null?null:t.errors.required)}}function at(o,e){o&1&&(a(0,"span"),h(1,"Debes ingresar el motivo"),l(
1))}function lt(o,e){o&1&&(a(0,"span"),h(1,"Debes ingresar m\xE1ximo 200 caracteres"),l())}function ct(o,e){if(o&1&&(a(0,"div",14),b(1,at,2,0,"span",15)(2,lt,2,0,"span",15),l()),o&2){let t,i;S();let n=R(7);d(),m("ngIf",(t=n.form.get("comment"))==null||t.errors==null?null:t.errors.requiredEmpty),d(),m("ngIf",(i=n.form.get("comment"))==null||i.errors==null?null:i.errors.maxlength)}}var q=class o{constructor(e,t,i,n,s){this.dialogRef=e;this.data=t;this.helperService=i;this.reportService=n;this.eventEmitterService=s}reportTypeName;model={};formIsBusy;reportObject;reasons;ngOnInit(){console.log("in report"),this.activate()}activate(){this.reportObject=this.data.reportObject,this.reportTypeName=this.reportObject.commentID?"comentario":"contenido",this.reportService.getReasons().subscribe({next:e=>this.setReasons(e),error:e=>this.errorReasons(e)})}close(){this.reportObject={},this.dialogRef.close()}send(e){e.valid&&!this.formIsBusy&&(this.formIsBusy=!0,this.reportObject.commentID?(this.model.ReportType="Comment",this.model.ElementToReportID=this.reportObject.commentID):(this.model.ReportType="Content",this.model.ElementToReportID=this.reportObject.contentID),this.reportObject.parentCommentID&&(this.model.parentCommentID=this.reportObject.parentCommentID),this.reportService.add(this.model).subscribe({next:t=>this.setAdd(t),error:t=>this.errorAdd(t),complete:()=>this.formIsBusy=!1}))}setAdd(e){this.model.ReportType==="Comment"&&(this.helperService.piwikTrackEvent("Comentarios","Reportar","nosune.report"),this.eventEmitterService.removeComment.emit(this.model)),this.close()}setReasons(e){this.reasons=e}errorAdd(e){this.helperService.handlerException(e)}errorReasons(e){}static \u0275fac=function(t){return new(t||o)(u(D),u(U),u(K),u(Ue),u(z))};static \u0275cmp=_({type:o,selectors:[["app-report-modal"]],standalone:!0,features:[L],decls:23,vars:8,consts:[["form","ngForm"],[1,"modal-content","animate-zoom","vertical-overflow"],[1,"vertical-overflow-div"],["href","",1,"btn-close",3,"click"],[1,"icon-prev"],[1,"modal-pass"],["novalidate","","name","form",3,"ngSubmit"],[1,"modal-tit"],["name","motive","required","","aria-required","true",1,"mail",3,"ngModelChange","ngModel"],["value","","disabled","","selected",""],[3,"value"],["class","error mail",4,"ngIf"],["appAutoHeight","","maxlength","200","required","","aria-required","true","-empty","","name","comment",1,"mail",3,"ngModelChange","ngModel"],["type","submit","value","Reportar",3,"ngClass"],[1,"error","mail"],[4,"ngIf"]],template:function(t,i){if(t&1){let n=B();a(0,"div",1)(1,"div",2)(2,"a",3),v("click",function(){return x(n),C(i.close())}),g(3,"span",4),h(4," VOLVER "),l(),a(5,"div",5)(6,"form",6,0),v("ngSubmit",function(){x(n);let r=R(7);return C(i.send(r))}),a(8,"h3",7),h(9),l(),a(10,"label"),h(11,"\xBFPor qu\xE9 haces el reporte?"),l(),a(12,"select",8),ne("ngModelChange",function(r){return x(n),ie(i.model.ReasonID,r)||(i.model.ReasonID=r),C(r)}),a(13,"option",9),h(14,"-Selecciona-"),l(),le(15,ot,2,2,"option",10,ae),l(),b(17,st,2,1,"div",11),a(18,"label"),h(19,"Describe el motivo por el cual reportas"),l(),a(20,"textarea",12),ne("ngModelChange",function(r){return x(n),ie(i.model.Comment,r)||(i.model.Comment=r),C(r)}),l(),b(21,ct,3,2,"div",11),g(22,"input",13),l()()()()}if(t&2){let n,s,r=R(7);d(9),E("\xBFPor qu\xE9 reportas este ",i.reportTypeName,"?"),d(3),te("ngModel",i.model.ReasonID),d(3),ce(i.reasons),d(2),m("ngIf",((n=r.form.get("motive"))==null?null:n.invalid)&&r.submitted),d(3),te("ngModel",i.model.Comment),d(),m("ngIf",((s=r.form.get("comment"))==null?null:s.invalid)&&r.submitted),d(),m("ngClass",de(6,nt,i.formIsBusy))}},dependencies:[H,pe,V,Ne,Me,_e,Be,we,Te,ke,xe,Ee,Le,Ie,Ce,De]})};var $=class o{constructor(e){this.http=e}getAll(){return this.http.get("/api/v1/identificationtype/")}static \u0275fac=function(t){return new(t||o)(c(N))};static \u0275prov=f({token:o,factory:o.\u0275fac,providedIn:"root"})};var J=class o{constructor(e){this.httpService=e}apiUrl="/api/v1/locations";getRoot(){return this.httpService.get(`${this.apiUrl}/root`)}getChildrens(e){return this.httpService.get(`${this.apiUrl}/${e}/children`)}getLocations(){return this.httpService.get(`${this.apiUrl}/root`)}static \u0275fac=function(t){return new(t||o)(c(N))};static \u0275prov=f({token:o,factory:o.\u0275fac,providedIn:"root"})};var Y=class o{constructor(e){this.http=e}get(){return this.http.get("/api/v1/getKeycloadId")}static \u0275fac=function(t){return new(t||o)(c(N))};static \u0275prov=f({token:o,factory:o.\u0275fac,providedIn:"root"})};var X=class o{constructor(e){this.settingService=e;var t=this.settingService.settings.general.siteKeyword;this.urlChat=`${this.settingService.settings.general.urlChat}/scripts/resources.js?v=a-3-0-42${this.settingService.settings.general.configurationCacheKey}&d=${t}`}urlChat;
1open(){window.open(this.urlChat,"popup","resizable=1,left=150pt,top=150pt,width=1000px,height=800px")}close(){let e=window.open(this.urlChat,"popup","resizable=1,left=150pt,top=150pt,width=1000px,height=800px");e&&e.close()}static \u0275fac=function(t){return new(t||o)(c(W))};static \u0275prov=f({token:o,factory:o.\u0275fac,providedIn:"root"})};var Q=class o{facebookUrl="http://www.facebook.com/sharer/sharer.php?u=";twitterUrl="https://twitter.com/intent/tweet?url=";googlePlusUrl="https://plus.google.com/share?url=";constructor(){}shared(e,t,i=""){var n=650,s=500,r=window.screenY+(window.outerHeight-s)/2.5,y=window.screenX+(window.outerWidth-n)/2,k=null;switch(e){default:case"Facebook":k=`${this.facebookUrl}${t}${i?"&t=".concat(i):""}`;break;case"Twitter":k=`${this.twitterUrl} + ${t} + ${i?"&text=".concat(i):""}`;break;case"Google":k=`${this.googlePlusUrl}${t}`;break}window.open(k,"shared","width=".concat(""+n,",height=",""+s,",top=",""+r,",left=",""+y))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=f({token:o,factory:o.\u0275fac,providedIn:"root"})};var Z=class o{constructor(e,t,i,n,s,r,y,k,A,P,p,w,T,oe,ee,vt,St,bt,yt,wt,kt,xt,Ct,It){this.helperService=e;this.userService=t;this.policeTermsService=i;this.modalService=n;this.authService=s;this.identificationTypeService=r;this.locationService=y;this.keyCloakService=k;this.settingService=A;this.bannerService=P;this.router=p;this.chatWindowService=w;this.commentService=T;this.sharedService=oe;this.contentService=ee;this.menuService=vt;this.sliderConfigService=St;this.blocksService=bt;this.contentPopupService=yt;this.document=wt;this.appService=kt;this.sharedSignalsService=xt;this.eventEmitterService=Ct;this.fileService=It;he(()=>{this.disabledBack=this.sharedSignalsService.disabledBack()}),this.clientId=this.settingService.settings.general.clientId,this.realm=this.settingService.settings.general.realm,this.keycloackURI=this.settingService.settings.general.keycloackURI,this.resourcekeycloak=this.settingService.settings.general.resourcekeycloak,this.autenticatorGovCoURI=this.settingService.settings.general.autenticatorGovCoURI,this.clientIdAND=this.settingService.settings.general.clientIdAND,this.rutasuper=this.settingService.settings.general.globalApiUrl,this.captchaSite=this.settingService.settings.general.reCaptchaSite,j([this.identificationTypeService.getAll(),this.locationService.getRoot()]).subscribe({next:F=>{this.identificationTypes=F[0],this.paises=F[1]},error:F=>console.log(F)}),this.ngOnInit()}slides=[];seo={};menu={};footer={};socialNetworks={};headerTitle="";pathNotifications="";information={};htmlRoutes={};userLoad=!1;userMainData;night=!1;goLogin=!1;externalLinkActive=!1;externalLink="";externalLinkName="Cargando...";externalLinkMessage="Esta apunto de ser redirigido a ";externalLinkCancelButton="Cancelar";externalLinkOkButton="Aceptar";modelPolice={};modifiedDateSite=null;textBtn="M\xE1s";logoutUrl="";searchModel;loginKeyCloack;identificationTypes;paises;clientId;realm;keycloackURI;resourcekeycloak;autenticatorGovCoURI;clientIdAND;form;formregis;indexTab=[];indexTabBlock=[20];blocks=[];firstLogo;lastLogo;largeLogo;amountLogos;enabledLogos;routeFriendly;barMenu;pendingLoadMenu;routeMenu="/";disabledBack=!1;logWidth="";fontSize=0;htmlCss;sharedComment="";idShared=null;reportObject={};contentToDelete;carouselBusy=!1;modelEdit={};bannerRotationSeconds;topBar;logoTopBar;footerStyles;footerStylesIcon;footerStylesIconSecond;linkAccess;gov;colorContent;slider;titleContent;Contentgov={};loadLogos=!1;footerConfig=[];textSign="";pathSign="";urlSign="";rutasuper="";captchaSite="";countPopup=0;modelContentAdmin=[];bannerNow;resizeObservable$;resizeSubscription$;screen=800;ngOnInit(){this.resizeObservable$=re(window,"resize"),this.resizeSubscription$=this.resizeObservable$.subscribe(e=>{this.resize()}),this.activate(),this.init()}resize(){let e=document.getElementById("bar-submenu");window.screen.width<767?e!=null&&(e.style.left="0px"):e!=null&&(e.style.left="290px"),this.screen=window.screen.width}windowOnscroll=()=>{let e=document.querySelector("#barMenuHeader"),t=document.documentElement.scrollTop;e!=null&&(t>136?(e.style.top=0,e.style.position="fixed",e.style.zIndex=10,e.style.width="100vw"):(e.style.top="",e.style.position="",e.style.zIndex=2))};windowOnclick(e){let t=document.querySelector(".header-menuBtnV2");if(t?.addEventListener("click",()=>{if(this.screen<767){let i=document.getElementById("bar-submenu");i.style.left="0px"}}),e.srcElement.href||e.path&&(e.path[2].href||e.path[1].href)){e.preventDefault();let i=e.srcElement.href;if(e.path&&e.path[2]&&e.path[2].href!==void 0&&(i=e.path[2].href),e.path&&e.path[1]&&e.path[1].href!==void 0&&(i=e.path[1].href),typeof i<"u"&&i!==null){let n=new URL(i).hostname;n=n.toString(),i.includes("api")||(i.includes(window.location.host)?e.target.getAttribute("data-current")==="banner"?(this.externalLinkName=n,this.externalLink=i,setTimeout(()=>{this.helperService.compile(O,{}),this.externalLinkActive=!0},500)):(console.log("comentario",i),i.includes("menu")||i.includes("mi-perfil")||i.includes("mapa-del-sitio")||i.includes("politicas")||i.includes("transparencia")||i.includes("estadisticas")||i.includes("tramites-y-servicios")||i.includes("tema")?window.open(i,"_self"):i.includes("#")||i.includes("")||window.open(i,"_blank")):(this.externalLinkName=n,this.externalLink=i,setTimeout(()=>{this.helperService.compile(O,{}),this.externalLinkActive=!0},500)))}}}loadStyles(){for(var e=document.head.querySelectorAll("[rel=preload]"),t=0;t<e.length;t++){var i=e[t],n=document.createElement("link");n.href=i.href,n.rel="stylesheet",document.head.appendChild(n)}}showM(e){this.textBtn!=="Cerrar"?(e.stopPropagation(),this.document.getElementById("bar-submenu").style.display="block",this.document.getElementById("bar-submenu").style.left="290px",window.innerWidth<=767&&this.document.body.classList.add("no-scroll"),this.textBtn="Cerrar"):(this.document.body.classList.remove("no-scroll"),this.document.getElementById("bar-submenu").style.display="none",this.document.getElementById("bar-submenu-sub")!=null&&(this.document.getElementById("bar-submenu-sub").style.display="none"),this.textBtn="M\xE1s"),this.sharedSignalsService.textBtn.set(this.textBtn)}displaySearch(e){(!e||e.keyCode===13)&&this.searchModel&&this.router.navigate(["/buscar",{q:this.searchModel}])}GetKeyCloak(){(this.clientId==null||this.clientId==null||this.settingService.settings.general.chatTimeInactivity==null)&&j([this.keyCloakService.get()]).subscribe({next:()=>window.location.reload(),error:this.helperService.handlerException})}activateKeycloack(e,t){var i=new Keycloak(e);i.init({}).then(function(n){t.logoutUrl=i.createLogoutUrl(),n&&i.loadUserProfile().then(function(s){t.userService.socialLogin({SocialNetwork:"KeyCloack",Token:i.token}).subscribe({next:r=>{if(r.token)t.setAuth(r),window.location.reload();else{let y={};r.identificationType=="CC"&&(y={identificationTypeID:2,name:"C\xE9dula de ciudadan\xEDa"}),t.loginKeyCloack={model:{email:r.email,facebookId:r.socialId,name:r.name,identificationTypes:t.identificationTypes,countries:t.paises,identificationType:y,identification:r.identification,secondname:r.secondname,lastname:r.lastname,secondlastname:r.secondlastname,address:r.address,phone:r.phone,loa:r.loa,userId:r.userId,country:{id:1,name:"Colombia"}},registerForm:!0},console.log("loginKeyCloack.model",t.loginKeyCloack.model),t.register(t.loginKeyCloack.model),console.log("usuario registrado")}},error:r=>{console.log(r.data.error.message),t.modalService.showAlert(r.data.error.message),t.authService.closeSesionAND()}})})}).catch(function(){alert("failed to initialize")})}activate(){var e=this,t=localStorage.getItem("cookies");if(t!=="true"&&window.location.pathname!=="/politicas"&&this.modalService.showAlertCookies(),this.clientId==null||this.realm==null||this.keycloackURI==null||this.settingService.settings.general.chatTimeInactivity==null)this.GetKeyCloak();else{var i={clientId:this.clientId,realm:this.realm,url:`${this.keycloackURI}/auth/`,"ssl-required":"external",resource:this.resourcekeycloak,"public-client":!0,"confidential-port":0};setTimeout(()=>{this.activateKeycloack(i,e)},5e3),window.localStorage.getItem("token")?this.userService.getCurrent().subscribe({next:r=>{this.setUser(r)},error:()=>{this.errorUser()}}):this.userLoad=!0;let n=document.querySelector(".nav-linkLast");document.body.addEventListener("click",()=>{e.hideClassHidde(),e.hideSubeMenus()}),e.document.addEventListener("click",function(r){e.hideClassHidde(),n?.addEventListener("click",()=>{e.hideSubeMenus()})}),this.loadStyles(),this.start()}}register(e){if(e.captcha&&e.captcha.length===0)return!1;var t={email:e.email,identificationType:{identificationTypeID:e.identificationType&&e.identificationType.identificationTypeID?e.identificationType.identificationTypeID:2},identification:e.identification||"",name:e.name||e.email||" ",secondname:e.secondname||"",lastname:e.lastname||" - Registro incompleto",secondlastname:e.secondlastname||"",address:e.address||"",phone:e.phone||"",loa:e.loa||"loa:1",country:{id:e.country&&e.country.id?e.country.id:1,name:e.country&&e.country.name?e.country.name:"Colombia"},department:{id:1,name:"Departamento"},location:{id:1,name:"Ciudad"},neighborhood:"Barrio",genderID:1,birthDate:new Date().toISOString(),captcha:"captcha"};return this.userService.create(t).subscribe({next:i=>{this.setAuth(i)},error:i=>{console.error(i)}}),!0}hideSubeMenus(){this.textBtn="M\xE1s";let e=this.document.getElementById("bar-submenu"),t=this.document.querySelector(".nav-menu-more");if(e!=null)if(e.style.display=="none"){t!=null&&(t.className="nav-menu-more");let i=document.getElementById("bar-submenu-sub");i!=null&&(i.style.display="none")}else t!=null&&(t.className="nav-menu-more open")}setAuth(e){console.log("setauthHere"),console.log(e),window.sessionStorage.setItem("dataSethAuth",JSON.stringify(e)),this.form&&(this.form.isBusy=!1),this.formregis&&(this.formregis.isBusy=!1),window.chatGOV={email:e.user.email,name:e.user.fullName,identification:e.user.identification},this.authService.user=e.user,e.user.fbId&&this.helperService.loadFacebookScript(e.user.fbId),e.user.gId&&this.helperService.loadGoogleScript(e.user.gId);try{window.localStorage.setItem("token",e.token),e.user.permissions&&e.user.permissions.indexOf("Administrator")!==-1&&(window.sessionStorage.removeItem("viewPopup1"),window.sessionStorage.removeItem("viewPopup2"),this.loadMenu(),this.night=!1,window.sessionStorage.getItem("night")&&window.sessionStorage.removeItem("night"),this.policeTermsService.get().subscribe({next:t=>{this.setPolicies(t)},error:t=>{console.log(t)}}),this.userService.getUserMain({}).subscribe({next:t=>{this.setDataUsers(t)},error:t=>{this.setError(t)}})),this.helperService.freezeObject(this.authService.user)}catch(t){console.log(t),this.modalService.showAlert("No puedes iniciar sesi\xF3n si navegas en modo privado")}sessionStorage.getItem("isDesktop")||sessionStorage.setItem("isDesktop","true")}hideClassHidde(){this.document.querySelectorAll(".class-hidde").forEach(function(e){e!=null&&(e.style.display="none");let t=document.getElementById("bar-submenu");t!=null&&(t.style.display="none")})}start(){var e=this;if(this.firstLogo=this.settingService.settings.general.firstLogo,this.sharedSignalsService.firstLogo.set(this.firstLogo),this.lastLogo=this.settingService.settings.general.lastLogo,this.sharedSignalsService.lastLogo.set(this.lastLogo),this.largeLogo=this.settingService.settings.general.largeLogo,this.sharedSignalsService.largeLogo.set(this.largeLogo),this.amountLogos=this.settingService.settings.general.amountLogos,this.sharedSignalsService.amountLogos.set(this.amountLogos),this.enabledLogos=(this.firstLogo||this.lastLogo)&&this.amountLogos==="2"||this.amountLogos==="1"&&this.largeLogo,this.buildWidthLogos(),window.sessionStorage.getItem("night")&&(this.night=window.sessionStorage.getItem("night")==="true"),this.router.events.subscribe(i=>{if(i instanceof ue){let r=history.state;document.body.classList.remove("no-scroll"),this.helperService.setSeoDefault(this.seo);var n=window.location.pathname+location.search;if(n.length>0&&n.indexOf("tema")===-1&&n[0]==="/")n=n.replace("/","");else if(n.indexOf("tema")>-1){var s=n.split("/");s.length>3&&(n="/tema/"+s[2])}this.routeFriendly=n,this.sharedSignalsService.routeFriendly.set(this.routeFriendly),this.barMenu?this.validateActiveUrl():this.pendingLoadMenu=!0,window.location.pathname+location.search!=="/"&&setTimeout(function(){window.scrollTo(0,0)},100),(window.location.pathname+location.search).indexOf("/menu")===-1&&(this.routeMenu=window.location.pathname+location.search,this.helperService.googleAnalyticsPageView(window.location.pathname+location.search),this.helperService.piwikPageView(window.location.pathname+location.search)),(window.location.pathname+location.search).indexOf("/pagina-no-encontrada")===-1&&(this.disabledBack=!1,this.sharedSignalsService.disabledBack.set(this.disabledBack))}}),this.menu.display=!1,this.menu.filter={keyword:"",section:"Home",pageSize:50},this.settingService.settings.general.footer&&(this.footer=JSON.parse(this.settingService.settings.general.footer),this.settingService.globalLogo({alias:this.settingService.settings.general.siteKeyword,type:0}).subscribe({next:i=>{this.setLogos(i)},error:i=>{console.log(i)}})),this.socialNetworks.facebookUrl=this.settingService.settings.general.facebookUrl,this.socialNetworks.facebookAlias=this.settingService.settings.general.facebookAlias,this.socialNetworks.twitterUrl=this.settingService.settings.general.twitterUrl,this.socialNetworks.twitterAlias=this.settingService.settings.general.twitterAlias,this.socialNetworks.youtubeUrl=this.settingService.settings.general.youtubeUrl,this.socialNetworks.youtubeAlias=this.settingService.settings.general.youtubeAlias,this.socialNetworks.instagramUrl=this.settingService.settings.general.instagramUrl,this.socialNetworks.instagramAlias=this.settingService.settings.general.instagramAlias,this.socialNetworks.ordenRedes=[],this.socialNetworks.ordenRedesDos=[],this.socialNetworks.facebookUrl!=""&&this.socialNetworks.facebookUrl!=="false"){var t={url:this.socialNetworks.facebookUrl,alias:this.socialNetworks.facebookAlias,icon:"icon-facebook",name:"Facebook"};this.socialNetworks.ordenRedes.push(t)}if(this.socialNetworks.twitterUrl!=""&&this.socialNetworks.twitterUrl!=="false"){var t={url:this.socialNetworks.twitterUrl,alias:this.socialNetworks.twitterAlias,icon:"icon-icon-124",name:"Twitter"};this.socialNetworks.ordenRedes.push(t)}if(this.socialNetworks.youtubeUrl!=""&&this.socialNetworks.youtubeUrl!=="false"){var t={url:this.socialNetworks.youtubeUrl,alias:this.socialNetworks.youtubeAlias,icon:"icon-youtube",name:"Youtube"};this.socialNetworks.ordenRedes.length==2?this.socialNetworks.ordenRedesDos.push(t):this.socialNetworks.ordenRedes.push(t)}if(this.socialNetworks.instagramUrl!=""&&this.socialNetworks.instagramUrl!=="false"){var t={url:this.socialNetworks.instagramUrl,alias:this.socialNetworks.instagramAlias,icon:"icon-instagram",name:"Instagram"};this.socialNetworks.ordenRedes.length==2?this.socialNetworks.ordenRedesDos.push(t):this.socialNetworks.ordenRedes.push(t)}this.sharedSignalsService.socialNetworks.set(this.socialNetworks),this.headerTitle=this.settingService.settings.resources["Header.Title"],this.sharedSignalsService.headerTitle.set(this.headerTitle),this.pathNotifications=this.settingService.settings.routes.Notifications,this.sharedSignalsService.pathNotifications.set(this.pathNotifications),this.information.privacyPolicies=this.settingService.settings.routes.ContentInfo.concat("/",this.settingService.settings.general.privacyPolicies),this.information.termsOfUse=this.settingService.settings.routes.ContentInfo.concat("/",this.settingService.settings.general.termsOfUse),this.eventEmitterService.$viewContentLoaded.subscribe(()=>{this.seo.url=window.location.href}
1),this.eventEmitterService.logOutkeyCloak.subscribe(i=>{this.logOutkeyCloak(i)}),this.loadMenu(),j([this.bannerService.getGlobal(this.settingService.settings.general.siteKeyword),this.bannerService.get({section:"Home"}),this.settingService.getGovCo(),this.policeTermsService.get(),this.settingService.getSettingContentGlobal()]).subscribe({next:i=>{e.setBanner(i),e.setGovCo(i[2]),e.setPolicies(i[3]),e.setSettingContent(i[4])},error:this.helperService.handlerException}),this.validateSession()}buildWidthLogos(){window.innerWidth<480?this.logWidth="-79px":window.innerWidth<544?this.logWidth="-104px":window.innerWidth<600?this.logWidth="-110px":window.innerWidth<768?this.logWidth="-130px":window.innerWidth<960?this.logWidth="-170px":this.logWidth="-190px",this.sharedSignalsService.logWidth.set(this.logWidth)}logIn(){this.authService.callCurrentUser()}loginkeyCloakModal(){this.getExternalLinkModal(this.settingService.settings.general.autenticatorGovCoURI,!0)}getExternalLinkModal(e,t,i,n,s){this.externalLinkName=e,this.externalLinkMessage=i?.trim()?i:"Esta apunto de ser redirigido a ",this.externalLinkCancelButton=s||"Cancelar",this.externalLinkOkButton=n||"Aceptar",this.goLogin=t||!1,this.helperService.compile(O,{})}loginkeyCloak(){window.sessionStorage.removeItem("viewPopup1"),window.sessionStorage.removeItem("viewPopup2");var e={clientId:this.settingService.settings.general.clientId,realm:this.settingService.settings.general.realm,url:`${this.settingService.settings.general.keycloackURI}/auth/`,"ssl-required":"external",resource:this.settingService.settings.general.resourcekeycloak,"public-client":!0,"confidential-port":0},t=new Keycloak(e);let i={idpHint:"oidc"};t.init({}).then(()=>{t.login(i)}),console.log(t),window.localStorage.setItem("keycloack",JSON.stringify(t))}openMenu(){this.routeMenu=window.location.pathname+location.search,window.location.pathname="menu"}logOutkeyCloak(e=!0){this.clearStorageKeycloak(this.logoutUrl),this.authService.closeSesionAND(),e&&window.location.reload()}clearStorageKeycloak(e){window.localStorage.removeItem("token"),window.sessionStorage.removeItem("isDesktop"),window.sessionStorage.removeItem("viewPopup1"),window.sessionStorage.removeItem("viewPopup2"),this.authService.user={},this.loginKeyCloack&&(this.loginKeyCloack.model={}),this.chatWindowService.close(),this.router.navigate([e])}logOut(e){var t=this;if(window.FB&&this.authService.user.fbId)try{window.FB.login(function(n){window.FB.getLoginStatus(function(s){s.status==="connected"?window.FB.logout(function(r){try{window.FB.Auth.setAuthResponse(null,"unknown")}catch{}t.clearStorage(e)}):t.clearStorage(e)})})}catch{t.clearStorage(e)}else if(window.gapi&&this.authService.user.gId){var i=window.gapi.auth2.getAuthInstance();i!=null?i.signIn().then(function(){i.signOut().then(function(){t.clearStorage(e)}).catch(function(n){t.clearStorage(e)}),i.disconnect()}).catch(function(n){t.clearStorage(e)}):t.clearStorage(e)}else t.clearStorage(e)}clearStorage(e){window.localStorage.removeItem("token"),window.sessionStorage.removeItem("isDesktop"),window.sessionStorage.removeItem("viewPopup1"),window.sessionStorage.removeItem("viewPopup2"),this.authService.user=null,e||(window.location.href="/"),this.chatWindowService.close(),this.authService.closeSesionAND()}validateSession(){setInterval(()=>{this.authService.isSessionDead()&&(this.logOut(!0),this.helperService.sessionEndedMessage())},3e3)}back(){window.history.length===1?this.redirect("/"):window.history.back()}redirectPath(e){this.router.navigate([e])}openNewWindow(e){window.open(e)}redirect(e){window.location.pathname=e}changeFontSize(e){let t=this.htmlCss;switch(e===-1&&this.fontSize>0?this.fontSize--:e===1&&this.fontSize<3&&this.fontSize++,this.fontSize){default:case 0:this.htmlCss="";break;case 1:this.htmlCss="fontSize-s";break;case 2:this.htmlCss="fontSize-m";break;case 3:this.htmlCss="fontSize-l";break}window.macyInstance&&setTimeout(function(){window.macyInstance.reInit()},100),t&&document.body.classList.remove(t),this.htmlCss&&document.body.classList.add(this.htmlCss)}displayShared(e,t){t.contentType?(this.sharedComment=t.tags[0].friendlyName.concat("/",t.friendlyName),this.idShared=null):((!t.user||t.user.userID!==this.authService.user.id)&&(this.idShared=t.commentID),this.sharedComment=this.settingService.settings.routes.Comment.concat("/",t.friendlyName));var i=document.getElementById("sharedNetWork").innerHTML;this.helperService.compile(e.currentTarget.parent(),i)}removeShared(){this.idShared=null}shared(e){this.idShared&&this.commentService.shared(this.idShared,null).subscribe({next:()=>{this.insertShared()},error:()=>{this.insertShared()}});var t=window.location.href;this.sharedService.shared(e,t)}report(e,t){e.stopPropagation(),this.authService.callCurrentUser().subscribe({next:()=>{this.reportObject=t,this.helperService.compile(q,{reportObject:this.reportObject}).subscribe(()=>{this.reportObject={}})}})}like(e,t){e.stopPropagation(),t.alreadyLiked||this.authService.callCurrentUser().subscribe({next:()=>{this.contentService.like(t).subscribe({next:i=>{this.setLike(t,i)},error:i=>{this.helperService.handlerException(i)}})}})}hasPermission(e){return this.authService.user.permissions.indexOf(e)!=-1}enabled(e){e.menuEdit=!e.menuEdit,this.contentService.enabled(e).subscribe({next:t=>{this.setEnable(t)},error:t=>{this.helperService.handlerException(t)}})}logoSlide(e){var t=this;if(!this.carouselBusy){this.carouselBusy=!0;var i=document.getElementById("slide-footer"),n=window.document.getElementsByClassName("li-footer"),s=n[0].clientWidth+n[0].offsetLeft*2;if(e)i.style.left="0px",setTimeout(function(){i.style.transition="none",t.footer.logos.unshift(t.footer.logos.pop()),i.style.left=s*-1+"px",setTimeout(function(){i.style.transition="left .3s ease-in-out",t.carouselBusy=!1},20)},300);else{i.style.left=s*-2+"px";var r=this.footer.logos[0];r.id-=100,this.footer.logos.push(r),setTimeout(function(){i.style.transition="none",t.footer.logos.shift(),i.style.left=s*-1+"px",setTimeout(function(){i.style.transition="left .3s ease-in-out",t.carouselBusy=!1},20)},300)}}this.sharedSignalsService.footer.set(this.footer)}clickMain(){}loadMenu(){j([this.menuService.get(this.menu.filter),this.menuService.getFeatured()]).subscribe({next:e=>{this.setMenu(e),setTimeout(()=>{this.readyPopUp()},2e3)},error:this.helperService.handlerException})}exportContent(e){this.fileService.downloadFile("/api/v1/contents/".concat(e.friendlyName,"/comments/export/"),{}).subscribe({next:t=>{document.location.href=t}})}sendToContent(){try{if(window.document.getElementsByClassName("a-mark").length){var e=Math.abs(window.document.getElementsByClassName("a-mark")[0].getBoundingClientRect().top);window.scrollTo(0,e);var t=window.document.getElementsByClassName("a-mark");t[0].focus()}else{var i=Math.abs(window.document.getElementsByTagName("article")[0].getElementsByTagName("a")[0].getBoundingClientRect().top);window.scrollTo(0,i),window.document.getElementsByTagName("article")[0].getElementsByTagName("a")[0].focus()}}catch(n){throw n}}editShowOnHome(e){var t=!e.showOnHome;t?this.contentService.showOnHome(e).subscribe({next:()=>{e.showOnHome=!e.showOnHome,this.modalService.showAlert("Contenido se encuentra visible en el home ")},error:i=>{this.helperService.handlerException(i)}}):this.contentService.unshowOnHome(e).subscribe({next:()=>{e.showOnHome=!e.showOnHome,this.modalService.showExit("Se ha ocultado el contenido ","")},error:i=>{this.helperService.handlerException(i)}})}changeNight(){this.night=!this.night,window.sessionStorage.setItem("night",this.night.toString()),this.night?document.body.classList.add("night"):document.body.classList.remove("night")}changeBanner(e){this.bannerNow=this.slides[e]}editBanner(){window.location.href="/administrador/bannerlist"}windowTop(){var e=-window.scrollY/10,t=setInterval(function(){window.scrollY!=0?window.scrollBy(0,e):clearInterval(t)},15)}insertShared(){}setUser(e){this.userLoad=!0,this.authService.user=e,window.chatGOV={email:e.email,name:e.fullName,identification:e.identification},e.fbId&&this.helperService.loadFacebookScript(e.fbId),e.gId&&this.helperService.loadGoogleScript(e.gId),this.helperService.freezeObject(this.authService.user),setTimeout(function(){}),this.userService.getUserMain({}).subscribe({next:t=>{this.setDataUsers(t)},error:t=>{this.setError(t)}})}setMenu(e){this.menu.options=e[0].results;var t=e[1];if(this.barMenu={options:[],featured:[]},this.menu.options){this.menu.options.forEach(function(p){if(p.children){var w=p.children.find(function(T){return T.containContent===!0||T.isMain===!0});p.empty=w===void 0}}),this.barMenu.options=this.menu.options;for(var i=0;i<t.length;i++){var n=this.appService.firstOrDefault(this.barMenu.options,"menuOptionID",t[i].menuOptionID);if(n!==null){var s=this.barMenu.options.indexOf(n);this.barMenu.options[s].name=t[i].name,this.barMenu.featured.push(this.barMenu.options[s]),this.barMenu.options[s].block=!0}else for(var r=0;r<this.barMenu.options.length;r++){var y=this.barMenu.options[r];if(y.children)for(var k=0;k<y.children.length;k++){var A=y.children[k];
1A.menuOptionID===t[i].menuOptionID&&(A.name=t[i].name,this.barMenu.featured.push(A),A.block=!0)}}}var P=11;for(let p=0;p<this.barMenu.featured.length;p++)if(this.barMenu.featured[p].tabIndex=P,P++,this.barMenu.featured[p].children)for(let w=0;w<this.barMenu.featured[p].children.length;w++)this.barMenu.featured[p].children[w].tabIndex=P,P++;this.barMenu.featured[0].tabIndex=11,this.loadIndexTabs(),this.loadOptiosFooter(),this.menuService.relatedSites().subscribe({next:p=>{if(p.length){var w=5e5,T=105,oe={menuOptionID:w,name:"Entidades relacionadas",indexTabMenu:T,children:p.map(function(ee){return w++,{menuOptionID:w,name:ee.name,link:ee.allowedUrl.split(",")[0],containContent:!0,indexTabMenu:T++}})};this.barMenu.options.push(oe)}}}),this.pendingLoadMenu&&(this.pendingLoadMenu=null,this.validateActiveUrl()),this.sharedSignalsService.barMenu.set(this.barMenu)}}validateActiveUrl(){var e=this.appService.firstOrDefault(this.barMenu.featured,"link",this.routeFriendly),t=this.routeFriendly;if(t[0]==="/"&&(t=t.replace("/","")),!e&&this.routeFriendly){for(var i=0;i<this.barMenu.featured.length;i++)if(this.barMenu.featured[i].children)for(var n=0;n<this.barMenu.featured[i].children.length;n++){var s=this.barMenu.featured[i].children[n].link;if(s[0]==="/"&&(s=s.replace("/","")),t.includes(s)){this.routeFriendly=this.barMenu.featured[i].link,this.sharedSignalsService.routeFriendly.set(this.routeFriendly);break}}}}setLike(e,t){e.countLikes=t.likes,e.alreadyLiked=!0}setEnable(e){window.macyInstance&&setTimeout(function(){window.macyInstance.reInit()},100)}setBanner(e){var t=[];if(this.bannerRotationSeconds=parseInt(e[0].rotation),e[0]&&e[0].banners.forEach(n=>{n.removeBySite||(n.model=JSON.parse(n.body),n.model.file&&n.model.file.codeUrl,n.model.file&&n.model.file.imageUrl&&(n.model.file.imageUrl=this.settingService.settings.general.globalApiUrl+n.model.file.imageUrl),n.model.mobile&&n.model.mobile.imageUrl&&(n.model.mobile.imageUrl=this.settingService.settings.general.globalApiUrl+n.model.mobile.imageUrl),n.model.file&&n.model.file.cropImage&&(n.model.file.cropImage=this.settingService.settings.general.globalApiUrl+n.model.file.cropImage),n.model.mobile&&n.model.mobile.cropImage&&(n.model.mobile.cropImage=this.settingService.settings.general.globalApiUrl+n.model.mobile.cropImage),n.customUrl&&(n.model.link=n.customUrl),!n.model.title&&!n.model.subtitle&&(n.model.bckOpacity=0),t.push(n))}),e[1].results&&e[1].results.forEach((n,s)=>{if(s===0&&e[0].position==="1")for(var r=0;r<t.length;r++)this.slides.push(t[r]);if(n.model=JSON.parse(n.body),n.model.file&&n.model.file.codeUrl,this.slides.push(n),s===0&&e[0].position==="2")for(var r=0;r<t.length;r++)this.slides.push(t[r])}),e[0].position==="3")for(var i=0;i<t.length;i++)this.slides.push(t[i])}setGovCo(e){var t=e;this.topBar={"background-color":t.colorTopBar},this.sharedSignalsService.topBar.set(this.topBar),this.logoTopBar=this.settingService.settings.general.globalApiUrl.concat(t.logoTopBar),this.sharedSignalsService.logoTopBar.set(this.logoTopBar),this.footerStyles={color:t.colorFontBottomBar,"background-color":t.colorBottomBar},this.footerStylesIcon={fill:t.colorBottomBar},this.footerStylesIconSecond={fill:t.colorFontBottomBar},this.linkAccess=t.linkAccess,this.sharedSignalsService.linkAccess.set(this.linkAccess),this.gov={},this.gov.isActive=t.isActive==="true",this.sharedSignalsService.gov.set(this.gov),this.sharedSignalsService.footerStyles.set(this.footerStyles)}setSettingContent(e){this.Contentgov=e[0],"value"in this.Contentgov&&(this.Contentgov.json=JSON.parse(e[0].value),this.slider=null,this.getSliderSite(),this.colorContent=this.Contentgov.json.color,this.titleContent=this.Contentgov.json.Title,this.slider==null,this.slider=this.Contentgov.json.Slider),this.sharedSignalsService.slider.set(this.slider),this.sharedSignalsService.colorContent.set(this.colorContent),this.sharedSignalsService.titleContent.set(this.titleContent)}getSliderSite(){this.sliderConfigService.getActive().subscribe({next:e=>{this.SetSliderSite(e)},error:e=>{this.helperService.handlerException(e)}})}SetSliderSite(e){e.length!==0&&(this.slider=e[0].sliderConfigId,this.sharedSignalsService.slider.set(this.slider))}
1setLogos(e){e.reverse().forEach(i=>{this.footer.logos.unshift({imageUrl:this.settingService.settings.general.globalApiUrl.concat(i.pathImage),link:i.url,isGlobal:!0,position:i.position})});for(var t=0;t<this.footer.logos.length;t++)this.footer.logos[t].id=t;this.footer.logos.length>4&&this.footer.logos.unshift(this.footer.logos.pop()),this.loadLogos=!0,this.sharedSignalsService.footer.set(this.footer),this.sharedSignalsService.loadLogos.set(this.loadLogos)}errorUser(){this.userLoad=!0,setTimeout(function(){})}setError(e){}viewed(){this.modelPolice.TermTerritorial.isViewed=!0,this.policeTermsService.update(this.modelPolice.TermTerritorial)}setPolicies(e){this.modifiedDateSite=e.modifiedDate.getIntervalTime(),this.sharedSignalsService.modifiedDateSite.set(this.modifiedDateSite),e.result.forEach((t,i)=>{this.modelPolice[t.termType]=t,this.modelPolice=this.modelPolice})}setDataUsers(e){this.userMainData=e}openSucursales(){window.location.href="/sucursales"}onKeyDownPrimerTab(e){e.keyCode==13&&document.getElementById("wall")&&document.getElementById("wall").scrollIntoView()}onKeyDownFocusPrimerTab(e){e.keyCode==9&&document.getElementById("tab1")&&(document.getElementById("tab1").scrollIntoView(),document.getElementById("tab1").focus())}loadIndexTabs(){for(var e=33,t=0;t<=4;t++)this.indexTab.push(e),e++;this.sharedSignalsService.indexTab.set(this.indexTab),this.blocksService.all(null).subscribe({next:i=>{for(var n=0;n<i.length;n++){switch(i[n].type){case 12:this.indexTabBlock[1]=e,e++;break;case 3:this.indexTabBlock[2]=e,this.indexTabBlock[3]=e,this.indexTabBlock[4]=e,e++;break;case 5:this.indexTabBlock[8]=e,e++;break;case 6:this.indexTabBlock[5]=e,e++;break;case 9:this.indexTabBlock[9]=e,e++;break;case 14:this.indexTabBlock[10]=e,e++;break;case 11:this.indexTabBlock[11]=e,e++;break;case 7:this.indexTabBlock[13]=e,e++;break;case 10:this.indexTabBlock[14]=e,e++;break;case 4:this.indexTabBlock[16]=e,e++;break;case 18:this.indexTabBlock[18]=e,e++;break;case 19:this.indexTabBlock[19]=e,e++;break;case 17:this.indexTabBlock[17]=e,e++;break}this.blocks.push(i[n])}this.indexTabBlock[20]=e,this.sharedSignalsService.indexTabBlock.set(this.indexTabBlock),this.setIndexTabMenu()}})}loadOptiosFooter(){this.blocksService.getConfigFooter().subscribe({next:e=>{this.setFooter(e)},error:e=>{this.helperService.handlerException(e)}})}setFooter(e){this.footerConfig=e.items,this.sharedSignalsService.footerConfig.set(this.footerConfig),this.textSign=e.sign.text,this.pathSign=e.sign.filePath,this.urlSign=e.sign.url,this.sharedSignalsService.textSign.set(this.textSign),this.sharedSignalsService.urlSign.set(this.urlSign),this.pathSign!=null&&(this.rutasuper+=this.pathSign),this.sharedSignalsService.rutasuper.set(this.rutasuper)}readyPopUp(){var e="2";this.authService.user.isAuthorize?(e="1",this.launchPopUp(e)):this.launchPopUp(e)}launchPopUp(e){var t="viewPopup"+e;window.sessionStorage.getItem(t)||(window.sessionStorage.setItem(t,"true"),window.location.pathname==="/"&&this.contentService.getPopUpNews({published:!0,alias:this.settingService.settings.general.siteKeyword,ShowMode:e,ShowForTypeUserId:e}).subscribe({next:i=>{this.contentPopupService.getState("true").subscribe({next:n=>{if(n.length>0){this.countPopup+=1;for(var s=0;s<n.length;s++){var r={contentID:n[s].contentID,name:n[s].title,body:n[s].body,fileID:n[s].fileID,typeUser:null,defaultImage:null,embedUrl:n[s].embedURL,externalLink:n[s].externalLink,modifiedDate:n[s].modifiedDate,contentType:null,displayOrder:null,published:!0,showFromDate:n[s].showFromDate,showToDate:n[s].showToDate,isRequired:!1,showForTypeUserId:null,nameButtonUrl:n[s].nameBottonUrl,longImage:null,showMode:1,contentLocationModels:[],contentsiteTypeModels:[],contentsiteGroupModels:null};e==2&&i.push(r)}}this.setContentPopup(i)},error:n=>{this.helperService.handlerException(n)}})},error:i=>{console.log("error occurred",i)}}))}setContentPopup(e){e!=null?(this.modelContentAdmin=this.validateContentPopupExcludeModels(e),this.modelContentAdmin.length>0&&this.helperService.compile(G,{model:this.modelContentAdmin})):console.log("no se encontro ningun articulo de interes para el administrador")}validateContentPopupExcludeModels(e){let t=[];for(let i of e)i.contentPopupExcludeModels!=null?i.contentPopupExcludeModels.length==0&&t.push(i):t.push(i);return t}setIndexTabMenu(){let e=this.indexTab[0],t=0;for(let i of this.barMenu.options)if(i.children&&!i.block){t+=1,i.indexTabMenu=e+t;for(let n=0;n<i.children.length;n++)t+=1,i.children[n].indexTabMenu=e+t}t+=1;for(let i=0;i<this.indexTab.length;i++)this.indexTab[i]>e&&(this.indexTab[i]=this.indexTab[i]+(e+t));this.indexTabBlock.forEach((i,n)=>{this.indexTabBlock[n]=this.indexTabBlock[n]+(e+t)})}keyPressMenu(e){e.keyCode===9&&this.showM(e)}init(){let e=document.getElementsByClassName("footer-socialBtn");console.warn("footerSocialBtn",e);for(let t=0;t<e.length;t++){let i=e[t].children[0],n=window.getComputedStyle(i),s=n.getPropertyValue("color").split(")")[0]+")",r=n.getPropertyValue("background").split(")")[0]+")";i.style.setProperty("--colorCss",s),i.style.setProperty("--backgroundCss",r)}}static \u0275fac=function(t){return new(t||o)(c(K),c(fe),c(Oe),c(ve),c(ye),c($),c(J),c(Y),c(W),c(Ae),c(ge),c(X),c(Pe),c(Q),c(Re),c(Fe),c(Ve),c(He),c(We),c(me),c(Se),c(be),c(z),c(je))};static \u0275prov=f({token:o,factory:o.\u0275fac,providedIn:"root"})};var O=class o{constructor(e,t,i){this.dialogRef=e;this.data=t;this.portalMainService=i;this.externalLinkName=this.portalMainService.externalLinkName,this.externalLinkMessage=this.portalMainService.externalLinkMessage,this.externalLinkCancelButton=this.portalMainService.externalLinkCancelButton,this.externalLinkOkButton=this.portalMainService.externalLinkOkButton,this.goLogin=this.portalMainService.goLogin,console.log(this)}externalLinkMessage;externalLinkName;externalLinkOkButton;externalLinkCancelButton;goLogin;closePopup(){this.dialogRef.close()}goExternalSite(){console.log(this.portalMainService.externalLink),this.goLogin==!1?window.open(this.portalMainService.externalLink,"_blank"):(this.portalMainService.loginkeyCloak(),this.portalMainService.goLogin=!1),this.closePopup()}static \u0275fac=function(t){return new(t||o)(u(D),u(U),u(Z))};static \u0275cmp=_({type:o,selectors:[["app-external-link-modal"]],standalone:!0,features:[L],decls:22,vars:4,consts:[["id","externalLinkModal",1,"modal-wrap","remove-class"],[1,"modal-inner",2,"word-wrap","break-word"],[1,"modal__close",3,"click"],[1,"icon-icon-1"],[1,"modal-wrapTxt"],[2,"text-align","center"],["width","56px","height","56px","alt","Imagen","src","./assets/images/templates/modales/Alerta.svg"],[1,"modal__tit",2,"color","#ffab00"],[1,"modal__txt"],[2,"display","inline-flex"],["id","externalModalAccept",1,"modal__btn","modal__btn--btnAdmin","modal__btn--accept",3,"click"],["id","externalModalCancel",1,"modal__btn","modal__btn--btnAdmin","modal__btn--cancel",3,"click"]],template:function(t,i){t&1&&(a(0,"div",0)(1,"div",1)(2,"div",2),v("click",function(){return i.closePopup()}),g(3,"i",3),l(),a(4,"div",4)(5,"div",5),g(6,"img",6),l(),g(7,"br"),a(8,"div",7),h(9,"Atenci\xF3n"),l(),a(10,"div",8),h(11),g(12,"br"),a(13,"strong"),h(14),l()(),g(15,"br"),a(16,"div",8)(17,"div",9)(18,"button",10),v("click",function(){return i.goExternalSite()}),h(19),l(),a(20,"button",11),v("click",function(){return i.closePopup()}),h(21),l()()()()()()),t&2&&(d(11),E("",i.externalLinkMessage," "),d(3),E(" ",i.externalLinkName," "),d(5),I(i.externalLinkOkButton),d(2),I(i.externalLinkCancelButton))}})};export{O as a,$ as b,J as c,X as d,Z as e};

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.