/*! For license information please see dll.QuestionForm.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[97],{1027:function(t,e,n){"use strict";t.exports=function(t){return null===t}},3232:function(t,e,n){"use strict";n.r(e);var r=n(986),s=n(3233);r.default.addResources("de","question-form",s.DE),r.default.addResources("en","question-form",s.EN),r.default.addResources("es","question-form",s.ES)},3233:function(t){t.exports=JSON.parse('{"DE":{"submit":"Abschicken"},"EN":{"submit":"Submit"},"ES":{}}')},3234:function(t,e,n){var r=n(57),s=n(3235);"string"==typeof(s=s.__esModule?s.default:s)&&(s=[[t.i,s,""]]);var o={insert:"head",singleton:!1};r(s,o);t.exports=s.locals||{}},3235:function(t,e,n){(e=n(58)(!1)).push([t.i,".question-form .submit-button {\n\tdisplay: none;\n}\n",""]),t.exports=e},916:function(t,e,n){"use strict";n.r(e);var r=n(14),s=n.n(r),o=n(13),i=n.n(o),u=n(11),a=n.n(u),c=n(15),l=n.n(c),f=n(16),d=n.n(f),p=n(8),m=n.n(p),h=n(7),b=n.n(h),v=n(0),w=n.n(v),y=n(1),E=n.n(y),S=n(3611),k=n(104),q=n(996),g=n.n(q),x=n(34);n(3232),n(3234);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,r=m()(t);if(e){var s=m()(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return d()(this,n)}}var C=function(t){l()(n,t);var e=R(n);function n(t){var r;return s()(this,n),r=e.call(this,t),b()(a()(r),"handleClick",(function(){for(var t=r.questionForm.getElementsByClassName("submit-button"),e=0;e<t.length;e++)t[e].click();r.props.onSubmit()})),r.state={answered:{}},r}return i()(n,[{key:"render",value:function(){var t=this,e=w.a.Children.map(this.props.children,(function(e,n){return g()(e)?e:(e.props.requireAnswer||(t.state.answered[n]=!0),w.a.cloneElement(e,{disableSubmitNotification:!0,onChange:function(){var e=t.state.answered;e[n]=!0,t.setState(e)},key:n}))})),n=0;for(var r in this.state.answered)this.state.answered[r]&&(n+=1);var s=this.context,o=n!==e.length&&!s.isOwner();return w.a.createElement("div",{ref:function(e){t.questionForm=e},className:"question-form"},e,w.a.createElement(k.default,{disabled:o,onClick:this.handleClick},this.props.buttonLabel||this.props.t("submit")))}}]),n}(v.Component);C.propTypes={buttonLabel:E.a.string,onSubmit:E.a.func},C.defaultProps={buttonLabel:null,onSubmit:function(){}},C.contextType=x.default,e.default=Object(S.withTranslation)("question-form")(C)},996:function(t,e,n){"use strict";var r=n(1027);t.exports=r}}]);