System.register(["./p-0bfb8721.system.js","./p-cd79aed8.system.js"],(function(t){"use strict";var e,i,r;return{setters:[function(t){e=t.r;i=t.h},function(t){r=t.E}],execute:function(){var n=t("bce_element_checkbox_editor",function(){function t(t){var i=this;e(this,t);this.handleOther=function(t){var e=t.target;i.handler.set("options",e.value,{localize:true});i.handler.set("other",t.detail,{emit:true,localize:true})};this.transformMax={path:"validation",get:function(t){return"max:"+t},set:function(t){return t.slice(4)}}}t.prototype.prop=function(t,e){if(e===void 0){e={}}return this.handler.prop(t,Object.assign({},e))};t.prototype.render=function(){var t=this.value.options;return i(r,{question:this.prop("question",{localize:true}),required:this.prop("required"),t:this.t},i("bce-option-creator",Object.assign({},this.prop("options",{default:function(){return[]},localize:true}),{"allow-other":true,label:this.t("me-option"),other:this.handler.tryGet("other",{localize:true}),placeholder:this.t("me-option"),t:this.t,onOther:this.handleOther})),i("bce-input",Object.assign({},this.prop("max",{transform:this.transformMax}),{label:this.t("me-element-checkbox-max"),max:""+t.length,min:t.length?"1":"0",type:"number"})),i("bce-select",Object.assign({},this.prop("orientation"),{label:this.t("me-orientation"),type:"radio"}),i("bce-option",{value:"horizontal"},this.t("me-orientation-h")),i("bce-option",{value:"vertical"},this.t("me-orientation-v"))),i("slot",null))};return t}())}}}));