{"version":3,"file":"Label-BNNYH9kv.js","sources":["../../Client/legacy/Components/FormGroups/Label.tsx"],"sourcesContent":["import * as React from 'react';\r\n\r\nimport { FormGroup } from './Base';\r\n\r\nexport interface ILabelFormGroupProps {\r\n    /** The text value of the label.  */\r\n    label: string;\r\n\r\n    /** The value of the field. */\r\n    value?: string;\r\n\r\n    /** Optional prop to add JSX instead of a string */\r\n    jsxValue?: JSX.Element;\r\n\r\n    /** Optional className */\r\n    className?: string;\r\n\r\n    /** Optional ID for the label element. */\r\n    id?: string;\r\n}\r\n\r\nexport class LabelFormGroup extends React.Component<ILabelFormGroupProps, {}> {\r\n    render() {\r\n        return (\r\n            <FormGroup\r\n                id={this.props.id}\r\n                label={this.props.label}\r\n                className={`form-group-label-form-group-cp ${this.props.className ? this.props.className : ''}`}\r\n            >\r\n                <div className='form-group-value-cp'>\r\n                    {this.props.value ?\r\n                        this.props.value\r\n                    : this.props.jsxValue ?\r\n                        this.props.jsxValue\r\n                    :   'No value provided'}\r\n                </div>\r\n            </FormGroup>\r\n        );\r\n    }\r\n}\r\n"],"names":["LabelFormGroup","React.Component","jsx","FormGroup"],"mappings":"iFAqBa,MAAAA,UAAuBC,EAAAA,SAA0C,CAC1E,QAAS,CAED,OAAAC,EAAA,IAACC,EAAA,CACG,GAAI,KAAK,MAAM,GACf,MAAO,KAAK,MAAM,MAClB,UAAW,kCAAkC,KAAK,MAAM,UAAY,KAAK,MAAM,UAAY,EAAE,GAE7F,eAAC,MAAI,CAAA,UAAU,sBACV,SAAA,KAAK,MAAM,MACR,KAAK,MAAM,MACb,KAAK,MAAM,SACT,KAAK,MAAM,SACX,mBACR,CAAA,CAAA,CACJ,CAAA,CAGZ"}