(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{1752:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return y});n(10),n(9),n(24);var o=n(564),a=n.n(o),r=n(8),i=n.n(r),c=n(17),u=n.n(c),s=n(161);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var y=function(e){function t(e){var n,o,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=this,(n=!(a=f(t).call(this,e))||"object"!==l(a)&&"function"!=typeof a?d(o):a).handleClick=n.handleClick.bind(d(d(n))),n}var n,o,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,u.a.Component),n=t,(o=[{key:"handleClick",value:function(e,t){t.preventDefault(),this.props.updateTab(e.name),a()(t.target).closest(".settings-modal").addClass("display--content")}},{key:"componentDidMount",value:function(){s.e()&&a()(".settings-modal .settings-table .nav").addClass("position--top")}},{key:"render",value:function(){var e=this,t=this.props.tabs.map(function(t){var n="".concat(t.name,"_li"),o="";return e.props.activeTab===t.name&&(o="active"),u.a.createElement("li",{id:"".concat(t.name,"Li"),key:n,className:o},u.a.createElement("button",{id:"".concat(t.name,"Button"),className:"cursor--pointer style--none",onClick:e.handleClick.bind(null,t)},u.a.createElement("i",{className:t.icon,title:t.iconTitle}),t.uiName))});return u.a.createElement("div",null,u.a.createElement("ul",{id:"tabList",className:"nav nav-pills nav-stacked"},t))}}])&&p(n.prototype,o),r&&p(n,r),t}();y.propTypes={tabs:i.a.arrayOf(i.a.shape({name:i.a.string.isRequired,uiName:i.a.string.isRequired,icon:i.a.string.isRequired})).isRequired,activeTab:i.a.string,updateTab:i.a.func.isRequired}}}]);
//# sourceMappingURL=32.719878f2c9ee8b98c38c.js.map