import"./Bg9kRutz.js";import{p as k,c as p,s as y,r as n,h as R,g as r,b as j}from"./AM9C8FsA.js";import{s as q}from"./B6F1ZNoe.js";import{e as D,i as I}from"./Bbpm7MqF.js";import{t as v,a as _}from"./CmMFD2-g.js";import{s as u,r as w}from"./C6Ut6Zxy.js";import{d as z}from"./DY_kk6CS.js";import{a as A}from"./C0g7NPoM.js";import{a as f,p as B}from"./D-bC_bvq.js";function C(c,e,o){e.selection_changed(o())}var E=v('<div class="form-check"><input class="form-check-input" type="radio"> <label class="form-check-label"> </label></div>'),F=v('<div role="radiogroup"></div>');function Q(c,e){k(e,!0);const o=[];let s=f(e,"selected_option",31,()=>B(e.options[0])),b=f(e,"enabled",3,!0),g=e.options.join("_");var i=F();u(i,"id",`group-${g}`),D(i,21,()=>e.options,I,(h,t)=>{var l=E(),a=p(l);w(a),a.__change=[C,e,s];var m,d=y(a,2),x=p(d,!0);n(d),n(l),R(()=>{u(a,"id","radio-"+r(t)),m!==(m=r(t))&&(a.value=(a.__value=r(t))==null?"":r(t)),a.disabled=!b(),u(d,"for","radio-"+r(t)),q(x,r(t))}),A(o,[],a,()=>(r(t),s()),s),_(h,l)}),n(i),_(c,i),j()}z(["change"]);export{Q as R};
