(function e(n,t,i){function r(u,e){var s,h,o;if(!t[u]){if(!n[u]){if(s=typeof require=="function"&&require,!e&&s)return s(u,!0);if(f)return f(u,!0);h=new Error("Cannot find module '"+u+"'");throw h.code="MODULE_NOT_FOUND",h;}o=t[u]={exports:{}};n[u][0].call(o.exports,function(t){var i=n[u][1][t];return r(i?i:t)},o,o.exports,e,n,t,i)}return t[u].exports}for(var f=typeof require=="function"&&require,u=0;u<i.length;u++)r(i[u]);return r})({1:[function(n,t){"use strict";t.exports=function(n){var t=encodeURIComponent(n.getURL());return{popup:!0,shareText:{de:"teilen",en:"share"},name:"facebook",title:{de:"Bei Facebook teilen",en:"Share on Facebook"},shareUrl:"https://www.facebook.com/sharer/sharer.php?u="+t+n.getReferrerTrack()}}},{}],2:[function(n,t){"use strict";t.exports=function(n){return{popup:!0,shareText:"+1",name:"googleplus",title:{de:"Bei Google+ teilen",en:"Share on Google+"},shareUrl:"https://plus.google.com/share?url="+n.getURL()+n.getReferrerTrack()}}},{}],3:[function(n,t){"use strict";t.exports=function(n){return{popup:!1,shareText:"Info",name:"info",title:{de:"weitere Informationen",en:"more information"},shareUrl:n.getInfoUrl()}}},{}],4:[function(n,t){"use strict";t.exports=function(){return{popup:!1,shareText:"mail",name:"mail",title:{de:"Per E-Mail versenden",en:"Send by email"},shareUrl:"mailto:?subject=Ich m%C3%B6chte Ihnen diese Seite empfehlen&body=Hallo,%0D%0Aich m%C3%B6chte Ihnen diese Seite empfehlen:%0D%0A"+location.href}}},{}],5:[function(n,t){(function(n){"use strict";var i=typeof window!="undefined"?window.jQuery:typeof n!="undefined"?n.jQuery:null;t.exports=function(n){return{popup:!0,shareText:"tweet",name:"twitter",title:{de:"Bei Twitter teilen",en:"Share on Twitter"},shareUrl:"https://twitter.com/intent/tweet?text="+n.getShareText()+"&url="+n.getURL()+n.getReferrerTrack()}}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],6:[function(n,t){"use strict";t.exports=function(n){return{popup:!1,shareText:"WhatsApp",name:"whatsapp",title:{de:"Bei Whatsapp teilen",en:"Share on Whatsapp"},shareUrl:"whatsapp://send?text="+n.getShareText()+"%20"+n.getURL()+n.getReferrerTrack()}}},{}],7:[function(n,t){(function(i){"use strict";var r=typeof window!="undefined"?window.jQuery:typeof i!="undefined"?i.jQuery:null,u=function(t,i){var f=this,u;this.element=t;this.options=r.extend({},this.defaults,i,r(t).data());u=[n("./services/facebook"),n("./services/googleplus"),n("./services/twitter"),n("./services/whatsapp"),n("./services/mail"),n("./services/info")];this.services=r.map(this.options.services,function(n){var t;return u.forEach(function(i){return i=i(f),i.name===n?(t=i,null):void 0}),t});this._addButtonList();null!==this.options.backendUrl&&this.getShares().then(r.proxy(this._updateCounts,this))};u.prototype={defaults:{theme:"color",backendUrl:null,infoUrl:"http://ct.de/-2467514",lang:"de",orientation:"horizontal",referrerTrack:null,services:["twitter","facebook","googleplus","info"],url:function(){var t=i.document.location.href,n=r("link[rel=canonical]").attr("href")||this.getMeta("og:url")||"";return n.length>0&&(n.indexOf("http")<0&&(n=i.document.location.protocol+"//"+i.document.location.host+n),t=n),t}},$socialshareElement:function(){return r(this.element)},getLocalized:function(n,t){return"object"==typeof n[t]?n[t][this.options.lang]:"string"==typeof n[t]?n[t]:void 0},getMeta:function(n){var t=r('meta[name="'+n+'"],[property="'+n+'"]').attr("content");return t||""},getInfoUrl:function(){return this.options.infoUrl},getURL:function(){var n=this.options.url;return"function"==typeof n?r.proxy(n,this)():n},getReferrerTrack:function(){return this.options.referrerTrack||""},getShares:function(){return r.getJSON(this.options.backendUrl+"?url="+encodeURIComponent(this.getURL()))},_updateCounts:function(n){var t=this;r.each(n,function(n,i){i>=1e3&&(i=Math.round(i/1e3)+"k");r(t.element).find("."+n+" a").append('<span class="share_count">'+i)})},_addButtonList:function(){var t=this,u=this.$socialshareElement(),f="theme-"+this.options.theme,e="orientation-"+this.options.orientation,n=r("<ul>").addClass(f).addClass(e);this.services.forEach(function(i){var f=r('<li class="shariff-button">').addClass(i.name),e='<span class="share_text">'+t.getLocalized(i,"shareText"),u=r("<a>").attr("href",i.shareUrl).append(e);i.popup?u.attr("rel","popup"):u.attr("target","_blank");u.attr("title",t.getLocalized(i,"title"));f.append(u);n.append(f)});n.on("click",'[rel="popup"]',function(n){n.preventDefault();var t=r(this).attr("href"),u=r(this).attr("title");i.window.open(t,u,"width=600,height=460")});u.append(n)},abbreviateText:function(n,t){var i=decodeURIComponent(n),r;return i.length<=t?n:(r=i.substring(0,t-1).lastIndexOf(" "),encodeURIComponent(i.substring(0,r))+"�")},getShareText:function(){var n=this.getMeta("DC.title"),t=this.getMeta("DC.creator");return n.length>0&&t.length>0?n+=" - "+t:n=r("title").text(),encodeURIComponent(this.abbreviateText(n,120))}};t.exports=u;r(".shariff").each(function(){this.shariff=new u(this)})}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./services/facebook":1,"./services/googleplus":2,"./services/info":3,"./services/mail":4,"./services/twitter":5,"./services/whatsapp":6}]},{},[7])