@baishuyun/ui-business 5.1.1 → 5.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,8 +6,8 @@ import { b as m, d as h, f as g, h as _, p as v, t as y } from "./services/conta
6
6
  import { n as b, r as x } from "./TabGroup-DjfuvblW.js";
7
7
  import { t as S } from "../vendors/useLocale.js";
8
8
  import { findNodeInTree as C, getColorByName as w } from "./utils/index.js";
9
- import { t as T } from "./DeptsUser-C7_gkn3k.js";
10
- import { t as E } from "./Member-CXVybdp_.js";
9
+ import { t as T } from "./DeptsUser-CaXbrm8n.js";
10
+ import { t as E } from "./Member-DeBpChCx.js";
11
11
  import { n as D, t as O } from "./Department-CkzkA99U.js";
12
12
  import { forwardRef as k, useCallback as ee, useEffect as A, useImperativeHandle as j, useMemo as M, useRef as N, useState as P } from "react";
13
13
  import { Avatar as F, Button as I, Spin as L } from "antd";
@@ -5,7 +5,7 @@ import { n as r, r as i, s as a } from "./services/contact/selector.service-cz8f
5
5
  import { t as o } from "../vendors/useLocale.js";
6
6
  import { buildDeptTree as s, getColorByName as c } from "./utils/index.js";
7
7
  import { t as l } from "./OrganizationPanel-BAhvhgOL.js";
8
- import { i as u, n as d, r as f, t as p } from "./ExtraConcactPanel-BRkvxzbe.js";
8
+ import { i as u, n as d, r as f, t as p } from "./ExtraConcactPanel-D5luX4_D.js";
9
9
  import { t as m } from "./RelationShipList-BVTUyw1-.js";
10
10
  import { t as h } from "./RelationShipDepts-DadyalUU.js";
11
11
  import { useMemo as g, useState as _ } from "react";
@@ -4,15 +4,15 @@ import { c as n, o as r, t as i } from "./useDeptsMemberSelector-xc9GWJaL.js";
4
4
  import { _ as a, a as o, c as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, t as _, u as v, v as y } from "./services/contact/selector.service-cz8fZZaA.js";
5
5
  import { n as b, r as x, t as S } from "./TabGroup-DjfuvblW.js";
6
6
  import { t as C } from "../vendors/useLocale.js";
7
- import { buildDeptTree as w, buildTree as T, findNodeInTree as E, getColorByName as D } from "./utils/index.js";
8
- import { useMemo as O, useRef as k, useState as A } from "react";
9
- import { Avatar as j, Radio as M, Spin as N } from "antd";
10
- import { Checkbox as P, Icon as F, Tree as I } from "@baishuyun/ui-base";
11
- import { useRequest as L } from "ahooks";
12
- import { Fragment as R, jsx as z, jsxs as B } from "react/jsx-runtime";
13
- import { produce as V } from "immer";
7
+ import { buildDeptTree as w, buildTree as T, findNodeInTree as ee, getColorByName as E } from "./utils/index.js";
8
+ import { useMemo as D, useRef as O, useState as k } from "react";
9
+ import { Avatar as A, Radio as j, Spin as M } from "antd";
10
+ import { Checkbox as N, Icon as P, Tree as F } from "@baishuyun/ui-base";
11
+ import { useRequest as I } from "ahooks";
12
+ import { Fragment as L, jsx as R, jsxs as z } from "react/jsx-runtime";
13
+ import { produce as B } from "immer";
14
14
  //#region src/components/DeptsMemberSelector/subcomponents/Entity/Member/MemerList/MemerList.module.scss
15
- var H = {
15
+ var V = {
16
16
  "memer-list__option": "_memer-list__option_1txby_1",
17
17
  "memer-list__option--checkbox": "_memer-list__option--checkbox_1txby_9",
18
18
  "memer-list__option-inner": "_memer-list__option-inner_1txby_12",
@@ -24,7 +24,7 @@ var H = {
24
24
  "memer-list__checkbox": "_memer-list__checkbox_1txby_27",
25
25
  "memer-list__group": "_memer-list__group_1txby_46",
26
26
  "memer-list": "_memer-list_1txby_1"
27
- }, U = (e) => {
27
+ }, H = (e) => {
28
28
  let { list: n, showCheckAll: r = !0 } = e, { t: a } = C(), { value: o, type: s, dispatch: c } = i(), l = s === x.USER, u = s === x.USER_GROUP || s === x.DEPT_USERS, d = o?.[0]?._id, f = (e) => {
29
29
  let t = n?.find((t) => t._id === e.target.value);
30
30
  t && c({
@@ -37,33 +37,33 @@ var H = {
37
37
  payload: e
38
38
  });
39
39
  }, m = o?.map((e) => e._id) || [], h = n.filter((e) => m.includes(e._id)).length;
40
- return /* @__PURE__ */ z("div", {
41
- className: H["memer-list"],
42
- children: /* @__PURE__ */ B("ul", {
43
- className: H["memer-list__list"],
44
- children: [l && /* @__PURE__ */ z(M.Group, {
40
+ return /* @__PURE__ */ R("div", {
41
+ className: V["memer-list"],
42
+ children: /* @__PURE__ */ z("ul", {
43
+ className: V["memer-list__list"],
44
+ children: [l && /* @__PURE__ */ R(j.Group, {
45
45
  value: d,
46
46
  onChange: f,
47
- className: H["memer-list__group"],
47
+ className: V["memer-list__group"],
48
48
  prefixCls: "ant-radio",
49
49
  children: n.map((t) => {
50
- let n = t.nickname || t.name, r = D(n);
51
- return /* @__PURE__ */ z("li", {
52
- className: H["memer-list__option"],
53
- children: /* @__PURE__ */ z(M, {
50
+ let n = t.nickname || t.name, r = E(n);
51
+ return /* @__PURE__ */ R("li", {
52
+ className: V["memer-list__option"],
53
+ children: /* @__PURE__ */ R(j, {
54
54
  value: t._id,
55
- className: H["memer-list__radio"],
55
+ className: V["memer-list__radio"],
56
56
  onClick: (e) => {
57
57
  p(e.target?.value);
58
58
  },
59
- children: /* @__PURE__ */ B("div", {
60
- className: H["memer-list__row"],
59
+ children: /* @__PURE__ */ z("div", {
60
+ className: V["memer-list__row"],
61
61
  children: [
62
- t.avatarurl ? /* @__PURE__ */ z(j, {
62
+ t.avatarurl ? /* @__PURE__ */ R(A, {
63
63
  src: t.avatarurl,
64
64
  size: 20,
65
65
  style: { flexShrink: 0 }
66
- }) : /* @__PURE__ */ z(j, {
66
+ }) : /* @__PURE__ */ R(A, {
67
67
  style: {
68
68
  backgroundColor: r,
69
69
  fontSize: "12px",
@@ -74,8 +74,8 @@ var H = {
74
74
  },
75
75
  children: n.charAt(0)
76
76
  }),
77
- /* @__PURE__ */ z("span", {
78
- className: H["memer-list__name"],
77
+ /* @__PURE__ */ R("span", {
78
+ className: V["memer-list__name"],
79
79
  children: n
80
80
  }),
81
81
  e.badge && e.badge(t)
@@ -84,13 +84,13 @@ var H = {
84
84
  })
85
85
  }, t._id);
86
86
  })
87
- }), u && /* @__PURE__ */ B(R, { children: [r && /* @__PURE__ */ z("li", {
88
- className: t(H["memer-list__option"], H["memer-list__option--checkbox"]),
89
- children: /* @__PURE__ */ z(P, {
87
+ }), u && /* @__PURE__ */ z(L, { children: [r && /* @__PURE__ */ R("li", {
88
+ className: t(V["memer-list__option"], V["memer-list__option--checkbox"]),
89
+ children: /* @__PURE__ */ R(N, {
90
90
  labelPosition: "left",
91
91
  checked: h === n.length,
92
92
  indeterminate: h > 0 && h < n.length,
93
- className: H["memer-list__checkbox"],
93
+ className: V["memer-list__checkbox"],
94
94
  onChange: () => {
95
95
  h === n.length ? c({
96
96
  type: "removeMany",
@@ -100,15 +100,15 @@ var H = {
100
100
  payload: n.map((e) => ({ ...e }))
101
101
  });
102
102
  },
103
- children: /* @__PURE__ */ z("div", {
104
- className: H["memer-list__selected-summary"],
105
- children: /* @__PURE__ */ z("span", { children: a("common.selected", {
103
+ children: /* @__PURE__ */ R("div", {
104
+ className: V["memer-list__selected-summary"],
105
+ children: /* @__PURE__ */ R("span", { children: a("common.selected", {
106
106
  selected: h,
107
107
  total: n.length
108
108
  }) })
109
109
  })
110
110
  })
111
- }), /* @__PURE__ */ z(P.Group, {
111
+ }), /* @__PURE__ */ R(N.Group, {
112
112
  value: m,
113
113
  onChange: (e) => {
114
114
  let t = [], r = [];
@@ -124,23 +124,23 @@ var H = {
124
124
  }
125
125
  });
126
126
  },
127
- className: H["memer-list__group"],
127
+ className: V["memer-list__group"],
128
128
  children: n.map((n) => {
129
- let r = n.nickname || n.name, i = D(r);
130
- return /* @__PURE__ */ z("li", {
131
- className: t(H["memer-list__option"], H["memer-list__option--checkbox"]),
132
- children: /* @__PURE__ */ z(P, {
129
+ let r = n.nickname || n.name, i = E(r);
130
+ return /* @__PURE__ */ R("li", {
131
+ className: t(V["memer-list__option"], V["memer-list__option--checkbox"]),
132
+ children: /* @__PURE__ */ R(N, {
133
133
  labelPosition: "left",
134
134
  value: n._id,
135
- className: H["memer-list__checkbox"],
136
- children: /* @__PURE__ */ B("div", {
137
- className: H["memer-list__checkbox-row"],
135
+ className: V["memer-list__checkbox"],
136
+ children: /* @__PURE__ */ z("div", {
137
+ className: V["memer-list__checkbox-row"],
138
138
  children: [
139
- n.avatarurl ? /* @__PURE__ */ z(j, {
139
+ n.avatarurl ? /* @__PURE__ */ R(A, {
140
140
  src: n.avatarurl,
141
141
  size: 20,
142
142
  style: { flexShrink: 0 }
143
- }) : /* @__PURE__ */ z(j, {
143
+ }) : /* @__PURE__ */ R(A, {
144
144
  style: {
145
145
  backgroundColor: i,
146
146
  fontSize: "12px",
@@ -151,8 +151,8 @@ var H = {
151
151
  },
152
152
  children: r.charAt(0)
153
153
  }),
154
- /* @__PURE__ */ z("span", {
155
- className: H["memer-list__name"],
154
+ /* @__PURE__ */ R("span", {
155
+ className: V["memer-list__name"],
156
156
  children: r
157
157
  }),
158
158
  e.badge && e.badge(n)
@@ -164,46 +164,46 @@ var H = {
164
164
  })] })]
165
165
  })
166
166
  });
167
- }, W = {
167
+ }, U = {
168
168
  "bsy-external-member__all-option": "_bsy-external-member__all-option_1jd7j_1",
169
169
  "bsy-external-member__all-option--selected": "_bsy-external-member__all-option--selected_1jd7j_13",
170
170
  "bsy-external-member__icon": "_bsy-external-member__icon_1jd7j_20",
171
171
  "bsy-external-member__switcher-icon": "_bsy-external-member__switcher-icon_1jd7j_24",
172
172
  "bsy-external-member__switcher-icon--expanded": "_bsy-external-member__switcher-icon--expanded_1jd7j_29",
173
173
  "bsy-external-member__content": "_bsy-external-member__content_1jd7j_32"
174
- }, G = {
174
+ }, W = {
175
175
  "bsy-all-member__all-option": "_bsy-all-member__all-option_8jfkj_1",
176
176
  "bsy-all-member__all-option--selected": "_bsy-all-member__all-option--selected_8jfkj_14"
177
- }, K = (e) => {
177
+ }, G = (e) => {
178
178
  let { t: n } = C();
179
- return /* @__PURE__ */ B("div", {
180
- className: t(G["bsy-all-member__all-option"], { [G["bsy-all-member__all-option--selected"]]: e.selected }),
179
+ return /* @__PURE__ */ z("div", {
180
+ className: t(W["bsy-all-member__all-option"], { [W["bsy-all-member__all-option--selected"]]: e.selected }),
181
181
  onClick: () => e.onSelect(!e.selected),
182
- children: [/* @__PURE__ */ z("div", {
183
- className: G["bsy-all-member__all-option-icon"],
184
- children: e.icon ? e.icon : /* @__PURE__ */ z("svg", {
182
+ children: [/* @__PURE__ */ R("div", {
183
+ className: W["bsy-all-member__all-option-icon"],
184
+ children: e.icon ? e.icon : /* @__PURE__ */ R("svg", {
185
185
  width: "20",
186
186
  height: "20",
187
187
  viewBox: "0 0 20 20",
188
188
  fill: "none",
189
189
  xmlns: "http://www.w3.org/2000/svg",
190
- children: /* @__PURE__ */ z("path", {
190
+ children: /* @__PURE__ */ R("path", {
191
191
  d: "M10 1.25C12.3206 1.25 14.5462 2.17187 16.1872 3.81282C17.8281 5.45376 18.75 7.67936 18.75 10C18.75 12.3206 17.8281 14.5462 16.1872 16.1872C14.5462 17.8281 12.3206 18.75 10 18.75C7.67936 18.75 5.45376 17.8281 3.81282 16.1872C2.17187 14.5462 1.25 12.3206 1.25 10C1.25 7.67936 2.17187 5.45376 3.81282 3.81282C5.45376 2.17187 7.67936 1.25 10 1.25ZM9.4325 5H9.325L9.1125 5.00875C7.60875 5.13 7.165 6.5525 7.165 7.37875C7.13187 7.91241 7.22744 8.44621 7.44367 8.93523C7.6599 9.42424 7.99045 9.85415 8.4075 10.1888C8.52 10.3263 8.57625 10.4987 8.5675 10.675C8.53114 10.7896 8.45307 10.8864 8.34875 10.9462C7.645 11.48 5.14875 12.0837 4.99875 13.2712C4.8925 13.7575 4.13625 14.5675 6.59875 14.8713C7.54875 14.9963 8.50625 15.0487 9.4625 15.0325C15.1913 15.0325 14.0013 13.895 13.8412 13.2512L13.7887 13.0675C13.385 12.0588 11.2987 11.505 10.5062 11.0112L10.3837 10.9275L10.39 10.94L10.35 10.86C10.3352 10.8247 10.3231 10.7884 10.3138 10.7512L10.295 10.6375C10.284 10.4912 10.3023 10.3442 10.3488 10.205C10.3488 10.205 11.5912 9.5125 11.5912 7.37875C11.5375 6.515 11.0588 5 9.4325 5ZM12.9838 6.13125H12.785C12.5898 6.14356 12.3995 6.19815 12.2275 6.29125C12.4987 7.26125 12.8775 8.995 11.4163 10.125C10.8825 10.9363 12.7125 11.475 12.4462 11.315C14.1213 12.0725 14.6062 12.665 14.7175 13.2613C14.8238 13.7463 14.8775 14.0725 14.8775 14.0725C15.4241 13.9831 15.9602 13.8382 16.4775 13.64C16.512 13.3512 16.4937 13.0585 16.4237 12.7762L16.44 12.7863L16.4025 12.6213C16.11 11.765 14.355 11.355 13.8488 10.8938C13.7898 10.8138 13.7528 10.7199 13.7413 10.6213C13.7413 10.3488 13.795 10.2963 13.795 10.2963C14.1359 10.0305 14.4038 9.68268 14.5737 9.28524C14.7435 8.8878 14.8098 8.45377 14.7662 8.02375C14.7125 7.32 14.3337 6.13125 12.9838 6.13125ZM5.9225 6.14125H5.87L5.69 6.155C5.24076 6.2117 4.83017 6.43794 4.54227 6.78743C4.25436 7.13691 4.1109 7.58321 4.14125 8.035C4.08125 8.90375 4.44125 9.75 5.1125 10.3062C5.15324 10.4096 5.17156 10.5203 5.16625 10.6313C5.15471 10.7299 5.11766 10.8238 5.05875 10.9037C4.52625 11.3362 2.68 11.8212 2.52125 12.7975C2.49421 13.0668 2.49421 13.3382 2.52125 13.6075C2.93375 13.8025 3.36875 13.9475 3.81625 14.04C3.81625 14.04 3.87 13.7675 3.97625 13.39C4.03 12.8562 4.84 11.875 6.84 11.1125L6.97 11.0675C7.05625 11.035 7.13875 10.9963 7.22 10.9525C7.4375 10.7925 7.65125 10.52 7.22 10.1412C5.81625 8.0875 6.30125 6.73875 6.515 6.2475C6.32423 6.18149 6.12432 6.14564 5.9225 6.14125Z",
192
192
  fill: "#0265FF"
193
193
  })
194
194
  })
195
- }), /* @__PURE__ */ z("span", { children: e.title || n("member.all") })]
195
+ }), /* @__PURE__ */ R("span", { children: e.title || n("member.all") })]
196
196
  });
197
- }, q = /* @__PURE__ */ function(e) {
197
+ }, K = /* @__PURE__ */ function(e) {
198
198
  return e.DOCK_PERSON_GROUP = "dockcorp", e.DOCK_DEPARTMENT = "dockcorpdept", e;
199
- }(q || {}), ee = (n) => {
199
+ }(K || {}), q = (n) => {
200
200
  let { loading: r = !1 } = n, { containerHeight: a } = i(), { t: o } = C(), s = [{
201
201
  label: o("member.contact"),
202
- value: q.DOCK_PERSON_GROUP
202
+ value: K.DOCK_PERSON_GROUP
203
203
  }, {
204
204
  label: o("department.title"),
205
- value: q.DOCK_DEPARTMENT
206
- }], [c, l] = A(q.DOCK_PERSON_GROUP), u = (e, t) => {
205
+ value: K.DOCK_DEPARTMENT
206
+ }], [c, l] = k(K.DOCK_PERSON_GROUP), u = (e, t) => {
207
207
  let n = [];
208
208
  for (let r of e) if (r.type === t) if (t === "dockcorpdept") n.push({
209
209
  ...r,
@@ -225,25 +225,25 @@ var H = {
225
225
  }
226
226
  return n;
227
227
  }, d = u(n.data, c), f = d?.map((e) => e.departmentId);
228
- return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(S, {
228
+ return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(S, {
229
229
  tabs: s,
230
230
  value: c,
231
231
  onChange: l
232
- }), /* @__PURE__ */ z(e, {
232
+ }), /* @__PURE__ */ R(e, {
233
233
  style: { height: a - 34 },
234
- classNames: { contentEl: W["bsy-external-member__content"] },
235
- children: /* @__PURE__ */ B("div", {
236
- className: W["bsy-external-member__content"],
237
- children: [/* @__PURE__ */ z(K, {
238
- title: c === q.DOCK_PERSON_GROUP ? o("member.allContact") : void 0,
234
+ classNames: { contentEl: U["bsy-external-member__content"] },
235
+ children: /* @__PURE__ */ z("div", {
236
+ className: U["bsy-external-member__content"],
237
+ children: [/* @__PURE__ */ R(G, {
238
+ title: c === K.DOCK_PERSON_GROUP ? o("member.allContact") : void 0,
239
239
  selected: n.selectLevel === n.unique_all,
240
240
  onSelect: () => n.onSelect(n.unique_all),
241
- icon: /* @__PURE__ */ z(F, {
241
+ icon: /* @__PURE__ */ R(P, {
242
242
  name: "contactperson",
243
243
  size: 20,
244
244
  color: "#6f829e"
245
245
  })
246
- }), d.length > 0 && !r && /* @__PURE__ */ z(I, {
246
+ }), d.length > 0 && !r && /* @__PURE__ */ R(F, {
247
247
  data: d,
248
248
  fieldNames: {
249
249
  title: "name",
@@ -254,13 +254,13 @@ var H = {
254
254
  onSelect: (e) => n.onSelect(e),
255
255
  parentCheckable: !0,
256
256
  defaultExpandedKeys: f.length === 1 ? f : [],
257
- icon: () => /* @__PURE__ */ z(F, {
257
+ icon: () => /* @__PURE__ */ R(P, {
258
258
  name: "dept-one",
259
- className: W["bsy-external-member__icon"]
259
+ className: U["bsy-external-member__icon"]
260
260
  }),
261
- switcherIcon: (e) => /* @__PURE__ */ z(F, {
261
+ switcherIcon: (e) => /* @__PURE__ */ R(P, {
262
262
  name: "xiangxiazhankai-11",
263
- className: t(W["bsy-external-member__switcher-icon"], { [W["bsy-external-member__switcher-icon--expanded"]]: e })
263
+ className: t(U["bsy-external-member__switcher-icon"], { [U["bsy-external-member__switcher-icon--expanded"]]: e })
264
264
  })
265
265
  })]
266
266
  })
@@ -272,16 +272,16 @@ var H = {
272
272
  "internal-member__switcher--expanded": "_internal-member__switcher--expanded_1aszs_13"
273
273
  }, te = (n) => {
274
274
  let { loading: r, onSelect: a, unique_all: o, selectLevel: s } = n, { containerHeight: c } = i(), l = n.data?.map((e) => e.departmentId);
275
- return /* @__PURE__ */ B(e, {
275
+ return /* @__PURE__ */ z(e, {
276
276
  style: {
277
277
  height: c - 8,
278
278
  padding: "4px"
279
279
  },
280
280
  classNames: { contentEl: J["internal-member__content"] },
281
- children: [/* @__PURE__ */ z(K, {
281
+ children: [/* @__PURE__ */ R(G, {
282
282
  selected: s === o,
283
283
  onSelect: () => a(o)
284
- }), n.data.length > 0 && !r && /* @__PURE__ */ z(I, {
284
+ }), n.data.length > 0 && !r && /* @__PURE__ */ R(F, {
285
285
  data: n.data,
286
286
  fieldNames: {
287
287
  title: "name",
@@ -292,12 +292,12 @@ var H = {
292
292
  onSelect: (e) => n.onSelect(e),
293
293
  parentCheckable: !0,
294
294
  defaultExpandedKeys: l.length === 1 ? l : [],
295
- icon: () => /* @__PURE__ */ z(F, {
295
+ icon: () => /* @__PURE__ */ R(P, {
296
296
  name: "dept-one",
297
297
  className: J["internal-member__icon"],
298
298
  size: 16
299
299
  }),
300
- switcherIcon: (e) => /* @__PURE__ */ z(F, {
300
+ switcherIcon: (e) => /* @__PURE__ */ R(P, {
301
301
  name: "xiangxiazhankai-11",
302
302
  className: t(J["internal-member__switcher"], { [J["internal-member__switcher--expanded"]]: e })
303
303
  })
@@ -316,7 +316,7 @@ var H = {
316
316
  "member-panel__empty": "_member-panel__empty_1lhyj_48",
317
317
  "member-panel__empty-text": "_member-panel__empty-text_1lhyj_55"
318
318
  }, X = Symbol("all key"), ne = () => {
319
- let e = i(), { containerHeight: t, type: a, requestContext: o, limits: s } = e, c = e.memberPanelRequestGuard ?? r, { t: l } = C(), [u, d] = A([{
319
+ let e = i(), { containerHeight: t, type: a, requestContext: o, limits: s } = e, c = e.memberPanelRequestGuard ?? r, { t: l } = C(), [u, d] = k([{
320
320
  key: "internal",
321
321
  label: l("member.internal"),
322
322
  visible: !1
@@ -324,23 +324,36 @@ var H = {
324
324
  key: "external",
325
325
  label: l("member.external"),
326
326
  visible: !1
327
- }]), m = k(!0), [v, y] = A("internal"), [x, S] = A(X), D = (e) => {
328
- y(e), S(X);
329
- }, { data: j, loading: M } = L(async () => a !== "deptusers" && !c.enabled ? {
327
+ }]), m = O(!0), v = O({
328
+ internal: !1,
329
+ external: !1
330
+ }), y = O(), [x, S] = k("internal"), [E, A] = k(X), j = JSON.stringify({
331
+ type: a,
332
+ requestContext: o,
333
+ limits: s,
334
+ memberPanelRequestGuardEnabled: c.enabled
335
+ });
336
+ y.current !== j && (y.current = j, m.current = !0, v.current = {
337
+ internal: !1,
338
+ external: !1
339
+ });
340
+ let M = (e) => {
341
+ S(e), A(X);
342
+ }, { data: N, loading: P } = I(async () => a !== "deptusers" && !c.enabled ? {
330
343
  departments: [],
331
344
  departments_count: 0,
332
345
  label_corp_list: [],
333
346
  label_corp_count: 0
334
347
  } : a === "deptusers" ? p({
335
348
  requestContext: o,
336
- hasDeptDock: v === "external"
349
+ hasDeptDock: x === "external"
337
350
  }) : h({
338
351
  requestContext: o,
339
352
  limits: s,
340
- hasDeptDock: v === "external"
353
+ hasDeptDock: x === "external"
341
354
  }), {
342
355
  refreshDeps: [
343
- v,
356
+ x,
344
357
  a,
345
358
  o,
346
359
  s,
@@ -348,24 +361,27 @@ var H = {
348
361
  ],
349
362
  onSuccess: (e) => {
350
363
  if (!e) return;
351
- let t = e.departments_count > 0, n = e.label_corp_count > 0;
352
- d(V((e) => {
353
- e[0].visible = t, e[1].visible = n;
354
- })), m.current && (m.current = !1, (t || n) && y(t ? "internal" : "external"));
364
+ let t = e.departments_count > 0, n = e.label_corp_count > 0, r = {
365
+ internal: v.current.internal || t,
366
+ external: v.current.external || n
367
+ };
368
+ v.current = r, d(B((e) => {
369
+ e[0].visible = r.internal, e[1].visible = r.external;
370
+ })), m.current && (m.current = !1, (t || n) && S(t ? "internal" : "external"));
355
371
  }
356
- }), N = O(() => {
357
- if (!j) return {
372
+ }), F = D(() => {
373
+ if (!N) return {
358
374
  internal: [],
359
375
  external: []
360
376
  };
361
- let e = w(j.departments || []), t = (e) => e.filter((e) => (e.children &&= t(e.children), !((e.type === "label" || e.type === "dockcorpdept") && (!e.children || e.children.length === 0)))).map((e) => ({
377
+ let e = w(N.departments || []), t = (e) => e.filter((e) => (e.children &&= t(e.children), !((e.type === "label" || e.type === "dockcorpdept") && (!e.children || e.children.length === 0)))).map((e) => ({
362
378
  ...e,
363
379
  checkable: e.type !== "label" && e.type !== "dockcorpdept",
364
- icon: /* @__PURE__ */ z(b, {
380
+ icon: /* @__PURE__ */ R(b, {
365
381
  type: e.type,
366
382
  size: 16
367
383
  })
368
- })), n = j.label_corp_list || [], r = n.length ? T(n, {
384
+ })), n = N.label_corp_list || [], r = n.length ? T(n, {
369
385
  value: "departmentId",
370
386
  children: "children",
371
387
  parentId: "parentId"
@@ -374,75 +390,75 @@ var H = {
374
390
  internal: e,
375
391
  external: t(r.length === 1 && r[0]?.type === "label" ? r[0].children || [] : r)
376
392
  };
377
- }, [j]), P = v === "internal" ? N.internal : N.external, F = O(() => {
378
- if (!(v !== "external" || x === X)) return E(x, N.external, {
393
+ }, [N]), L = x === "internal" ? F.internal : F.external, z = D(() => {
394
+ if (!(x !== "external" || E === X)) return ee(E, F.external, {
379
395
  title: "name",
380
396
  parentId: "parentId",
381
397
  value: "_id",
382
398
  children: "children"
383
399
  })?.owner_corpid;
384
400
  }, [
385
- v,
386
401
  x,
387
- N.external
388
- ]), { data: I, loading: R } = L(async () => {
389
- if (!v || a !== "deptusers" && !c.enabled) return [];
402
+ E,
403
+ F.external
404
+ ]), { data: V, loading: H } = I(async () => {
405
+ if (!x || a !== "deptusers" && !c.enabled) return [];
390
406
  if (a === "deptusers") return (await g({
391
407
  requestContext: o,
392
- deptId: x === X ? "" : x,
408
+ deptId: E === X ? "" : E,
393
409
  limit: 1e4
394
410
  })).users || [];
395
411
  let e = await f({
396
412
  requestContext: o,
397
413
  limits: s,
398
- departmentId: x === X ? null : x,
414
+ departmentId: E === X ? null : E,
399
415
  limit: _,
400
- hasDeptDock: v === "external",
401
- currentCorpId: F
416
+ hasDeptDock: x === "external",
417
+ currentCorpId: z
402
418
  });
403
- return v === "external" ? e.dock_user_list || [] : e.users || [];
419
+ return x === "external" ? e.dock_user_list || [] : e.users || [];
404
420
  }, { refreshDeps: [[
405
421
  a,
406
- v,
407
- String(x),
408
- F || "",
422
+ x,
423
+ String(E),
424
+ z || "",
409
425
  o?.appId || "",
410
426
  o?.entryId || ""
411
427
  ].join(":"), c.enabled] });
412
428
  return {
413
429
  containerHeight: t,
414
430
  menuItems: u,
415
- activeKey: v,
416
- setActiveKey: D,
417
- selectKey: x,
418
- setSelectKey: S,
431
+ activeKey: x,
432
+ setActiveKey: M,
433
+ selectKey: E,
434
+ setSelectKey: A,
419
435
  uniqueAllKey: X,
420
- treeData: N,
421
- currentTreeData: P,
422
- userList: I || [],
423
- loading: M,
424
- memberLoading: R,
436
+ treeData: F,
437
+ currentTreeData: L,
438
+ userList: V || [],
439
+ loading: P,
440
+ memberLoading: H,
425
441
  showUnavailableOverlay: c.reason === n.LIMIT_WIDGET_EMPTY_ARRAY
426
442
  };
427
443
  }, re = () => {
428
444
  let { t: n } = C(), r = ne(), i = r.userList;
429
- return r.showUnavailableOverlay ? /* @__PURE__ */ z("div", {
445
+ return r.showUnavailableOverlay ? /* @__PURE__ */ R("div", {
430
446
  className: Y["member-panel"],
431
- children: /* @__PURE__ */ z("div", {
447
+ children: /* @__PURE__ */ R("div", {
432
448
  className: Y["member-panel__overlay-empty"],
433
- children: /* @__PURE__ */ z("span", {
449
+ children: /* @__PURE__ */ R("span", {
434
450
  className: Y["member-panel__empty-text"],
435
451
  children: n("member.noAvailable")
436
452
  })
437
453
  })
438
- }) : /* @__PURE__ */ B("div", {
454
+ }) : /* @__PURE__ */ z("div", {
439
455
  className: Y["member-panel"],
440
456
  children: [
441
- /* @__PURE__ */ z("aside", {
457
+ /* @__PURE__ */ R("aside", {
442
458
  className: Y["member-panel__sidebar"],
443
- children: /* @__PURE__ */ z("ul", {
459
+ children: /* @__PURE__ */ R("ul", {
444
460
  className: Y["member-panel__menu"],
445
- children: r.menuItems.filter((e) => e.visible).map((e) => /* @__PURE__ */ z("li", {
461
+ children: r.menuItems.filter((e) => e.visible).map((e) => /* @__PURE__ */ R("li", {
446
462
  onClick: () => {
447
463
  r.setActiveKey(e.key);
448
464
  },
@@ -451,16 +467,16 @@ var H = {
451
467
  }, e.key))
452
468
  })
453
469
  }),
454
- /* @__PURE__ */ z("section", {
470
+ /* @__PURE__ */ R("section", {
455
471
  className: Y["member-panel__panel"],
456
- children: /* @__PURE__ */ B(N, {
472
+ children: /* @__PURE__ */ z(M, {
457
473
  spinning: r.loading,
458
- children: [r.activeKey === "internal" && /* @__PURE__ */ z(te, {
474
+ children: [r.activeKey === "internal" && /* @__PURE__ */ R(te, {
459
475
  unique_all: r.uniqueAllKey,
460
476
  selectLevel: r.selectKey,
461
477
  onSelect: r.setSelectKey,
462
478
  data: r.currentTreeData
463
- }), r.activeKey === "external" && /* @__PURE__ */ z(ee, {
479
+ }), r.activeKey === "external" && /* @__PURE__ */ R(q, {
464
480
  unique_all: r.uniqueAllKey,
465
481
  selectLevel: r.selectKey,
466
482
  onSelect: r.setSelectKey,
@@ -468,20 +484,20 @@ var H = {
468
484
  })]
469
485
  })
470
486
  }),
471
- /* @__PURE__ */ B("section", {
487
+ /* @__PURE__ */ z("section", {
472
488
  className: t(Y["member-panel__panel"], Y["member-panel__panel--list"]),
473
- children: [/* @__PURE__ */ z(N, {
489
+ children: [/* @__PURE__ */ R(M, {
474
490
  spinning: r.memberLoading,
475
- children: /* @__PURE__ */ z(e, {
491
+ children: /* @__PURE__ */ R(e, {
476
492
  style: { height: r.containerHeight - 8 },
477
- children: i.length > 0 && /* @__PURE__ */ z("div", {
493
+ children: i.length > 0 && /* @__PURE__ */ R("div", {
478
494
  className: Y["member-panel__list-wrapper"],
479
- children: /* @__PURE__ */ z(U, { list: i })
495
+ children: /* @__PURE__ */ R(H, { list: i })
480
496
  })
481
497
  })
482
- }), i.length === 0 && !r.memberLoading && /* @__PURE__ */ z("div", {
498
+ }), i.length === 0 && !r.memberLoading && /* @__PURE__ */ R("div", {
483
499
  className: Y["member-panel__empty"],
484
- children: /* @__PURE__ */ z("span", {
500
+ children: /* @__PURE__ */ R("span", {
485
501
  className: Y["member-panel__empty-text"],
486
502
  children: n("member.noAvailable")
487
503
  })
@@ -499,7 +515,7 @@ var H = {
499
515
  "position-panel__badge": "_position-panel__badge_14wpw_38",
500
516
  "position-panel__empty": "_position-panel__empty_14wpw_48"
501
517
  }, ie = () => {
502
- let { containerHeight: e, type: t, requestContext: n, limits: r } = i(), [o, s] = A(), { data: c, loading: l } = L(() => t === x.DEPT_USERS ? m({ requestContext: n }) : a({
518
+ let { containerHeight: e, type: t, requestContext: n, limits: r } = i(), [o, s] = k(), { data: c, loading: l } = I(() => t === x.DEPT_USERS ? m({ requestContext: n }) : a({
503
519
  requestContext: n,
504
520
  limits: r
505
521
  }), {
@@ -511,7 +527,7 @@ var H = {
511
527
  n,
512
528
  r
513
529
  ]
514
- }), u = c?.items || [], f = o === void 0 ? void 0 : u[o], p = typeof f == "string" ? f : f?.job_title || f?.name || "", h = typeof f == "string" ? void 0 : f?._id || f?.id, { data: g, loading: _ } = L(async () => p && (await d({
530
+ }), u = c?.items || [], f = o === void 0 ? void 0 : u[o], p = typeof f == "string" ? f : f?.job_title || f?.name || "", h = typeof f == "string" ? void 0 : f?._id || f?.id, { data: g, loading: _ } = I(async () => p && (await d({
515
531
  requestContext: n,
516
532
  jobTitle: p,
517
533
  jobTitleId: h,
@@ -535,18 +551,18 @@ var H = {
535
551
  };
536
552
  }, ae = () => {
537
553
  let { t: n } = C(), r = ie(), i = r.memberList;
538
- return /* @__PURE__ */ B("div", {
554
+ return /* @__PURE__ */ z("div", {
539
555
  className: Z["position-panel"],
540
- children: [/* @__PURE__ */ z("div", {
556
+ children: [/* @__PURE__ */ R("div", {
541
557
  className: Z["position-panel__menu"],
542
- children: /* @__PURE__ */ z(N, {
558
+ children: /* @__PURE__ */ R(M, {
543
559
  spinning: r.jobLoading,
544
560
  tip: n("common.loading"),
545
- children: /* @__PURE__ */ z(e, {
561
+ children: /* @__PURE__ */ R(e, {
546
562
  style: { height: r.containerHeight - 8 },
547
- children: /* @__PURE__ */ z("ul", {
563
+ children: /* @__PURE__ */ R("ul", {
548
564
  className: Z["position-panel__menu-list"],
549
- children: r.positionList.map((e, n) => /* @__PURE__ */ z("li", {
565
+ children: r.positionList.map((e, n) => /* @__PURE__ */ R("li", {
550
566
  onClick: () => {
551
567
  r.setActivePositionIndex(n);
552
568
  },
@@ -556,27 +572,27 @@ var H = {
556
572
  })
557
573
  })
558
574
  })
559
- }), /* @__PURE__ */ B("div", {
575
+ }), /* @__PURE__ */ z("div", {
560
576
  className: Z["position-panel__list"],
561
- children: [/* @__PURE__ */ z(N, {
577
+ children: [/* @__PURE__ */ R(M, {
562
578
  spinning: r.memberLoading,
563
579
  tip: n("common.loading"),
564
- children: /* @__PURE__ */ z(e, {
580
+ children: /* @__PURE__ */ R(e, {
565
581
  style: { height: r.containerHeight - 8 },
566
- children: i.length > 0 && /* @__PURE__ */ z(U, {
582
+ children: i.length > 0 && /* @__PURE__ */ R(H, {
567
583
  list: i,
568
- badge: (e) => /* @__PURE__ */ z("div", {
584
+ badge: (e) => /* @__PURE__ */ R("div", {
569
585
  className: Z["position-panel__badge"],
570
- children: /* @__PURE__ */ z("span", {
586
+ children: /* @__PURE__ */ R("span", {
571
587
  title: e.deptnames,
572
588
  children: e.deptnames
573
589
  })
574
590
  })
575
591
  })
576
592
  })
577
- }), i.length === 0 && !r.memberLoading && /* @__PURE__ */ z("div", {
593
+ }), i.length === 0 && !r.memberLoading && /* @__PURE__ */ R("div", {
578
594
  className: Z["position-panel__empty"],
579
- children: /* @__PURE__ */ z("span", { children: n("member.noAvailable") })
595
+ children: /* @__PURE__ */ R("span", { children: n("member.noAvailable") })
580
596
  })]
581
597
  })]
582
598
  });
@@ -597,7 +613,7 @@ var H = {
597
613
  "role-panel__empty": "_role-panel__empty_1efoc_72",
598
614
  "role-panel__empty-text": "_role-panel__empty-text_1efoc_79"
599
615
  }, oe = () => {
600
- let { containerHeight: e, type: t, requestContext: n, limits: r } = i(), { t: a } = C(), [o, c] = A([{
616
+ let { containerHeight: e, type: t, requestContext: n, limits: r } = i(), { t: a } = C(), [o, c] = k([{
601
617
  key: "internal",
602
618
  label: a("role.internal"),
603
619
  visible: !1
@@ -605,11 +621,11 @@ var H = {
605
621
  key: "external",
606
622
  label: a("role.external"),
607
623
  visible: !1
608
- }]), [l, u] = A(), [d, f] = A(), m = k(), g = k({
624
+ }]), [l, u] = k(), [d, f] = k(), m = O(), g = O({
609
625
  internal: [],
610
626
  external: []
611
627
  });
612
- L(() => t === x.DEPT_USERS ? p({
628
+ I(() => t === x.DEPT_USERS ? p({
613
629
  requestContext: n,
614
630
  hasDeptDock: !1
615
631
  }) : h({
@@ -620,7 +636,7 @@ var H = {
620
636
  onSuccess: (e) => {
621
637
  if (!e) return;
622
638
  let t = e.departments_count > 0, n = e.label_corp_count > 0;
623
- c(V((e) => {
639
+ c(B((e) => {
624
640
  e[0].visible = t, e[1].visible = n;
625
641
  })), t ? (m.current = "internal", u("internal")) : n ? (m.current = "external", u("external")) : m.current = void 0;
626
642
  },
@@ -630,9 +646,12 @@ var H = {
630
646
  r
631
647
  ]
632
648
  });
633
- let { loading: b } = L(() => t === x.DEPT_USERS ? s({ requestContext: n }) : y({
649
+ let { loading: b } = I(() => l ? t === x.DEPT_USERS ? s({ requestContext: n }) : y({
634
650
  requestContext: n,
635
651
  limits: r
652
+ }) : Promise.resolve({
653
+ roles: [],
654
+ dock_role: []
636
655
  }), {
637
656
  onSuccess: (e) => {
638
657
  if (!e) {
@@ -666,7 +685,7 @@ var H = {
666
685
  r,
667
686
  l
668
687
  ]
669
- }), { data: S, loading: w } = L(async () => {
688
+ }), { data: S, loading: w } = I(async () => {
670
689
  if (!d) return [];
671
690
  let e = await v({
672
691
  requestContext: n,
@@ -694,46 +713,46 @@ var H = {
694
713
  loading: b,
695
714
  memberLoading: w
696
715
  };
697
- }, se = () => /* @__PURE__ */ B("svg", {
716
+ }, se = () => /* @__PURE__ */ z("svg", {
698
717
  xmlns: "http://www.w3.org/2000/svg",
699
718
  width: "16",
700
719
  height: "16",
701
720
  viewBox: "0 0 16 16",
702
721
  fill: "none",
703
- children: [/* @__PURE__ */ z("path", {
722
+ children: [/* @__PURE__ */ R("path", {
704
723
  d: "M6.91689 1.17578C8.59289 1.17578 10.0489 2.29878 10.4369 3.88878C10.8249 5.47878 10.0419 7.11978 8.54589 7.85578C8.49878 7.86731 8.4554 7.89073 8.41989 7.92378C8.40916 7.92486 8.3992 7.92984 8.39189 7.93778C8.3375 8.00344 8.30773 8.08602 8.30773 8.17128C8.30773 8.25654 8.3375 8.33913 8.39189 8.40478C8.40589 8.40478 8.40589 8.40478 8.40589 8.41978C8.51089 8.43478 8.61389 8.45778 8.71589 8.48878C9.67047 8.74298 10.5595 9.19889 11.3229 9.82578C10.634 9.60133 9.89434 9.58375 9.19553 9.77522C8.49671 9.96669 7.86935 10.3588 7.39105 10.9031C6.91274 11.4474 6.60448 12.1199 6.50439 12.8375C6.4043 13.5552 6.51677 14.2864 6.82789 14.9408H0.941894C0.824535 14.9397 0.708692 14.9141 0.601765 14.8658C0.494839 14.8174 0.399178 14.7472 0.320894 14.6598C0.243944 14.5736 0.186578 14.4717 0.152743 14.3613C0.118908 14.2508 0.109407 14.1343 0.124894 14.0198C0.507894 11.3728 2.46389 9.19978 5.10489 8.48878C5.20689 8.46078 5.30989 8.43778 5.41489 8.41878L5.42889 8.40478C5.46029 8.37464 5.48527 8.33846 5.50234 8.29842C5.5194 8.25838 5.5282 8.21531 5.5282 8.17178C5.5282 8.12826 5.5194 8.08518 5.50234 8.04514C5.48527 8.0051 5.46029 7.96892 5.42889 7.93878C5.41605 7.93306 5.40549 7.9232 5.39889 7.91078C5.36507 7.88725 5.32802 7.86872 5.28889 7.85578C3.79089 7.11978 3.00789 5.47978 3.39589 3.88978C3.78389 2.29978 5.23989 1.17678 6.91589 1.17678L6.91689 1.17578Z",
705
724
  fill: "#6F81BD"
706
- }), /* @__PURE__ */ z("path", {
725
+ }), /* @__PURE__ */ R("path", {
707
726
  d: "M13.7918 11.8018C14.2438 11.8068 14.6598 12.0028 14.9758 12.3078C15.2878 12.6258 15.4588 13.0558 15.4528 13.5008L15.4488 13.5398C15.4463 13.9749 15.2741 14.3918 14.9688 14.7018C14.8161 14.8609 14.6329 14.9876 14.4302 15.0745C14.2275 15.1614 14.0094 15.2068 13.7888 15.2078L12.7458 15.1898C12.626 15.1876 12.5119 15.1378 12.4287 15.0514C12.3455 14.965 12.3001 14.8492 12.3023 14.7293C12.3046 14.6094 12.3544 14.4954 12.4407 14.4122C12.5271 14.329 12.643 14.2836 12.7628 14.2858L13.7988 14.3028C13.8967 14.3014 13.9933 14.2804 14.083 14.2411C14.1726 14.2017 14.2535 14.1449 14.3208 14.0738C14.4694 13.9206 14.552 13.7152 14.5508 13.5018C14.5541 13.3989 14.5367 13.2963 14.4998 13.2001C14.4629 13.104 14.4071 13.0161 14.3358 12.9418C14.2665 12.8663 14.1823 12.806 14.0885 12.7647C13.9947 12.7233 13.8933 12.7019 13.7908 12.7018L12.1528 12.7048C12.0534 12.7057 11.9552 12.7265 11.864 12.766C11.7728 12.8055 11.6905 12.8629 11.6218 12.9348C11.4735 13.0878 11.3909 13.2927 11.3918 13.5058C11.3922 13.5652 11.3808 13.6241 11.3584 13.6792C11.3359 13.7342 11.3029 13.7843 11.2611 13.8265C11.2193 13.8688 11.1696 13.9024 11.1148 13.9254C11.06 13.9485 11.0013 13.9605 10.9418 13.9608C10.8824 13.9611 10.8235 13.9498 10.7685 13.9273C10.7135 13.9049 10.6634 13.8718 10.6211 13.83C10.5789 13.7883 10.5453 13.7386 10.5222 13.6838C10.4992 13.629 10.4872 13.5702 10.4868 13.5108C10.4845 13.063 10.6579 12.6321 10.9698 12.3108C11.1226 12.1511 11.306 12.0239 11.5091 11.9368C11.7122 11.8496 11.9308 11.8044 12.1518 11.8038L13.7918 11.8018ZM10.2688 11.7648C10.3885 11.7616 10.5044 11.8061 10.5913 11.8884C10.6781 11.9707 10.7287 12.0842 10.7318 12.2038C10.735 12.3234 10.6906 12.4394 10.6082 12.5262C10.5259 12.6131 10.4125 12.6636 10.2928 12.6668L9.19984 12.6968C8.99213 12.7035 8.79511 12.7905 8.6503 12.9396C8.50549 13.0886 8.4242 13.2881 8.42355 13.4959C8.4229 13.7037 8.50295 13.9037 8.64682 14.0536C8.7907 14.2036 8.98717 14.2919 9.19484 14.2998L10.8308 14.2968C10.9303 14.2961 11.0285 14.2754 11.1198 14.2359C11.211 14.1963 11.2933 14.1389 11.3618 14.0668C11.5102 13.9134 11.5927 13.7082 11.5918 13.4948C11.593 13.4352 11.6059 13.3764 11.6298 13.3217C11.6537 13.2671 11.6882 13.2177 11.7312 13.1764C11.7741 13.1351 11.8249 13.1026 11.8804 13.0809C11.9359 13.0592 11.9952 13.0486 12.0548 13.0498C12.2948 13.0568 12.4868 13.2478 12.4948 13.4878C12.4988 13.9378 12.3248 14.3698 12.0118 14.6928C11.7028 15.0148 11.2768 15.1978 10.8318 15.1998L9.18884 15.2008C8.9745 15.2015 8.76215 15.1598 8.56407 15.0779C8.36598 14.996 8.18611 14.8757 8.03484 14.7238C7.87424 14.563 7.74689 14.3722 7.66007 14.1621C7.57325 13.9521 7.52866 13.7271 7.52884 13.4998C7.52611 13.0548 7.6984 12.6265 8.00857 12.3074C8.31873 11.9882 8.74192 11.8038 9.18684 11.7938L10.2688 11.7648Z",
708
727
  fill: "#6F81BD"
709
728
  })]
710
729
  }), ce = () => {
711
730
  let { t: n } = C(), r = oe(), i = r.userList, a = r.roleTreeList;
712
- return /* @__PURE__ */ B("div", {
731
+ return /* @__PURE__ */ z("div", {
713
732
  className: Q["role-panel"],
714
733
  children: [
715
- /* @__PURE__ */ z("aside", {
734
+ /* @__PURE__ */ R("aside", {
716
735
  className: Q["role-panel__menu"],
717
- children: /* @__PURE__ */ z("ul", {
736
+ children: /* @__PURE__ */ R("ul", {
718
737
  className: Q["role-panel__menu-list"],
719
- children: r.menuItems.filter((e) => e.visible).map((e) => /* @__PURE__ */ z("li", {
738
+ children: r.menuItems.filter((e) => e.visible).map((e) => /* @__PURE__ */ R("li", {
720
739
  onClick: () => r.setActiveKey(e.key),
721
740
  className: t(Q["role-panel__menu-item"], { [Q["role-panel__menu-item--active"]]: r.activeKey === e.key }),
722
741
  children: e.label
723
742
  }, e.key))
724
743
  })
725
744
  }),
726
- /* @__PURE__ */ z("section", {
745
+ /* @__PURE__ */ R("section", {
727
746
  className: Q["role-panel__tree-section"],
728
- children: /* @__PURE__ */ z(N, {
747
+ children: /* @__PURE__ */ R(M, {
729
748
  spinning: r.loading,
730
749
  tip: n("common.loading"),
731
- children: /* @__PURE__ */ B(e, {
750
+ children: /* @__PURE__ */ z(e, {
732
751
  style: {
733
752
  height: r.containerHeight - 8,
734
753
  padding: "4px"
735
754
  },
736
- children: [a.length > 0 && /* @__PURE__ */ z(I, {
755
+ children: [a.length > 0 && /* @__PURE__ */ R(F, {
737
756
  showSwitcher: !1,
738
757
  data: a,
739
758
  fieldNames: {
@@ -744,18 +763,18 @@ var H = {
744
763
  selectedKeys: r.roleId ? [r.roleId] : [],
745
764
  onSelect: (e) => r.setRoleId(e),
746
765
  parentCheckable: !0,
747
- icon: (e) => e.children && e.children.length > 0 ? /* @__PURE__ */ z(F, {
766
+ icon: (e) => e.children && e.children.length > 0 ? /* @__PURE__ */ R(P, {
748
767
  name: "dept-one",
749
768
  className: Q["role-panel__tree-icon"],
750
769
  size: 16
751
- }) : /* @__PURE__ */ z(se, {}),
752
- switcherIcon: (e) => /* @__PURE__ */ z(F, {
770
+ }) : /* @__PURE__ */ R(se, {}),
771
+ switcherIcon: (e) => /* @__PURE__ */ R(P, {
753
772
  name: "xiangxiazhankai-11",
754
773
  className: t(Q["role-panel__switcher-icon"], { [Q["role-panel__switcher-icon--expanded"]]: e })
755
774
  })
756
- }), a.length === 0 && !r.loading && /* @__PURE__ */ z("div", {
775
+ }), a.length === 0 && !r.loading && /* @__PURE__ */ R("div", {
757
776
  className: Q["role-panel__tree-empty"],
758
- children: /* @__PURE__ */ z("span", {
777
+ children: /* @__PURE__ */ R("span", {
759
778
  className: Q["role-panel__tree-empty-text"],
760
779
  children: n("role.noAvailable")
761
780
  })
@@ -763,28 +782,28 @@ var H = {
763
782
  })
764
783
  })
765
784
  }),
766
- /* @__PURE__ */ B("section", {
785
+ /* @__PURE__ */ z("section", {
767
786
  className: Q["role-panel__list-section"],
768
- children: [/* @__PURE__ */ z(N, {
787
+ children: [/* @__PURE__ */ R(M, {
769
788
  spinning: r.memberLoading,
770
789
  tip: n("common.loading"),
771
- children: /* @__PURE__ */ z(e, {
790
+ children: /* @__PURE__ */ R(e, {
772
791
  style: {
773
792
  height: r.containerHeight - 8,
774
793
  padding: "4px"
775
794
  },
776
- children: i.length > 0 && /* @__PURE__ */ z(U, {
795
+ children: i.length > 0 && /* @__PURE__ */ R(H, {
777
796
  list: i,
778
- badge: (e) => /* @__PURE__ */ z("span", {
797
+ badge: (e) => /* @__PURE__ */ R("span", {
779
798
  className: Q["role-panel__badge"],
780
799
  title: e.deptnames,
781
800
  children: e.deptnames
782
801
  })
783
802
  })
784
803
  })
785
- }), i.length === 0 && !r.memberLoading && /* @__PURE__ */ z("div", {
804
+ }), i.length === 0 && !r.memberLoading && /* @__PURE__ */ R("div", {
786
805
  className: Q["role-panel__empty"],
787
- children: /* @__PURE__ */ z("span", {
806
+ children: /* @__PURE__ */ R("span", {
788
807
  className: Q["role-panel__empty-text"],
789
808
  children: n("member.noAvailable")
790
809
  })
@@ -808,7 +827,7 @@ var H = {
808
827
  "extra-contact-panel__empty": "_extra-contact-panel__empty_4tyr0_74",
809
828
  "extra-contact-panel__empty-text": "_extra-contact-panel__empty-text_4tyr0_83"
810
829
  }, le = () => {
811
- let { containerHeight: e, type: t, requestContext: n, limits: r } = i(), { t: a } = C(), [s] = A([{
830
+ let { containerHeight: e, type: t, requestContext: n, limits: r } = i(), { t: a } = C(), [s] = k([{
812
831
  key: "default",
813
832
  label: a("externalContact.defaultGroup"),
814
833
  visible: !0
@@ -816,9 +835,9 @@ var H = {
816
835
  key: "custom",
817
836
  label: a("externalContact.customGroup"),
818
837
  visible: !0
819
- }]), [d, f] = A("default"), [p, m] = A(), h = (e) => {
838
+ }]), [d, f] = k("default"), [p, m] = k(), h = (e) => {
820
839
  f(e), e === "default" && m(void 0);
821
- }, { data: g, loading: _ } = L(() => t === x.DEPT_USERS ? u({ requestContext: n }) : l({
840
+ }, { data: g, loading: _ } = I(() => t === x.DEPT_USERS ? u({ requestContext: n }) : l({
822
841
  requestContext: n,
823
842
  limits: r
824
843
  }), {
@@ -831,7 +850,7 @@ var H = {
831
850
  onSuccess: (e) => {
832
851
  e && (d === "custom" && m(e.list.filter((e) => e.type !== "1")[0]?._id), d === "default" && m(e.list.filter((e) => e.type === "1")[0]?._id));
833
852
  }
834
- }), { data: v, loading: y } = L(async () => p ? t === x.DEPT_USERS ? (await o({
853
+ }), { data: v, loading: y } = I(async () => p ? t === x.DEPT_USERS ? (await o({
835
854
  requestContext: n,
836
855
  groupId: p,
837
856
  limit: 1e4
@@ -861,14 +880,14 @@ var H = {
861
880
  };
862
881
  }, ue = () => {
863
882
  let { t: n } = C(), r = le(), i = r.memberList;
864
- return /* @__PURE__ */ B("div", {
883
+ return /* @__PURE__ */ z("div", {
865
884
  className: $["extra-contact-panel"],
866
885
  children: [
867
- /* @__PURE__ */ z("aside", {
886
+ /* @__PURE__ */ R("aside", {
868
887
  className: $["extra-contact-panel__menu"],
869
- children: /* @__PURE__ */ z("ul", {
888
+ children: /* @__PURE__ */ R("ul", {
870
889
  className: $["extra-contact-panel__menu-list"],
871
- children: r.menuItems.filter((e) => e.visible).map((e) => /* @__PURE__ */ z("li", {
890
+ children: r.menuItems.filter((e) => e.visible).map((e) => /* @__PURE__ */ R("li", {
872
891
  onClick: () => {
873
892
  e.key !== r.activeKey && r.setActiveKey(e.key);
874
893
  },
@@ -877,28 +896,28 @@ var H = {
877
896
  }, e.key))
878
897
  })
879
898
  }),
880
- /* @__PURE__ */ z("section", {
899
+ /* @__PURE__ */ R("section", {
881
900
  className: t($["extra-contact-panel__groups"], {
882
901
  [$["extra-contact-panel__groups--expanded"]]: r.activeKey === "custom",
883
902
  [$["extra-contact-panel__groups--collapsed"]]: r.activeKey === "default"
884
903
  }),
885
- children: /* @__PURE__ */ z(N, {
904
+ children: /* @__PURE__ */ R(M, {
886
905
  spinning: r.groupListLoading && r.activeKey === "custom",
887
906
  tip: n("common.loading"),
888
- children: /* @__PURE__ */ z(e, {
907
+ children: /* @__PURE__ */ R(e, {
889
908
  style: {
890
909
  height: r.containerHeight - 8,
891
910
  padding: "4px"
892
911
  },
893
- children: /* @__PURE__ */ B("ul", {
912
+ children: /* @__PURE__ */ z("ul", {
894
913
  className: $["extra-contact-panel__group-list"],
895
- children: [r.groupList.map((e) => /* @__PURE__ */ z("li", {
914
+ children: [r.groupList.map((e) => /* @__PURE__ */ R("li", {
896
915
  onClick: () => r.setGroupId(e._id),
897
916
  className: t($["extra-contact-panel__group-item"], { [$["extra-contact-panel__group-item--active"]]: r.groupId === e._id }),
898
917
  children: e.name
899
- }, e._id)), r.groupList.length === 0 && !r.groupListLoading && /* @__PURE__ */ z("div", {
918
+ }, e._id)), r.groupList.length === 0 && !r.groupListLoading && /* @__PURE__ */ R("div", {
900
919
  className: $["extra-contact-panel__empty"],
901
- children: /* @__PURE__ */ z("span", {
920
+ children: /* @__PURE__ */ R("span", {
902
921
  className: $["extra-contact-panel__empty-text"],
903
922
  children: n("externalContact.noAvailableGroup")
904
923
  })
@@ -907,21 +926,21 @@ var H = {
907
926
  })
908
927
  })
909
928
  }),
910
- /* @__PURE__ */ B("section", {
929
+ /* @__PURE__ */ z("section", {
911
930
  className: $["extra-contact-panel__members"],
912
- children: [/* @__PURE__ */ z(N, {
931
+ children: [/* @__PURE__ */ R(M, {
913
932
  spinning: r.memberLoading || r.groupListLoading,
914
933
  tip: n("common.loading"),
915
- children: /* @__PURE__ */ z(e, {
934
+ children: /* @__PURE__ */ R(e, {
916
935
  style: {
917
936
  height: r.containerHeight - 8,
918
937
  padding: "4px"
919
938
  },
920
- children: i.length > 0 && /* @__PURE__ */ z(U, { list: i })
939
+ children: i.length > 0 && /* @__PURE__ */ R(H, { list: i })
921
940
  })
922
- }), i.length === 0 && !r.memberLoading && !r.groupListLoading && /* @__PURE__ */ z("div", {
941
+ }), i.length === 0 && !r.memberLoading && !r.groupListLoading && /* @__PURE__ */ R("div", {
923
942
  className: $["extra-contact-panel__empty"],
924
- children: /* @__PURE__ */ z("span", {
943
+ children: /* @__PURE__ */ R("span", {
925
944
  className: $["extra-contact-panel__empty-text"],
926
945
  children: n("member.noAvailable")
927
946
  })
@@ -931,4 +950,4 @@ var H = {
931
950
  });
932
951
  };
933
952
  //#endregion
934
- export { U as a, re as i, ce as n, ae as r, ue as t };
953
+ export { H as a, re as i, ce as n, ae as r, ue as t };
@@ -1,6 +1,6 @@
1
1
  import { l as e, t } from "./useDeptsMemberSelector-xc9GWJaL.js";
2
2
  import { t as n } from "../vendors/useLocale.js";
3
- import { a as r, i, n as a, r as o, t as s } from "./ExtraConcactPanel-BRkvxzbe.js";
3
+ import { a as r, i, n as a, r as o, t as s } from "./ExtraConcactPanel-D5luX4_D.js";
4
4
  import { useMemo as c } from "react";
5
5
  import { jsx as l } from "react/jsx-runtime";
6
6
  //#region src/components/DeptsMemberSelector/subcomponents/Panels/CurrentUserPanel/CurrentUserPanel.module.scss
@@ -1,16 +1,16 @@
1
1
  import "../vendors/simplebar-react.js";
2
2
  import "./useDeptsMemberSelector-xc9GWJaL.js";
3
3
  import { r as e } from "./TabGroup-DjfuvblW.js";
4
- import { t } from "./DeptsMemberSelector-pLcrkrr2.js";
4
+ import { t } from "./DeptsMemberSelector-CGggVPiJ.js";
5
5
  import "../vendors/useLocale.js";
6
6
  import "../ConfigProvider/configContext-kYu9qTM2.js";
7
7
  import { getColorByName as n } from "./utils/index.js";
8
- import "./DeptsUser-C7_gkn3k.js";
8
+ import "./DeptsUser-CaXbrm8n.js";
9
9
  import "./OrganizationPanel-BAhvhgOL.js";
10
- import "./ExtraConcactPanel-BRkvxzbe.js";
10
+ import "./ExtraConcactPanel-D5luX4_D.js";
11
11
  import "./RelationShipList-BVTUyw1-.js";
12
12
  import "./RelationShipDepts-DadyalUU.js";
13
- import "./Member-CXVybdp_.js";
13
+ import "./Member-DeBpChCx.js";
14
14
  import "./Department-CkzkA99U.js";
15
15
  //#region src/components/DeptsMemberSelector/index.ts
16
16
  var r = t;
@@ -3,9 +3,9 @@ import "../../../useDeptsMemberSelector-xc9GWJaL.js";
3
3
  import "../../../TabGroup-DjfuvblW.js";
4
4
  import "../../../../vendors/useLocale.js";
5
5
  import "../../../../ConfigProvider/configContext-kYu9qTM2.js";
6
- import { t as e } from "../../../DeptsUser-C7_gkn3k.js";
6
+ import { t as e } from "../../../DeptsUser-CaXbrm8n.js";
7
7
  import "../../../OrganizationPanel-BAhvhgOL.js";
8
- import "../../../ExtraConcactPanel-BRkvxzbe.js";
8
+ import "../../../ExtraConcactPanel-D5luX4_D.js";
9
9
  import "../../../RelationShipList-BVTUyw1-.js";
10
10
  import "../../../RelationShipDepts-DadyalUU.js";
11
11
  export { e as useDeptUserTabItems };
@@ -3,6 +3,6 @@ import "../../../useDeptsMemberSelector-xc9GWJaL.js";
3
3
  import "../../../TabGroup-DjfuvblW.js";
4
4
  import "../../../../vendors/useLocale.js";
5
5
  import "../../../../ConfigProvider/configContext-kYu9qTM2.js";
6
- import "../../../ExtraConcactPanel-BRkvxzbe.js";
7
- import { t as e } from "../../../Member-CXVybdp_.js";
6
+ import "../../../ExtraConcactPanel-D5luX4_D.js";
7
+ import { t as e } from "../../../Member-DeBpChCx.js";
8
8
  export { e as useMemberTabItems };
package/dist/index.js CHANGED
@@ -2,16 +2,16 @@ import "./vendors/simplebar-react.js";
2
2
  import { t as e } from "./vendors/clsx.js";
3
3
  import "./DeptsMemberSelector/useDeptsMemberSelector-xc9GWJaL.js";
4
4
  import "./DeptsMemberSelector/TabGroup-DjfuvblW.js";
5
- import { n as t, t as n } from "./DeptsMemberSelector/DeptsMemberSelector-pLcrkrr2.js";
5
+ import { n as t, t as n } from "./DeptsMemberSelector/DeptsMemberSelector-CGggVPiJ.js";
6
6
  import "./vendors/useLocale.js";
7
7
  import "./ConfigProvider/configContext-kYu9qTM2.js";
8
- import { n as r } from "./DeptsMemberSelector/DeptsUser-C7_gkn3k.js";
8
+ import { n as r } from "./DeptsMemberSelector/DeptsUser-CaXbrm8n.js";
9
9
  import { n as i, r as a, t as o } from "./vendors/services/apiService.js";
10
10
  import "./DeptsMemberSelector/OrganizationPanel-BAhvhgOL.js";
11
- import "./DeptsMemberSelector/ExtraConcactPanel-BRkvxzbe.js";
11
+ import "./DeptsMemberSelector/ExtraConcactPanel-D5luX4_D.js";
12
12
  import "./DeptsMemberSelector/RelationShipList-BVTUyw1-.js";
13
13
  import "./DeptsMemberSelector/RelationShipDepts-DadyalUU.js";
14
- import "./DeptsMemberSelector/Member-CXVybdp_.js";
14
+ import "./DeptsMemberSelector/Member-DeBpChCx.js";
15
15
  import "./DeptsMemberSelector/Department-CkzkA99U.js";
16
16
  import { t as s } from "./ConfigProvider/ConfigProvider-C0c1mKeR.js";
17
17
  import { t as c } from "./vendors/echarts.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baishuyun/ui-business",
3
- "version": "5.1.1",
3
+ "version": "5.1.4",
4
4
  "description": "百数云业务组件库",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",