import UiWidget_default from "./UiWidget.js";
import { c } from "react/compiler-runtime";
import React, { Fragment } from "react";
import { jsx } from "react/jsx-runtime";
var UiActions_default = (i) => {
	let a = c(13), { actions: o, availableTransitions: s, disabled: l, onSubmit: u, isLoading: d } = i, f;
	if (a[0] !== o || a[1] !== s || a[2] !== l || a[3] !== d || a[4] !== u) {
		let r;
		a[6] !== s || a[7] !== l || a[8] !== d || a[9] !== u ? (r = (r, i) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(UiWidget_default, {
			config: r,
			onSubmit: (e) => {
				u(r.transition, e);
			},
			disabled: l || r.transition === void 0 || !s.includes(r.transition),
			isLoading: d
		}) }, `ui-widget-${i}-${r.transition}`), a[6] = s, a[7] = l, a[8] = d, a[9] = u, a[10] = r) : r = a[10], f = o.map(r), a[0] = o, a[1] = s, a[2] = l, a[3] = d, a[4] = u, a[5] = f;
	} else f = a[5];
	let p;
	return a[11] === f ? p = a[12] : (p = /* @__PURE__ */ jsx("div", {
		className: "flex w-full flex-col items-end gap-4",
		children: f
	}), a[11] = f, a[12] = p), p;
};
export { UiActions_default as default };
