var t=(R,S,u)=>new Promise((r,e)=>{var a=n=>{try{E(u.next(n))}catch(U){e(U)}},m=n=>{try{E(u.throw(n))}catch(U){e(U)}},E=n=>n.done?r(n.value):Promise.resolve(n.value).then(a,m);E((u=u.apply(R,S)).next())});import{O as o,d as s,N as i,J as f,__tla as y}from"./index-f0df2f76.js";let l,p,_,c,d,O,g=Promise.all([(()=>{try{return y}catch(R){}})()]).then(()=>t(void 0,null,function*(){d=function(r){let e=" 1=1 ";(r==null?void 0:r.USERGROUP_CODE)!=null&&(r==null?void 0:r.USERGROUP_CODE)!=""&&(e+=" And USERGROUP_CODE like '%"+(r==null?void 0:r.USERGROUP_CODE)+"%'"),(r==null?void 0:r.USERGROUP_DESC)!=null&&(r==null?void 0:r.USERGROUP_DESC)!=""&&(e+="And USERGROUP_DESC like '%"+(r==null?void 0:r.USERGROUP_DESC)+"%'");const a=o("SYS_USERGROUP",e);return R(a)};function R(r){return t(this,null,function*(){return(yield s.post({url:i.EntityList,params:r},{errorMessageMode:"modal",isTransformResponse:!1})).Data})}O=function(){const r=o("SYS_USER","1=1");return S(r)};function S(r){return t(this,null,function*(){return(yield s.post({url:i.EntityList,params:r},{errorMessageMode:"modal",isTransformResponse:!1})).Data})}_=function(r){const e=" SELECT u.* FROM sys_useringroup t left join sys_usergroup g on t.usergroup_code = g.id left join sys_user u on u.id = t.user_id WHERE g.usergroup_code = '"+(r==null?void 0:r.USERGROUP_CODE)+"'",a=o("SYS_USER",e);return u(a)};function u(r){return t(this,null,function*(){return(yield s.post({url:i.EntitySqlList,params:r},{errorMessageMode:"modal",isTransformResponse:!1})).Data})}c=(r,e)=>t(void 0,null,function*(){let a;return e?a=yield s.post({url:i.UpdateEntity,params:o("SYS_USERGROUP",r)},{errorMessageMode:"none",isTransformResponse:!1}):(r.ID=f(),a=yield s.post({url:i.AddEntity,params:o("SYS_USERGROUP",r)},{errorMessageMode:"none",isTransformResponse:!1})),a}),l=r=>t(void 0,null,function*(){const e=o("SYS_USERGROUP",[r]);return yield s.post({url:i.DeleteList,params:e},{errorMessageMode:"none",isTransformResponse:!1})}),p=r=>t(void 0,null,function*(){return yield s.post({url:i.urlSetSysUserToGroup,params:o("SYS_USERINGROUP",r)},{errorMessageMode:"none",isTransformResponse:!1})})}));export{l as D,p as S,g as __tla,_ as a,c as b,d as c,O as g};