import { l } from "./chunk.5MED2A3H.js"; import { e } from "./chunk.YXKHB4AC.js"; import { T } from "./chunk.5PIDMFOE.js"; // src/internal/form-control.ts var renderFormControl = (props, input) => { const hasLabel = props.label ? true : !!props.hasLabelSlot; const hasHelpText = props.helpText ? true : !!props.hasHelpTextSlot; return T`
${T`${input}`}
${props.helpText}
`; }; function getLabelledBy(props) { const labelledBy = [ props.label || props.hasLabelSlot ? props.labelId : "", props.helpText || props.hasHelpTextSlot ? props.helpTextId : "" ].filter((val) => val); return labelledBy.join(" ") || void 0; } export { renderFormControl, getLabelledBy };