import{m as r,d as t,n as o,e,f as i,g as n,S as s}from"./index-d9fc8538.js";import{useState as u,useEffect as c}from"react";import a from"./request-28cb3179.js";import"react-dom";import"stream";import"string_decoder";import"events";import"timers";import"util";import"url";import"http";import"https";import"buffer";import"path";import"querystring";import"assert";import"os";import"fs";import"child_process";import"antd";import"crypto";var p=r((function(r){var a=r.selectUserProps,p=r.request,m=r.isFamilyOrSchool,l=r.selectBureauProps,f=r.selectSchoolProps,d=t(r,["selectUserProps","request","isFamilyOrSchool","selectBureauProps","selectSchoolProps"]),v=u(null),h=v[0],g=v[1];c((function(){m&&o.request("/backend/loginUser/getLoginUserInfo",{method:"GET"}).then((function(r){var t,o=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.orgType;g("SCHOOL"===o?f:l)}))}),[]);return e({request:e(e({},p),{formatter:function(r){return i(void 0,void 0,void 0,(function(){return n(this,(function(t){return[2,new Promise((function(t,o){return i(void 0,void 0,void 0,(function(){return n(this,(function(u){return s.show(e(e({dialogProps:{title:"选择对象"},isSaveSelectSignature:!1},m?h:a),{onOk:function(o){return i(void 0,void 0,void 0,(function(){var i;return n(this,(function(n){switch(n.label){case 0:return i=e(e({},r),{selectUser:o}),p.formatter?[4,p.formatter(i)]:[3,2];case 1:i=n.sent(),n.label=2;case 2:return t(i),[2]}}))}))},onCancel:function(){o(new Error("用户取消选人"))}})),[2]}))}))}))]}))}))}})},d)})),m=p(a);export default m;export{p as selectUserBeforeRequestHoc};
