/*! For license information please see dll.QuestionForm.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[108],{1024:function(e,t,n){"use strict";e.exports=function(e){return null===e}},1080:function(e,t,n){"use strict";n.r(t);var r=n(5),o=n(11),a=n(1),s=n.n(a),i=n(0),u=n.n(i),l=n(12),c=n.n(l),f={label:s.a.string.isRequired,onClick:s.a.func},d=u.a.forwardRef((function(e,t){var n=e.label,a=e.onClick,s=e.className,i=Object(o.default)(e,["label","onClick","className"]);return u.a.createElement("button",Object(r.default)({ref:t,type:"button",className:c()("close",s),onClick:a},i),u.a.createElement("span",{"aria-hidden":"true"},"×"),u.a.createElement("span",{className:"sr-only"},n))}));d.displayName="CloseButton",d.propTypes=f,d.defaultProps={label:"Close"},t.default=d},2926:function(e,t,n){"use strict";n.r(t);var r=n(141),o=n.n(r);t.default=function(e){return o()(e)&&e.props&&e.props.tagName&&e.props.startColumn&&e.props.endColumn&&e.props.startLineNumber&&e.props.endLineNumber}},2927:function(e,t,n){"use strict";n.r(t);var r=n(965),o=n(2928);r.default.addResources("de","question-form",o.DE),r.default.addResources("en","question-form",o.EN),r.default.addResources("es","question-form",o.ES)},2928:function(e){e.exports=JSON.parse('{"DE":{"submit":"Abschicken","missing-children":"Für das Frageformular müssen mindestens zwei Kind-Elemente gerendert werden."},"EN":{"submit":"Submit","missing-children":"The question form requires at least two child elements to be rendered."},"ES":{}}')},2929:function(e,t,n){"use strict";n.r(t);var r=n(22),o=n.n(r),a=n(2930),s={insert:"head",singleton:!1};o()(a.default,s);t.default=a.default.locals||{}},2930:function(e,t,n){"use strict";n.r(t);var r=n(23),o=n.n(r)()(!1);o.push([e.i,".question-form .submit-button {\n\tdisplay: none;\n}\n\n.question-form {\n\tborder: 1px solid rgba(92, 92, 92, 0.6);\n\tpadding: 2px;\n}\n",""]),t.default=o},913:function(e,t,n){"use strict";n.r(t);var r=n(7),o=n.n(r),a=n(202),s=n.n(a),i=n(0),u=n.n(i),l=n(1),c=n.n(l),f=n(36),d=n.n(f),p=n(2309),b=n(1015),m=n(77),g=n(997),O=n.n(g),h=n(37),v=n(2926);n(2927),n(2929);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var w=d()("isle:question-form"),E=function(e){var t,n=e.buttonLabel,r=e.onSubmit,a=e.children,l=e.t,c=Object(i.useContext)(h.default),f=Object(i.useState)({}),d=s()(f,2),p=d[0],g=d[1];if(!a)return u.a.createElement(b.default,{variant:"danger"},l("missing-children"));var E=function(e,t){return u.a.cloneElement(e,{disableSubmitNotification:!0,onChange:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},p);e[t]=!0,g(e)},key:t})},j=u.a.Children.map(a,(function(e,t){return O()(e)?e:Object(v.default)(e)?(w("Encountered a line wrapper, go one level deeper..."),u.a.cloneElement(e,{children:E(e.props.children,t),key:t})):E(e,t)})),N=0;for(var C in p)p[C]&&(N+=1);var k=N!==j.length&&!c.isOwner();return u.a.createElement("div",{ref:function(e){t=e},className:"question-form"},j,u.a.createElement(m.default,{disabled:k,onClick:function(){for(var e=t.getElementsByClassName("submit-button"),n=0;n<e.length;n++)e[n].click();r()},style:{float:"right"}},n||l("submit")))};E.propTypes={buttonLabel:c.a.string,onSubmit:c.a.func},E.defaultProps={buttonLabel:null,onSubmit:function(){}},t.default=Object(p.withTranslation)("question-form")(E)},997:function(e,t,n){"use strict";var r=n(1024);e.exports=r}}]);