UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

42 lines (41 loc) 1.24 kB
import { jsx as t } from "react/jsx-runtime"; import { useContext as r } from "react"; import { useIntl as a, FormattedMessage as p } from "react-intl"; import { BuilderContext as l } 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 "lodash"; /* empty css */ import "react-select"; import { NumberField as s } from "../../formio/number.js"; import "../../formio/datagrid.js"; const T = () => { const e = a(), { formType: o } = r(l), m = e.formatMessage({ id: "2/2h2C", defaultMessage: [{ type: 0, value: "The minimum value this field can have before the form can be submitted." }] }), i = e.formatMessage({ id: "BGZD6J", defaultMessage: [{ type: 0, value: "Minimum value" }] }); return o === "appointment" ? null : /* @__PURE__ */ t(s, { name: "validate.min", label: /* @__PURE__ */ t(p, { id: "pDJBaK", defaultMessage: [{ type: 0, value: "Minimum value" }] }), placeholder: i, tooltip: m }); }; export { T as default };