/** 
 * 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.button.min",["kendo.userevents.min"],e)}(function(){return function(e,t){function n(t,n,i){e(n.target).closest(".km-button,.km-detail").toggleClass("km-state-active",i),r&&t.deactivateTimeoutID&&(clearTimeout(t.deactivateTimeoutID),t.deactivateTimeoutID=0)}function i(t){return e('<span class="km-badge">'+t+"</span>")}var a=window.kendo,s=a.mobile,o=s.ui,l=o.Widget,c=a.support,m=c.mobileOS,r=m.android&&m.flatVersion>=300,d="click",u="disabled",p="km-state-disabled",f=l.extend({init:function(e,t){var i,s=this;l.fn.init.call(s,e,t),i="up"===s.options.clickOn,s._wrap(),s._style(),i||s.element.attr("data-navigate-on-press",!0),s.options.enable=s.options.enable&&!s.element.attr(u),s.enable(s.options.enable),s._userEvents=new a.UserEvents(s.element,{allowSelection:!i,fastTap:!0,press:function(e){s._activate(e)},release:function(e){n(s,e,!1),i||e.event.stopPropagation()}}),s._userEvents.bind(i?"tap":"press",function(e){s._release(e)}),r&&s.element.on("move",function(e){s._timeoutDeactivate(e)})},destroy:function(){l.fn.destroy.call(this),this._userEvents.destroy()},events:[d],options:{name:"Button",icon:"",style:"",badge:"",clickOn:"up",enable:!0},badge:function(e){var t=this.badgeElement=this.badgeElement||i(e).appendTo(this.element);return e||0===e?(t.html(e),this):e===!1?(t.empty().remove(),this.badgeElement=!1,this):t.html()},enable:function(e){var n=this.element;t===e&&(e=!0),this.options.enable=e,e?n.removeAttr(u):n.attr(u,u),n.toggleClass(p,!e)},_timeoutDeactivate:function(e){this.deactivateTimeoutID||(this.deactivateTimeoutID=setTimeout(n,500,this,e,!1))},_activate:function(e){var t=document.activeElement,i=t?t.nodeName:"";this.options.enable&&(n(this,e,!0),"INPUT"!=i&&"TEXTAREA"!=i||t.blur())},_release:function(n){var i=this;if(!(n.which>1))return i.options.enable?(i.trigger(d,{target:e(n.target),button:i.element})&&n.preventDefault(),t):(n.preventDefault(),t)},_style:function(){var t,n=this.options.style,i=this.element;n&&(t=n.split(" "),e.each(t,function(){i.addClass("km-"+this)}))},_wrap:function(){var t=this,n=t.options.icon,a=t.options.badge,s='<span class="km-icon km-'+n,o=t.element.addClass("km-button"),l=o.children("span:not(.km-icon)").addClass("km-text"),c=o.find("img").addClass("km-image");!l[0]&&o.html()&&(l=o.wrapInner('<span class="km-text" />').children("span.km-text")),!c[0]&&n&&(l[0]||(s+=" km-notext"),t.iconElement=o.prepend(e(s+'" />'))),(a||0===a)&&(t.badgeElement=i(a).appendTo(o))}}),h=f.extend({options:{name:"BackButton",style:"back"},init:function(e,n){var i=this;f.fn.init.call(i,e,n),t===i.element.attr("href")&&i.element.attr("href","#:back")}}),v=f.extend({options:{name:"DetailButton",style:""},init:function(e,t){f.fn.init.call(this,e,t)},_style:function(){var t,n=this.options.style+" detail",i=this.element;n&&(t=n.split(" "),e.each(t,function(){i.addClass("km-"+this)}))},_wrap:function(){var t=this,n=t.options.icon,i='<span class="km-icon km-'+n,a=t.element,s=a.children("span"),o=a.find("img").addClass("km-image");!o[0]&&n&&(s[0]||(i+=" km-notext"),a.prepend(e(i+'" />')))}});o.plugin(f),o.plugin(h),o.plugin(v)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});
//# sourceMappingURL=kendo.mobile.button.min.js.map
