/*! For license information please see dll.SolutionButton.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[133],{2864:function(t,e,o){"use strict";o.r(e);var n=o(967),i=o(2865);n.default.addResources("de","components",i.DE),n.default.addResources("en","components",i.EN),n.default.addResources("es","components",i.ES)},2865:function(t){t.exports=JSON.parse('{"DE":{"show-solution":"Lösung anzeigen","hide-solution":"Lösung ausblenden","solution-available-tooltip":"Lösung wird verfügbar, nachdem die Antwort eingereicht wurde","solution-available-tooltip-hints":"und alle Hinweise angefordert wurden"},"EN":{"show-solution":"Show Solution","hide-solution":"Hide Solution","solution-available-tooltip":"Solution becomes available after answer is submitted","solution-available-tooltip-hints":"and all hints have been requested"},"ES":{"show-solution":"Mostrar la solución","hide-solution":"Solución de ocultamiento","solution-available-tooltip":"La solución está disponible después de presentar la respuesta","solution-available-tooltip-hints":"y se han pedido todas las pistas"}}')},887:function(t,e,o){"use strict";o.r(e);var n=o(14),i=o.n(n),s=o(12),a=o.n(s),l=o(10),r=o.n(l),u=o(15),c=o.n(u),d=o(16),p=o.n(d),h=o(8),f=o.n(h),b=o(7),v=o.n(b),w=o(0),m=o.n(w),y=o(1),S=o.n(y),E=o(2297),g=o(75),k=o(212),R=o(89);o(2864);function C(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 o,n=f()(t);if(e){var i=f()(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return p()(this,o)}}var H=function(t){c()(o,t);var e=C(o);function o(t){var n;return i()(this,o),n=e.call(this,t),v()(r()(n),"handleClick",(function(){n.setState({showSolution:!n.state.showSolution}),n.props.onClick()})),n.state={showSolution:!1},n}return a()(o,[{key:"render",value:function(){var t=m.a.createElement(k.default,{id:"tooltip"},this.props.t("solution-available-tooltip"),this.props.hasHints?this.props.t("solution-available-tooltip-hints"):null,".");return this.props.disabled?m.a.createElement(R.default,{placement:"top",positionLeft:100,overlay:t,rootClose:!0},m.a.createElement("div",{style:{display:"inline-block"}},m.a.createElement(g.default,{className:"solution-button",variant:"warning",size:"sm",disabled:!0,style:{pointerEvents:"none"}},this.props.t("show-solution")))):m.a.createElement("div",{style:{display:"inline-block"}},m.a.createElement(g.default,{className:"solution-button",variant:"warning",size:"sm",onClick:this.handleClick},this.state.showSolution?this.props.t("hide-solution"):this.props.t("show-solution")))}}]),o}(w.Component);H.propTypes={disabled:S.a.bool.isRequired,hasHints:S.a.bool,onClick:S.a.func.isRequired},H.defaultProps={hasHints:!0},e.default=Object(E.withTranslation)()(H)}}]);