/** * Kendo UI v2018.1.117 (http://www.telerik.com/kendo-ui) * Copyright 2018 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(t,define){define("kendo.treeview.draganddrop.min",["kendo.data.min","kendo.draganddrop.min"],t)}(function(){return function(t,i){var e=window.kendo,o=e.ui,s=t.proxy,n=t.extend,r="visibility",a="k-state-hover",d="input,a,textarea,.k-multiselect-wrap,select,button,a.k-button>.k-icon,button.k-button>.k-icon,span.k-icon.k-i-arrow-60-right,span.k-icon.k-i-arrow-45-down-right";o.HierarchicalDragAndDrop=e.Class.extend({init:function(i,r){this.element=i,this.hovered=i,this.options=n({dragstart:t.noop,drag:t.noop,drop:t.noop,dragend:t.noop},r),this._draggable=new o.Draggable(i,{ignore:d,filter:r.filter,autoScroll:r.autoScroll,cursorOffset:{left:10,top:e.support.mobileOS?-40/e.support.zoomLevel():10},hint:s(this._hint,this),dragstart:s(this.dragstart,this),dragcancel:s(this.dragcancel,this),drag:s(this.drag,this),dragend:s(this.dragend,this),$angular:r.$angular})},_hint:function(t){return"
"+this.options.hintText(t)+"
"},_removeTouchHover:function(){e.support.touch&&this.hovered&&(this.hovered.find("."+a).removeClass(a),this.hovered=!1)},_hintStatus:function(e){var o=this._draggable.hint.find(".k-drag-status")[0];return e?(o.className="k-icon k-drag-status "+e,i):t.trim(o.className.replace(/(p|k)-(icon|drag-status)/g,""))},dragstart:function(i){this.source=i.currentTarget.closest(this.options.itemSelector),this.options.dragstart(this.source)&&i.preventDefault(),this.dropHint=this.options.reorderable?t("
").css(r,"hidden").appendTo(this.element):t()},drag:function(i){var o,s,n,d,h,l,c,p,g,u,v,k=this.options,f=this.source,m=this.dropTarget=t(e.eventTarget(i)),_=m.closest(k.allowedContainers);_.length?f[0]==m[0]||k.contains(f[0],m[0])?v="k-i-cancel":(v="k-i-insert-middle",g=k.itemFromTarget(m),o=g.item,o.length?(this._removeTouchHover(),s=e._outerHeight(o),d=g.content,k.reorderable?(h=s/(d.length>0?4:2),n=e.getOffset(o).top,l=i.y.location