"use strict";YUI.add("rg.views.application.BaseShareView",function(a){a.namespace("rg.views.application"),a.rg.views.application.BaseShareView=a.Base.create("application.BaseShareView",a.rg.WidgetView,[],{events:{".js-share-item":{click:"share"}},afterRendered:function(){var b="";this.data.useUtmTags&&(b="?utm_source="+this.data.utmSource+encodeURIComponent("&")+"utm_medium="+this.data.utmMedium+encodeURIComponent("&")+"utm_campaign="+this.data.utmCampaign),this.data.toShare={url:a.one('meta[property="og:url"]')._node.content+b,title:a.one('meta[property="og:title"]')._node.content}},share:function(b){this.data.trackClick&&a.rg.ajax(this.data.trackUrl,{type:this.data.name});var c=b.currentTarget.getData(),d=Hogan.compile(c.url,{},"url_template.html"),e=d.render(this.getShareData());e=this.prepareShareUrl(e);var f="width="+c.width+",height="+c.height;window.open(e,"newwindow",f)},getShareData:function(){return this.data.toShare},prepareShareUrl:function(a){return a}},{ATTRS:{}})},"1.0.0",{requires:["Hogan"]});
