Webseite:Diario El CordilleranoInhalt
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':newDate().getTime(),event:'gtm.js'});varf=d.getElementsByTName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-M9D9X7W');window.dataLayer=window.dataLayer||[];functiongt(){dataLayer.push(arguments);}gt('js',newDate());gt('config','G-TPJDXBBBJS');DiarioElCordilleranoconstcookiesBanners={"zonaBannerZocalo":{"nombre":"zona-banner-zocalo-1","minutosExpire":3},"zonaBannerPopup":{"nombre":"zona-banner-popup-1","minutosExpire":3}};(adsbygoogle=window.adsbygoogle||[]).push({google_ad_client:"ca-pub-",enable_pe_level_ads:true});(function(){/**CONFIGURATIONSTART**/var_sf_async_config=window._sf_async_config=(window._sf_async_config||{});_sf_async_config.uid=""_sf_async_config.domain="elcordillerano.com.ar";_sf_async_config.useCanonical=true;_sf_async_config.useCanonicalDomain=true;/**CONFIGURATIONEND**/functionloadChartbeat(){vare=document.createElement('script');varn=document.getElementsByTName('script')[0];e.type='text/jascript';e.async=true;e.src='//static.chartbeat.com/js/chartbeat.js';n.parentNode.insertBefore(e,n);}loadChartbeat();})();varfacebookWidgetLoaded=false;constapiURL='/api/';constBANNER_DEFAULT_EVENT_CATEGORY='Anunciante-General|Campaña-General';constBANNER_NOMBRE='Banner';constZONA_BANNER_NOMBRE='Zona';varisMobile=false;varfacebookSDKLoaded=false;//FunciónparaverificarsiesundispositivomóvilfunctionesDispositivoMovil(){if(window.innerWidthtrackImpresion({event_category,event_label}),1000);//Esperar1segundo(1000milisegundos)antesdevolveraevaluar.}else{gt('event','cms_banner_impression',{event_category,event_label});}}functiontrackClick({event_category='',event_label=''}){if(typeofgt!=="function"){setTimeout(()=>trackClick({event_category,event_label}),1000);//Esperar1segundo(1000milisegundos)antesdevolveraevaluar.}else{gt('event','cms_banner_click',{event_category,event_label});}}functiontrackAuthor(author){if(typeofgt!=="function"){setTimeout(()=>trackAuthor(author),1000);//Esperar1segundo(1000milisegundos)antesdevolveraevaluar.}else{gt('event',`Author:${author}`);}}domingo22dediciembrede2024|15.9ºc|SanCarlosdeBarilocheCLASIFICADOS|NECROLÓGICAS|ANUNCIEAQUÍ|RADIOfunctionloadBannersHeaders(){constimes=document.querySelectorAll('img.bannerHeader');constlinks=document.querySelectorAll('a.linkBannerHeader');imes.forEach(function(ime){if(isMobile){ime.src=ime.getAttribute('data-mobile-ime');links.forEach(link=>{link.href=ime.getAttribute('data-mobile-url');link.target=ime.getAttribute('data-mobile-target');});}else{ime.src=ime.getAttribute('data-desktop-ime');}});}loadBannersHeaders();functionloadBannersHeaders(){constimes=document.querySelectorAll('img.bannerHeader');constlinks=document.querySelectorAll('a.linkBannerHeader');imes.forEach(function(ime){if(isMobile){ime.src=ime.getAttribute('data-mobile-ime');links.forEach(link=>{link.href=ime.getAttribute('data-mobile-url');link.target=ime.getAttribute('data-mobile-target');});}else{ime.src=ime.getAttribute('data-desktop-ime');}});}loadBannersHeaders();functionloadBannersHeaders(){constimes=document.querySelectorAll('img.bannerHeader');constlinks=document.querySelectorAll('a.linkBannerHeader');imes.forEach(function(ime){if(isMobile){ime.src=ime.getAttribute('data-mobile-ime');links.forEach(link=>{link.href=ime.getAttribute('data-mobile-url');link.target=ime.getAttribute('data-mobile-target');});}else{ime.src=ime.getAttribute('data-desktop-ime');}});}loadBannersHeaders();MenuPortadaActualidadSociedadPolíticaJudicialesPolicialesDeportesCulturaOpinionCartasabiertasCartasdelectoresColumnistasEditorialMásEconomíaNecrológicasClasificadosFarmaciasdeturnoAnuncieAquíBuscarBuscarX(()=>{constboton=document.querySelector('#boton');constmenu=document.querySelector('#menu');constlinks=document.querySelectorAll('.n-link-parent');constlogo=document.getElementById("header-logo-scrolled");constlogoNMenuScroll=document.getElementById("logo-n-menu-scroll");constn=document.getElementById("n");constsearchButtons=document.querySelectorAll('.showMainSearch');consthideSearchButton=document.querySelector('.hideMainSearch');constheaderScrolled=document.getElementById("header-scrolled");varoffsetNOnStart=n.getBoundingClientRect().top;boton.addEventListener('click',()=>{menu.classList.toggle('hidden');});links.forEach(link=>{link.addEventListener('click',()=>{consthiddenChild=link.nextElementSibling;hiddenChild.classList.toggle('hidden');});});searchButtons.forEach(button=>{button.addEventListener('click',()=>{showMainSearch();});});hideSearchButton.addEventListener('click',()=>{hideMainSearch();});varlistado=document.querySelector('#menu.listado');varbuscador=document.querySelector('#menu.buscador');if(offsetNOnStart==0){nScrolledShow(true);}else{window.onscroll=function(){scrollFunction()};}functionshowMainSearch(){listado.style.display='none';buscador.style.display='block';}functionhideMainSearch(){if(isMobile){listado.style.display='block';}else{listado.style.display='flex';}buscador.style.display='none';}functionscrollFunction(){varscrollDistance=document.documentElement.scrollTop;if(scrollDistance>offsetNOnStart){nScrolledShow(false);}else{nScrolledHide();}}functionnScrolledShow(init){letnMedidas=n.getBoundingClientRect();letheaderScrolledLeft=isMobile?parseInt(nMedidas.width/2)-parseInt(logo.width/2):false;n.classList.remove("menu-no-scrolled");n.classList.add("menu-scrolled");document.body.classList.add('body-scrolled');if(isMobile){headerScrolled.style.display='flex';headerScrolled.style.left=`${headerScrolledLeft}px`;}else{logoNMenuScroll.style.display='block';}}functionnScrolledHide(){letnMedidas=n.getBoundingClientRect();letheaderScrolledLeft=isMobile?parseInt(nMedidas.width/2)-parseInt(logo.width/2):false;n.clasDiario El CordilleranosList.remove("menu-scrolled");n.classList.add("menu-no-scrolled");if(isMobile){headerScrolled.style.display='none';}else{logoNMenuScroll.style.display='none';}}})(); MIRALASFOTOS LamianideñailuminaelCentroCívicoenelúltimodomingoantesdeNidad MANTIENENELALERTAAMARILLA Registraronmásde180eventossísmicosenloquevadediciembreenelVolcánPuyehue AFIRMARONQUE“SÓLOSIRVIERONPARAFORESPOLÍTICOS” EnelINAIdierondebajaonceáreascreadasporOdardacuandoeratitulardelorganismo VISITAREAL LareinaMáximaylafamiliarealholandesaeligieronBarilocheparacelebrarlaNidad MUYNECESARIA Enelsegundosemestrede2025,laProvinciarepimentaráelaccesoalAeropuerto ENBARILOCHE LainvestigaciónposterioraloperativodebúsquedadeBautistarevelanuevaspistas LAPALABRADELINTENDENTE Cortés:“Nosotrosvamosatrabajarparaelpueblo.Hayqueestarabocadoalaspersonasquesufren,quetrabajan,quenecesitan” ENCALLEGARIBALDI Policíarecuperóelementosquetressujetossustrajerondelhabitáculodeunvehículo TRISTEZAENELPARAÍSO A22añosdeladesaparicióndeunajoventuristaalemana SEGUIRÁELFRÍO? CómovaaestareldomingoycómovieneelclimaparaNidadenlaciudad? ElGobiernoquierequelasbarrasbrasseanconsideradasorganizacionescriminales TRANSFORMACIÓN ElbrutalcambiofísicodeIbaiLlanos,bajó50kilosen100días Bullrichtildóde34;malaleche34;loscomentariosdeVillarruelsobreelcasodelgendarmeenVenezuela /**/ ElPapaFranciscocondenalosataquesenGazayelGobiernodeIsraelloacusadeusar“unadoblevara” ESCÁNDALO CómoeselrelojdelapolémicaqueuneaWandaNara,laChinaSuárezyMauroIcardi LAPRODUCCIÓNNOPARA Martínez:34;Hacemos900panespordíayellunescomenzamosconlaentregaenBariloche34; EstudiantesgoleóaVélezysequedóconelTrofeodeCampeones TELEVISIÓN ÁngeldeBritoquemóaunpanelista:“Gordadesinformada” SIGUENLASACCIONESDEPROMOCIÓN Proyectanuneneroconsolidadoturísticamenteyfebrero34;conacentochileno34;enBariloche HABRÍASIDOLUEGODEUNARESIÓN CrimenenCushamen:investiganaunamujerporelasesinatodeunhombreensuvivienda ESPECTÁCULOS Laverdad:porquéRochiIgarzabalnousasuanillodecompromisoamesesdelcasamiento CIPOLLETTI SupapálabloqueódeWhatsAppdespuésdeabandonarla:unfallolequitótodoslosderechossobresuhija CalendariodeANSES:quéprestacionessecobranlapróximasemana ESPECTÁCULOS FlorPeñasecansóylecantólas40aYaninaLatorre LotoPlus:cincoganadoressellevaronmásde$5millonesenelsorteo PARAQUEDARBIENDEVERDAD YennyBariloche:UnaopciónpararegalarliteraturaestaNidad FAMILIA EldurocomentariodeLizyTlianisobresuhijo Investigacióncriminal:RíoNegroaplicaunsimpleynovedosométodo InsfránrespondióalaCorteSuprema:“Ningúnporteñonosvaaindicarquiénseránuestrorepresentante” LOGRO TamaraBáezsorprendióalrevelarsugranlogro ENELBOLSÓN Unincendiodejópérdidastotalesenunavivienda EnzoPérezsedespidedeEstudiantesycrecelaexpectativasobreunposibleregresoaRiver CONTROVERSIA RobertoGarcíaMoritanpasóporLaNochedeMirtha,sepeleóyblanqueóquepiensadeSusana SANTIODELESTERO Horror:unpolicíamatóatirosasubebadeunañoyasuexsuegra Unapostredeliciosoyrefrescante:heladodebananaconchipsdechocolate REINVENCIÓN SesupoqueTiniStoesselsehizounainesperadaoperaciónestética LIGAMUNICIDiario El CordilleranoPAL Domingoatodofútbolfemenino LEGISLATURA RíoNegrocuentaconcódigosprocesalesdiseñadosparaelexpedientedigital ENAMORADOS ElvideodeÁngelaLeivaconunexjugadordeBoca:¿Estánjuntos? ChoquefrontalenRuta40cercadeSanMartíndelosAndes (adsbygoogle=window.adsbygoogle||[]).push({}); BUSCANAFIANZARELDESTINOPARAPASARLASFIESTAS Herrero:34;CadapostalnideñaenBariloche,viajaporelmundo34; GRANDOLOR ElfastidiodeRodolfoBariliconCristinaPérezporcambiarsedecanal:“Esundivorcio” RALLY GoyoMartínez:34;Barilochepodríatenerdosfechasen202534; MIRÁLASFOTOS AsísevivióelcomienzodelveranoenBariloche ESTÁINTERNADOENBRASIL EmotivapublicacióndelanoviadeGastónBurlonenredessociales ARRANCÓELVERANO Incendiosforestales:alcalorextremosesumaelriesgoportormentaseléctricas CambiosenelcomplejofronterizoCardenalSamorédecaraalatemporadadeverano TRASUNLARGODEBATE Concuestionamientos,seaprobóunloteosocialcon304terrenosparaBariloche ManiataronyencerraronaunareconocidaempresariadeBariloche:sellevaronmillonariobotín REGLAMENTACIONESACUMPLIR ElUberBoatdiosus34;primerasbrazadas34;enelloNahuelHuapi NEUQUÉN Intensooperativoparabuscaraunjovenquecayóaunrío CuálessonlosancesenobrasdeBarilochequeanuncióWeretilneck QUEJASDESDEUTHGRA Decretonacionaldepropinasvirtuales:“noesnichicha,nilimonada”,dijoOvidioZúñiga ElTrenPatónicovuelveenverano2025conunasorpresa:dequésetrata ElIcebergmásgrandedelmundoseacercaalasislasGeorgiasdelSur (adsbygoogle=window.adsbygoogle||[]).push({}); CrearunalistadepropósitosparaAñoNuevo:cleparaalcanzarmetas EspectacularsábadodefútbolfemeninoenBariloche QUIERENVIAJARALASGRUTAS NiñosdeLuisBeltránvendenbotellasdehieloparacumplirelsueñodeconocerelmar LEGISLATURA Serealizaráunasesiónextraordinariaparaeldebatesobreconcesioneshidrocarburíferas RECETA ¡Riquísimo!:haceunpandulcecaseroen4pasos DescubrílosbeneficiosdelameditaciónenelprimerDíaMundial Lasrutasaéreasmástransitadasdelmundoen2024 CuriosidadesdelaNidadquedebesconocer ASTROLOGÍA Aprendeahaceresteritualparaelañonuevo2025convelasqueharáquesecumplantodostusdeseos Vélezvs.Estudiantes,porelTrofeodeCampeones:hora,formacionesyTV LEGISLATIVO BonoextraordinarioparalosempleadosdelaCámaradeDiputados:serádehasta$200.000 AJEDREZ JuanPabloDíazsequedóconelGrandPrixdediciembre ¿Cómopensasquevaavenirlatemporadadeverano?BuenaMalaRegularVotarBuena0%Mala0%Regular0% BIENESTAR ¿Losabías?:Estossonlosalimentosqueayudanacombatirelinsomnio DEPORTES SesorteólaLigaProfesional2025:conocecómoquedaronconformadaslaszonas RánkingdenoticiasLareinaMáximaylafamiliarealholandesaeligieronBarilocheparacelebrarlaNidadLainvestigaciónposterioraloperativodebúsquedadeBautistarevelanuevaspistasHorror:unpolicíamatóatirosasubebadeunañoyasuexsuegraLamianideñailuminaelCentroCívicoenelúltimodomingoantesdeNidadRegistraronmásde180eventossísmicosenloquevadediciembreenelVolcánPuyehueColumnistasLaimportanciadeamaryseramadoColumnaPorDr.BernardoStamateasArynaSabalenkayunaluchaporlaigualdadeconómicaColumnaPorJoseLuisGoinMaslatónnoesMariquitaColumnaPorDr.SebastiánGamenSinopsisdelcuento:“Jardíndeamor”ColumnaPorSarahMulligan(adsbygoogle=window.adsbygoogle||[]).push({});Envianostudenuncia2944-80-6918DiarioElCordillerano-F.P.Moreno975S.C.deBariloche-BarilocheArgentina|Tel:+549294480-6918|Email:[email160;protected]RSS|MediaKit|PolíticasdePrivacidad|ArchivoCMSparamediosbyTroopfunctionshareOnFacebook(){varencodedUrl=encodeURIComponent(window.location.href);varfacebookUrl='/sharer/sharer.php?u='+encodedUrl;window.open(facebookUrl);}functionshareOnTwitter(){varencodedUrl=encodeURIComponent(window.location.href);vartwitterUrl='twitter.com/intent/tweet?url='+encodedUrl;window.open(twitterUrl);}functionshareByEmail(){varencodedUrl=encodeURIComponent(window.location.href);varsubject='Echaunvistazoaesteenlace';varbody='¡Hola!Heencontradoesteenlaceinteresante:'+window.location.href;varmailtoUrl='mailto:?subject='+encodeURIComponent(subject)+'&body='+encodeURIComponent(body);window.location.href=mailtoUrl;}functionshareOnWhatsApp(){varencodedUrl=encodeURIComponent(window.location.href);varwhatsappUrl=isMobile==true?'api.whatsapp.com/send?text='+encodedUrl:'web.whatsapp.com/send?text='+encodedUrl;window.open(whatsappUrl);}functioncopyToClipboard(){vartempInput=document.createElement("input");tempInput.value=window.location.href;document.body.appendChild(tempInput);tempInput.select();tempInput.setSelectionRange(0,);document.execCommand("copy");document.body.removeChild(tempInput);alert("Enlacecopiadoalportapapeles:"+window.location.href);}setTimeout('window.location.reload()',parseInt(600)*1000);//ImportthefunctionsyouneedfromtheSDKsyouneedimport{initializeApp}from"/firebasejs/10.11.0/firebase-app.js";import{getMessing,getToken,onMesse}from"/firebasejs/10.11.0/firebase-messing.js";constnotificationsStatusBadge=document.getElementById("notificationsStatusBadge");constnotificationsSubscriptionForceEnable=document.getElementById("notificationsSubscriptionForceEnable");constmainIconNotificacionStatus=document.getElementById("mainIconNotificacionStatus");constmainIconNotificacionStatusEnabled=document.getElementById("mainIconNotificationsEnabled");constmainIconNotificacionStatusDisabled=document.getElementById("mainIconNotificationsDisabled");constfirebaseConfig={"apiKey":"AIzaSyBpwCq9I4-xPw_4G8m5x7zdb5AQeJVSkGU","authDomain":"el-cordillerano---troop.firebaseapp.com","databaseURL":"el-cordillerano---troop.firebaseio.com","projectId":"el-cordillerano---troop","storeBucket":"el-cordillerano---troop.appspot.com","messingSenderId":"7825","appId":"1:7825:web:db3aaca731b560","measurementId":"G-01VMZX1TM5"};constfirebaseVersion=2;//InitializeFirebaseconstapp=initializeApp(firebaseConfig);constmessing=getMessing(app);varmessingNeedUpdate=faDiario El Cordilleranolse;if('serviceWorker'innigator){nigator.serviceWorker.register('/firebase-messing-sw.js?_v=v3-1219').then(function(registration){}).catch(function(error){});}functioncheckSubscriptionDate(date,days){letdateObject=newDate(date);if(isNaN(dateObject.getTime())){returnfalse;}letcurrentDate=newDate();letpastDate=newDate(dateObject);pastDate.setDate(pastDate.getDate()+days);returncurrentDate>=pastDate;}functioncheckSubscriptionNotification(){letlocalToken=pushSubscriptionLocalGet();if(localToken==null){return{subscribed:false,ask:true};}else{try{lettokenObj=JSON.parse(localToken);if(tokenObj?.date==null){//VERSIONANTERIORmessingNeedUpdate=true;tokenObj.date='2024-12-22';pushSubscriptionLocalSe(tokenObj);return{subscribed:true,ask:true,token:tokenObj?.token,firebaseVersion:tokenObj?.firebaseVersion};}if(tokenObj?.subscribed==1||tokenObj?.subscribed==true){//Subscritoif(tokenObj?.firebaseVersion!=firebaseVersion){if(checkSubscriptionDate(tokenObj?.date,7)){messingNeedUpdate=true;tokenObj.date='2024-12-22';pushSubscriptionLocalSe(tokenObj);return{subscribed:true,ask:true,token:tokenObj?.token,firebaseVersion:tokenObj?.firebaseVersion};}else{return{subscribed:true,ask:false,token:tokenObj?.token,firebaseVersion:tokenObj?.firebaseVersion};}}else{return{subscribed:true,ask:false,token:tokenObj?.token,firebaseVersion:tokenObj?.firebaseVersion};}}else{//NOsubscritoif(checkSubscriptionDate(tokenObj?.date,7)){return{subscribed:false,ask:true,token:tokenObj?.token,firebaseVersion:tokenObj?.firebaseVersion};}return{subscribed:false,ask:false,token:tokenObj?.token,firebaseVersion:tokenObj?.firebaseVersion};}}catch(error){//TokenincorrectopushSubscriptionLocalRemove();return{subscribed:false,ask:false,token:tokenObj?.token,firebaseVersion:tokenObj?.firebaseVersion};}}}setTimeout(()=>{letsubscriptionNotificationStatus=checkSubscriptionNotification();if(subscriptionNotificationStatus?.ask){constpushSubscriptionModal=document.getElementById("pushSubscriptionModal");constpushSubscriptionModalDetalle=document.getElementById("pushSubscriptionModalDetalle");conststatusPePushSubscriptionButton=document.getElementById("statusPePushSubscriptionButton");conststatusPePushSubscriptionButtonDecline=document.getElementById("statusPePushSubscriptionButtonDecline");if(pushSubscriptionModal){statusPePushSubscriptionButton.classList.add("hidden");pushSubscriptionModal.classList.remove("hidden");declinePushSubscription.classList.remove("hidden");acceptPushSubscription.classList.remove("hidden");if(messingNeedUpdate){pushSubscriptionModalDetalle.classList.remove("hidden");statusPePushSubscriptionButton.classList.remove("hidden");statusPePushSubscriptionButtonDecline.classList.remove("hidden");declinePushSubscription.classList.add("hidden");acceptPushSubscription.classList.add("hidden");}setTimeout(function(){pushSubscriptionModal.classList.add("opacity-100");},100);}}pushSubscriptionInit(subscriptionNotificationStatus);},3000);functionpushSubscriptionInit(subscriptionNotificationStatus){if("Notification"inwindow){if(subscriptionNotificationStatus?.subscribed){switch(Notification.permission){case'granted':pushSubscriptionOnMesse();break;case'denied':if(subscriptionNotificationStatus?.token){sedTokenUnsubscribeAndDelete(subscriptionNotificationStatus?.token);}notificationsStatusBadgeUpdate('disabled');break;default:pushSubscriptionRequestPermission();break;}}else{notificationsStatusBadgeUpdate('disabled');}}else{notificationsStatusBadgeUpdate('unsupported');}}functionpushSubscriptionRequestPermission(){Notification.requestPermission().then(function(permission){if(permission==='granted'){getToken(messing).then(function(token){pushSubscriptionOnMesse();}).catch(function(error){});}else{lettokenObj=pushSubscriptionLocalGet();if(tokenObj?.token!=null){sedTokenUnsubscribeAndDelete(tokenObj?.token);}else{lettokenData={"token":null,"subscribed":false,"date":'2024-12-22'}pushSubscriptionLocalSe(tokenData);}}}).catch(function(err){notificationsStatusBadgeUpdate('error');});}functionpushSubscriptionOnMesse(){getToken(messing).then(function(token){seTokenAndSubscribe(token);notificationsStatusBadgeUpdate('enabled');onMesse(messing,(payload)=>{if(!payload.data){returnfalse;}consttoastContainer=document.createElement('div');toastContainer.style.position='fixed';toastContainer.style.top='20px';toastContainer.style.right='20px';toastContainer.style.backgroundColor='#333';toastContainer.style.color='white';toastContainer.style.padding='15px';toastContainer.style.borderRadius='5px';toastContainer.style.zIndex='100';toastContainer.style.display='block';toastContainer.style.width='300px';document.body.appendChild(toastContainer);consttoastTitle=document.createElement('p');toastTitle.textContent=payload.notification.title;toastTitle.style.marginTop='0';toastTitle.style.fontSize='10px';toastContainer.appendChild(toastTitle);consttoastBodyLink=document.createElement('a');toastBodyLink.href=payload.data.link;consttoastBody=document.createElement('h1');toastBody.textContent=payload.notification.body;toastBody.style.marginBottom='10px';toastBodyLink.appendChild(toastBody);toastContainer.appendChild(toastBodyLink);consttoastImeLink=document.createElement('a');toastImeLink.href=payload.data.link;consttoastIme=document.createElement('img');toastIme.src=payload.notification.ime;toastIme.alt=payload.notification.title;toastIme.style.display='block';toastIme.style.maxWidth='100%';toastIme.style.maxHeight='120px';toastImeLink.appendChild(toastIme);toastContainer.appendChild(toastImeLink);constcloseButton=document.createElement('span');closeButton.textContent='×';closeButton.className='close';closeButton.style.position='absolute';closeButton.style.top='5px';closeButton.style.right='10px';closeButton.style.cursor='pointer';closeButton.onclick=hideToast;toastContainer.appendChild(closeButton);functionhideToast(){document.body.removeChild(toastContainer);}functionopenURL(url){window.location.href=url;}});}).catch(function(error){notificationsStatusBadgeUpdate('error');});}functionnotificationsStatusBadgeUpdate(status){if(notificationsStatusBadge){notificationsStatusError.classList.add("hidden");notificationsSubscriptionForceEnable.classList.add("hidden");}if(mainIconNotificacionStatus){mainIconNotificacionStatusDisabled.classList.add("hidden");}switch(status){case"enabled":if(notificationsStatusBadge){notificationsStatusBadge.innerHTML='SUSCRIPTO';notificationsStatusBadge.style.backgroundColor="#1b8724";notificationsStatusBadge.style.color="#ffffff";}if(mainIconNotificacionStatus){mainIconNotificacionStatusDisabled.classList.add("hidden");mainIconNotificacionStatusEnabled.classList.remove("hidden");}break;case"disabled":if(notificationsStatusBadge){notificationsStatusBadge.innerHTML='NOSUSCRIPTO';notificationsStatusBadge.style.backgroundColor="#DDDDDD";notificationsStatusBadge.style.color="#";notificationsSubscriptionForceEnable.classList.remove("hidden");}if(mainIconNotificacionStatus){mainIconNotificacionStatusEnabled.classList.add("hidden");mainIconNotificacionStatusDisabled.classList.remove("hidden");}break;case"error":if(notificationsStatusBadge){notificationsStatusBadge.innerHTML='ENPAUSA';notificationsStatusBadge.style.backgroundColor="#DDDDDD";notificationsStatusBadge.style.color="#";notificationsStatusError.classList.remove("hidden");}if(mainIconNotificacionStatus){mainIconNotificacionStatusEnabled.classList.add("hidden");mainIconNotificacionStatusDisabled.classList.remove("hidden");}break;case"unsupported":if(notificationsStatusBadge){notificationsStatusBadge.innerHTML='NOSOPORTADO';notificationsStatusBadge.style.backgroundColor="#DDDDDD";notificationsStatusBadge.style.color="#";}if(mainIconNotificacionStatus){mainIconNotificacionStatusEnabled.classList.add("hidden");mainIconNotificacionStatusDisabled.classList.remove("hidden");}break;}}asyncfunctionseTokenAndSubscribe(token){letlocalToken=pushSubscriptionLocalGet();try{lettokenObj=JSON.parse(localToken);if(tokenObj?.token==token){if(tokenObj?.firebaseVersion!=firebaseVersion){/*Nuevaversion->sesubscribe*/returnawaitfirebaseSubscribeApi(token,tokenObj);}else{/*Tokenlocaligualaltoken->Seignora*/}}else{/*UNSUBSCRIBEANTERIOR*/if(tokenObj?.token!=null){sedTokenUnsubscribeAndDelete(tokenObj?.token);}returnawaitfirebaseSubscribeApi(token,tokenObj);}}catch(error){}}asyncfunctionfirebaseSubscribeApi(token,tokenObj){//SUBSCRIBEACTUALconstformData=newURLSearchParams({'token':token});try{constresponse=awaitfetch(apiURL+'firebase/token-subscribe/',{method:'POST',"headers":{"content-type":"application/x-;charset=UTF-8",},body:formData});constdata=awaitresponse.json();if(data.success){lettokenData={"token":token,"subscribed":true,"firebaseVersion":data?.data?.firebaseVersion,"date":'2024-12-22'}pushSubscriptionLocalSe(tokenData);}returndata;}catch(error){returnnull;}}functionpushSubscriptionLocalSe(tokenObj){window.localStore.setItem('firebase-token',JSON.stringify(tokenObj));}functionpushSubscriptionLocalGet(){returnwindow.localStore.getItem('firebase-token');}functionpushSubscriptionLocalRemove(){returnwindow.localStore.removeItem('firebase-token');}asyncfunctionsedTokenUnsubscribeAndDelete(token){consturl=apiURL+'firebase/token-unsubscribe/';constformData=newURLSearchParams({'token':token});try{constresponse=awaitfetch(url,{method:'POST',"headers":{"content-type":"application/x-;charset=UTF-8",},body:formData});constdata=awaitresponse.json();lettokenData={"token":null,"subscribed":false,"date":'2024-12-22'}pushSubscriptionLocalSe(tokenData);returndata;}catch(error){//Handleerrorifnecessaryreturnnull;}}if(notificationsSubscriptionForceEnable){notificationsSubscriptionForceEnable.addEventListener("click",function(event){notificationsSubscriptionForceEnable.classList.add("hidden");pushSubscriptionModal.classList.add("hidden");lettokenData={"token":null,"subscribed":true,"date":'2024-12-22'}pushSubscriptionLocalSe(tokenData);pushSubscriptionRequestPermission();})}vardeclinePushSubscription=document.getElementById("declinePushSubscription");declinePushSubscription.addEventListener("click",function(event){letpushSubscriptionModal=document.getElementById("pushSubscriptionModal");pushSubscriptionModal.classList.add("hidden");lettokenData={"token":null,"subscribed":false,"date":'2024-12-22'}pushSubscriptionLocalSe(tokenData);});varacceptPushSubscription=document.getElementById("acceptPushSubscription");acceptPushSubscription.addEventListener("click",function(event){pushSubscriptionModal.classList.add("hidden");lettokenData={"token":null,"subscribed":true,"date":'2024-12-22'}pushSubscriptionLocalSe(tokenData);pushSubscriptionRequestPermission();});varstatusPePushSubscriptionButtonDecline=document.getElementById("statusPePushSubscriptionButtonDecline");statusPePushSubscriptionButtonDecline.addEventListener("click",function(event){letpushSubscriptionModal=document.getElementById("pushSubscriptionModal");pushSubscriptionModal.classList.add("hidden");});varstatusPePushSubscriptionButton=document.getElementById("statusPePushSubscriptionButton");statusPePushSubscriptionButton.addEventListener("click",function(event){window.location.href='/notificationstatus';});XconstmodalPopup=document.getElementById("bannerPopup");letpopup=JSON.parse(modalPopup.dataset.src);if(!popup?.id){popup=popup[Math.floor(Math.random()*popup.length)];}constcookieNamePopup=`popup-${popup.zonas_id}-${popup.id}`;constcookiePopup=getCookie(cookieNamePopup);if(!cookiePopup){letimg=modalPopup.querySelector('img');letshowPopup=false;if(isMobile){switch(popup.banners_versiones_id){case'1':/*Compartida(DesktopyMobile)*/img.setAttribute('src',popup.ime);img.style.width=`${popup.banner_ancho}.px`;popup.url=popup.url;popup.target=popup.target;showPopup=true;break;case'2':/*Diferenciada(Desktop/Mobile)*/img.setAttribute('src',popup.ime_mobile);img.style.width=`${popup.mobile_ancho}.px`;popup.url=popup.url_mobile;popup.target=popup.target_mobile;showPopup=true;break;case'3':/*SoloDesktop*/popup.url=null;popup.target=null;break;case'4':/*SoloMobile*/img.setAttribute('src',popup.ime_mobile)img.style.width=`${popup.mobile_ancho}.px`;popup.url=popup.url_mobile;popup.target=popup.target_mobile;showPopup=true;break;default:break;}}else{switch(popup.banners_versiones_id){case'1':/*Compartida(DesktopyMobile)*/img.setAttribute('src',popup.ime);img.style.height=`${popup.banner_alto}.px`;img.style.width=`${popup.banner_ancho}.px`;popup.url=popup.url;popup.target=popup.target;showPopup=true;break;case'2':/*Diferenciada(Desktop/Mobile)*/img.setAttribute('src',popup.ime);img.style.height=`${popup.banner_alto}.px`;img.style.width=`${popup.banner_ancho}.px`;popup.url=popup.url;popup.target=popup.target;showPopup=true;break;case'3':/*SoloDesktop*/img.setAttribute('src',popup.ime);img.style.height=`${popup.banner_alto}.px`;img.style.width=`${popup.banner_ancho}.px`;popup.url=popup.url;popup.target=popup.target;showPopup=true;break;case'4':/*SoloMobile*/popup.url=null;popup.target=null;break;default:break;}}if(showPopup){if(popup.url_mobile||popup.url){varenlace=document.createElement('a');if(popup.target){enlace.target=popup.target;}enlace.href=popup.url;enlace.appendChild(img.cloneNode());img.parentNode.replaceChild(enlace,img);}modalPopup.classList.remove("hidden");letbutton=modalPopup.querySelector('button');button.addEventListener("click",()=>{setCookieMinutes(cookieNamePopup,'closed',cookiesBanners.zonaBannerPopup.minutosExpire);});/****TrackingAnalytics****///Banner//trackImpresion({event_category:BANNER_DEFAULT_EVENT_CATEGORY,event_label:`${popup.label}|${popup.id}`});//ZonatrackImpresion({event_category:`${ZONA_BANNER_NOMBRE}|PopUp|${popup.zonas_id}`,event_label:`${BANNER_NOMBRE}|${popup.label}|${popup.id}`});modalPopup.addEventListener("click",()=>{//banner//trackClick({event_category:BANNER_DEFAULT_EVENT_CATEGORY,event_label:`${popup.label}|${popup.id}`});//zonatrackClick({event_category:`${ZONA_BANNER_NOMBRE}|PopUp|${popup.zonas_id}`,event_label:`${BANNER_NOMBRE}|${popup.label}|${popup.id}`});modalPopup.classList.add("hidden");});}}XconstmodalZocalo=document.getElementById("bannerZocalo");letzocalo=JSON.parse(modalZocalo.dataset.src);if(!zocalo?.id){zocalo=zocalo[Math.floor(Math.random()*zocalo.length)];}constcookieNameZocalo=`zocalo-${zocalo.zonas_id}-${zocalo.id}`;constcookieZocalo=getCookie(cookieNameZocalo);if(!cookieZocalo){letimg=modalZocalo.querySelector('img');letshowZocalo=false;if(isMobile){switch(zocalo.banners_versiones_id){case'1':/*Compartida(DesktopyMobile)*/img.setAttribute('src',zocalo.ime);img.style.width=`${zocalo.banner_ancho}.px`;zocalo.url=zocalo.url;zocalo.target=zocalo.target;showZocalo=true;break;case'2':/*Diferenciada(Desktop/Mobile)*/img.setAttribute('src',zocalo.ime_mobile);img.style.width=`${zocalo.mobile_ancho}.px`;zocalo.url=zocalo.url_mobile;zocalo.target=zocalo.target_mobile;showZocalo=true;break;case'3':/*SoloDesktop*/zocalo.url=null;zocalo.target='';break;case'4':/*SoloMobile*/img.setAttribute('src',zocalo.ime_mobile)img.style.width=`${zocalo.mobile_ancho}.px`;zocalo.url=zocalo.url_mobile;zocalo.target=zocalo.target_mobile;showZocalo=true;break;default:break;}}else{switch(zocalo.banners_versiones_id){case'1':/*Compartida(DesktopyMobile)*/img.setAttribute('src',zocalo.ime);img.style.height=`${zocalo.banner_alto}.px`;img.style.width=`${zocalo.banner_ancho}.px`;zocalo.url=zocalo.url;zocalo.target=zocalo.target;showZocalo=true;break;case'2':/*Diferenciada(Desktop/Mobile)*/img.setAttribute('src',zocalo.ime);img.style.height=`${zocalo.banner_alto}.px`;img.style.width=`${zocalo.banner_ancho}.px`;zocalo.url=zocalo.url;zocalo.target=zocalo.target;showZocalo=true;break;case'3':/*SoloDesktop*/img.setAttribute('src',zocalo.ime);img.style.height=`${zocalo.banner_alto}.px`;img.style.width=`${zocalo.banner_ancho}.px`;zocalo.url=zocalo.url;zocalo.target=zocalo.target;showZocalo=true;break;case'4':/*SoloMobile*/zocalo.url=null;break;default:break;}}if(showZocalo){if(zocalo.url){varenlace=document.createElement('a');if(zocalo.target){enlace.target=zocalo.target;}enlace.href=zocalo.url;enlace.appendChild(img.cloneNode());img.parentNode.replaceChild(enlace,img);}modalZocalo.classList.remove("hidden");letbutton=modalZocalo.querySelector('button');button.addEventListener("click",()=>{setCookieMinutes(cookieNameZocalo,'closed',cookiesBanners.zonaBannerZocalo.minutosExpire);});/****TrackingAnalytics****///Banner//trackImpresion({event_category:BANNER_DEFAULT_EVENT_CATEGORY,event_label:`${zocalo.label}|${zocalo.id}`});//ZonatrackImpresion({event_category:`${ZONA_BANNER_NOMBRE}|Zocalo|${zocalo.zonas_id}`,event_label:`${BANNER_NOMBRE}|${zocalo.label}|${zocalo.id}`});modalZocalo.addEventListener("click",()=>{//banner//trackClick({event_category:BANNER_DEFAULT_EVENT_CATEGORY,event_label:`${zocalo.label}|${zocalo.id}`});//zonatrackClick({event_category:`${ZONA_BANNER_NOMBRE}|Zocalo|${zocalo.zonas_id}`,event_label:`${BANNER_NOMBRE}|${zocalo.label}|${zocalo.id}`});modalZocalo.classList.add("hidden");});}}¿Querésrecibirnuestrasnotificaciones?NotificacionesPausadas.Reactivatusnotificaciones.HaceclicenReactivaryseguilasinstrucciones.NO,GRACIASACEPTARNO,GRACIASREACTIVAR