System.register(["./p-0bfb8721.system.js","./p-cd79aed8.system.js"],(function(e){"use strict";var t,n,i;return{setters:[function(e){t=e.r;n=e.h},function(e){i=e.E}],execute:function(){var s=e("bce_element_input_editor",function(){function e(e){var n=this;t(this,e);this.onAnswer=function(e){if(!e)n.handler.set("hasAnswer",false)};this.onHasAnswer=function(e){if(!e)n.handler.set("answer","",{localize:true})};this.onMultiline=function(e){n.handler.set("hasAnswer",false);n.handler.set("answer","",{localize:true})}}e.prototype.prop=function(e,t){if(t===void 0){t={}}return this.handler.prop(e,Object.assign({},t))};e.prototype.render=function(){var e=this.value,t=e.hasAnswer,s=e.multiline;return n(i,{t:this.t,question:this.prop("question",{localize:true}),required:this.prop("required")},n("bce-switch",Object.assign({},this.prop("multiline",{on:this.onMultiline}),{label:this.t("me-element-input-multiline")})),n("bce-input",Object.assign({},this.prop("min"),{label:this.t("min"),type:"number"})),n("bce-input",Object.assign({},this.prop("max"),{label:this.t("max"),type:"number"})),n("bce-switch",Object.assign({},this.prop("hasAnswer",{on:this.onHasAnswer}),{label:this.t("answer")})),t&&n("bce-input",Object.assign({},this.prop("answer",{on:this.onAnswer,localize:true}),{type:s?"textarea":"text",validation:"required"})),n("slot",null))};return e}())}}}));