@open-formulieren/formio-builder
Version:
An opinionated Formio webform builder for Open Forms
42 lines (41 loc) • 1.24 kB
JavaScript
import { jsx as t } from "react/jsx-runtime";
import { useContext as i } from "react";
import { useIntl as r, 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 "lodash";
/* empty css */
import "react-select";
import { NumberField as l } from "../../formio/number.js";
import "../../formio/datagrid.js";
const j = () => {
const e = r(), {
formType: o
} = i(s), m = e.formatMessage({
id: "/iusiS",
defaultMessage: [{
type: 0,
value: "The maximum value this field can have before the form can be submitted."
}]
}), a = e.formatMessage({
id: "3RUomu",
defaultMessage: [{
type: 0,
value: "Maximum value"
}]
});
return o === "appointment" ? null : /* @__PURE__ */ t(l, { name: "validate.max", label: /* @__PURE__ */ t(p, { id: "3+WIVB", defaultMessage: [{
type: 0,
value: "Maximum value"
}] }), placeholder: a, tooltip: m });
};
export {
j as default
};