import{r as t,h as e}from"./p-aee8b1df.js";import{E as o}from"./p-433f8f9a.js";const i=class{constructor(e){t(this,e),this.handleOther=t=>{this.handler.set("options",t.target.value,{localize:!0}),this.handler.set("other",t.detail,{emit:!0,localize:!0})}}prop(t,e={}){return this.handler.prop(t,Object.assign({},e))}render(){return e(o,{t:this.t,question:this.prop("question",{localize:!0}),required:this.prop("required")},e("bce-option-creator",Object.assign({},this.prop("options",{default:()=>[],localize:!0}),{"allow-other":!0,label:this.t("me-option"),other:this.handler.tryGet("other",{localize:!0}),placeholder:this.t("me-option"),t:this.t,onOther:this.handleOther})),e("bce-select",Object.assign({},this.prop("orientation"),{label:this.t("me-orientation"),type:"radio"}),e("bce-option",{value:"horizontal"},this.t("me-orientation-h")),e("bce-option",{value:"vertical"},this.t("me-orientation-v"))),e("slot",null))}};export{i as bce_element_radio_editor};