@open-formulieren/formio-builder
Version:
An opinionated Formio webform builder for Open Forms
74 lines (73 loc) • 2.18 kB
JavaScript
import { jsxs as m, jsx as t } from "react/jsx-runtime";
import { useContext as l } from "react";
import { FormattedMessage as i, useIntl as n } from "react-intl";
import { BuilderContext as u } 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 s from "../formio/checkbox.js";
import p from "../formio/panel.js";
import "react-select";
import "dompurify";
import "../formio/datagrid.js";
const h = () => {
const e = n().formatMessage({
id: "bYBFBc",
defaultMessage: [{
type: 0,
value: "Whether to show this value in the submission summary"
}]
});
return /* @__PURE__ */ t(s, { name: "showInSummary", label: /* @__PURE__ */ t(i, { id: "iOADkJ", defaultMessage: [{
type: 0,
value: "Show in summary"
}] }), tooltip: e });
}, f = () => {
const e = n().formatMessage({
id: "tnDJ58",
defaultMessage: [{
type: 0,
value: "Whether to show this value in the confirmation email"
}]
});
return /* @__PURE__ */ t(s, { name: "showInEmail", label: /* @__PURE__ */ t(i, { id: "VyA4fK", defaultMessage: [{
type: 0,
value: "Show in email"
}] }), tooltip: e });
}, d = () => {
const e = n().formatMessage({
id: "/yDnA3",
defaultMessage: [{
type: 0,
value: "Whether to show this value in the confirmation PDF"
}]
});
return /* @__PURE__ */ t(s, { name: "showInPDF", label: /* @__PURE__ */ t(i, { id: "pq7q6N", defaultMessage: [{
type: 0,
value: "Show in PDF"
}] }), tooltip: e });
}, j = ({
exposeShowInSummary: o = !0,
exposeShowInEmail: e = !0,
exposeShowInPDF: a = !0
}) => {
const {
formType: r
} = l(u);
return r === "appointment" ? null : /* @__PURE__ */ m(p, { title: /* @__PURE__ */ t(i, { id: "b/AHC/", defaultMessage: [{
type: 0,
value: "Display in summaries and confirmations"
}] }), children: [
o && /* @__PURE__ */ t(h, {}),
e && /* @__PURE__ */ t(f, {}),
a && /* @__PURE__ */ t(d, {})
] });
};
export {
j as default
};