text: !function(t){var n;n={init:function(a,i){var e;e=n.getForm(i.current,i.count,i.name),i.radioContainer=a[0],t(a[0]).html('<div class="simple-pagination"></div>'+e),t(a[0]).find("input[type=radio][name="+i.name+"]").change(function(){var e;e=parseInt(t(this).filter(":checked").val()),i.current=e,n.render(a[0],i)}),n.render(a[0],i)},render:function(a,i){var e,r;e=n.generate(i.current,i.count),r=n.getTemplate(e,i.current,i.count,i.name),t(a).find(".simple-pagination").html(r),n.binding(a,i),t(i.mirrorContainer).length&&(t(i.mirrorContainer).html('<div class="simple-pagination">'+r+"</div>"),n.binding(i.mirrorContainer,i))},binding:function(n,a){var i,e;e=".simple-pagination__select",i="simple-pagination__select--active",t(n).find("[data-action=pagination-spred]").click(function(){var n;n=t(this).next(),n.hasClass(i)?n.removeClass(i):(t(e).removeClass(i),n.addClass(i),n.find(".simple-pagination-select").scrollTop(0))}),t(document).click(function(n){n.target.closest(e)||n.target.closest("[data-action=pagination-spred]")||t(e).removeClass(i)}),t(n).find("[data-action=pagination-page]").click(function(){var n;n=parseInt(t(this).data("page")),t(this).hasClass("simple-pagination__button--disable")||(t(a.radioContainer).find("input[value="+n+"]").prop("checked",!0).change(),a.current=n)})},getForm:function(t,n,a){var i,e,r;for(e='<div class="simple-pagination-radio">',r=1;r<=n;)i=r===t?" checked":"",e+='<input type="radio" name="'+a+'" value="'+r+'"'+i+">",r++;return e},generate:function(t,n){var a,i,e,r,o,s,p;for(p=1,s=[],r=[],a=1;a<=n;)(1===a||a===n||a>=t-p&&a<t+p+1)&&s.push(a),a++;for(i=0,e=s.length;i<e;i++)a=s[i],o&&(a-o==2?r.push(o+1):a-o!=1&&r.push("...")),r.push(a),o=a;return r},getTemplate:function(t,a,i,e){var r,o;for(o=n.getNavigationTemplate("left",a,i),r=0;r<t.length;)"..."!==t[r]?o+=n.getButtonTemplate(e,t[r],t[r]===a):o+=n.getSpredTemplate(t[r-1],t[r+1],e),r++;return o+=n.getNavigationTemplate("right",a,i)},getNavigationTemplate:function(t,n,a){var i,e,r;return e=n,i="",r="",("left"===t&&e<=1||"right"===t&&e>=a)&&(i=" simple-pagination__button--disable"),"left"===t&&(e>1&&(e-=1),r="&larr;"),"right"===t&&(e<a&&(e+=1),r="&rarr;"),'<button class="simple-pagination__button'+i+'" type="button" data-action="pagination-page" data-page="'+e+'">'+r+"</button>"},getButtonTemplate:function(t,n,a){return'<button class="simple-pagination__button'+(a?" simple-pagination__button--disable":"")+'" type="button" data-action="pagination-page" data-page="'+n+'">'+n+"</button>"},getSpredTemplate:function(t,n,a){var i,e;for(e='<div class="simple-pagination__spred"><button class="simple-pagination__button" type="button" data-action="pagination-spred">...</button><div class="simple-pagination__select"><div class="simple-pagination-select">',i=t;i<=n;)i!==t&&i!==n&&(e+='<div class="simple-pagination-select__item"><button class="simple-pagination__button" type="button" data-action="pagination-page" data-page="'+i+'">'+i+"</button></div>"),i++;return e+="</div></div></div>"}},jQuery.fn.simplePagination=function(a){var i;return i=this,a=t.extend({current:1,count:14,name:"pagination",mirrorContainer:""},a),n.init(this,a),{setNextPage:function(){a.current<a.count&&(a.current=a.current+1,n.init(i,a))},setPrevPage:function(){a.current>1&&(a.current=a.current-1,n.init(i,a))},setPage:function(t){t>=1&&t<=a.count&&(a.current=t,n.init(i,a))}}}}(jQuery);
  //# sourceMappingURL=../maps/jquery.simple-pagination.min.js.map
  