{:uriI"file:///Users/joel/src/revelry_core/app/assets/javascripts/revelry/ui/tabs/Tabs.js.cjsx?type=application/javascript&pipeline=self&id=e25f8e809b090f1ae0694329f6296b4663fd0c5472ba3daf6bf4532338a9ae54:ET:load_pathI"8/Users/joel/src/revelry_core/app/assets/javascripts;F: filenameI"U/Users/joel/src/revelry_core/app/assets/javascripts/revelry/ui/tabs/Tabs.js.cjsx;T: nameI"revelry/ui/tabs/Tabs;T:logical_pathI"!revelry/ui/tabs/Tabs.self.js;T:content_typeI"application/javascript;T: sourceI" (function() { Rev.registerComponent('StatelessTabs', { getDefaultProps: function() { return { activeKey: null, onChange: function() {} }; }, renderTab: function(child) { var className, key, ref; key = child.key; className = this.classSet({ active: key === this.props.activeKey || key === ((ref = this.getNormalizedChildren()[0]) != null ? ref.key : void 0), 'RevTabs-tab': true }); return React.createElement("dd", { "key": key, "className": className, "onClick": this.handleTabClick(child) }, child.props.tab); }, renderContent: function(child) { var newProps; newProps = { key: child.key }; if (child.key === this.props.activeKey) { newProps.active = true; } return React.addons.cloneWithProps(child, newProps); }, render: function() { var children, dlClassName; children = this.getNormalizedChildren(); dlClassName = this.classSet({ 'RevTabs-tabs': true, tabs: true, vertical: this.props.vertical }); return React.createElement("div", { "className": 'RevTabs' }, React.createElement("dl", { "className": dlClassName }, children.map(this.renderTab)), React.createElement("div", { "className": "RevTabs-content tabs-content" }, children.map(this.renderContent))); }, handleTabClick: function(activeTab) { return (function(_this) { return function(e) { e.preventDefault(); e.stopPropagation(); e.activeTab = activeTab; return _this.props.onChange(e); }; })(this); } }); Rev.registerComponent('Tabs', { getDefaultProps: function() { return { onChange: function() {} }; }, getInitialState: function() { return { activeKey: null }; }, render: function() { return React.createElement(Rev.Components.StatelessTabs, React.__spread({}, this.props, { "activeKey": this.state.activeKey, "onChange": this.handleChange })); }, handleChange: function(e) { this.setState({ activeKey: e.activeTab.key }); return this.onChange(e); } }); }).call(this); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"hprocessors:type=application/javascript&file_type=application/javascript&engines=.cjsx&pipeline=self;TTI"cfile-digest:///Users/joel/src/revelry_core/app/assets/javascripts/revelry/ui/tabs/Tabs.js.cjsx;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%mϠYb%>1[zE: lengthi :integrityI"Xni:///sha-256;z_W_mauTrphto8CXg8-g7VkYYv4lpz4xD1t67x6Yk0U?ct=application/javascript;T:dependencies_digest"%]Bf>QڜAfZN\9*b:idI"Ee25f8e809b090f1ae0694329f6296b4663fd0c5472ba3daf6bf4532338a9ae54;F: mtimel+hU