UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

20 lines (19 loc) 1.25 kB
import { jsx as _jsx } from "react/jsx-runtime"; import { FormattedMessage, defineMessage, useIntl } from 'react-intl'; import Select from '../../../components/formio/select'; const IDENTIFIER_ROLE_OPTIONS = [ { label: defineMessage({ id: "RPzjrJ", defaultMessage: [{ type: 0, value: "Main" }] }), value: 'main', }, { label: defineMessage({ id: "cJnAgZ", defaultMessage: [{ type: 0, value: "Authorised person" }] }), value: 'authorised_person', }, ]; const PrefillIdentifierRoleSelect = () => { const intl = useIntl(); const tooltip = intl.formatMessage({ id: "WkBjB5", defaultMessage: [{ type: 0, value: "In case that multiple identifiers are returned (in the case of eHerkenning bewindvoering and DigiD Machtigen), should the prefill data related to the main identifier be used, or that related to the authorised person?" }] }); return (_jsx(Select, { name: "prefill.identifierRole", label: _jsx(FormattedMessage, { id: 'E5rUfM', defaultMessage: [{ type: 0, value: "Identifier role" }] }), tooltip: tooltip, options: IDENTIFIER_ROLE_OPTIONS.map(item => (Object.assign(Object.assign({}, item), { label: intl.formatMessage(item.label) }))) })); }; export default PrefillIdentifierRoleSelect;