UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

45 lines (44 loc) 1.44 kB
import { jsx as e } from "react/jsx-runtime"; import { useContext as a } from "react"; import { useIntl as p, FormattedMessage as m } 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 { TextFieldMultiple as l } from "../../formio/textfield.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 w = () => { const t = p(), { formType: o } = a(s), r = t.formatMessage({ id: "wZ99FU", defaultMessage: [{ type: 0, value: "The regular expression pattern test that the field value must pass before the form can be submitted." }] }), i = t.formatMessage({ id: "+q3LGC", defaultMessage: [{ type: 0, value: "Regular Expression Pattern" }] }); return o === "appointment" ? null : /* @__PURE__ */ e(l, { name: "validate.pattern", label: /* @__PURE__ */ e(m, { id: "1WxO/D", defaultMessage: [{ type: 0, value: "Regular Expression Pattern" }] }), tooltip: r, placeholder: i }); }; export { w as default };