"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(d,f,e,t){function r(t,o){this.element=d(t),this.settings=d.extend({},n,o),this._defaults=n,this._name=i,this._title=this.element.attr("title"),this.mode="hide",this.init()}function p(t){var o=t.clone();o.css("visibility","hidden"),d("body").append(o);var e=o.outerHeight();return o.remove(),e}function s(t){var o,e,s,r=t.tooltip(),i=t.element,n=t,a=d(f),l=10;switch(n.settings.position){case"top":e=i.offset().left+i.outerWidth()/2-r.outerWidth()/2,o=i.offset().top-p(r)-l,r.find(".tipso_arrow").css({marginLeft:-8}),oa.scrollTop()+a.outerHeight()?(o=i.offset().top-p(r)-l,r.find(".tipso_arrow").css({"border-top-color":n.settings.background,"border-bottom-color":"transparent"}),r.removeClass("top bottom left right"),r.addClass("top")):(r.find(".tipso_arrow").css({"border-bottom-color":n.settings.background,"border-top-color":"transparent"}),r.removeClass("top bottom left right"),r.addClass(n.settings.position));break;case"left":e=i.offset().left-r.outerWidth()-l,o=i.offset().top+i.outerHeight()/2-p(r)/2,r.find(".tipso_arrow").css({marginTop:-8,marginLeft:""}),ea.scrollLeft()+a.outerWidth()?(e=i.offset().left-r.outerWidth()-l,r.find(".tipso_arrow").css({"border-left-color":n.settings.background,"border-right-color":"transparent","border-top-color":"transparent","border-bottom-color":"transparent"}),r.removeClass("top bottom left right"),r.addClass("left")):(r.find(".tipso_arrow").css({"border-right-color":n.settings.background,"border-left-color":"transparent","border-top-color":"transparent","border-bottom-color":"transparent"}),r.removeClass("top bottom left right"),r.addClass(n.settings.position))}ea.outerWidth()&&("bottom"==n.settings.position||"top"==n.settings.position)&&(s=a.outerWidth()-(e+n.settings.width),r.find(".tipso_arrow").css({marginLeft:-s-8,marginTop:""}),e+=s),ea.outerWidth()&&(s=a.outerWidth()-(e+n.settings.width),r.find(".tipso_arrow").css({marginLeft:-s-8,marginTop:""}),e+=s),ea.outerWidth()&&("left"==n.settings.position||"right"==n.settings.position)&&(e=i.offset().left+i.outerWidth()/2-r.outerWidth()/2,r.find(".tipso_arrow").css({marginLeft:-8,marginTop:""}),(o=i.offset().top-p(r)-l)a.outerWidth()&&(s=a.outerWidth()-(e+n.settings.width),r.find(".tipso_arrow").css({marginLeft:-s-8,marginTop:""}),e+=s),e
')),this.tipso_bubble},show:function(){var t=this.tooltip(),o=this,e=d(f);d.isFunction(o.settings.onBeforeShow)&&o.settings.onBeforeShow(d(this)),t.css({background:o.settings.background,color:o.settings.color,width:o.settings.width}).hide(),t.find(".tipso_content").html(o.content()),s(o),e.resize(function(){s(o)}),o.timeout=f.setTimeout(function(){t.appendTo("body").stop(!0,!0).fadeIn(o.settings.speed,function(){o.mode="show",d.isFunction(o.settings.onShow)&&o.settings.onShow(d(this))})},o.settings.delay)},hide:function(){var t=this,o=this.tooltip();f.clearTimeout(t.timeout),t.timeout=null,o.stop(!0,!0).fadeOut(t.settings.speed,function(){d(this).remove(),d.isFunction(t.settings.onHide)&&"show"==t.mode&&t.settings.onHide(d(this)),t.mode="hide"})},destroy:function(){var t=this.element;t.off("."+i),t.removeData(i),t.removeClass("tipso_style").attr("title",this._title)},content:function(){var t=this.element,o=this,e=this._title;return o.settings.ajaxContentUrl?d.ajax({type:"GET",url:o.settings.ajaxContentUrl,async:!1}).responseText:o.settings.content?o.settings.content:!0===o.settings.useTitle?e:t.data("tipso")},update:function(t,o){return o?void(this.settings[t]=o):this.settings[t]}}),d[i]=d.fn[i]=function(o){var e,s=arguments;return o===t||"object"==(void 0===o?"undefined":_typeof(o))?(this instanceof d||d.extend(n,o),this.each(function(){d.data(this,"plugin_"+i)||d.data(this,"plugin_"+i,new r(this,o))})):"string"==typeof o&&"_"!==o[0]&&"init"!==o?(this.each(function(){var t=d.data(this,"plugin_"+i);(t=t||d.data(this,"plugin_"+i,new r(this,o)))instanceof r&&"function"==typeof t[o]&&(e=t[o].apply(t,Array.prototype.slice.call(s,1))),"destroy"===o&&d.data(this,"plugin_"+i,null)}),e!==t?e:this):void 0},d.fn.reRender=function(t){console.log(t),d(".icon-tishi").on("mouseover",function(){setTimeout(function(){d(".tipso_bubble .tipso_content").html()!==t&&d(".tipso_bubble .tipso_content").html(t)},200)})}}(jQuery,window,document);