import{St as e,wt as t}from"./_plugin-vue_export-helper-C0lsYS1a.js";import{n}from"./request-B9wfR4zJ.js";const r=(r,i,a)=>{let o=t([]),s=e(null),c=e(!1),l=e=>(c.value=!0,n(Object.assign(r,e||{})).then(e=>o.value=i?e.data:e).catch(e=>s.value=e).finally(()=>c.value=!1));return a||l(),[o,c,s,l]},i=(e,t)=>n({url:`/zxl_rm/design/ui_handler.svc?cmd=findAll&size=${e}&page=${t}`,method:`post`,data:{}}),a=e=>n({url:`/zxl_pm/design/ui_control_management.svc?cmd=insert`,method:`post`,data:e}),o=e=>n({url:`/zxl_pm/design/ui_control_management.svc?cmd=update`,method:`post`,data:e}),s=(e,t)=>n({url:`/zxl_rm/design/ui_handler.svc?cmd=findAllByControlIdOrderBySn`,method:`get`,params:{controlId:e,propertyTabName:t}}),c=e=>n({url:`/zxl_pm/design/ui_control_property_management.svc?cmd=insert`,method:`post`,data:e}),l=e=>n({url:`/zxl_pm/design/ui_control_property_management.svc?cmd=update`,method:`post`,data:e}),u=e=>n({url:`/zxl_pm/design/ui_control_property_management.svc?cmd=delete&id=${e}`,method:`post`}),d=e=>r({url:`/zxl_rm/design/ui_handler.svc?cmd=findByPropertyPrimaryIdOrderBySn&propertyPrimaryId=${e}`,method:`get`},!1,!0),f=e=>n({url:`/zxl_rm/design/ui_handler.svc?cmd=findByPropertyPrimaryIdOrderBySn&propertyPrimaryId=${e}`,method:`get`}),p=e=>n({url:`/zxl_pm/design/ui_control_property_enum_management.svc?cmd=insert`,method:`post`,data:e}),m=e=>n({url:`/zxl_pm/design/ui_control_property_enum_management.svc?cmd=update`,method:`post`,data:e}),h=e=>n({url:`/zxl_pm/design/ui_control_property_enum_management.svc?cmd=delete&id=${e}`,method:`post`}),g=(e,t,r)=>n({url:`/zxl_pm/product/request/entity-mock-data.svc?cmd=pageQueryMockData&entityId=${e}&page=${t}&size=${r}`,method:`post`}),_=(e,t,r,i,a)=>{let o=typeof a==`string`?{parentDataObId:a}:a||{};return n({url:`/zxl_pm/product/request/entity-mock-data.svc?cmd=insertMockData`,method:`post`,headers:{"Content-Type":`application/json`},params:{zxlPrdId:i,entityId:e,mockDataObjectUuid:t,...o},data:r})},v=(e,t,r)=>n({url:`/zxl_pm/product/request/entity-mock-data.svc?cmd=updateMockData&mockDataObjectUuid=${e}&zxlPrdId=${r}`,method:`post`,headers:{"Content-Type":`application/json`},data:t}),y=e=>n({url:`/zxl_pm/product/request/entity-mock-data.svc?cmd=deleteMockData&mockDataObjectUuid=${e}`,method:`post`}),b=(e,t)=>n({url:`/zxl_pm/data/flow_handle.svc`,method:`get`,params:{cmd:`createFlowHandleByAi`,zxlPrdId:e,flowObId:t},timeout:180*1e3}),x=(e,t)=>n({url:`/zxl_pm/data/flow_handle.svc`,method:`get`,params:{cmd:`findDataFlowHandleByFlowObId`,zxlPrdId:e,flowObId:t}}),S=(e,t)=>n({url:`/zxl_pm/data/flow_handle.svc`,method:`get`,params:{cmd:`delete`,zxlPrdId:e,flowHandleObId:t}}),C=(e,t)=>n({url:`/zxl_pm/data/user.svc`,method:`get`,params:{cmd:`findByFlowObId`,zxlPrdId:e,flowObId:t}}),w=(e,t,r)=>n({url:`/zxl_pm/data/flow_handle.svc`,method:`get`,params:{cmd:`getMenuOperationForRole`,zxlPrdId:e,flowObId:t,roleObId:r}}),T=e=>n({url:`/zxl_pm/data/flow_handle.svc`,method:`post`,params:{cmd:`saveOrUpdate`},data:e}),E=e=>n({url:`/zxl_pm/request/entity.svc?cmd=saveOrUpdate`,method:`post`,data:e}),D=e=>n({url:`/zxl_pm/request/field.svc?cmd=saveOrUpdate`,method:`post`,data:e}),O=e=>n({url:`/zxl_pm/request/field.svc`,method:`post`,params:{cmd:`createFieldForFlow`},data:e}),k=e=>n({url:`/zxl_pm/request/param.svc?cmd=getByInterfaceId`,method:`post`,data:e}),A=e=>n({url:`zxl_pm/request/interface/object/field.svc?cmd=getObjectFieldByUuid`,method:`post`,data:e});export{o as C,d as D,v as E,D as S,m as T,c as _,h as a,g as b,i as c,A as d,w as f,a as g,x as h,u as i,f as l,C as m,b as n,y as o,s as p,O as r,S as s,T as t,k as u,p as v,l as w,E as x,_ as y};