/* * Kendo UI Complete v2013.3.1119 (http://kendoui.com) * Copyright 2013 Telerik AD. All rights reserved. * * Kendo UI Complete commercial licenses may be obtained at * https://www.kendoui.com/purchase/license-agreement/kendo-ui-complete-commercial.aspx * If you do not own a commercial license, this file shall be governed by the trial license terms. */ !function(define){return define(["./kendo.popup.min","./kendo.mobile.application.min"],function(){!function(e){var o=window.kendo,i=o.mobile,t=i.ui,n="show",p="hide",r="open",s="close",a='
',c='
',d='
',l="km-up km-down km-left km-right",h=t.Widget,f={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"}},u={animation:{open:{effects:"fade:in",duration:0},close:{effects:"fade:out",duration:400}}},m={horizontal:{offset:"top",size:"height"},vertical:{offset:"left",size:"width"}},w={up:"down",down:"up",left:"right",right:"left"},g=h.extend({init:function(i,t){var n,r=this,s=i.closest(".km-modalview-wrapper"),l=i.closest(".km-root").children(".km-pane").first(),w=s[0]?s:l,g={viewport:l,open:function(){r.overlay.show()},activate:e.proxy(r._activate,r),deactivate:function(){r.overlay.hide(),r.trigger(p)}};h.fn.init.call(r,i,t),i=r.element,t=r.options,i.wrap(a).addClass("km-popup").show(),n=r.options.direction.match(/left|right/)?"horizontal":"vertical",r.dimensions=m[n],r.wrapper=i.parent().css({width:t.width,height:t.height}).addClass("km-popup-wrapper km-"+t.direction).hide(),r.arrow=e(c).prependTo(r.wrapper).hide(),r.overlay=e(d).appendTo(w).hide(),g.appendTo=r.overlay,g.copyAnchorStyles=!1,g.autosize=!0,t.className&&r.overlay.addClass(t.className),r.popup=new o.ui.Popup(r.wrapper,e.extend(!0,g,u,f[t.direction]))},options:{name:"Popup",width:240,height:"",direction:"down"},events:[n,p],show:function(o){var i=this,t=i.popup;t.options.anchor=e(o),t.open()},target:function(){return this.popup.options.anchor},hide:function(){this.popup.close()},destroy:function(){h.fn.destroy.call(this),this.popup.destroy(),this.overlay.remove()},_activate:function(){var o=this,i=o.options.direction,t=o.dimensions,p=t.offset,r=o.popup,s=r.options.anchor,a=e(s).offset(),c=e(r.element).offset(),d=r.flipped?w[i]:i,h=a[p]-c[p]+e(s)[t.size]()/2;o.wrapper.removeClass(l).addClass("km-"+d),o.arrow.css(p,h).show(),o.trigger(n)}}),v=h.extend({init:function(i,n){var p,a=this;a.initialOpen=!1,h.fn.init.call(a,i,n),p=e.extend({className:"km-popover-root",show:function(){a.trigger(r,{target:a.popup.target()})},hide:function(){a.trigger(s)}},this.options.popup),a.popup=new g(a.element,p),a.pane=new t.Pane(a.element,this.options.pane),a.pane.navigateToInitial(),o.notify(a,t)},options:{name:"PopOver",popup:{},pane:{}},events:[r,s],open:function(e){this.openFor(e)},openFor:function(e){this.popup.show(e),this.initialOpen||(this.pane.navigate(""),this.popup.popup._position(),this.initialOpen=!0)},close:function(){this.popup.hide()},destroy:function(){h.fn.destroy.call(this),this.pane.destroy(),this.popup.destroy(),o.destroy(this.element)}});t.plugin(g),t.plugin(v)}(window.kendo.jQuery)})}("function"==typeof define&&define.amd?define:function(e,o){return o()}); //@ sourceMappingURL=kendo.mobile.popover.min.js.map