@open-formulieren/formio-builder
Version:
An opinionated Formio webform builder for Open Forms
41 lines (40 loc) • 1.34 kB
JavaScript
import { jsx as t, Fragment as s } from "react/jsx-runtime";
import { FormattedMessage as f } from "react-intl";
import "../../components/formio/tabs.js";
import "clsx";
import "formik";
/* empty css */
import "@floating-ui/react";
import "react";
/* empty css */
import { TextFieldMultiple as d } from "../../components/formio/textfield.js";
import "../../context.js";
import "lodash";
/* empty css */
import "react-select";
import "dompurify";
import "../../components/formio/datagrid.js";
/* empty css */
const P = ({
component: i
}) => {
const {
key: r,
label: o,
description: m,
tooltip: p,
validate: l = {},
autocomplete: a,
multiple: n,
openForms: e
} = i, {
required: u = !1
} = l, c = (e == null ? void 0 : e.requireVerification) ?? !1 ? /* @__PURE__ */ t("button", { type: "button", className: "btn btn-primary", children: /* @__PURE__ */ t(f, { id: "Cf5zSF", defaultMessage: [{
type: 0,
value: "Verify"
}] }) }) : null;
return /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(d, { name: r, multiple: !!n, label: o, description: m, tooltip: p, required: u, autoComplete: a, type: "email", childrenAfterField: c }) });
};
export {
P as default
};