text: /*
  * Kendo UI Complete v2013.2.918 (http://kendoui.com)
  * Copyright 2013 Telerik AD. All rights reserved.
  *
  * Kendo UI Complete commercial licenses may be obtained at
  * https://www.kendoui.com/purchase/license-agreement/kendo-ui-complete-commercial.aspx
  * If you do not own a commercial license, this file shall be governed by the trial license terms.
  */
  !function(define){return define(["./kendo.data.min"],function(){!function(e,n){var r=window.kendo,t=e.proxy,a="dir",i="asc",o="single",d="field",l="desc",c=".kendoSortable",s=".k-link",f="aria-sort",u=r.ui.Widget,p=u.extend({init:function(e,n){var r,a=this;u.fn.init.call(a,e,n),a._refreshHandler=t(a.refresh,a),a.dataSource=a.options.dataSource.bind("change",a._refreshHandler),r=a.element.find(s),r[0]||(r=a.element.wrapInner('<a class="k-link" href="#"/>').find(s)),a.link=r,a.element.on("click"+c,t(a._click,a))},options:{name:"Sortable",mode:o,allowUnsort:!0,compare:null},destroy:function(){var e=this;u.fn.destroy.call(e),e.element.off(c),e.dataSource.unbind("change",e._refreshHandler)},refresh:function(){var n,t,o,c,s=this,u=s.dataSource.sort()||[],p=s.element,k=p.attr(r.attr(d));for(p.removeAttr(r.attr(a)),p.removeAttr(f),n=0,t=u.length;t>n;n++)o=u[n],k==o.field&&p.attr(r.attr(a),o.dir);c=p.attr(r.attr(a)),p.find(".k-i-arrow-n,.k-i-arrow-s").remove(),c===i?(e('<span class="k-icon k-i-arrow-n" />').appendTo(s.link),p.attr(f,"ascending")):c===l&&(e('<span class="k-icon k-i-arrow-s" />').appendTo(s.link),p.attr(f,"descending"))},_click:function(e){var t,c,s=this,f=s.element,u=f.attr(r.attr(d)),p=f.attr(r.attr(a)),k=s.options,m=s.options.compare,h=s.dataSource.sort()||[];if(p=p===i?l:p===l&&k.allowUnsort?n:i,k.mode===o)h=[{field:u,dir:p,compare:m}];else if("multiple"===k.mode){for(t=0,c=h.length;c>t;t++)if(h[t].field===u){h.splice(t,1);break}h.push({field:u,dir:p,compare:m})}e.preventDefault(),s.dataSource.sort(h)}});r.ui.plugin(p)}(window.kendo.jQuery)})}("function"==typeof define&&define.amd?define:function(e,n){return n()});