import { n as e } from "./chunk-TYymryXo.mjs";
import { t } from "./request-B-Pg79ns.mjs";
import { n, t as r } from "./selectedInfo-CT8ehCR8.mjs";
import { createBlock as i, createVNode as a, defineComponent as o, inject as s, onMounted as c, openBlock as l, reactive as u, ref as d, unref as f, withCtx as p } from "vue";
import { Form as m, FormItem as h, Select as g } from "ant-design-vue/es";
//#region src/api/modules/bpmDefinition/bpMbiaodandingyibiaokongzhiqi.ts
function _(e) {
	return t.Get("/bpm/form/simple-list", { ...e || {} });
}
//#endregion
//#region src/pages/flow-create/flow-model/createComponents/flow/right-panel/components/formComponent.vue?vue&type=script&setup=true&lang.ts
var v = /* @__PURE__ */ o({
	name: "FormComponent",
	__name: "formComponent",
	setup(e) {
		let t = s("lf"), o = n(), v = r(), y = u({ formKey: "" }), b = d([]);
		function x() {
			_().then((e) => {
				e && e.data && (b.value.length = 0, e.data.forEach((e) => {
					b.value.push({
						label: e.name,
						value: e.id
					});
				}));
			});
		}
		function S() {
			o.updateElement(v.selectId, { formKey: y.formKey }), t.value.setProperties(v.selectId, { formKey: y.formKey });
		}
		return c(() => {
			x(), y.formKey = (o.getElementById(v.selectId) || {}).formKey || "";
		}), (e, t) => {
			let n = g, r = h, o = m;
			return l(), i(o, {
				model: f(y),
				name: "basic",
				"label-col": { span: 4 },
				autocomplete: "off"
			}, {
				default: p(() => [a(r, {
					label: "流程表单",
					name: "formKey"
				}, {
					default: p(() => [a(n, {
						value: f(y).formKey,
						"onUpdate:value": t[0] ||= (e) => f(y).formKey = e,
						options: f(b),
						onChange: S
					}, null, 8, ["value", "options"])]),
					_: 1
				})]),
				_: 1
			}, 8, ["model"]);
		};
	}
}), y = /* @__PURE__ */ e({ default: () => b }), b = v;
//#endregion
export { y as n, b as t };
