/** * Kendo UI v2018.1.117 (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.tabstrip.min",["kendo.data.min"],t)}(function(){return function(t,e){function n(e){e.children(_).addClass(S),e.children("a").addClass(y).children(_).addClass(S),e.filter(":not([disabled]):not([class*=k-state-disabled])").addClass(N),e.filter("li[disabled]").addClass(H).attr("aria-disabled","true").removeAttr("disabled"),e.filter(":not([class*=k-state])").children("a").filter(":focus").parent().addClass(L+" "+z),e.attr("role","tab"),e.filter("."+L).attr("aria-selected",!0),e.each(function(){var e=t(this);e.children("."+y).length||e.contents().filter(function(){return!(this.nodeName.match(g)||3==this.nodeType&&!d(this.nodeValue))}).wrapAll("")})}function r(t){var e=t.children(".k-item");e.filter(".k-first:not(:first-child)").removeClass(E),e.filter(".k-last:not(:last-child)").removeClass(G),e.filter(":first-child").addClass(E),e.filter(":last-child").addClass(G)}function a(t,e){return""}var i=window.kendo,s=i.ui,o=i.keys,l=t.map,c=t.each,d=t.trim,p=t.extend,u=i.isFunction,f=i.template,h=i._outerWidth,m=i._outerHeight,b=s.Widget,g=/^(a|div)$/i,v=".kendoTabStrip",_="img",k="href",w="prev",C="next",x="show",y="k-link",G="k-last",U="click",T="error",A=":empty",S="k-image",E="k-first",I="select",P="activate",R="k-content",B="contentUrl",W="mouseenter",D="mouseleave",F="contentLoad",H="k-state-disabled",N="k-state-default",L="k-state-active",q="k-state-focused",M="k-state-hover",z="k-tab-on-top",O=".k-item:not(."+H+")",j=".k-item",Q=".k-tabstrip-items > "+O+":not(."+L+")",V=200,X={content:f("
#= content(item) #
"),itemWrapper:f("<#= tag(item) # class='k-link'#= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) #"),item:f(""),image:f(""),sprite:f(""),empty:f("")},J={wrapperCssClass:function(t,e){var n="k-item",r=e.index;return n+=e.enabled===!1?" k-state-disabled":" k-state-default",0===r&&(n+=" k-first"),r==t.length-1&&(n+=" k-last"),n},textAttributes:function(t){return t.url?" href='"+t.url+"'":""},text:function(t){return t.encoded===!1?t.text:i.htmlEncode(t.text)},tag:function(t){return t.url?"a":"span"},contentAttributes:function(t){return t.active!==!0?" style='display:none' aria-hidden='true' aria-expanded='false'":""},content:function(t){return t.content?t.content:t.contentUrl?"":" "},contentUrl:function(t){return t.contentUrl?i.attr("content-url")+'="'+t.contentUrl+'"':""}},$=b.extend({init:function(e,n){var r,a,s,o=this;b.fn.init.call(o,e,n),o._animations(o.options),n=o.options,o._contentUrls=n.contentUrls||[],o._wrapper(),o._isRtl=i.support.isRtl(o.wrapper),o._tabindex(),o._updateClasses(),o._dataSource(),n.dataSource&&o.dataSource.fetch(),o._tabPosition(),o._scrollable(),o._contentUrls.length?o.wrapper.find(".k-tabstrip-items > .k-item").each(function(e,n){var r=o._contentUrls[e];"string"==typeof r&&t(n).find(">."+y).data(B,r)}):o._contentUrls.length=o.tabGroup.find("li.k-item").length,o.wrapper.on(W+v+" "+D+v,Q,o._toggleHover).on("focus"+v,t.proxy(o._active,o)).on("blur"+v,function(){o._current(null)}),o._keyDownProxy=t.proxy(o._keydown,o),n.navigatable&&o.wrapper.on("keydown"+v,o._keyDownProxy),o.options.value&&(r=o.options.value),o.wrapper.children(".k-tabstrip-items").on(U+v,".k-state-disabled .k-link",!1).on(U+v," > "+O,function(e){var n,r=o.wrapper[0];if(r!==document.activeElement)if(n=i.support.browser.msie)try{r.setActive()}catch(a){r.focus()}else r.focus();o._click(t(e.currentTarget))&&e.preventDefault()}),a=o.tabGroup.children("li."+L),s=o.contentHolder(a.index()),a[0]&&s.length>0&&0===s[0].childNodes.length&&o.activateTab(a.eq(0)),o.element.attr("role","tablist"),o.element[0].id&&(o._ariaId=o.element[0].id+"_ts_active"),o.value(r),i.notify(o)},_active:function(){var t=this.tabGroup.children().filter("."+L);t=t[0]?t:this._endItem("first"),t[0]&&this._current(t)},_endItem:function(t){return this.tabGroup.children(O)[t]()},_getItem:function(t){return this.tabGroup.children(j)[t]()},_item:function(t,e){var n;return n=e===w?"last":"first",t?(t=t[e](),t[0]||(t=this.tabGroup.children(j)[n]()),t.hasClass(H)&&t.addClass(q),(t.hasClass(H)||t.hasClass(L))&&(this._focused=t),t):this._endItem(n)},_current:function(t){var n=this,r=n._focused,a=n._ariaId;return t===e?r:(r&&(n.tabGroup.children("#"+a).removeAttr("id"),r.removeClass(q)),t&&(t.hasClass(L)||t.addClass(q),n.element.removeAttr("aria-activedescendant"),a=t[0].id||a,a&&(t.attr("id",a),n.element.attr("aria-activedescendant",a))),n._focused=t,e)},_keydown:function(t){var n,r=this,a=t.keyCode,i=r._current(),s=r._isRtl,l=/top|bottom/.test(r.options.tabPosition);if(t.target==t.currentTarget){if(a!==o.DOWN||l)if(a!==o.UP||l)if(a===o.RIGHT&&l)n=s?w:C;else if(a===o.LEFT&&l)n=s?C:w;else if(a==o.ENTER||a==o.SPACEBAR)r._click(i),t.preventDefault();else{if(a==o.HOME)return r._click(r._getItem("first")),t.preventDefault(),e;if(a==o.END)return r._click(r._getItem("last")),t.preventDefault(),e}else n=w;else n=C;n&&(r._click(r._item(i,n)),t.preventDefault())}},_dataSource:function(){var e=this;e.dataSource&&e._refreshHandler?e.dataSource.unbind("change",e._refreshHandler):e._refreshHandler=t.proxy(e.refresh,e),e.dataSource=i.data.DataSource.create(e.options.dataSource).bind("change",e._refreshHandler)},setDataSource:function(t){var e=this;e.options.dataSource=t,e._dataSource(),e.dataSource.fetch()},_animations:function(t){t&&"animation"in t&&!t.animation&&(t.animation={open:{effects:{}},close:{effects:{}}})},refresh:function(t){var e,n,r,a,s=this,o=s.options,l=i.getter(o.dataEncodedField),c=i.getter(o.dataTextField),d=i.getter(o.dataContentField),p=i.getter(o.dataContentUrlField),u=i.getter(o.dataImageUrlField),f=i.getter(o.dataUrlField),h=i.getter(o.dataSpriteCssClass),m=[],b=s.dataSource.view();for(t=t||{},r=t.action,r&&(b=t.items),e=0,a=b.length;e");a=a.add(s)}),n(r)),{tabs:r,contents:a,newTabsCreated:c}},_toggleDisabled:function(e,n){e=this.tabGroup.find(e),e.each(function(){t(this).toggleClass(N,n).toggleClass(H,!n).attr("aria-disabled",!n)})},_updateClasses:function(){var a,i,s,o=this;o.wrapper.addClass("k-widget k-header k-tabstrip"),o.tabGroup=o.wrapper.children("ul").addClass("k-tabstrip-items k-reset"),o.tabGroup[0]||(o.tabGroup=t("