text: !function(e){function n(i){if(t[i])return t[i].exports;var o=t[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,n,t){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var o=t(1),s=i(o);!function(e){var n=new s.default;e(window).on("load",function(){n.initialize()}).on("scroll",function(){n.updateTableSections()}).on("resize",function(){n.setSidebarHeight(),n.updateRowWidths()})}(jQuery)},function(e,n){"use strict";function t(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(n,t,i){return t&&e(n.prototype,t),i&&e(n,i),n}}(),o=function(){function e(){t(this,e)}return i(e,[{key:"initialize",value:function(){this.setSidebarHeight(),this.setDisabled(),this.sidebarToggle(),this.sidebarParentMenu(),this.userMenu(),this.tab(),this.flashMsgClose(),this.dropdown(),this.appendTableSection()}},{key:"setSidebarHeight",value:function(){var e=$(window).height(),n=$(".js-headbar").height(),t=e-n;$(".js-scroll-wrap").height(t)}},{key:"setDisabled",value:function(){var e=$("input:disabled");e.parent("label").addClass("disabled")}},{key:"sidebarToggle",value:function(){var e=$(".js-head-toggle"),n="is-sidebar-open",t=$("body");e.on("click",function(){t.hasClass(n)?t.removeClass(n):t.addClass(n)})}},{key:"sidebarParentMenu",value:function(){var e=$(".js-side-parent"),n=$(".child-menu"),t="is-open";e.on("click",function(e){var i=$(e.currentTarget);i.hasClass(t)?i.next(n).slideUp("fast",function(){i.removeClass(t)}):i.next(n).slideDown("fast",function(){i.addClass(t)})})}},{key:"userMenu",value:function(){var e="is-open",n=$(".js-dropdown"),t=!1,i=$("body");n.on("click",function(n){var t=$(n.currentTarget);t.hasClass(e)?t.removeClass(e):t.addClass(e)}).on("mouseenter",function(){t=!0}).on("mouseleave",function(){t=!1}),i.on("click",function(){t===!1&&n.removeClass(e)})}},{key:"tab",value:function(){var e=$(".js-tab-pane"),n=$(".js-tab"),t="is-active";n.on("click",function(i){var o=$(i.currentTarget),s=o.attr("href");return e.hide(),$(s).show(),n.parent().removeClass(t),o.parent().addClass(t),!1})}},{key:"flashMsgClose",value:function(){var e=$(".js-flmsg-close");e.on("click",function(e){var n=$(e.currentTarget),t=n.parents(".flash-msg");t.fadeOut()})}},{key:"dropdown",value:function(){var e=$(".js-dropdown-toggle"),n=$(".dropdown-group"),t="is-open",i=!1,o=$("body");e.on("click",function(e){var i=$(e.currentTarget),o=i.parent(".dropdown-group");o.hasClass(t)?o.removeClass(t):(n.removeClass(t),o.addClass(t))}).on("mouseenter",function(){i=!0}).on("mouseleave",function(){i=!1}),o.on("click",function(){i===!1&&n.removeClass(t)})}},{key:"updateTableSections",value:function(){$(".ts-table-section").each(function(e,n){var t=60,i=$(n),o=$(n).offset(),s=$(window).scrollTop()+t,a=i.find(".ts-row-section"),r=i.find(".ts-row-fixed");a.each(function(e,n){var c=$(n),u=c.offset(),d=e+1===a.length?o.top+i.height():$(a[e+1]).offset().top,l=void 0;s>u.top&&s<d?(l=Math.max(0,s-(d-c.height())),$(r[e]).css("visibility","visible").css("top",t-l)):$(r[e]).css("visibility","hidden")})})}},{key:"updateRowWidths",value:function(){$(".ts-table-section").each(function(e,n){var t=$(n),i=t.find(".ts-row-section"),o=t.find(".ts-row-fixed");i.each(function(e,n){var t=$(n).find("th,td");$(o[e]).find("th,td").each(function(e,n){$(n).width($(t[e]).width()).height($(t[e]).height())})})})}},{key:"appendTableSection",value:function(){var e=60;$(".ts-table-section").each(function(n,t){$(t).find(".ts-row-section").each(function(n,t){var i=$(t),o=i.clone().removeClass("ts-row-section").addClass("ts-row-fixed").css("top",e).appendTo(i.parent()),s=i.find("th,td");$(o).find("th,td").each(function(e,n){$(n).width($(s[e]).width()).height($(s[e]).height())})}),$("<tr></tr>").css({position:"fixed",visibility:"hidden"}).appendTo(t)})}}]),e}();n.default=o}]);