@open-formulieren/formio-builder
Version:
An opinionated Formio webform builder for Open Forms
74 lines (73 loc) • 2.17 kB
JavaScript
import { jsx as t } from "react/jsx-runtime";
import { useContext as r } from "react";
import { FormattedMessage as o } from "react-intl";
import { Tab as a } from "../formio/tabs.js";
import "clsx";
import "formik";
/* empty css */
import "@floating-ui/react";
/* empty css */
import "../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 */
import { BuilderContext as s } from "../../context.js";
const n = /* @__PURE__ */ new Set(["appointment", "single_step"]), p = (e) => /* @__PURE__ */ t(a, { ...e, children: /* @__PURE__ */ t(o, { id: "Do20MZ", defaultMessage: [{
type: 0,
value: "Basic"
}] }) });
p.tabsRole = "Tab";
const l = (e) => {
const {
formType: i
} = r(s);
return /* @__PURE__ */ t(a, { ...e, hidden: i === "appointment", children: /* @__PURE__ */ t(o, { id: "YJpESX", defaultMessage: [{
type: 0,
value: "Advanced"
}] }) });
};
l.tabsRole = "Tab";
const m = (e) => /* @__PURE__ */ t(a, { ...e, children: /* @__PURE__ */ t(o, { id: "2k+Mca", defaultMessage: [{
type: 0,
value: "Validation"
}] }) });
m.tabsRole = "Tab";
const d = (e) => {
const {
formType: i
} = r(s);
return /* @__PURE__ */ t(a, { ...e, hidden: i === "appointment", children: /* @__PURE__ */ t(o, { id: "r+9rju", defaultMessage: [{
type: 0,
value: "Registration"
}] }) });
};
d.tabsRole = "Tab";
const c = (e) => {
const {
formType: i
} = r(s);
return /* @__PURE__ */ t(a, { ...e, hidden: n.has(i), children: /* @__PURE__ */ t(o, { id: "fRMCJI", defaultMessage: [{
type: 0,
value: "Prefill"
}] }) });
};
c.tabsRole = "Tab";
const u = (e) => /* @__PURE__ */ t(a, { ...e, children: /* @__PURE__ */ t(o, { id: "uDSxtY", defaultMessage: [{
type: 0,
value: "Translations"
}] }) });
u.tabsRole = "Tab";
export {
l as Advanced,
p as Basic,
c as Prefill,
d as Registration,
u as Translations,
m as Validation
};