define("bundles/programming/components/Footer",["require","exports","module","react-with-addons","bundles/content-feedback/components/ItemFeedback","bundles/content-feedback/constants/ItemTypes","css!./__styles__/Footer"],function(require,exports,module){"use strict";function _defaults(e,o){for(var a=Object.getOwnPropertyNames(o),t=0;t<a.length;t++){var r=a[t],n=Object.getOwnPropertyDescriptor(o,r);n&&n.configurable&&void 0===e[r]&&Object.defineProperty(e,r,n)}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):_defaults(t,e))}var r=function(){function defineProperties(n,r){for(var t=0;t<r.length;t++){var e=r[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}return function(e,t,r){return t&&defineProperties(e.prototype,t),r&&defineProperties(e,r),e}}(),n=function get(a,s,p){var r=!0;e:for(;r;){var t=a,i=s,c=p;r=!1,null===t&&(t=Function.prototype);var e=Object.getOwnPropertyDescriptor(t,i);if(void 0===e){var n=Object.getPrototypeOf(t);if(null===n)return void 0;a=n,s=i,p=c,r=!0,e=n=void 0;continue e}if("value"in e)return e.value;var o=e.get;if(void 0===o)return void 0;return o.call(c)}},e=require("react-with-addons"),t=require("bundles/content-feedback/components/ItemFeedback"),a=require("bundles/content-feedback/constants/ItemTypes");require("css!./__styles__/Footer");var o=function(o){function Footer(){_classCallCheck(this,Footer),n(Object.getPrototypeOf(Footer.prototype),"constructor",this).apply(this,arguments)}return _inherits(Footer,o),r(Footer,[{key:"render",value:function render(){if(!t.shouldShow()||"programming"===this.props.itemMetadata.getTypeName())return null;return e.createElement("div",{className:"feedback-bottom-bar"},e.createElement(t,{itemType:this.props.feedbackItemType,itemMetadata:this.props.itemMetadata,itemId:this.props.itemMetadata.getId(),tooltipPlacement:"right"}))}}],[{key:"propTypes",value:{itemMetadata:e.PropTypes.object.isRequired,feedbackItemType:e.PropTypes.string},enumerable:!0}]),Footer}(e.Component);module.exports=o});