Com o apoio
Advertisement Saiba mais
`;i++;i==data.length&&(i=0);html+=`
${data[i].title}

${data[i].title}

${data[i].description}

`;i++;el.outerHTML=html}})}})}))})),document.querySelector("html").classList.add("user--subscriber")):(document.querySelector("html").classList.add("user--non-subscriber"),Publico2022.GetPromo());dataLayer.push({isSubscriber:userOnPage.isSubscriber?userOnPage.isSubscriber:!1,"user.id":userOnPage.id?userOnPage.id:userOnPage.clientId?userOnPage.clientId:null,"user.isSubscriber":userOnPage.isSubscriber?userOnPage.isSubscriber:!1,"user.name":userOnPage.name?userOnPage.name:null,"user.reputation":userOnPage.rep?userOnPage.rep:null,"user.subscriptionEnd":userOnPage.subscriptionEnd?userOnPage.subscriptionEnd:null,"user.subscriptionStart":userOnPage.subscriptionStart?userOnPage.subscriptionStart:null,"user.trackingEnable":userOnPage.trackingEnable?userOnPage.trackingEnable:!1,"user.userGuid":userOnPage.userGuid?userOnPage.userGuid:null,"user.anonymousId":userOnPage.anonymousId?userOnPage.anonymousId:null,"user.rfv":userOnPage.rfv?userOnPage.rfv:null,"user.rfvName":userOnPage.rfvName?userOnPage.rfvName:null,"user.country":userOnPage.country,"user.levels":userOnPage.levels,"user.customerType":userOnPage.customerType,"user.businessType":userOnPage.businessType,"user.product":userOnPage.product,"user.cluster":userOnPage.cluster,"user.programType":userOnPage.programType,"user.isPublico":userOnPage.isPublico,"user.regSource":userOnPage.regSource});document.querySelectorAll(".user-data").forEach(el=>{el.setAttribute("title",Publico2022.userSession.username),el.querySelectorAll(".user-data-letter").forEach(ell=>{ell.innerHTML=Publico2022.userSession.username[0].toUpperCase()}),el.querySelectorAll(".user-data-id").forEach(elp=>{elp.href=elp.href.replace("[USER_ID]",Publico2022.userSession.userId),elp.href+=(elp.href.indexOf("?")>-1?"&":"?")+"rnd="+Math.random()}),el.querySelectorAll(".user-data-name").forEach(elp=>{elp.innerHTML=elp.innerHTML.replace("[USER_NAME]",Publico2022.userSession.username)})});var comWorker=new Worker("/js/workers/comunication.min.js");comWorker.onmessage=function(event){var notificationCloseEvent;document.location.pathname.indexOf("/utilizador/conta/")2&&(document.querySelector(".user--moderation-link").style.display="block")}catch(e){}},ValidateUser:()=>{try{Publico2022.userSession=JSON.parse(sessionStorage.getItem("user_session"));document.cookie.indexOf("_publico="){el.status==200?el.json().then(d=>{Publico2022.userSession=d,Publico2022.WorkUser(),document.dispatchEvent(publicoUserEvent),sessionStorage.setItem("user_session",JSON.stringify(d))}):(document.dispatchEvent(publicoUserEvent),Publico2022.CheckLoggedOffUser())}).catch(()=>{document.dispatchEvent(publicoUserEvent),Publico2022.CheckLoggedOffUser()}):(document.dispatchEvent(publicoUserEvent),Publico2022.CheckLoggedOffUser())):(Publico2022.WorkUser(),document.dispatchEvent(publicoUserEvent))},LastMinute:()=>{var runDate=new Date,cbUrl=runDate.getFullYear()+""+runDate.getMonth()+""+runDate.getDate()+""+runDate.getHours()+""+Math.floor(runDate.getMinutes()/2);fetch("https://api.publico.pt/content/lastminute?n=1&rnd="+cbUrl).then(function(result){if(result.status==200)return result.json().then(function(data){if(data){clearInterval(Publico2022.lastMinuteInterval);var html='' + '' + '' + '' + ' '); } '); }

Opinião