webpackJsonp([22],{1901:function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(239),i=n(l),u=a(238),s=n(u),r=a(242),d=n(r),o=a(240),c=n(o),f=a(241),p=n(f),m=a(708),v=n(m),b=a(21),h=n(b),k=a(13),y=n(k),_=a(725),g=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(_),C=function(e){function t(e){(0,s.default)(this,t);var a=(0,c.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return a.handleClick=a.handleClick.bind(a),a}return(0,p.default)(t,e),(0,d.default)(t,[{key:"handleClick",value:function(e,t){t.preventDefault(),this.props.updateTab(e.name),(0,v.default)(t.target).closest(".settings-modal").addClass("display--content")}},{key:"componentDidMount",value:function(){g.isFirefox()&&(0,v.default)(".settings-modal .settings-table .nav").addClass("position--top")}},{key:"render",value:function(){var e=this,t=this.props.tabs.map(function(t){var a=t.name+"_li",n="";return e.props.activeTab===t.name&&(n="active"),y.default.createElement("li",{id:t.name+"Li",key:a,className:n},y.default.createElement("button",{id:t.name+"Button",className:"cursor--pointer style--none",onClick:e.handleClick.bind(null,t)},y.default.createElement("i",{className:t.icon}),t.uiName))});return y.default.createElement("div",null,y.default.createElement("ul",{id:"tabList",className:"nav nav-pills nav-stacked"},t))}}]),t}(y.default.Component);t.default=C,C.propTypes={tabs:h.default.arrayOf(h.default.shape({name:h.default.string.isRequired,uiName:h.default.string.isRequired,icon:h.default.string.isRequired})).isRequired,activeTab:h.default.string,updateTab:h.default.func.isRequired}}});
//# sourceMappingURL=22.3367c81bb466051b34e4.js.map