import{a as e,l as t}from"./preact.module-CNakwbc9.js";import{t as n}from"./jsxRuntime.module-Cao1NCKs.js";import{et as r}from"./hooks-ClTXKdUl.js";t();function i({values:e,...t}){return n(`div`,{role:`group`,children:(e||[]).map(e=>{if(!e)return null;let{value:r,label:i,inlineDescription:o}=e;return n(`div`,{className:`form-checkbox`,children:n(a,{value:r,label:i,inlineDescription:o,labelClassName:`form-check-label`,...t})},r)})})}function a({name:t,value:i,label:a,currentValue:o,onChange:s,labelClassName:c,inlineDescription:l}){return n(`label`,{className:`tn-radio ${c??``}`,children:[n(`input`,{className:`form-check-input`,type:`radio`,name:r(t),value:i,checked:i===o,onChange:e=>s(e.target.value)}),l?n(e,{children:[n(`strong`,{children:a}),` - `,l]}):a]})}export{i as t};