import { n as e } from "./chunk-TYymryXo.mjs";
import { n as t, t as n } from "./selectedInfo-CT8ehCR8.mjs";
import { computed as r, createBlock as i, createVNode as a, defineComponent as o, inject as s, openBlock as c, ref as l, unref as u, watch as d, withCtx as f } from "vue";
import { Form as p, FormItem as m, Input as h } from "ant-design-vue/es";
//#region src/pages/flow-create/flow-model/createComponents/flow/right-panel/components/flowNormal.vue?vue&type=script&setup=true&lang.ts
var g = /* @__PURE__ */ o({
	name: "FlowNormalComponent",
	__name: "flowNormal",
	setup(e) {
		let o = s("lf"), g = t(), _ = n(), v = l({
			id: "",
			name: ""
		}), y = r(() => g.getElementById(_.selectId) || {});
		return d(() => _.selectId, (e) => {
			v.value.id = y.value.id || "", v.value.name = y.value.title || "";
		}, { immediate: !0 }), d(() => v.value.name, (e) => {
			let t = y.value?.id;
			t && y.value.title !== e && g.updateElement(t, {
				id: t,
				title: e
			});
		}), d(() => v.value.id, (e) => {
			let t = y.value?.id;
			t !== e && (g.updateElement(t, {
				id: e,
				title: v.value.name
			}), o.value.graphModel.flowId = e, _.setSelectId(e));
		}), (e, t) => {
			let n = h, r = m, o = p;
			return c(), i(o, {
				model: u(v),
				name: "basic",
				"label-col": { style: { width: "80px" } },
				autocomplete: "off"
			}, {
				default: f(() => [a(r, {
					label: "流程标识",
					name: "id",
					rules: [{
						required: !0,
						message: "请输入流程标识"
					}]
				}, {
					default: f(() => [a(n, {
						value: u(v).id,
						"onUpdate:value": t[0] ||= (e) => u(v).id = e,
						disabled: ""
					}, null, 8, ["value"])]),
					_: 1
				}), a(r, {
					label: "流程名称",
					name: "name",
					rules: [{
						required: !0,
						message: "请输入流程名称"
					}]
				}, {
					default: f(() => [a(n, {
						value: u(v).name,
						"onUpdate:value": t[1] ||= (e) => u(v).name = e
					}, null, 8, ["value"])]),
					_: 1
				})]),
				_: 1
			}, 8, ["model"]);
		};
	}
}), _ = /* @__PURE__ */ e({ default: () => v }), v = g;
//#endregion
export { _ as n, v as t };
