/** 
 * Kendo UI v2016.3.1118 (http://www.telerik.com/kendo-ui)                                                                                                                                              
 * Copyright 2016 Telerik AD. All rights reserved.                                                                                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(t,define){define("kendo.tooltip.min",["kendo.core.min","kendo.popup.min"],t)}(function(){return function(t,o){function e(t){for(;t.length;)n(t),t=t.parent()}function n(t){var o=t.data(s.ns+"title");o&&(t.attr("title",o),t.removeData(s.ns+"title"))}function i(t){var o=t.attr("title");o&&(t.data(s.ns+"title",o),t.attr("title",""))}function r(t){for(;t.length&&!t.is("body");)i(t),t=t.parent()}var s=window.kendo,a=s.ui.Widget,l=s.ui.Popup,c=s.isFunction,u=t.isPlainObject,p=t.extend,f=t.proxy,d=t(document),h=s.isLocalUrl,m="_tt_active",g="aria-describedby",w="show",v="hide",k="error",_="contentLoad",y="requestStart",b="k-content-frame",H='<div role="tooltip" class="k-widget k-tooltip#if (!autoHide) {# k-tooltip-closable#}#">#if (!autoHide) {# <div class="k-tooltip-button"><a href="\\#" class="k-icon k-i-close">close</a></div> #}#<div class="k-tooltip-content"></div>#if (callout){ #<div class="k-callout k-callout-#=dir#"></div>#}#</div>',T=s.template("<iframe frameborder='0' class='"+b+"' src='#= content.url #'>This page requires frames in order to show content</iframe>"),C=".kendoTooltip",D={bottom:{origin:"bottom center",position:"top center"},top:{origin:"top center",position:"bottom center"},left:{origin:"center left",position:"center right",collision:"fit flip"},right:{origin:"center right",position:"center left",collision:"fit flip"},center:{position:"center center",origin:"center center"}},x={top:"bottom",bottom:"top",left:"right",right:"left",center:"center"},O={bottom:"n",top:"s",left:"e",right:"w",center:"n"},j={horizontal:{offset:"top",size:"outerHeight"},vertical:{offset:"left",size:"outerWidth"}},A=function(t){return t.target.data(s.ns+"title")},K=a.extend({init:function(t,o){var e,n=this;a.fn.init.call(n,t,o),e=n.options.position.match(/left|right/)?"horizontal":"vertical",n.dimensions=j[e],n._documentKeyDownHandler=f(n._documentKeyDown,n),n.element.on(n.options.showOn+C,n.options.filter,f(n._showOn,n)).on("mouseenter"+C,n.options.filter,f(n._mouseenter,n)),this.options.autoHide&&n.element.on("mouseleave"+C,n.options.filter,f(n._mouseleave,n))},options:{name:"Tooltip",filter:"",content:A,showAfter:100,callout:!0,position:"bottom",showOn:"mouseenter",autoHide:!0,width:null,height:null,animation:{open:{effects:"fade:in",duration:0},close:{effects:"fade:out",duration:40,hide:!0}}},events:[w,v,_,k,y],_mouseenter:function(o){r(t(o.currentTarget))},_showOn:function(o){var e=this,n=t(o.currentTarget);e.options.showOn&&e.options.showOn.match(/click|focus/)?e._show(n):(clearTimeout(e.timeout),e.timeout=setTimeout(function(){e._show(n)},e.options.showAfter))},_appendContent:function(t){var o,e=this,n=e.options.content,i=e.content,r=e.options.iframe;u(n)&&n.url?("iframe"in e.options||(r=!h(n.url)),e.trigger(y,{options:n,target:t}),r?(i.hide(),o=i.find("."+b)[0],o?o.src=n.url||o.src:i.html(T({content:n})),i.find("."+b).off("load"+C).on("load"+C,function(){e.trigger(_),i.show()})):(i.empty(),s.ui.progress(i,!0),e._ajaxRequest(n))):n&&c(n)?(n=n({sender:this,target:t}),i.html(n||"")):i.html(n),e.angular("compile",function(){return{elements:i}})},_ajaxRequest:function(t){var o=this;jQuery.ajax(p({type:"GET",dataType:"html",cache:!1,error:function(t,e){s.ui.progress(o.content,!1),o.trigger(k,{status:e,xhr:t})},success:f(function(t){s.ui.progress(o.content,!1),o.content.html(t),o.trigger(_)},o)},t))},_documentKeyDown:function(t){t.keyCode===s.keys.ESC&&this.hide()},refresh:function(){var t=this,o=t.popup;o&&o.options.anchor&&t._appendContent(o.options.anchor)},hide:function(){this.popup&&this.popup.close()},show:function(t){t=t||this.element,r(t),this._show(t)},_show:function(t){var o=this,n=o.target();o.popup||o._initPopup(),n&&n[0]!=t[0]&&(o.popup.close(),o.popup.element.kendoStop(!0,!0)),n&&n[0]==t[0]||(o._appendContent(t),o.popup.options.anchor=t),o.popup.one("deactivate",function(){e(t),t.removeAttr(g),this.element.removeAttr("id").attr("aria-hidden",!0),d.off("keydown"+C,o._documentKeyDownHandler)}),o.popup.open()},_initPopup:function(){var o=this,e=o.options,n=t(s.template(H)({callout:e.callout&&"center"!==e.position,dir:O[e.position],autoHide:e.autoHide}));o.popup=new l(n,p({activate:function(){var t=this.options.anchor,n=t[0].id||o.element[0].id;n&&(t.attr(g,n+m),this.element.attr("id",n+m)),e.callout&&o._positionCallout(),this.element.removeAttr("aria-hidden"),d.on("keydown"+C,o._documentKeyDownHandler),o.trigger(w)},close:function(){o.trigger(v)},copyAnchorStyles:!1,animation:e.animation},D[e.position])),n.css({width:e.width,height:e.height}),o.content=n.find(".k-tooltip-content"),o.arrow=n.find(".k-callout"),e.autoHide?n.on("mouseleave"+C,f(o._mouseleave,o)):n.on("click"+C,".k-tooltip-button",f(o._closeButtonClick,o))},_closeButtonClick:function(t){t.preventDefault(),this.hide()},_mouseleave:function(o){if(this.popup){var n=t(o.currentTarget),i=n.offset(),r=o.pageX,a=o.pageY;if(i.right=i.left+s._outerWidth(n),i.bottom=i.top+s._outerHeight(n),r>i.left&&r<i.right&&a>i.top&&a<i.bottom)return;this.popup.close()}else e(t(o.currentTarget));clearTimeout(this.timeout)},_positionCallout:function(){var o=this,e=o.options.position,n=o.dimensions,i=n.offset,r=o.popup,s=r.options.anchor,a=t(s).offset(),l=parseInt(o.arrow.css("border-top-width"),10),c=t(r.element).offset(),u=O[r.flipped?x[e]:e],p=a[i]-c[i]+t(s)[n.size]()/2-l;o.arrow.removeClass("k-callout-n k-callout-s k-callout-w k-callout-e").addClass("k-callout-"+u).css(i,p)},target:function(){return this.popup?this.popup.options.anchor:null},destroy:function(){var t=this.popup;t&&(t.element.off(C),t.destroy()),clearTimeout(this.timeout),this.element.off(C),d.off("keydown"+C,this._documentKeyDownHandler),a.fn.destroy.call(this)}});s.ui.plugin(K)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,o,e){(e||o)()});
//# sourceMappingURL=kendo.tooltip.min.js.map
