import { FormElementHeader } from "./FormElementHeader.js";
import FormBody_default from "./FormBody.js";
import { c } from "react/compiler-runtime";
import React from "react";
import { jsx, jsxs } from "react/jsx-runtime";
var Form_default = (a) => {
	let o = c(20), { form: s, schema: l, ui: u, mimeType: d, disabled: f, viewOnly: p, actions: m } = a, h = u, g = h?.form?.title, _ = h?.form?.description, v;
	o[0] !== f || o[1] !== g || o[2] !== _ ? (v = /* @__PURE__ */ jsx(FormElementHeader, {
		title: g,
		description: _,
		disabled: f
	}), o[0] = f, o[1] = g, o[2] = _, o[3] = v) : v = o[3];
	let y = l, b = u?.form, x;
	o[4] !== f || o[5] !== s || o[6] !== d || o[7] !== y || o[8] !== b || o[9] !== p ? (x = /* @__PURE__ */ jsx(FormBody_default, {
		form: s,
		mimeType: d,
		schema: y,
		ui: b,
		disabled: f,
		viewOnly: p
	}), o[4] = f, o[5] = s, o[6] = d, o[7] = y, o[8] = b, o[9] = p, o[10] = x) : x = o[10];
	let S;
	o[11] !== m || o[12] !== p ? (S = !p && !!m && /* @__PURE__ */ jsx("div", {
		className: "mt-4 flex w-full justify-end",
		children: m
	}), o[11] = m, o[12] = p, o[13] = S) : S = o[13];
	let C;
	o[14] !== x || o[15] !== S ? (C = /* @__PURE__ */ jsxs("form", { children: [x, S] }), o[14] = x, o[15] = S, o[16] = C) : C = o[16];
	let w;
	return o[17] !== v || o[18] !== C ? (w = /* @__PURE__ */ jsxs("div", {
		className: "container mx-auto",
		children: [v, C]
	}), o[17] = v, o[18] = C, o[19] = w) : w = o[19], w;
};
export { Form_default as default };
