import{C as e,R as t,St as n,T as r,Y as i,at as a,bt as o,ct as s,dt as c,ft as l,j as u,k as d,wt as f,x as p}from"./vue.runtime.esm-bundler-DpGzKKN4.js";import"./GxPagination-DOexUzbO.js";import{t as m}from"./drawer-OxBUjP-4.js";import{t as h}from"./directive-9SA1IQHd.js";import{t as g}from"./_plugin-vue_export-helper-CnS4QQza.js";import"./css-DxP8XCTD.js";import{Qt as _,_t as v,fa as y}from"./stores-BWYw2E2w.js";import"./css-CW_FwBqc2.js";import"./ChildrenRenderer-Da6qWp02.js";import{t as b}from"./FormControllerDescList-B7jB0Oli.js";var x={class:`min-h-60`},S=g(u({__name:`FormControllerDescDrawer`,props:t({zxlPrdId:{},belongFormUuid:{},rawFormEditor:{}},{visible:{type:Boolean},visibleModifiers:{}}),emits:t([`update-list`],[`update:visible`]),setup(t,{emit:u}){let g=n(!1),S=t,C=o({label:``,no:``}),w=p(()=>`${C.no} ${C.label} 需求说明`),T=a(t,`visible`),E=f([]),D=async e=>{let{zxlPrdId:t,belongFormUuid:n,rawFormEditor:r}=S;if(!t||!n||!r)return;let i=r._formFieldRegistry.getIdSet(),a=r._formFieldRegistry.getRootElementItem(n);if(a){let e=y(a.rawXmlObj?.property),t=e.get(`label`)||``,n=e.get(`bind-user-intf-no`)||``;C.label=t,C.no=n===`null`?``:n}let o=[];i.forEach(e=>{let t=r._formFieldRegistry.getElementItem(e);if(!t)return;let n=t.type,i=!t.parentId,a=i?`表单`:v(n),s=t.no,c=`[${a}${s?` `:``}${s}]`,l=y(t.rawXmlObj?.property),u=l.get(`label`)||``;if(i||_(n,t)){let e=o.length<3;o.push({id:i?t.localFormUuid:t.id,label:`${c} ${u}`,elementItem:t,autoExpand:e,propertyValMap:l})}}),E.value=o},O=()=>{E.value=[]};return s([T,()=>S.belongFormUuid],e=>{e&&D()},{immediate:!0}),(t,n)=>{let a=m,o=h;return i(),e(a,{"modal-class":``,class:`form-controller-desc-drawer adap-sm-radius !bg-[#EAECEF]`,modelValue:T.value,"onUpdate:modelValue":n[0]||=e=>T.value=e,onClose:O,title:w.value,"append-to-body":!0,width:600,modal:!1,"modal-penetrable":!0},{default:c(()=>[l((i(),r(`div`,x,[d(b,{"belong-form-uuid":S.belongFormUuid,"zxl-prd-id":S.zxlPrdId,"raw-form-editor":S.rawFormEditor,"controller-desc-list":E.value},null,8,[`belong-form-uuid`,`zxl-prd-id`,`raw-form-editor`,`controller-desc-list`])])),[[o,g.value]])]),_:1},8,[`modelValue`,`title`])}}}),[[`__scopeId`,`data-v-8fa13fff`]]);export{S as default};