/* * Kendo UI Complete v2013.3.1119 (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,t){function a(e,t,a,n){return e({idx:t,text:a,ns:p.ns,numeric:n})}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,m,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,d=p.ui,f=d.Widget,g=e.proxy,m=".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=f.extend({init:function(t,a){var s,d,w=this;f.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(),d=w.totalPages(),w._refreshHandler=g(w.refresh,w),w.dataSource.bind(k,w._refreshHandler),a.previousNext&&(w.element.find(m).length||(w.element.append(n(m,a.messages.first,"k-pager-first")),i(w.element,s,d)),w.element.find(c).length||(w.element.append(n(c,a.messages.previous)),r(w.element,s,d))),a.numeric&&(w.list=w.element.find(".k-pager-numbers"),w.list.length||(w.list=e('