/** * 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"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile.ui,r=n.ui.Popup,o='
',a="show",s="hide",l=i.Widget,u=l.extend({init:function(t,i){var a=this,s=n.mobile.application,u=n.support.mobileOS,c=s?s.os.name:u?u.name:"ios",d="ios"===c||"wp"===c||(s?s.os.skin:!1),p="blackberry"===c,f=i.align||(d?"bottom center":p?"center right":"center center"),h=i.position||(d?"bottom center":p?"center right":"center center"),g=i.effect||(d?"slideIn:up":p?"slideIn:left":"fade:in"),m=e(o).handler(a).hide();l.fn.init.call(a,t,i),a.shim=m,t=a.element,i=a.options,i.className&&a.shim.addClass(i.className),i.modal||a.shim.on("up","hide"),(s?s.element:e(document.body)).append(m),a.popup=new r(a.element,{anchor:m,modal:!0,appendTo:m,origin:f,position:h,animation:{open:{effects:g,duration:i.duration},close:{duration:i.duration}},deactivate:function(){m.hide()},open:function(){m.show()}}),n.notify(a)},events:[a,s],options:{name:"Shim",modal:!1,align:t,position:t,effect:t,duration:200},show:function(){this.popup.open(),this.trigger(a)},hide:function(t){t&&e.contains(this.shim.children().children(".k-popup")[0],t.target)||(this.popup.close(),this.trigger(s))},destroy:function(){l.fn.destroy.call(this),this.shim.kendoDestroy(),this.popup.destroy(),this.shim.remove()}});i.plugin(u)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()});