/** 
 * 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(e,define){define("kendo.mobile.popover.min",["kendo.popup.min","kendo.mobile.pane.min"],e)}(function(){return function(e,o){var i=window.kendo,t=i.mobile,n=t.ui,p="hide",r="open",s="close",a='<div class="km-popup-wrapper" />',l='<div class="km-popup-arrow" />',d='<div class="km-popup-overlay" />',c="km-up km-down km-left km-right",h=n.Widget,u={down:{origin:"bottom center",position:"top center"},up:{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"}},f={animation:{open:{effects:"fade:in",duration:0},close:{effects:"fade:out",duration:400}}},w={horizontal:{offset:"top",size:"height"},vertical:{offset:"left",size:"width"}},m={up:"down",down:"up",left:"right",right:"left"},v=h.extend({init:function(o,t){var n,r,s=this,c=o.closest(".km-modalview-wrapper"),m=o.closest(".km-root").children(".km-pane").first(),v=c[0]?c:m;t.viewport?m=t.viewport:m[0]||(m=window),t.container?v=t.container:v[0]||(v=document.body),n={viewport:m,copyAnchorStyles:!1,autosize:!0,open:function(){s.overlay.show()},activate:e.proxy(s._activate,s),deactivate:function(){s.overlay.hide(),s._apiCall||s.trigger(p),s._apiCall=!1}},h.fn.init.call(s,o,t),o=s.element,t=s.options,o.wrap(a).addClass("km-popup").show(),r=s.options.direction.match(/left|right/)?"horizontal":"vertical",s.dimensions=w[r],s.wrapper=o.parent().css({width:t.width,height:t.height}).addClass("km-popup-wrapper km-"+t.direction).hide(),s.arrow=e(l).prependTo(s.wrapper).hide(),s.overlay=e(d).appendTo(v).hide(),n.appendTo=s.overlay,t.className&&s.overlay.addClass(t.className),s.popup=new i.ui.Popup(s.wrapper,e.extend(!0,n,f,u[t.direction]))},options:{name:"Popup",width:240,height:"",direction:"down",container:null,viewport:null},events:[p],show:function(o){this.popup.options.anchor=e(o),this.popup.open()},hide:function(){this._apiCall=!0,this.popup.close()},destroy:function(){h.fn.destroy.call(this),this.popup.destroy(),this.overlay.remove()},target:function(){return this.popup.options.anchor},_activate:function(){var o=this,i=o.options.direction,t=o.dimensions,n=t.offset,p=o.popup,r=p.options.anchor,s=e(r).offset(),a=e(p.element).offset(),l=p.flipped?m[i]:i,d=2*o.arrow[t.size](),h=o.element[t.size]()-o.arrow[t.size](),u=e(r)[t.size](),f=s[n]-a[n]+u/2;f<d&&(f=d),f>h&&(f=h),o.wrapper.removeClass(c).addClass("km-"+l),o.arrow.css(n,f).show()}}),g=h.extend({init:function(o,t){var p,r=this;r.initialOpen=!1,h.fn.init.call(r,o,t),p=e.extend({className:"km-popover-root",hide:function(){r.trigger(s)}},this.options.popup),r.popup=new v(r.element,p),r.popup.overlay.on("move",function(e){e.target==r.popup.overlay[0]&&e.preventDefault()}),r.pane=new n.Pane(r.element,e.extend(this.options.pane,{$angular:this.options.$angular})),i.notify(r,n)},options:{name:"PopOver",popup:{},pane:{}},events:[r,s],open:function(e){this.popup.show(e),this.initialOpen?this.pane.view()._invokeNgController():(this.pane.navigateToInitial()||this.pane.navigate(""),this.popup.popup._position(),this.initialOpen=!0)},openFor:function(e){this.open(e),this.trigger(r,{target:this.popup.target()})},close:function(){this.popup.hide()},destroy:function(){h.fn.destroy.call(this),this.pane.destroy(),this.popup.destroy(),i.destroy(this.element)}});n.plugin(v),n.plugin(g)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,o,i){(i||o)()});
//# sourceMappingURL=kendo.mobile.popover.min.js.map
