18 de Novembro de 2026
Investimento

Autoesporte | Globo


“),n.document.close(),n.focus(),!0};t.getAdConfig=function(){var e=window.cdaaas&&window.cdaaas.SETTINGS||{},t={adUnit:e.TAG_MANAGER_AD_UNIT,adCustomData:e.TAG_MANAGER_AD_CUSTOM_DATA,adCmsId:e.TAG_MANAGER_AD_CMS_ID,adAccountId:e.TAG_MANAGER_AD_ACCOUNT_ID,extras:e.TAG_MANAGER_AD_EXTRAS,gaProductUA:e.PRODUCT_UA},n={width:”100%”,height:”100%”,adUnit:t.adUnit,adCmsId:t.adCmsId,adAccountId:t.adAccountId,ga:{productUA:t.gaProductUA,extras:{dimension1:”web”}}},r=[“ambient=web”,”tipo_pagina=multi-content”];if(t.adCustomData&&r.push(t.adCustomData),t.extras){if(“object”===o(t.extras)){var c=[];for(var i in t.extras)c.push(encodeURIComponent(i+”=”+t.extras[i]));r.push(“tvg_Extras=”.concat(c.join(“,”)))}”string”==typeof t.extras&&r.push(“tvg_Extras=”.concat(t.extras))}return n.adCustomData=r.join(“&”),n};var r=function(e,t){var n=document.createElement(“script”);n.type=”text/javascript”,n.defer=!0,n.charset=”utf-8″,n.src=e,n.onload=n.onreadystatechange=function(){(t&&!this.readyState||”complete”==this.readyState)&&t()},document.getElementsByTagName(“head”)[0].appendChild(n)};t.loadScript=r;var c=function(e,t){var n=document.createElement(“link”);n.type=”text/css”,n.rel=”stylesheet”,n.media=”screen,print”,n.href=e,n.onload=n.onreadystatechange=function(){(t&&!this.readyState||”complete”==this.readyState)&&t()},document.getElementsByTagName(“head”)[0].appendChild(n)};t.loadStyle=c;t.loadAssets=function(e,t){e.forEach(function(e){switch(e.type){case”stylesheet”:c(e.src,t);break;case”script”:r(e.src,t)}})};t.whenAvailable=function(e,t){window.setTimeout(function n(){window[e]?t():window.setTimeout(n,50)},50)}},,,,,,,,,function(e,t,n){},function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0}),t.adsLazyload=function(){var e=document.querySelectorAll(“.ads–lazy”);if(0===e.length)return;var t=!0,n=!1,r=void 0;try{for(var c,i=function(){var e=c.value;window.ScrollSpy.add({el:e,offset:200,callback:function(){(0,o.whenAvailable)(“bannerLazyLoading”,function(){!function(e){var t=e.getAttribute(“data-id”);e.setAttribute(“id”,t),setTimeout(window.bannerLazyLoading(t),0)}(e)})}})},a=e[Symbol.iterator]();!(t=(c=a.next()).done);t=!0)i()}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}};var o=n(0)},function(e,t,n){“use strict”;var o,r,c;function i(e){return(i=”function”==typeof Symbol&&”symbol”==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&”function”==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol”:typeof e})(e)}!function(n,a){“object”==i(t)&&void 0!==e?a(t):(r=[t],void 0===(c=”function”==typeof(o=a)?o.apply(t,r):o)||(e.exports=c))}(0,function(e){var t,n,o=[];function r(e){var t=!0;return function(){t&&(e(),t=!1,setTimeout(function(){return t=!0},150))}}function c(e){var t=i();return e.el.getBoundingClientRect()[e.reference]+t-e.offset}function i(){if(“undefined”!=typeof pageYOffset)return pageYOffset;var e=document.documentElement;return(e=e.clientHeight?e:document.body).scrollTop}function a(){}function d(){var e;e=document.body.offsetHeight,n!==e&&(n=e,function(){t=window.innerHeight;for(var e=0,n=o;e=l.pos))break;l.callback&&l.callback(),o.shift()}o.length||(window.removeEventListener(“scroll”,r(d)),window.removeEventListener(“resize”,r(a)))}e.add=function(e){if(!e.el)throw new Error(“[@globocom/scrollspy] item.el is required”);var i=Object.assign({offset:200,reference:”top”,pos:0},e);i.pos=c(i);var l=o.findIndex(function(e){return e.pos>i.pos});o.splice(-1===l?o.length:l,0,i),1===o.length&&(t=window.innerHeight,n=document.body?document.body.offsetHeight:0,window.addEventListener(“scroll”,r(d)),window.addEventListener(“resize”,r(a))),u()},e.clean=function(){o=[]},e.debug=function(){return o.forEach(function(e,t){var n=”2px dashed “+(t%2?”red”:”blue”),o=document.createElement(“div”),r=[“top: “+e.pos+”;”,”width: 100%;”,”position: absolute;”,”border-top: “+n+”;”].join(“”);e.el.style.border=n,o.className=”debug-line”,o.setAttribute(“style”,r),document.body.appendChild(o)}),o},e.getItems=function(){return o.map(function(e){return e})},Object.defineProperty(e,”__esModule”,{value:!0})})},function(e,t,n){“use strict”;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11)),r=n(10);n(9),window.ScrollSpy=o,document.addEventListener(“bannerLazyLoadingReady”,r.adsLazyload)}]);
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:”Module”}),Object.defineProperty(e,”__esModule”,{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&”object”==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,”default”,{enumerable:!0,value:e}),2&t&&”string”!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,”a”,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=””,n(n.s=2)}([,function(e,t,n){},function(e,t,n){“use strict”;n(1)}]);
!function(t){var e={};function o(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:”Module”}),Object.defineProperty(t,”__esModule”,{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&”object”==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,”default”,{enumerable:!0,value:t}),2&e&&”string”!=typeof t)for(var i in t)o.d(r,i,function(e){return t[e]}.bind(null,i));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,”a”,e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p=””,o(o.s=4)}([function(t,e,o){var r=o(2)();t.exports=r;try{regeneratorRuntime=r}catch(t){“object”==typeof globalThis?globalThis.regeneratorRuntime=r:Function(“r”,”regeneratorRuntime = r”)(r)}},function(t,e){function o(t,e,o,r,i,n,a){try{var c=t[n](a),s=c.value}catch(t){return void o(t)}c.done?e(s):Promise.resolve(s).then(r,i)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var a=t.apply(e,r);function c(t){o(a,i,n,c,s,”next”,t)}function s(t){o(a,i,n,c,s,”throw”,t)}c(void 0)})}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,o){var r=o(3).default;function i(){“use strict”;/*! regenerator-runtime — Copyright (c) 2014-present, Facebook, Inc. — license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return o},t.exports.__esModule=!0,t.exports.default=t.exports;var e,o={},n=Object.prototype,a=n.hasOwnProperty,c=Object.defineProperty||function(t,e,o){t[e]=o.value},s=”function”==typeof Symbol?Symbol:{},u=s.iterator||”@@iterator”,l=s.asyncIterator||”@@asyncIterator”,d=s.toStringTag||”@@toStringTag”;function p(t,e,o){return Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},””)}catch(e){p=function(t,e,o){return t[e]=o}}function h(t,e,o,r){var i=e&&e.prototype instanceof w?e:w,n=Object.create(i.prototype),a=new C(r||[]);return c(n,”_invoke”,{value:E(t,o,a)}),n}function f(t,e,o){try{return{type:”normal”,arg:t.call(e,o)}}catch(t){return{type:”throw”,arg:t}}}o.wrap=h;var g=”suspendedStart”,v=”suspendedYield”,y=”executing”,_=”completed”,m={};function w(){}function O(){}function b(){}var L={};p(L,u,function(){return this});var G=Object.getPrototypeOf,x=G&&G(G(j([])));x&&x!==n&&a.call(x,u)&&(L=x);var D=b.prototype=w.prototype=Object.create(L);function S(t){[“next”,”throw”,”return”].forEach(function(e){p(t,e,function(t){return this._invoke(e,t)})})}function k(t,e){function o(i,n,c,s){var u=f(t[i],t,n);if(“throw”!==u.type){var l=u.arg,d=l.value;return d&&”object”==r(d)&&a.call(d,”__await”)?e.resolve(d.__await).then(function(t){o(“next”,t,c,s)},function(t){o(“throw”,t,c,s)}):e.resolve(d).then(function(t){l.value=t,c(l)},function(t){return o(“throw”,t,c,s)})}s(u.arg)}var i;c(this,”_invoke”,{value:function(t,r){function n(){return new e(function(e,i){o(t,r,e,i)})}return i=i?i.then(n,n):n()}})}function E(t,o,r){var i=g;return function(n,a){if(i===y)throw Error(“Generator is already running”);if(i===_){if(“throw”===n)throw a;return{value:e,done:!0}}for(r.method=n,r.arg=a;;){var c=r.delegate;if(c){var s=N(c,r);if(s){if(s===m)continue;return s}}if(“next”===r.method)r.sent=r._sent=r.arg;else if(“throw”===r.method){if(i===g)throw i=_,r.arg;r.dispatchException(r.arg)}else”return”===r.method&&r.abrupt(“return”,r.arg);i=y;var u=f(t,o,r);if(“normal”===u.type){if(i=r.done?_:v,u.arg===m)continue;return{value:u.arg,done:r.done}}”throw”===u.type&&(i=_,r.method=”throw”,r.arg=u.arg)}}}function N(t,o){var r=o.method,i=t.iterator[r];if(i===e)return o.delegate=null,”throw”===r&&t.iterator.return&&(o.method=”return”,o.arg=e,N(t,o),”throw”===o.method)||”return”!==r&&(o.method=”throw”,o.arg=new TypeError(“The iterator does not provide a ‘”+r+”‘ method”)),m;var n=f(i,t.iterator,o.arg);if(“throw”===n.type)return o.method=”throw”,o.arg=n.arg,o.delegate=null,m;var a=n.arg;return a?a.done?(o[t.resultName]=a.value,o.next=t.nextLoc,”return”!==o.method&&(o.method=”next”,o.arg=e),o.delegate=null,m):a:(o.method=”throw”,o.arg=new TypeError(“iterator result is not an object”),o.delegate=null,m)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type=”normal”,delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:”root”}],t.forEach(T,this),this.reset(!0)}function j(t){if(t||””===t){var o=t[u];if(o)return o.call(t);if(“function”==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,n=function o(){for(;++i=0;–i){var n=this.tryEntries[i],c=n.completion;if(“root”===n.tryLoc)return r(“end”);if(n.tryLoc<=this.prev){var s=a.call(n,”catchLoc”),u=a.call(n,”finallyLoc”);if(s&&u){if(this.prev=0;–o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&a.call(r,”finallyLoc”)&&this.prev=0;–e){var o=this.tryEntries[e];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),I(o),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;–e){var o=this.tryEntries[e];if(o.tryLoc===t){var r=o.completion;if(“throw”===r.type){var i=r.arg;I(o)}return i}}throw Error(“illegal catch attempt”)},delegateYield:function(t,o,r){return this.delegate={iterator:j(t),resultName:o,nextLoc:r},”next”===this.method&&(this.arg=e),m}},o}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function o(e){“@babel/helpers – typeof”;return t.exports=o=”function”==typeof Symbol&&”symbol”==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&”function”==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?”symbol”:typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,o(e)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,o){“use strict”;o.r(e);var r=o(1),i=o.n(r),n=o(0),a=o.n(n);const c=”debug”,s=Object.freeze({oglobo:{id:”3981″,id_simple:”6907″,cod_prod:”OG03″,isOidcLogin:!1,isNewLoginService:!0,productGroup:”oglobo”},valor:{id:”6668″,id_simple:”6908″,cod_prod:”valordigital”,isOidcLogin:!1,isNewLoginService:!1,productGroup:””},valoroneinterno:{id:”7097″,id_simple:”6908″,cod_prod:” valor-one”,isOidcLogin:!1,isNewLoginService:!0,productGroup:””},monet:{id:”7075″,id_simple:”7075″,cod_prod:”monet”,isOidcLogin:!1,isNewLoginService:!0,productGroup:””},autoesporte:{id:”6985″,id_simple:”6985″,cod_prod:”auto-esporte”,isOidcLogin:!1,isNewLoginService:!0,productGroup:””},vogue:{id:”7061″,id_simple:”7061″,cod_prod:”vogue”,isOidcLogin:!1,isNewLoginService:!0,productGroup:””},glamour:{id:”6616″,id_simple:”6616″,cod_prod:”glamour”,isOidcLogin:!1,isNewLoginService:!1,productGroup:””},casavogue:{id:”6610″,id_simple:”6610″,cod_prod:”casa-vogue”,isOidcLogin:!1,isNewLoginService:!1,productGroup:””},marieclaire:{id:”7073″,id_simple:”7073″,cod_prod:”marie-claire”,isOidcLogin:!1,isNewLoginService:!0,productGroup:””},globorural:{id:”6621″,id_simple:”6612″,cod_prod:”globo-rural”,isOidcLogin:!1,isNewLoginService:!1,productGroup:””},gq:{id:”6622″,id_simple:”6622″,cod_prod:”gq”,isOidcLogin:!1,isNewLoginService:!1,productGroup:””},crescer:{id:”7065″,id_simple:”7065″,cod_prod:”crescer”,isOidcLogin:!1,isNewLoginService:!0,productGroup:””},galileu:{id:”7076″,id_simple:”7076″,cod_prod:”galileu”,isOidcLogin:!1,isNewLoginService:!0,productGroup:””},epocanegocios:{id:”6611″,id_simple:”6611″,cod_prod:”epoca-negocios”,isOidcLogin:!1,isNewLoginService:!1,productGroup:””},casaejardim:{id:”6619″,id_simple:”6619″,cod_prod:”casa-jardim”,isOidcLogin:!1,isNewLoginService:!1,productGroup:””},quem:{id:”7077″,id_simple:”7077″,cod_prod:”quem”,isOidcLogin:!1,isNewLoginService:!0,productGroup:””},pegn:{id:”7074″,id_simple:”7074″,cod_prod:”pequenas-empresas”,isOidcLogin:!1,isNewLoginService:!0,productGroup:””}}),u=Object.freeze({prod:{API_INFOGLOBO:”https://api.infoglobo.com.br/”,MODE:”production”},qa:{API_INFOGLOBO:”https://apiqlt-ig.infoglobo.com.br/”,MODE:”production”}}),l=5e3,d=”UserDataGloboId”;class p{constructor(t=”oglobo”,e=”prod”,o=!1){this.tenant=t,this.config={…s[t],…u[e]},this.config.MODE=this.config.MODE===c||o?c:this.config.MODE,this._setData({autorizado:!1,logado:!1,motivo:””,glbid:””,uuid:””,access_token:””})}static base64UrlDecode(t){let e=t.replace(/-/g,”+”).replace(/_/g,”/”);for(;e.length%4;)e+=”=”;return atob(e)}async getData(){const t=this._getAccessToken(),e=this._getCookieCache(),o=this._getGLOBOID(),r=this._getGLBID(),i=this._getUTP();if(r||t)if(this._isCookieCacheValid()){const t=this._getCookieCacheData(e);this._setData(t),this.LOG(“Cache setado”,this.data)}else{if(t&&(this._setData({access_token:t}),this.LOG(“Access Token setado”,this.data)),r&&(this._setData({logado:!0,glbid:r}),this.LOG(“GLBID setado”,this.data)),o){const t=this._getGLOBOIDData(o);this._setData({…t,uuid:t.globoId}),this.LOG(“GLOBO_ID setado”,this.data)}if(i){const t=this._getUTPData(i);this._setData(t),this.LOG(“_utp setado”,this.data)}else await this._getBarramentoData();this._setCookieCache()}else p.eraseCookie(d);return this.data}static getCookie(t){var e=” “+document.cookie,o=” “+t+”=”,r=e.indexOf(o);if(-1===r)return null;var i=r+o.length,n=e.indexOf(“;”,i);return-1!==n?e.substring(i,n):e.substring(i)}static setCookie(t,e,o){var r=””;if(o){var i=new Date;i.setTime(i.getTime()+24*o*60*60*1e3),r=”; expires=”+i.toUTCString()}document.cookie=t+”=”+(e||””)+r+”; path=/”}static eraseCookie(t){document.cookie=t+”=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;”}_setData(t){“object”==typeof t&&(this.data={…this.data,…t})}_getUTPData(t){try{const e=decodeURIComponent(atob(t));return JSON.parse(e)}catch(t){throw new Error(“[infoglobo-user-lib] Erro na conversão do cookie _utp”)}}_getGLOBOIDData(t){try{const e=t.split(“.”)[1],o=p.base64UrlDecode(e);return JSON.parse(o)}catch(t){throw new Error(“[infoglobo-user-lib] Erro na conversão do cookie GLOBO_ID”)}}_getCookieCacheData(t){try{return JSON.parse(t)}catch(t){throw new Error(`[infoglobo-user-lib] Erro na conversão do cookie ${d}`)}}async _getBarramentoData(){return new Promise((t,e)=>{setTimeout(async()=>{if(this.data.glbid||this.data.access_token)try{const t=this._getUTP(),o=this._getGLOBOID();if(o){const t=this._getGLOBOIDData(o);this._setData({…t,uuid:t.globoId}),this.LOG(“Timeout GLOBO_ID setado”,this.data)}if(t){const e=this._getUTPData(t);this._setData(e),this.LOG(“Timeout _utp setado”,this.data)}else this.data.access_token?await this._fetchDataV4(this.data.access_token):await this._fetchData()}catch(t){e(t)}t(this.data)},l)})}async _fetchData(){try{const t=`${this.config.API_INFOGLOBO}relacionamento/v3/funcionalidade/${this.config.id}/autorizacao-acesso`,e={ipUsuario:”127.0.0.1″,”token-autenticacao”:this.data.glbid,codigoProduto:this.config.cod_prod},o=await fetch(t,{method:”POST”,headers:{“Content-Type”:”application/json”,Accept:”application/json”,”ig-requestid”:`infoglobo-user-lib-${(new Date).getTime()}`},body:JSON.stringify(e)}),r=await o.json();this._setData(r),this.LOG(“Timeout Barramento v3 setado”,this.data)}catch(t){throw new Error(“[infoglobo-user-lib] Erro ao consultar a API”)}}async _fetchDataV4(t){try{const e=`${this.config.API_INFOGLOBO}relacionamento/v4/autorizacao-acesso/${this.config.id_simple}/solicitacao-autorizacao/`,o={“token-acesso”:t,codigoProduto:this.config.cod_prod},r=await fetch(e,{method:”POST”,headers:{“Content-Type”:”application/json”,Accept:”application/json”,”ig-requestid”:`infoglobo-user-lib-${(new Date).getTime()}`},body:JSON.stringify(o)}),i=await r.json();this._setData(i),this.LOG(“Timeout Barramento v4 setado”,this.data)}catch(t){throw new Error(“[infoglobo-user-lib] Erro ao consultar a API Barramento v4”)}}_getAccessToken(){const t=`globoid-tokens-${window.oidcSettings.clientId}`,e=window.localStorage.getItem(t);return e?JSON.parse(e).access_token:void 0}_getGLBID(){return p.getCookie(“GLBID”)}_getUTP(){return p.getCookie(“_utp”)}_getGLOBOID(){return p.getCookie(“GLOBO_ID”)}_getCookieCache(){return p.getCookie(d)}_setCookieCache(){p.setCookie(d,JSON.stringify(this.data),1)}_isCookieCacheValid(){const t=this._getCookieCache(),e=this._getGLOBOID();if(t&&e){const o=this._getCookieCacheData(t),r=this._getGLOBOIDData(e);return o.globoId===r.globoId}return!1}LOG(t=””,e={}){this.config.MODE===c&&console.log(“[infoglobo-user-lib]”,t,e)}}var h=p,f=function(){var t=window.location.hostname;return t.includes(“local.globo.com”)||t.includes(“localhost”)||t.includes(“.qa.globoi.com”)||t.includes(“.qa01.globoi.com”)||t.includes(“.dev.globoi.com”)?”qa”:”prod”};if(window.tenant){var g=function(){var t=i()(a.a.mark(function t(){var e,o,r,i;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=new h(v,y,!0),t.next=3,e.getData();case 3:o=t.sent,r=o.autorizado||!1,i=null,window.tp&&window.tp.customVariables&&(i=window.tp.customVariables.exAssinante),OneSignal.push(function(){OneSignal.sendTag(“autorizado”,r),null!==i&&OneSignal.sendTag(“ex-assinante”,i)});case 8:case”end”:return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),v=window.tenant?window.tenant:null,y=window.glb&&”function”==typeof window.glb.getCurrentEnv?window.glb.getCurrentEnv():f(),_=window.OneSignalConfig&&window.OneSignalConfig.tenantsNotReq?window.OneSignalConfig.tenantsNotReq:[];window.addEventListener(“load”,function(){v&&!_.includes(v)?(g(),console.log(“[ONESIGNAL] Tenant “.concat(v,” – Sending tag to Onesignal”))):v?console.log(“[ONESIGNAL] Tenant “.concat(v,” – Tag not sent to Onesignal”)):console.log(“[ONESIGNAL] Tenant no definido – Tag not sent to Onesignal”)})}}]);
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:”Module”}),Object.defineProperty(e,”__esModule”,{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&”object”==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,”default”,{enumerable:!0,value:e}),2&t&&”string”!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,”a”,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=””,n(n.s=5)}({0:function(e,t,n){},5:function(e,t,n){“use strict”;n.r(t);n(0);var r,i=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType(“navigation”)[0]},o=function(e){if(“loading”===document.readyState)return”loading”;var t=i();if(t){if(e(t||100)-1)return n||i;if(n=n?i+”>”+n:i,r.id)break;e=r.parentNode}}catch(e){}return n},u=-1,d=function(){return u},s=function(e){addEventListener(“pageshow”,function(t){t.persisted&&(u=t.timeStamp,e(t))},!0)},f=function(){var e=i();return e&&e.activationStart||0},l=function(e,t){var n=i(),r=”navigate”;return d()>=0?r=”back-forward-cache”:n&&(document.prerendering||f()>0?r=”prerender”:document.wasDiscarded?r=”restore”:n.type&&(r=n.type.replace(/_/g,”-“))),{name:e,value:void 0===t?-1:t,rating:”good”,delta:0,entries:[],id:”v3-“.concat(Date.now(),”-“).concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},p=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},v=function(e,t,n,r){var i,o;return function(a){t.value>=0&&(a||r)&&((o=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=function(e,t){return e>t[1]?”poor”:e>t[0]?”needs-improvement”:”good”}(t.value,n),e(t))}},m=function(e){var t=function(t){“pagehide”!==t.type&&”hidden”!==document.visibilityState||e(t)};addEventListener(“visibilitychange”,t,!0),addEventListener(“pagehide”,t,!0)},g=function(e){document.prerendering?addEventListener(“prerenderingchange”,function(){return e()},!0):e()},y=(new Date,0),h=1/0,_=0,b=function(e){e.forEach(function(e){e.interactionId&&(h=Math.min(h,e.interactionId),_=Math.max(_,e.interactionId),y=_?(_-h)/7+1:0)})},T=function(){return r?y:performance.interactionCount||0},E=function(){“interactionCount”in performance||r||(r=p(“event”,b,{type:”event”,buffered:!0,durationThreshold:0}))},w=[200,500],S=0,L=function(){return T()-S},P=[],I={},M=function(e){var t=P[P.length-1],n=I[e.interactionId];if(n||P.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};I[r.id]=r,P.push(r)}P.sort(function(e,t){return t.latency-e.latency}),P.splice(10).forEach(function(e){delete I[e.id]})}};!function(e,t){!function(e,t){t=t||{},g(function(){var n;E();var r,i=l(“INP”),o=function(e){e.forEach(function(e){e.interactionId&&M(e),”first-input”===e.entryType&&!P.some(function(t){return t.entries.some(function(t){return e.duration===t.duration&&e.startTime===t.startTime})})&&M(e)});var t,n=(t=Math.min(P.length-1,Math.floor(L()/50)),P[t]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,r())},a=p(“event”,o,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});r=v(e,i,w,t.reportAllChanges),a&&(“PerformanceEventTiming”in window&&”interactionId”in PerformanceEventTiming.prototype&&a.observe({type:”first-input”,buffered:!0}),m(function(){o(a.takeRecords()),i.value<0&&L()>0&&(i.value=0,i.entries=[]),r(!0)}),s(function(){P=[],S=T(),i=l(“INP”),r=v(e,i,w,t.reportAllChanges)}))})}(function(t){!function(e){if(e.entries.length){var t=e.entries.sort(function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)})[0],n=e.entries.find(function(e){return e.target});e.attribution={eventTarget:c(n&&n.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:o(t.startTime)}}else e.attribution={}}(t),e(t)},t)}(function(e){e.name;var t=e.value,n=e.id,r=e.attribution,i=r.eventEntry,o={event:”EventoINP”,metric_inp_value:t,metric_id:n,metric_inp_event_target:r.eventTarget,metric_inp_event_type:r.eventType,metric_inp_load_state:r.loadState,metric_inp_start_time:i.startTime,metric_inp_processing_start:i.processingStart,metric_inp_processing_end:i.processingEnd,metric_inp_duration:i.duration,metric_inp_interaction_id:i.interactionId};try{window&&void 0!==window.dataLayer&&null!==window.dataLayer&&(window.dataLayer.push(o),console.log(“eventParams_inp”,o))}catch(e){console.error(e)}})}});
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:”Module”}),Object.defineProperty(e,”__esModule”,{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&”object”==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,”default”,{enumerable:!0,value:e}),2&t&&”string”!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,”a”,t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=””,r(r.s=0)}([function(e,t,r){“use strict”;r.r(t);r(1)},function(e,t,r){}]);
!function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:”Module”}),Object.defineProperty(e,”__esModule”,{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&”object”==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,”default”,{enumerable:!0,value:e}),2&t&&”string”!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,”a”,t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=””,r(r.s=16)}([function(e,t,r){var o=r(15)();e.exports=o;try{regeneratorRuntime=o}catch(e){“object”==typeof globalThis?globalThis.regeneratorRuntime=o:Function(“r”,”regeneratorRuntime = r”)(o)}},function(e,t){function r(e,t,r,o,n,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(o,n)}e.exports=function(e){return function(){var t=this,o=arguments;return new Promise(function(n,i){var a=e.apply(t,o);function s(e){r(a,n,i,s,c,”next”,e)}function c(e){r(a,n,i,s,c,”throw”,e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var o=r(11),n=r(12),i=r(13),a=r(14);e.exports=function(e){return o(e)||n(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function r(t){“@babel/helpers – typeof”;return e.exports=r=”function”==typeof Symbol&&”symbol”==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&”function”==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol”:typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var o=r(3).default,n=r(10);e.exports=function(e){var t=n(e,”string”);return”symbol”==o(t)?t:t+””},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r{setTimeout(async()=>{if(this.data.glbid||this.data.access_token)try{const e=this._getUTP(),r=this._getGLOBOID();if(r){const e=this._getGLOBOIDData(r);this._setData({…e,uuid:e.globoId}),this.LOG(“Timeout GLOBO_ID setado”,this.data)}if(e){const t=this._getUTPData(e);this._setData(t),this.LOG(“Timeout _utp setado”,this.data)}else this.data.access_token?await this._fetchDataV4(this.data.access_token):await this._fetchData()}catch(e){t(e)}e(this.data)},v)})}async _fetchData(){try{const e=`${this.config.API_INFOGLOBO}relacionamento/v3/funcionalidade/${this.config.id}/autorizacao-acesso`,t={ipUsuario:”127.0.0.1″,”token-autenticacao”:this.data.glbid,codigoProduto:this.config.cod_prod},r=await fetch(e,{method:”POST”,headers:{“Content-Type”:”application/json”,Accept:”application/json”,”ig-requestid”:`infoglobo-user-lib-${(new Date).getTime()}`},body:JSON.stringify(t)}),o=await r.json();this._setData(o),this.LOG(“Timeout Barramento v3 setado”,this.data)}catch(e){throw new Error(“[infoglobo-user-lib] Erro ao consultar a API”)}}async _fetchDataV4(e){try{const t=`${this.config.API_INFOGLOBO}relacionamento/v4/autorizacao-acesso/${this.config.id_simple}/solicitacao-autorizacao/`,r={“token-acesso”:e,codigoProduto:this.config.cod_prod},o=await fetch(t,{method:”POST”,headers:{“Content-Type”:”application/json”,Accept:”application/json”,”ig-requestid”:`infoglobo-user-lib-${(new Date).getTime()}`},body:JSON.stringify(r)}),n=await o.json();this._setData(n),this.LOG(“Timeout Barramento v4 setado”,this.data)}catch(e){throw new Error(“[infoglobo-user-lib] Erro ao consultar a API Barramento v4”)}}_getAccessToken(){const e=`globoid-tokens-${window.oidcSettings.clientId}`,t=window.localStorage.getItem(e);return t?JSON.parse(t).access_token:void 0}_getGLBID(){return b.getCookie(“GLBID”)}_getUTP(){return b.getCookie(“_utp”)}_getGLOBOID(){return b.getCookie(“GLOBO_ID”)}_getCookieCache(){return b.getCookie(_)}_setCookieCache(){b.setCookie(_,JSON.stringify(this.data),1)}_isCookieCacheValid(){const e=this._getCookieCache(),t=this._getGLOBOID();if(e&&t){const r=this._getCookieCacheData(e),o=this._getGLOBOIDData(t);return r.globoId===o.globoId}return!1}LOG(e=””,t={}){this.config.MODE===y&&console.log(“[infoglobo-user-lib]”,e,t)}}var w=b;function O(e){return w.getCookie(e)}var x=function(){var e=window.location.hostname;return e.includes(“local.globo.com”)||e.includes(“localhost”)||e.includes(“.qa.globoi.com”)||e.includes(“.qa01.globoi.com”)||e.includes(“.dev.globoi.com”)?”qa”:”prod”},L=function(){for(var e=new Set,t=document.getElementsByTagName(“a”),r=0;r=120))break}return Array.from(e)};function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function k(e){for(var t=1;t0&&(this.feed.dataset.type=”news”,t.sections.map(function(t){var r=e.form.querySelector(“.myfeed__input[name=””.concat(t.section_name,””]”));r&&(r.checked=!0,e.saveButton.disabled=!1)}))}}},{key:”showWarningNoArticles”,value:function(){var e=this.userPreferences.preferences.sections,t=a()(document.querySelectorAll(“.myfeed__label”)).some(function(t){return e.some(function(e){return t.textContent===e.section_name})});e&&e.length>0&&t?(this.feed.dataset.type=”news”,document.querySelector(“.myfeed__alert”).textContent=”Desculpe, não temos nenhuma notícia com os assuntos do seu interesse nesse momento.”,document.querySelector(“.myfeed__alert”).style.display=”block”,this.feed.querySelector(“footer”).style.display=”none”):(this.feed.dataset.type=”fav”,document.querySelector(“.myfeed__alert”).textContent=””)}},{key:”updateArticlesRender”,value:function(){var e=this,t=!!this.userPreferences.preferences,r=!!this.userPreferences.articles;if(t&&r){var o=this.userPreferences.articles;o.length>0?(o.map(function(t){var r=e.template.content.cloneNode(!0),o=t.title,n=(t.hat,t.image),i=t.image94,a=t.url,s=t.section;if(r.querySelector(“.myfeed__hat a”).innerHTML=s,r.querySelector(“.myfeed__subject a”).innerHTML=o,r.querySelectorAll(“.myfeed__link”).forEach(function(t){return t.href=””.concat(a,”?interno_origem=home”).concat(e.tenant,”&interno_midia=assuntosfavoritos&interno_campanha=urlmateriaassuntosfavoritos”)}),i||n)r.querySelector(“.myfeed__photo”).src=i||n,r.querySelector(“.myfeed__photo”).alt=o;else{var c=r.querySelector(“.myfeed__picture”);c.parentNode.removeChild(c)}e.container.appendChild(r)}),this.feed.dataset.type=”news”,document.querySelector(“.myfeed__alert”).textContent=””,this.showLess()):this.showWarningNoArticles()}}},{key:”clearUserPreferences”,value:function(){var e=c()(h.a.mark(function e(){var t;return h.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={preferences:[],tenant:this.tenant,uuid:this.userId},e.next=3,this.requestUserPreferences({method:”POST”,body:JSON.stringify(t)});case 3:case”end”:return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:”editOrClearPreferences”,value:function(){var e=this,t=this.feed.querySelector(“.myfeed__edit”),r=this.feed.querySelector(“.myfeed__clean”);t.addEventListener(“click”,function(t){t.preventDefault(),e.feed.dataset.type=”fav”,e.feed.querySelector(“footer”).style.display=”none”,document.querySelector(“.myfeed__alert”).style.display=”none”}),r.addEventListener(“click”,function(){var t=c()(h.a.mark(function t(r){return h.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r.preventDefault(),e.userSelection=a()(e.form.querySelectorAll(“.myfeed__input:checked”)),e.userSelection.map(function(e){e.checked=!1}),t.prev=3,t.next=6,e.clearUserPreferences();case 6:e.saveButton.disabled=!0,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),e.saveButton.disabled=!1;case 12:case”end”:return t.stop()}},t,null,[[3,9]])}));return function(e){return t.apply(this,arguments)}}())}},{key:”requestUserPreferences”,value:function(){var e=c()(h.a.mark(function e(){var t,r,o,n,i,a,s,c,u,l,d=arguments;return h.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=d.length>0&&void 0!==d[0]?d[0]:{method:”GET”},r=window.object_localstorage,””!==(o=(o=localStorage.getItem(r))||””)?(n=JSON.parse(o),i=n.access_token,a={“Content-Type”:”application/json”,Authorization:”Bearer “.concat(i)}):a={“Content-Type”:”application/json”,Authorization:”Bearer”},(s=L())&&s.length>0&&(a[“Custom-URLs”]=s.join(“,”)),c=k(k({},t),{},{headers:a}),e.next=10,fetch(this.userPreferencesUrl(),c);case 10:return u=e.sent,e.next=13,u.json();case 13:return l=e.sent,e.abrupt(“return”,l);case 15:case”end”:return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:”hideItems”,value:function(){this.form.classList.add(“feed_hidden”),this.feed.querySelector(“.myfeed__loginspan”).classList.add(“feed_hidden”)}},{key:”saveUserPreferences”,value:function(){var e=this;this.saveButton.addEventListener(“click”,function(t){t.preventDefault(),e.userSelection=a()(e.form.querySelectorAll(“.myfeed__input:checked”)),e.userSectionPreferences=e.userSelection.map(function(e){return{section_name:e.value,section_id:e.dataset.sectionid}});var r={preferences:e.userSectionPreferences,tenant:e.tenant,uuid:e.userId};e.sendData(r)})}},{key:”sendData”,value:function(){var e=c()(h.a.mark(function e(t){var r;return h.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestUserPreferences({method:”POST”,body:JSON.stringify(t)});case 2:r=e.sent,this.userPreferences=r,this.clearArticles(),this.updateArticlesRender();case 6:case”end”:return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:”showMore”,value:function(){var e=document.querySelectorAll(“.myfeed__card”);if(e.length>3){for(var t=Math.ceil(e.length/2);t3){for(var t=Math.ceil(e.length/2);t=0;–n){var i=this.tryEntries[n],s=i.completion;if(“root”===i.tryLoc)return o(“end”);if(i.tryLoc<=this.prev){var c=a.call(i,”catchLoc”),u=a.call(i,”finallyLoc”);if(c&&u){if(this.prev=0;–r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&a.call(o,”finallyLoc”)&&this.prev=0;–t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;–t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if(“throw”===o.type){var n=o.arg;C(r)}return n}}throw Error(“illegal catch attempt”)},delegateYield:function(e,r,o){return this.delegate={iterator:q(e),resultName:r,nextLoc:o},”next”===this.method&&(this.arg=t),_}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){“use strict”;r.r(t);r(17);var o=r(9);document.addEventListener(“DOMContentLoaded”,function(e){e.preventDefault();var t=document.querySelector(“.myfeed”);new o.default(t).init()})},function(e,t,r){}]);
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:”Module”}),Object.defineProperty(e,”__esModule”,{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&”object”==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,”default”,{enumerable:!0,value:e}),2&t&&”string”!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,”a”,t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=””,r(r.s=0)}([function(e,t,r){“use strict”}]);
//]]>



Fonte Link

Leia também

Sobre o autor

Redação

FranquiaNews Ver matérias do autor ›

Deixe seu comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *