UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

71 lines (70 loc) 2.04 kB
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 { BuilderContext as s } from "../../context.js"; import "@formio/vanilla-text-mask"; import "formiojs"; import "lodash"; /* empty css */ import "react-select"; import "dompurify"; import "../formio/datagrid.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 d = (e) => /* @__PURE__ */ t(a, { ...e, children: /* @__PURE__ */ t(o, { id: "2k+Mca", defaultMessage: [{ type: 0, value: "Validation" }] }) }); d.tabsRole = "Tab"; const m = (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" }] }) }); }; m.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, m as Registration, u as Translations, d as Validation };