/*! For license information please see dll.SolutionButton.js.LICENSE.txt */
(window.webpackJsonp_name_hash_=window.webpackJsonp_name_hash_||[]).push([[104],{992:function(t,e,n){"use strict";n.r(e);var o=n(13),a=n.n(o),i=n(12),s=n.n(i),l=n(7),r=n.n(l),u=n(14),c=n.n(u),f=n(15),d=n.n(f),h=n(8),p=n.n(h),m=n(5),v=n.n(m),b=n(0),w=n.n(b),y=n(1),S=n.n(y),k=n(26),C=n(167),E=n(73);function R(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=p()(t);if(e){var a=p()(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return d()(this,n)}}var _=function(t){c()(n,t);var e=R(n);function n(t){var o;return a()(this,n),o=e.call(this,t),v()(r()(o),"handleClick",(function(){o.setState({showSolution:!o.state.showSolution}),o.props.onClick()})),o.state={showSolution:!1},o}return s()(n,[{key:"render",value:function(){var t=w.a.createElement(C.default,{id:"tooltip"},"Solution becomes available after answer is submitted",this.props.hasHints?"and all hints have been requested.":".");return this.props.disabled?w.a.createElement(E.default,{placement:"top",positionLeft:100,overlay:t,rootClose:!0},w.a.createElement("div",{style:{display:"inline-block"}},w.a.createElement(k.default,{className:"solution-button",variant:"warning",size:"sm",disabled:!0,style:{pointerEvents:"none"}},"Show Solution"))):w.a.createElement("div",{style:{display:"inline-block"}},w.a.createElement(k.default,{className:"solution-button",variant:"warning",size:"sm",onClick:this.handleClick},this.state.showSolution?"Hide Solution":"Show Solution"))}}]),n}(b.Component);_.propTypes={disabled:S.a.bool.isRequired,hasHints:S.a.bool,onClick:S.a.func.isRequired},_.defaultProps={hasHints:!0},e.default=_}}]);