(window.webpackJsonp=window.webpackJsonp||[]).push([[187],{552:function(e,t,n){"use strict";n.r(t);var r=n(29),o=n.n(r),r=n(15),i=n.n(r),r=n(16),c=n.n(r),r=n(343),a=n.n(r),r=n(344),u=n.n(r),r=n(345),s=n.n(r),r=n(11),l=n.n(r);function d(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=s()(n);return t=r?(e=s()(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),u()(this,t)}}n=function(e){a()(n,e);var t=d(n);function n(){return i()(this,n),t.apply(this,arguments)}return c()(n,[{key:"setCookie",value:function(e){var t=new Date,t=t.setTime(t.getTime()+31536e7);document.cookie=e+"=1;"+t+"; path=/"}},{key:"getCookie",value:function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return null}},{key:"updateLinks",value:function(e){var t=this.dom,r=(r=t.getAttribute("data-settings"))?JSON.parse(r):{},n="feedTeamRedirected",o=Object.keys(r),t=document.querySelectorAll('a[href*="futebol/times"]');e?(t.forEach(function(t){var n=t.getAttribute("href");o.forEach(function(e){-1<n.indexOf(e)&&-1==n.indexOf("?redir")&&-1==n.indexOf("?cancel-redir")&&t.setAttribute("href",n+"?redir="+encodeURIComponent(r[e]))})}),this.setCookie(n)):document.cookie=n+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}},{key:"onCreate",value:function(){var e,t="feedCancelRedir";-1<location.href.indexOf("feedRedirect")&&(e=!0,-1<location.href.toString().indexOf("?cancel-redir")?(e=!1,this.setCookie(t),window.history.replaceState({},document.title,location.href.split("?")[0])):this.getCookie(t)&&(e=!1),this.updateLinks(e)),console.log("[feed-redirect]")}}]),n}(n(346).a);t.default=n,window._onSuperFeedUpdateCards=function(){var i=function(){var t=o()(l.a.mark(function e(t){var n,r,o,i,c,a;return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,r=t.twitterEl,o=t.element,i=t.parent,c=function(){o.classList.remove("loading"),o.innerHTML='\n                <p class="feed-twitter-error">Houve um problema para carregar este tweet.</p>\n            '},a=function(){return twttr.widgets.createTweet(n,r)},e.prev=3,e.next=6,a();case 6:a=e.sent,(a=window.location.search.includes("forceTweetError")?!1:a)?(o.classList.remove("loading"),i.classList.remove("loading")):c(),o.classList.add("completed"),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(3),c(),o.classList.add("completed");case 16:case"end":return e.stop()}},e,null,[[3,12]])}));return function(e){return t.apply(this,arguments)}}();document.querySelectorAll(".social-media:not(.completed)").forEach(function(e){var t,n,r=e.getAttribute("data-id"),o=e.getAttribute("data-type");"twitter"==o?((t=e.closest(".feed-gallery-item")).classList.add("loading"),n=(n=document.querySelector("#card-twitter").innerHTML).replace(/{postID}/gi,r),e.innerHTML=n,setTimeout(function(){i({id:r,twitterEl:document.getElementById("tweet-"+r),element:e,parent:t})},300)):"facebook"==o&&(n=e.getAttribute("data-url"),o=(o=(o=document.querySelector("#card-facebook").innerHTML).replace(/{postID}/gi,r)).replace(/{postURL}/gi,n),e.innerHTML=o,e.classList.add("completed"),setTimeout(function(){FB.XFBML.parse()},300))})}}}]);