UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

50 lines (49 loc) 1.33 kB
import { jsx as t } from "react/jsx-runtime"; import { useContext as m } from "react"; import { useIntl as p, FormattedMessage as a } from "react-intl"; import { BuilderContext as s } from "../../context.js"; import "../formio/tabs.js"; import "clsx"; import "formik"; /* empty css */ import "@floating-ui/react"; /* empty css */ import "../formio/textfield.js"; import n from "../formio/checkbox.js"; import "../formio/datefield.js"; import "../formio/datetimefield.js"; import "../formio/timefield.js"; /* empty css */ import "react-select"; import "dompurify"; import "../formio/textarea.js"; import "../formio/datagrid.js"; /* empty css */ const q = ({ disabled: e = !1 }) => { const o = p(), { formType: i } = m(s), r = o.formatMessage({ id: "JDYF2q", defaultMessage: [{ type: 0, value: "The data entered in this component will be removed in accordance with the privacy settings." }] }); return i === "appointment" ? null : /* @__PURE__ */ t( n, { name: "isSensitiveData", label: /* @__PURE__ */ t(a, { id: "m2oZCk", defaultMessage: [{ type: 0, value: "Is sensitive data" }] }), tooltip: r, disabled: e } ); }; export { q as default };