/* * Kendo UI Complete v2013.3.1324 (http://kendoui.com) * Copyright 2014 Telerik AD. All rights reserved. * * Kendo UI Complete 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(define){return define(["./kendo.data.min"],function(){!function(e,t){function a(e,t,a,n,s){return e({idx:t,text:a,ns:p.ns,numeric:n,title:s||""})}function n(e,t,a){return b({className:e.substring(1),text:t,wrapClassName:a||""})}function s(e,t,a,n){e.find(t).parent().attr(p.attr("page"),a).attr("tabindex",-1).toggleClass("k-state-disabled",n)}function i(e,t){s(e,f,1,1>=t)}function r(e,t){s(e,c,Math.max(1,t-1),1>=t)}function l(e,t,a){s(e,h,Math.min(a,t+1),t>=a)}function o(e,t,a){s(e,u,a,t>=a)}var p=window.kendo,g=p.ui,d=g.Widget,m=e.proxy,f=".k-i-seek-w",u=".k-i-seek-e",c=".k-i-arrow-w",h=".k-i-arrow-e",k="change",S=".kendoPager",x="click",v="keydown",w="disabled",b=p.template('#=text#'),y=d.extend({init:function(t,a){var s,g,w=this;d.fn.init.call(w,t,a),a=w.options,w.dataSource=p.data.DataSource.create(a.dataSource),w.linkTemplate=p.template(w.options.linkTemplate),w.selectTemplate=p.template(w.options.selectTemplate),s=w.page(),g=w.totalPages(),w._refreshHandler=m(w.refresh,w),w.dataSource.bind(k,w._refreshHandler),a.previousNext&&(w.element.find(f).length||(w.element.append(n(f,a.messages.first,"k-pager-first")),i(w.element,s,g)),w.element.find(c).length||(w.element.append(n(c,a.messages.previous)),r(w.element,s,g))),a.numeric&&(w.list=w.element.find(".k-pager-numbers"),w.list.length||(w.list=e('