text: define("common:widget/ui/admanager/smaad/label",function(t){function n(t,n){return t.replace(/#{(\w+)}/g,function(t,i){return void 0===n[i]?"":n[i]})}function i(t){var n=[];for(var i in t)t.hasOwnProperty(i)&&n.push(i+"="+t[i]);return n.join("&")}function e(t){this.opt=t,this.tpl='<li class="#{type}"><span>#{idx}</span><a href="#{link}" target="_blank">#{subutf8}</a></li>',this.$el=o(n(this.tpl,this.compute()))}var o=t("common:widget/ui/base/base");return o.extend(e.prototype,{compute:function(){var t=this.opt,n=t.subutf8,e=t.size,o=t.idx,a=n.replace(/[^\x00-\xff]/g,"aa").length,s="s"==e&&a>10?"s":"l",r="http://shangjia.baidu.com/s",u="type-"+Math.min(o+1,4);return r=r+"?"+i({wd:t.gbk,channel:"pic-detail",qid:t.qid,sid:"0",pos:"im-"+t.idx,sugCount:t.count,overscreen:1}),{boxSize:e,fontSize:s,color:t.color,subutf8:n,link:r,idx:o+1,type:u}},appendTo:function(t){this.$el.appendTo(t)}}),e});