text: /**
   * Copyright <%= year %> Telerik AD
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  !function(e,define){define(["./kendo.popup.min","./kendo.mobile.pane.min"],e)}(function(){return function(e){var t=window.kendo,n=t.mobile,i=n.ui,r="show",o="hide",a="open",s="close",l='<div class="km-popup-wrapper" />',u='<div class="km-popup-arrow" />',c='<div class="km-popup-overlay" />',d="km-up km-down km-left km-right",p=i.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"}},h={animation:{open:{effects:"fade:in",duration:0},close:{effects:"fade:out",duration:400}}},g={horizontal:{offset:"top",size:"height"},vertical:{offset:"left",size:"width"}},m={up:"down",down:"up",left:"right",right:"left"},v=p.extend({init:function(n,i){var r,a,s=this,d=n.closest(".km-modalview-wrapper"),m=n.closest(".km-root").children(".km-pane").first(),v=d[0]?d:m;i.viewport?m=i.viewport:m[0]||(m=window),i.container?v=i.container:v[0]||(v=document.body),r={viewport:m,open:function(){s.overlay.show()},activate:e.proxy(s._activate,s),deactivate:function(){s.overlay.hide(),s.trigger(o)}},p.fn.init.call(s,n,i),n=s.element,i=s.options,n.wrap(l).addClass("km-popup").show(),a=s.options.direction.match(/left|right/)?"horizontal":"vertical",s.dimensions=g[a],s.wrapper=n.parent().css({width:i.width,height:i.height}).addClass("km-popup-wrapper km-"+i.direction).hide(),s.arrow=e(u).prependTo(s.wrapper).hide(),s.overlay=e(c).appendTo(v).hide(),r.appendTo=s.overlay,r.copyAnchorStyles=!1,r.autosize=!0,i.className&&s.overlay.addClass(i.className),s.popup=new t.ui.Popup(s.wrapper,e.extend(!0,r,h,f[i.direction]))},options:{name:"Popup",width:240,height:"",direction:"down",container:null,viewport:null},events:[r,o],show:function(t){var n=this,i=n.popup;i.options.anchor=e(t),i.open()},target:function(){return this.popup.options.anchor},hide:function(){this.popup.close()},destroy:function(){p.fn.destroy.call(this),this.popup.destroy(),this.overlay.remove()},_activate:function(){var t=this,n=t.options.direction,i=t.dimensions,o=i.offset,a=t.popup,s=a.options.anchor,l=e(s).offset(),u=e(a.element).offset(),c=a.flipped?m[n]:n,p=2*t.arrow[i.size](),f=t.element[i.size]()-t.arrow[i.size](),h=e(s)[i.size](),g=l[o]-u[o]+h/2;p>g&&(g=p),g>f&&(g=f),t.wrapper.removeClass(d).addClass("km-"+c),t.arrow.css(o,g).show(),t.trigger(r)}}),_=p.extend({init:function(n,r){var o,l=this;l.initialOpen=!1,p.fn.init.call(l,n,r),o=e.extend({className:"km-popover-root",show:function(){l.trigger(a,{target:l.popup.target()})},hide:function(){l.trigger(s)}},this.options.popup),l.popup=new v(l.element,o),l.popup.overlay.on("move",!1),l.pane=new i.Pane(l.element,this.options.pane),l.pane.navigateToInitial(),t.notify(l,i)},options:{name:"PopOver",popup:{},pane:{}},events:[a,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(){p.fn.destroy.call(this),this.pane.destroy(),this.popup.destroy(),t.destroy(this.element)}});i.plugin(v),i.plugin(_)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()});