/* * Kendo UI Complete v2013.1.514 (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"==typeof define&&define.amd?define:function(e,i){return i()})(["./kendo.popup.min","./kendo.mobile.application.min"],function(){(function(e){var i=window.kendo,t=i.mobile,o=t.ui,n="show",p="hide",r="open",s="close",a='
',d='',c='',l="km-up km-down km-left km-right",h=o.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}}},w={horizontal:{offset:"top",size:"height"},vertical:{offset:"left",size:"width"}},m={up:"down",down:"up",left:"right",right:"left"},g=h.extend({init:function(o,n){var r,s=this,l=o.closest(".km-modalview-wrapper"),m=l[0]?l:t.application.element,g={viewport:t.application.element,open:function(){s.overlay.show()},activate:e.proxy(s._activate,s),deactivate:function(){s.overlay.hide(),s.trigger(p)}};h.fn.init.call(s,o,n),o=s.element,n=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:n.width,height:n.height}).addClass("km-popup-wrapper km-"+n.direction).hide(),s.arrow=e(d).prependTo(s.wrapper).hide(),s.overlay=e(c).appendTo(m).hide(),g.appendTo=s.overlay,s.popup=new i.ui.Popup(s.wrapper,e.extend(!0,g,u,f[n.direction]))},options:{name:"Popup",width:240,height:320,direction:"down"},events:[n,p],show:function(i){var t=this,o=t.popup;o.options.anchor=e(i),o.open()},target:function(){return this.popup.options.anchor},hide:function(){this.popup.close()},destroy:function(){h.fn.destroy.call(this),this.popup.destroy()},_activate:function(){var i=this,t=i.options.direction,o=i.dimensions,p=o.offset,r=i.popup,s=r.options.anchor,a=e(s).offset(),d=e(r.element).offset(),c=r.flipped?m[t]:t,h=a[p]-d[p]+e(s)[o.size]()/2;i.wrapper.removeClass(l).addClass("km-"+c),i.arrow.css(p,h).show(),i.trigger(n)}}),v=h.extend({init:function(t,n){var p,a=this;a.initialOpen=!1,h.fn.init.call(a,t,n),n=a.options,p=e.extend({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 o.Pane(a.element,this.options.pane),i.notify(a,o)},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.initialOpen=!0)},close:function(){this.popup.hide()},destroy:function(){h.fn.destroy.call(this),this.pane.destroy(),this.popup.destroy(),i.destroy(this.element)}});o.plugin(g),o.plugin(v)})(window.kendo.jQuery)});