@open-formulieren/formio-builder
Version:
An opinionated Formio webform builder for Open Forms
47 lines (46 loc) • 1.2 kB
JavaScript
import { jsx as t } from "react/jsx-runtime";
import { useContext as m } from "react";
import { useIntl as a, FormattedMessage as p } 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/vanilla-text-mask";
import "formiojs";
import n from "../formio/checkbox.js";
import "lodash";
/* empty css */
import "react-select";
import "dompurify";
import "../formio/datagrid.js";
const S = ({
disabled: e = !1
}) => {
const o = a(), {
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(p, { id: "m2oZCk", defaultMessage: [{
type: 0,
value: "Is sensitive data"
}] }),
tooltip: r,
disabled: e
}
);
};
export {
S as default
};