/** 
 * 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.reorderable.min",["kendo.core.min","kendo.draganddrop.min"],e)}(function(){return function(e,r){function n(r,n){r=e(r),n?r.find(".k-drag-status").removeClass("k-i-add").addClass("k-i-denied"):r.find(".k-drag-status").removeClass("k-i-denied").addClass("k-i-add")}var t=window.kendo,a=t._outerWidth,d=t._outerHeight,i=t.getOffset,o=t.ui.Widget,g="change",l="k-reorderable",s=o.extend({init:function(r,s){var u,f=this,_=t.guid()+"-reorderable";o.fn.init.call(f,r,s),r=f.element.addClass(l),s=f.options,f.draggable=u=s.draggable||new t.ui.Draggable(r,{group:_,autoScroll:!0,filter:s.filter,hint:s.hint}),f.reorderDropCue=e('<div class="k-reorder-cue"><div class="k-icon k-i-arrow-s"></div><div class="k-icon k-i-arrow-n"></div></div>'),r.find(u.options.filter).kendoDropTarget({group:u.options.group,dragenter:function(e){var r,t,o,g;f._draggable&&(r=this.element,o=!f._dropTargetAllowed(r)||f._isLastDraggable(),n(e.draggable.hint,o),o||(t=i(r),g=t.left,s.inSameContainer&&!s.inSameContainer({source:r,target:f._draggable,sourceIndex:f._index(r),targetIndex:f._index(f._draggable)})?f._dropTarget=r:f._index(r)>f._index(f._draggable)&&(g+=a(r)),f.reorderDropCue.css({height:d(r),top:t.top,left:g}).appendTo(document.body)))},dragleave:function(e){n(e.draggable.hint,!0),f.reorderDropCue.remove(),f._dropTarget=null},drop:function(){var e,r;f._dropTarget=null,f._draggable&&(e=this.element,r=f._draggable,f._dropTargetAllowed(e)&&!f._isLastDraggable()&&f.trigger(g,{element:f._draggable,target:e,oldIndex:f._index(r),newIndex:f._index(e),position:i(f.reorderDropCue).left>i(e).left?"after":"before"}))}}),u.bind(["dragcancel","dragend","dragstart","drag"],{dragcancel:function(){f.reorderDropCue.remove(),f._draggable=null,f._elements=null},dragend:function(){f.reorderDropCue.remove(),f._draggable=null,f._elements=null},dragstart:function(e){f._draggable=e.currentTarget,f._elements=f.element.find(f.draggable.options.filter)},drag:function(e){var r,n;f._dropTarget&&!this.hint.find(".k-drag-status").hasClass("k-i-denied")&&(r=i(f._dropTarget).left,n=a(f._dropTarget),f.reorderDropCue.css(e.pageX>r+n/2?{left:r+n}:{left:r}))}})},options:{name:"Reorderable",filter:"*"},events:[g],_isLastDraggable:function(){var e,r=this.options.inSameContainer,n=this._draggable[0],t=this._elements.get(),a=!1;if(!r)return!1;for(;!a&&t.length>0;)e=t.pop(),a=n!==e&&r({source:n,target:e,sourceIndex:this._index(n),targetIndex:this._index(e)});return!a},_dropTargetAllowed:function(e){var r=this.options.inSameContainer,n=this.options.dragOverContainers,t=this._draggable;return t[0]!==e[0]&&(!r||!n||(!!r({source:t,target:e,sourceIndex:this._index(t),targetIndex:this._index(e)})||n(this._index(t),this._index(e))))},_index:function(e){return this._elements.index(e)},destroy:function(){var r=this;o.fn.destroy.call(r),r.element.find(r.draggable.options.filter).each(function(){var r=e(this);r.data("kendoDropTarget")&&r.data("kendoDropTarget").destroy()}),r.draggable&&(r.draggable.destroy(),r.draggable.element=r.draggable=null),r.elements=r.reorderDropCue=r._elements=r._draggable=null}});t.ui.plugin(s)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,r,n){(n||r)()});
//# sourceMappingURL=kendo.reorderable.min.js.map
