1import{r as e}from"./B0Z9INg1.js";import{Ht as t,Yt as n,Zn as r,_ as i,b as a,ct as o,g as s,mt as c,v as l,vn as u,xt as d,y as f}from"./B6UT1KN4.js";import{y as p}from"./C65MTnUS.js";import{t as m}from"./Cp3JeXTl2.js";import{i as h}from"./2ZjDutWw2.js";var g=e({default:()=>y}),_=[`disabled`],v=[`data-test-id`,`value`,`disabled`],y={__name:`BaseFieldRadioButton`,props:{modelValue:{type:[String,Number,Boolean],default:null},value:{type:[String,Number,Boolean],default:null},isDisabled:{type:Boolean,default:!1},isFullwidth:{type:Boolean,default:!1},icon:{type:String,default:null},iconPosition:{type:String,default:null}},emits:[`update:modelValue`,`resize`],setup(e,{emit:g}){let y=e,b=g,x=u(null),{width:S}=h(x),C=u(null);t(S,e=>{b(`resize`,e)});let w=s(()=>y.modelValue===y.value),T=s({get:()=>y.modelValue,set:e=>{b(`update:modelValue`,e)}}),E=s(()=>!!y.icon&&y.iconPosition===`left`),D=s(()=>!!y.icon&&y.iconPosition===`right`);return o(()=>{C.value=x.value.dataset.testId,delete x.value.dataset.testId}),(e,t)=>(c(),a(`label`,{ref_key:`baseFieldRadioButtonRef`,ref:x,class:r([`button button--fitted base-field-radio-button`,{"base-field-radio-button--selected":w.value,"base-field-radio-button--disabled":y.isDisabled,"base-field-radio-button--fullwidth":y.isFullwidth}]),disabled:y.isDisabled},[E.value?(c(),l(m,{key:0,class:`base-field-radio-button__icon`,icon:y.icon},null,8,[`icon`])):f(``,!0),n(i(`input`,{"onUpdate:modelValue":t[0]||=e=>T.value=e,"data-test-id":C.value,class:`base-field-radio-button__input`,type:`radio`,value:y.value,disabled:y.isDisabled},null,8,v),[[p,T.value]]),d(e.$slots,`default`),D.value?(c(),l(m,{key:1,class:`base-field-radio-button__icon`,icon:y.icon},null,8,[`icon`])):f(``,!0)],10,_))}};export{y as n,g as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.