text: /** 
   * Kendo UI v2018.1.221 (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.groupable.min",["kendo.core.min","kendo.draganddrop.min"],t)}(function(){return function(t,e){function r(t){return t.position().top+3}var a=window.kendo,n=a.ui.Widget,i=a._outerWidth,o=t.proxy,d=!1,s=".kendoGroupable",l="change",g=a.template('<div class="k-group-indicator" data-#=data.ns#field="${data.field}" data-#=data.ns#title="${data.title || ""}" data-#=data.ns#dir="${data.dir || "asc"}"><a href="\\#" class="k-link"><span class="k-icon k-i-sort-${(data.dir || "asc") == "asc" ? "asc-sm" : "desc-sm"}" title="(sorted ${(data.dir || "asc") == "asc" ? "ascending": "descending"})"></span>${data.title ? data.title: data.field}</a><a class="k-button k-button-icon k-bare"><span class="k-icon k-i-close"></span></a></div>',{useWithBlock:!1}),c=function(e){var r=e.attr(a.attr("title"));return r&&(r=a.htmlEncode(r)),t('<div class="k-header k-drag-clue" />').css({width:e.width(),paddingLeft:e.css("paddingLeft"),paddingRight:e.css("paddingRight"),lineHeight:e.height()+"px",paddingTop:e.css("paddingTop"),paddingBottom:e.css("paddingBottom")}).html(r||e.attr(a.attr("field"))).prepend('<span class="k-icon k-drag-status k-i-cancel" />')},u=t('<div class="k-grouping-dropclue"/>'),p=n.extend({init:function(g,p){var f,h,m=this,k=a.guid(),v=o(m._intializePositions,m),_=m._dropCuePositions=[];n.fn.init.call(m,g,p),d=a.support.isRtl(g),h=d?"right":"left",m.draggable=f=m.options.draggable||new a.ui.Draggable(m.element,{filter:m.options.draggableElements,hint:c,group:k}),m.groupContainer=t(m.options.groupContainer,m.element).kendoDropTarget({group:f.options.group,dragenter:function(t){m._canDrag(t.draggable.currentTarget)&&(t.draggable.hint.find(".k-drag-status").removeClass("k-i-cancel").addClass("k-i-plus"),u.css("top",r(m.groupContainer)).css(h,0).appendTo(m.groupContainer))},dragleave:function(t){t.draggable.hint.find(".k-drag-status").removeClass("k-i-plus").addClass("k-i-cancel"),u.remove()},drop:function(e){var r,n=e.draggable.currentTarget,i=n.attr(a.attr("field")),o=n.attr(a.attr("title")),s=m.indicator(i),l=m._dropCuePositions,g=l[l.length-1];(n.hasClass("k-group-indicator")||m._canDrag(n))&&(g?(r=m._dropCuePosition(a.getOffset(u).left+parseInt(g.element.css("marginLeft"),10)*(d?-1:1)+parseInt(g.element.css("marginRight"),10)),r&&m._canDrop(t(s),r.element,r.left)&&(r.before?r.element.before(s||m.buildIndicator(i,o)):r.element.after(s||m.buildIndicator(i,o)),m._change())):(m.groupContainer.append(m.buildIndicator(i,o)),m._change()))}}).kendoDraggable({filter:"div.k-group-indicator",hint:c,group:f.options.group,dragcancel:o(m._dragCancel,m),dragstart:function(t){var e=t.currentTarget,a=parseInt(e.css("marginLeft"),10),n=e.position(),o=d?n.left-a:n.left+i(e);v(),u.css({top:r(m.groupContainer),left:o}).appendTo(m.groupContainer),this.hint.find(".k-drag-status").removeClass("k-i-cancel").addClass("k-i-plus")},dragend:function(){m._dragEnd(this)},drag:o(m._drag,m)}).on("click"+s,".k-button",function(e){e.preventDefault(),m._removeIndicator(t(this).parent())}).on("click"+s,".k-link",function(e){var r=t(this).parent(),n=m.buildIndicator(r.attr(a.attr("field")),r.attr(a.attr("title")),"asc"==r.attr(a.attr("dir"))?"desc":"asc");r.before(n).remove(),m._change(),e.preventDefault()}),f.bind(["dragend","dragcancel","dragstart","drag"],{dragend:function(){m._dragEnd(this)},dragcancel:o(m._dragCancel,m),dragstart:function(t){var r,a,n;return m.options.allowDrag||m._canDrag(t.currentTarget)?(v(),_.length?(r=_[_.length-1].element,a=parseInt(r.css("marginRight"),10),n=r.position().left+i(r)+a):n=0,e):(t.preventDefault(),e)},drag:o(m._drag,m)}),m.dataSource=m.options.dataSource,m.dataSource&&m._refreshHandler?m.dataSource.unbind(l,m._refreshHandler):m._refreshHandler=o(m.refresh,m),m.dataSource&&(m.dataSource.bind("change",m._refreshHandler),m.refresh())},refresh:function(){var e=this,r=e.dataSource;e.groupContainer&&e.groupContainer.empty().append(t.map(r.group()||[],function(r){var n=r.field,i=a.attr("field"),o=e.element.find(e.options.filter).filter(function(){return t(this).attr(i)===n});return e.buildIndicator(r.field,o.attr(a.attr("title")),r.dir)}).join("")),e._invalidateGroupContainer()},destroy:function(){var t=this;n.fn.destroy.call(t),t.groupContainer.off(s),t.groupContainer.data("kendoDropTarget")&&t.groupContainer.data("kendoDropTarget").destroy(),t.groupContainer.data("kendoDraggable")&&t.groupContainer.data("kendoDraggable").destroy(),t.options.draggable||t.draggable.destroy(),t.dataSource&&t._refreshHandler&&(t.dataSource.unbind("change",t._refreshHandler),t._refreshHandler=null),t.groupContainer=t.element=t.draggable=null},events:["change"],options:{name:"Groupable",filter:"th",draggableElements:"th",messages:{empty:"Drag a column header and drop it here to group by that column"}},indicator:function(e){var r=t(".k-group-indicator",this.groupContainer);return t.grep(r,function(r){return t(r).attr(a.attr("field"))===e})[0]},buildIndicator:function(t,e,r){return g({field:t.replace(/"/g,"'"),dir:r,title:e,ns:a.ns})},descriptors:function(){var e,r,n,i,o,d=this,s=t(".k-group-indicator",d.groupContainer);return e=d.element.find(d.options.filter).map(function(){var e=t(this),n=e.attr(a.attr("aggregates")),d=e.attr(a.attr("field"));if(n&&""!==n)for(r=n.split(","),n=[],i=0,o=r.length;i<o;i++)n.push({field:d,aggregate:r[i]});return n}).toArray(),t.map(s,function(r){return r=t(r),n=r.attr(a.attr("field")),{field:n,dir:r.attr(a.attr("dir")),aggregates:e||[]}})},_removeIndicator:function(t){var e=this;t.remove(),e._invalidateGroupContainer(),e._change()},_change:function(){var t,r=this;if(r.dataSource){if(t=r.descriptors(),r.trigger("change",{groups:t}))return r.refresh(),e;r.dataSource.group(t)}},_dropCuePosition:function(e){var r,a,n,o,s,l=this._dropCuePositions;if(u.is(":visible")&&0!==l.length)return e=Math.ceil(e),r=l[l.length-1],a=r.left,n=r.right,o=parseInt(r.element.css("marginLeft"),10),s=parseInt(r.element.css("marginRight"),10),e>=n&&!d||e<a&&d?e={left:r.element.position().left+(d?-o:i(r.element)+s),element:r.element,before:!1}:(e=t.grep(l,function(t){return t.left<=e&&e<=t.right||d&&e>t.right})[0],e&&(e={left:d?e.element.position().left+i(e.element)+s:e.element.position().left-o,element:e.element,before:!0})),e},_drag:function(t){var e=this._dropCuePosition(t.x.location);e&&u.css({left:e.left,right:"auto"})},_canDrag:function(t){var e=t.attr(a.attr("field"));return"false"!=t.attr(a.attr("groupable"))&&e&&(t.hasClass("k-group-indicator")||!this.indicator(e))},_canDrop:function(t,e,r){var a=t.next(),n=t[0]!==e[0]&&(!a[0]||e[0]!==a[0]||!d&&r>a.position().left||d&&r<a.position().left);return n},_dragEnd:function(e){var r=this,n=e.currentTarget.attr(a.attr("field")),i=r.indicator(n);e!==r.options.draggable&&!e.dropped&&i&&r._removeIndicator(t(i)),r._dragCancel()},_dragCancel:function(){u.remove(),this._dropCuePositions=[]},_intializePositions:function(){var e,r=this,n=t(".k-group-indicator",r.groupContainer);r._dropCuePositions=t.map(n,function(r){return r=t(r),e=a.getOffset(r).left,{left:parseInt(e,10),right:parseInt(e+i(r),10),element:r}})},_invalidateGroupContainer:function(){var t=this.groupContainer;t&&t.is(":empty")&&t.html(this.options.messages.empty)}});a.ui.plugin(p)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,r){(r||e)()});
  //# sourceMappingURL=kendo.groupable.min.js.map
  