System.register(["./p-e07174c9.system.js","./p-8ed8af5a.system.js"],(function(e){"use strict";var t,r,n;return{setters:[function(e){t=e.r;r=e.h},function(e){n=e.E}],execute:function(){var i=e("bce_element_checkbox_editor",function(){function e(e){var r=this;t(this,e);this.label={name:"Checkbox",labelQuestion:"Formulate your question",labelRequired:"Required",labelMax:"Max answers",labelOCOptionAdd:"Add Option",labelOCOptionRemove:"Delete Option",labelOCOther:"Other",labelOCOtherAdd:'Add "Other"',labelOCOtherRemove:'Remove "Other"',labelOCImageUpload:"Upload Image",labelOCImageDelete:"Delete Image",labelOrientation:"Oriëntation",labelOrientationH:"Horizontal",labelOrientationV:"Vertical",placeholderOptions:"Option"};this.handleOther=function(e){var t=e.target;r.handler.set("options",t.value);r.handler.set("other",e.detail,{emit:true})};this.transformMax={path:"validation",get:function(e){return"max:"+e},set:function(e){return e.slice(4)}}}e.prototype.prop=function(e,t){if(t===void 0){t={}}return this.handler.prop(e,Object.assign(Object.assign({},t),{label:this.label}))};e.prototype.render=function(){var e=this.label,t=e.labelOrientationH,i=e.labelOrientationV;var a=this.value.options;return r(n,{question:this.prop("question",{localize:true}),required:this.prop("required")},r("bce-option-creator",Object.assign({},this.prop("options",{default:function(){return[]},localize:true}),{"allow-other":true,label:this.label,other:this.handler.get("other"),onOther:this.handleOther})),r("bce-input",Object.assign({},this.prop("max",{transform:this.transformMax}),{type:"number",min:a.length?"1":"0",max:""+a.length})),r("bce-select",Object.assign({},this.prop("orientation"),{type:"radio"}),r("bce-option",{value:"horizontal"},t),r("bce-option",{value:"vertical"},i)),r("slot",null))};return e}())}}}));