
$(document).ready(function(){var g=function(){var e=["twitter","facebook","google","youtube"],f=parseInt($(".mbr-social-feed").attr("data-posts"))||3,d={};(function(){return e.map(function(b){return $(".mbr-social-feed").attr("data-"+b).replace(" ","").split(",").map(function(c){return"google"===b&&0<c.length&&"+"!=c.charAt(0)?"@+"+c:"youtube"===b?c:"rss"===b?c:"@"+c})})})().map(function(b,c){if(1!==b.length||"@"!==b[0]&&""!==b[0]){var a={};switch(e[c]){case "twitter":a.accounts=b;a.consumer_key=
"zGH9N8l92xnx14TJF41A2zjqK";a.consumer_secret="jmx0ZDJcNO2zK3FnCA47VOGbhr9tPD6JwfGI39vx5W4ymA3sD4";a.limit=f;break;case "google":a.accounts=b;a.limit=f;a.access_token="AIzaSyDXQV0H1ImqLxlviK_ScjOcEv5EMalzteQ";break;case "youtube":a.accounts=b;a.limit=f;a.access_token="AIzaSyDXQV0H1ImqLxlviK_ScjOcEv5EMalzteQ";break;case "facebook":a.accounts=b;a.limit=f;a.access_token="299509753744860|60a3cdfc04eb95a93dd169c420f35bd0";break;case "rss":a.urls=b,a.limit=f}d[e[c]]=a}});$(".social-feed-container").html("");
d.callback=function(){$(".mbr-social-feed").removeClass("loading")};d.template_html="                            <div class='social-feed-element {{? !it.moderation_passed}}hidden{{?}}' dt-create='{{=it.dt_create}}' social-feed-id = '{{=it.id}}'>                            <div class='content'>                            <a class='pull-left' href='{{=it.author_link}}' target='_blank'>                            <img class='media-object' src='{{=it.author_picture}}'>                            </a>                            <div class='media-body'>                            <p>                            <i class='fa fa-{{=it.social_network}}'></i>                            <span class='author-title'>{{=it.author_name}}</span>                            <span class='muted pull-right'> {{=it.time_ago}}</span></p>                            <div class='text-wrapper'><p class='social-feed-text'>{{=it.text}}                             <a href='{{=it.link}}' target='_blank' class='read-button'>read more</a></p>                            </div>                            </div>                            </div>                            {{=it.attachment}}                           </div>                            ";
d.show_media=!0;d.length=200;$(".social-feed-container").socialfeed(d)};$(document).on("add.cards change.cards",function(e){$(e.target).hasClass("mbr-social-feed")&&(g(),setTimeout(function(){$(".mbr-social-feed").removeClass("loading")},5E3))})});
