import{r,h as i}from"./p-dfbe004d.js";import{i as o}from"./p-d556eec7.js";const a=class{constructor(i){r(this,i),this.label="",this.value=""}async reportValidity(){return this.invalid=!this.input.checkValidity(),this.input.reportValidity()}handleRadioClick(r){const i=r.target;console.log(i),i.disabled||(this.value=i.value)}render(){return i("fieldset",{part:"base",class:{"radio-group":!0,"radio-group--invalid":this.invalid,"radio-group--is-required":this.required,"radio-group--is-rtl":o()},"aria-invalid":this.invalid,role:"radiogroup"},i("legend",{part:"label",class:"radio-group__label"},i("slot",{name:"label"},this.label)),i("input",{type:"text",class:"radio-group__hidden-input",ref:r=>this.input=r,required:this.required,value:this.value,tabindex:"-1"}),i("slot",null))}};a.style=':host{display:block}.radio-group{border:none;padding:0;margin:0;min-width:0}.radio-group .radio-group__label{display:inline-block;padding:0;color:var(--sc-input-label-color);font-weight:var(--sc-input-label-font-weight);text-transform:var(--sc-input-label-text-transform, none);letter-spacing:var(--sc-input-label-letter-spacing, 0);margin-bottom:var(--sc-input-label-margin)}.radio-group__hidden-input{position:absolute;opacity:0;padding:0px;margin:0px;pointer-events:none}.radio-group--is-required .radio-group__label:after{content:" *";color:var(--sc-color-danger-500)}::slotted(sc-radio:not(:last-of-type)){display:block;margin-bottom:var(--sc-spacing-x-small) !important}.radio-group--is-rtl.radio-group,.radio-group--is-rtl.radio-group .radio-group__label{text-align:right}';export{a as sc_radio_group}